@hhgtech/hhg-components 1.21.31 → 1.21.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +1 -1
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-97cd306c.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/core-3b861395.js +1 -0
- package/build/esm/ecom.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-831ea86d.js +1 -0
- package/build/esm/{getSocialList-96e72b36.js → getSocialList-e91ed860.js} +0 -0
- package/build/esm/hooks.js +1 -1
- package/build/esm/index-3b622315.js +1 -0
- package/build/esm/index-454fe8ff.js +1 -0
- package/build/esm/index-5452fa8b.js +1 -0
- package/build/esm/index-9dd60ba6.js +1 -0
- package/build/esm/{index-e416266a.js → index-b8fa74ac.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/isProduction-6fc0946c.js +1 -0
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/types-7ad44869.js +1 -0
- package/build/esm/types-93c7470a.js +1 -0
- package/build/esm/unifyEnv.js +1 -0
- package/build/esm/{useHealthToolCache-79dda45b.js → useHealthToolCache-74a46d69.js} +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-1d292d71.js +1 -0
- package/build/{getSocialList-c36c1df1.js → getSocialList-19da0f19.js} +0 -0
- package/build/hooks.js +1 -1
- package/build/{index-6e818bcc.js → index-58a865b2.js} +1 -1
- package/build/index-5c5b6326.js +1 -0
- package/build/index-8b361239.js +1 -0
- package/build/index-d28c27ca.js +1 -0
- package/build/index-d2dbcaa7.js +1 -0
- package/build/index.js +1 -1
- package/build/isProduction-32e6a55a.js +1 -0
- package/build/mantine.js +1 -1
- package/build/misc/unifyEnv.d.ts +17 -0
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/together.js +1 -1
- package/build/types-2c1f3406.js +1 -0
- package/build/types-3cc8947f.js +1 -0
- package/build/unifyEnv.js +1 -0
- package/build/{useHealthToolCache-df134cc9.js → useHealthToolCache-ae750aac.js} +1 -1
- package/package.json +4 -1
- package/build/core-f0edff4f.js +0 -1
- package/build/esm/core-3e31237f.js +0 -1
- package/build/esm/getDynamicHealthTool-506a8dae.js +0 -1
- package/build/esm/index-063b89d7.js +0 -1
- package/build/esm/index-58ae0705.js +0 -1
- package/build/esm/index-cd91bec2.js +0 -1
- package/build/esm/index-dbd6febf.js +0 -1
- package/build/esm/types-cd546aee.js +0 -1
- package/build/esm/types-f6c7c962.js +0 -1
- package/build/getDynamicHealthTool-2103105f.js +0 -1
- package/build/index-36b7f9a6.js +0 -1
- package/build/index-bce6f562.js +0 -1
- package/build/index-e6d7418b.js +0 -1
- package/build/index-ea9fc9d7.js +0 -1
- package/build/types-4370a2d6.js +0 -1
- package/build/types-9bdb3a42.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o,e,l=("undefined"!=typeof window?function(o){var e,l;return null!==(l=null===(e=null==o?void 0:o.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i))||void 0===e?void 0:e[1])&&void 0!==l?l:""}(null===(o=null===window||void 0===window?void 0:window.location)||void 0===o?void 0:o.href):"").split("."),i=process.env.NEXT_PUBLIC_DEPLOY_ENV?"production"===process.env.NEXT_PUBLIC_DEPLOY_ENV:l&&!("dev"===l[0]||"dev"===l[1]||"staging"===l[0]||"staging-id"===l[0]||"staging-id-hotfix"===l[0]||"localhost"===l[0].split(":")[0]||"staging"===l[1]||"fe"===l[0]||"fe-hotfix"===l[0]||"discover"===l[0]||"discover-hotfix"===l[0]),n="userGeoLocationCoordinates",t={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph","vi-VN_MB":"marrybaby.vn"},a={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/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":{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":{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":{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":{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":{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"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/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":{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":{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":{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"}},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"},"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"},"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"},"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"},"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"},"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"},"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"},"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"},"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"},"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"}},c="user",E=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],I=["vi-VN","id-ID","en-PH","tl-PH","zh-TW"],T=["vi-VN","id-ID"],O={"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"}]};!function(o){o.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"}(e||(e={}));var p=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:n,domainLocales:t,LOCALE_SPECS:a,STATIC_PAGES:s,UP_BASEPATH:c,TOGETHER_LOCALES:E,CARE_LOCALES:I,CARE_BOOKING_LOCALES:T,FAVICONS:O,get QUERY_HEALTH_TOOL(){return e},isProduction:i});export{I as C,O as F,a as L,e as Q,s as S,E as T,c as U,i as a,T as b,n as c,t as d,p as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,a0 as a,a1 as t,a2 as l,a3 as o,a4 as n,a5 as i,a6 as c,a7 as r,a8 as s,a9 as d,aa as m,ab as h,ac as v,ad as u,ae as p,af as f,ag as g,ah as w,ai as z,aj as E,ak as C,al as y,am as M,T as b,an as x}from"./index.styled-0ef0a0dd.js";import{b as k,_ as H}from"./tslib.es6-dcf36680.js";import A,{useRef as B,useState as L,useEffect as F}from"react";import"date-fns";import"./screenSizeContext-f2090394.js";import"styled-components";import{t as V}from"./theme-a50a1aa5.js";import"./index-58ae0705.js";import"./Locale-69030fff.js";import"./gAssets.js";import{u as j}from"./useTranslations-3e47eecc.js";import"lodash/debounce";import{I as _}from"./index-df0ab41e.js";import{u as S}from"./useScrollbarSize-99db33e1.js";import{createPortal as R}from"react-dom";import{S as N,a as D,b as G}from"./index.styled-5f98744d.js";var P={Ask:e,BarChart:a,Booking:t,Bookmark:l,Boy:function(e){var a=e.size,t=void 0===a?40:a,l=k(e,["size"]);return A.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 40 40"},l),A.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#2D87F3"}),A.createElement("path",{fill:"#fff",d:"M20.002 30.973c-2.616 0-4.945-.607-6.734-1.755-1.82-1.166-3.058-2.884-3.604-4.992-.045 0-.09.003-.136.003-.758 0-1.486-.3-2.023-.834a2.843 2.843 0 010-4.029 2.868 2.868 0 012.194-.83c.577-2.321 1.83-4.42 3.567-5.952C15.16 10.918 17.552 10 20.002 10s4.84.918 6.733 2.587c1.737 1.53 2.99 3.628 3.567 5.952a2.868 2.868 0 012.194.83 2.843 2.843 0 010 4.028 2.868 2.868 0 01-2.16.831c-.546 2.106-1.782 3.826-3.602 4.992-1.79 1.146-4.118 1.753-6.732 1.753z"}),A.createElement("path",{fill:"#2D87F3",d:"M17.95 13.19h-.014a.525.525 0 00-.524.509c0 .015-.059 1.466-2.006 1.927a.525.525 0 00-.389.63.523.523 0 00.633.386c2.18-.516 2.793-2.134 2.812-2.917a.519.519 0 00-.313-.491.527.527 0 00-.2-.044zM20.591 12.874a.524.524 0 00-.326.663c.004.014.455 1.396-1.212 2.5a.521.521 0 00.19.936.526.526 0 00.39-.066c1.866-1.236 1.878-2.966 1.625-3.708a.521.521 0 00-.464-.352.529.529 0 00-.203.027zM23.292 13.4a.525.525 0 00-.735.749c.008.007.787.783.35 2.119a.523.523 0 00.898.508.523.523 0 00.098-.183c.641-1.946-.56-3.142-.611-3.192zM15.977 21.818a1.365 1.365 0 000-1.936 1.38 1.38 0 00-1.945 0 1.365 1.365 0 000 1.936 1.38 1.38 0 001.945 0zM25.445 22.172a1.368 1.368 0 10-.682-2.652 1.369 1.369 0 10.682 2.652zM22.837 22.755a.532.532 0 00-.66.338c-.005.012-.414 1.222-2.124 1.222-1.71 0-2.12-1.21-2.124-1.222a.523.523 0 00-.998.316c.026.08.656 1.947 3.123 1.947s3.097-1.867 3.122-1.947a.52.52 0 00-.339-.654z"}))},Calendar:function(e){var a=e.size,t=void 0===a?20:a,l=e.color,o=void 0===l?"#595959":l,n=k(e,["size","color"]);return A.createElement("svg",H({width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),A.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8337 2.50065H16.667C17.5837 2.50065 18.3337 3.25065 18.3337 4.16732V17.5006C18.3337 18.4173 17.5837 19.1673 16.667 19.1673H3.33366C2.41699 19.1673 1.66699 18.4173 1.66699 17.5006V4.16732C1.66699 3.25065 2.41699 2.50065 3.33366 2.50065H4.16699V1.66732C4.16699 1.20898 4.54199 0.833984 5.00033 0.833984C5.45866 0.833984 5.83366 1.20898 5.83366 1.66732V2.50065H14.167V1.66732C14.167 1.20898 14.542 0.833984 15.0003 0.833984C15.4587 0.833984 15.8337 1.20898 15.8337 1.66732V2.50065ZM4.16699 17.5007H15.8337C16.292 17.5007 16.667 17.1257 16.667 16.6673V6.66732H3.33366V16.6673C3.33366 17.1257 3.70866 17.5007 4.16699 17.5007Z",fill:o}))},Community:o,EditSpecial:n,Family:i,Font:c,GenderBoy:function(e){var a=e.size,t=void 0===a?16:a,l=k(e,["size"]);return A.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 16 16"},l),A.createElement("g",{fill:"#595959",clipPath:"url(#clip0_408_8625)"},A.createElement("path",{d:"M15.325 1.199a.602.602 0 00-.038-.151v-.005h-.001a.618.618 0 00-.107-.168.623.623 0 00-.117-.105l-.004-.002a.6.6 0 00-.175-.078.609.609 0 00-.161-.024h-4.278a.611.611 0 000 1.223h2.802L9.6 5.535a5.469 5.469 0 00-3.433-1.203 5.506 5.506 0 00-5.5 5.5c0 3.033 2.468 5.5 5.5 5.5 3.033 0 5.5-2.467 5.5-5.5 0-1.262-.425-2.46-1.203-3.433l3.648-3.647v2.802a.611.611 0 001.222 0V1.277c0-.012-.003-.025-.004-.037a.617.617 0 00-.004-.041zM6.166 14.11A4.282 4.282 0 011.89 9.833a4.282 4.282 0 017.303-3.028 4.282 4.282 0 01-3.026 7.305z"}),A.createElement("path",{fillRule:"evenodd",d:"M15.287 1.048a.602.602 0 01.042.192l.002.016a.156.156 0 01.002.021v4.278a.611.611 0 01-1.222 0V2.753L10.463 6.4a5.469 5.469 0 011.203 3.433c0 3.033-2.467 5.5-5.5 5.5a5.506 5.506 0 01-5.5-5.5c0-3.033 2.468-5.5 5.5-5.5 1.263 0 2.46.425 3.433 1.203l3.647-3.647h-2.802a.611.611 0 010-1.223h4.278a.609.609 0 01.197.036.6.6 0 01.14.067h.003a.623.623 0 01.14.135h.001a.618.618 0 01.083.138v.003l.001.003zm.064-.02c.021.053.033.107.04.162m-.04-.162a.695.695 0 00-.096-.165l-.001-.002c-.008-.009-.016-.02-.026-.03A.69.69 0 0015.1.715m-.2-.089A.675.675 0 0014.722.6h-4.278a.678.678 0 000 1.355h2.641L9.594 5.447a5.535 5.535 0 00-3.428-1.18A5.573 5.573 0 00.6 9.832 5.573 5.573 0 006.166 15.4a5.573 5.573 0 005.567-5.567c0-1.257-.417-2.45-1.18-3.427l3.491-3.492v2.641a.678.678 0 001.356 0V1.277a.202.202 0 00-.003-.027v-.004l-.001-.01a.743.743 0 00-.005-.046M1.955 9.833a4.216 4.216 0 004.211 4.211 4.216 4.216 0 002.979-7.191 4.216 4.216 0 00-7.19 2.98zm7.237-3.028a4.282 4.282 0 00-7.304 3.028 4.282 4.282 0 004.278 4.278 4.282 4.282 0 003.026-7.306z",clipRule:"evenodd"})),A.createElement("defs",null,A.createElement("clipPath",{id:"clip0_408_8625"},A.createElement("path",{fill:"#fff",d:"M0 0H16V16H0z"}))))},GenderChooseBoy:function(e){var a=B("svg-".concat(Math.random()));return A.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),A.createElement("g",{clipPath:"url(#".concat(a.current,")")},A.createElement("path",{fill:"#45A4FF",d:"M11.203 7.633l1.914 1.914 6.397-6.397L17.6 1.235l-6.397 6.398z"}),A.createElement("path",{fill:"#45A4FF",d:"M8.083 5.334a7.333 7.333 0 100 14.667 7.333 7.333 0 000-14.667zm0 11.96a4.626 4.626 0 110-9.253 4.626 4.626 0 010 9.252z"}),A.createElement("path",{fill:"#2D87F3",d:"M7.508 8.077a4.626 4.626 0 100 9.181 4.627 4.627 0 010-9.181zM8.083 5.334a7.43 7.43 0 00-.575.022 7.334 7.334 0 010 14.622 7.333 7.333 0 10.575-14.644zM19.88 2.785v-.78L18.744.872h-.78l-2.707 2.707h1.55c.2 0 .364.163.364.365v1.55l2.707-2.708z"}),A.createElement("path",{fill:"#45A4FF",d:"M18.043 0h-4.585a.365.365 0 00-.364.365v1.978c0 .201.163.364.364.364h4.22c.201 0 .365.163.365.365v4.22c0 .2.163.364.364.364h1.978a.365.365 0 00.365-.364V.365A.365.365 0 0020.385 0h-2.342z"})),A.createElement("defs",null,A.createElement("clipPath",{id:a.current},A.createElement("path",{fill:"#fff",d:"M0 0H20V20H0z",transform:"translate(.75)"}))))},GenderChooseGirl:function(e){return A.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),A.createElement("path",{fill:"#FE9DC2",d:"M13.748 15.546h-1.503a.321.321 0 01-.321-.322v-3.7H9.577v3.7a.321.321 0 01-.322.322H7.753a.321.321 0 00-.321.321v1.704c0 .178.144.322.321.322h1.502c.178 0 .322.144.322.321v1.465c0 .178.144.321.321.321h1.704a.321.321 0 00.322-.321v-1.465c0-.177.144-.321.321-.321h1.503a.321.321 0 00.321-.322v-1.704a.322.322 0 00-.321-.321z"}),A.createElement("path",{fill:"#FC488D",d:"M9.576 11.523v2.151a7.466 7.466 0 002.347 0v-2.15H9.576z"}),A.createElement("path",{fill:"#FE9DC2",d:"M10.75 0a6.357 6.357 0 100 12.715A6.357 6.357 0 0010.75 0zm0 10.368a4.01 4.01 0 110-8.021 4.01 4.01 0 010 8.021z"}),A.createElement("path",{fill:"#FC488D",d:"M10.157 2.391a4.01 4.01 0 100 7.934 4.011 4.011 0 010-7.934zM10.75 0c-.2 0-.398.01-.593.028a6.358 6.358 0 010 12.66A6.357 6.357 0 1010.75 0z"}))},GenderGirl:function(e){var a=e.size,t=void 0===a?16:a,l=k(e,["size"]);return A.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 16 16"},l),A.createElement("path",{fill:"#595959",d:"M11.445 8.979a4.875 4.875 0 000-6.888 4.879 4.879 0 00-6.89 0 4.875 4.875 0 000 6.888 4.849 4.849 0 002.872 1.39V12H6.28a.573.573 0 100 1.147h1.147v1.614a.573.573 0 001.146 0v-1.614H9.72a.573.573 0 100-1.146H8.573v-1.63a4.849 4.849 0 002.872-1.391zm-6.08-.81a3.728 3.728 0 010-5.268 3.73 3.73 0 015.27 0 3.728 3.728 0 010 5.267 3.73 3.73 0 01-5.27 0z"}),A.createElement("path",{fill:"#595959",fillRule:"evenodd",d:"M5.366 8.168a3.73 3.73 0 005.268 0 3.728 3.728 0 000-5.267 3.73 3.73 0 00-5.268 0 3.728 3.728 0 000 5.267zm6.15-6.148a4.975 4.975 0 010 7.03 4.948 4.948 0 01-2.843 1.407V11.9H9.72a.673.673 0 110 1.346H8.673v1.514a.673.673 0 01-1.346 0v-1.514H6.28a.673.673 0 110-1.346h1.046v-1.443A4.948 4.948 0 014.484 9.05a4.975 4.975 0 010-7.029 4.979 4.979 0 017.032 0zm-4.09 8.35a4.849 4.849 0 01-2.871-1.391 4.875 4.875 0 010-6.888 4.879 4.879 0 016.89 0 4.875 4.875 0 010 6.888 4.849 4.849 0 01-2.872 1.39V12H9.72a.573.573 0 110 1.147H8.573v1.614a.573.573 0 01-1.146 0v-1.614H6.28a.573.573 0 110-1.146h1.147v-1.63zm-1.99-7.398a3.628 3.628 0 000 5.126 3.63 3.63 0 005.128 0 3.628 3.628 0 000-5.126 3.63 3.63 0 00-5.128 0z",clipRule:"evenodd"}))},Girl:function(e){var a=e.size,t=void 0===a?40:a,l=k(e,["size"]);return A.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 24 24"},l),A.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#FC5D9A"}),A.createElement("path",{fill:"#fff",d:"M18.283 11.759c-.034 0-.068 0-.102.003-.346-1.394-1.099-2.652-2.14-3.57a6.132 6.132 0 00-3.726-1.544v-.532a2.062 2.062 0 001.617-.634 1.178 1.178 0 000-1.638 1.13 1.13 0 00-1.626 0c-.116.119-.218.25-.305.392a2.212 2.212 0 00-.308-.393 1.13 1.13 0 00-1.625 0 1.179 1.179 0 000 1.638 2.06 2.06 0 001.5.639c.041 0 .08 0 .117-.004v.533a6.143 6.143 0 00-3.726 1.543c-1.042.918-1.793 2.177-2.14 3.572a1.72 1.72 0 00-1.317.498 1.706 1.706 0 000 2.417c.323.32.76.5 1.215.5.027 0 .054 0 .081-.002a4.968 4.968 0 002.162 2.996c1.073.69 2.47 1.053 4.04 1.053 1.57 0 2.967-.364 4.04-1.053a4.987 4.987 0 002.162-2.998 1.72 1.72 0 001.295-.499 1.705 1.705 0 000-2.417c-.322-.32-.759-.5-1.214-.5zm-5.527-7.477a.5.5 0 01.724 0 .55.55 0 010 .763 1.446 1.446 0 01-1.165.446 1.834 1.834 0 01-.004-.077v-.09c.01-.392.168-.764.445-1.042zm-2.238.762a.55.55 0 010-.763.501.501 0 01.724 0c.276.278.435.65.444 1.042v.09c0 .027-.002.053-.004.078a1.45 1.45 0 01-1.164-.447z"}),A.createElement("path",{fill:"#FC5D9A",d:"M9.586 13.68a.819.819 0 000-1.161.828.828 0 00-1.167 0 .819.819 0 000 1.162c.323.32.845.32 1.167 0zM15.267 13.894a.821.821 0 10-.41-1.592.821.821 0 10.41 1.592zM13.704 14.242a.32.32 0 00-.282.045.314.314 0 00-.114.159c-.002.007-.248.733-1.274.733-1.027 0-1.272-.726-1.275-.733a.314.314 0 10-.598.19c.016.046.394 1.168 1.873 1.168s1.858-1.12 1.873-1.168a.313.313 0 00-.203-.394zM12.402 7.713a.315.315 0 00-.53.24.313.313 0 00.1.218c.253.248.466.533.632.845.316.61.298 1.118-.056 1.551-.403.493-.865.449-1.104.378-.33-.096-.598-.351-.625-.595-.03-.263.058-.585.318-.71.165-.077.337-.039.486.11a.315.315 0 00.538-.22.313.313 0 00-.092-.222c-.336-.337-.797-.426-1.204-.232-.473.226-.737.752-.671 1.343.055.494.495.957 1.072 1.128.151.045.308.067.465.068.491 0 .958-.228 1.305-.652.514-.63.558-1.402.127-2.234a4.11 4.11 0 00-.761-1.016z"}))},Heart:r,Home:s,Kebab:function(e){var a=e.size,t=void 0===a?20:a,l=k(e,["size"]);return A.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"none",viewBox:"0 0 20 20"},l),A.createElement("path",{fill:"#000",fillOpacity:"0.54",fillRule:"evenodd",d:"M10 6.667c.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666zm0 1.667c-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667zm-1.667 6.667c0-.917.75-1.667 1.667-1.667.916 0 1.666.75 1.666 1.667 0 .916-.75 1.666-1.666 1.666-.917 0-1.667-.75-1.667-1.666z",clipRule:"evenodd"}))},Like:d,MyCommunity:m,PlusSpecial:h,Recalculate:v,Scale:u,Share:p,Stethoscope:f,FullScreen:g,GroupPeople:w,GroupPeopleSolid:z,Activities:E,Reply:C,Check:function(e){var a=e.size,t=void 0===a?20:a,l=e.color,o=void 0===l?"#595959":l,n=e.activeColor,i=void 0===n?V.colors.primaryBase:n,c=e.isActive,r=void 0!==c&&c,s=k(e,["size","color","activeColor","isActive"]);return A.createElement("svg",H({width:t,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s),A.createElement("path",{d:"M13.3334 4L6.00002 11.3333L2.66669 8",stroke:r?i:o,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},UserCheck:function(e){var a=e.size,t=void 0===a?20:a,l=e.color,o=void 0===l?"#595959":l,n=e.activeColor,i=void 0===n?V.colors.primaryBase:n,c=e.isActive,r=void 0!==c&&c,s=k(e,["size","color","activeColor","isActive"]);return A.createElement("svg",H({width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s),A.createElement("path",{d:"M16 11.8L16.4705 12.2694C16.8709 12.6689 17.5225 12.6571 17.9082 12.2435L20 10",stroke:r?i:o,strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),A.createElement("path",{d:"M4 18.3213C4 16.1763 5.50873 14.3493 7.55915 14.0112L7.74384 13.9808C9.3857 13.7101 11.0587 13.7101 12.7006 13.9808L12.8853 14.0112C14.9357 14.3493 16.4444 16.1763 16.4444 18.3213C16.4444 19.2484 15.7169 20 14.8194 20H5.625C4.72754 20 4 19.2484 4 18.3213Z",stroke:r?i:o,strokeWidth:"1.2"}),A.createElement("path",{d:"M13.8519 7.5C13.8519 9.433 12.2268 11 10.2222 11C8.21765 11 6.59261 9.433 6.59261 7.5C6.59261 5.567 8.21765 4 10.2222 4C12.2268 4 13.8519 5.567 13.8519 7.5Z",stroke:r?i:o,strokeWidth:"1.2"}))}},I=function(e){var a=e.value,t=e.options,l=e.className,o=e.direction,n=void 0===o?"horizontal":o,i=e.onChange,c=e.isDisabled,r=L(a),s=r[0],d=r[1];return A.createElement(y,{className:l,"data-direction":n},t.map((function(e,t){return A.createElement(M,{"data-selected":(a||s)===e.value,"data-disabled":c,key:t,onClick:function(){var a;a=e.value,c||(d(a),i&&i(a))}},A.createElement("div",null,e.content,e.label&&A.createElement(b,{type:"bold",color:(a||s)===e.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},e.label)))})))},T=function(e){var a=e.isActive,t=e.onChange,l=e.value,o=void 0===l?"":l,n=e.onInputChange,i=j().t;return A.createElement(x,{onClick:function(){return t("new")}},A.createElement("div",{className:"title"},A.createElement(b,{size:"p2",color:V.colors.gray800},i("chooseBaby.new")),A.createElement("div",{className:a?"radio active":"radio"})),A.createElement(_,{name:"name",value:o,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:n}))},W="hhg-modals",Z=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},q=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},O=function(e){var a=e.type,t=void 0===a?"lead":a,l=e.closeIcon,o=e.isOpen,n=void 0===o||o,i=e.onClose,c=e.children,r=e.className,s=void 0===r?"":r,d=e.animationType,m=void 0===d?"slideTop":d,h=e.isStaticBackdrop,v=void 0!==h&&h;e.style;var u=L(!1),p=u[0],f=u[1],g=B(null),w=S().width;if(!g.current&&p&&(g.current=document.createElement("div")),F((function(){return f(!0),function(){f(!1),Z(),q()}}),[]),F((function(){if(p){var e=((a=document.getElementById(W))||((a=document.createElement("div")).setAttribute("id",W),document.body.append(a)),a);return e.appendChild(g.current),function(){e.removeChild(g.current)}}var a}),[p]),F((function(){n?document.body.classList.add("hhc-modal-show"):Z()}),[n]),F((function(){n?(document.body.style.overflow="hidden",document.body.style.paddingRight=w+"px",document.body.classList.add("hhc-disabled-scroll")):q()}),[n,w]),!p)return null;var z=["hhg-modal__wrapper",s,m].filter((function(e){return e})).join(" ");return R(A.createElement(N,{className:z,"data-open":n,"data-type":t},!v&&A.createElement(D,{"data-open":n,onClick:i,"data-type":t}),!v&&"video"===t&&!!l&&A.createElement("div",{className:"hhg-modal__close",onClick:i},l),A.createElement(G,{className:"hhg-modal","data-open":n},A.createElement("div",{className:"video"===t?"hhg-modal__video":"hhg-modal__content"},!!l&&"video"!==t&&A.createElement("div",{className:"hhg-modal__close",onClick:i},l),c))),g.current)};export{P as I,O as M,T as N,I as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e,{useState as t,useRef as n,useMemo as a,useEffect as l,Fragment as o,useCallback as r}from"react";import{S as i,d as c,T as s,e as m,f as d,g as p,h as u,i as g,j as h,k as v,l as f,m as E,n as y,o as x,p as w,q as b,r as k,s as C,t as N,u as L,v as z,w as M,x as _,y as B,z as F,A as D,B as S,D as A,C as j,P as I,L as T,a as H}from"./index.styled-0ef0a0dd.js";import{_ as P,a as W,b as V,c as O,d as G,e as U}from"./tslib.es6-dcf36680.js";import{i as Z,B as R,M as q,l as K}from"./screenSizeContext-f2090394.js";import{B as X}from"./index-1013d3f5.js";import{t as J}from"./theme-a50a1aa5.js";import{H as Y}from"./index-2e2fc9a7.js";import{l as Q,m as $,n as ee,o as te,p as ne,q as ae,r as le,s as oe,t as re,u as ie,v as ce,w as se,x as me,y as de,z as pe,A as ue,B as ge,E as he,G as ve,H as fe,I as Ee,J as ye,K as xe,O as we,Q as be,T as ke,V as Ce,W as Ne,X as Le,Y as ze,Z as Me,_ as _e,$ as Be,a0 as Fe,a1 as De,a2 as Se,a3 as Ae,a4 as je,a5 as Ie,a6 as Te,a7 as He,a8 as Pe,a9 as We,aa as Ve,ab as Oe,ac as Ge,ad as Ue,ae as Ze,af as Re,ag as qe,ah as Ke,ai as Xe,aj as Je,ak as Ye,al as Qe,am as $e,an as et,ao as tt,ap as nt,aq as at,ar as lt,as as ot,at as rt,au as it,av as ct,aw as st,ax as mt,ay as dt,az as pt,aA as ut,aB as gt,aC as ht,aD as vt,aE as ft,aF as Et,aG as yt,aH as xt,aI as wt,aJ as bt,aK as kt,aL as Ct,aM as Nt,aN as Lt,aO as zt,aP as Mt,aQ as _t,aR as Bt,aS as Ft,aT as Dt,aU as St,aV as At,aW as jt,aX as It,aY as Tt,aZ as Ht,a_ as Pt,a$ as Wt,b0 as Vt,b1 as Ot,b2 as Gt}from"./index-063b89d7.js";import{useId as Ut}from"react-id-generator";import{D as Zt,h as Rt,i as qt,H as Kt}from"./index-e416266a.js";import{throttle as Xt}from"lodash";import{useKeenSlider as Jt}from"keen-slider/react";import{CommonGAssets as Yt}from"./gAssets.js";import"react-range";import{isBefore as Qt,startOfMonth as $t,addMonths as en,format as tn,subMonths as nn,getDaysInMonth as an,isToday as ln,isSameDay as on,isWithinInterval as rn,isAfter as cn,isPast as sn}from"date-fns";import mn from"styled-components";import{d as dn,L as pn,F as un,a as gn}from"./index-58ae0705.js";import"./Locale-69030fff.js";import{Checkbox as hn}from"@mantine/core";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import{u as vn}from"./useTranslations-3e47eecc.js";import{u as fn}from"./useHealthToolCache-79dda45b.js";import{u as En}from"./useOutsideClick-6004483a.js";import yn from"date-fns/locale/en-US";import xn from"date-fns/locale/id";import wn from"date-fns/locale/vi";import bn from"date-fns/locale/zh-TW";import{g as kn}from"./getSocialList-96e72b36.js";import{I as Cn}from"./index-df0ab41e.js";var Nn=function(t){var n=t.style,a=t.onClose,l=t.text,o=t.type,r=t.contentIcon,d=t.closeIcon,p=t.className,u=t.description;return e.createElement(i,{style:n,"data-alert-type":o,className:p},e.createElement(c,null,e.createElement("div",{className:"icon-title"},r,e.createElement(s,{type:"bold",size:"label1"},l)),e.createElement(s,{type:"regular",size:"p3"},u)),e.createElement(m,{onClick:a},d))},Ln=function(t){var n=t.amount,a=t.type,l=t.size,o=void 0===l?"medium":l,r=t.color,i=void 0===r?"primary":r,c=t.icon,s=t.className;return e.createElement(d,{"data-notification-type":a,"data-notification-size":o,"data-notification-color":i,"data-has-icon":!!c||void 0,notificationType:a,notificationSize:o,notificationColor:i,hasIcon:!!c,className:s},e.createElement("div",null,n&&e.createElement("span",null,n)," ",c&&e.createElement("div",null,c)))},zn=function(t){var n=t.style,a=t.children,l=t.className,o=t.size,r=void 0===o?"lg":o,i=t.type,c=void 0===i?"bold":i,s=t.upperCase,m=t.as,d=void 0===m?"h4":m,u=t.color;return e.createElement(p,{style:P({color:u},n),className:l,"data-size":r,"data-type":c,"data-uppercase":s,as:d},a)},Mn=function(a){var l=a.className,o=a.value,r=a.options,i=a.onUploadSelected,c=a.id,s=a.placeholderIcon,m=a.placeholder,d=a.style,p=t(!1),E=p[0],y=p[1],x=function(){return y(!E)},w=n(r.map((function(t){return"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+c+"-"+t.value,key:"uploader-dropdown-input-"+c+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:function(e){console.log("change"),i(e.target.files)}})}))),b=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"})),e.createElement("style",null,".prefix__cls-3{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.createElement("path",{className:"prefix__cls-3",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)"}),e.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),k=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"download"),e.createElement("path",{className:"prefix__cls-1",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)"})),C=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"upload"),e.createElement("path",{className:"prefix__cls-1",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)"}));return e.createElement(u,{className:l,"data-dropdown-open":!!E,id:c,"data-has-icons":!0,style:d,onBlur:function(){return y(!1)},tabIndex:0},e.createElement(g,{onClick:x},s||b," ",e.createElement("span",null,o&&o.value?o.label:m)),E&&e.createElement(h,{onClick:x,"data-has-icons":!0},r.map((function(t){return e.createElement(v,{key:"".concat(c,"-").concat(t.value),"data-selected":o&&o.value===t.value||void 0,onClick:function(){return"upload"===t.type?function(e){var t;null===(t=document.querySelector(e))||void 0===t||t.click()}("#uploader-dropdown-input-"+c+"-"+t.value):void((e=t.url)&&window.open(e,"_blank"));var e}},e.createElement(f,null,t.icon||"download"===t.type?k:C),t.label)}))),e.createElement(e.Fragment,null,w.current))},_n=function(t){var n=t.className,a=t.columns,l=t.columnsDesktop,o=t.gridTemplateColumns,r=t.gridTemplateColumnsDesktop,i=t.gap,c=t.children,s=t.justifyChildren,m=t.style,d=t.alignItems;return e.createElement(E,{className:n,style:m,theme:{columns:a,columnsDesktop:l,gap:i,justifyChildren:s,gridTemplateColumns:o,gridTemplateColumnsDesktop:r,alignItems:d}},c)},Bn=function(n){var a=n.pagesAmount,r=n.activePage,i=n.handlePageChange,c=n.handleClick,s=n.href,m=n.queryPageName,d=void 0===m?"page":m,p=W([],Array(a),!0).map((function(e,t){return t+1})),u=t(r<=4?p.slice(0,5):r>=p.length-3?p.slice(p.length-5,p.length):p.slice(r-2,r+1)),g=u[0],h=u[1];return l((function(){r<=4?h(p.slice(0,5)):r>=p.length-3?h(p.slice(p.length-5,p.length)):h(p.slice(r-2,r+1))}),[r]),e.createElement(o,null,r>4&&e.createElement(o,null,e.createElement(w,{onClick:function(){return i(1)}},s?e.createElement("a",{href:s,onClick:c},1):1),e.createElement(w,null,"...")),g.map((function(t){return e.createElement(w,{key:"".concat("pagination","+").concat(t),"data-page-active":t===r||void 0,onClick:function(){return i(t)}},s?e.createElement("a",{href:Z(s,t,d),onClick:c},t):t)})),r<p.length-3&&e.createElement(o,null,e.createElement(w,null,"..."),e.createElement(w,{onClick:function(){return i(p.length)}},s?e.createElement("a",{href:Z(s,p.length,d),onClick:c},p.length):p.length)))},Fn=function(n){var o=n.className,r=n.pagesAmount,i=n.currentPage,c=n.onChange,s=n.onClick,m=n.style,d=n.href,p=n.queryPageName,u=void 0===p?"page":p,g=W([],Array(r),!0).map((function(e,t){return t+1})),h=t(i),v=h[0],f=h[1],E=a((function(){return d&&d.endsWith("&page=")?d.replace("&page=",""):d}),[d]),b=r-1,k=function(e){e<=r&&e>0&&(f(e),c(e))},C=function(e){s&&s(e)};return l((function(){f(i)}),[i]),e.createElement(y,{className:o,style:m},e.createElement(x,{className:"prev-page",onClick:function(){return k(v-1)},"data-last-page":1===v||void 0},E?e.createElement("a",{href:Z(E,v,u),onClick:C},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),g.length>8?e.createElement(Bn,{pagesAmount:r,activePage:v,handlePageChange:k,handleClick:C,href:E,queryPageName:u}):g.map((function(t){return e.createElement(w,{key:"".concat("pagination","+").concat(t),"data-page-active":t===v||void 0,onClick:function(){return k(t)}},E?e.createElement("a",{href:Z(E,t,u),onClick:C},t):t)})),e.createElement(x,{className:"next-page",onClick:function(){return k(v+1)},"data-last-page":v===b+1||void 0},E?e.createElement("a",{href:Z(E,v,u),onClick:C},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},Dn=function(t){var n=t.size,a=t.children,l=t.style,o=t.className;return e.createElement(b,{style:l,className:o,"data-shadow-size":n},a)},Sn=function(t){var n=t.type,a=t.children,l=t.style,o=t.isInline,r=t.isSquared,i=void 0!==r&&r,c=t.className,m=t.isLight,d=t.hasMorePadding,p=t.isLink,u=t.isSelected,g=t.textProps,h=void 0===g?{size:"sm"}:g,v=h.color?{"--text-props-color":h.color}:{};return e.createElement(k,{"data-is-squared":i||void 0,"data-tag-type":n,"data-is-light":m||void 0,"data-has-more-padding":d||void 0,"data-is-inline":o||void 0,style:P(P({},l),v),className:c,"data-is-selected":u||void 0,"data-is-link":p||void 0,tagType:n,isInline:o,tagHasMorePadding:d,tagIsLight:m,tagIsSquared:i,tagIsALink:p},e.createElement(s,P({},h),a))},An=function(t){var n=t.className,a=t.id,l=t.onChange,o=t.checked,r=t.style,i=t.label;return e.createElement(C,{className:n,style:r},e.createElement("input",{type:"checkbox",id:a,onChange:l,checked:o}),e.createElement("label",{htmlFor:a},e.createElement(N,null),i&&e.createElement(L,null,i)))},jn=function(t){var n=t.size,a=t.isDisabled,l=t.className,o=t.link,r=t.style;return e.createElement(z,{className:l,"data-size":n,style:r,"data-disabled":a||void 0},o)},In=function(t){var n=t.type,a=t.withIcon,l=t.onFileSelected,o=t.inputId,r=t.withElement,i=t.fileAcceptType,c=t.multiple,s=t.value,m=t.className,d=function(){var e;null===(e=document.querySelector("#uploader-input-"+o))||void 0===e||e.click()};return e.createElement(M,{className:m},"badge"===n?e.createElement(_,{onClick:d,"data-is-attached-to-element":!!r},r,e.createElement(B,{"data-is-attached-to-element":!!r},a)):r?e.createElement("div",{onClick:d},r):e.createElement(X,{size:"md",color:"secondary",className:"default-button",icon:a,onClick:d},e.createElement(F,null,e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"upload"),e.createElement("path",{className:"prefix__cls-1",d:"M14 10v2.67A1.33 1.33 0 0112.67 14H3.33A1.33 1.33 0 012 12.67V10M11.33 5.33L8 2 4.67 5.33M8 2v8",transform:"translate(-1.25 -1.25)"})),"Upload Image")),e.createElement("input",{id:"uploader-input-"+o,accept:i,multiple:c,type:"file",style:{display:"none"},onChange:function(e){l(e.target.files)},value:s}))},Tn=function(t){var n=t.label,a=t.name,l=t.checked,o=t.className,r=t.isDisabled,i=t.onChange,c=t.value,s=t.isRectangle;return e.createElement(D,{className:o,"data-disabled":r||void 0,"data-is-rectangle":s||void 0,"data-label-text":n},e.createElement("input",{type:"checkbox",checked:l,name:a,onChange:function(){return i(c,!l)},disabled:r,value:c,id:"".concat(a,"-").concat(c),"data-label-text":n}),!s&&e.createElement("label",{htmlFor:"".concat(a,"-").concat(c)},n))},Hn=function(t){return e.createElement("svg",P({},t,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"}))},Pn=function(t){return e.createElement("svg",P({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"}))},Wn=function(n){var a=t((function(){return"star-half-mask-".concat(Math.random())}))[0];return e.createElement("svg",P({},n,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:a,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:"url(#".concat(a,")")},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},Vn=function(n){var a=n.gap,l=void 0===a?2:a,o=n.size,r=void 0===o?24:o,i=n.star,c=n.totalStars,s=void 0===c?5:c,m=n.onSelect,d=n.hideEmptyStars,p=n.style,u=n.className,g=Math.floor(i),h=i-g>=.5?1:0,v=t(null),f=v[0],E=v[1],y=f||g,x=f?0:h;return e.createElement(S,{"data-selectable":!!m,style:P({"--gap":l,"--star-size":r},p),className:u},Array.from({length:d?g+h:s}).map((function(t,n){var a=function(){return!!m&&E(n+1)},l=function(){return!!m&&E(null)};return n+1<=y?e.createElement(Pn,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l}):n+1===y+x?e.createElement(Wn,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l}):e.createElement(Hn,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l})})))},On=function(t){var n=t.percent,a=t.style;return e.createElement(A,{style:P({"--progress":n},a)})},Gn=function(t){var n=t.avatarImg,a=t.authorName,l=t.authorLink,o=t.uploadTime,r=t.size;return e.createElement(ee,null,e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":r},n),e.createElement("div",{className:"poster","data-is-disabled-url":!l},e.createElement(s,{size:"lg"===r?"p3":"p4"},e.createElement("a",{href:l},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,o)))))},Un=function(t){var n=t.isMobile,a=t.avatarImg,l=t.name,o=t.link,r=t.size,i=void 0===r?"lg":r,c=t.specialty;return e.createElement(ee,null,e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":i},a),e.createElement("div",{className:"expert","data-is-disabled-url":!o},n?e.createElement("a",{href:o},"lg"===i?e.createElement(e.Fragment,null,e.createElement(Y,{tag:"h6",className:"expert__name",color:J.colors.gray600},l),e.createElement(s,{color:J.colors.gray500,size:"p3",className:"specialty"},c)):e.createElement(e.Fragment,null,e.createElement(Y,{tag:"h6",className:"expert__name",color:J.colors.gray600},l))):e.createElement("a",{href:o},"lg"===i?e.createElement(e.Fragment,null,e.createElement(Y,{tag:"h6",className:"expert__name",color:J.colors.gray600},l),e.createElement(s,{color:J.colors.gray500,size:"p3",className:"specialty"},c)):e.createElement(e.Fragment,null,e.createElement(te,{color:J.colors.gray600,className:"expert__name"},l),e.createElement(s,{color:J.colors.gray500,size:"p4",className:"specialty"},c))))))},Zn=function(t){var n=t.articleLink,a=t.authorLink,l=t.authorName,o=t.avatarImg,r=t.banner,i=t.categoryLink,c=t.categoryName,m=t.className,d=t.dataEventActionForBanner,p=t.dataEventActionForBookmark,u=t.dataEventActionForCategory,g=t.dataEventActionForTitle,h=t.dataEventCategoryForBanner,v=t.dataEventCategoryForBookmark,f=t.dataEventCategoryForCategory,E=t.dataEventCategoryForTitle,y=t.dataEventLabelForBanner,x=t.dataEventLabelForBookmark,w=t.dataEventLabelForCategory,b=t.dataEventLabelForTitle,k=t.direction,C=void 0===k?"horizontal":k,N=t.hasAffiliate,L=t.isBookmark,z=void 0!==L&&L,M=t.isBookmarkDisplayed,_=void 0===M||M,B=t.isMobile,F=void 0===B||B,D=t.onBookmark,S=t.onClickCategoryName,A=t.section,j=void 0===A?"normal":A,I=t.size,T=void 0===I?"md":I,H=t.specialty,P=t.style,W=t.styleBanner,V=t.styleLabel,O=t.styleTitle,G=t.text,U=t.title,Z=t.type,R=void 0===Z?"author":Z,q=t.uploadTime,K=t.articleLinkTarget,X=function(e){e.stopPropagation(),D&&D()},J="lg"===T&&"expert"===R?"h4":"lg"===T&&"home"===j?F?"h4":"h3":"lg"===T?"h4":"h5",ee="lg"===T?"p3":"p4",te=F||"home"!==j||"lg"!==T||"author"!==R?"c2":"c1";return e.createElement(Q,{className:m,"data-size":T,style:P,"data-direction":C,"data-is-expert":"expert"===R||void 0},e.createElement("div",{className:"banner",style:W},e.createElement($,{"data-event-category":h,"data-event-action":d,"data-event-label":y,href:n||"#",target:K},r),N&&e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"})))),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(s,{style:V,className:"label",size:te,type:"caption"},e.createElement($,{"data-event-category":f,"data-event-action":u,"data-event-label":w,href:i||"#",onClick:S},c),_&&e.createElement("a",{className:"bookmark",onClick:X},z?e.createElement("svg",{"data-event-category":v,"data-event-action":p,"data-event-label":x,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})):e.createElement("svg",{"data-event-category":v,"data-event-action":p,"data-event-label":x,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"})))),e.createElement(Y,{tag:J,style:O,className:"title",as:"lg"===T?"h2":"h3"},e.createElement($,{"data-event-category":E,"data-event-action":g,"data-event-label":b,href:n||"#",target:K},U)),G&&e.createElement("a",{href:n||"#",target:K},e.createElement(s,{size:ee,className:"text"},G))),e.createElement("div",{className:"footer"},"author"===R?e.createElement(Gn,{size:T,avatarImg:o,authorName:l,authorLink:a,uploadTime:q,handleClick:X,isBookmarked:z,dataEventCategoryForBookmark:v,dataEventActionForBookmark:p,dataEventLabelForBookmark:x}):e.createElement(Un,{size:T,isMobile:F,avatarImg:o,specialty:H,name:l,link:a,handleClick:X,isBookmarked:z,dataEventCategoryForBookmark:v,dataEventActionForBookmark:p,dataEventLabelForBookmark:x}))))},Rn=function(t){var n=t.LinkComponent,a=t.page,l=t.isLast,o=t.onChangePage,r=a.label,i=a.value,c=a.isDropdown,s=a.dropdownItems,m=a.dataEventCategory,d=a.dataEventAction,p=a.dataEventLabel;return c?e.createElement(Zt,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:o,className:"collapsed-breadcrumb"}):e.createElement(le,{title:"string"!=typeof r?i:r,"data-last":l},n&&e.createElement(n,{"data-event-category":m,"data-event-action":d,"data-event-label":p,href:i||"#"},r))},qn=function(t){var n=t.className,l=t.pages,r=t.size,i=t.LinkComponent,c=void 0===i?"a":i,s=t.onChangePage,m=t.separator,d=a((function(){return l.map((function(e,t){return l.length>4?t>1&&t<l.length-2?null:1===t?P(P({},e),{isDropdown:1===t,dropdownItems:l.slice(1,l.length-2)}):e:e})).filter(Boolean)}),[l]),p=Ut(d.length);return e.createElement(ne,{"data-size":r,className:n},d.map((function(t,n){var a=n+1===d.length;return e.createElement(o,{key:p[n]},e.createElement(Rn,{LinkComponent:c,page:t,isLast:a,onChangePage:s}),!a&&(m||e.createElement(ae,{"data-size":r})))})))},Kn=function(t){var n=t.name,a=t.values,l=void 0===a?[]:a,o=t.onChanges,r=t.options,i=void 0===r?[]:r,c=t.className,s=t.type,m=void 0===s?"vertical":s,d=t.isDisabled,p=t.isRectangle,u=function(e,t){var n=l.slice();if(t)n.push(e);else{var a=n.findIndex((function(t){return t===e}));n.splice(a,1)}o&&o(n)};return e.createElement(oe,{className:c,"data-type":m,"data-is-rectangle":p||void 0},i.map((function(t,a){return e.createElement(Tn,{label:t.label,name:n,key:"".concat(a,"-").concat(t.value),checked:l.includes(t.value),value:t.value,isDisabled:d||t.disabled,onChange:!d&&u,isRectangle:p})})))},Xn=function(t){var n=t.size,a=t.iconPosition,l=t.className,o=t.children,r=t.icon;return e.createElement(re,{className:l,"data-size":n,"data-icon-position":a},"left"===a&&r,o,"right"===a&&r)},Jn=function(n){var a=n.type,o=n.numberOfStep,i=n.activeStep,c=n.labelPrefix,s=n.detailSteps,m=n.className,d=n.onChange,p=t(0),u=p[0],g=p[1],h=function(t){var n=t.trackClassName,a=V(t,["trackClassName"]);return e.createElement(me,P({},a,{className:n}),e.createElement(de,null))},v=e.createElement(ie,{className:m+" progress-bar"},e.createElement(h,null),e.createElement((function(t){var n=t.trackLength,a=t.activeStep,l=t.labelPrefix,r=void 0===l?"Step":l,i=t.onChange;return e.createElement(e.Fragment,null,Array.from({length:o},(function(e,t){return t})).map((function(t,l){return e.createElement(pe,{"data-is-active":l===a,"data-label":l,style:{left:l*n/(o-1)},onClick:function(){i&&i(l)},key:l},l+1,e.createElement(ue,{"data-step-passed":l<=a},r+" "+(l+1)))})))}),{trackLength:u,activeStep:i,labelPrefix:c,onChange:d})),f=e.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5.5 9.5"},e.createElement("title",null,"chevron-right"),e.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),E=e.createElement(ce,null,s&&Array.from({length:s.length},(function(e,t){return t})).map((function(t,n){var a;return e.createElement(se,{key:n,"data-selected":n===i,onClick:function(){d&&d(n)}},null===(a=s[n])||void 0===a?void 0:a.text," ",n<s.length-1&&f)}))),y=e.createElement(ie,{className:m+" progress-bar"},e.createElement((function(t){var n=t.detailSteps,a=t.activeStep,l=t.onChange,o=Ut(n.length);return e.createElement(e.Fragment,null,Array.from({length:n.length},(function(e,t){return t})).map((function(t,r){return e.createElement(ge,{key:o[r],style:{left:100/n.length*r+"%",width:100/n.length+"%"},onClick:function(){l&&l(r)}},n[r].icon?e.createElement(he,{onClick:function(){l&&l(r)}},n[r].icon):e.createElement(ve,{"data-is-active":r===a,"data-label":t,onClick:function(){l&&l(r)},key:r},r+1),e.createElement(fe,{"data-step-passed":r<a+1},n[r].text,e.createElement(Ee,null,n[r].description)),r<n.length-1&&e.createElement(h,{"data-step-passed":r<a,trackClassName:"progress-track","data-track-type":"detail"}))})))}),{activeStep:i,detailSteps:s,onChange:d})),x=r(Xt((function(){var e=document.querySelector(".progress-bar");e&&g(e.offsetWidth)}),1e3),[]);return l((function(){var e=document.querySelector(".progress-bar");return g(null==e?void 0:e.offsetWidth),window.addEventListener("resize",x),function(){window.removeEventListener("resize",x)}}),[]),"step-track"===a&&v||"breadcrumb"===a&&E||"detail-track"===a&&y},Yn=Object.freeze({__proto__:null,SideMenu:ye,SideHeader:xe,UserInfo:we,MenuLink:be}),Qn=function(t){var n=t.isDisabled,a=t.isLeft,l=t.onClick,o=t.className,r=t.scheme,i=void 0===r?"hellosites":r;return e.createElement(Ne,{onClick:l,"data-is-disabled":n,"data-is-left":a,className:o},e.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a?e.createElement("path",{d:"M2.92902 6.00015L6.75002 2.17915C7.16402 1.76515 7.16402 1.09315 6.75002 0.679152C6.33602 0.265152 5.66402 0.265152 5.25002 0.679152L0.636023 5.29315C0.245023 5.68415 0.245023 6.31715 0.636023 6.70715L5.25002 11.3212C5.66402 11.7352 6.33602 11.7352 6.75002 11.3212C7.16402 10.9072 7.16402 10.2352 6.75002 9.82115L2.92902 6.00015Z",fill:"hellosites"===i?"#595959":"#E55C8A"}):e.createElement("path",{d:"M5.07095 6.00015L1.24995 2.17915C0.835953 1.76515 0.835953 1.09315 1.24995 0.679152C1.66395 0.265152 2.33595 0.265152 2.74995 0.679152L7.36395 5.29315C7.75495 5.68415 7.75495 6.31715 7.36395 6.70715L2.74995 11.3212C2.33595 11.7352 1.66395 11.7352 1.24995 11.3212C0.835953 10.9072 0.835953 10.2352 1.24995 9.82115L5.07095 6.00015Z",fill:"hellosites"===i?"#595959":"#E55C8A"})))},$n=function(n){for(var a=n.row,l=n.column,o=n.children,r=n.scheme,i=void 0===r?"hellosites":r,c=n.classNameLeftArrow,s=void 0===c?"":c,m=n.classNameRightArrow,d=void 0===m?"":m,p=n.mode,u=void 0===p?"snap":p,g=n.isDotsShown,h=void 0===g||g,v=n.isArrowShown,f=void 0!==v&&v,E=n.dataEventCategory,y=n.dataEventAction,x=n.dataEventLabel,w=n.onChangePage,b=e.useState(0),k=b[0],C=b[1],N=t(!1),L=N[0],z=N[1],M=Jt({defaultAnimation:{duration:1e3},initial:0,slideChanged:function(e){C(e.track.details.rel),w&&w(e.track.details.rel)},created:function(){z(!0)},drag:!0,mode:u,slides:{spacing:12}}),_=M[0],B=M[1],F=[],D=a*l,S=0;S<o.length;S+=D){var A=o.slice(S,S+D);F.push(A)}return e.createElement(ke,{row:a,column:l},e.createElement("div",{className:"navigation-wrapper"},e.createElement("div",{ref:_,className:"keen-slider slides-wrapper"},F.map((function(t,n){return e.createElement("div",{key:n,className:"keen-slider__slide page-items"},t.map((function(t,n){return e.createElement("div",{key:n},t)})))}))),L&&B.current&&f&&e.createElement(e.Fragment,null,e.createElement(Qn,{isLeft:!0,onClick:function(e){var t;return e.stopPropagation()||(null===(t=B.current)||void 0===t?void 0:t.prev())},isDisabled:0===k,scheme:i,className:"left-arrow ".concat(s),"data-event-category":E,"data-event-action":y,"data-event-label":x}),e.createElement(Qn,{isLeft:!1,onClick:function(e){var t;return e.stopPropagation()||(null===(t=B.current)||void 0===t?void 0:t.next())},isDisabled:k===B.current.track.details.slides.length-1,scheme:i,className:"right-arrow ".concat(d),"data-event-category":E,"data-event-action":y,"data-event-label":x}))),L&&B.current&&h&&e.createElement("div",{className:"dots"},W([],Array(B.current.track.details.slides.length),!0).map((function(t,n){return e.createElement(Ce,{key:n,onClick:function(){var e;null===(e=B.current)||void 0===e||e.moveToIdx(n)},"data-is-active":k===n,"data-is-hellosites":"hellosites"===i})}))))},ea=function(t){var n=t.type,a=t.description,l=t.value,o=t.withIcon,r=t.isInACard,i=t.cardColor,c=t.className;return e.createElement(Le,{className:c,"data-size":n,"data-is-in-card":"big"===n&&r,"data-card-color":i},e.createElement(ze,null,"small"===n&&e.createElement(Me,{"data-color":i}),a),e.createElement(_e,{"data-size":n},"small"!==n&&o,l))},ta=Object.freeze({__proto__:null,Table:Be,Cell:Fe,Head:De,Row:Se,Body:Ae}),na=function(n){var a=n.style,o=n.initialTab,r=n.tabContent,i=n.onChange,c=n.className,m=n.dataEventCategory,d=n.dataEventAction,p=n.dataEventLabel,u=n.id,g=t(o||0),h=g[0],v=g[1],f=Ut(r.length);return l((function(){v(o)}),[o]),e.createElement(je,{style:a,className:c,role:"tablist",id:u},r.map((function(t,n){return e.createElement(Ie,{"data-is-tab-active":h===n||void 0,"aria-selected":h===n,role:"tab",onClick:function(){v(n),i&&i(n)},onKeyDown:function(e){"Enter"===e.key&&(v(n),i&&i(n))},key:f[n],"data-event-category":m,"data-event-action":d,"data-event-label":p,tabIndex:0},e.createElement(Te,null,t.icon&&e.createElement(He,null,t.icon),e.createElement(s,{size:t.textSize||"sm",type:t.textType||"bold",color:t.textColor||J.colors.gray800,dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name)))})))},aa=function(t){var n=t.thankyou,a=t.thankyouSubtitle,l=t.className,o=t.style;return e.createElement(Pe,{className:l,style:o},e.createElement("div",{className:"survey-inner-wrapper"},e.createElement(We,null,e.createElement("div",{className:"survey-thankyou-wrapper-inner"},e.createElement("svg",{viewBox:"0 0 122 122",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"survey-thankyou-icon"},e.createElement("path",{d:"M61.5 122C94.6371 122 121.5 95.1371 121.5 62C121.5 28.8629 94.6371 2 61.5 2C28.3629 2 1.5 28.8629 1.5 62C1.5 95.1371 28.3629 122 61.5 122Z",fill:"#E3F2FF"}),e.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),e.createElement("path",{d:"M82.9048 72.6663H101.5L87.597 40H35.403L21.5 72.6663H40.0952V91H83.0786L82.9048 72.6663Z",fill:"#2C74DF"}),e.createElement("path",{d:"M74.4004 15.0005H39.863C36.9017 15.0005 34.5 17.4022 34.5 20.3635V72.5769C34.5 75.5383 36.9017 77.9399 39.863 77.9399H83.1357C86.097 77.9399 88.4987 75.5383 88.4987 72.5769V29.0988L88.4987 21.0005C88.4987 17.6868 85.8124 15.0005 82.4987 15.0005H74.4004Z",fill:"white"}),e.createElement("path",{d:"M88.8529 80.1077H34.1469C31.8699 80.1077 30.06 78.3036 30.06 76.0338V65.3837C30.06 63.1139 31.8699 61.3098 34.1469 61.3098H88.8529C91.1299 61.3098 92.9398 63.1139 92.9398 65.3837V76.0338C92.9398 78.3036 91.1299 80.1077 88.8529 80.1077Z",fill:"#E4E8EC"}),e.createElement("path",{d:"M90.838 85.4512H32.1618C29.8849 85.4512 28.075 83.6471 28.075 81.3774V70.7272C28.075 68.4575 29.8849 66.6533 32.1618 66.6533H90.7796C93.0566 66.6533 94.8665 68.4575 94.8665 70.7272V81.3774C94.9249 83.6471 93.0566 85.4512 90.838 85.4512Z",fill:"white"}),e.createElement("path",{d:"M103.748 75.4919V105.755C103.748 107.675 102.172 109.247 100.245 109.247H23.0031C21.0764 109.247 19.5 107.675 19.5 105.755V75.4919C19.5 73.5713 21.0764 72 23.0031 72H42.3866C44.3133 72 45.8897 73.5713 45.8897 75.4919V80.8461C45.8897 81.1952 46.1232 81.428 46.4735 81.428H76.7749C77.1253 81.428 77.3588 81.1952 77.3588 80.8461V75.4919C77.3588 73.5713 78.9352 72 80.8618 72H100.245C102.172 72 103.748 73.5713 103.748 75.4919Z",fill:"#45A4FF"}),e.createElement("path",{d:"M51.9541 91.3767V94.4612C51.9541 96.0907 53.2386 97.3711 54.8733 97.3711H67.7179C69.3526 97.3711 70.6371 96.0907 70.6371 94.4612V91.3767",stroke:"#2C74DF",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M120.5 38.0251C118.5 37.7793 117.25 39.3768 118.125 41.22L118.375 41.9573C119.125 43.8006 118 45.398 116 45.1523L115.25 45.0294C113.25 44.7836 112 46.3811 112.875 48.2244L113.25 48.9616C114 50.8049 112.875 52.4025 110.875 52.1567L110.125 52.0337C108.625 51.9109 107.5 52.7712 107.5 54",stroke:"#FE921D",strokeWidth:"1.9096",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M1.53299 62C1.2644 63.413 2.6745 64.337 4.35323 63.8478L5.02472 63.6304C6.70346 63.087 8.11356 64.0109 7.84496 65.4783L7.7107 66.0217C7.4421 67.4348 8.8522 68.3587 10.5309 67.8696L11.2024 67.6522C12.8812 67.1087 14.2913 68.0326 14.0227 69.5L13.8884 70.0435C13.687 71.1304 14.4256 71.8913 15.5 72",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M118 92C119.381 92 120.5 90.8807 120.5 89.5C120.5 88.1193 119.381 87 118 87C116.619 87 115.5 88.1193 115.5 89.5C115.5 90.8807 116.619 92 118 92Z",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M82.0001 3.18747L83.1875 7.53467L87.5347 6.34727L86.3473 2.00007L82.0001 3.18747Z",stroke:"#00B16A",strokeWidth:"2.1628",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M17.0001 28C18.1046 28 19 27.1045 19 25.9999C19 24.8954 18.1046 24 17.0001 24C15.8955 24 15 24.8954 15 25.9999C15 27.1045 15.8955 28 17.0001 28Z",stroke:"#FE921D",strokeWidth:"2.3278",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M61.5 26.6667C54.136 26.6667 48.1667 32.6361 48.1667 40.0001C48.1667 47.3641 54.136 53.3334 61.5 53.3334C68.864 53.3334 74.8334 47.3641 74.8334 40.0001C74.8334 32.6361 68.864 26.6667 61.5 26.6667ZM69.1094 36.9427L59.776 46.2761C59.516 46.5361 59.1747 46.6667 58.8334 46.6667C58.492 46.6667 58.1507 46.5361 57.8907 46.2761L53.8907 42.2761C53.3694 41.7547 53.3694 40.9121 53.8907 40.3907C54.412 39.8694 55.2547 39.8694 55.776 40.3907L58.8334 43.4481L67.224 35.0574C67.7454 34.5361 68.588 34.5361 69.1094 35.0574C69.6307 35.5787 69.6307 36.4214 69.1094 36.9427Z",fill:"#00CB8A"})),n&&e.createElement(Y,{className:"survey-thankyou-title",tag:"h3"},n),a&&e.createElement(s,{className:"survey-thankyou-subtitle",size:"p3"},a)))))},la=function(n){var a=n.items,o=n.className,r=n.style,i=n.backgroundPanelStyle,c=n.isOpen,s=n.onOpen,m=n.onClose,d=n.disableBackdropClick,p=n.siteType,u=void 0===p?"hb":p,g=n.animationType,h=void 0===g?"zoom":g,v=n.zIndex,f=void 0===v?300:v,E=t(!!c),y=E[0],x=E[1];l((function(){x(!!c)}),[c]);var w=function(){x(!1),m&&m()};return e.createElement(Ve,{style:r,className:o,"data-floatmenu-open":y,"data-site-type":u,"data-animation-type":h},e.createElement(Oe,{className:"float-button-group__panel",style:P({zIndex:f},i),onClick:d?void 0:w}),e.createElement(Ge,{className:"float-button-group___content",style:{zIndex:f}},e.createElement(Ue,null,a.map((function(t,n){return e.createElement(Ze,{className:"float-item-button-".concat(n),style:P(P({},"zoom"===h&&{bottom:64*(a.length-1-n),transitionDelay:"".concat(Re/a.length*(y?a.length-1-n:n),"ms")}),"slide"===h&&{bottom:64*(a.length-1-n),transitionDelay:"".concat(Re/a.length*(y?n:a.length-1-n),"ms")}),key:n,onClick:function(){t.onClick(),t.keepMenuOnClick||x(!1)}},e.createElement(qe,{style:P({},"zoom"===h&&{transitionDelay:"".concat(Re/a.length*(y?a.length-1-n:n),"ms")})},t.label),e.createElement(Ke,{className:"float-item-button__icon-wrapper",style:P({},("zoom"===h||"slide"===h)&&{transitionDelay:"".concat(Re/a.length*(y?a.length-1-n:n),"ms")})},t.icon))}))),e.createElement(Xe,{onClick:y?w:function(){x(!0),s&&s()}})))},oa=function(t){var n=t.className,a=t.policiesUrl,l=t.onAcceptClick,o=t.translations,r=void 0===o?{acceptButton:"Accept",policiesButton:"Our Policies"}:o,i=t.title,c=void 0===i?"":i,s=t.description,m=void 0===s?"":s,d=t.theme,p=void 0===d?"helloSites":d,u=t.isOpen,g=void 0===u||u,h=t.useDefaultPosition,v=void 0===h||h,f=t.trackingAttributes;return e.createElement(Je,{className:n,"data-theme":p,"data-is-open":g,"data-default-position":v},e.createElement(Ye,{"data-has-content":!!c},c),e.createElement(Qe,{dangerouslySetInnerHTML:{__html:m}}),e.createElement($e,null,e.createElement(et,{role:"button",tabIndex:0,on:"tap:consent-element.accept",onClick:l,"data-event-category":null==f?void 0:f.dataEventCategory,"data-event-action":null==f?void 0:f.dataEventAction,"data-event-label":null==f?void 0:f.dataEventLabel},r.acceptButton),e.createElement(tt,{href:a},r.policiesButton)))},ra=function(t){var n,a,l,o,r,i,c,s,m,d,p,u,g,h,v,f,E,y,x,w=t.SEOData,b=void 0===w?{}:w,k=t.isAmp,C=void 0!==k&&k,N=t.locale,L=void 0===N?"vi-VN":N,z=t.routerPathname,M=t.routerQuery,_=t.nextHead,B=t.siteType,F=t.seoCustom,D=t.userId,S=t.forcedCanonicalUrl,A=b.totalPages,j=b.currentPage,I=b.SEOTitle,T=void 0===I?"":I,H=b.SEODescription,V=void 0===H?"":H,O=b.SEOImage,G=b.seoType,U=b.SEOImageWidth,Z=b.SEOImageHeight,R=b.customMetaData,q=void 0===R?[]:R,K=b.isIndexable,X=void 0===K||K,J=b.hasNoCanonical,Y=void 0!==J&&J,Q=X&&gn?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",$=process.env.NEXT_PUBLIC_BASE_API_URL,ee=b.canonicalUrl||z;Object.keys(M).forEach((function(e){var t=M[e];t&&Array.isArray(t)&&(ee=ee.replace("[...".concat(e,"]"),t.join("/")))}));var te,ne=L||"en-PH",ae="helloSites"===B?dn[ne]:"www.marrybaby.vn",le=ee.endsWith("/")?"":"/";if(b.apiMetaData&&"string"==typeof b.apiMetaData){var oe=null===(n=b.apiMetaData)||void 0===n?void 0:n.match(/<title.*?>(.*)<\/title>/),re=" - Page ".concat(j," of ").concat(A),ie=j&&1!==j&&oe?b.apiMetaData.replace(oe[0],oe[0].includes("-")?oe[0].replace("-",re+" - "):"<title>".concat(oe[1].concat(re),"</title>")).replace('<link rel="canonical" href="https://'.concat(ae).concat(ee).concat(le,'" />'),'<link rel="canonical" href="https://'.concat(ae).concat(ee).concat(le,"?page=").concat(j,'" />')):b.apiMetaData,ce=(te=nt(ie,{trim:!0})).find((function(e){var t,n;return"og:image"===(null===(t=e.props)||void 0===t?void 0:t.property)||"og:image:secure_url"===(null===(n=e.props)||void 0===n?void 0:n.property)}));if(!ce){var se="https://".concat(ae,"/images/").concat(L,".png");te=W(W([],te,!0),[e.createElement("meta",{key:"og:image",property:"og:image",content:(null===(a=b.openGraph)||void 0===a?void 0:a.image)||se||""}),e.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(l=b.openGraph)||void 0===l?void 0:l.image)||se}),e.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(o=b.openGraph)||void 0===o?void 0:o.imageWidth)&&String(null===(r=b.openGraph)||void 0===r?void 0:r.imageWidth)||"1200"}),e.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(i=b.openGraph)||void 0===i?void 0:i.imageHeight)&&String(null===(c=b.openGraph)||void 0===c?void 0:c.imageHeight)||"630"})],!1)}}var me="https://".concat(ae,"/images/").concat(L,".png");return e.createElement(_,null,e.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===B&&e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter&family=Krub:wght@600&display=swap",rel:"stylesheet"}),"km-KH"===L?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"id-ID"===L||"ms-MY"===L?e.createElement(e.Fragment,null):e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap",rel:"preload",as:"style"}),e.createElement("link",{rel:"preconnect",href:$}),e.createElement("meta",{charSet:"UTF-8"}),!C&&e.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),e.createElement("meta",{name:"google",content:"notranslate"}),e.createElement("meta",{name:"robots",content:Q}),e.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),q.map((function(t,n){return e.createElement("meta",P({key:n},t))})),e.createElement("meta",{name:"theme-color",content:"helloSites"===B?"#2c87f3":"#e85388"}),e.createElement("meta",{name:"page_type",content:"Home"}),e.createElement("meta",{name:"page_platform",content:"WEB"}),e.createElement("meta",{name:"page_language",content:ne}),e.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),C&&e.createElement(e.Fragment,null,e.createElement("script",{async:!0,"custom-element":"amp-analytics",src:"https://cdn.ampproject.org/v0/amp-analytics-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-fx-collection",src:"https://cdn.ampproject.org/v0/amp-fx-collection-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-ad",src:"https://cdn.ampproject.org/v0/amp-ad-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-next-page",src:"https://cdn.ampproject.org/v0/amp-next-page-1.0.js"}),e.createElement("script",{async:!0,"custom-element":"amp-sticky-ad",src:"https://cdn.ampproject.org/v0/amp-sticky-ad-1.0.js"}),e.createElement("script",{async:!0,"custom-element":"amp-social-share",src:"https://cdn.ampproject.org/v0/amp-social-share-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-bind",src:"https://cdn.ampproject.org/v0/amp-bind-0.1.js"})),!te&&e.createElement(e.Fragment,null,"helloSites"===B?e.createElement("title",null,F?T:T+" - "+(null===(s=pn[L])||void 0===s?void 0:s.SITE_NAME)):e.createElement("title",null,T),!Y&&e.createElement("link",{rel:"canonical",href:"https://".concat(ae).concat(ee)}),e.createElement("meta",{name:"description",content:V||(null===(m=b.openGraph)||void 0===m?void 0:m.description)}),b.schemaData&&e.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:b.schemaData}}),e.createElement("meta",{property:"og:locale",content:L}),e.createElement("meta",{property:"og:type",content:G||"website"}),e.createElement("meta",{property:"og:title",content:(null===(d=b.openGraph)||void 0===d?void 0:d.title)||T}),e.createElement("meta",{property:"og:description",content:(null===(p=b.openGraph)||void 0===p?void 0:p.description)||V}),e.createElement("meta",{property:"og:url",content:"https://".concat(ae).concat(ee)}),e.createElement("meta",{property:"og:site_name",content:"https://".concat(ae)}),e.createElement("meta",{property:"og:image",content:(null===(u=b.openGraph)||void 0===u?void 0:u.image)||O||me||""}),e.createElement("meta",{property:"og:image:secure_url",content:(null===(g=b.openGraph)||void 0===g?void 0:g.image)||O||me}),e.createElement("meta",{property:"og:image:width",content:(null===(h=b.openGraph)||void 0===h?void 0:h.imageWidth)&&String(null===(v=b.openGraph)||void 0===v?void 0:v.imageWidth)||U&&String(U)||"1200"}),e.createElement("meta",{property:"og:image:height",content:(null===(f=b.openGraph)||void 0===f?void 0:f.imageHeight)&&String(null===(E=b.openGraph)||void 0===E?void 0:E.imageHeight)||Z&&String(Z)||"630"}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"twitter:title",content:(null===(y=b.twitter)||void 0===y?void 0:y.title)||T}),e.createElement("meta",{name:"twitter:description",content:V}),e.createElement("meta",{name:"twitter:image",content:(null===(x=b.twitter)||void 0===x?void 0:x.image)||O})),("helloSites"===B?un[ne]||[]:un.marryBaby).map((function(t,n){return"link"===t.type?e.createElement("link",{key:"favicon-".concat(n),rel:t.rel,href:t.href,sizes:t.sizes}):"meta"===t.type?e.createElement("meta",{key:n,name:t.name,content:t.content}):null})),Array.isArray(te)&&S?te.filter((function(e){return"canonical"!==e.props.name&&"canonical"!==e.props.rel})):te,S&&e.createElement("link",{rel:"canonical",href:S}),!b.hasNoAmp&&"vi-VN"!==L&&e.createElement("link",{rel:"amphtml",href:"https://".concat(ae).concat(ee).concat(le,"?amp=1")}),D&&"undefined"!=typeof window?e.createElement("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '".concat(D,"'});")}}):null)},ia=function(t){var n=t.className,a=t.heading,l=t.isMobile,o=t.bannerUrl,r=t.bannerUrlLarge,i=t.medicalReview,c=t.icon,s=t.style,m=l?"h5":"h4",d=l?o:r||o;return e.createElement(at,{"data-is-mobile":l,style:s},e.createElement(lt,{className:n,"data-banner-url":d,"data-is-mobile":l},e.createElement(j,{className:"container"},e.createElement(ot,null,e.createElement(rt,{"data-is-mobile":l},e.createElement(it,{"data-is-mobile":l},e.createElement(Y,{color:J.colors.white,tag:m,as:"h2"},a)),i&&e.createElement(ct,{"data-is-mobile":l},i)),e.createElement(st,null,c)))))},ca=function(t){var n,a=t.isMobile,l=t.locale,o=t.onSubmitDueDate,r=t.dueDatePageInfo,i=t.expertUrl,c=vn().t;return e.createElement(mt,null,e.createElement(ia,{isEmbed:!0,bannerUrl:Yt.getAssetPath("embedToolBannerPink.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:(null==r?void 0:r.featured_image)||"https://hellobacsi.com/images/due-date-icon.svg",style:{objectFit:"contain",marginLeft:"auto"}}),heading:c("healthTools.dueDateCalculator"),medicalReview:(null===(n=null==r?void 0:r.reviewed_by)||void 0===n?void 0:n.display_name)?e.createElement(s,{size:"n1",color:J.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:c("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat(i,'"\n >\n ').concat(null==r?void 0:r.reviewed_by.display_name,"\n </a>"),date:null==r?void 0:r.reviewed_date})}}),e.createElement("span",null)):void 0,isMobile:a}),e.createElement(j,null,e.createElement(dt,{className:"due-date-cal"},e.createElement(pt,{locale:l,onSubmitDueDate:o}))))},sa=function(t){var n=t.src,a=t.title,l=t.backgroundSrc,o=t.className,r=t.reviewedSection,i=t.isAmp;return e.createElement(ut,{className:o},e.createElement(gt,{style:{backgroundImage:'url("'.concat(l,'")')}},e.createElement(ht,null,e.createElement(vt,null,e.createElement(Y,{tag:"h4",color:"white"},a),r),e.createElement(ft,null,i?e.createElement("amp-img",{src:n||"",alt:a,width:"140",height:"140"}):e.createElement("img",{src:n||"",style:{objectFit:"contain"},alt:a})))))},ma=function(t){var n,a,l,o=t.backgroundDesktopSrc,r=t.backgroundMobileSrc,i=t.title,c=t.className,m=t.isMobile,d=t.isAmp,p=t.ovulationContent,u=vn().t,g=Rt(null==p?void 0:p.reviewed_by);return e.createElement(Et,{className:c},e.createElement(yt,{style:{backgroundImage:"url('".concat(r||o,"')")}},e.createElement(xt,null,e.createElement(Y,{tag:"h5",color:"white"},i),(null===(n=null==p?void 0:p.reviewed_by)||void 0===n?void 0:n.display_name)?e.createElement(s,{size:"n1",color:"white",style:{marginTop:"0.3rem"}},e.createElement("span",{dangerouslySetInnerHTML:{__html:u("articlePage.articleReviewerBy",{name:'<a\n style="color: white"\n href="'.concat(g,'"\n >\n ').concat(p.reviewed_by.display_name,"\n </a>")})}}),e.createElement("span",null,u("tools.heading.on")),e.createElement("span",null,null==p?void 0:p.reviewed_date)):null),e.createElement(wt,null,d?e.createElement("amp-img",{src:(null==p?void 0:p.featured_image)||"",alt:i,width:"100%",height:"100%"}):e.createElement("img",{src:(null==p?void 0:p.featured_image)||"",style:{width:"100%",objectFit:"contain",marginTop:"20px"},alt:i}))),e.createElement(sa,{className:"desktop-only",src:(null==p?void 0:p.featured_image)||"",backgroundSrc:o||r||"",title:i,reviewedSection:(null===(a=null==p?void 0:p.reviewed_by)||void 0===a?void 0:a.display_name)&&""!==(null===(l=null==p?void 0:p.reviewed_by)||void 0===l?void 0:l.display_name)&&e.createElement(s,{size:"n1",color:J.colors.white,style:{marginTop:12}},e.createElement("span",{dangerouslySetInnerHTML:{__html:u("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat(g,'"\n >\n ').concat(p.reviewed_by.display_name,"\n </a>"),date:null==p?void 0:p.reviewed_date})}}),e.createElement("span",null)),isMobile:m}))},da=function(t){var n=t.onSubmitOvulation,a=t.locale,l=t.ovulationPageInfo,o=t.ovulationContent,r=t.isMobile,i=vn().t,c=qt(l||null);return e.createElement(mt,null,e.createElement(ma,{backgroundDesktopSrc:Yt.getAssetPath("embedToolBannerPink.svg"),backgroundMobileSrc:Yt.getAssetPath("embedToolBannerPink.svg"),title:i("healthTools.ovulationCalculator"),reviewedBy:c.reviewedBy,reviewedDate:c.reviewedDate,ovulationContent:o,isMobile:r}),e.createElement(j,null,e.createElement(dt,{className:"ovulation-cal"},e.createElement(bt,{locale:a,onSubmitOvulation:n}))))},pa=function(n){var a=n.info,o=n.onChange,r=n.errorMessage,i=void 0===r?{}:r,c=vn().t,s=t({weightBefore:!1,height:!1,weight:!1}),m=s[0],d=s[1],p=function(e,t){""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)};return l((function(){o&&o(P({},a))}),[]),l((function(){d({weightBefore:!1,height:!1,weight:!1})}),[i]),e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg"},e.createElement(I,{className:"input-section",label:e.createElement("span",{style:{color:J.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},c("pregnancyWeightGain.heightInput")," ",e.createElement("span",{style:{color:"".concat(J.colors.gray300)}},c("bmi.heightInput.desc"))),errorMessage:m.height?"":null==i?void 0:i.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==a?void 0:a.height,onChange:function(e){p(e,(function(e){d((function(e){return P(P({},e),{height:!0})}));var t=P(P({},a),{height:e});o&&o(t)}))}})),e.createElement("div",{className:"input-form-pwg"},e.createElement(I,{className:"input-section",label:e.createElement("span",{style:{color:J.colors.gray600,fontWeight:"bold",marginBottom:"9px",flex:"1"},className:"label-text"},c("pregnancyWeightGain.weightBeforeInput")," ",e.createElement("span",{style:{color:"".concat(J.colors.gray300)}},c("pregnancyWeightGain.weightInput.desc"))),errorMessage:m.weightBefore?"":null==i?void 0:i.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:function(e){p(e,(function(e){d((function(e){return P(P({},e),{weightBefore:!0})}));var t=P(P({},a),{weightBefore:e});o&&o(t)}))},value:null==a?void 0:a.weightBefore})),e.createElement("div",{className:"input-form-pwg"},e.createElement(I,{className:"input-section",label:e.createElement("span",{style:{color:J.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},c("pregnancyWeightGain.weightInput")," ",e.createElement("span",{style:{color:"".concat(J.colors.gray300)}},c("pregnancyWeightGain.weightInput.desc"))),errorMessage:m.weight?"":null==i?void 0:i.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==a?void 0:a.weight,onChange:function(e){p(e,(function(e){d((function(e){return P(P({},e),{weight:!0})}));var t=P(P({},a),{weight:e});o&&o(t)}))}})))},ua=function(n){var l,o,r=n.locale,i=n.onClick,c=n.inputErrorMessage,m=n.pwgContent,d=n.onFormChange,p=n.info,u=n.isMobile,g=vn().t,h=t(!1),v=h[0],f=h[1],E=t("notwins"),y=E[0],x=E[1],w=t({label:"0",value:0}),b=w[0],k=w[1],C=a((function(){return W([],Array(41),!0).map((function(e,t){return{label:"".concat(t),value:"".concat(t)}}))}),[]),N=fn(r).getHealthToolLink,L=a((function(){return N(Kt.PWG)}),[N]),z=(null===(l=null==m?void 0:m.reviewedBy)||void 0===l?void 0:l.display_name)?e.createElement(s,{size:"p4",color:J.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:g("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat(Rt(null==m?void 0:m.reviewedBy),'"\n >\n ').concat(null===(o=null==m?void 0:m.reviewedBy)||void 0===o?void 0:o.display_name,"\n </a>"),date:null==m?void 0:m.reviewedDate})}}),e.createElement("span",null)):void 0;return e.createElement(mt,null,e.createElement(ia,{bannerUrl:Yt.getAssetPath("embedToolBannerPink.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:m.featuredImage||"https://hellobacsi.com/images/pwg-icon.svg",style:{objectFit:"contain",marginLeft:"auto"}}),heading:g("pregnancyWeightGain.heading"),medicalReview:z,isMobile:u}),e.createElement(j,null,e.createElement(dt,{className:"pwg-view-mobile"},e.createElement(kt,{className:"hide-asking-mobile"},e.createElement(T,{size:"label2",style:{display:"block",fontWeight:"bold",color:J.colors.gray600},className:"label",htmlFor:"gender-selector"},g("pregnancyWeightGain.havingTwins")),e.createElement(Ct,{options:[{value:"twins",label:g("switchBtn.yes")},{value:"notwins",label:g("switchBtn.no")}],value:y,onChange:function(e){return x(e)},className:"gender-selector",id:"twins-mobile-check",type:"circle",direction:"horizontal",size:"small",group:"group1"})),e.createElement(Nt,null,e.createElement(hn,{checked:v,onChange:function(){return f(!v)}}),e.createElement(T,{size:"label2",style:{display:"inline-block",color:J.colors.gray800,fontSize:"14px"},htmlFor:"gender-selector"},g("tool.askChecking"))),e.createElement(Lt,null,e.createElement(zt,{className:"input-section input-form"},e.createElement(T,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:J.colors.gray600,fontWeight:"bold",fontSize:"13px",flex:"1"},htmlFor:"gender-selector"},g("pregnancyWeightGain.weekInput")),e.createElement(Zt,{options:C,placeholder:String(b.label),id:"weight-gain-dropdown",size:"md",value:b,onChange:function(e){return k({label:e.label,value:e.value})}})),e.createElement(pa,{info:p,errorMessage:c,onChange:d})),e.createElement(kt,{className:"hide-asking-desk"},e.createElement(T,{size:"label2",style:{display:"block",fontWeight:"bold",color:J.colors.gray600},className:"label",htmlFor:"gender-selector"},g("pregnancyWeightGain.havingTwins")),e.createElement(Ct,{options:[{value:"twins",label:g("switchBtn.yes")},{value:"notwins",label:g("switchBtn.no")}],value:y,onChange:function(e){return x(e)},className:"gender-selector",id:"twins-desk-check",type:"circle",direction:"horizontal",size:"small",group:"group1"})),e.createElement(Mt,null,e.createElement(X,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:"https://".concat(dn[r],"/").concat(L),className:"due-date-calculate-button",size:"lg",color:"primary",onClick:function(){return i(y,b.value)}},g("dueDatePage.lastPeriod.calculate"))))))},ga=function(t){var n=t.ampNextArticles,a=(null==n?void 0:n.filter(Boolean))||[];if(!(null==a?void 0:a.length))return null;return e.createElement("amp-next-page",null,e.createElement("script",{type:"application/json",dangerouslySetInnerHTML:{__html:JSON.stringify(a.map((function(e){return{image:e.image||"",title:e.title?JSON.stringify(e.title):"",url:e.link||""}})))}}),e.createElement("div",P({},{separator:""},{className:"amp-page-seperator",style:{color:"#8C8C8C",textTransform:"uppercase",fontSize:11,fontWeight:700,marginLeft:16}}),"Next article:"))},ha=function(){return"undefined"!=typeof window&&window.innerWidth<R.BREAK_POINT_MOBILE},va=function(){return"undefined"!=typeof window&&window.innerWidth>=R.BREAK_POINT_MOBILE&&window.innerWidth<R.BREAK_POINT_PC};var fa={"en-PH":yn,"vi-VN":wn,"zh-TW":bn,"id-ID":xn};function Ea(n){var o=n.value,r=void 0===o?{from:null,to:null}:o,i=t(null),c=i[0],s=i[1],m=function(){var e=t(ha()),n=e[0],a=e[1],o=t(va()),r=o[0],i=o[1];return l((function(){var e=function(){a(ha()),i(va())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),{isMobile:n,isLargeMobile:r}}().isMobile,d=t((function(){return r})),p=d[0],u=d[1],g=t((function(){var e;return $t(null!==(e=r.from)&&void 0!==e?e:new Date)})),h=g[0],v=g[1],f=a((function(){return en(h,1)}),[h]);var E=P(P({},n),{goToNextMonth:function(){v((function(e){return en(e,1)}))},goToPreviousMonth:function(){v((function(e){return nn(e,1)}))},range:p,setRange:u,hoverDay:c,setHoverDay:s});return e.createElement(e.Fragment,null,e.createElement(ya,P({},E,{date:h})),!m&&e.createElement(_t,null),!m&&e.createElement(ya,P({},E,{date:f})))}function ya(t){var n=t.date,o=t.range,r=t.setRange,i=t.onChange,c=t.goToPreviousMonth,s=t.goToNextMonth,m=t.minDate,d=t.maxDate,p=t.close,u=void 0===p?function(){}:p,g=t.autoClose,h=void 0!==g&&g,v=t.hoverDay,f=t.setHoverDay,E=vn().locale,y=a((function(){var e;return null!==(e=fa[E])&&void 0!==e?e:fa["en-PH"]}),[E]),x=a((function(){return tn(n,"MMMM",{locale:y})}),[n,y]),w=a((function(){return y?[1,2,3,4,5,6,0].map((function(e){return y.localize.day(e,{width:"narrow"})})):[]}),[y]);function b(t,n){if(null===t)return e.createElement(Ht,{key:"idx-".concat(n),"data-empty":"true"});var a=t.getDate(),l=ln(t),i=!!o.from&&on(o.from,t),c=!!o.to&&on(o.to,t),s=i||c,p=!1;null!==v&&o.from&&Qt(o.from,v)&&!o.to?p=rn(t,{start:o.from,end:v}):o.from&&o.to&&(p=rn(t,{start:o.from,end:o.to}));var g=!1;return m&&d?g=!rn(t,{start:m,end:d}):m?g=Qt(t,m):d&&(g=cn(t,d)),e.createElement(Ht,{key:a,"data-is-today":l,"data-is-past":!l&&sn(t),"data-is-selected":s,"data-is-disabled":g,"data-in-range":p,"data-is-from":i,"data-is-to":c,onMouseEnter:function(){f(t)},onMouseLeave:function(){return f(null)},onClick:function(){g||r((function(e){return h&&o.from&&!o.to&&u(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?Qt(e,t.from)?P(P({},t),{from:e}):P(P({},t),{to:e}):t:P(P({},t),{from:e})}(t,e)}))}},e.createElement(Pt,{onClick:function(){}},e.createElement("p",null,a)))}return l((function(){o.from&&o.to&&i(o)}),[o]),e.createElement(Bt,{className:"calendar-wrapper"},e.createElement(Ft,null,e.createElement(X,{onClick:c,size:"md",color:"ghost",icon:e.createElement("img",{src:Yt.getAssetPath("calendarArrowLeft.svg")})}),e.createElement("div",{className:"calendar-month"},x,e.createElement("strong",null,tn(n,"yyyy"))),e.createElement(X,{onClick:s,size:"md",color:"ghost",icon:e.createElement("img",{src:Yt.getAssetPath("calendarArrowRight.svg")})})),e.createElement(Dt,null,e.createElement("div",null,e.createElement(St,null,w.map((function(t,n){return e.createElement(At,{key:"".concat(t,"-").concat(n)},t)})))),e.createElement("div",null,function(){for(var t=n.getFullYear(),a=n.getMonth(),l=an(n),r=[],i=1;i<=l;i++)r.push(new Date(t,a,i));var c=r[0]?r[0].getDay():0;if(1!==c){var s=0===c?6:c-1;for(i=0;i<s;i++)r.unshift(null)}return e.createElement(jt,{key:"month-".concat(a),"data-month-index":a,"data-has-range":Boolean(o.from&&o.to)},e.createElement(It,null,e.createElement(Tt,null,r.map(b))))}())))}function xa(l){var o=l.inputSize,r=void 0===o?"md":o,i=l.name,c=void 0===i?"date-range-picker":i,s=l.value,m=l.minDate,d=l.maxDate,p=l.onChange,u=l.className,g=l.autoClose,h=void 0!==g&&g;s||(s={from:null,to:null});var v=t(!1),f=v[0],E=v[1];function y(){E(!1)}var x=n(null);function w(e){p&&p(e)}function b(e){return tn(e,"dd/MM/yyyy")}En(x,(function(){y()}));var k=a((function(){return s.from&&s.to?on(s.from,s.to)?b(s.from):"".concat(b(s.from)," - ").concat(b(s.to)):""}),[s.from,s.to]);return e.createElement(Wt,{className:[u,f&&"focused"].filter(Boolean).join(" "),ref:x},e.createElement("label",{htmlFor:c},e.createElement(I,{size:r,value:k,name:c,actionIcon:e.createElement("img",{src:Yt.getAssetPath("calendar.svg")}),onFocus:function(){return E(!0)}})),f?e.createElement(Vt,{onMouseDown:function(e){e.stopPropagation()}},e.createElement(Ea,{value:s,onChange:w,minDate:m,maxDate:d,close:y,autoClose:h})):null)}var wa,ba,ka=function(){return e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6.86364 10.6666H5.22727C4.86912 10.6666 4.51448 10.5977 4.18359 10.4637C3.8527 10.3296 3.55205 10.1332 3.2988 9.8856C2.78734 9.3855 2.5 8.70722 2.5 7.99998C2.5 7.29274 2.78734 6.61446 3.2988 6.11436C3.81026 5.61426 4.50396 5.33331 5.22727 5.33331H6.86364M9.78374 5.33331H11.7727C12.1309 5.33331 12.4855 5.40229 12.8164 5.5363C13.1473 5.67031 13.4479 5.86674 13.7012 6.11436C13.9545 6.36198 14.1553 6.65596 14.2924 6.97949C14.4295 7.30303 14.5 7.64979 14.5 7.99998C14.5 8.35017 14.4295 8.69693 14.2924 9.02047C14.1553 9.344 13.9545 9.63798 13.7012 9.8856C13.4479 10.1332 13.1473 10.3296 12.8164 10.4637C12.4855 10.5977 12.1309 10.6666 11.7727 10.6666H9.78374",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}))},Ca=function(t){var n=t.url,a=t.onCopied,l=t.locale,o=vn().t,r=kn(n||"").filter((function(e){return!e.allowedLocales||e.allowedLocales.includes(l)}));return e.createElement(Ot,null,e.createElement(s,{size:"p3",color:J.colors.gray800},o("shareContainer.title")),e.createElement("div",{className:"icon-group"},r.map((function(t,n){return e.createElement("a",{key:n,href:t.href,target:"_blank",rel:"noreferrer"},t.icon)})),e.createElement(X,{size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:e.createElement(ka,null),onClick:function(){return O(void 0,void 0,void 0,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return[4,null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(n)];case 1:return t.sent(),null==a||a(),[2]}}))}))}})))},Na=function(){return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"copy"},e.createElement("path",{d:"M4 2.5C3.17125 2.5 2.5 3.17125 2.5 4V13.75C2.5 14.164 2.836 14.5 3.25 14.5C3.664 14.5 4 14.164 4 13.75V4H13.75C14.164 4 14.5 3.664 14.5 3.25C14.5 2.836 14.164 2.5 13.75 2.5H4ZM7 5.5C6.17125 5.5 5.5 6.17125 5.5 7V16C5.5 16.8287 6.17125 17.5 7 17.5H16C16.8287 17.5 17.5 16.8287 17.5 16V7C17.5 6.17125 16.8287 5.5 16 5.5H7ZM7 7H16V16H7V7Z",fill:"#595959"}))},La=function(t){var n=t.open,a=t.title,o=t.onClose,i=t.onCopied,c=t.onShared,m=t.url,d=t.locale,p=V(t,["open","title","onClose","onCopied","onShared","url","locale"]),u=vn().t,g=r((function(){return O(void 0,void 0,void 0,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return[4,null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(m)];case 1:return t.sent(),null==i||i(),[2]}}))}))}),[m,i]),h=kn(m||"").filter((function(e){return!e.allowedLocales||e.allowedLocales.includes(d)}));return l((function(){n&&navigator.share&&navigator.share({title:null!=a?a:"Read This Post",url:m}).then((function(){null==c||c()})).catch((function(){null==o||o()}))}),[m,a,c,n]),"undefined"!=typeof navigator&&navigator.share?null:e.createElement(Gt,P({title:u("share.title"),onClose:o,open:n,placement:"bottom"},p),e.createElement("div",{className:"share-container"},e.createElement("div",{className:"icon-container"},e.createElement(s,{type:"semiBold",size:"s3",color:J.colors.gray600},u("share.title")),e.createElement("div",{className:"icon-group"},h.map((function(t,n){return e.createElement("a",{key:n,href:t.href,target:"_blank",rel:"noreferrer"},t.icon)})))),e.createElement("div",{className:"link-container"},e.createElement(s,{type:"semiBold",size:"s3",color:J.colors.gray600},u("share.copyLink")),e.createElement("div",{className:"input-group"},e.createElement(Cn,{name:"link",size:"md",value:m,isDisabled:!0}),e.createElement(X,{size:"md",type:"button",color:"tertiary",icon:e.createElement(Na,null),onClick:g})))))},za=mn.footer(wa||(wa=U(["\n background-color: #1b3250;\n\n .inner {\n padding: 64px 24px 98px 24px;\n "," {\n padding: 64px 0;\n }\n margin: 0 auto;\n //max-width: 1168px;\n\n &[data-type='mini'] {\n padding: 24px 0;\n }\n }\n\n .footer-logo {\n max-width: 132px;\n max-height: 32px;\n margin-bottom: 24px;\n &[data-is-sehat='true'] {\n max-width: 250px;\n }\n\n img {\n object-fit: contain;\n }\n }\n\n .social {\n margin-top: 24px;\n\n "," {\n margin-top: 32px;\n p {\n font-size: 13px;\n }\n }\n\n "," {\n p {\n font-size: 12px;\n }\n }\n\n p {\n color: ",";\n }\n }\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n\n .social-icon {\n width: 32px;\n height: 32px;\n }\n }\n\n .newsletter {\n > p {\n color: ",";\n\n font-size: 14px;\n line-height: 22px;\n\n "," {\n max-width: 380px;\n line-height: 28.5px;\n }\n }\n }\n\n hr {\n height: 1px;\n border: none;\n margin: 16px 0 16px 0;\n "," {\n margin-top: 0px;\n }\n background: ",";\n opacity: 0.1;\n outline: none;\n }\n\n .hrMobile {\n "," {\n display: none;\n }\n }\n\n .copyright {\n padding-top: 8px;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n }\n\n .copyright-content {\n width: 90%;\n color: ",";\n font-size: 12px;\n }\n\n .copyright-image-wrapper {\n flex-shrink: 0;\n flex-wrap: wrap;\n display: flex;\n max-width: 35%;\n justify-content: flex-end;\n "," {\n justify-content: flex-start;\n max-width: unset;\n }\n .copyright-image {\n &:not(:last-child) {\n margin-right: 0.5rem;\n }\n align-self: flex-start;\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n }\n }\n }\n\n &[data-is-amp='true'] {\n img {\n margin-bottom: 0;\n }\n }\n }\n\n .copyright-certificate {\n color: ",";\n "," {\n font-size: 11px;\n }\n "," {\n font-size: 12px;\n }\n }\n\n .biglinks {\n margin-bottom: 12px;\n }\n\n .bigLink {\n display: block;\n color: ",";\n font-size: 14px;\n font-weight: ",";\n text-decoration: none;\n word-break: break-word;\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n\n "," {\n display: inline-block;\n width: 50%;\n font-size: 16px;\n }\n }\n\n .mHalf {\n display: inline-block;\n width: 50%;\n padding-right: 24px;\n margin-bottom: 24px;\n vertical-align: top;\n\n p {\n color: ",";\n\n "," {\n margin-bottom: 8px;\n font-size: 13px;\n line-height: 20px;\n }\n "," {\n margin-bottom: 12px;\n font-size: 14px;\n }\n }\n }\n\n .otherSites {\n p {\n margin-bottom: 12px;\n color: ",";\n font-size: 12px;\n "," {\n font-size: 13px;\n }\n "," {\n font-size: 13px;\n }\n }\n\n .flags {\n display: flex;\n margin-bottom: 8px;\n\n div {\n margin-right: 10px;\n }\n }\n }\n\n .link {\n display: block;\n text-decoration: none;\n\n p {\n color: ",";\n font-weight: ",";\n word-break: break-word;\n }\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n\n .columns {\n "," {\n display: flex;\n flex-direction: row;\n width: 100%;\n\n > div:nth-child(1) {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-basis: 40%;\n }\n\n > div:nth-child(2) {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: 60%;\n\n > div:nth-child(1) {\n flex-basis: 45%;\n }\n\n > div:not(:last-child) {\n flex-basis: 27.5%;\n }\n\n > div:last-child() {\n flex-basis: 0;\n }\n }\n }\n }\n\n .signupButton {\n display: none;\n border: none;\n margin-top: 16px;\n outline: none;\n text-transform: uppercase;\n }\n"],["\n background-color: #1b3250;\n\n .inner {\n padding: 64px 24px 98px 24px;\n "," {\n padding: 64px 0;\n }\n margin: 0 auto;\n //max-width: 1168px;\n\n &[data-type='mini'] {\n padding: 24px 0;\n }\n }\n\n .footer-logo {\n max-width: 132px;\n max-height: 32px;\n margin-bottom: 24px;\n &[data-is-sehat='true'] {\n max-width: 250px;\n }\n\n img {\n object-fit: contain;\n }\n }\n\n .social {\n margin-top: 24px;\n\n "," {\n margin-top: 32px;\n p {\n font-size: 13px;\n }\n }\n\n "," {\n p {\n font-size: 12px;\n }\n }\n\n p {\n color: ",";\n }\n }\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n\n .social-icon {\n width: 32px;\n height: 32px;\n }\n }\n\n .newsletter {\n > p {\n color: ",";\n\n font-size: 14px;\n line-height: 22px;\n\n "," {\n max-width: 380px;\n line-height: 28.5px;\n }\n }\n }\n\n hr {\n height: 1px;\n border: none;\n margin: 16px 0 16px 0;\n "," {\n margin-top: 0px;\n }\n background: ",";\n opacity: 0.1;\n outline: none;\n }\n\n .hrMobile {\n "," {\n display: none;\n }\n }\n\n .copyright {\n padding-top: 8px;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n }\n\n .copyright-content {\n width: 90%;\n color: ",";\n font-size: 12px;\n }\n\n .copyright-image-wrapper {\n flex-shrink: 0;\n flex-wrap: wrap;\n display: flex;\n max-width: 35%;\n justify-content: flex-end;\n "," {\n justify-content: flex-start;\n max-width: unset;\n }\n .copyright-image {\n &:not(:last-child) {\n margin-right: 0.5rem;\n }\n align-self: flex-start;\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n }\n }\n }\n\n &[data-is-amp='true'] {\n img {\n margin-bottom: 0;\n }\n }\n }\n\n .copyright-certificate {\n color: ",";\n "," {\n font-size: 11px;\n }\n "," {\n font-size: 12px;\n }\n }\n\n .biglinks {\n margin-bottom: 12px;\n }\n\n .bigLink {\n display: block;\n color: ",";\n font-size: 14px;\n font-weight: ",";\n text-decoration: none;\n word-break: break-word;\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n\n "," {\n display: inline-block;\n width: 50%;\n font-size: 16px;\n }\n }\n\n .mHalf {\n display: inline-block;\n width: 50%;\n padding-right: 24px;\n margin-bottom: 24px;\n vertical-align: top;\n\n p {\n color: ",";\n\n "," {\n margin-bottom: 8px;\n font-size: 13px;\n line-height: 20px;\n }\n "," {\n margin-bottom: 12px;\n font-size: 14px;\n }\n }\n }\n\n .otherSites {\n p {\n margin-bottom: 12px;\n color: ",";\n font-size: 12px;\n "," {\n font-size: 13px;\n }\n "," {\n font-size: 13px;\n }\n }\n\n .flags {\n display: flex;\n margin-bottom: 8px;\n\n div {\n margin-right: 10px;\n }\n }\n }\n\n .link {\n display: block;\n text-decoration: none;\n\n p {\n color: ",";\n font-weight: ",";\n word-break: break-word;\n }\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n\n .columns {\n "," {\n display: flex;\n flex-direction: row;\n width: 100%;\n\n > div:nth-child(1) {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-basis: 40%;\n }\n\n > div:nth-child(2) {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: 60%;\n\n > div:nth-child(1) {\n flex-basis: 45%;\n }\n\n > div:not(:last-child) {\n flex-basis: 27.5%;\n }\n\n > div:last-child() {\n flex-basis: 0;\n }\n }\n }\n }\n\n .signupButton {\n display: none;\n border: none;\n margin-top: 16px;\n outline: none;\n text-transform: uppercase;\n }\n"])),q.mbDown,q.mbDown,q.mbUp,(function(e){return e.theme.colors.neutral500}),(function(e){return e.theme.colors.neutral500}),q.mbUp,q.mbDown,(function(e){return e.theme.colors.neutral500}),q.mbUp,q.mbUp,(function(e){return e.theme.colors.neutral500}),q.mbDown,(function(e){return e.theme.colors.neutral500}),q.mbDown,q.mbUp,(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),q.mbDown,(function(e){return e.theme.colors.neutral500}),q.mbDown,q.mbUp,(function(e){return e.theme.colors.neutral500}),q.mbDown,q.mbUp,(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),q.mbUp),Ma=mn.div(ba||(ba=U(["\n width: 32px;\n height: 32px;\n margin-right: 10px;\n\n &[data-is-mobile='true'] {\n width: 24px;\n height: 24px;\n }\n\n .country-flag {\n width: 100%;\n height: 100%;\n }\n"],["\n width: 32px;\n height: 32px;\n margin-right: 10px;\n\n &[data-is-mobile='true'] {\n width: 24px;\n height: 24px;\n }\n\n .country-flag {\n width: 100%;\n height: 100%;\n }\n"]))),_a=function(t){var n=t.url,a=t.isMobile,l=t.dataEventCategory,o=t.dataEventAction,r=t.dataEventLabel,i=t.isAmp;return e.createElement(Ma,{"data-is-mobile":a},i?e.createElement("amp-img",{className:"country-flag",src:n,alt:"Country Flag","data-event-category":l,"data-event-action":o,"data-content-label":r}):e.createElement("img",{className:"country-flag lazy","data-src":n,alt:"Country Flag","data-event-category":l,"data-event-action":o,"data-content-label":r}))},Ba=function(t){var n,a,o,r,i,c,m,d,p,u,g,h,v,f,E,y,x,w,b,k,C,N,L,z,M,_,B,F,D,S,A=t.className,I=t.type,T=void 0===I?"main":I,H=t.footerInfo,P=t.isMobile,W=t.locale,V=t.isAmp,O=vn().t,G=null==H?void 0:H.menu;l((function(){setTimeout((function(){return null==K?void 0:K.update()}),100)}),[]);var U=(null===(a=null===(n=null==H?void 0:H.general)||void 0===n?void 0:n.verified)||void 0===a?void 0:a.filter(Boolean))||[];return e.createElement(za,{as:V&&"mini"===T?"div":"footer",className:A,style:"mini"===T?{backgroundColor:J.colors.neutral50}:{},"next-page-hide":!0},e.createElement(j,null,e.createElement("div",{className:"inner","data-type":T,"next-page-hide":""},"main"===T?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},V?(null===(r=null==H?void 0:H.general)||void 0===r?void 0:r.logo)?e.createElement("amp-img",{src:null===(i=null==H?void 0:H.general)||void 0===i?void 0:i.logo,alt:"Site logo",width:"132",height:"32",style:{marginBottom:24}}):null:e.createElement("img",{className:"footer-logo lazy","data-src":null===(o=null==H?void 0:H.general)||void 0===o?void 0:o.logo,alt:"Logo","data-is-sehat":"id-ID"===W})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(s,{size:"p1",type:"bold"},null===(c=null==H?void 0:H.general)||void 0===c?void 0:c.content),e.createElement(X,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(s,{size:"sm",type:"regular"},null===(m=null==H?void 0:H.social)||void 0===m?void 0:m.title),e.createElement("div",{className:"icons"},null===(p=null===(d=null==H?void 0:H.social)||void 0===d?void 0:d.socials)||void 0===p?void 0:p.map((function(t,n){return e.createElement("a",{key:n,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,href:t.url},V?e.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,src:t.icon,alt:"Logo Social",width:"32",height:"32"}):e.createElement("img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,"data-src":t.icon,alt:"Logo Social",className:"social-icon lazy"}))}))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,G&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(g=null===(u=G[0])||void 0===u?void 0:u.items)||void 0===g?void 0:g.map((function(t,n){return e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(dn[W]).concat(t.url),className:"bigLink",key:n,href:t.url},t.title)}))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(h=G[1])||void 0===h?void 0:h.menu_title),null===(f=null===(v=G[1])||void 0===v?void 0:v.items)||void 0===f?void 0:f.map((function(t,n){return e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(dn[W]).concat(t.url),className:"link",href:t.url,key:n},e.createElement(s,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:"https://".concat(dn[W]).concat(t.url)},t.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(E=G[2])||void 0===E?void 0:E.menu_title),null===(x=null===(y=G[2])||void 0===y?void 0:y.items)||void 0===x?void 0:x.map((function(t,n){return t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:n},e.createElement(s,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))})))),!V&&e.createElement(e.Fragment,null,e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(w=null==H?void 0:H.branch)||void 0===w?void 0:w.title),e.createElement("div",{className:"flags"},null===(k=null===(b=null==H?void 0:H.branch)||void 0===b?void 0:b.branch)||void 0===k?void 0:k.map((function(t,n){return e.createElement("a",{className:"link",href:t.url,key:n,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(_a,{url:t.flag,isMobile:P,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url,isAmp:V}))}))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright","data-is-amp":V||void 0},e.createElement("div",{className:"copyright-image-wrapper"},U.length?U.map((function(t,n){return e.createElement("a",{href:t.url,key:n,className:"copyright-image"},V?e.createElement("amp-img",{src:t.image,alt:"DMCA Icon",width:"100",height:"36"}):e.createElement("img",{className:"lazy","data-src":t.image,alt:"DMCA Icon"}))})):null),e.createElement(s,{size:"xs",type:"regular",className:"copyright-content"},null===(C=null==H?void 0:H.general)||void 0===C?void 0:C.copyright)),"vi-VN"===W&&e.createElement(s,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==H?void 0:H.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(N=null==H?void 0:H.menu[1])||void 0===N?void 0:N.menu_title),null===(z=null===(L=null==H?void 0:H.menu[1])||void 0===L?void 0:L.items)||void 0===z?void 0:z.map((function(t){return e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":"https://".concat(dn[W]).concat(t.url),"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(dn[W]).concat(t.url)},e.createElement(s,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:"https://".concat(dn[W]).concat(t.url),size:"sm",type:"regular",style:{color:J.colors.gray800}},t.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(M=null==H?void 0:H.menu[2])||void 0===M?void 0:M.menu_title),null===(B=null===(_=null==H?void 0:H.menu[2])||void 0===_?void 0:_.items)||void 0===B?void 0:B.map((function(t,n){return e.createElement("a",{className:"link",href:t.url,key:n,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(s,{size:"sm",type:"regular",style:{color:J.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))}))),!V&&"mini"!==T&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(s,{size:"sm",type:"regular"},null===(F=null==H?void 0:H.social)||void 0===F?void 0:F.title),e.createElement("div",{className:"icons"},null===(S=null===(D=null==H?void 0:H.social)||void 0===D?void 0:D.socials)||void 0===S?void 0:S.map((function(t,n){return e.createElement("a",{key:n,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,href:t.url},V?e.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,src:t.icon,alt:"Logo Social",width:"32",height:"32"}):e.createElement("img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,"data-src":t.icon,alt:"Logo Social",className:"social-icon lazy"}))}))))))))))};mn((function(t){var n=t.type,a=V(t,["type"]);return e.createElement(n,a)}))(Fa||(Fa=U(["\n color: var(--text-color, ",");\n font-family: Krub;\n font-weight: 600;\n letter-spacing: -0.2px;\n\n &[data-type='headline-1'] {\n font-size: 40px;\n line-height: 60px;\n }\n &[data-type='headline-2'] {\n font-size: 32px;\n line-height: 48px;\n }\n &[data-type='headline-3'] {\n font-size: 24px;\n line-height: 40px;\n }\n &[data-type='headline-4'] {\n font-size: 18px;\n line-height: 32px;\n }\n"],["\n color: var(--text-color, ",");\n font-family: Krub;\n font-weight: 600;\n letter-spacing: -0.2px;\n\n &[data-type='headline-1'] {\n font-size: 40px;\n line-height: 60px;\n }\n &[data-type='headline-2'] {\n font-size: 32px;\n line-height: 48px;\n }\n &[data-type='headline-3'] {\n font-size: 24px;\n line-height: 40px;\n }\n &[data-type='headline-4'] {\n font-size: 18px;\n line-height: 32px;\n }\n"])),(function(e){return e.theme.mbColors.dark}));var Fa,Da,Sa,Aa,ja,Ia,Ta,Ha,Pa,Wa=mn.p(Da||(Da=U(["\n color: var(--text-color, ",");\n letter-spacing: -0.2px;\n\n &[data-type='subtitle-1'] {\n font-size: 16px;\n font-weight: 600;\n line-height: 26px;\n }\n &[data-type='subtitle-2'] {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n }\n &[data-type='subtitle-3'] {\n font-size: 12px;\n font-weight: 500;\n line-height: 20px;\n }\n &[data-type='bodytext-1'] {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n }\n &[data-type='bodytext-2'] {\n font-size: 14px;\n font-weight: 400;\n line-height: 24px;\n }\n &[data-type='bodytext-3'] {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n }\n &[data-type='caption-1'] {\n font-size: 10px;\n font-weight: 500;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n &[data-type='caption-2'] {\n font-size: 10px;\n font-weight: 400;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n"],["\n color: var(--text-color, ",");\n letter-spacing: -0.2px;\n\n &[data-type='subtitle-1'] {\n font-size: 16px;\n font-weight: 600;\n line-height: 26px;\n }\n &[data-type='subtitle-2'] {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n }\n &[data-type='subtitle-3'] {\n font-size: 12px;\n font-weight: 500;\n line-height: 20px;\n }\n &[data-type='bodytext-1'] {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n }\n &[data-type='bodytext-2'] {\n font-size: 14px;\n font-weight: 400;\n line-height: 24px;\n }\n &[data-type='bodytext-3'] {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n }\n &[data-type='caption-1'] {\n font-size: 10px;\n font-weight: 500;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n &[data-type='caption-2'] {\n font-size: 10px;\n font-weight: 400;\n letter-spacing: -0.1px;\n line-height: 14px;\n }\n"])),(function(e){return e.theme.mbColors.dark})),Va=function(t){var n=t.type,a=t.color,l=t.style,o=V(t,["type","color","style"]);return e.createElement(Wa,P({"data-type":n,style:P(P({},l),a&&{"--text-color":a})},o))},Oa=mn.footer(Sa||(Sa=U(["\n position: relative;\n overflow: hidden;\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n }\n\n a {\n text-decoration: none;\n }\n a :hover {\n color: ",";\n }\n"],["\n position: relative;\n overflow: hidden;\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n }\n\n a {\n text-decoration: none;\n }\n a :hover {\n color: ",";\n }\n"])),(function(e){return e.theme.mbColors.cobalt})),Ga=mn.div(Aa||(Aa=U(["\n position: relative;\n padding: 80px 0 40px;\n margin: auto 68px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n\n border-bottom: 1px solid\n ",";\n\n "," {\n margin: auto 16px;\n flex-wrap: wrap;\n row-gap: 32px;\n column-gap: 16px;\n }\n\n "," {\n margin: auto 0;\n }\n"],["\n position: relative;\n padding: 80px 0 40px;\n margin: auto 68px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n\n border-bottom: 1px solid\n ",";\n\n "," {\n margin: auto 16px;\n flex-wrap: wrap;\n row-gap: 32px;\n column-gap: 16px;\n }\n\n "," {\n margin: auto 0;\n }\n"])),(function(e){return e.theme.colors.neutral200}),q.tdDown,q.mbDown),Ua=mn.div(ja||(ja=U(["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n\n "," {\n flex: 1 1 160px;\n }\n .title {\n padding-bottom: 4px;\n }\n"],["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n\n "," {\n flex: 1 1 160px;\n }\n .title {\n padding-bottom: 4px;\n }\n"])),q.mbDown),Za=mn.div(Ia||(Ia=U(["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n"],["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n"]))),Ra=mn.div(Ta||(Ta=U(["\n padding: 40px 0;\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n flex-direction: column;\n text-align: center;\n\n .content {\n max-width: 680px;\n width: 100%;\n }\n .social-link {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n\n img {\n width: 32px;\n height: 32px;\n }\n }\n\n "," {\n padding: 32px 0;\n }\n"],["\n padding: 40px 0;\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n flex-direction: column;\n text-align: center;\n\n .content {\n max-width: 680px;\n width: 100%;\n }\n .social-link {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n\n img {\n width: 32px;\n height: 32px;\n }\n }\n\n "," {\n padding: 32px 0;\n }\n"])),q.mbDown),qa=mn.div(Ha||(Ha=U(["\n background-color: ",";\n padding: 16px 0;\n position: relative;\n\n img {\n width: 89px;\n height: 32px;\n }\n .content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 174px;\n margin: auto 68px;\n\n "," {\n margin: auto 16px;\n }\n\n "," {\n flex-direction: column-reverse;\n gap: 16px;\n align-items: flex-start;\n margin: auto 0;\n }\n }\n\n .verify {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n }\n"],["\n background-color: ",";\n padding: 16px 0;\n position: relative;\n\n img {\n width: 89px;\n height: 32px;\n }\n .content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 174px;\n margin: auto 68px;\n\n "," {\n margin: auto 16px;\n }\n\n "," {\n flex-direction: column-reverse;\n gap: 16px;\n align-items: flex-start;\n margin: auto 0;\n }\n }\n\n .verify {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n }\n"])),(function(e){return e.theme.mbColors.dark}),q.tdDown,q.mbDown),Ka=mn.div(Pa||(Pa=U(["\n overflow: hidden;\n &:before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 150%;\n height: 100%;\n background-color: ",";\n border-radius: 2150px 2150px 0 0 / 200px 200px 0 0;\n content: '';\n transform: translateX(-50%);\n }\n\n "," {\n &:before {\n width: 100%;\n }\n }\n"],["\n overflow: hidden;\n &:before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 150%;\n height: 100%;\n background-color: ",";\n border-radius: 2150px 2150px 0 0 / 200px 200px 0 0;\n content: '';\n transform: translateX(-50%);\n }\n\n "," {\n &:before {\n width: 100%;\n }\n }\n"])),(function(e){return e.theme.mbColors.lightGray}),q.mbDown),Xa=function(t){var n,a=t.logoType,l=void 0===a?"marryBaby":a,o=t.footerMenu,r=t.background;if(!o)return null;var i=o.general,c=o.menu,s=o.socials;return e.createElement(Oa,{style:{backgroundColor:r||"none"}},e.createElement(Ka,null,e.createElement(j,null,e.createElement(Ga,null,null==c?void 0:c.map((function(t,n){var a=t.menu_title,l=t.items;return e.createElement(Ua,{key:"mbf".concat(n)},e.createElement(Va,{className:"title",type:"subtitle-1",color:J.mbColors.pink},a),null==l?void 0:l.map((function(t,n){var a=t.title,l=t.url;return e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":"".concat(l),className:"link",href:l,key:"footer-links-".concat(n)},e.createElement(Za,{key:"mbitem".concat(n)},e.createElement(Va,{type:"bodytext-2",color:J.mbColors.gray},a)))})))})))),e.createElement(j,null,e.createElement(Ra,null,e.createElement(H,{className:"logo",type:l,width:"127px"}),e.createElement("div",{className:"content"},e.createElement(Va,{type:"bodytext-2",color:J.mbColors.gray},null==i?void 0:i.content)),e.createElement("div",{className:"social-link"},null==s?void 0:s.map((function(t,n){var a=t.icon,l=t.name,o=t.url;return e.createElement("a",{key:"social".concat(n),target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - ".concat(l),"data-content-label":l,href:o},e.createElement("img",{src:a,alt:l}))}))))),e.createElement(qa,null,e.createElement(j,null,e.createElement("div",{className:"content"},e.createElement(Va,{type:"bodytext-3",color:J.colors.white},null==i?void 0:i.copyright),e.createElement("div",{className:"verify"},null===(n=null==i?void 0:i.verified)||void 0===n?void 0:n.map((function(t,n){var a=t.image,l=t.url;return e.createElement("img",{key:"imgMbFt".concat(n),src:a,alt:l})}))))))))},Ja=function(t){var n=t.type,a=t.isMobile,o=void 0===a||a,r=t.locale,i=t.footerInfo,c=t.isAmp,s=t.siteType;return l((function(){setTimeout((function(){return null==K?void 0:K.update()}),500)}),[]),"helloSites"===s?e.createElement(Ba,{isAmp:c,isMobile:o,type:n,locale:r,footerInfo:i||{}}):e.createElement(Xa,{footerMenu:i,background:null==t?void 0:t.background})};export{Nn as A,Ln as B,Tn as C,ca as D,Mn as F,_n as G,Xn as I,da as O,Fn as P,Vn as R,Dn as S,Sn as T,jn as U,zn as a,An as b,In as c,On as d,Zn as e,qn as f,Kn as g,Jn as h,Yn as i,$n as j,ea as k,ta as l,na as m,aa as n,la as o,oa as p,ra as q,ia as r,ua as s,ga as t,xa as u,Ca as v,La as w,Ja as x};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e,a as n,_ as t,c as o,d as i}from"./tslib.es6-dcf36680.js";import r,{useState as a,useCallback as c,useMemo as l,useEffect as s,useRef as u,useReducer as d}from"react";import{I as p,L as h}from"./constants-a0a981fa.js";import{c as g,d as m}from"./index-58ae0705.js";import{g as f,s as C,d as v}from"./cookieHelper-0e8521c3.js";import{u as x}from"./useTranslations-3e47eecc.js";import y from"lodash/debounce";import{T as w}from"./index.styled-0ef0a0dd.js";import"./gAssets.js";import{I as b}from"./index-df0ab41e.js";import{M as E}from"./screenSizeContext-f2090394.js";import"react-range";import"date-fns";import L,{createGlobalStyle as k}from"styled-components";import"./Locale-69030fff.js";import"@mantine/core";import"./translationsContext-d658f58d.js";import S from"string-format";import{t as M}from"./theme-a50a1aa5.js";import I from"react-loading-skeleton";import{useId as R}from"react-id-generator";import P from"lodash/shuffle";import{u as F}from"./useOutsideClick-6004483a.js";var z,A,T,N,B,H,V,D,O,K,Z,j,_=L.div(z||(z=e([""],[""]))),G=L.div(A||(A=e(["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"],["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"]))),U=L.section(T||(T=e([""],[""]))),Q=L.input(N||(N=e(["\n position: fixed;\n left: -100%;\n top: -100%;\n"],["\n position: fixed;\n left: -100%;\n top: -100%;\n"]))),q=L(b)(B||(B=e(["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"],["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"]))),W=k(H||(H=e(["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"],["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"]))),Y=function(e){var n=e.className,t=e.color;return r.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},J=function(e){var n=e.className,t=e.color;return r.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:n},r.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"}))},X=function(e){var n=e.className,t=e.color;return r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:n},r.createElement("path",{d:"M9.99967 6.66658C8.15801 6.66658 6.66634 8.15825 6.66634 9.99992C6.66634 11.8416 8.15801 13.3333 9.99967 13.3333C11.8413 13.3333 13.333 11.8416 13.333 9.99992C13.333 8.15825 11.8413 6.66658 9.99967 6.66658ZM17.4497 9.16658C17.0663 5.69158 14.308 2.93325 10.833 2.54992V1.66659C10.833 1.20825 10.458 0.833252 9.99967 0.833252C9.54134 0.833252 9.16634 1.20825 9.16634 1.66659V2.54992C5.69134 2.93325 2.93301 5.69158 2.54967 9.16658H1.66634C1.20801 9.16658 0.833008 9.54158 0.833008 9.99992C0.833008 10.4583 1.20801 10.8333 1.66634 10.8333H2.54967C2.93301 14.3083 5.69134 17.0666 9.16634 17.4499V18.3333C9.16634 18.7916 9.54134 19.1666 9.99967 19.1666C10.458 19.1666 10.833 18.7916 10.833 18.3333V17.4499C14.308 17.0666 17.0663 14.3083 17.4497 10.8333H18.333C18.7913 10.8333 19.1663 10.4583 19.1663 9.99992C19.1663 9.54158 18.7913 9.16658 18.333 9.16658H17.4497ZM9.99967 15.8333C6.77467 15.8333 4.16634 13.2249 4.16634 9.99992C4.16634 6.77492 6.77467 4.16658 9.99967 4.16658C13.2247 4.16658 15.833 6.77492 15.833 9.99992C15.833 13.2249 13.2247 15.8333 9.99967 15.8333Z",fill:t||"currentColor"}))},$=function(e){var n=e.className,t=e.color;return r.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},ee=function(e){var n=e.width,t=e.height;return r.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}))},ne=L.li(V||(V=e(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"])),M.colors.neutral100),te=L.div(D||(D=e(["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"],["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"])),E.mbDown),oe=L.ul(O||(O=e(["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"],["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"]))),ie=L(J)(K||(K=e(["\n width: 12px;\n height: 18px;\n"],["\n width: 12px;\n height: 18px;\n"]))),re=L.li(Z||(Z=e(["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"],["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"])),(function(e){return e.isSelected&&"\n &::after {\n content: ".concat("url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\")",";\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n ")}),M.colors.neutral100,M.colors.neutral50),ae=L((function(e){var t=e.count,o=e.className,i=R(t);return r.createElement(r.Fragment,null,n([],Array(t),!0).map((function(e,n){return r.createElement(ne,{className:o,key:i[n]},r.createElement(I,{count:1,height:32}),r.createElement(I,{count:1,height:24}))})))}))(j||(j=e(["\n &:first-child {\n padding-top: 18px;\n }\n"],["\n &:first-child {\n padding-top: 18px;\n }\n"]))),ce=function(e){var n=e.cities,t=e.isLoading,o=e.onLocationClick,i=e.onCurrentLocationClick,a=e.geoLocationPermission,c=void 0===a?"unset":a,l=e.isLocationLoading,s=e.selectedLocation,u=x().t,d="denied"===c,p=function(){return r.createElement(re,{role:"button",tabIndex:0,onClick:function(e){d||(e.nativeEvent.stopImmediatePropagation(),l||i())},"data-is-denied":d},d?r.createElement(w,{color:"var(--gray600)",size:"md"},"x"):l?r.createElement(I,{height:20,width:20}):r.createElement(X,{color:M.colors.primaryBase}),r.createElement("div",null,d?r.createElement(w,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},u("booking.searchBar.grantLocation")):l?r.createElement(I,{height:20,style:{width:"calc(100% - 16px)"}}):r.createElement(w,{size:"md"},u("booking.searchBar.useCurrentLocation"))))};return r.createElement(te,{"data-testid":"location-search-results"},r.createElement(oe,null,t?r.createElement(ae,{count:5}):!n||n.length<1?r.createElement(r.Fragment,null,p(),r.createElement(re,{"data-is-denied":"true"},r.createElement(w,{size:"sm",color:"#ccc"},u("booking.searchBar.noResults")))):r.createElement(r.Fragment,null,p(),n.map((function(e){return r.createElement(re,{key:e.id,onClick:function(n){n.nativeEvent.stopImmediatePropagation(),o&&o(e)},role:"button",tabIndex:0,"aria-label":"Select ".concat(e.name," as location"),isSelected:(null==s?void 0:s.id)===e.id},r.createElement(ie,{color:M.colors.neutral400}),r.createElement(w,{size:"md"},e.name))})))))},le="TYPE_CHARACTER",se="REMOVE_CHARACTER",ue="REMOVE_ALL",de="REMOVE_LAST_VISIBLE_NODE",pe="PAUSE_FOR",he="CHANGE_DELETE_SPEED",ge="CHANGE_DELAY",me="PASTE_STRING",fe=function(e,n){return Math.floor(Math.random()*(n-e+1))+e},Ce="TEXT_NODE",ve=function(){function e(e){var o=this;this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=function(){return o.state.eventLoopPaused=!1,o.runEventLoop(),o},this.pause=function(){return o.state.eventLoopPaused=!0,o},this.stop=function(){return o.state.eventLoop&&(window.cancelAnimationFrame(o.state.eventLoop),o.state.eventLoop=null),o},this.pauseFor=function(e){return o.addEventToQueue(pe,{ms:e}),o},this.typeOutAllStrings=function(){return"string"==typeof o.options.strings?(o.typeString(o.options.strings).pauseFor(o.options.pauseFor),o):(o.options.strings.forEach((function(e){o.typeString(e).pauseFor(o.options.pauseFor).deleteAll(o.options.deleteSpeed)})),o)},this.typeString=function(e,n){if(void 0===n&&(n=null),e){var t=(o.options||{}).stringSplitter,i="function"==typeof t?t(e):e.split("");o.typeCharacters(i,n)}return o},this.pasteString=function(e,n){return void 0===n&&(n=null),e&&o.addEventToQueue(me,{character:e,node:n}),o},this.deleteAll=function(e){return void 0===e&&(e="natural"),o.addEventToQueue(ue,{speed:e}),o},this.changeDeleteSpeed=function(e){if(!e)throw new Error("Must provide new delete speed");return o.addEventToQueue(he,{speed:e}),o},this.changeDelay=function(e){if(!e)throw new Error("Must provide new delay");return o.addEventToQueue(ge,{delay:e}),o},this.deleteChars=function(e){if(!e)throw new Error("Must provide amount of characters to delete");for(var n=0;n<e;n++)o.addEventToQueue(se);return o},this.typeCharacters=function(e,n){if(void 0===n&&(n=null),!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(e){o.addEventToQueue(le,{character:e,node:n})})),o},this.removeCharacters=function(e){if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(){o.addEventToQueue(se)})),o},this.addEventToQueue=function(e,n,t){return void 0===t&&(t=!1),o.addEventToStateProperty(e,n,t,"eventQueue")},this.addReverseCalledEvent=function(e,n,t){return void 0===t&&(t=!1),o.options.loop?o.addEventToStateProperty(e,n,t,"reverseCalledEvents"):o},this.addEventToStateProperty=function(e,t,i,r){void 0===i&&(i=!1);var a={eventName:e,eventArgs:t||{}};return o.state[r]=i?n([a],o.state[r],!0):n(n([],o.state[r],!0),[a],!1),o},this.runEventLoop=function(){o.state.lastFrameTime||(o.state.lastFrameTime=Date.now());var e=Date.now(),i=e-o.state.lastFrameTime;if(!o.state.eventQueue.length){if(!o.options.loop)return;o.state.eventQueue=n([],o.state.calledEvents,!0),o.state.calledEvents=[],o.options=t({},o.state.initialOptions)}if(o.state.eventLoop=window.requestAnimationFrame(o.runEventLoop),!o.state.eventLoopPaused){if(o.state.pauseUntil){if(e<o.state.pauseUntil)return;o.state.pauseUntil=null}var r=n([],o.state.eventQueue,!0),a=r.shift();if(!(i<=(a.eventName===de||a.eventName===se?"natural"===o.options.deleteSpeed?fe(40,80):o.options.deleteSpeed:"natural"===o.options.delay?fe(120,160):o.options.delay))){var c=a.eventName,l=a.eventArgs;switch(c){case me:case le:var s=l.character,u=document.createTextNode(s),d=u;o.options.onCreateTextNode&&"function"==typeof o.options.onCreateTextNode&&(d=o.options.onCreateTextNode(s,u)),o.state.visibleNodes=n(n([],o.state.visibleNodes,!0),[{type:Ce,character:s,node:d}],!1);break;case se:r.unshift({eventName:de,eventArgs:{removingCharacterNode:!0}});break;case pe:var p=a.eventArgs.ms;o.state.pauseUntil=Date.now()+parseInt(p);break;case ue:var h=o.state.visibleNodes,g=l.speed,m=[];g&&m.push({eventName:he,eventArgs:{speed:g,temp:!0}});for(var f=0,C=h.length;f<C;f++)m.push({eventName:de,eventArgs:{removingCharacterNode:!1}});g&&m.push({eventName:he,eventArgs:{speed:o.options.deleteSpeed,temp:!0}}),r.unshift.apply(r,m);break;case de:if(o.state.visibleNodes.length){var v=o.state.visibleNodes.pop(),x=v.node;s=v.character;o.options.onRemoveNode&&"function"==typeof o.options.onRemoveNode&&o.options.onRemoveNode({node:x,character:s}),x&&x.parentNode.removeChild(x)}break;case he:o.options.deleteSpeed=a.eventArgs.speed;break;case ge:o.options.delay=a.eventArgs.delay}o.options.loop&&(a.eventName===de||a.eventArgs&&a.eventArgs.temp||(o.state.calledEvents=n(n([],o.state.calledEvents,!0),[a],!1))),o.state.eventQueue=r,o.state.lastFrameTime=e}}},e&&(this.options=t(t({},this.options),e)),this.state.initialOptions=t({},this.options),this.init()}return e.prototype.init=function(){this.addEventToQueue(ue,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()},e}();function xe(e){var n=e.inputRef,t=e.wrapperRef,o=e.disabled,i=x(),r=i.t,a=i.locale,c=l((function(){if(o)return[];var e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==a&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),P(e).map((function(e){return r(e)}))}),[r,a]);function u(e){var n=p();return n&&(n.placeholder=n.placeholder+e),null}function d(){var e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return n&&n.current?n.current:t&&t.current&&t.current.querySelector("input")||null}s((function(){if(!o){var e=p();e&&(e.placeholder="",new ve({strings:c,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:u,onRemoveNode:d}))}}),[n,t])}var ye,we=L.div(ye||(ye=e(["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"],["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"])));function be(e){var n=e.focused,o=e.value,i=void 0===o?"":o,a=e.onClick,c=e.trackingAttributes,s=e.inputSearchPlaceholder,d=x().t,p=u(null);xe({wrapperRef:p,disabled:!!s});var h=l((function(){return c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}}),[c]);return r.createElement(we,t({onClick:function(){return a&&a()},ref:p},h),r.createElement(q,{inputClassName:"location"===n?"focused":void 0,name:"booking-search-placeholder",displayIcon:r.createElement($,{color:M.colors.gray400}),placeholder:d("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}var Ee,Le,ke,Se,Me,Ie,Re=L.header(Ee||(Ee=e(["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"],["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"]))),Pe=L.div(Le||(Le=e(["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"],["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"]))),Fe=L.div(ke||(ke=e(["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"]))),ze=L.div(Se||(Se=e(["\n width: 100%;\n margin-left: 24px;\n"],["\n width: 100%;\n margin-left: 24px;\n"]))),Ae=L(w)(Me||(Me=e(["\n color: ",";\n text-align: start;\n"],["\n color: ",";\n text-align: start;\n"])),M.colors.secondaryDark),Te=function(e){var n=e.className,t=e.onLeftClick,o=e.headingText,i=e.onRightClick,a=e.iconLeft,c=e.textRight;return r.createElement(Re,{className:n},r.createElement(Fe,{onClick:t},a||r.createElement(Y,{color:M.colors.gray800})),r.createElement(ze,null,r.createElement(Ae,{size:"md",type:"bold"},o)),r.createElement(Pe,{onClick:i},c&&r.createElement("p",null,c)))},Ne={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0},Be={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};function He(e){var n=e.selectedLocation,o=e.searchLocationKeywords;return n&&o!==n.name?t(t({},e),{searchLocationKeywords:n.name}):e}function Ve(e,n){var o;switch(e.isDebug&&console.log("bookingSearchBar",{action:n,state:e}),n.type){case Ie.NavigateTo:return t(t({},e),{navigateTo:n.payload,focused:"none",isMobileModalOpened:!1});case Ie.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:He(t(t({},e),{focused:"none"}));case Ie.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:t(t({},e),{focused:"none"});case Ie.FocusInputLocation:var i=t(t({},e),{focused:"location"});return(null===(o=e.selectedLocation)||void 0===o?void 0:o.id)===p&&(i.searchLocationKeywords=""),i;case Ie.FocusInputSearch:var r=t(t({},e),{focused:"search"});return e.isMobile?He(r):r;case Ie.ChangeInputLocation:return t(t({},e),{searchLocationKeywords:n.payload});case Ie.ChangeInputSearch:var a=n.payload;return t(t({},e),{searchKeywords:a,isLoadingSearchResults:a.trim().length>Ne[e.locale]});case Ie.SelectCurrentLocation:return t(t({},e),{focused:"none",selectedLocation:n.payload,searchLocationKeywords:n.payload.name});case Ie.ClearInputLocation:return t(t({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case Ie.ClearInputSearch:return t(t({},e),{focused:"search",searchKeywords:""});case Ie.SelectLocation:return t(t({},e),{focused:"none",selectedLocation:n.payload,searchLocationKeywords:n.payload.name});case Ie.SelectSearchResult:return t(t({},e),{searchKeywords:n.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:n.payload.url});case Ie.FetchCitiesStart:return t(t({},e),{isLoadingCities:!0});case Ie.FetchCitiesFinish:return t(t({},e),{isLoadingCities:!1});case Ie.FetchSearchResultsStart:return t(t({},e),{isLoadingSearchResults:!0});case Ie.FetchSearchResultsFinish:return t(t({},e),{isLoadingSearchResults:!1});case Ie.FetchSearchResultsComplete:var c=t(t({},e),{searchResults:n.payload});return 0===e.initialSearchResults.length&&(c.initialSearchResults=n.payload),c;case Ie.FetchCitiesByGeoIpComplete:var l=n.payload.cities,s=n.payload.default;(l=l.filter((function(e){return e.id!==s.id}))).unshift(s),e.initialSelectedCity&&!l.find((function(n){return n.id===e.initialSelectedCity.id}))&&l.unshift(e.initialSelectedCity);var u=t(t({},e),{defaultCity:s,initialCities:l,cities:l});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(u.selectedLocation=s,u.searchLocationKeywords=s.name),u;case Ie.FetchCitiesByKeywordComplete:return t(t({},e),{cities:n.payload});case Ie.DisplayInitialCities:return t(t({},e),{cities:e.initialCities});case Ie.DisplayInitialSearchResults:return t(t({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case Ie.GrantGeoLocationPermission:return t(t({},e),{geoLocationPermission:"granted",geoLocationCoordinates:n.payload});case Ie.DenyGeoLocationPermission:return t(t({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case Ie.OpenMobileModal:return t(t({},e),{isMobileModalOpened:!0});case Ie.CloseMobileModal:return t(t({},e),{isMobileModalOpened:!1});case Ie.UpdateInitialSearchValue:return t(t({},e),{searchKeywords:n.payload});case Ie.SetInputSearchPlaceholder:return t(t({},e),{inputSearchPlaceholder:n.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(Ie||(Ie={}));var De,Oe,Ke,Ze,je,_e,Ge,Ue=function(){return r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"}))},Qe=L.button(De||(De=e(["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"],["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"])),(function(e){return e.theme.colors.primaryBase}),E.mbDown,(function(e){return e.theme.colors.primaryHover}),(function(e){return e.theme.colors.primaryActive})),qe=L(w)(Oe||(Oe=e(["\n font-weight: ",";\n"],["\n font-weight: ",";\n"])),(function(e){return e.theme.sizes.fwSemiBold})),We=function(e){var n=e.onClick,t=(0,x().t)("booking.searchBar.searchButton");return r.createElement(Qe,{onClick:n,title:t},r.createElement(Ue,null),r.createElement(qe,{size:"s3",color:"white"},t))},Ye=L.div(Ke||(Ke=e(["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"],["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"])),E.mbDown,M.colors.blue50),Je=L.div(Ze||(Ze=e(["\n position: relative;\n"],["\n position: relative;\n"]))),Xe=L(Je)(je||(je=e(["\n flex: 1;\n"],["\n flex: 1;\n"]))),$e=L(Je)(_e||(_e=e(["\n flex: 2;\n"],["\n flex: 2;\n"]))),en=L((function(e){var n=e.className,t=e.color;return r.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:t||"currentColor"}))}))(Ge||(Ge=e(["\n display: none;\n &.shown {\n display: block;\n }\n"],["\n display: none;\n &.shown {\n display: block;\n }\n"])));function nn(e){var n=e.isMobile,t=e.state,o=e.dispatch,i=e.debouncedFetchCitiesByKeyword,a=e.debouncedFetchSearchResults,s=e.focusLocationInput,d=e.focusSearchInput,h=e.renderLocationResults,g=e.renderSearchResults,m=e.locationTrackingAttributes,f=e.trackingAttributes,C=e.onSearch,v=e.initalSearchValue,y=u(null),w=u(null),b=t.focused,E=t.searchLocationKeywords,L=t.geoLocationPermission,k=t.selectedLocation,S=t.searchKeywords,I=t.inputSearchPlaceholder,R=x().t;xe({wrapperRef:w,disabled:!!I}),F(y,(function(){o({type:Ie.ClickOutsideInputLocation})})),F(w,(function(){o({type:Ie.ClickOutsideInputSearch})}));var P=l((function(){return"granted"===L&&(null==k?void 0:k.id)===p?M.colors.primaryBase:M.colors.gray400}),[L,k]),z=c((function(e){o({type:Ie.ChangeInputSearch,payload:e}),"function"!=typeof C&&(e.trim().length>Ne[t.locale]||v?a(e.trim(),t):(a.cancel(),o({type:Ie.DisplayInitialSearchResults})))}),[o,t]),A=c((function(e){o({type:Ie.ChangeInputLocation,payload:e}),e.trim().length>Ne[t.locale]?i(e.trim()):(i.cancel(),o({type:Ie.DisplayInitialCities}))}),[i,o]);return r.createElement(Ye,null,r.createElement(Xe,{ref:y},r.createElement(q,{inputClassName:"location"===b?"focused":void 0,placeholder:R("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:r.createElement(J,{className:"location-pin-icon",color:P}),actionIcon:r.createElement(en,{color:M.colors.gray300,className:""!==E?"shown":""}),onActionClick:function(){o({type:Ie.ClearInputLocation}),i.cancel(),s()},value:E,onChange:A,onFocus:function(){return o({type:Ie.FocusInputLocation})},size:"md",trackingAttributes:m}),!n&&h()),r.createElement($e,{ref:w},r.createElement(q,{placeholder:I||R("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:r.createElement(en,{color:M.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){o({type:Ie.ClearInputSearch}),a.cancel(),a("",t),d()},value:S,onChange:z,onFocus:function(){return o({type:Ie.FocusInputSearch})},inputClassName:"search"===b?"focused":void 0,size:"md",trackingAttributes:f,onKeyPress:function(e){t.autoCompleteDisabled&&"Enter"===e.key&&C&&C({cityId:t.selectedLocation.id,keyword:S})},enterKeyHint:t.autoCompleteDisabled?"search":void 0}),!n&&g()),t.autoCompleteDisabled&&!t.isMobile&&r.createElement(We,{onClick:function(){C({cityId:t.selectedLocation.id,keyword:S})}}))}var tn,on,rn,an,cn,ln,sn,un,dn,pn,hn,gn,mn,fn,Cn=L.li(tn||(tn=e(["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"]))),vn=L.div(on||(on=e(["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"],["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"])),(function(e){var n=e.type;return n&&"doctors"===n&&"\n border-radius: calc(var(--graphicSize) / 2);\n "}),(function(e){var n=e.type;return n&&"doctors"===n?"\n\n object-fit: cover; \n ":"\n object-fit: contain;\n "}),M.colors.gray600),xn=L(w)(rn||(rn=e(["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"],["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"])),E.tdUp),yn=L.figure(an||(an=e(["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"],["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"]))),wn=L.svg(cn||(cn=e(["\n margin: 0 auto;\n display: block;\n"],["\n margin: 0 auto;\n display: block;\n"]))),bn=L.div(ln||(ln=e(["\n display: grid;\n place-items: center;\n"],["\n display: grid;\n place-items: center;\n"]))),En={doctors:function(e){var n=e.width,t=e.height;return r.createElement("svg",{width:n||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{clipPath:"url(#clip0_14712_400114)"},r.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),r.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_14712_400114"},r.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"}))))},services:function(e){var n=e.width,t=e.height;return r.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),r.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))}},Ln=function(e){var n=e.type,t=e.item,o=e.imageUrl,i=e.onClickItem,a=l((function(){var e=En[n]||ee;return r.createElement(e,{width:32,height:"services"===n?32:24})}),[n]);return r.createElement(Cn,{onClick:function(){return i&&i(t)},onKeyDown:function(e){"Enter"!==e.key&&"Space"!==e.key||i&&i(t)},tabIndex:0,role:"button"},r.createElement(yn,null,"hospitals"===n?r.createElement(wn,{width:"12",height:"16",viewBox:"0 0 12 16"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):r.createElement(vn,{type:n},o?r.createElement("img",{src:o,width:32,height:"services"===n?32:24}):a)),r.createElement(xn,{color:M.colors.gray800,size:"p3"},t.name))},kn=function(){return r.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},r.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"}))},Sn=function(){return r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},r.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"}))},Mn=function(){return r.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},r.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"}))},In=function(){return r.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},r.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"}))},Rn=L.header(sn||(sn=e(["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"],["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"])),M.colors.neutral50),Pn=L.div(un||(un=e(["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"],["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"]))),Fn=L.p(dn||(dn=e(["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"],["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"])),M.colors.neutral800,M.sizes.fwSemiBold),zn=L.button(pn||(pn=e(["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"],["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"]))),An=L.section(hn||(hn=e(["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"],["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"])),E.tdUp),Tn=L.ul(gn||(gn=e(["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"],["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"])),E.tdUp,(function(e){return e.isMore&&"\n height: auto;\n max-height: 0;\n margin-top: var(--gap);\n "}),(function(e){return e.isShown&&"\n max-height: 600px;\n "}),E.tdUp),Nn=L(w)(mn||(mn=e(["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"],["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"]))),Bn=function(e){var n=e.type,t=e.data,o=e.state,i=e.dispatch,c=e.itemsToShow,s=e.itemsToShowDesktop,u=e.isMobile,d=e.isLoading,p=e.keyword,g=a(!1),m=g[0],f=g[1],C=x(),v=C.t,y=C.locale,b=o.selectedLocation,E=o.searchKeywords,L=l((function(){return h[y]}),[y]),k=l((function(){return{doctors:{name:v("booking.searchPopup.doctors"),icon:r.createElement(kn,null),slug:L.DOCTOR},services:{name:v("booking.searchPopup.services"),icon:r.createElement(Sn,null),slug:L.SERVICE},hospitals:{name:v("booking.searchPopup.hospitals"),icon:r.createElement(Mn,null),slug:L.HOSPITAL},specialties:{name:v("booking.searchPopup.specialties"),icon:r.createElement(In,null),slug:L.SPECIALTIES}}}),[n,L]),S=l((function(){return k[n].slug}),[k]),R=u?c:s;function P(e){var t="";switch(n){case"specialties":t="/".concat(b.slug,"/").concat(k.doctors.slug,"/").concat(e.slug);break;case"services":t="/".concat(b.slug,"/").concat(S,"/").concat(e.slug);break;case"doctors":case"hospitals":t="/".concat(S,"/").concat(e.slug,"-").concat(e.id)}t&&i({type:Ie.SelectSearchResult,payload:{name:e.name,url:t}})}function F(e){return r.createElement(Ln,{key:e.id,item:e,type:n,imageUrl:e.logo||e.avatar||e.thumbnail,onClickItem:P})}return r.createElement("section",null,r.createElement(Rn,null,r.createElement(Pn,null,k[n].icon,r.createElement(Fn,null,k[n].name)),p.trim().length<=Ne[y]&&r.createElement(zn,{onClick:function(){var e="";switch(n){case"specialties":e="/".concat(S);break;case"services":case"doctors":case"hospitals":e="/".concat(b.slug,"/").concat(S)}e&&i({type:Ie.NavigateTo,payload:e})}},r.createElement(w,{size:"p3",color:M.colors.primaryBase},v("booking.searchPopup.seeAll")))),(d||t&&t.length>0)&&r.createElement(An,null,r.createElement(Tn,null,d&&Array(2).fill(void 0).map((function(e,t){return r.createElement(Cn,{key:n+"loading"+t},r.createElement(yn,null,r.createElement(bn,null,r.createElement(I,{height:14,width:"hospitals"===n?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),r.createElement(I,{width:120,height:24}))})),!d&&t&&t.length>0&&t.slice(0,R).map(F)),r.createElement(Tn,{isShown:m,isMore:!0},t.slice(R,-1).map(F)),"specialties"===n&&R<t.length&&!d&&r.createElement("button",{onClick:function(){return f(!m)}},r.createElement(Nn,{size:"p3",color:M.colors.primaryBase},v(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==n&&R<t.length&&!d&&p.trim().length>Ne[y]&&r.createElement("button",{onClick:function(){var e=k[n].slug,t="/".concat(b.slug,"/").concat(e,"?q=").concat(E);i({type:Ie.NavigateTo,payload:t})}},r.createElement(Nn,{size:"p3",color:M.colors.primaryBase},v("booking.searchPopup.searchIn.".concat(n),{name:p})))),!d&&0===(null==t?void 0:t.length)&&r.createElement(An,null,r.createElement(w,{size:"sm",color:M.colors.gray400},v("booking.searchBar.noResults"))))},Hn=L.section(fn||(fn=e(["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"],["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"])),E.tdUp),Vn=function(e){var n=e.data,t=e.state,o=e.dispatch,i=e.isMobile,a=e.isLoading,c=e.keyword;return r.createElement(Hn,null,n&&n.map((function(e){return r.createElement(Bn,{type:e.type,state:t,dispatch:o,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:a,keyword:c})})))},Dn="api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}",On="api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}",Kn="api/geobyip?site={domain}&latitude={lat}&longitude={lng}",Zn=function(e,n,o){return S(e,t(t({},n),{domain:m[o||"en-PH"]}))};var jn,_n=function(e){var n=e.isMobile,m=e.careApiDomain,w=e.geoLocationPermission,b=e.geoLocationCoordinates,E=e.initialSelectedCity,L=e.initialSearchValue,k=void 0===L?"":L,S=e.careFrontDomain,M=void 0===S?"/care":S,I=e.isDebug,R=void 0!==I&&I,P=e.askForGeolocationPermission,F=void 0!==P&&P,z=e.gaTrackingSearchBar,A=e.gaTrackingLocationSearch,T=e.autoCompleteDisabled,N=void 0!==T&&T,B=e.inputSearchPlaceholder,H=void 0===B?"":B,V=e.routerPush,D=e.onGeoLocationPermissionChange,O=e.onSearch,K=e.onChangeLocation,Z=x(),j=Z.t,q=Z.locale,Y=u(null),J=u(null),X=a(void 0),$=X[0],ee=X[1],ne=function(){var e=a((function(){if("undefined"==typeof window)return"unset";if(f(g))return"granted";var e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),n=e[0],t=e[1],o=a((function(){if("undefined"==typeof window)return null;var e=f(g);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),i=o[0],r=o[1],s=c((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){var n={lat:"".concat(Math.round(1e7*e.coords.latitude)/1e7),lng:"".concat(Math.round(1e7*e.coords.longitude)/1e7)};C(g,JSON.stringify(n),0,15),r(n),t("granted")}),(function(){v(g),t("denied")}))}),[]);return l((function(){return{geoLocationPermission:n,geoLocationCoordinates:i,requestGeoLocation:s}}),[n,i])}(),te=ne.geoLocationPermission,oe=ne.geoLocationCoordinates,ie=ne.requestGeoLocation,re=d(Ve,Be,(function(e){return t(t({},e),{isDebug:R,isMobile:n,geoLocationPermission:w||te||"unset",geoLocationCoordinates:b||oe||null,searchKeywords:k,initialSelectedCity:E||null,selectedLocation:E||e.selectedLocation||null,searchLocationKeywords:(null==E?void 0:E.name)||e.searchLocationKeywords,autoCompleteDisabled:N,inputSearchPlaceholder:H,locale:q})})),ae=re[0],le=re[1],se=ae.navigateTo,ue=ae.focused,de=ae.isLoadingCities,pe=ae.cities,he=ae.searchKeywords,ge=ae.geoLocationPermission,me=ae.selectedLocation,fe=ae.initialSelectedCity,Ce=ae.defaultCity,ve=ae.searchResults,xe=ae.isLoadingSearchResults,ye=ae.isMobileModalOpened,we=ae.inputSearchPlaceholder,Ee=function(e){var n=e.dispatch,o=e.careApiDomain,i=e.locale,r=void 0===i?"vi-VN":i,a=c((function(e,t){void 0===t&&(t={});var i="".concat(o).concat(e);return n({type:Ie.FetchCitiesStart}),fetch(Zn(i,t,r),{method:"GET"}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e))})).finally((function(){return n({type:Ie.FetchCitiesFinish})}))}),[r]),l=c((function(e){var o=e.coordinates,i={};o&&(i={lat:o.lat,lng:o.lng});var c=[a(Kn,i)];return"zh-TW"===r&&c.push(a(Dn,{noPaging:1})),Promise.all(c).then((function(e){var o=e[0],i=e[1],r=t({},o);if(i){var a=r.cities.map((function(e){return e.id}));r.cities=r.cities.concat(i.cities.filter((function(e){return!a.includes(e.id)})))}n({type:Ie.FetchCitiesByGeoIpComplete,payload:r})})).catch((function(e){return console.error("error loading cities by location",e)}))}),[r,o,n]);return{fetchCitiesByLocation:l,fetchCitiesByKeyword:c((function(e){return a(Dn,{keyword:e}).then((function(e){n({type:Ie.FetchCitiesByKeywordComplete,payload:e.cities})})).catch((function(e){return console.error("error loading cities by keyword",e)}))}),[r,o,n]),fetchSearchResults:c((function(e,t){var i="".concat(o).concat(On);n({type:Ie.FetchSearchResultsStart});var a=t.defaultCity,c=t.selectedLocation,l=t.geoLocationCoordinates,s="";if(c&&a){c.id===p?l||(s=a.id):s=c.id;var u=(null==l?void 0:l.lat)||"",d=(null==l?void 0:l.lng)||"";return fetch(Zn(i,{domain:o,searchType:"global",keyword:e.trim().length>Ne[r]?e.trim():"",city:s===p?"":s,lat:u,lng:d},r),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e)})).then((function(e){return n({type:Ie.FetchSearchResultsComplete,payload:e})})).catch((function(e){console.log("error loading search results",{url:i,error:e})})).finally((function(){return n({type:Ie.FetchSearchResultsFinish})}))}n({type:Ie.FetchSearchResultsFinish})}),[r,o,n])}}({dispatch:le,locale:q,careApiDomain:m}),Le=Ee.fetchCitiesByLocation,ke=Ee.fetchCitiesByKeyword,Se=Ee.fetchSearchResults,Me=l((function(){var e;return{id:p,name:j("booking.searchBar.currentLocation"),slug:null===(e=h[q])||void 0===e?void 0:e.CURRENT}}),[j,q]),Re=l((function(){return y(ke,400)}),[ke]),Pe=l((function(){return y(Se,400)}),[Se]);s((function(){""!==k&&k!==ae.searchKeywords&&le({type:Ie.UpdateInitialSearchValue,payload:k})}),[k]),s((function(){F&&(null==me?void 0:me.id)===p&&"unset"===ge&&ie()}),[F,me,ge]),s((function(){w||ge===te||("granted"===te&&oe?le({type:Ie.GrantGeoLocationPermission,payload:oe}):"denied"===te&&le({type:Ie.DenyGeoLocationPermission}))}),[ge,te,oe,w]),s((function(){se&&(V?V(se):window.location.href="".concat(M).concat(se))}),[se]);var Fe=c((function(){le({type:Ie.SelectCurrentLocation,payload:Me})}),[j,le]);s((function(){"denied"===ge||fe||Fe(),D&&D(ge,ae.geoLocationCoordinates),n&&"granted"===ge&&me&&le({type:Ie.FocusInputSearch}),Le({coordinates:ae.geoLocationCoordinates})}),[ge]),s((function(){me&&Ce&&Se(ae.searchKeywords,ae)}),[me,Ce]),s((function(){H!==we&&le({type:Ie.SetInputSearchPlaceholder,payload:H})}),[H,we]),s((function(){ye?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[ye]);var ze=c((function(e){le({type:Ie.SelectLocation,payload:e}),De(),K&&K(e)}),[j,le]);function Ae(){n&&"granted"!==ae.geoLocationPermission?ie():(Fe(),De())}function He(){var e;Y.current&&(null===(e=Y.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function De(){var e;Y.current&&(null===(e=Y.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Oe(){le({type:Ie.CloseMobileModal})}function Ke(){return"location"!==ue?null:r.createElement(ce,{isLoading:de,cities:pe,onLocationClick:ze,onCurrentLocationClick:Ae,isLocationLoading:de,geoLocationPermission:ge,selectedLocation:me})}function Ze(){return"search"!==ue?null:ae.autoCompleteDisabled?n?r.createElement(We,{onClick:function(){O({cityId:ae.selectedLocation.id,keyword:he}),Oe()}}):null:r.createElement(Vn,{data:ve,state:ae,dispatch:le,isMobile:!1,keyword:he,isLoading:xe})}function je(){return r.createElement(nn,{isMobile:n,state:ae,dispatch:le,debouncedFetchCitiesByKeyword:Re,debouncedFetchSearchResults:Pe,focusLocationInput:He,focusSearchInput:De,renderLocationResults:Ke,renderSearchResults:Ze,trackingAttributes:z,locationTrackingAttributes:A,onSearch:O,initalSearchValue:k})}return s((function(){if(window.visualViewport){var e=function(e){var n=e.target;ee(null==n?void 0:n.height)};return window.visualViewport.addEventListener("resize",e),function(){window.visualViewport.removeEventListener("resize",e)}}}),[ee]),n?r.createElement(r.Fragment,null,r.createElement(W,null),r.createElement(Q,{ref:J}),r.createElement(G,{id:"booking-search-bar",ref:Y,"data-is-modal":n&&ye,style:{"--mobile-care-searchbar-height":ye&&$?"".concat($,"px"):"100%"}},ye?r.createElement(r.Fragment,null,r.createElement(U,null,r.createElement(Te,{headingText:j("booking.searchBar.searchButton"),onLeftClick:Oe}),je()),Ke(),Ze()):r.createElement(be,{onClick:function(){var e;return o(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return J.current&&J.current.focus(),le({type:Ie.OpenMobileModal}),[4,Promise.resolve()];case 1:return n.sent(),Y.current&&(null===(e=Y.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus()),[2]}}))}))},focused:ue,value:he,trackingAttributes:z,inputSearchPlaceholder:H}))):r.createElement(_,{id:"booking-search-bar",ref:Y},je())};!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(jn||(jn={}));var Gn=Object.freeze({__proto__:null,get RedirectType(){return jn}});export{_n as B,Gn as t};
|