@hhgtech/hhg-components 1.21.0 → 1.21.2
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/care.js +1 -1
- package/build/components/molecules/embeddedHeathToolCards/index.styled.d.ts +1 -1
- package/build/components/molecules/embeddedHeathToolCards/pwg.d.ts +17 -0
- package/build/components/molecules/index.d.ts +2 -0
- package/build/components/molecules/weightGainForm/index.d.ts +11 -0
- package/build/components/molecules/weightGainForm/index.styled.d.ts +19 -0
- package/build/components/organisms/footer/index.d.ts +2 -10
- package/build/components/organisms/footer/maryBabyFooter/index.d.ts +3 -31
- package/build/components/organisms/footer/maryBabyFooter/index.styled.d.ts +6 -7
- package/build/components.js +1 -1
- package/build/en-PH-bc11cfc2.js +1 -0
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/en-PH-71017453.js +1 -0
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-482348e2.js +1 -0
- package/build/esm/{index-3193cb21.js → index-9bacff82.js} +1 -1
- package/build/esm/{index-364815d1.js → index-c5875449.js} +1 -1
- package/build/esm/{index-2cf5cfbc.js → index-f3a0141e.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/translationsProvider-cd9f6f24.js +1 -0
- package/build/esm/{types-4863c0a8.js → types-9f13ee08.js} +1 -1
- package/build/esm/{types-39d553b4.js → types-e5491c06.js} +1 -1
- package/build/esm/{useTranslations-ad4d9d26.js → useTranslations-3e47eecc.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-4b470a77.js → index-18fad696.js} +1 -1
- package/build/{index-da0e2c40.js → index-2555a201.js} +1 -1
- package/build/{index-55767b66.js → index-a8a74936.js} +1 -1
- package/build/index-e6abe98a.js +1 -0
- package/build/index.js +1 -1
- package/build/interfaces/types/index.d.ts +23 -4
- package/build/navigation.js +1 -1
- package/build/together.js +1 -1
- package/build/translationsProvider-25c99317.js +1 -0
- package/build/{types-6439cc4a.js → types-8591cb2a.js} +1 -1
- package/build/{types-422a9b63.js → types-aac7135c.js} +1 -1
- package/build/useTranslations-60d001df.js +1 -0
- package/package.json +1 -1
- package/build/en-PH-7307aee7.js +0 -1
- package/build/esm/en-PH-ca0683d7.js +0 -1
- package/build/esm/index-ea02d1db.js +0 -1
- package/build/esm/translationsProvider-bc47fc67.js +0 -1
- package/build/index-14d933b6.js +0 -1
- package/build/translationsProvider-57deb2ca.js +0 -1
- package/build/useTranslations-a5b5c74c.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-f7929e76.js"),n=require("react"),t=require("styled-components"),i=require("./screenSizeContext-60cc891b.js"),a=require("./index.styled-03c4dedb.js"),o=require("./index-06ae8f3a.js"),r=require("date-fns"),l=require("date-fns/locale/en-US"),d=require("date-fns/locale/hi"),s=require("date-fns/locale/id"),u=require("date-fns/locale/ms"),c=require("date-fns/locale/th"),p=require("date-fns/locale/vi"),m=require("date-fns/locale/zh-TW"),g=require("./useTranslations-a5b5c74c.js"),h=require("./index-bce6f562.js"),f=require("./cookieHelper-612b90fa.js"),v=require("slugify"),b=require("string-format"),x=require("./theme-696d81a9.js"),A=require("react-id-generator"),w=require("./index-ef8759f0.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E,y,k,T,C,L,I,O,D=_(n),B=_(t),N=_(l),S=_(d),M=_(s),P=_(u),G=_(c),R=_(p),U=_(m),H=_(v),Q=_(b),j={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},F=function(e){var t=e.type,i=void 0===t?"square":t,o=e.size,r=e.avatarImg,l=e.avatarUrl,d=e.firstLetter,s=e.backgroundColor,u=e.onClick,c=e.style,p=e.className,m=e.isAmp,g=void 0!==m&&m,h=e.width,f=e.height,v=o?j[o]:void 0,b=n.useState(!1),x=b[0],A=b[1];n.useEffect((function(){if(l){var e=document.createElement("img");e.setAttribute("src",l),e.addEventListener("error",(function(){A(!0)}))}}),[l,A]);var w=(!l&&!r||x)&&d;return D.default.createElement(a.StyledAvatar,{style:c,"data-avatar-type":i,onClick:u,className:p,size:g?void 0:v,backgroundColor:s,avatarUrl:l,"data-is-amp":g,width:h,height:f},r,l&&!x&&D.default.createElement("img",{src:l}),w&&d)},z=B.default.div(E||(E=e.__makeTemplateObject(["\n --dropdown-padding: 12px 18px 12px 16px;\n position: relative;\n box-sizing: border-box;\n border: 1px solid ",";\n background: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\")\n no-repeat;\n background-position: right 16px center;\n border-radius: 6px;\n\n &[data-disabled='true'],\n :disabled {\n background-color: #f2f2f2;\n cursor: not-allowed;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n }\n &[data-size='md'] {\n font-size: 14px;\n line-height: 21px;\n }\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n }\n\n &[data-has-icons='true'] {\n border: none;\n background: ",";\n\n img,\n svg {\n display: inline-block;\n max-width: 16px;\n margin-right: 6px;\n }\n\n span {\n display: inline-block;\n vertical-align: middle;\n }\n\n &:hover {\n box-shadow: none;\n }\n > div {\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n align-items: center;\n }\n > div::after {\n position: absolute;\n top: 50%;\n right: 12px;\n width: 10px;\n height: 8px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n\n &[data-is-native='true'] {\n padding: var(--dropdown-padding);\n line-height: 24px;\n\n &:focus {\n box-shadow: 0px 0px 2px 2px\n ",";\n }\n }\n"],["\n --dropdown-padding: 12px 18px 12px 16px;\n position: relative;\n box-sizing: border-box;\n border: 1px solid ",";\n background: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\")\n no-repeat;\n background-position: right 16px center;\n border-radius: 6px;\n\n &[data-disabled='true'],\n :disabled {\n background-color: #f2f2f2;\n cursor: not-allowed;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n }\n &[data-size='md'] {\n font-size: 14px;\n line-height: 21px;\n }\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n }\n\n &[data-has-icons='true'] {\n border: none;\n background: ",";\n\n img,\n svg {\n display: inline-block;\n max-width: 16px;\n margin-right: 6px;\n }\n\n span {\n display: inline-block;\n vertical-align: middle;\n }\n\n &:hover {\n box-shadow: none;\n }\n > div {\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n align-items: center;\n }\n > div::after {\n position: absolute;\n top: 50%;\n right: 12px;\n width: 10px;\n height: 8px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n\n &[data-is-native='true'] {\n padding: var(--dropdown-padding);\n line-height: 24px;\n\n &:focus {\n box-shadow: 0px 0px 2px 2px\n ",";\n }\n }\n"])),(function(e){return e.theme.colors.gray200}),(function(e){return e.theme.colors.gray100}),(function(e){return e.theme.colors.blue200}),(function(e){return e.theme.colors.blue200})),K=B.default.div(y||(y=e.__makeTemplateObject(["\n padding: var(--dropdown-padding);\n cursor: pointer;\n\n &.with-label {\n padding-top: 34px;\n padding-bottom: 12px;\n }\n &[data-dropdown-open] {\n padding: 11px 15px 11px 15px;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n"],["\n padding: var(--dropdown-padding);\n cursor: pointer;\n\n &.with-label {\n padding-top: 34px;\n padding-bottom: 12px;\n }\n &[data-dropdown-open] {\n padding: 11px 15px 11px 15px;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n"])),(function(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.colors.blue200})),Y=B.default.ul(k||(k=e.__makeTemplateObject(["\n position: absolute;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n margin-top: 4px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n\n &[data-has-icons='true'] {\n border: 1px solid ",";\n background: white;\n box-shadow: none;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n }\n"],["\n position: absolute;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n margin-top: 4px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n\n &[data-has-icons='true'] {\n border: 1px solid ",";\n background: white;\n box-shadow: none;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200})),W=B.default.li(T||(T=e.__makeTemplateObject(["\n display: flex;\n padding: 12px 18px 12px 16px;\n &[data-disabled='true'] {\n cursor: not-allowed;\n color: #bfbfbf;\n & > * {\n pointer-events: none;\n }\n }\n &:hover,\n :active {\n background: ",";\n }\n"],["\n display: flex;\n padding: 12px 18px 12px 16px;\n &[data-disabled='true'] {\n cursor: not-allowed;\n color: #bfbfbf;\n & > * {\n pointer-events: none;\n }\n }\n &:hover,\n :active {\n background: ",";\n }\n"])),(function(e){return e.theme.colors.gray100})),V=B.default.div(C||(C=e.__makeTemplateObject(["\n max-width: 16px;\n margin-right: 8px;\n"],["\n max-width: 16px;\n margin-right: 8px;\n"]))),Z=B.default.div(L||(L=e.__makeTemplateObject(["\n position: absolute;\n top: 12px;\n left: 16px;\n pointer-events: none;\n"],["\n position: absolute;\n top: 12px;\n left: 16px;\n pointer-events: none;\n"]))),X=B.default.div(I||(I=e.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n\n padding: 0 16px 32px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n visibility: hidden;\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n &[data-type='lead'] {\n width: 332px;\n height: 460px;\n\n div {\n top: -15px;\n right: -15px;\n }\n }\n\n &[data-type='form'] {\n width: 496px;\n height: 548px;\n "," {\n width: 340px;\n }\n }\n\n &[data-type='confirm'] {\n "," {\n width: calc(100% - 32px);\n }\n "," {\n width: 100%;\n max-width: 407px;\n }\n }\n\n .popup-content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n\n .close-button {\n position: absolute;\n top: 16px;\n right: 0;\n cursor: pointer;\n\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n\n padding: 0 16px 32px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n visibility: hidden;\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n &[data-type='lead'] {\n width: 332px;\n height: 460px;\n\n div {\n top: -15px;\n right: -15px;\n }\n }\n\n &[data-type='form'] {\n width: 496px;\n height: 548px;\n "," {\n width: 340px;\n }\n }\n\n &[data-type='confirm'] {\n "," {\n width: calc(100% - 32px);\n }\n "," {\n width: 100%;\n max-width: 407px;\n }\n }\n\n .popup-content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n\n .close-button {\n position: absolute;\n top: 16px;\n right: 0;\n cursor: pointer;\n\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200}),i.MediaQueries.mbDown,i.MediaQueries.mbDown,i.MediaQueries.mbUp),q=B.default.div(O||(O=e.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),J={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR"},$={"id-ID":{"kalkulator-bmi":J.BMI,"kebutuhan-kalori":J.BMR,"kalkulator-hari-perkiraan-lahir":J.DUE_DATE,"kalkulator-masa-subur-2":J.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":J.PWG,"kalkulator-detak-jantung-saat-olahraga":J.THR},"ms-MY":{"kalkulator-bmi":J.BMI,"kalkulator-bmr":J.BMR,"kalkulator-tarikh-bersalin":J.DUE_DATE,"kalkulator-kesuburan":J.OVULATION,"kalkulator-tambah-berat-badan-hamil":J.PWG,"target-heart-rate-calculator":J.THR},"vi-VN":{"cach-tinh-chi-so-bmi":J.BMI,"tinh-chi-so-bmr":J.BMR,"cong-cu-tinh-ngay-du-sinh":J.DUE_DATE,"tinh-ngay-rung-trung":J.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":J.PWG,"cong-cu-do-nhip-tim":J.THR},"zh-TW":{"bmi-calculator":J.BMI,"bmr-calculator":J.BMR,"due-date-calculator":J.DUE_DATE,"ovulation-calculator":J.OVULATION,"pregnancy-weight-gain-calculator":J.PWG,"target-heart-rate-calculator":J.THR},"en-PH":{"bmi-calculator":J.BMI,"bmr-calculator":J.BMR,"due-date-calculator":J.DUE_DATE,"ovulation-calculator":J.OVULATION,"pregnancy-weight-gain-calculator":J.PWG,"target-heart-rate-calculator":J.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":J.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":J.BMR,"เครื่องมือคำนวณกำหนดคลอด":J.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":J.OVULATION,"เครื่องคำนวณน้ำหนักตัว":J.PWG,"เครื่องวัดอัตราการเต้น":J.THR},"hi-IN":{"bmi-calculator-en":J.BMI,"bmi-calculator":J.BMI,"bmr-calculator":J.BMR,"delivery-date-calculator":J.DUE_DATE,"ovulation-calculator":J.OVULATION,"pregnancy-weight-gain-calculator":J.PWG,"target-heart-rate-calculator":J.THR},"km-KH":{"គណនា-bmi":J.BMI,"គណនា-bmr":J.BMR,"គណនាថ្ងៃសម្រាលកូន":J.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":J.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":J.PWG,"គណនារកចង្វាក់បេះដូងល្អ":J.THR},"my-MM":{"bmi-calculator":J.BMI,"bmr-calculator":J.BMR,"due-date-calendar":J.DUE_DATE,"ovulation-calculator":J.OVULATION,"pregnaancy-weight-calculator":J.PWG,"target-heartrate":J.THR,"pregnancy-weight-calculator":J.PWG,"target-heart-rate":J.THR}},ee={report_scam:{label:"morePopover.report.scam",reportReasonText:"morePopover.report.scam"},report_sex:{label:"morePopover.report.sex",reportReasonText:"morePopover.report.sex"},report_offensive:{label:"morePopover.report.offensive",reportReasonText:"morePopover.report.offensive"},report_violence:{label:"morePopover.report.violence",reportReasonText:"morePopover.report.violence"},report_prohibited:{label:"morePopover.report.prohibited",reportReasonText:"morePopover.report.prohibited"},report_spam:{label:"morePopover.report.spam",reportReasonText:"morePopover.report.spam"},report_falseNews:{label:"morePopover.report.falseNews",reportReasonText:"morePopover.report.falseNews"},report_other:{label:"morePopover.report.other",reportReasonText:"morePopover.report.other"}},ne={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}},te=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DEFAULT_AVATAR_IMG:"/images/avatar.jpg",DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:"/images/default-image.jpg",BMI_LEVELS:["underweight","healthy","overweight","obese_level_1","obese_level_2"],BMR_LEVELS:["low","normal","high"],CORAL_TOKEN_COOKE:"coral_together_user_token",HEALTH_TOOL_TYPE:J,LOCALE_HEALTH_TOOLS:$,BEARER_TOKEN_COOKIE:"hhg_user_token",TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:"together_admin_token",Z_INDEX:{adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},BmrActiveLevels:[{value:"sedentary",icon:"bmr-sedentary",name:"bmr.activeLevel.sedentary",description:"bmr.activeLevel.sedentary.description"},{value:"lightly-active",icon:"bmr-light",name:"bmr.activeLevel.lightlyActive",description:"bmr.activeLevel.lightlyActive.description"},{value:"moderately-active",icon:"bmr-moderately",name:"bmr.activeLevel.moderatelyActive",description:"bmr.activeLevel.moderatelyActive.description"},{value:"intensely-active",icon:"bmr-intensively",name:"bmr.activeLevel.intenselyActive",description:"bmr.activeLevel.intenselyActive.description"},{value:"extremely-active",icon:"bmr-extremely",name:"bmr.activeLevel.extremelyActive",description:"bmr.activeLevel.extremelyActive.description"}],LEAD_CAMPAIGN_CODE:"lmoct7xfr5sv4fv",LEAD_TOKEN_COOKIE:"hhg-id",GA_TOKEN_COOKIE:"_ga",GOOGLE_CALENDAR_AUTH_CLIENT_ID:"1038242799566-esoq4ij201ve5qfp266nbca44scpo3c6.apps.googleusercontent.com",FIND_CARE_IFRAME_URL:"https://www.appsheet.com/start/4ba34ebe-3cb6-4c16-8dd4-d074025a5bb6#appName=DependentDropdowns-2711103&group=%5B%5D&page=card&sort=%5B%5D&table=Menu&view=Menu",REPORT_REASON_MAP:ee,MB_SOCIAL_LINKS:{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/marry.baby.vn",INSTAGRAM:"https://www.instagram.com/marrybaby.vn/",TWITTER:"",YOUTUBE:"https://www.youtube.com/channel/UCeZybTkY1VzJ3N7LvPGdKbg",ZALO:"http://zalo.me/806483414530291942"},INTERNAL_ROLES:["admin","moderator","local-admin"],EXTERNAL_ROLES:["ambassador","expert","sponsor","guide","influencer"],INTERNAL_PROFILE_ROLES:["moderator","local-admin"],EXTERNAL_PROFILE_ROLES:["expert","ambassador","sponsor"],RoleDataMap:{moderator:{text:"Moderator",fid:"cardAuthor.moderator",background:"#fe921d"},admin:{text:"Admin",fid:"cardAuthor.admin",background:"#2b62cd"},"local-admin":{text:"Local admin",fid:"cardAuthor.localAdmin",background:"#2b62cd"},expert:{text:"Expert",fid:"cardAuthor.expert",background:"#ff6f4d"},sponsor:{text:"Sponsor",fid:"cardAuthor.sponsor",background:"#00c7e6"},ambassador:{text:"Ambassador",fid:"cardAuthor.ambassador",background:"#00CB8A"}},MAX_IMAGE_UPLOADS:20,LOCALISED_SLUGS:ne}),ie=function(e){return e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||""}:{}},ae=function(e){return e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{}},oe=function(n){var t,i,a,o;return n?{id:n.ID,postName:n.post_name,sponsor:n.sponsor?le(n.sponsor):null,isSponsored:n.is_sponsored||null,postTitle:n.post_title||"",postModified:n.post_modified||"",postDate:n.post_date||"",modifiedTime:n.modified_time||"",permalink:n.permalink||"",featureImage:n.image||null,featureImageMobile:n.image_medium||null,featureImageMobileXs:n.image_thumbnail||null,author:ie(n.author),reviewer:n.reviewed_by&&ie(n.reviewed_by)||null,articleReviewed:(null==n?void 0:n.reviewed)?e.__assign(e.__assign({},null==n?void 0:n.reviewed),{author:re(null===(t=null==n?void 0:n.reviewed)||void 0===t?void 0:t.author),editor:re(null===(i=null==n?void 0:n.reviewed)||void 0===i?void 0:i.editor),expert:re(null===(a=null==n?void 0:n.reviewed)||void 0===a?void 0:a.expert),fact_check:re(null===(o=null==n?void 0:n.reviewed)||void 0===o?void 0:o.fact_check)}):null,category:se(n.category),postContent:n.post_content||null,sections:n.sections||null,categories:(n.categories||[]).map(se),sources:n.sources||null,description:n.description||null,excerpt:n.excerpt||null,expert:ae(n.expert),metaTag:n.meta_tag||null}:{}},re=function(n){return void 0!==n&&n?e.__assign(e.__assign({},n),{profile_url:(null==n?void 0:n.slug)?["expert","medical"].includes((null==n?void 0:n.role)||"")?"/expert/".concat(null==n?void 0:n.slug):"/author/".concat(null==n?void 0:n.slug):n.profile_url}):null},le=function(e){return e?{title:e.title,logo:e.logo,link:e.link}:{}},de=function(e){return{postTitle:e.post_title,permalink:e.permalink}},se=function(e){var n,t;return e?{termId:e.term_id||null,sponsor:e.sponsor?le(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(n=e.child_cates)||void 0===n?void 0:n.map((function(e){return se(e)})))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(t=e.cat_parent)||void 0===t?void 0:t.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?de(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((function(e){return ue(e)})):null}:{}},ue=function(e){return{title:e.title,content:e.content}},ce=function(e){return e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{}},pe=function(e){return e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},me=function(e){var n,t,i,a;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(n=e.community)||void 0===n?void 0:n.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:null===(i=e.community)||void 0===i?void 0:i.slug,communityName:null===(a=e.community)||void 0===a?void 0:a.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},ge=function(e){var n,t,i,a,o,r,l,d,s,u,c,p,m,g,h,f,v,b,x,A,w;return e?{id:e.id,topics:(null===(n=e.topics)||void 0===n?void 0:n.map((function(n){var t,i,a,o;return{id:n.id||0,name:n.name||"",slug:n.slug||"",url:"/"+(null===(t=e.community)||void 0===t?void 0:t.slug)+"/"+n.slug,communityId:String(null===(i=e.community)||void 0===i?void 0:i.id),communitySlug:(null===(a=e.community)||void 0===a?void 0:a.slug)||"",communityName:(null===(o=e.community)||void 0===o?void 0:o.name)||"",isHidden:Boolean(n.is_hidden),isActive:!0}})))||[],community:{id:(null===(t=e.community)||void 0===t?void 0:t.id)||0,name:(null===(i=e.community)||void 0===i?void 0:i.name)||"",slug:(null===(a=e.community)||void 0===a?void 0:a.slug)||"",isActive:!0,isHidden:Boolean(null===(o=e.community)||void 0===o?void 0:o.is_hidden)},slug:e.slug||"",author:{id:(null===(r=e.user)||void 0===r?void 0:r.id)||0,username:(null===(l=e.user)||void 0===l?void 0:l.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(c=e.user)||void 0===c?void 0:c.role)?null===(m=null===(p=e.user)||void 0===p?void 0:p.role)||void 0===m?void 0:m.toLowerCase():"",type:(null===(g=e.user)||void 0===g?void 0:g.type)||"",partnerId:(null===(h=e.user)||void 0===h?void 0:h.partner_id)?String(null===(f=e.user)||void 0===f?void 0:f.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(b=e.user)||void 0===b?void 0:b.doctor_id)?String(null===(x=e.user)||void 0===x?void 0:x.doctor_id):"",hospitalId:(null===(A=e.user)||void 0===A?void 0:A.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||""}:{}},he=function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{}},fe=function(e){var n,t,i,a,o,r,l,d,s,u,c,p,m,g,h,f,v,b,x,A,w,_,E,y,k,T,C,L,I,O,D,B;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(fe):[],author:{id:(null===(n=e.user)||void 0===n?void 0:n.id)||0,username:(null===(t=e.user)||void 0===t?void 0:t.user_name)||"",name:(null===(i=e.user)||void 0===i?void 0:i.name)||"",role:(null===(a=e.user)||void 0===a?void 0:a.role)?null===(r=null===(o=e.user)||void 0===o?void 0:o.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(l=e.user)||void 0===l?void 0:l.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(c=e.user)||void 0===c?void 0:c.partner_id):"",title:(null===(p=e.user)||void 0===p?void 0:p.title)||"",doctorId:(null===(m=e.user)||void 0===m?void 0:m.doctor_id)?String(null===(g=e.user)||void 0===g?void 0:g.doctor_id):"",hospitalId:(null===(h=e.user)||void 0===h?void 0:h.hospital_id)?String(null===(f=e.user)||void 0===f?void 0:f.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(v=e.mentioned)||void 0===v?void 0:v.id)||0,username:(null===(b=e.mentioned)||void 0===b?void 0:b.user_name)||"",name:(null===(x=e.mentioned)||void 0===x?void 0:x.name)||"",role:(null===(A=e.mentioned)||void 0===A?void 0:A.role)?null===(_=null===(w=e.mentioned)||void 0===w?void 0:w.role)||void 0===_?void 0:_.toLowerCase():"",avatar:(null===(E=e.mentioned)||void 0===E?void 0:E.avatar)||"",type:(null===(y=e.mentioned)||void 0===y?void 0:y.type)||"",email:(null===(k=e.mentioned)||void 0===k?void 0:k.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(C=e.mentioned)||void 0===C?void 0:C.partner_id):"",doctorId:(null===(L=e.mentioned)||void 0===L?void 0:L.doctor_id)?String(null===(I=e.mentioned)||void 0===I?void 0:I.doctor_id):"",hospitalId:(null===(O=e.mentioned)||void 0===O?void 0:O.hospital_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id):"",title:(null===(B=e.mentioned)||void 0===B?void 0:B.title)||""}:null,mentions:e.mentions||[]}:{}},ve=function(e){return void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?"/expert/".concat(null==e?void 0:e.slug):"/author/".concat(null==e?void 0:e.slug):(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":""},be=Object.freeze({__proto__:null,formatAuthor:ie,formatArticleExpert:ae,formatArticle:oe,formatUserProfile:re,formatBMIResult:function(e){var n,t,i,a,o,r,l,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(n=null==e?void 0:e.comparison)&&void 0!==n?n:"",assessmentData:[{tab:"tools.condition",content:null!==(t=null==e?void 0:e.condition)&&void 0!==t?t:""},{tab:"tools.risks",content:null!==(i=null==e?void 0:e.risk)&&void 0!==i?i:""},{tab:"tools.suggestion",content:null!==(a=null==e?void 0:e.suggestion)&&void 0!==a?a:""}],chartData:(null===(o=null==e?void 0:e.chart_data)||void 0===o?void 0:o.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(r=null==e?void 0:e.disclaimer)&&void 0!==r?r:"",illustrator:null!==(l=null==e?void 0:e.illustrator)&&void 0!==l?l:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:le,formatReviewedCategory:de,formatCategory:se,formatCategoryApi:function(e){return e?{categoryInfo:se(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(oe),subCategories:(e.data.sub_categories||[]).map(se)}:{}},formatFaqsCategory:ue,formatHealthTool:ce,formatHealthToolTypeCategory:function(e){var n,t;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(t=null===(n=null==e?void 0:e.health_tools)||void 0===n?void 0:n.map((function(e){return ce(e)})))&&void 0!==t?t:[]}:{}},formatCommunity:pe,formatTopic:me,formatPost:ge,formatPostPagination:function(e){return e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{}},formatNotification:function(e){var n,t,i;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(n=e.from_user)||void 0===n?void 0:n.name,id:null===(t=e.from_user)||void 0===t?void 0:t.id,avatar:null===(i=e.from_user)||void 0===i?void 0:i.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:function(e){return e?e.map((function(e){return{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}})):[]},formatOvulationInfo:he,formatSuggestedArticle:function(e){return e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{}},formatTopicHealthTool:function(e){return e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{}},formatComment:fe,formatReportedPostToPostDetail:function(e){return e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{}},formatTopicSubot:function(e){return e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{}},formatSiteWideBanner:function(e,n){return void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:n||"other"}:null},formatPWGContent:function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?re(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}},formatUserProfileUrl:ve,formatTHRContent:function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?re(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}}}),xe={BASE_API_PATH:"/",PROFILE:"profile?website_url={website_url}",SEARCH_USER:"profile/search?website_url={website_url}&name={name}",FETCH_PREVIEW:"fetch/preview?website_url={website_url}",FETCH_POST_OR_TOPIC:"fetch/{slug}?website_url={website_url}&community_slug={communitySlug}",POST:{LIST:"post?website_url={website_url}&slug={slug}&pin={pin}&page={page}&community_id={communityId}&topic_id={topicId}&sort_by={sort}&id={id}",DETAIL_BY_ID_OR_SLUG:"post/{idSlug}?website_url={website_url}",CREATE:"post/create?website_url={website_url}",LIKE:"post/{id}/like?website_url={website_url}",DELETE:"post/{id}/delete?website_url={website_url}",REPORT:"post/{id}/report?website_url={website_url}",UPDATE:"post/{id}/update?website_url={website_url}",FOLLOW:"post/{id}/follow?website_url={website_url}",CREATE_ARTICLE_COMMENT:"article-comment/create?website_url={website_url}"},COMMENT:{LIST:"comment?website_url={website_url}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",CREATE:"comment/create?website_url={website_url}",REPLY:"comment/reply?website_url={website_url}",DELETE:"comment/{id}/delete?website_url={website_url}",LIKE:"comment/{id}/like?website_url={website_url}",UNLIKE:"comment/{id}/unlike?website_url={website_url}",IMAGE_UPLOAD:"comment/image/upload?website_url={website_url}"},COMMUNITY:{LIST:"community?website_url={website_url}&page={page}",DETAIL_BY_ID_OR_SLUG:"community/{idSlug}?website_url={website_url}",JOIN:"community/join?website_url={website_url}",LEAVE:"community/leave?website_url={website_url}"},TOPIC:{LIST:"topic?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}&page={page}",DETAIL_BY_ID_OR_SLUG:"topic/{idSlug}?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}",HEALTH_TOOLS:"tools?topic_id={topicId}&website_url={website_url}",SUBOTS:"subots?topic_id={topicId}&website_url={website_url}",SUGGESTED_POSTS:"suggested-posts?topic_id={topicId}&website_url={website_url}&page={page}",JOIN:"topic/join?website_url={website_url}",LEAVE:"topic/leave?website_url={website_url}"},BOOKMARK:{LIST:"bookmark?user_id={userId}&website_url={website_url}",CREATE:"bookmark/create?website_url={website_url}",DELETE:"bookmark/delete?website_url={website_url}"},UPLOAD_IMAGE:"auth/comment/image/upload?website_url={website_url}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info"},Ae={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},we={BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ALL_CATEGORIES:"categories?type=all",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_ARTICLE_DETAIL:"article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch/{fullSlug}",GET_PREVIEW_ARTICLE:"fetch/{fullSlug}?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_PAGE_STATIC:"page/{slug}",GET_ALL_HEALTH_TOOLS:"healthtools",GET_ALL_MARRYBABY_HEALTH_TOOLS:"health-tools",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_AUTHOR:"author/{slug}",GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_AZ_DRUGS:"category/a-z/{category}",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_ARTICLES_BY_IDS:"articles?ids={ids}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_PROFILE:"user/profile",GET_ADMIN_PROFILE:"GET_ADMIN_PROFILE",GET_FEATURE:"feature",POST_NEW_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",GET_ALL_BOOKMARK:"bookmark",SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",POST_UPDATE_LOCATION:"tracking/geo/",GET_SIDIS_DUE_DATE:"frontend/tools/due_date",GET_SIDIS_OVULATION:"frontend/tools/ovulation",GET_SIDIS_BMI:"frontend/tools/bmi",GET_SIDIS_BMR:"frontend/tools/bmr",POST_LOGOUT:"user/logout",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_ALL_SPOTLIGHT:"spotlights?per_page={perPage}&order_by={orderBy}",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",POST_COMMENT_NOTIFICATION:"comment/notification",GET_ABOUT_US_DATA:"about",POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_SSO_VERIFY_TOKEN:"verify-id-token",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",FETCH_URL_DATA:"preview",GET_SPOTLIGHT_LANDING:"spotlight/{slug}",GET_FOOTER_INFO:"footer",CHECK_SSO_EMAIL:"member/check-email",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_DYNAMIC_FOOTER:"menu/footer",GET_EXPERTS:"experts?page={page}&number={perPage}&s={search}",GET_EXPERT_BY_ID:"expert/{id}"},_e=function(e,n){if("string"!=typeof e)throw new TypeError("argument str must be a string");var t={},i=(n||{}).decode||Te,a=0;for(;a<e.length;){var o=e.indexOf("=",a);if(-1===o)break;var r=e.indexOf(";",a);if(-1===r)r=e.length;else if(r<o){a=e.lastIndexOf(";",o-1)+1;continue}var l=e.slice(a,o).trim();if(void 0===t[l]){var d=e.slice(o+1,r).trim();34===d.charCodeAt(0)&&(d=d.slice(1,-1)),t[l]=Le(d,i)}a=r+1}return t},Ee=function(e,n,t){var i=t||{},a=i.encode||Ce;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!ke.test(e))throw new TypeError("argument name is invalid");var o=a(n);if(o&&!ke.test(o))throw new TypeError("argument val is invalid");var r=e+"="+o;if(null!=i.maxAge){var l=i.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");r+="; Max-Age="+Math.floor(l)}if(i.domain){if(!ke.test(i.domain))throw new TypeError("option domain is invalid");r+="; Domain="+i.domain}if(i.path){if(!ke.test(i.path))throw new TypeError("option path is invalid");r+="; Path="+i.path}if(i.expires){var d=i.expires;if(!function(e){return"[object Date]"===ye.call(e)||e instanceof Date}(d)||isNaN(d.valueOf()))throw new TypeError("option expires is invalid");r+="; Expires="+d.toUTCString()}i.httpOnly&&(r+="; HttpOnly");i.secure&&(r+="; Secure");if(i.priority){switch("string"==typeof i.priority?i.priority.toLowerCase():i.priority){case"low":r+="; Priority=Low";break;case"medium":r+="; Priority=Medium";break;case"high":r+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(i.sameSite){switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return r},ye=Object.prototype.toString,ke=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Te(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function Ce(e){return encodeURIComponent(e)}function Le(e,n){try{return n(e)}catch(n){return e}}var Ie={parse:_e,serialize:Ee},Oe={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},De=n.createContext({data:Oe,action:{pushNotifications:function(e){return e},sanitizeFunction:function(e){return e}}});exports.GlobalData=Oe;var Be={"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"},Ne={"vi-VN":"marrybaby.vn"},Se=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",Me=function(e){var n=exports.GlobalData.env.isMarryBaby;return"https://".concat(n?Ne[e]:Be[e])},Pe=function(e){var n=e.indexOf("?");return n>=0?e.slice(0,n+1)+e.slice(n+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},Ge=function(e){var n=exports.GlobalData.env.isMarryBaby;if("undefined"!=typeof window)return window.location.origin;var t="staging"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return"development"===process.env.NEXT_PUBLIC_DEPLOY_ENV?"http://localhost:3000":"https://".concat(t?n?"fe.":"discover.":n?"www.":"").concat(Be[e])},Re=function(n,t,i){var a="";i&&(a=Object.keys(i).map((function(e){return e+"="+i[e]})).join("&"));var o=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).togetherBaseApiUrl,r=void 0===o?"":o,l=Q.default(n,e.__assign(e.__assign({},(null==t?void 0:t._locale)?{website_url:Me(String(t._locale))}:{}),t));return l+="".concat(l.includes("?")?"&":"?").concat(a),r+"api/v1/"+Pe(l)},Ue=function(n,t){var i=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).discoverBaseApiUrl;return(void 0===i?"":i)+"wp-json/api/"+Pe(Q.default(n,e.__assign({},t)))},He=function(n,t){var i=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).careBaseApiUrl;return((void 0===i?"":i)||"https://service-health-care.hellohealthgroup.com/")+Pe(Q.default(n,e.__assign({},t)))},Qe=function(e){return(null==e?void 0:e.data)&&(e.data instanceof FormData?e.body=e.data:"object"==typeof e.data&&(e.body=JSON.stringify(e.data)),delete e.data),e},je=function(n,t,i,a){return void 0===a&&(a=!1),e.__awaiter(void 0,void 0,void 0,(function(){var o,r,l,d,s;return e.__generator(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,fetch(a?n:(c=n,encodeURI(c).replace(/%5B/g,"[").replace(/%5D/g,"]")),e.__assign({method:t},Qe(i))).then((function(e){return e.json()}))];case 1:return(o=u.sent())?[2,o]:[3,3];case 2:return r=u.sent(),console.log(r),console.log({url:n,status:null===(l=null==r?void 0:r.response)||void 0===l?void 0:l.status,statusText:null===(d=null==r?void 0:r.response)||void 0===d?void 0:d.statusText}),[2,(null===(s=null==r?void 0:r.response)||void 0===s?void 0:s.data)||null];case 3:return[2,null]}var c}))}))},Fe=function(n,t,i,a){return e.__awaiter(void 0,void 0,void 0,(function(){var o,r,l,d;return e.__generator(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),o=Ie.parse(a||""),r=o.hhg_user_token,(l=r||f.getCookie("hhg_user_token"))&&l.length?[4,fetch(n,e.__assign(e.__assign({method:t},Qe(i)),{headers:{Authorization:"Bearer "+l}})).then((function(e){return e.json()}))]:[3,2];case 1:if(d=s.sent())return[2,d];s.label=2;case 2:return[3,4];case 3:return s.sent(),[2,null];case 4:return[2,null]}}))}))};function ze(e,n,t){var i=new RegExp("([?&])"+n+"=.*?(&|$)","i"),a=-1!==e.indexOf("?")?"&":"?";return e.match(i)?e.replace(i,"$1"+n+"="+t+"$2"):e+a+n+"="+t}var Ke,Ye,We,Ve,Ze=function(e,n,t,i){return t&&n?"".concat(t,"-").concat(n):"".concat(H.default(e||"",{lower:!0,locale:i||Se}),"-").concat(n)},Xe=function(e){var n,t=e.name,i=e.id,a=e.locale;return"/care/".concat(null===(n=ne[a||"vi-VN"])||void 0===n?void 0:n.DOCTOR,"/").concat(Ze(t,i))},qe=function(e){var n,t=e.name,i=e.id,a=e.slug,o=e.locale;return"/care/".concat(null===(n=ne[o||"vi-VN"])||void 0===n?void 0:n.HOSPITAL,"/").concat(Ze(t,i,a))},Je=B.default.div(Ke||(Ke=e.__makeTemplateObject(["\n width: 40px;\n height: 40px;\n flex-shrink: 0;\n cursor: pointer;\n font-size: 20px;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n .avatar-default {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-size: 1em;\n font-weight: bold;\n line-height: 1;\n }\n\n &[data-is-marrybaby='true'] {\n .avatar-default {\n background-color: ",";\n }\n }\n"],["\n width: 40px;\n height: 40px;\n flex-shrink: 0;\n cursor: pointer;\n font-size: 20px;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n .avatar-default {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-size: 1em;\n font-weight: bold;\n line-height: 1;\n }\n\n &[data-is-marrybaby='true'] {\n .avatar-default {\n background-color: ",";\n }\n }\n"])),(function(e){return e.theme.colors.secondaryBase}),(function(e){return e.theme.mbColors.pink})),$e=function(e){var t=e.className,i=e.isMarryBaby,a=e.style,o=e.avatar,r=e.username,l=e.isLazy,d=n.useContext(De).data.env.isMarryBaby,s="boolean"==typeof i?i:d,u=n.useState(!1),c=u[0],p=u[1];return n.useEffect((function(){var e=new Image;e.onerror=function(){p(!0)},e.src=o}),[]),D.default.createElement(Je,{"data-is-marrybaby":s,className:t,style:a},o&&!c?D.default.createElement("img",{loading:"lazy",src:l?void 0:o,"data-src":l?o:void 0,className:"avatar ".concat(l?"lazy":""),alt:"avatar",onError:function(){p(!0)}}):D.default.createElement("div",{className:"avatar avatar-default"},r&&(null==r?void 0:r.length)>0?r[0].toUpperCase():"A"))},en="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAMAAABIw9uxAAAAilBMVEUAAAC/v7+/v7+6urq/v7+/v7+8vLy/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7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g/Yb1vLEOovBoADzgfpW1QaAG4Ij5H06sDYD8AhT5n0qKP4Dzgl/DGXvuyZ+wG4pq9LQMTTH8BB4VJ6MOPHH8BN51e5V0z1H3DVopb7ZMz9AxxWRnKHgvQ/4LRdLDe7MvgPcNwilRt1rH/AeUE7Z/3jF3t3t5M6FARgdOgRKiREeiAYQ3J+q43Kfv/X805ABcvtnrXeoTf9ZmaT12vj+4e8lm1c6872H9Ri18V1fjn+A/WYLuIarf4PNZn8ifFurf9CZR5itN8FqMw6RnopQHXWIwOg/X+o0TpGWAkAUKchvuf1H6jVPL7zrwCVmmzjsr8mgKFek+e4qC9AvXZtXLAtQM2Wt3FWowBA5X7GWQ8FqNx9nLGyAwzVu2nja0MBqvcUX1pJgJDB1hIQ5LVr4rOZKyCQwxCf3RcghUlrCBDyWsdHjTMAkMW0NQUMef13BwDy2s3ixMwQACSyiBN3BcjjNU7MC5DHdOYtAMjrOY4tC5DISQf44R8gpPIUR9oCZHITR7oCpPIYB4sCpNJZBYS8FnGwL0AqW3NAkNfcPVDIa3ANBPLq48A9QEhmE++aAiTTmAOCvDoVEPLaiwCQ1yACQF69CAB5bUQASKwRASCvTgSAvPYiAOQ1iACQVy8CQF4bEQASa0QAyKsTASCvvQgAeQ0iAOTViwCQ11t7dlACAAgFUAxsIPwIghf75zPI22psJACELQkAXVsCQNeTANB1JQB0HQkAXSMBIGxJAOjaEgC6ngSArisBoOtIAOiaD+58ZjwSBuPYAAAAAElFTkSuQmCC",nn="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L6 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6L18 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",tn="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9 16.9998C13.4183 16.9998 17 13.418 17 8.99976C17 4.58148 13.4183 0.999756 9 0.999756C4.58172 0.999756 1 4.58148 1 8.99976C1 13.418 4.58172 16.9998 9 16.9998Z' fill='white' stroke='%23E4E8EC' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.3333 7.66679V5.00012H7.66667V7.66679H5V10.3335H7.66667V13.0001H10.3333V10.3335H13V7.66679H10.3333Z' fill='%23FF5331'/%3e%3c/svg%3e",an=B.default.div(Ye||(Ye=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 1em;\n button {\n position: relative;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 1em;\n button {\n position: relative;\n }\n"]))),on=t.keyframes(We||(We=e.__makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));B.default.div(Ve||(Ve=e.__makeTemplateObject(["\n display: flex;\n width: fit-content;\n width: -moz-fit-content;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 1rem 2rem;\n background: white;\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n .loading-spinner {\n width: 24px;\n height: 24px;\n margin-bottom: 0.5rem;\n animation: "," 1.2s linear infinite;\n }\n &[data-is-marrybaby='true'] {\n box-shadow: none;\n }\n"],["\n display: flex;\n width: fit-content;\n width: -moz-fit-content;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 1rem 2rem;\n background: white;\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n .loading-spinner {\n width: 24px;\n height: 24px;\n margin-bottom: 0.5rem;\n animation: "," 1.2s linear infinite;\n }\n &[data-is-marrybaby='true'] {\n box-shadow: none;\n }\n"])),on);var rn=function(e){var n=e.className,t=e.size,i=void 0===t?"md":t,a=g.useTranslations().t;return D.default.createElement(an,{className:n},D.default.createElement(o.Button,{size:i,color:"transparent",isLoading:!0},a("loading")))},ln=B.default.div(cn||(cn=e.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200}),i.MediaQueries.tdUp,i.MediaQueries.mbDown,(function(e){return e.theme.colors.blue50})),dn=B.default.div(pn||(pn=e.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),sn=B.default.div(mn||(mn=e.__makeTemplateObject(["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"],["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"]))),un=B.default.div(gn||(gn=e.__makeTemplateObject(["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"],["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"])));B.default.span(hn||(hn=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"])),(function(e){return e.theme.colors.neutral300})),B.default.div(fn||(fn=e.__makeTemplateObject(["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"],["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"])),(function(e){return e.theme.colors.gray400})),B.default.div(vn||(vn=e.__makeTemplateObject(["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"],["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"])));var cn,pn,mn,gn,hn,fn,vn,bn,xn=B.default.ul(bn||(bn=e.__makeTemplateObject(["\n padding-left: 18px;\n li {\n list-style-type: disc;\n }\n"],["\n padding-left: 18px;\n li {\n list-style-type: disc;\n }\n"]))),An=function(e){var t,i,r,l,d=e.isOpen,s=void 0===d||d,u=e.onClose,c=e.enableAnimation,p=void 0===c||c,m=e.doctorId,h=e.locale,f=e.isMobile,v=g.useTranslations().t,b=n.useState(null),w=b[0],_=b[1],E=n.useState(!1),y=E[0],k=E[1];n.useEffect((function(){if(s&&m&&String(null==w?void 0:w.id)!==String(m)){k(!0);try{_(null),je(He(Ae.GET_DOCTOR_INFO,{doctorId:m,website_url:Be[h]}),"get").then((function(e){_(null==e?void 0:e._data.doctor)}))}catch(e){console.error(e)}k(!1)}}),[s,m,null==w?void 0:w.id]);var T=(null==w?void 0:w.experiences)||[],C=((null==w?void 0:w.specialties)||[]).map((function(e){return(null==e?void 0:e.name)||e})).join(" • "),L=T.map((function(e){try{return JSON.parse(e.description)}catch(n){return e.description}})).filter((function(e){return e.content})),I=A.useId(null===(t=null==w?void 0:w.experiences)||void 0===t?void 0:t.length);return D.default.createElement(D.default.Fragment,null,D.default.createElement(ln,{"data-open":s,"data-animation":p,onClick:function(e){return e.stopPropagation()}},y||!w?D.default.createElement(rn,null):D.default.createElement("div",{className:"popup-content"},D.default.createElement("div",{className:"close-button",onClick:u},D.default.createElement("img",{src:nn,style:{width:20,height:20},alt:"close-icon"})),D.default.createElement("div",{className:"main-info"},D.default.createElement("div",{className:"border-banner"}),D.default.createElement("div",{className:"avatar-title"},D.default.createElement(sn,null,D.default.createElement("div",{className:"image-container"},D.default.createElement("div",{style:{position:"relative"}},D.default.createElement("img",{src:(null==w?void 0:w.avatar)?null==w?void 0:w.avatar:en,className:"profile-image",alt:"avatar"}),D.default.createElement("img",{className:"badge-avatar",src:tn,alt:"badge"})))),D.default.createElement(un,null,D.default.createElement(a.Text,{size:"s3",type:"semiBold",className:"full-name"},null==w?void 0:w.name),D.default.createElement("div",{className:"specialty"},C&&D.default.createElement(D.default.Fragment,null,D.default.createElement(a.Text,{size:"p4",color:x.theme.colors.gray800},C," • ")),D.default.createElement("a",{href:qe({id:null===(i=null==w?void 0:w.organization)||void 0===i?void 0:i.id,name:null===(r=null==w?void 0:w.organization)||void 0===r?void 0:r.name,slug:null===(l=null==w?void 0:w.organization)||void 0===l?void 0:l.slug,locale:h}),className:"organisation",target:"_blank",rel:"noreferrer"},D.default.createElement(a.Text,{size:"p4",className:"organisation",color:x.theme.colors.gray800,style:{textDecoration:"underline"}},null==w?void 0:w.organization.name))))),!f&&D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement("a",{href:Xe({name:w.name,id:w.id,locale:h})},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment"))))),L&&D.default.createElement(un,null,D.default.createElement("div",{className:"experience"},D.default.createElement(a.Text,{type:"bold",size:"s3",color:x.theme.colors.gray800,style:{paddingBottom:16}},v("expert.content.description").toUpperCase()),D.default.createElement(xn,null,L.map((function(e,n){return D.default.createElement("li",{key:I[n]},D.default.createElement(a.Text,{size:"p2"},function(e){return(null==e?void 0:e.year)?"".concat(e.year," ").concat(null==e?void 0:e.content):(null==e?void 0:e.content)?e.content:"string"==typeof e?e:""}(e)))}))),f?D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement("a",{href:Xe({name:w.name,id:w.id,locale:h})},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment")))):D.default.createElement("a",{href:Xe({name:w.name,id:w.id,locale:h})},D.default.createElement(a.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},v("home.seeExpert"))))))),D.default.createElement(dn,{"data-open":s,onClick:function(e){e.stopPropagation(),u()}}))},wn=B.default.div(kn||(kn=e.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200}),i.MediaQueries.tdUp,i.MediaQueries.mbDown,(function(e){return e.theme.colors.blue50})),_n=B.default.div(Tn||(Tn=e.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),En=B.default.div(Cn||(Cn=e.__makeTemplateObject(["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"],["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"]))),yn=B.default.div(Ln||(Ln=e.__makeTemplateObject(["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"],["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"])));B.default.span(In||(In=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"])),(function(e){return e.theme.colors.neutral300})),B.default.div(On||(On=e.__makeTemplateObject(["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"],["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"])),(function(e){return e.theme.colors.gray400}));var kn,Tn,Cn,Ln,In,On,Dn,Bn,Nn,Sn,Mn,Pn,Gn,Rn,Un=B.default.div(Dn||(Dn=e.__makeTemplateObject(["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"],["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"]))),Hn={author:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%2345A4FF'/%3e%3cpath d='M23.9998 11.9995C23.9998 11.4024 23.9561 10.8154 23.8719 10.2417L18.7952 5.16504L5.04102 18.9585L9.89867 23.8162C10.5809 23.9366 11.283 23.9995 11.9998 23.9995C18.6272 23.9995 23.9998 18.6269 23.9998 11.9995Z' fill='%232D87F3'/%3e%3cpath d='M9.01377 17.824L5.04102 18.9591L6.17609 14.9863L8.54445 15.4556L9.01377 17.824Z' fill='white'/%3e%3cpath d='M8.54399 15.4561L5.04102 18.9591L9.01321 17.824L8.54399 15.4561Z' fill='%23F7F9FC'/%3e%3cpath d='M6.46714 18.5518L5.4485 17.5332L5.04102 18.9593L6.46714 18.5518Z' fill='%23E4E8EC'/%3e%3cpath d='M5.95747 18.043L5.04102 18.9595L6.46659 18.5521L5.95747 18.043Z' fill='%23D2D6DC'/%3e%3cpath d='M15.8281 5.33105L18.6654 8.16829L9.01365 17.82L6.17641 14.9828L15.8281 5.33105Z' fill='%23FFD658'/%3e%3cpath d='M7.59375 16.4043L17.2455 6.75259L18.6638 8.17094L9.0121 17.8226L7.59375 16.4043Z' fill='%23FFC326'/%3e%3cpath d='M18.3123 8.52499L15.4746 5.68737L16.5983 4.56359C17.0386 4.12334 17.7524 4.12334 18.1927 4.56359L19.436 5.8069C19.8763 6.24715 19.8763 6.96096 19.436 7.40121L18.3123 8.52499Z' fill='%23FF5331'/%3e%3cpath d='M18.8155 5.18555L16.8945 7.10648L18.3131 8.52497L19.4368 7.40119C19.877 6.96094 19.877 6.24713 19.4368 5.80688L18.8155 5.18555Z' fill='%23F44D2C'/%3e%3c/svg%3e",edtior:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%2345A4FF'/%3e%3cpath d='M23.9998 11.9995C23.9998 11.4024 23.9561 10.8154 23.8719 10.2417L18.7952 5.16504L5.04102 18.9585L9.89867 23.8162C10.5809 23.9366 11.283 23.9995 11.9998 23.9995C18.6272 23.9995 23.9998 18.6269 23.9998 11.9995Z' fill='%232D87F3'/%3e%3cpath d='M9.01377 17.824L5.04102 18.9591L6.17609 14.9863L8.54445 15.4556L9.01377 17.824Z' fill='white'/%3e%3cpath d='M8.54399 15.4561L5.04102 18.9591L9.01321 17.824L8.54399 15.4561Z' fill='%23F7F9FC'/%3e%3cpath d='M6.46714 18.5518L5.4485 17.5332L5.04102 18.9593L6.46714 18.5518Z' fill='%23E4E8EC'/%3e%3cpath d='M5.95747 18.043L5.04102 18.9595L6.46659 18.5521L5.95747 18.043Z' fill='%23D2D6DC'/%3e%3cpath d='M15.8281 5.33105L18.6654 8.16829L9.01365 17.82L6.17641 14.9828L15.8281 5.33105Z' fill='%23FFD658'/%3e%3cpath d='M7.59375 16.4043L17.2455 6.75259L18.6638 8.17094L9.0121 17.8226L7.59375 16.4043Z' fill='%23FFC326'/%3e%3cpath d='M18.3123 8.52499L15.4746 5.68737L16.5983 4.56359C17.0386 4.12334 17.7524 4.12334 18.1927 4.56359L19.436 5.8069C19.8763 6.24715 19.8763 6.96096 19.436 7.40121L18.3123 8.52499Z' fill='%23FF5331'/%3e%3cpath d='M18.8155 5.18555L16.8945 7.10648L18.3131 8.52497L19.4368 7.40119C19.877 6.96094 19.877 6.24713 19.4368 5.80688L18.8155 5.18555Z' fill='%23F44D2C'/%3e%3c/svg%3e",expert:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath d='M11.443 5.13654C11.6446 4.63466 12.355 4.63466 12.5566 5.13654L13.9931 8.71375C14.0789 8.92747 14.2795 9.0732 14.5093 9.08878L18.3553 9.34957C18.8949 9.38615 19.1145 10.0619 18.6994 10.4086L15.7412 12.8802C15.5645 13.0279 15.4878 13.2637 15.544 13.4871L16.4845 17.2254C16.6164 17.7499 16.0417 18.1676 15.5836 17.88L12.3188 15.8303C12.1238 15.7079 11.8758 15.7079 11.6808 15.8303L8.41599 17.88C7.95794 18.1676 7.38314 17.7499 7.51509 17.2254L8.45556 13.4871C8.51175 13.2637 8.43513 13.0279 8.25839 12.8802L5.30017 10.4086C4.88514 10.0619 5.10469 9.38615 5.64429 9.34957L9.49031 9.08878C9.7201 9.0732 9.92068 8.92747 10.0065 8.71375L11.443 5.13654Z' fill='white'/%3e%3c/svg%3e","fact-check":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z' fill='%2300C076'/%3e%3cpath d='M11.9456 5.46631L6.66562 10.2663L4.26562 8.08449' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",medical:tn},Qn=function(e){var t=e.isOpen,i=void 0===t||t,o=e.onClose,r=e.enableAnimation,l=void 0===r||r,d=e.expertId,s=g.useTranslations().t,u=n.useState(null),c=u[0],p=u[1],m=n.useState(!1),h=m[0],f=m[1];return n.useEffect((function(){if(i&&d&&String(null==c?void 0:c.user_id)!==String(d)){f(!0);try{p(null),je(Ue(we.GET_EXPERT_BY_ID,{id:d}),"get").then((function(e){p(null==e?void 0:e.data)}))}catch(e){console.error(e)}f(!1)}}),[i,d,null==c?void 0:c.user_id]),D.default.createElement(D.default.Fragment,null,D.default.createElement(wn,{"data-open":i,"data-animation":l,onClick:function(e){return e.stopPropagation()}},h||!c?D.default.createElement(rn,null):D.default.createElement("div",{className:"popup-content"},D.default.createElement("div",{className:"close-button",onClick:o},D.default.createElement("img",{src:nn,style:{width:20,height:20},alt:"close-icon"})),D.default.createElement("div",{className:"main-info"},D.default.createElement("div",{className:"border-banner"}),D.default.createElement("div",{className:"avatar-title"},D.default.createElement(En,null,D.default.createElement("div",{className:"image-container"},D.default.createElement("div",{style:{position:"relative"}},D.default.createElement("img",{src:(null==c?void 0:c.avatar)?null==c?void 0:c.avatar:en,className:"profile-image",alt:"avatar"}),D.default.createElement("img",{className:"badge-avatar",src:Hn[null==c?void 0:c.role],alt:"badge"})))),D.default.createElement(yn,null,D.default.createElement(a.Text,{size:"s3",className:"full-name",type:"semiBold"},null==c?void 0:c.display_name),D.default.createElement("div",null,D.default.createElement(a.Text,{size:"p4",color:x.theme.colors.gray800},null==c?void 0:c.specialty," • "),D.default.createElement("a",{href:null==c?void 0:c.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},D.default.createElement(a.Text,{size:"p4",className:"organisation",color:x.theme.colors.gray800,style:{textDecoration:"underline"}},null==c?void 0:c.organisation)))))),D.default.createElement(yn,null,D.default.createElement("div",{className:"experience"},D.default.createElement(a.Text,{type:"bold",size:"p4",color:x.theme.colors.gray800,style:{paddingBottom:16}},s("expert.content.description").toUpperCase()),D.default.createElement("div",{className:"list-items"},!!(null==c?void 0:c.experiences)&&c.experiences.filter((function(e){return!(!e||!e.title&&!e.organization)})).slice(0,3).map((function(e,n){return D.default.createElement(Un,{key:n},D.default.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point"}),D.default.createElement("div",{className:"text-contain"},D.default.createElement(w.Heading,{tag:"h6",color:x.theme.colors.gray800},null==e?void 0:e.title),D.default.createElement(a.Text,{size:"p2",color:x.theme.colors.gray500},null==e?void 0:e.organization)))}))),D.default.createElement("a",{href:null==c?void 0:c.profile_url},D.default.createElement(a.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},s("home.seeExpert"))))))),D.default.createElement(_n,{"data-open":i,onClick:function(e){e.stopPropagation(),o()}}))},jn=B.default.div(Bn||(Bn=e.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200}),i.MediaQueries.tdUp,i.MediaQueries.mbDown,(function(e){return e.theme.colors.blue50})),Fn=B.default.div(Nn||(Nn=e.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),zn=B.default.div(Sn||(Sn=e.__makeTemplateObject(["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"],["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"]))),Kn=B.default.div(Mn||(Mn=e.__makeTemplateObject(["\n position: relative;\n z-index: 9;\n .specialty {\n display: block;\n min-width: 240px;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n }\n"],["\n position: relative;\n z-index: 9;\n .specialty {\n display: block;\n min-width: 240px;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n }\n"])));B.default.span(Pn||(Pn=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"])),(function(e){return e.theme.colors.neutral300})),B.default.div(Gn||(Gn=e.__makeTemplateObject(["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"],["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"])),(function(e){return e.theme.colors.gray400})),B.default.div(Rn||(Rn=e.__makeTemplateObject(["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"],["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"])));var Yn=function(e){var t=e.isOpen,i=void 0===t||t,r=e.onClose,l=e.enableAnimation,d=void 0===l||l,s=e.hospitalId,u=e.locale,c=e.isMobile,p=g.useTranslations().t,m=n.useState(null),h=m[0],f=m[1],v=n.useState(!1),b=v[0],A=v[1];n.useEffect((function(){if(i&&s&&String(null==h?void 0:h.id)!==String(s)){A(!0);try{f(null),je(He(Ae.GET_HOSPITAL_INFO,{hospital_branch_id:s,website_url:Be[u]}),"get").then((function(e){f(null==e?void 0:e._data.branch)}))}catch(e){console.error(e)}A(!1)}}),[i,s,null==h?void 0:h.id]);var w=(null==h?void 0:h.specialties)||[],_=n.useMemo((function(){return w.map((function(e){return e.name}))}),[w]);return D.default.createElement(D.default.Fragment,null,D.default.createElement(jn,{"data-open":i,"data-animation":d,onClick:function(e){return e.stopPropagation()}},b||!h?D.default.createElement(rn,null):D.default.createElement("div",{className:"popup-content"},D.default.createElement("div",{className:"close-button",onClick:r},D.default.createElement("img",{src:nn,style:{width:20,height:20},alt:"close-icon"})),D.default.createElement("div",{className:"main-info"},D.default.createElement("div",{className:"border-banner"}),D.default.createElement("div",{className:"avatar-title"},D.default.createElement(zn,null,D.default.createElement("div",{className:"image-container"},D.default.createElement("div",{style:{position:"relative"}},D.default.createElement("img",{src:(null==h?void 0:h.logo)?null==h?void 0:h.logo:en,className:"profile-image",alt:"avatar"}),D.default.createElement("img",{className:"badge-avatar",src:tn,alt:"badge"})))),D.default.createElement(Kn,null,D.default.createElement(a.Text,{size:"s3",type:"semiBold",className:"full-name"},null==h?void 0:h.name),D.default.createElement("div",{className:"specialty"},w&&D.default.createElement(a.Text,{size:"p4",color:x.theme.colors.gray800},_.join(" • "),"•"),D.default.createElement("a",{href:qe({id:h.id,name:h.name,slug:h.slug,locale:u}),className:"organisation",target:"_blank",rel:"noreferrer"},D.default.createElement(a.Text,{size:"p4",className:"organisation",color:x.theme.colors.gray800,style:{textDecoration:"underline"}},null==h?void 0:h.name))))),!c&&D.default.createElement("a",{href:qe({id:h.id,name:h.name,slug:h.slug,locale:u})},D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking"},p("careBooking.bookAnAppointment"))))),D.default.createElement(Kn,null,D.default.createElement("div",{className:"experience"},D.default.createElement(a.Text,{type:"bold",size:"s3",color:x.theme.colors.gray800,style:{paddingBottom:16}},p("hospital.content.description").toUpperCase()),D.default.createElement(a.Text,{size:"p2",color:x.theme.colors.gray500},h.about),c?D.default.createElement("a",{href:qe({id:h.id,name:h.name,slug:h.slug,locale:u})},D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking"},p("careBooking.bookAnAppointment")))):D.default.createElement("a",{href:qe({id:h.id,name:h.name,slug:h.slug,locale:u})},D.default.createElement(a.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},p("home.seeHospital"))))))),D.default.createElement(Fn,{"data-open":i,onClick:function(e){e.stopPropagation(),r()}}))},Wn={lessThanXSeconds:{one:"တစ်စက္ကန့်အောက်",other:"{{count}} စက္ကန့်အောက်"},xSeconds:{one:"တစ်စက္ကန့်",other:"{{count}} စက္ကန့်"},halfAMinute:"မိနစ်ဝက်",lessThanXMinutes:{one:"တစ်မိနစ်အောက်",other:"{{count}} မိနစ်အောက်"},xMinutes:{one:"တစ်မိနစ်",other:"{{count}}နာရီခန့်"},aboutXHours:{one:"တစ်နာရီခန့်",other:"{{count}}နာရီခန့်"},xHours:{one:"တစ်နာရီ",other:"{{count}}နာရီ"},xDays:{one:"တစ်ရက်",other:"{{count}}ရက်"},aboutXWeeks:{one:"တစ်ပတ်ခန့်",other:"{{count}}ပတ်ခန့်"},xWeeks:{one:"တစ်ပတ်",other:"{{count}}ပတ်"},aboutXMonths:{one:"တစ်လခန့်",other:"{{count}} လခန့်"},xMonths:{one:"တစ်လ",other:"{{count}}လ"},aboutXYears:{one:"တစ်နှစ်ခန့်",other:"{{count}}နှစ်"},xYears:{one:"တစ်နှစ်",other:"{{count}}နှစ်"},overXYears:{one:"တစ်နှစ်ကျော်",other:"{{count}}နှစ်ကျော်"},almostXYears:{one:"တစ်နှစ်နီးပါး",other:"{{count}}နှစ်နီးပါး"}},Vn={code:"my",formatDistance:function(e,n,t){var i,a=Wn[e];return i="string"==typeof a?a:1===n?a.one:a.other.replace("{{count}}",n.toString()),(null==t?void 0:t.addSuffix)?t.comparison&&t.comparison>0?i+"အတွင်း":"လွန်ခဲ့သော "+i:i},options:{weekStartsOn:0,firstWeekContainsDate:1}},Zn=B.default.div(Xn||(Xn=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0 1rem;\n a {\n text-decoration: none;\n }\n .button-more {\n display: flex;\n width: 20px;\n height: 20px;\n align-items: center;\n justify-content: center;\n .button-more-icon {\n height: 13px;\n vertical-align: middle;\n }\n }\n .temp-avatar {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-weight: bold;\n }\n\n .author-info {\n flex: 1;\n margin-left: 0.5rem;\n .author-info-top {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n .author-info-text-wrapper {\n display: flex;\n min-width: 0px;\n flex: 1 1 0%;\n align-items: center;\n }\n .author-name {\n overflow: hidden;\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .author-time {\n flex-shrink: 0;\n }\n .author-role {\n height: 1rem;\n flex-shrink: 0;\n padding: 0 0.5rem;\n margin-left: 4px;\n border-radius: 1rem;\n color: white;\n font-size: 8px;\n font-weight: 600;\n line-height: 1rem;\n &[data-label-type='admin'] {\n background: ",";\n }\n &[data-label-type='local admin'] {\n background: ",";\n }\n &[data-label-type='ambassador'] {\n background: ",";\n }\n &[data-label-type='expert'] {\n background: ",";\n }\n &[data-label-type='moderator'] {\n background: ",";\n }\n &[data-label-type='sponsor'] {\n background: ",";\n }\n &[data-label-type='guide'] {\n background: ",";\n }\n &[data-label-type='influencer'] {\n background: ",";\n }\n }\n }\n .author-community {\n .text-container {\n color: ",";\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n .time-text {\n font-size: 12px;\n font-weight: normal;\n }\n a {\n color: inherit;\n }\n }\n }\n .expert-wrapper {\n width: 100%;\n }\n &[data-is-booking='true'] {\n display: grid;\n background-color: ",";\n .btn-wrapper {\n padding: 0 16px;\n .btn-booking {\n width: 100%;\n margin: 12px 0;\n }\n }\n }\n &[data-is-marrybaby='true'] {\n align-items: unset;\n .author-info \n "," {\n margin-left: 0.5rem;\n }\n .author-info-text-wrapper {\n flex-wrap: wrap;\n }\n .author-time {\n margin-left: 0.4rem;\n font-size: 14px;\n }\n }\n .author-community {\n .text-container {\n font-size: 12px;\n line-height: 20px;\n }\n .author-community-name {\n color: ",";\n font-weight: 500;\n }\n }\n }\n"],["\n display: flex;\n align-items: center;\n padding: 0 1rem;\n a {\n text-decoration: none;\n }\n .button-more {\n display: flex;\n width: 20px;\n height: 20px;\n align-items: center;\n justify-content: center;\n .button-more-icon {\n height: 13px;\n vertical-align: middle;\n }\n }\n .temp-avatar {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-weight: bold;\n }\n\n .author-info {\n flex: 1;\n margin-left: 0.5rem;\n .author-info-top {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n .author-info-text-wrapper {\n display: flex;\n min-width: 0px;\n flex: 1 1 0%;\n align-items: center;\n }\n .author-name {\n overflow: hidden;\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .author-time {\n flex-shrink: 0;\n }\n .author-role {\n height: 1rem;\n flex-shrink: 0;\n padding: 0 0.5rem;\n margin-left: 4px;\n border-radius: 1rem;\n color: white;\n font-size: 8px;\n font-weight: 600;\n line-height: 1rem;\n &[data-label-type='admin'] {\n background: ",";\n }\n &[data-label-type='local admin'] {\n background: ",";\n }\n &[data-label-type='ambassador'] {\n background: ",";\n }\n &[data-label-type='expert'] {\n background: ",";\n }\n &[data-label-type='moderator'] {\n background: ",";\n }\n &[data-label-type='sponsor'] {\n background: ",";\n }\n &[data-label-type='guide'] {\n background: ",";\n }\n &[data-label-type='influencer'] {\n background: ",";\n }\n }\n }\n .author-community {\n .text-container {\n color: ",";\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n .time-text {\n font-size: 12px;\n font-weight: normal;\n }\n a {\n color: inherit;\n }\n }\n }\n .expert-wrapper {\n width: 100%;\n }\n &[data-is-booking='true'] {\n display: grid;\n background-color: ",";\n .btn-wrapper {\n padding: 0 16px;\n .btn-booking {\n width: 100%;\n margin: 12px 0;\n }\n }\n }\n &[data-is-marrybaby='true'] {\n align-items: unset;\n .author-info \n "," {\n margin-left: 0.5rem;\n }\n .author-info-text-wrapper {\n flex-wrap: wrap;\n }\n .author-time {\n margin-left: 0.4rem;\n font-size: 14px;\n }\n }\n .author-community {\n .text-container {\n font-size: 12px;\n line-height: 20px;\n }\n .author-community-name {\n color: ",";\n font-weight: 500;\n }\n }\n }\n"])),(function(e){return e.theme.colors.secondaryBase}),(function(e){return e.theme.colors.blue800}),(function(e){return e.theme.colors.blue800}),(function(e){return e.theme.colors.green400}),(function(e){return e.theme.colors.red400}),(function(e){return e.theme.colors.yellow800}),(function(e){return e.theme.colors.teal400}),(function(e){return e.theme.colors.teal400}),(function(e){return e.theme.colors.teal400}),(function(e){return e.theme.colors.gray500}),(function(e){return e.theme.colors.blue50}),i.MediaQueries.mbDown,(function(e){return e.theme.mbColors.cobalt}));B.default.img(qn||(qn=e.__makeTemplateObject(["\n width: 20px;\n height: 20px;\n margin-left: 0.5rem;\n cursor: pointer;\n object-fit: contain;\n"],["\n width: 20px;\n height: 20px;\n margin-left: 0.5rem;\n cursor: pointer;\n object-fit: contain;\n"])));var Xn,qn,Jn,$n=B.default.div(Jn||(Jn=e.__makeTemplateObject(["\n position: relative;\n .mini-icon {\n position: absolute;\n right: 1.2px;\n bottom: 1.2px;\n }\n"],["\n position: relative;\n .mini-icon {\n position: absolute;\n right: 1.2px;\n bottom: 1.2px;\n }\n"]))),et={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor","local-admin":"cardAuthor.localAdmin",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},nt={"vi-VN":R.default,"id-ID":M.default,"ms-MY":P.default,"km-KH":N.default,"en-PH":N.default,"th-TH":G.default,"my-MM":Vn,"zh-TW":U.default,"hi-IN":S.default};exports.ADMIN_PATHS={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},exports.Avatar=F,exports.BEARER_TOKEN_COOKIE="hhg_user_token",exports.CARE_PATHS=Ae,exports.CardAuthor=function(e){var t=e.time,l=e.className,d=e.community,s=e.name,u=e.username,c=e.url,p=e.avatar,m=e.miniIcon,f=e.role,v=e.style,b=e.type,x=void 0===b?"post":b,A=e.expertId,w=e.isMarryBaby,_=e.title,E=e.doctorId,y=e.hospitalId,k=e.hasQuickBooking,T=e.handleMakeAppointment,C=n.useContext(De).data,L=C.locale,I=C.router,O=C.env,B=O.isMarryBaby,N=O.togetherBasePath,S="boolean"==typeof w?w:B,M=s||u||"",P=f?function(e){var n=["admin","moderator","ambassador","expert","sponsor","local-admin","guide","influencer"];return n.find((function(n){return n===e}))||n.find((function(n){return e.includes(n)}))||n.find((function(n){return n.includes(e)}))}(f):"",G=g.useTranslations().t,R=t?isNaN(new Date(t).getTime())?null:new Date(t):null,U=R?r.formatDistanceToNow(R,{locale:nt[L]}):t,H=R?r.format(R,"dd/MM/yyyy HH:mm"):t,Q=n.useState(!1),j=Q[0],z=Q[1],K=(I||{}).asPath,Y="https://".concat(h.domainLocales[L]).concat(K),W=function(e){"expert"===f&&(A||E||y)?(e.stopPropagation(),z(!0)):c&&(window.location.href=c)};return n.useEffect((function(){i.toggleNoScroll(j)}),[j]),D.default.createElement(D.default.Fragment,null,"expert"===f&&A?D.default.createElement(Qn,{isOpen:j,onClose:function(){return z(!1)},expertId:A}):null,"expert"===f&&E?D.default.createElement(An,{isOpen:j,onClose:function(){return z(!1)},doctorId:E,locale:L}):null,"expert"===f&&y?D.default.createElement(Yn,{isOpen:j,onClose:function(){return z(!1)},hospitalId:y,locale:L}):null,D.default.createElement(Zn,{"data-is-marrybaby":S,className:l,style:v,"data-is-booking":k},D.default.createElement("div",{style:{display:"flex",width:"100%"}},D.default.createElement("a",null,D.default.createElement($n,{onClick:W},D.default.createElement($e,{className:"author-avatar-wrapper",username:M,avatar:p}),m?D.default.createElement(F,{className:"mini-icon",type:"rounded",avatarImg:D.default.createElement("img",{src:m,style:{width:"12px",height:"12px",objectFit:"cover"},alt:"badge"})}):null)),D.default.createElement("div",{className:"expert-wrapper"},D.default.createElement("div",{className:"author-info"},D.default.createElement("div",{className:"author-info-top"},D.default.createElement("div",{onClick:W,className:"author-info-text-wrapper"},D.default.createElement("div",{className:"author-name"},M),P&&et[P]&&D.default.createElement("div",{className:"author-role","data-label-type":P},_||G(et[P])),S?D.default.createElement(a.Text,{size:"p4",type:"regular",color:"#9495A0",title:H,className:"author-time"},"".concat("post"===x?"• ":"").concat(U)):null)),D.default.createElement("div",{className:"author-community"},D.default.createElement("div",{className:"text-container"},(null==d?void 0:d.name)&&D.default.createElement(D.default.Fragment,null,D.default.createElement("a",{href:(null==d?void 0:d.slug)&&d.isActive&&!d.isHidden?"".concat(N,"/").concat(null==d?void 0:d.slug):void 0,className:"author-community-name"},"".concat(null==d?void 0:d.name)),(S?void 0:U)?" • ":""),D.default.createElement("span",{className:"time-text"},S?void 0:U)))))),k&&D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking",onClick:function(e){null==T||T(E,y),e.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:Y},G("careBooking.bookAnAppointment")))))},exports.DEFAULT_AVATAR_IMG="/images/avatar.jpg",exports.DEFAULT_IMG="/images/default-image.jpg",exports.DISCOVER_PATHS=we,exports.DefaultComponentGlobalContextData=Oe,exports.Dropdown=function(n){var t=n.className,i=n.value,a=n.options,o=n.onChange,r=void 0===o?function(){}:o,l=n.id,d=n.placeholderIcon,s=n.placeholder,u=n.style,c=n.size,p=void 0===c?"lg":c,m=n.groupedWithLabel,g=n.disabled,h=n.dropdownLabelTrackingAttributes,f=void 0===h?{}:h,v=n.isNativeSelect,b=void 0!==v&&v,x=D.default.useState(!1),A=x[0],w=x[1],_=function(){return!g&&w(!A)};return b?D.default.createElement(z,{as:"select","data-is-native":"true",value:(null==i?void 0:i.value)||void 0,disabled:g,onChange:function(e){if("string"==typeof e.target.value){var n=a.find((function(n){return n.value===e.target.value}));n&&r(n)}}},s&&D.default.createElement("option",{value:s,disabled:!0,selected:!0},s),a.map((function(e){return D.default.createElement("option",{key:"".concat(l,"-").concat(e.value),value:e.value,disabled:!!e.disabled&&e.disabled},e.label)}))):D.default.createElement(z,{className:t,"data-dropdown-open":A||void 0,"data-size":p,id:l,"data-has-icons":!!d,style:u,onBlur:function(){return w(!1)},tabIndex:0,"data-disabled":g},!!m&&D.default.createElement(Z,null,m),D.default.createElement(K,e.__assign({onClick:_,className:m&&"with-label"},f),d," ",D.default.createElement("span",null,i&&i.value?i.label:s)),A&&D.default.createElement(Y,{onClick:_,"data-has-icons":!!d},a.map((function(e){return D.default.createElement(W,{key:"".concat(l,"-").concat(e.value),"data-selected":i&&i.value===e.value||void 0,onClick:function(){return!e.disabled&&!g&&(null==r?void 0:r(e))},"data-disabled":!!e.disabled&&e.disabled},e.icon&&D.default.createElement(V,null,e.icon),e.label)}))))},exports.HEALTH_TOOL_TYPE=J,exports.Loading=rn,exports.MAX_IMAGE_UPLOADS=20,exports.PATHS=xe,exports.Popup=function(e){var n=e.type,t=void 0===n?"lead":n,i=e.closeIcon,a=e.isOpen,o=void 0===a||a,r=e.onClose,l=e.children,d=e.className,s=void 0===d?"":d,u=e.enableAnimation,c=void 0===u||u;return D.default.createElement(D.default.Fragment,null,D.default.createElement(X,{"data-open":o,"data-type":t,"data-animation":c},D.default.createElement("div",{className:"".concat(s||""," popup-content")},!!i&&D.default.createElement("div",{className:"close-button",onClick:r},i),l)),D.default.createElement(q,{"data-open":o,onClick:r}))},exports.PopupDoctor=An,exports.PopupExpert=Qn,exports.PopupHospital=Yn,exports.REPORT_REASON_MAP=ee,exports.TogetherComponentGlobalContext=De,exports.TogetherComponentGlobalContextProvider=function(e){var t=e.locale,i=void 0===t?"vi-VN":t,a=e.children,o=e.userInfo,r=e.router,l=e.env,d=void 0===l?{isMarryBaby:!1,togetherBasePath:"/community"}:l,s=e.sanitizeFunction,u=void 0===s?function(e){return e}:s,c=e.pushNotifications,p=void 0===c?function(){return!1}:c,m=n.useState(),g=m[0],h=m[1];return exports.GlobalData={userInfo:o,locale:i,togetherUserId:g,router:r,env:d},n.useEffect((function(){(null==o?void 0:o.id)&&Fe(Re(xe.PROFILE,{_locale:i}),"GET").then((function(e){var n;h(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.id)}))}),[null==o?void 0:o.id]),D.default.createElement(De.Provider,{value:{data:{userInfo:o,locale:i,togetherUserId:g,router:r,env:d},action:{pushNotifications:p,sanitizeFunction:u}}},a)},exports.UserAvatar=$e,exports.callApi=je,exports.callApiWithAdminAuth=function(n,t,i,a){return e.__awaiter(void 0,void 0,void 0,(function(){var o,r,l,d;return e.__generator(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),o=Ie.parse(a||""),r=o.together_admin_token,(l=r||f.getCookie("together_admin_token"))&&l.length?[4,fetch(n,e.__assign(e.__assign({method:t},Qe(i)),{headers:{Authorization:"Bearer "+l}})).then((function(e){return e.json()}))]:[3,2];case 1:if(d=s.sent())return[2,d];s.label=2;case 2:return[3,4];case 3:return s.sent(),[2,null];case 4:return[2,null]}}))}))},exports.callApiWithAuth=Fe,exports.callApiWithOptionalAuth=function(n,t,i,a){return void 0===t&&(t="GET"),e.__awaiter(void 0,void 0,void 0,(function(){var o,r,l,d,s,u,c,p,m,g,h,v,b,x;return e.__generator(this,(function(A){switch(A.label){case 0:if(A.trys.push([0,7,,8]),o="string"==typeof n?n:n.url,r="string"==typeof n?n:n.backupUrl,l=Ie.parse(a||""),d=l.hhg_user_token,!(s=d||f.getCookie("hhg_user_token"))||!s.length)return[3,5];A.label=1;case 1:return A.trys.push([1,3,,4]),[4,fetch(o,e.__assign(e.__assign({method:t},Qe(i)),{headers:{Authorization:"Bearer "+s}})).then((function(e){return e.json()}))];case 2:return u=A.sent(),(null===(m=null==u?void 0:u.messages)||void 0===m?void 0:m.find((function(e){return"Unauthenticated"===(null==e?void 0:e.toLowerCase())})))?[2,je(r||o,t,i)]:u?[2,u]:[3,4];case 3:return c=A.sent(),console.log({status:null===(g=null==c?void 0:c.response)||void 0===g?void 0:g.status,statusText:null===(h=null==c?void 0:c.response)||void 0===h?void 0:h.statusText}),[2,je(r||o,t,i)];case 4:return[3,6];case 5:return[2,je(r||o,t,i)];case 6:return[3,8];case 7:return p=A.sent(),console.log({status:null===(v=null==p?void 0:p.response)||void 0===v?void 0:v.status,statusText:null===(b=null==p?void 0:p.response)||void 0===b?void 0:b.statusText}),[2,(null===(x=null==p?void 0:p.response)||void 0===x?void 0:x.data)||null];case 8:return[2,null]}}))}))},exports.constants=te,exports.dataTransform=be,exports.domainLocales=Be,exports.formatComment=fe,exports.formatCommunity=pe,exports.formatOvulationInfo=he,exports.formatPost=ge,exports.formatTopic=me,exports.formatUserProfileUrl=ve,exports.getApiPath=Re,exports.getCarePath=He,exports.getCurrentBaseUrl=Ge,exports.getCurrentHref=function(e,n,t){return"undefined"!=typeof window?window.location.href:"".concat(Ge(e)).concat(n).concat(t)},exports.getDiscoverApiPath=Ue,exports.getUrlToSignUp=function(e,n,t){void 0===t&&(t="/community");var i=e||("undefined"!=typeof window?window.location.href:"/"),a="undefined"!=typeof window?window.location.origin:"";return a||e&&(e.startsWith("http://")||e.startsWith("https://"))&&(a=e.split("/").slice(0,3).join("/")),function(e,n){var t=exports.GlobalData.env.publicSSO,i=e||window.location.href;return n&&Object.keys(n).map((function(e){ze(i,e,n[e])})),ze(i,"source","communities"),t?"".concat(t,"?returnUrl=").concat(encodeURIComponent(i.toString())):i}("".concat(a).concat(t,"/on-boarding?return=").concat(encodeURIComponent(i)),n)},exports.locales=nt;
|
|
1
|
+
"use strict";var e=require("./tslib.es6-f7929e76.js"),n=require("react"),t=require("styled-components"),i=require("./screenSizeContext-60cc891b.js"),a=require("./index.styled-03c4dedb.js"),o=require("./index-06ae8f3a.js"),r=require("date-fns"),l=require("date-fns/locale/en-US"),d=require("date-fns/locale/hi"),s=require("date-fns/locale/id"),u=require("date-fns/locale/ms"),c=require("date-fns/locale/th"),p=require("date-fns/locale/vi"),m=require("date-fns/locale/zh-TW"),g=require("./useTranslations-60d001df.js"),h=require("./index-bce6f562.js"),f=require("./cookieHelper-612b90fa.js"),v=require("slugify"),b=require("string-format"),x=require("./theme-696d81a9.js"),A=require("react-id-generator"),w=require("./index-ef8759f0.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var E,y,k,T,C,L,I,O,D=_(n),B=_(t),N=_(l),S=_(d),M=_(s),P=_(u),G=_(c),R=_(p),U=_(m),H=_(v),Q=_(b),j={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},F=function(e){var t=e.type,i=void 0===t?"square":t,o=e.size,r=e.avatarImg,l=e.avatarUrl,d=e.firstLetter,s=e.backgroundColor,u=e.onClick,c=e.style,p=e.className,m=e.isAmp,g=void 0!==m&&m,h=e.width,f=e.height,v=o?j[o]:void 0,b=n.useState(!1),x=b[0],A=b[1];n.useEffect((function(){if(l){var e=document.createElement("img");e.setAttribute("src",l),e.addEventListener("error",(function(){A(!0)}))}}),[l,A]);var w=(!l&&!r||x)&&d;return D.default.createElement(a.StyledAvatar,{style:c,"data-avatar-type":i,onClick:u,className:p,size:g?void 0:v,backgroundColor:s,avatarUrl:l,"data-is-amp":g,width:h,height:f},r,l&&!x&&D.default.createElement("img",{src:l}),w&&d)},z=B.default.div(E||(E=e.__makeTemplateObject(["\n --dropdown-padding: 12px 18px 12px 16px;\n position: relative;\n box-sizing: border-box;\n border: 1px solid ",";\n background: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\")\n no-repeat;\n background-position: right 16px center;\n border-radius: 6px;\n\n &[data-disabled='true'],\n :disabled {\n background-color: #f2f2f2;\n cursor: not-allowed;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n }\n &[data-size='md'] {\n font-size: 14px;\n line-height: 21px;\n }\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n }\n\n &[data-has-icons='true'] {\n border: none;\n background: ",";\n\n img,\n svg {\n display: inline-block;\n max-width: 16px;\n margin-right: 6px;\n }\n\n span {\n display: inline-block;\n vertical-align: middle;\n }\n\n &:hover {\n box-shadow: none;\n }\n > div {\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n align-items: center;\n }\n > div::after {\n position: absolute;\n top: 50%;\n right: 12px;\n width: 10px;\n height: 8px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n\n &[data-is-native='true'] {\n padding: var(--dropdown-padding);\n line-height: 24px;\n\n &:focus {\n box-shadow: 0px 0px 2px 2px\n ",";\n }\n }\n"],["\n --dropdown-padding: 12px 18px 12px 16px;\n position: relative;\n box-sizing: border-box;\n border: 1px solid ",";\n background: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\")\n no-repeat;\n background-position: right 16px center;\n border-radius: 6px;\n\n &[data-disabled='true'],\n :disabled {\n background-color: #f2f2f2;\n cursor: not-allowed;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n }\n &[data-size='md'] {\n font-size: 14px;\n line-height: 21px;\n }\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n }\n\n &[data-has-icons='true'] {\n border: none;\n background: ",";\n\n img,\n svg {\n display: inline-block;\n max-width: 16px;\n margin-right: 6px;\n }\n\n span {\n display: inline-block;\n vertical-align: middle;\n }\n\n &:hover {\n box-shadow: none;\n }\n > div {\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n align-items: center;\n }\n > div::after {\n position: absolute;\n top: 50%;\n right: 12px;\n width: 10px;\n height: 8px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n\n &[data-is-native='true'] {\n padding: var(--dropdown-padding);\n line-height: 24px;\n\n &:focus {\n box-shadow: 0px 0px 2px 2px\n ",";\n }\n }\n"])),(function(e){return e.theme.colors.gray200}),(function(e){return e.theme.colors.gray100}),(function(e){return e.theme.colors.blue200}),(function(e){return e.theme.colors.blue200})),K=B.default.div(y||(y=e.__makeTemplateObject(["\n padding: var(--dropdown-padding);\n cursor: pointer;\n\n &.with-label {\n padding-top: 34px;\n padding-bottom: 12px;\n }\n &[data-dropdown-open] {\n padding: 11px 15px 11px 15px;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n"],["\n padding: var(--dropdown-padding);\n cursor: pointer;\n\n &.with-label {\n padding-top: 34px;\n padding-bottom: 12px;\n }\n &[data-dropdown-open] {\n padding: 11px 15px 11px 15px;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n"])),(function(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.colors.blue200})),Y=B.default.ul(k||(k=e.__makeTemplateObject(["\n position: absolute;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n margin-top: 4px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n\n &[data-has-icons='true'] {\n border: 1px solid ",";\n background: white;\n box-shadow: none;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n }\n"],["\n position: absolute;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n margin-top: 4px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n\n &[data-has-icons='true'] {\n border: 1px solid ",";\n background: white;\n box-shadow: none;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200})),W=B.default.li(T||(T=e.__makeTemplateObject(["\n display: flex;\n padding: 12px 18px 12px 16px;\n &[data-disabled='true'] {\n cursor: not-allowed;\n color: #bfbfbf;\n & > * {\n pointer-events: none;\n }\n }\n &:hover,\n :active {\n background: ",";\n }\n"],["\n display: flex;\n padding: 12px 18px 12px 16px;\n &[data-disabled='true'] {\n cursor: not-allowed;\n color: #bfbfbf;\n & > * {\n pointer-events: none;\n }\n }\n &:hover,\n :active {\n background: ",";\n }\n"])),(function(e){return e.theme.colors.gray100})),V=B.default.div(C||(C=e.__makeTemplateObject(["\n max-width: 16px;\n margin-right: 8px;\n"],["\n max-width: 16px;\n margin-right: 8px;\n"]))),Z=B.default.div(L||(L=e.__makeTemplateObject(["\n position: absolute;\n top: 12px;\n left: 16px;\n pointer-events: none;\n"],["\n position: absolute;\n top: 12px;\n left: 16px;\n pointer-events: none;\n"]))),X=B.default.div(I||(I=e.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n\n padding: 0 16px 32px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n visibility: hidden;\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n &[data-type='lead'] {\n width: 332px;\n height: 460px;\n\n div {\n top: -15px;\n right: -15px;\n }\n }\n\n &[data-type='form'] {\n width: 496px;\n height: 548px;\n "," {\n width: 340px;\n }\n }\n\n &[data-type='confirm'] {\n "," {\n width: calc(100% - 32px);\n }\n "," {\n width: 100%;\n max-width: 407px;\n }\n }\n\n .popup-content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n\n .close-button {\n position: absolute;\n top: 16px;\n right: 0;\n cursor: pointer;\n\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n\n padding: 0 16px 32px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n visibility: hidden;\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n &[data-type='lead'] {\n width: 332px;\n height: 460px;\n\n div {\n top: -15px;\n right: -15px;\n }\n }\n\n &[data-type='form'] {\n width: 496px;\n height: 548px;\n "," {\n width: 340px;\n }\n }\n\n &[data-type='confirm'] {\n "," {\n width: calc(100% - 32px);\n }\n "," {\n width: 100%;\n max-width: 407px;\n }\n }\n\n .popup-content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n\n .close-button {\n position: absolute;\n top: 16px;\n right: 0;\n cursor: pointer;\n\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200}),i.MediaQueries.mbDown,i.MediaQueries.mbDown,i.MediaQueries.mbUp),q=B.default.div(O||(O=e.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),J={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR"},$={"id-ID":{"kalkulator-bmi":J.BMI,"kebutuhan-kalori":J.BMR,"kalkulator-hari-perkiraan-lahir":J.DUE_DATE,"kalkulator-masa-subur-2":J.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":J.PWG,"kalkulator-detak-jantung-saat-olahraga":J.THR},"ms-MY":{"kalkulator-bmi":J.BMI,"kalkulator-bmr":J.BMR,"kalkulator-tarikh-bersalin":J.DUE_DATE,"kalkulator-kesuburan":J.OVULATION,"kalkulator-tambah-berat-badan-hamil":J.PWG,"target-heart-rate-calculator":J.THR},"vi-VN":{"cach-tinh-chi-so-bmi":J.BMI,"tinh-chi-so-bmr":J.BMR,"cong-cu-tinh-ngay-du-sinh":J.DUE_DATE,"tinh-ngay-rung-trung":J.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":J.PWG,"cong-cu-do-nhip-tim":J.THR},"zh-TW":{"bmi-calculator":J.BMI,"bmr-calculator":J.BMR,"due-date-calculator":J.DUE_DATE,"ovulation-calculator":J.OVULATION,"pregnancy-weight-gain-calculator":J.PWG,"target-heart-rate-calculator":J.THR},"en-PH":{"bmi-calculator":J.BMI,"bmr-calculator":J.BMR,"due-date-calculator":J.DUE_DATE,"ovulation-calculator":J.OVULATION,"pregnancy-weight-gain-calculator":J.PWG,"target-heart-rate-calculator":J.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":J.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":J.BMR,"เครื่องมือคำนวณกำหนดคลอด":J.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":J.OVULATION,"เครื่องคำนวณน้ำหนักตัว":J.PWG,"เครื่องวัดอัตราการเต้น":J.THR},"hi-IN":{"bmi-calculator-en":J.BMI,"bmi-calculator":J.BMI,"bmr-calculator":J.BMR,"delivery-date-calculator":J.DUE_DATE,"ovulation-calculator":J.OVULATION,"pregnancy-weight-gain-calculator":J.PWG,"target-heart-rate-calculator":J.THR},"km-KH":{"គណនា-bmi":J.BMI,"គណនា-bmr":J.BMR,"គណនាថ្ងៃសម្រាលកូន":J.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":J.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":J.PWG,"គណនារកចង្វាក់បេះដូងល្អ":J.THR},"my-MM":{"bmi-calculator":J.BMI,"bmr-calculator":J.BMR,"due-date-calendar":J.DUE_DATE,"ovulation-calculator":J.OVULATION,"pregnaancy-weight-calculator":J.PWG,"target-heartrate":J.THR,"pregnancy-weight-calculator":J.PWG,"target-heart-rate":J.THR}},ee={report_scam:{label:"morePopover.report.scam",reportReasonText:"morePopover.report.scam"},report_sex:{label:"morePopover.report.sex",reportReasonText:"morePopover.report.sex"},report_offensive:{label:"morePopover.report.offensive",reportReasonText:"morePopover.report.offensive"},report_violence:{label:"morePopover.report.violence",reportReasonText:"morePopover.report.violence"},report_prohibited:{label:"morePopover.report.prohibited",reportReasonText:"morePopover.report.prohibited"},report_spam:{label:"morePopover.report.spam",reportReasonText:"morePopover.report.spam"},report_falseNews:{label:"morePopover.report.falseNews",reportReasonText:"morePopover.report.falseNews"},report_other:{label:"morePopover.report.other",reportReasonText:"morePopover.report.other"}},ne={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}},te=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DEFAULT_AVATAR_IMG:"/images/avatar.jpg",DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:"/images/default-image.jpg",BMI_LEVELS:["underweight","healthy","overweight","obese_level_1","obese_level_2"],BMR_LEVELS:["low","normal","high"],CORAL_TOKEN_COOKE:"coral_together_user_token",HEALTH_TOOL_TYPE:J,LOCALE_HEALTH_TOOLS:$,BEARER_TOKEN_COOKIE:"hhg_user_token",TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:"together_admin_token",Z_INDEX:{adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},BmrActiveLevels:[{value:"sedentary",icon:"bmr-sedentary",name:"bmr.activeLevel.sedentary",description:"bmr.activeLevel.sedentary.description"},{value:"lightly-active",icon:"bmr-light",name:"bmr.activeLevel.lightlyActive",description:"bmr.activeLevel.lightlyActive.description"},{value:"moderately-active",icon:"bmr-moderately",name:"bmr.activeLevel.moderatelyActive",description:"bmr.activeLevel.moderatelyActive.description"},{value:"intensely-active",icon:"bmr-intensively",name:"bmr.activeLevel.intenselyActive",description:"bmr.activeLevel.intenselyActive.description"},{value:"extremely-active",icon:"bmr-extremely",name:"bmr.activeLevel.extremelyActive",description:"bmr.activeLevel.extremelyActive.description"}],LEAD_CAMPAIGN_CODE:"lmoct7xfr5sv4fv",LEAD_TOKEN_COOKIE:"hhg-id",GA_TOKEN_COOKIE:"_ga",GOOGLE_CALENDAR_AUTH_CLIENT_ID:"1038242799566-esoq4ij201ve5qfp266nbca44scpo3c6.apps.googleusercontent.com",FIND_CARE_IFRAME_URL:"https://www.appsheet.com/start/4ba34ebe-3cb6-4c16-8dd4-d074025a5bb6#appName=DependentDropdowns-2711103&group=%5B%5D&page=card&sort=%5B%5D&table=Menu&view=Menu",REPORT_REASON_MAP:ee,MB_SOCIAL_LINKS:{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/marry.baby.vn",INSTAGRAM:"https://www.instagram.com/marrybaby.vn/",TWITTER:"",YOUTUBE:"https://www.youtube.com/channel/UCeZybTkY1VzJ3N7LvPGdKbg",ZALO:"http://zalo.me/806483414530291942"},INTERNAL_ROLES:["admin","moderator","local-admin"],EXTERNAL_ROLES:["ambassador","expert","sponsor","guide","influencer"],INTERNAL_PROFILE_ROLES:["moderator","local-admin"],EXTERNAL_PROFILE_ROLES:["expert","ambassador","sponsor"],RoleDataMap:{moderator:{text:"Moderator",fid:"cardAuthor.moderator",background:"#fe921d"},admin:{text:"Admin",fid:"cardAuthor.admin",background:"#2b62cd"},"local-admin":{text:"Local admin",fid:"cardAuthor.localAdmin",background:"#2b62cd"},expert:{text:"Expert",fid:"cardAuthor.expert",background:"#ff6f4d"},sponsor:{text:"Sponsor",fid:"cardAuthor.sponsor",background:"#00c7e6"},ambassador:{text:"Ambassador",fid:"cardAuthor.ambassador",background:"#00CB8A"}},MAX_IMAGE_UPLOADS:20,LOCALISED_SLUGS:ne}),ie=function(e){return e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||""}:{}},ae=function(e){return e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{}},oe=function(n){var t,i,a,o;return n?{id:n.ID,postName:n.post_name,sponsor:n.sponsor?le(n.sponsor):null,isSponsored:n.is_sponsored||null,postTitle:n.post_title||"",postModified:n.post_modified||"",postDate:n.post_date||"",modifiedTime:n.modified_time||"",permalink:n.permalink||"",featureImage:n.image||null,featureImageMobile:n.image_medium||null,featureImageMobileXs:n.image_thumbnail||null,author:ie(n.author),reviewer:n.reviewed_by&&ie(n.reviewed_by)||null,articleReviewed:(null==n?void 0:n.reviewed)?e.__assign(e.__assign({},null==n?void 0:n.reviewed),{author:re(null===(t=null==n?void 0:n.reviewed)||void 0===t?void 0:t.author),editor:re(null===(i=null==n?void 0:n.reviewed)||void 0===i?void 0:i.editor),expert:re(null===(a=null==n?void 0:n.reviewed)||void 0===a?void 0:a.expert),fact_check:re(null===(o=null==n?void 0:n.reviewed)||void 0===o?void 0:o.fact_check)}):null,category:se(n.category),postContent:n.post_content||null,sections:n.sections||null,categories:(n.categories||[]).map(se),sources:n.sources||null,description:n.description||null,excerpt:n.excerpt||null,expert:ae(n.expert),metaTag:n.meta_tag||null}:{}},re=function(n){return void 0!==n&&n?e.__assign(e.__assign({},n),{profile_url:(null==n?void 0:n.slug)?["expert","medical"].includes((null==n?void 0:n.role)||"")?"/expert/".concat(null==n?void 0:n.slug):"/author/".concat(null==n?void 0:n.slug):n.profile_url}):null},le=function(e){return e?{title:e.title,logo:e.logo,link:e.link}:{}},de=function(e){return{postTitle:e.post_title,permalink:e.permalink}},se=function(e){var n,t;return e?{termId:e.term_id||null,sponsor:e.sponsor?le(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(n=e.child_cates)||void 0===n?void 0:n.map((function(e){return se(e)})))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(t=e.cat_parent)||void 0===t?void 0:t.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?de(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((function(e){return ue(e)})):null}:{}},ue=function(e){return{title:e.title,content:e.content}},ce=function(e){return e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{}},pe=function(e){return e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},me=function(e){var n,t,i,a;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(n=e.community)||void 0===n?void 0:n.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:null===(i=e.community)||void 0===i?void 0:i.slug,communityName:null===(a=e.community)||void 0===a?void 0:a.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},ge=function(e){var n,t,i,a,o,r,l,d,s,u,c,p,m,g,h,f,v,b,x,A,w;return e?{id:e.id,topics:(null===(n=e.topics)||void 0===n?void 0:n.map((function(n){var t,i,a,o;return{id:n.id||0,name:n.name||"",slug:n.slug||"",url:"/"+(null===(t=e.community)||void 0===t?void 0:t.slug)+"/"+n.slug,communityId:String(null===(i=e.community)||void 0===i?void 0:i.id),communitySlug:(null===(a=e.community)||void 0===a?void 0:a.slug)||"",communityName:(null===(o=e.community)||void 0===o?void 0:o.name)||"",isHidden:Boolean(n.is_hidden),isActive:!0}})))||[],community:{id:(null===(t=e.community)||void 0===t?void 0:t.id)||0,name:(null===(i=e.community)||void 0===i?void 0:i.name)||"",slug:(null===(a=e.community)||void 0===a?void 0:a.slug)||"",isActive:!0,isHidden:Boolean(null===(o=e.community)||void 0===o?void 0:o.is_hidden)},slug:e.slug||"",author:{id:(null===(r=e.user)||void 0===r?void 0:r.id)||0,username:(null===(l=e.user)||void 0===l?void 0:l.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(s=e.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=e.user)||void 0===u?void 0:u.avatar)||"",role:(null===(c=e.user)||void 0===c?void 0:c.role)?null===(m=null===(p=e.user)||void 0===p?void 0:p.role)||void 0===m?void 0:m.toLowerCase():"",type:(null===(g=e.user)||void 0===g?void 0:g.type)||"",partnerId:(null===(h=e.user)||void 0===h?void 0:h.partner_id)?String(null===(f=e.user)||void 0===f?void 0:f.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(b=e.user)||void 0===b?void 0:b.doctor_id)?String(null===(x=e.user)||void 0===x?void 0:x.doctor_id):"",hospitalId:(null===(A=e.user)||void 0===A?void 0:A.hospital_id)?String(null===(w=e.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||""}:{}},he=function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{}},fe=function(e){var n,t,i,a,o,r,l,d,s,u,c,p,m,g,h,f,v,b,x,A,w,_,E,y,k,T,C,L,I,O,D,B;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(fe):[],author:{id:(null===(n=e.user)||void 0===n?void 0:n.id)||0,username:(null===(t=e.user)||void 0===t?void 0:t.user_name)||"",name:(null===(i=e.user)||void 0===i?void 0:i.name)||"",role:(null===(a=e.user)||void 0===a?void 0:a.role)?null===(r=null===(o=e.user)||void 0===o?void 0:o.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(l=e.user)||void 0===l?void 0:l.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(s=e.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=e.user)||void 0===u?void 0:u.partner_id)?String(null===(c=e.user)||void 0===c?void 0:c.partner_id):"",title:(null===(p=e.user)||void 0===p?void 0:p.title)||"",doctorId:(null===(m=e.user)||void 0===m?void 0:m.doctor_id)?String(null===(g=e.user)||void 0===g?void 0:g.doctor_id):"",hospitalId:(null===(h=e.user)||void 0===h?void 0:h.hospital_id)?String(null===(f=e.user)||void 0===f?void 0:f.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(v=e.mentioned)||void 0===v?void 0:v.id)||0,username:(null===(b=e.mentioned)||void 0===b?void 0:b.user_name)||"",name:(null===(x=e.mentioned)||void 0===x?void 0:x.name)||"",role:(null===(A=e.mentioned)||void 0===A?void 0:A.role)?null===(_=null===(w=e.mentioned)||void 0===w?void 0:w.role)||void 0===_?void 0:_.toLowerCase():"",avatar:(null===(E=e.mentioned)||void 0===E?void 0:E.avatar)||"",type:(null===(y=e.mentioned)||void 0===y?void 0:y.type)||"",email:(null===(k=e.mentioned)||void 0===k?void 0:k.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(C=e.mentioned)||void 0===C?void 0:C.partner_id):"",doctorId:(null===(L=e.mentioned)||void 0===L?void 0:L.doctor_id)?String(null===(I=e.mentioned)||void 0===I?void 0:I.doctor_id):"",hospitalId:(null===(O=e.mentioned)||void 0===O?void 0:O.hospital_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id):"",title:(null===(B=e.mentioned)||void 0===B?void 0:B.title)||""}:null,mentions:e.mentions||[]}:{}},ve=function(e){return void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?"/expert/".concat(null==e?void 0:e.slug):"/author/".concat(null==e?void 0:e.slug):(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":""},be=Object.freeze({__proto__:null,formatAuthor:ie,formatArticleExpert:ae,formatArticle:oe,formatUserProfile:re,formatBMIResult:function(e){var n,t,i,a,o,r,l,d,s;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(n=null==e?void 0:e.comparison)&&void 0!==n?n:"",assessmentData:[{tab:"tools.condition",content:null!==(t=null==e?void 0:e.condition)&&void 0!==t?t:""},{tab:"tools.risks",content:null!==(i=null==e?void 0:e.risk)&&void 0!==i?i:""},{tab:"tools.suggestion",content:null!==(a=null==e?void 0:e.suggestion)&&void 0!==a?a:""}],chartData:(null===(o=null==e?void 0:e.chart_data)||void 0===o?void 0:o.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(r=null==e?void 0:e.disclaimer)&&void 0!==r?r:"",illustrator:null!==(l=null==e?void 0:e.illustrator)&&void 0!==l?l:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==e?void 0:e.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:le,formatReviewedCategory:de,formatCategory:se,formatCategoryApi:function(e){return e?{categoryInfo:se(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(oe),subCategories:(e.data.sub_categories||[]).map(se)}:{}},formatFaqsCategory:ue,formatHealthTool:ce,formatHealthToolTypeCategory:function(e){var n,t;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(t=null===(n=null==e?void 0:e.health_tools)||void 0===n?void 0:n.map((function(e){return ce(e)})))&&void 0!==t?t:[]}:{}},formatCommunity:pe,formatTopic:me,formatPost:ge,formatPostPagination:function(e){return e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{}},formatNotification:function(e){var n,t,i;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(n=e.from_user)||void 0===n?void 0:n.name,id:null===(t=e.from_user)||void 0===t?void 0:t.id,avatar:null===(i=e.from_user)||void 0===i?void 0:i.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:function(e){return e?e.map((function(e){return{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}})):[]},formatOvulationInfo:he,formatSuggestedArticle:function(e){return e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{}},formatTopicHealthTool:function(e){return e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{}},formatComment:fe,formatReportedPostToPostDetail:function(e){return e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{}},formatTopicSubot:function(e){return e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{}},formatSiteWideBanner:function(e,n){return void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:n||"other"}:null},formatPWGContent:function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?re(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}},formatUserProfileUrl:ve,formatTHRContent:function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?re(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}}}),xe={BASE_API_PATH:"/",PROFILE:"profile?website_url={website_url}",SEARCH_USER:"profile/search?website_url={website_url}&name={name}",FETCH_PREVIEW:"fetch/preview?website_url={website_url}",FETCH_POST_OR_TOPIC:"fetch/{slug}?website_url={website_url}&community_slug={communitySlug}",POST:{LIST:"post?website_url={website_url}&slug={slug}&pin={pin}&page={page}&community_id={communityId}&topic_id={topicId}&sort_by={sort}&id={id}",DETAIL_BY_ID_OR_SLUG:"post/{idSlug}?website_url={website_url}",CREATE:"post/create?website_url={website_url}",LIKE:"post/{id}/like?website_url={website_url}",DELETE:"post/{id}/delete?website_url={website_url}",REPORT:"post/{id}/report?website_url={website_url}",UPDATE:"post/{id}/update?website_url={website_url}",FOLLOW:"post/{id}/follow?website_url={website_url}",CREATE_ARTICLE_COMMENT:"article-comment/create?website_url={website_url}"},COMMENT:{LIST:"comment?website_url={website_url}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",CREATE:"comment/create?website_url={website_url}",REPLY:"comment/reply?website_url={website_url}",DELETE:"comment/{id}/delete?website_url={website_url}",LIKE:"comment/{id}/like?website_url={website_url}",UNLIKE:"comment/{id}/unlike?website_url={website_url}",IMAGE_UPLOAD:"comment/image/upload?website_url={website_url}"},COMMUNITY:{LIST:"community?website_url={website_url}&page={page}",DETAIL_BY_ID_OR_SLUG:"community/{idSlug}?website_url={website_url}",JOIN:"community/join?website_url={website_url}",LEAVE:"community/leave?website_url={website_url}"},TOPIC:{LIST:"topic?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}&page={page}",DETAIL_BY_ID_OR_SLUG:"topic/{idSlug}?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}",HEALTH_TOOLS:"tools?topic_id={topicId}&website_url={website_url}",SUBOTS:"subots?topic_id={topicId}&website_url={website_url}",SUGGESTED_POSTS:"suggested-posts?topic_id={topicId}&website_url={website_url}&page={page}",JOIN:"topic/join?website_url={website_url}",LEAVE:"topic/leave?website_url={website_url}"},BOOKMARK:{LIST:"bookmark?user_id={userId}&website_url={website_url}",CREATE:"bookmark/create?website_url={website_url}",DELETE:"bookmark/delete?website_url={website_url}"},UPLOAD_IMAGE:"auth/comment/image/upload?website_url={website_url}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info"},Ae={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},we={BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ALL_CATEGORIES:"categories?type=all",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_ARTICLE_DETAIL:"article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch/{fullSlug}",GET_PREVIEW_ARTICLE:"fetch/{fullSlug}?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_PAGE_STATIC:"page/{slug}",GET_ALL_HEALTH_TOOLS:"healthtools",GET_ALL_MARRYBABY_HEALTH_TOOLS:"health-tools",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_AUTHOR:"author/{slug}",GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_AZ_DRUGS:"category/a-z/{category}",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_ARTICLES_BY_IDS:"articles?ids={ids}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_PROFILE:"user/profile",GET_ADMIN_PROFILE:"GET_ADMIN_PROFILE",GET_FEATURE:"feature",POST_NEW_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",GET_ALL_BOOKMARK:"bookmark",SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",POST_UPDATE_LOCATION:"tracking/geo/",GET_SIDIS_DUE_DATE:"frontend/tools/due_date",GET_SIDIS_OVULATION:"frontend/tools/ovulation",GET_SIDIS_BMI:"frontend/tools/bmi",GET_SIDIS_BMR:"frontend/tools/bmr",POST_LOGOUT:"user/logout",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_ALL_SPOTLIGHT:"spotlights?per_page={perPage}&order_by={orderBy}",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",POST_COMMENT_NOTIFICATION:"comment/notification",GET_ABOUT_US_DATA:"about",POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_SSO_VERIFY_TOKEN:"verify-id-token",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",FETCH_URL_DATA:"preview",GET_SPOTLIGHT_LANDING:"spotlight/{slug}",GET_FOOTER_INFO:"footer",CHECK_SSO_EMAIL:"member/check-email",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_DYNAMIC_FOOTER:"menu/footer",GET_EXPERTS:"experts?page={page}&number={perPage}&s={search}",GET_EXPERT_BY_ID:"expert/{id}"},_e=function(e,n){if("string"!=typeof e)throw new TypeError("argument str must be a string");var t={},i=(n||{}).decode||Te,a=0;for(;a<e.length;){var o=e.indexOf("=",a);if(-1===o)break;var r=e.indexOf(";",a);if(-1===r)r=e.length;else if(r<o){a=e.lastIndexOf(";",o-1)+1;continue}var l=e.slice(a,o).trim();if(void 0===t[l]){var d=e.slice(o+1,r).trim();34===d.charCodeAt(0)&&(d=d.slice(1,-1)),t[l]=Le(d,i)}a=r+1}return t},Ee=function(e,n,t){var i=t||{},a=i.encode||Ce;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!ke.test(e))throw new TypeError("argument name is invalid");var o=a(n);if(o&&!ke.test(o))throw new TypeError("argument val is invalid");var r=e+"="+o;if(null!=i.maxAge){var l=i.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");r+="; Max-Age="+Math.floor(l)}if(i.domain){if(!ke.test(i.domain))throw new TypeError("option domain is invalid");r+="; Domain="+i.domain}if(i.path){if(!ke.test(i.path))throw new TypeError("option path is invalid");r+="; Path="+i.path}if(i.expires){var d=i.expires;if(!function(e){return"[object Date]"===ye.call(e)||e instanceof Date}(d)||isNaN(d.valueOf()))throw new TypeError("option expires is invalid");r+="; Expires="+d.toUTCString()}i.httpOnly&&(r+="; HttpOnly");i.secure&&(r+="; Secure");if(i.priority){switch("string"==typeof i.priority?i.priority.toLowerCase():i.priority){case"low":r+="; Priority=Low";break;case"medium":r+="; Priority=Medium";break;case"high":r+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(i.sameSite){switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return r},ye=Object.prototype.toString,ke=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Te(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function Ce(e){return encodeURIComponent(e)}function Le(e,n){try{return n(e)}catch(n){return e}}var Ie={parse:_e,serialize:Ee},Oe={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},De=n.createContext({data:Oe,action:{pushNotifications:function(e){return e},sanitizeFunction:function(e){return e}}});exports.GlobalData=Oe;var Be={"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"},Ne={"vi-VN":"marrybaby.vn"},Se=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",Me=function(e){var n=exports.GlobalData.env.isMarryBaby;return"https://".concat(n?Ne[e]:Be[e])},Pe=function(e){var n=e.indexOf("?");return n>=0?e.slice(0,n+1)+e.slice(n+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},Ge=function(e){var n=exports.GlobalData.env.isMarryBaby;if("undefined"!=typeof window)return window.location.origin;var t="staging"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return"development"===process.env.NEXT_PUBLIC_DEPLOY_ENV?"http://localhost:3000":"https://".concat(t?n?"fe.":"discover.":n?"www.":"").concat(Be[e])},Re=function(n,t,i){var a="";i&&(a=Object.keys(i).map((function(e){return e+"="+i[e]})).join("&"));var o=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).togetherBaseApiUrl,r=void 0===o?"":o,l=Q.default(n,e.__assign(e.__assign({},(null==t?void 0:t._locale)?{website_url:Me(String(t._locale))}:{}),t));return l+="".concat(l.includes("?")?"&":"?").concat(a),r+"api/v1/"+Pe(l)},Ue=function(n,t){var i=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).discoverBaseApiUrl;return(void 0===i?"":i)+"wp-json/api/"+Pe(Q.default(n,e.__assign({},t)))},He=function(n,t){var i=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).careBaseApiUrl;return((void 0===i?"":i)||"https://service-health-care.hellohealthgroup.com/")+Pe(Q.default(n,e.__assign({},t)))},Qe=function(e){return(null==e?void 0:e.data)&&(e.data instanceof FormData?e.body=e.data:"object"==typeof e.data&&(e.body=JSON.stringify(e.data)),delete e.data),e},je=function(n,t,i,a){return void 0===a&&(a=!1),e.__awaiter(void 0,void 0,void 0,(function(){var o,r,l,d,s;return e.__generator(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,fetch(a?n:(c=n,encodeURI(c).replace(/%5B/g,"[").replace(/%5D/g,"]")),e.__assign({method:t},Qe(i))).then((function(e){return e.json()}))];case 1:return(o=u.sent())?[2,o]:[3,3];case 2:return r=u.sent(),console.log(r),console.log({url:n,status:null===(l=null==r?void 0:r.response)||void 0===l?void 0:l.status,statusText:null===(d=null==r?void 0:r.response)||void 0===d?void 0:d.statusText}),[2,(null===(s=null==r?void 0:r.response)||void 0===s?void 0:s.data)||null];case 3:return[2,null]}var c}))}))},Fe=function(n,t,i,a){return e.__awaiter(void 0,void 0,void 0,(function(){var o,r,l,d;return e.__generator(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),o=Ie.parse(a||""),r=o.hhg_user_token,(l=r||f.getCookie("hhg_user_token"))&&l.length?[4,fetch(n,e.__assign(e.__assign({method:t},Qe(i)),{headers:{Authorization:"Bearer "+l}})).then((function(e){return e.json()}))]:[3,2];case 1:if(d=s.sent())return[2,d];s.label=2;case 2:return[3,4];case 3:return s.sent(),[2,null];case 4:return[2,null]}}))}))};function ze(e,n,t){var i=new RegExp("([?&])"+n+"=.*?(&|$)","i"),a=-1!==e.indexOf("?")?"&":"?";return e.match(i)?e.replace(i,"$1"+n+"="+t+"$2"):e+a+n+"="+t}var Ke,Ye,We,Ve,Ze=function(e,n,t,i){return t&&n?"".concat(t,"-").concat(n):"".concat(H.default(e||"",{lower:!0,locale:i||Se}),"-").concat(n)},Xe=function(e){var n,t=e.name,i=e.id,a=e.locale;return"/care/".concat(null===(n=ne[a||"vi-VN"])||void 0===n?void 0:n.DOCTOR,"/").concat(Ze(t,i))},qe=function(e){var n,t=e.name,i=e.id,a=e.slug,o=e.locale;return"/care/".concat(null===(n=ne[o||"vi-VN"])||void 0===n?void 0:n.HOSPITAL,"/").concat(Ze(t,i,a))},Je=B.default.div(Ke||(Ke=e.__makeTemplateObject(["\n width: 40px;\n height: 40px;\n flex-shrink: 0;\n cursor: pointer;\n font-size: 20px;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n .avatar-default {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-size: 1em;\n font-weight: bold;\n line-height: 1;\n }\n\n &[data-is-marrybaby='true'] {\n .avatar-default {\n background-color: ",";\n }\n }\n"],["\n width: 40px;\n height: 40px;\n flex-shrink: 0;\n cursor: pointer;\n font-size: 20px;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n .avatar-default {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-size: 1em;\n font-weight: bold;\n line-height: 1;\n }\n\n &[data-is-marrybaby='true'] {\n .avatar-default {\n background-color: ",";\n }\n }\n"])),(function(e){return e.theme.colors.secondaryBase}),(function(e){return e.theme.mbColors.pink})),$e=function(e){var t=e.className,i=e.isMarryBaby,a=e.style,o=e.avatar,r=e.username,l=e.isLazy,d=n.useContext(De).data.env.isMarryBaby,s="boolean"==typeof i?i:d,u=n.useState(!1),c=u[0],p=u[1];return n.useEffect((function(){var e=new Image;e.onerror=function(){p(!0)},e.src=o}),[]),D.default.createElement(Je,{"data-is-marrybaby":s,className:t,style:a},o&&!c?D.default.createElement("img",{loading:"lazy",src:l?void 0:o,"data-src":l?o:void 0,className:"avatar ".concat(l?"lazy":""),alt:"avatar",onError:function(){p(!0)}}):D.default.createElement("div",{className:"avatar avatar-default"},r&&(null==r?void 0:r.length)>0?r[0].toUpperCase():"A"))},en="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAMAAABIw9uxAAAAilBMVEUAAAC/v7+/v7+6urq/v7+/v7+8vLy/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7/AwMC/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7/AwMC/v7/AwMDAwMC/v7+/v7+/v7/AwMC/v7+/v7/AwMC/v7+/v7+/v7+/v7+/v7+LyT2qAAAALXRSTlMA/RME8fkIIw13VeE02tQ7GUKpmumiZV27iU7tzvUusG8pfpDAHcSVyEiDtWtph2CZAAAeGElEQVR42uzY0XLBYBAF4IgQ0Z9OkSqiiWJMkPd/vWqve9UpovN9V/sCZ2f3RAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABtN4jTL5sQNt9DPIiAf6q/D/W8Oh7ycleMZqtO84POajYqdmV+OFbzOuz7EfDQ4rCsFvlutG5+IRnt8sV5GeIIeChpfd6W46T5E8m43J7rNAJarvs+PE6KXnMF62JyHG66EdBCcZ3ll+hfWa/IsxdfAbTI4LnKx53mdmblx9IWgPtL59NL9u9hNqlCBNxJN2SnpLmr1SkLagG4ufR1smpaIXnLXAJwO/Fw+tS0yid796KsJgyEcTwRRPECFgXxzkWc6kze//XaTjvTOT3jUQRsQv6/d1B2s98mqyipBICuedcyUDqSQXklPgh0aDCJXaWxw2nNcADoxGB9GirtyUu2EABaNcouUpkiKHIBoCX5Tc+2/wvBjf8AoAWD5KKMFPicBwCNeNvIgL7/HpmumQsAr5qVK2U4dxkKALVVxVz1wtwnIwTUE0bmHPo/JNOtAPCkcWLcqf8jc04EgaeMSq3Tfq9yl0cB4GvbtEe1/z8uE1aHgfsGhWZb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' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L6 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6L18 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",tn="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9 16.9998C13.4183 16.9998 17 13.418 17 8.99976C17 4.58148 13.4183 0.999756 9 0.999756C4.58172 0.999756 1 4.58148 1 8.99976C1 13.418 4.58172 16.9998 9 16.9998Z' fill='white' stroke='%23E4E8EC' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.3333 7.66679V5.00012H7.66667V7.66679H5V10.3335H7.66667V13.0001H10.3333V10.3335H13V7.66679H10.3333Z' fill='%23FF5331'/%3e%3c/svg%3e",an=B.default.div(Ye||(Ye=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 1em;\n button {\n position: relative;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 1em;\n button {\n position: relative;\n }\n"]))),on=t.keyframes(We||(We=e.__makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));B.default.div(Ve||(Ve=e.__makeTemplateObject(["\n display: flex;\n width: fit-content;\n width: -moz-fit-content;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 1rem 2rem;\n background: white;\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n .loading-spinner {\n width: 24px;\n height: 24px;\n margin-bottom: 0.5rem;\n animation: "," 1.2s linear infinite;\n }\n &[data-is-marrybaby='true'] {\n box-shadow: none;\n }\n"],["\n display: flex;\n width: fit-content;\n width: -moz-fit-content;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 1rem 2rem;\n background: white;\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n .loading-spinner {\n width: 24px;\n height: 24px;\n margin-bottom: 0.5rem;\n animation: "," 1.2s linear infinite;\n }\n &[data-is-marrybaby='true'] {\n box-shadow: none;\n }\n"])),on);var rn=function(e){var n=e.className,t=e.size,i=void 0===t?"md":t,a=g.useTranslations().t;return D.default.createElement(an,{className:n},D.default.createElement(o.Button,{size:i,color:"transparent",isLoading:!0},a("loading")))},ln=B.default.div(cn||(cn=e.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200}),i.MediaQueries.tdUp,i.MediaQueries.mbDown,(function(e){return e.theme.colors.blue50})),dn=B.default.div(pn||(pn=e.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),sn=B.default.div(mn||(mn=e.__makeTemplateObject(["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"],["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"]))),un=B.default.div(gn||(gn=e.__makeTemplateObject(["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"],["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"])));B.default.span(hn||(hn=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"])),(function(e){return e.theme.colors.neutral300})),B.default.div(fn||(fn=e.__makeTemplateObject(["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"],["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"])),(function(e){return e.theme.colors.gray400})),B.default.div(vn||(vn=e.__makeTemplateObject(["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"],["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"])));var cn,pn,mn,gn,hn,fn,vn,bn,xn=B.default.ul(bn||(bn=e.__makeTemplateObject(["\n padding-left: 18px;\n li {\n list-style-type: disc;\n }\n"],["\n padding-left: 18px;\n li {\n list-style-type: disc;\n }\n"]))),An=function(e){var t,i,r,l,d=e.isOpen,s=void 0===d||d,u=e.onClose,c=e.enableAnimation,p=void 0===c||c,m=e.doctorId,h=e.locale,f=e.isMobile,v=g.useTranslations().t,b=n.useState(null),w=b[0],_=b[1],E=n.useState(!1),y=E[0],k=E[1];n.useEffect((function(){if(s&&m&&String(null==w?void 0:w.id)!==String(m)){k(!0);try{_(null),je(He(Ae.GET_DOCTOR_INFO,{doctorId:m,website_url:Be[h]}),"get").then((function(e){_(null==e?void 0:e._data.doctor)}))}catch(e){console.error(e)}k(!1)}}),[s,m,null==w?void 0:w.id]);var T=(null==w?void 0:w.experiences)||[],C=((null==w?void 0:w.specialties)||[]).map((function(e){return(null==e?void 0:e.name)||e})).join(" • "),L=T.map((function(e){try{return JSON.parse(e.description)}catch(n){return e.description}})).filter((function(e){return e.content})),I=A.useId(null===(t=null==w?void 0:w.experiences)||void 0===t?void 0:t.length);return D.default.createElement(D.default.Fragment,null,D.default.createElement(ln,{"data-open":s,"data-animation":p,onClick:function(e){return e.stopPropagation()}},y||!w?D.default.createElement(rn,null):D.default.createElement("div",{className:"popup-content"},D.default.createElement("div",{className:"close-button",onClick:u},D.default.createElement("img",{src:nn,style:{width:20,height:20},alt:"close-icon"})),D.default.createElement("div",{className:"main-info"},D.default.createElement("div",{className:"border-banner"}),D.default.createElement("div",{className:"avatar-title"},D.default.createElement(sn,null,D.default.createElement("div",{className:"image-container"},D.default.createElement("div",{style:{position:"relative"}},D.default.createElement("img",{src:(null==w?void 0:w.avatar)?null==w?void 0:w.avatar:en,className:"profile-image",alt:"avatar"}),D.default.createElement("img",{className:"badge-avatar",src:tn,alt:"badge"})))),D.default.createElement(un,null,D.default.createElement(a.Text,{size:"s3",type:"semiBold",className:"full-name"},null==w?void 0:w.name),D.default.createElement("div",{className:"specialty"},C&&D.default.createElement(D.default.Fragment,null,D.default.createElement(a.Text,{size:"p4",color:x.theme.colors.gray800},C," • ")),D.default.createElement("a",{href:qe({id:null===(i=null==w?void 0:w.organization)||void 0===i?void 0:i.id,name:null===(r=null==w?void 0:w.organization)||void 0===r?void 0:r.name,slug:null===(l=null==w?void 0:w.organization)||void 0===l?void 0:l.slug,locale:h}),className:"organisation",target:"_blank",rel:"noreferrer"},D.default.createElement(a.Text,{size:"p4",className:"organisation",color:x.theme.colors.gray800,style:{textDecoration:"underline"}},null==w?void 0:w.organization.name))))),!f&&D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement("a",{href:Xe({name:w.name,id:w.id,locale:h})},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment"))))),L&&D.default.createElement(un,null,D.default.createElement("div",{className:"experience"},D.default.createElement(a.Text,{type:"bold",size:"s3",color:x.theme.colors.gray800,style:{paddingBottom:16}},v("expert.content.description").toUpperCase()),D.default.createElement(xn,null,L.map((function(e,n){return D.default.createElement("li",{key:I[n]},D.default.createElement(a.Text,{size:"p2"},function(e){return(null==e?void 0:e.year)?"".concat(e.year," ").concat(null==e?void 0:e.content):(null==e?void 0:e.content)?e.content:"string"==typeof e?e:""}(e)))}))),f?D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement("a",{href:Xe({name:w.name,id:w.id,locale:h})},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment")))):D.default.createElement("a",{href:Xe({name:w.name,id:w.id,locale:h})},D.default.createElement(a.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},v("home.seeExpert"))))))),D.default.createElement(dn,{"data-open":s,onClick:function(e){e.stopPropagation(),u()}}))},wn=B.default.div(kn||(kn=e.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200}),i.MediaQueries.tdUp,i.MediaQueries.mbDown,(function(e){return e.theme.colors.blue50})),_n=B.default.div(Tn||(Tn=e.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),En=B.default.div(Cn||(Cn=e.__makeTemplateObject(["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"],["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"]))),yn=B.default.div(Ln||(Ln=e.__makeTemplateObject(["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"],["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"])));B.default.span(In||(In=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"])),(function(e){return e.theme.colors.neutral300})),B.default.div(On||(On=e.__makeTemplateObject(["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"],["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"])),(function(e){return e.theme.colors.gray400}));var kn,Tn,Cn,Ln,In,On,Dn,Bn,Nn,Sn,Mn,Pn,Gn,Rn,Un=B.default.div(Dn||(Dn=e.__makeTemplateObject(["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"],["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"]))),Hn={author:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%2345A4FF'/%3e%3cpath d='M23.9998 11.9995C23.9998 11.4024 23.9561 10.8154 23.8719 10.2417L18.7952 5.16504L5.04102 18.9585L9.89867 23.8162C10.5809 23.9366 11.283 23.9995 11.9998 23.9995C18.6272 23.9995 23.9998 18.6269 23.9998 11.9995Z' fill='%232D87F3'/%3e%3cpath d='M9.01377 17.824L5.04102 18.9591L6.17609 14.9863L8.54445 15.4556L9.01377 17.824Z' fill='white'/%3e%3cpath d='M8.54399 15.4561L5.04102 18.9591L9.01321 17.824L8.54399 15.4561Z' fill='%23F7F9FC'/%3e%3cpath d='M6.46714 18.5518L5.4485 17.5332L5.04102 18.9593L6.46714 18.5518Z' fill='%23E4E8EC'/%3e%3cpath d='M5.95747 18.043L5.04102 18.9595L6.46659 18.5521L5.95747 18.043Z' fill='%23D2D6DC'/%3e%3cpath d='M15.8281 5.33105L18.6654 8.16829L9.01365 17.82L6.17641 14.9828L15.8281 5.33105Z' fill='%23FFD658'/%3e%3cpath d='M7.59375 16.4043L17.2455 6.75259L18.6638 8.17094L9.0121 17.8226L7.59375 16.4043Z' fill='%23FFC326'/%3e%3cpath d='M18.3123 8.52499L15.4746 5.68737L16.5983 4.56359C17.0386 4.12334 17.7524 4.12334 18.1927 4.56359L19.436 5.8069C19.8763 6.24715 19.8763 6.96096 19.436 7.40121L18.3123 8.52499Z' fill='%23FF5331'/%3e%3cpath d='M18.8155 5.18555L16.8945 7.10648L18.3131 8.52497L19.4368 7.40119C19.877 6.96094 19.877 6.24713 19.4368 5.80688L18.8155 5.18555Z' fill='%23F44D2C'/%3e%3c/svg%3e",edtior:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%2345A4FF'/%3e%3cpath d='M23.9998 11.9995C23.9998 11.4024 23.9561 10.8154 23.8719 10.2417L18.7952 5.16504L5.04102 18.9585L9.89867 23.8162C10.5809 23.9366 11.283 23.9995 11.9998 23.9995C18.6272 23.9995 23.9998 18.6269 23.9998 11.9995Z' fill='%232D87F3'/%3e%3cpath d='M9.01377 17.824L5.04102 18.9591L6.17609 14.9863L8.54445 15.4556L9.01377 17.824Z' fill='white'/%3e%3cpath d='M8.54399 15.4561L5.04102 18.9591L9.01321 17.824L8.54399 15.4561Z' fill='%23F7F9FC'/%3e%3cpath d='M6.46714 18.5518L5.4485 17.5332L5.04102 18.9593L6.46714 18.5518Z' fill='%23E4E8EC'/%3e%3cpath d='M5.95747 18.043L5.04102 18.9595L6.46659 18.5521L5.95747 18.043Z' fill='%23D2D6DC'/%3e%3cpath d='M15.8281 5.33105L18.6654 8.16829L9.01365 17.82L6.17641 14.9828L15.8281 5.33105Z' fill='%23FFD658'/%3e%3cpath d='M7.59375 16.4043L17.2455 6.75259L18.6638 8.17094L9.0121 17.8226L7.59375 16.4043Z' fill='%23FFC326'/%3e%3cpath d='M18.3123 8.52499L15.4746 5.68737L16.5983 4.56359C17.0386 4.12334 17.7524 4.12334 18.1927 4.56359L19.436 5.8069C19.8763 6.24715 19.8763 6.96096 19.436 7.40121L18.3123 8.52499Z' fill='%23FF5331'/%3e%3cpath d='M18.8155 5.18555L16.8945 7.10648L18.3131 8.52497L19.4368 7.40119C19.877 6.96094 19.877 6.24713 19.4368 5.80688L18.8155 5.18555Z' fill='%23F44D2C'/%3e%3c/svg%3e",expert:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath d='M11.443 5.13654C11.6446 4.63466 12.355 4.63466 12.5566 5.13654L13.9931 8.71375C14.0789 8.92747 14.2795 9.0732 14.5093 9.08878L18.3553 9.34957C18.8949 9.38615 19.1145 10.0619 18.6994 10.4086L15.7412 12.8802C15.5645 13.0279 15.4878 13.2637 15.544 13.4871L16.4845 17.2254C16.6164 17.7499 16.0417 18.1676 15.5836 17.88L12.3188 15.8303C12.1238 15.7079 11.8758 15.7079 11.6808 15.8303L8.41599 17.88C7.95794 18.1676 7.38314 17.7499 7.51509 17.2254L8.45556 13.4871C8.51175 13.2637 8.43513 13.0279 8.25839 12.8802L5.30017 10.4086C4.88514 10.0619 5.10469 9.38615 5.64429 9.34957L9.49031 9.08878C9.7201 9.0732 9.92068 8.92747 10.0065 8.71375L11.443 5.13654Z' fill='white'/%3e%3c/svg%3e","fact-check":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z' fill='%2300C076'/%3e%3cpath d='M11.9456 5.46631L6.66562 10.2663L4.26562 8.08449' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",medical:tn},Qn=function(e){var t=e.isOpen,i=void 0===t||t,o=e.onClose,r=e.enableAnimation,l=void 0===r||r,d=e.expertId,s=g.useTranslations().t,u=n.useState(null),c=u[0],p=u[1],m=n.useState(!1),h=m[0],f=m[1];return n.useEffect((function(){if(i&&d&&String(null==c?void 0:c.user_id)!==String(d)){f(!0);try{p(null),je(Ue(we.GET_EXPERT_BY_ID,{id:d}),"get").then((function(e){p(null==e?void 0:e.data)}))}catch(e){console.error(e)}f(!1)}}),[i,d,null==c?void 0:c.user_id]),D.default.createElement(D.default.Fragment,null,D.default.createElement(wn,{"data-open":i,"data-animation":l,onClick:function(e){return e.stopPropagation()}},h||!c?D.default.createElement(rn,null):D.default.createElement("div",{className:"popup-content"},D.default.createElement("div",{className:"close-button",onClick:o},D.default.createElement("img",{src:nn,style:{width:20,height:20},alt:"close-icon"})),D.default.createElement("div",{className:"main-info"},D.default.createElement("div",{className:"border-banner"}),D.default.createElement("div",{className:"avatar-title"},D.default.createElement(En,null,D.default.createElement("div",{className:"image-container"},D.default.createElement("div",{style:{position:"relative"}},D.default.createElement("img",{src:(null==c?void 0:c.avatar)?null==c?void 0:c.avatar:en,className:"profile-image",alt:"avatar"}),D.default.createElement("img",{className:"badge-avatar",src:Hn[null==c?void 0:c.role],alt:"badge"})))),D.default.createElement(yn,null,D.default.createElement(a.Text,{size:"s3",className:"full-name",type:"semiBold"},null==c?void 0:c.display_name),D.default.createElement("div",null,D.default.createElement(a.Text,{size:"p4",color:x.theme.colors.gray800},null==c?void 0:c.specialty," • "),D.default.createElement("a",{href:null==c?void 0:c.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},D.default.createElement(a.Text,{size:"p4",className:"organisation",color:x.theme.colors.gray800,style:{textDecoration:"underline"}},null==c?void 0:c.organisation)))))),D.default.createElement(yn,null,D.default.createElement("div",{className:"experience"},D.default.createElement(a.Text,{type:"bold",size:"p4",color:x.theme.colors.gray800,style:{paddingBottom:16}},s("expert.content.description").toUpperCase()),D.default.createElement("div",{className:"list-items"},!!(null==c?void 0:c.experiences)&&c.experiences.filter((function(e){return!(!e||!e.title&&!e.organization)})).slice(0,3).map((function(e,n){return D.default.createElement(Un,{key:n},D.default.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point"}),D.default.createElement("div",{className:"text-contain"},D.default.createElement(w.Heading,{tag:"h6",color:x.theme.colors.gray800},null==e?void 0:e.title),D.default.createElement(a.Text,{size:"p2",color:x.theme.colors.gray500},null==e?void 0:e.organization)))}))),D.default.createElement("a",{href:null==c?void 0:c.profile_url},D.default.createElement(a.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},s("home.seeExpert"))))))),D.default.createElement(_n,{"data-open":i,onClick:function(e){e.stopPropagation(),o()}}))},jn=B.default.div(Bn||(Bn=e.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200}),i.MediaQueries.tdUp,i.MediaQueries.mbDown,(function(e){return e.theme.colors.blue50})),Fn=B.default.div(Nn||(Nn=e.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),zn=B.default.div(Sn||(Sn=e.__makeTemplateObject(["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"],["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"]))),Kn=B.default.div(Mn||(Mn=e.__makeTemplateObject(["\n position: relative;\n z-index: 9;\n .specialty {\n display: block;\n min-width: 240px;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n }\n"],["\n position: relative;\n z-index: 9;\n .specialty {\n display: block;\n min-width: 240px;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n }\n"])));B.default.span(Pn||(Pn=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"])),(function(e){return e.theme.colors.neutral300})),B.default.div(Gn||(Gn=e.__makeTemplateObject(["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"],["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"])),(function(e){return e.theme.colors.gray400})),B.default.div(Rn||(Rn=e.__makeTemplateObject(["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"],["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"])));var Yn=function(e){var t=e.isOpen,i=void 0===t||t,r=e.onClose,l=e.enableAnimation,d=void 0===l||l,s=e.hospitalId,u=e.locale,c=e.isMobile,p=g.useTranslations().t,m=n.useState(null),h=m[0],f=m[1],v=n.useState(!1),b=v[0],A=v[1];n.useEffect((function(){if(i&&s&&String(null==h?void 0:h.id)!==String(s)){A(!0);try{f(null),je(He(Ae.GET_HOSPITAL_INFO,{hospital_branch_id:s,website_url:Be[u]}),"get").then((function(e){f(null==e?void 0:e._data.branch)}))}catch(e){console.error(e)}A(!1)}}),[i,s,null==h?void 0:h.id]);var w=(null==h?void 0:h.specialties)||[],_=n.useMemo((function(){return w.map((function(e){return e.name}))}),[w]);return D.default.createElement(D.default.Fragment,null,D.default.createElement(jn,{"data-open":i,"data-animation":d,onClick:function(e){return e.stopPropagation()}},b||!h?D.default.createElement(rn,null):D.default.createElement("div",{className:"popup-content"},D.default.createElement("div",{className:"close-button",onClick:r},D.default.createElement("img",{src:nn,style:{width:20,height:20},alt:"close-icon"})),D.default.createElement("div",{className:"main-info"},D.default.createElement("div",{className:"border-banner"}),D.default.createElement("div",{className:"avatar-title"},D.default.createElement(zn,null,D.default.createElement("div",{className:"image-container"},D.default.createElement("div",{style:{position:"relative"}},D.default.createElement("img",{src:(null==h?void 0:h.logo)?null==h?void 0:h.logo:en,className:"profile-image",alt:"avatar"}),D.default.createElement("img",{className:"badge-avatar",src:tn,alt:"badge"})))),D.default.createElement(Kn,null,D.default.createElement(a.Text,{size:"s3",type:"semiBold",className:"full-name"},null==h?void 0:h.name),D.default.createElement("div",{className:"specialty"},w&&D.default.createElement(a.Text,{size:"p4",color:x.theme.colors.gray800},_.join(" • "),"•"),D.default.createElement("a",{href:qe({id:h.id,name:h.name,slug:h.slug,locale:u}),className:"organisation",target:"_blank",rel:"noreferrer"},D.default.createElement(a.Text,{size:"p4",className:"organisation",color:x.theme.colors.gray800,style:{textDecoration:"underline"}},null==h?void 0:h.name))))),!c&&D.default.createElement("a",{href:qe({id:h.id,name:h.name,slug:h.slug,locale:u})},D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking"},p("careBooking.bookAnAppointment"))))),D.default.createElement(Kn,null,D.default.createElement("div",{className:"experience"},D.default.createElement(a.Text,{type:"bold",size:"s3",color:x.theme.colors.gray800,style:{paddingBottom:16}},p("hospital.content.description").toUpperCase()),D.default.createElement(a.Text,{size:"p2",color:x.theme.colors.gray500},h.about),c?D.default.createElement("a",{href:qe({id:h.id,name:h.name,slug:h.slug,locale:u})},D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking"},p("careBooking.bookAnAppointment")))):D.default.createElement("a",{href:qe({id:h.id,name:h.name,slug:h.slug,locale:u})},D.default.createElement(a.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},p("home.seeHospital"))))))),D.default.createElement(Fn,{"data-open":i,onClick:function(e){e.stopPropagation(),r()}}))},Wn={lessThanXSeconds:{one:"တစ်စက္ကန့်အောက်",other:"{{count}} စက္ကန့်အောက်"},xSeconds:{one:"တစ်စက္ကန့်",other:"{{count}} စက္ကန့်"},halfAMinute:"မိနစ်ဝက်",lessThanXMinutes:{one:"တစ်မိနစ်အောက်",other:"{{count}} မိနစ်အောက်"},xMinutes:{one:"တစ်မိနစ်",other:"{{count}}နာရီခန့်"},aboutXHours:{one:"တစ်နာရီခန့်",other:"{{count}}နာရီခန့်"},xHours:{one:"တစ်နာရီ",other:"{{count}}နာရီ"},xDays:{one:"တစ်ရက်",other:"{{count}}ရက်"},aboutXWeeks:{one:"တစ်ပတ်ခန့်",other:"{{count}}ပတ်ခန့်"},xWeeks:{one:"တစ်ပတ်",other:"{{count}}ပတ်"},aboutXMonths:{one:"တစ်လခန့်",other:"{{count}} လခန့်"},xMonths:{one:"တစ်လ",other:"{{count}}လ"},aboutXYears:{one:"တစ်နှစ်ခန့်",other:"{{count}}နှစ်"},xYears:{one:"တစ်နှစ်",other:"{{count}}နှစ်"},overXYears:{one:"တစ်နှစ်ကျော်",other:"{{count}}နှစ်ကျော်"},almostXYears:{one:"တစ်နှစ်နီးပါး",other:"{{count}}နှစ်နီးပါး"}},Vn={code:"my",formatDistance:function(e,n,t){var i,a=Wn[e];return i="string"==typeof a?a:1===n?a.one:a.other.replace("{{count}}",n.toString()),(null==t?void 0:t.addSuffix)?t.comparison&&t.comparison>0?i+"အတွင်း":"လွန်ခဲ့သော "+i:i},options:{weekStartsOn:0,firstWeekContainsDate:1}},Zn=B.default.div(Xn||(Xn=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0 1rem;\n a {\n text-decoration: none;\n }\n .button-more {\n display: flex;\n width: 20px;\n height: 20px;\n align-items: center;\n justify-content: center;\n .button-more-icon {\n height: 13px;\n vertical-align: middle;\n }\n }\n .temp-avatar {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-weight: bold;\n }\n\n .author-info {\n flex: 1;\n margin-left: 0.5rem;\n .author-info-top {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n .author-info-text-wrapper {\n display: flex;\n min-width: 0px;\n flex: 1 1 0%;\n align-items: center;\n }\n .author-name {\n overflow: hidden;\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .author-time {\n flex-shrink: 0;\n }\n .author-role {\n height: 1rem;\n flex-shrink: 0;\n padding: 0 0.5rem;\n margin-left: 4px;\n border-radius: 1rem;\n color: white;\n font-size: 8px;\n font-weight: 600;\n line-height: 1rem;\n &[data-label-type='admin'] {\n background: ",";\n }\n &[data-label-type='local admin'] {\n background: ",";\n }\n &[data-label-type='ambassador'] {\n background: ",";\n }\n &[data-label-type='expert'] {\n background: ",";\n }\n &[data-label-type='moderator'] {\n background: ",";\n }\n &[data-label-type='sponsor'] {\n background: ",";\n }\n &[data-label-type='guide'] {\n background: ",";\n }\n &[data-label-type='influencer'] {\n background: ",";\n }\n }\n }\n .author-community {\n .text-container {\n color: ",";\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n .time-text {\n font-size: 12px;\n font-weight: normal;\n }\n a {\n color: inherit;\n }\n }\n }\n .expert-wrapper {\n width: 100%;\n }\n &[data-is-booking='true'] {\n display: grid;\n background-color: ",";\n .btn-wrapper {\n padding: 0 16px;\n .btn-booking {\n width: 100%;\n margin: 12px 0;\n }\n }\n }\n &[data-is-marrybaby='true'] {\n align-items: unset;\n .author-info \n "," {\n margin-left: 0.5rem;\n }\n .author-info-text-wrapper {\n flex-wrap: wrap;\n }\n .author-time {\n margin-left: 0.4rem;\n font-size: 14px;\n }\n }\n .author-community {\n .text-container {\n font-size: 12px;\n line-height: 20px;\n }\n .author-community-name {\n color: ",";\n font-weight: 500;\n }\n }\n }\n"],["\n display: flex;\n align-items: center;\n padding: 0 1rem;\n a {\n text-decoration: none;\n }\n .button-more {\n display: flex;\n width: 20px;\n height: 20px;\n align-items: center;\n justify-content: center;\n .button-more-icon {\n height: 13px;\n vertical-align: middle;\n }\n }\n .temp-avatar {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-weight: bold;\n }\n\n .author-info {\n flex: 1;\n margin-left: 0.5rem;\n .author-info-top {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n .author-info-text-wrapper {\n display: flex;\n min-width: 0px;\n flex: 1 1 0%;\n align-items: center;\n }\n .author-name {\n overflow: hidden;\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .author-time {\n flex-shrink: 0;\n }\n .author-role {\n height: 1rem;\n flex-shrink: 0;\n padding: 0 0.5rem;\n margin-left: 4px;\n border-radius: 1rem;\n color: white;\n font-size: 8px;\n font-weight: 600;\n line-height: 1rem;\n &[data-label-type='admin'] {\n background: ",";\n }\n &[data-label-type='local admin'] {\n background: ",";\n }\n &[data-label-type='ambassador'] {\n background: ",";\n }\n &[data-label-type='expert'] {\n background: ",";\n }\n &[data-label-type='moderator'] {\n background: ",";\n }\n &[data-label-type='sponsor'] {\n background: ",";\n }\n &[data-label-type='guide'] {\n background: ",";\n }\n &[data-label-type='influencer'] {\n background: ",";\n }\n }\n }\n .author-community {\n .text-container {\n color: ",";\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n .time-text {\n font-size: 12px;\n font-weight: normal;\n }\n a {\n color: inherit;\n }\n }\n }\n .expert-wrapper {\n width: 100%;\n }\n &[data-is-booking='true'] {\n display: grid;\n background-color: ",";\n .btn-wrapper {\n padding: 0 16px;\n .btn-booking {\n width: 100%;\n margin: 12px 0;\n }\n }\n }\n &[data-is-marrybaby='true'] {\n align-items: unset;\n .author-info \n "," {\n margin-left: 0.5rem;\n }\n .author-info-text-wrapper {\n flex-wrap: wrap;\n }\n .author-time {\n margin-left: 0.4rem;\n font-size: 14px;\n }\n }\n .author-community {\n .text-container {\n font-size: 12px;\n line-height: 20px;\n }\n .author-community-name {\n color: ",";\n font-weight: 500;\n }\n }\n }\n"])),(function(e){return e.theme.colors.secondaryBase}),(function(e){return e.theme.colors.blue800}),(function(e){return e.theme.colors.blue800}),(function(e){return e.theme.colors.green400}),(function(e){return e.theme.colors.red400}),(function(e){return e.theme.colors.yellow800}),(function(e){return e.theme.colors.teal400}),(function(e){return e.theme.colors.teal400}),(function(e){return e.theme.colors.teal400}),(function(e){return e.theme.colors.gray500}),(function(e){return e.theme.colors.blue50}),i.MediaQueries.mbDown,(function(e){return e.theme.mbColors.cobalt}));B.default.img(qn||(qn=e.__makeTemplateObject(["\n width: 20px;\n height: 20px;\n margin-left: 0.5rem;\n cursor: pointer;\n object-fit: contain;\n"],["\n width: 20px;\n height: 20px;\n margin-left: 0.5rem;\n cursor: pointer;\n object-fit: contain;\n"])));var Xn,qn,Jn,$n=B.default.div(Jn||(Jn=e.__makeTemplateObject(["\n position: relative;\n .mini-icon {\n position: absolute;\n right: 1.2px;\n bottom: 1.2px;\n }\n"],["\n position: relative;\n .mini-icon {\n position: absolute;\n right: 1.2px;\n bottom: 1.2px;\n }\n"]))),et={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor","local-admin":"cardAuthor.localAdmin",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},nt={"vi-VN":R.default,"id-ID":M.default,"ms-MY":P.default,"km-KH":N.default,"en-PH":N.default,"th-TH":G.default,"my-MM":Vn,"zh-TW":U.default,"hi-IN":S.default};exports.ADMIN_PATHS={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},exports.Avatar=F,exports.BEARER_TOKEN_COOKIE="hhg_user_token",exports.CARE_PATHS=Ae,exports.CardAuthor=function(e){var t=e.time,l=e.className,d=e.community,s=e.name,u=e.username,c=e.url,p=e.avatar,m=e.miniIcon,f=e.role,v=e.style,b=e.type,x=void 0===b?"post":b,A=e.expertId,w=e.isMarryBaby,_=e.title,E=e.doctorId,y=e.hospitalId,k=e.hasQuickBooking,T=e.handleMakeAppointment,C=n.useContext(De).data,L=C.locale,I=C.router,O=C.env,B=O.isMarryBaby,N=O.togetherBasePath,S="boolean"==typeof w?w:B,M=s||u||"",P=f?function(e){var n=["admin","moderator","ambassador","expert","sponsor","local-admin","guide","influencer"];return n.find((function(n){return n===e}))||n.find((function(n){return e.includes(n)}))||n.find((function(n){return n.includes(e)}))}(f):"",G=g.useTranslations().t,R=t?isNaN(new Date(t).getTime())?null:new Date(t):null,U=R?r.formatDistanceToNow(R,{locale:nt[L]}):t,H=R?r.format(R,"dd/MM/yyyy HH:mm"):t,Q=n.useState(!1),j=Q[0],z=Q[1],K=(I||{}).asPath,Y="https://".concat(h.domainLocales[L]).concat(K),W=function(e){"expert"===f&&(A||E||y)?(e.stopPropagation(),z(!0)):c&&(window.location.href=c)};return n.useEffect((function(){i.toggleNoScroll(j)}),[j]),D.default.createElement(D.default.Fragment,null,"expert"===f&&A?D.default.createElement(Qn,{isOpen:j,onClose:function(){return z(!1)},expertId:A}):null,"expert"===f&&E?D.default.createElement(An,{isOpen:j,onClose:function(){return z(!1)},doctorId:E,locale:L}):null,"expert"===f&&y?D.default.createElement(Yn,{isOpen:j,onClose:function(){return z(!1)},hospitalId:y,locale:L}):null,D.default.createElement(Zn,{"data-is-marrybaby":S,className:l,style:v,"data-is-booking":k},D.default.createElement("div",{style:{display:"flex",width:"100%"}},D.default.createElement("a",null,D.default.createElement($n,{onClick:W},D.default.createElement($e,{className:"author-avatar-wrapper",username:M,avatar:p}),m?D.default.createElement(F,{className:"mini-icon",type:"rounded",avatarImg:D.default.createElement("img",{src:m,style:{width:"12px",height:"12px",objectFit:"cover"},alt:"badge"})}):null)),D.default.createElement("div",{className:"expert-wrapper"},D.default.createElement("div",{className:"author-info"},D.default.createElement("div",{className:"author-info-top"},D.default.createElement("div",{onClick:W,className:"author-info-text-wrapper"},D.default.createElement("div",{className:"author-name"},M),P&&et[P]&&D.default.createElement("div",{className:"author-role","data-label-type":P},_||G(et[P])),S?D.default.createElement(a.Text,{size:"p4",type:"regular",color:"#9495A0",title:H,className:"author-time"},"".concat("post"===x?"• ":"").concat(U)):null)),D.default.createElement("div",{className:"author-community"},D.default.createElement("div",{className:"text-container"},(null==d?void 0:d.name)&&D.default.createElement(D.default.Fragment,null,D.default.createElement("a",{href:(null==d?void 0:d.slug)&&d.isActive&&!d.isHidden?"".concat(N,"/").concat(null==d?void 0:d.slug):void 0,className:"author-community-name"},"".concat(null==d?void 0:d.name)),(S?void 0:U)?" • ":""),D.default.createElement("span",{className:"time-text"},S?void 0:U)))))),k&&D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking",onClick:function(e){null==T||T(E,y),e.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:Y},G("careBooking.bookAnAppointment")))))},exports.DEFAULT_AVATAR_IMG="/images/avatar.jpg",exports.DEFAULT_IMG="/images/default-image.jpg",exports.DISCOVER_PATHS=we,exports.DefaultComponentGlobalContextData=Oe,exports.Dropdown=function(n){var t=n.className,i=n.value,a=n.options,o=n.onChange,r=void 0===o?function(){}:o,l=n.id,d=n.placeholderIcon,s=n.placeholder,u=n.style,c=n.size,p=void 0===c?"lg":c,m=n.groupedWithLabel,g=n.disabled,h=n.dropdownLabelTrackingAttributes,f=void 0===h?{}:h,v=n.isNativeSelect,b=void 0!==v&&v,x=D.default.useState(!1),A=x[0],w=x[1],_=function(){return!g&&w(!A)};return b?D.default.createElement(z,{as:"select","data-is-native":"true",value:(null==i?void 0:i.value)||void 0,disabled:g,onChange:function(e){if("string"==typeof e.target.value){var n=a.find((function(n){return n.value===e.target.value}));n&&r(n)}}},s&&D.default.createElement("option",{value:s,disabled:!0,selected:!0},s),a.map((function(e){return D.default.createElement("option",{key:"".concat(l,"-").concat(e.value),value:e.value,disabled:!!e.disabled&&e.disabled},e.label)}))):D.default.createElement(z,{className:t,"data-dropdown-open":A||void 0,"data-size":p,id:l,"data-has-icons":!!d,style:u,onBlur:function(){return w(!1)},tabIndex:0,"data-disabled":g},!!m&&D.default.createElement(Z,null,m),D.default.createElement(K,e.__assign({onClick:_,className:m&&"with-label"},f),d," ",D.default.createElement("span",null,i&&i.value?i.label:s)),A&&D.default.createElement(Y,{onClick:_,"data-has-icons":!!d},a.map((function(e){return D.default.createElement(W,{key:"".concat(l,"-").concat(e.value),"data-selected":i&&i.value===e.value||void 0,onClick:function(){return!e.disabled&&!g&&(null==r?void 0:r(e))},"data-disabled":!!e.disabled&&e.disabled},e.icon&&D.default.createElement(V,null,e.icon),e.label)}))))},exports.HEALTH_TOOL_TYPE=J,exports.Loading=rn,exports.MAX_IMAGE_UPLOADS=20,exports.PATHS=xe,exports.Popup=function(e){var n=e.type,t=void 0===n?"lead":n,i=e.closeIcon,a=e.isOpen,o=void 0===a||a,r=e.onClose,l=e.children,d=e.className,s=void 0===d?"":d,u=e.enableAnimation,c=void 0===u||u;return D.default.createElement(D.default.Fragment,null,D.default.createElement(X,{"data-open":o,"data-type":t,"data-animation":c},D.default.createElement("div",{className:"".concat(s||""," popup-content")},!!i&&D.default.createElement("div",{className:"close-button",onClick:r},i),l)),D.default.createElement(q,{"data-open":o,onClick:r}))},exports.PopupDoctor=An,exports.PopupExpert=Qn,exports.PopupHospital=Yn,exports.REPORT_REASON_MAP=ee,exports.TogetherComponentGlobalContext=De,exports.TogetherComponentGlobalContextProvider=function(e){var t=e.locale,i=void 0===t?"vi-VN":t,a=e.children,o=e.userInfo,r=e.router,l=e.env,d=void 0===l?{isMarryBaby:!1,togetherBasePath:"/community"}:l,s=e.sanitizeFunction,u=void 0===s?function(e){return e}:s,c=e.pushNotifications,p=void 0===c?function(){return!1}:c,m=n.useState(),g=m[0],h=m[1];return exports.GlobalData={userInfo:o,locale:i,togetherUserId:g,router:r,env:d},n.useEffect((function(){(null==o?void 0:o.id)&&Fe(Re(xe.PROFILE,{_locale:i}),"GET").then((function(e){var n;h(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.id)}))}),[null==o?void 0:o.id]),D.default.createElement(De.Provider,{value:{data:{userInfo:o,locale:i,togetherUserId:g,router:r,env:d},action:{pushNotifications:p,sanitizeFunction:u}}},a)},exports.UserAvatar=$e,exports.callApi=je,exports.callApiWithAdminAuth=function(n,t,i,a){return e.__awaiter(void 0,void 0,void 0,(function(){var o,r,l,d;return e.__generator(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),o=Ie.parse(a||""),r=o.together_admin_token,(l=r||f.getCookie("together_admin_token"))&&l.length?[4,fetch(n,e.__assign(e.__assign({method:t},Qe(i)),{headers:{Authorization:"Bearer "+l}})).then((function(e){return e.json()}))]:[3,2];case 1:if(d=s.sent())return[2,d];s.label=2;case 2:return[3,4];case 3:return s.sent(),[2,null];case 4:return[2,null]}}))}))},exports.callApiWithAuth=Fe,exports.callApiWithOptionalAuth=function(n,t,i,a){return void 0===t&&(t="GET"),e.__awaiter(void 0,void 0,void 0,(function(){var o,r,l,d,s,u,c,p,m,g,h,v,b,x;return e.__generator(this,(function(A){switch(A.label){case 0:if(A.trys.push([0,7,,8]),o="string"==typeof n?n:n.url,r="string"==typeof n?n:n.backupUrl,l=Ie.parse(a||""),d=l.hhg_user_token,!(s=d||f.getCookie("hhg_user_token"))||!s.length)return[3,5];A.label=1;case 1:return A.trys.push([1,3,,4]),[4,fetch(o,e.__assign(e.__assign({method:t},Qe(i)),{headers:{Authorization:"Bearer "+s}})).then((function(e){return e.json()}))];case 2:return u=A.sent(),(null===(m=null==u?void 0:u.messages)||void 0===m?void 0:m.find((function(e){return"Unauthenticated"===(null==e?void 0:e.toLowerCase())})))?[2,je(r||o,t,i)]:u?[2,u]:[3,4];case 3:return c=A.sent(),console.log({status:null===(g=null==c?void 0:c.response)||void 0===g?void 0:g.status,statusText:null===(h=null==c?void 0:c.response)||void 0===h?void 0:h.statusText}),[2,je(r||o,t,i)];case 4:return[3,6];case 5:return[2,je(r||o,t,i)];case 6:return[3,8];case 7:return p=A.sent(),console.log({status:null===(v=null==p?void 0:p.response)||void 0===v?void 0:v.status,statusText:null===(b=null==p?void 0:p.response)||void 0===b?void 0:b.statusText}),[2,(null===(x=null==p?void 0:p.response)||void 0===x?void 0:x.data)||null];case 8:return[2,null]}}))}))},exports.constants=te,exports.dataTransform=be,exports.domainLocales=Be,exports.formatComment=fe,exports.formatCommunity=pe,exports.formatOvulationInfo=he,exports.formatPost=ge,exports.formatTopic=me,exports.formatUserProfileUrl=ve,exports.getApiPath=Re,exports.getCarePath=He,exports.getCurrentBaseUrl=Ge,exports.getCurrentHref=function(e,n,t){return"undefined"!=typeof window?window.location.href:"".concat(Ge(e)).concat(n).concat(t)},exports.getDiscoverApiPath=Ue,exports.getUrlToSignUp=function(e,n,t){void 0===t&&(t="/community");var i=e||("undefined"!=typeof window?window.location.href:"/"),a="undefined"!=typeof window?window.location.origin:"";return a||e&&(e.startsWith("http://")||e.startsWith("https://"))&&(a=e.split("/").slice(0,3).join("/")),function(e,n){var t=exports.GlobalData.env.publicSSO,i=e||window.location.href;return n&&Object.keys(n).map((function(e){ze(i,e,n[e])})),ze(i,"source","communities"),t?"".concat(t,"?returnUrl=").concat(encodeURIComponent(i.toString())):i}("".concat(a).concat(t,"/on-boarding?return=").concat(encodeURIComponent(i)),n)},exports.locales=nt;
|