@hhgtech/hhg-components 1.21.55 → 1.21.57
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/atoms/babyGrowthGender/index.d.ts +2 -1
- package/build/components/atoms/babyGrowthGender/index.styled.d.ts +1 -1
- package/build/components/atoms/drawer/index.d.ts +1 -1
- package/build/components/atoms/icons/BabyBoyMB.d.ts +4 -0
- package/build/components/atoms/icons/BabyGirlMB.d.ts +4 -0
- package/build/components/atoms/icons/index.d.ts +2 -0
- package/build/components/atoms/radioImageGroup/index.d.ts +3 -1
- package/build/components/mantine/accordion/index.d.ts +13 -0
- package/build/components/mantine/accordion/index.styled.d.ts +5 -0
- package/build/components/mantine/index.d.ts +3 -1
- package/build/components/molecules/babyGrowthForm/index.d.ts +17 -0
- package/build/components/molecules/babyGrowthForm/index.styled.d.ts +8 -0
- package/build/components/molecules/babyGrowthForm/utils/bmiCalculate.d.ts +8 -0
- package/build/components/molecules/babyGrowthForm/utils/localizeNumberFormat.d.ts +8 -0
- package/build/components/molecules/dropdownSearch/index.d.ts +13 -14
- package/build/components/molecules/dropdownSearch/index.styled.d.ts +1 -1
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +17 -0
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.styled.d.ts +20 -0
- package/build/components/molecules/index.d.ts +1 -0
- package/build/components.js +1 -1
- package/build/en-PH-ccf2395d.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-dda534c2.js +1 -0
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-1061667f.js +1 -0
- package/build/esm/{index-d89df898.js → index-3c17bc28.js} +1 -1
- package/build/esm/index-610d80f1.js +1 -0
- package/build/esm/index-77174f98.js +1 -0
- package/build/esm/{index-d94df911.js → index-98c0dac3.js} +1 -1
- package/build/esm/{index-e1903111.js → index-c7a9854e.js} +1 -1
- package/build/esm/index-f5db72e5.js +1 -0
- package/build/esm/index-fc420029.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-264d32c3.js +1 -0
- package/build/esm/mantine.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/theme-c740544b.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/translationsProvider-4d53af14.js +1 -0
- package/build/esm/types-2e28c0b4.js +1 -0
- package/build/esm/{types-7bd18799.js → types-c3e8be5c.js} +1 -1
- package/build/esm/{useTranslations-c32c6487.js → useTranslations-5a621674.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index-0b25dbfe.js +1 -0
- package/build/{index-4ddaf91f.js → index-15bd7e75.js} +1 -1
- package/build/index-352cb4b2.js +1 -0
- package/build/index-5a3744b6.js +1 -0
- package/build/{index-e3befb8e.js → index-72b17d37.js} +1 -1
- package/build/{index-32300994.js → index-8d3da089.js} +1 -1
- package/build/index-adf82a14.js +1 -0
- package/build/index-e4c3f90a.js +1 -0
- package/build/index.js +1 -1
- package/build/index.styled-48ac7bb0.js +1 -0
- package/build/interfaces/baby-growth/errorMessage.d.ts +13 -0
- package/build/interfaces/types/BabyGrowth.d.ts +15 -0
- package/build/mantine.js +1 -1
- package/build/navigation.js +1 -1
- package/build/theme-278b74a8.js +1 -0
- package/build/together/api/dataTransform.d.ts +2 -0
- package/build/together.js +1 -1
- package/build/translationsProvider-b2903a22.js +1 -0
- package/build/{types-a5e3fe2f.js → types-1f4ac908.js} +1 -1
- package/build/types-826db21c.js +1 -0
- package/build/useTranslations-8b8f3c1c.js +1 -0
- package/package.json +1 -1
- package/build/en-PH-605a14fc.js +0 -1
- package/build/esm/en-PH-8025ed49.js +0 -1
- package/build/esm/index-1bf3106b.js +0 -1
- package/build/esm/index-227567b5.js +0 -1
- package/build/esm/index-6387675c.js +0 -1
- package/build/esm/index-e8d36241.js +0 -1
- package/build/esm/index-f0d5a0f0.js +0 -1
- package/build/esm/index.styled-92cebda3.js +0 -1
- package/build/esm/index.styled-e639a9b5.js +0 -1
- package/build/esm/theme-6c429841.js +0 -1
- package/build/esm/translationsProvider-29dae7e1.js +0 -1
- package/build/esm/types-370e517c.js +0 -1
- package/build/index-3820ffe8.js +0 -1
- package/build/index-42acfb69.js +0 -1
- package/build/index-7f6b4182.js +0 -1
- package/build/index-973f9b54.js +0 -1
- package/build/index-e99d82f0.js +0 -1
- package/build/index.styled-66b11a13.js +0 -1
- package/build/index.styled-eea1940b.js +0 -1
- package/build/theme-3edb720f.js +0 -1
- package/build/translationsProvider-b07b6ec5.js +0 -1
- package/build/types-11111cda.js +0 -1
- package/build/useTranslations-473f169c.js +0 -1
package/build/index-7f6b4182.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-e6f346c4.js"),n=require("react"),t=require("styled-components"),i=require("./screenSizeContext-78ac9057.js"),a=require("./index.styled-eea1940b.js"),o=require("./index-4ddaf91f.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-473f169c.js"),f=require("./index-d28c27ca.js"),h=require("./cookieHelper-612b90fa.js"),v=require("slugify"),x=require("string-format"),b=require("./theme-696d81a9.js"),w=require("react-id-generator"),A=require("./index-42acfb69.js");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _,E,k,C,T,I,L,B,D=y(n),M=y(t),O=y(l),N=y(d),P=y(s),S=y(u),Q=y(c),R=y(p),U=y(m),G=y(v),j=y(x),z={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},H=function(t){var i=t.type,o=void 0===i?"square":i,r=t.size,l=t.avatarImg,d=t.avatarUrl,s=t.firstLetter,u=t.backgroundColor,c=t.onClick,p=t.style,m=t.className,g=t.isAmp,f=void 0!==g&&g,h=t.width,v=t.height,x=r?z[r]:void 0,b=n.useState(!1),w=b[0],A=b[1];n.useEffect((function(){if(d){var e=document.createElement("img");e.setAttribute("src",d),e.addEventListener("error",(function(){A(!0)}))}}),[d,A]);var y=(!d&&!l||w)&&s;return D.default.createElement(a.StyledAvatar,{style:e.__assign(e.__assign({},p),{"--size":!f&&x?x+"px":void 0,"--width-prop":h?h+"px":void 0,"--height-prop":v?v+"px":void 0,"--background-color":u}),"data-has-max":!(!h||!v),"data-avatar-type":o,onClick:c,className:m,avatarUrl:d,"data-is-amp":f,"data-custom-size":!!r},l,d&&!w&&D.default.createElement("img",{src:d}),y&&s)},F=M.default.div(_||(_=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=M.default.div(E||(E=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=M.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=M.default.li(C||(C=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})),Z=M.default.div(T||(T=e.__makeTemplateObject(["\n max-width: 16px;\n margin-right: 8px;\n"],["\n max-width: 16px;\n margin-right: 8px;\n"]))),V=M.default.div(I||(I=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"]))),q=M.default.div(L||(L=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),X=M.default.div(B||(B=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="/images/avatar.jpg",$="/images/default-image.jpg",ee={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR"},ne={"id-ID":{"kalkulator-bmi":ee.BMI,"kebutuhan-kalori":ee.BMR,"kalkulator-hari-perkiraan-lahir":ee.DUE_DATE,"kalkulator-masa-subur-2":ee.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":ee.PWG,"kalkulator-detak-jantung-saat-olahraga":ee.THR},"ms-MY":{"kalkulator-bmi":ee.BMI,"kalkulator-bmr":ee.BMR,"kalkulator-tarikh-bersalin":ee.DUE_DATE,"kalkulator-kesuburan":ee.OVULATION,"kalkulator-tambah-berat-badan-hamil":ee.PWG,"target-heart-rate-calculator":ee.THR},"vi-VN":{"cach-tinh-chi-so-bmi":ee.BMI,"tinh-chi-so-bmr":ee.BMR,"cong-cu-tinh-ngay-du-sinh":ee.DUE_DATE,"tinh-ngay-rung-trung":ee.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":ee.PWG,"cong-cu-do-nhip-tim":ee.THR},"zh-TW":{"bmi-calculator":ee.BMI,"bmr-calculator":ee.BMR,"due-date-calculator":ee.DUE_DATE,"ovulation-calculator":ee.OVULATION,"pregnancy-weight-gain-calculator":ee.PWG,"target-heart-rate-calculator":ee.THR},"en-PH":{"bmi-calculator":ee.BMI,"bmr-calculator":ee.BMR,"due-date-calculator":ee.DUE_DATE,"ovulation-calculator":ee.OVULATION,"pregnancy-weight-gain-calculator":ee.PWG,"target-heart-rate-calculator":ee.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":ee.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":ee.BMR,"เครื่องมือคำนวณกำหนดคลอด":ee.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":ee.OVULATION,"เครื่องคำนวณน้ำหนักตัว":ee.PWG,"เครื่องวัดอัตราการเต้น":ee.THR},"hi-IN":{"bmi-calculator-en":ee.BMI,"bmi-calculator":ee.BMI,"bmr-calculator":ee.BMR,"delivery-date-calculator":ee.DUE_DATE,"ovulation-calculator":ee.OVULATION,"pregnancy-weight-gain-calculator":ee.PWG,"target-heart-rate-calculator":ee.THR},"km-KH":{"គណនា-bmi":ee.BMI,"គណនា-bmr":ee.BMR,"គណនាថ្ងៃសម្រាលកូន":ee.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":ee.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":ee.PWG,"គណនារកចង្វាក់បេះដូងល្អ":ee.THR},"my-MM":{"bmi-calculator":ee.BMI,"bmr-calculator":ee.BMR,"due-date-calendar":ee.DUE_DATE,"ovulation-calculator":ee.OVULATION,"pregnaancy-weight-calculator":ee.PWG,"target-heartrate":ee.THR,"pregnancy-weight-calculator":ee.PWG,"target-heart-rate":ee.THR}},te="hhg_user_token",ie="together_admin_token",ae={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"}},oe={"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"}},re=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DUE_DATE_FORMAT:"dd/MM/yyyy",DEFAULT_AVATAR_IMG:J,DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:$,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:ee,LOCALE_HEALTH_TOOLS:ne,BEARER_TOKEN_COOKIE:te,TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:ie,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:ae,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:oe}),le=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||""}:{}},de=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}:{}},se=function(n){var t,i,a,o;return n?{id:n.ID,postName:n.post_name,sponsor:n.sponsor?ce(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:le(n.author),reviewer:n.reviewed_by&&le(n.reviewed_by)||null,articleReviewed:(null==n?void 0:n.reviewed)?e.__assign(e.__assign({},null==n?void 0:n.reviewed),{author:ue(null===(t=null==n?void 0:n.reviewed)||void 0===t?void 0:t.author),editor:ue(null===(i=null==n?void 0:n.reviewed)||void 0===i?void 0:i.editor),expert:ue(null===(a=null==n?void 0:n.reviewed)||void 0===a?void 0:a.expert),fact_check:ue(null===(o=null==n?void 0:n.reviewed)||void 0===o?void 0:o.fact_check)}):null,category:me(n.category),postContent:n.post_content||null,sections:n.sections||null,categories:(n.categories||[]).map(me),sources:n.sources||null,description:n.description||null,excerpt:n.excerpt||null,expert:de(n.expert),metaTag:n.meta_tag||null}:{}},ue=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},ce=function(e){return e?{title:e.title,logo:e.logo,link:e.link}:{}},pe=function(e){return{postTitle:e.post_title,permalink:e.permalink}},me=function(e){var n,t;return e?{termId:e.term_id||null,sponsor:e.sponsor?ce(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 me(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?pe(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((function(e){return ge(e)})):null}:{}},ge=function(e){return{title:e.title,content:e.content}},fe=function(e){return e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{}},he=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)}:{}},ve=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)}:{}},xe=function(e){var n,t,i,a,o,r,l,d,s,u,c,p,m,g,f,h,v,x,b,w,A;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===(f=e.user)||void 0===f?void 0:f.partner_id)?String(null===(h=e.user)||void 0===h?void 0:h.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(x=e.user)||void 0===x?void 0:x.doctor_id)?String(null===(b=e.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(w=e.user)||void 0===w?void 0:w.hospital_id)?String(null===(A=e.user)||void 0===A?void 0:A.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||""}:{}},be=function(e){return e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,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}:{}},we=function(e){var n,t,i,a,o,r,l,d,s,u,c,p,m,g,f,h,v,x,b,w,A,y,_,E,k,C,T,I,L,B,D,M;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(we):[],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===(f=e.user)||void 0===f?void 0:f.hospital_id)?String(null===(h=e.user)||void 0===h?void 0:h.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(v=e.mentioned)||void 0===v?void 0:v.id)||0,username:(null===(x=e.mentioned)||void 0===x?void 0:x.user_name)||"",name:(null===(b=e.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(w=e.mentioned)||void 0===w?void 0:w.role)?null===(y=null===(A=e.mentioned)||void 0===A?void 0:A.role)||void 0===y?void 0:y.toLowerCase():"",avatar:(null===(_=e.mentioned)||void 0===_?void 0:_.avatar)||"",type:(null===(E=e.mentioned)||void 0===E?void 0:E.type)||"",email:(null===(k=e.mentioned)||void 0===k?void 0:k.email)||"",partnerId:(null===(C=e.mentioned)||void 0===C?void 0:C.partner_id)?String(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id):"",doctorId:(null===(I=e.mentioned)||void 0===I?void 0:I.doctor_id)?String(null===(L=e.mentioned)||void 0===L?void 0:L.doctor_id):"",hospitalId:(null===(B=e.mentioned)||void 0===B?void 0:B.hospital_id)?String(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id):"",title:(null===(M=e.mentioned)||void 0===M?void 0:M.title)||""}:null,mentions:e.mentions||[]}:{}},Ae=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)||"#":""},ye=Object.freeze({__proto__:null,formatAuthor:le,formatArticleExpert:de,formatArticle:se,formatUserProfile:ue,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:ce,formatReviewedCategory:pe,formatCategory:me,formatCategoryApi:function(e){return e?{categoryInfo:me(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(se),subCategories:(e.data.sub_categories||[]).map(me)}:{}},formatFaqsCategory:ge,formatHealthTool:fe,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 fe(e)})))&&void 0!==t?t:[]}:{}},formatCommunity:he,formatTopic:ve,formatPost:xe,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:be,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:we,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?ue(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}},formatUserProfileUrl:Ae,formatTHRContent:function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?ue(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}}}),_e={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"},Ee={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},ke="expert/{id}",Ce=function(e,n){if("string"!=typeof e)throw new TypeError("argument str must be a string");var t={},i=(n||{}).decode||Be,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]=Me(d,i)}a=r+1}return t},Te=function(e,n,t){var i=t||{},a=i.encode||De;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!Le.test(e))throw new TypeError("argument name is invalid");var o=a(n);if(o&&!Le.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(!Le.test(i.domain))throw new TypeError("option domain is invalid");r+="; Domain="+i.domain}if(i.path){if(!Le.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]"===Ie.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},Ie=Object.prototype.toString,Le=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Be(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function De(e){return encodeURIComponent(e)}function Me(e,n){try{return n(e)}catch(n){return e}}var Oe={parse:Ce,serialize:Te},Ne={"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"},Pe={"vi-VN":"marrybaby.vn"},Se=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",Qe=function(e){var n=exports.GlobalData.env.isMarryBaby;return"https://".concat(n?Pe[e]:Ne[e])},Re=function(e){var n=e.indexOf("?");return n>=0?e.slice(0,n+1)+e.slice(n+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},Ue=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(Ne[e])},Ge=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=j.default(n,e.__assign(e.__assign({},(null==t?void 0:t._locale)?{website_url:Qe(String(t._locale))}:{}),t));return l+="".concat(l.includes("?")?"&":"?").concat(a),r+"api/v1/"+Re(l)},je=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/")+Re(j.default(n,e.__assign({},t)))},ze=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},He=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(e.__assign({method:t},ze(i)),{headers:e.__assign({},null==i?void 0:i.headers)})).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=Oe.parse(a||""),r=o[te],(l=r||h.getCookie(te))&&l.length?[4,fetch(n,e.__assign(e.__assign({method:t},ze(i)),{headers:e.__assign({Authorization:"Bearer "+l},null==i?void 0:i.headers)})).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 Ke(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 Ye=function(e,n,t,i){return t&&n?"".concat(t,"-").concat(n):"".concat(G.default(e||"",{lower:!0,locale:i||Se}),"-").concat(n)},We=function(e){var n,t=e.name,i=e.id,a=e.locale;return"/care/".concat(null===(n=oe[a||"vi-VN"])||void 0===n?void 0:n.DOCTOR,"/").concat(Ye(t,i))},Ze=function(e){var n,t=e.name,i=e.id,a=e.slug,o=e.locale;return"/care/".concat(null===(n=oe[o||"vi-VN"])||void 0===n?void 0:n.HOSPITAL,"/").concat(Ye(t,i,a))},Ve={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},qe=n.createContext({data:Ve,action:{pushNotifications:function(e){return e},sanitizeFunction:function(e){return e}}});exports.GlobalData=Ve;var Xe,Je,$e,en,nn=M.default.div(Xe||(Xe=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})),tn=function(e){var t=e.className,i=e.isMarryBaby,a=e.style,o=e.avatar,r=e.username,l=e.isLazy,d=n.useContext(qe).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(nn,{"data-is-marrybaby":s,className:t,style:a},o&&!c?D.default.createElement("img",{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"))},an="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+LyT2q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Q/4LRdLDe7MvgPcNwilRt1rH/AeUE7Z/3jF3t3t5M6FARgdOgRKiREeiAYQ3J+q43Kfv/X805ABcvtnrXeoTf9ZmaT12vj+4e8lm1c6872H9Ri18V1fjn+A/WYLuIarf4PNZn8ifFurf9CZR5itN8FqMw6RnopQHXWIwOg/X+o0TpGWAkAUKchvuf1H6jVPL7zrwCVmmzjsr8mgKFek+e4qC9AvXZtXLAtQM2Wt3FWowBA5X7GWQ8FqNx9nLGyAwzVu2nja0MBqvcUX1pJgJDB1hIQ5LVr4rOZKyCQwxCf3RcghUlrCBDyWsdHjTMAkMW0NQUMef13BwDy2s3ixMwQACSyiBN3BcjjNU7MC5DHdOYtAMjrOY4tC5DISQf44R8gpPIUR9oCZHITR7oCpPIYB4sCpNJZBYS8FnGwL0AqW3NAkNfcPVDIa3ANBPLq48A9QEhmE++aAiTTmAOCvDoVEPLaiwCQ1yACQF69CAB5bUQASKwRASCvTgSAvPYiAOQ1iACQVy8CQF4bEQASa0QAyKsTASCvvQgAeQ0iAOTViwCQ11t7dlACAAgFUAxsIPwIghf75zPI22psJACELQkAXVsCQNeTANB1JQB0HQkAXSMBIGxJAOjaEgC6ngSArisBoOtIAOiaD+58ZjwSBuPYAAAAAElFTkSuQmCC",on="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",rn="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",ln=M.default.div(Je||(Je=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"]))),dn=t.keyframes($e||($e=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"])));M.default.div(en||(en=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"])),dn);var sn=function(e){var n=e.className,t=e.size,i=void 0===t?"md":t,a=g.useTranslations().t;return D.default.createElement(ln,{className:n},D.default.createElement(o.Button,{size:i,color:"transparent",isLoading:!0},a("loading")))},un=M.default.div(gn||(gn=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})),cn=M.default.div(fn||(fn=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"]))),pn=M.default.div(hn||(hn=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"]))),mn=M.default.div(vn||(vn=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"])));M.default.span(xn||(xn=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})),M.default.div(bn||(bn=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})),M.default.div(wn||(wn=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 gn,fn,hn,vn,xn,bn,wn,An,yn=M.default.ul(An||(An=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"]))),_n=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,f=e.locale,h=e.isMobile,v=g.useTranslations().t,x=n.useState(null),A=x[0],y=x[1],_=n.useState(!1),E=_[0],k=_[1];n.useEffect((function(){if(s&&m&&String(null==A?void 0:A.id)!==String(m)){k(!0);try{y(null),He(je(Ee.GET_DOCTOR_INFO,{doctorId:m,website_url:Ne[f]}),"get").then((function(e){y(null==e?void 0:e._data.doctor)}))}catch(e){console.error(e)}k(!1)}}),[s,m,null==A?void 0:A.id]);var C=(null==A?void 0:A.experiences)||[],T=((null==A?void 0:A.specialties)||[]).map((function(e){return(null==e?void 0:e.name)||e})).join(" • "),I=C.map((function(e){try{return JSON.parse(e.description)}catch(n){return e.description}})).filter((function(e){return e.content})),L=w.useId(null===(t=null==A?void 0:A.experiences)||void 0===t?void 0:t.length);return D.default.createElement(D.default.Fragment,null,D.default.createElement(un,{"data-open":s,"data-animation":p,onClick:function(e){return e.stopPropagation()}},E||!A?D.default.createElement(sn,null):D.default.createElement("div",{className:"popup-content"},D.default.createElement("div",{className:"close-button",onClick:u},D.default.createElement("img",{src:on,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(pn,null,D.default.createElement("div",{className:"image-container"},D.default.createElement("div",{style:{position:"relative"}},D.default.createElement("img",{src:(null==A?void 0:A.avatar)?null==A?void 0:A.avatar:an,className:"profile-image",alt:"avatar"}),D.default.createElement("img",{className:"badge-avatar",src:rn,alt:"badge"})))),D.default.createElement(mn,null,D.default.createElement(a.Text,{size:"s3",type:"semiBold",className:"full-name"},null==A?void 0:A.name),D.default.createElement("div",{className:"specialty"},T&&D.default.createElement(D.default.Fragment,null,D.default.createElement(a.Text,{size:"p4",color:b.theme.colors.gray800},T," • ")),D.default.createElement("a",{href:Ze({id:null===(i=null==A?void 0:A.organization)||void 0===i?void 0:i.id,name:null===(r=null==A?void 0:A.organization)||void 0===r?void 0:r.name,slug:null===(l=null==A?void 0:A.organization)||void 0===l?void 0:l.slug,locale:f}),className:"organisation",target:"_blank",rel:"noreferrer"},D.default.createElement(a.Text,{size:"p4",className:"organisation",color:b.theme.colors.gray800,style:{textDecoration:"underline"}},null==A?void 0:A.organization.name))))),!h&&D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement("a",{href:We({name:A.name,id:A.id,locale:f})},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment"))))),I&&D.default.createElement(mn,null,D.default.createElement("div",{className:"experience"},D.default.createElement(a.Text,{type:"bold",size:"s3",color:b.theme.colors.gray800,style:{paddingBottom:16}},v("expert.content.description").toUpperCase()),D.default.createElement(yn,null,I.map((function(e,n){return D.default.createElement("li",{key:L[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)))}))),h?D.default.createElement("div",{className:"btn-wrapper"},D.default.createElement("a",{href:We({name:A.name,id:A.id,locale:f})},D.default.createElement(o.Button,{color:"primary",size:"md",className:"btn-booking"},v("careBooking.bookAnAppointment")))):D.default.createElement("a",{href:We({name:A.name,id:A.id,locale:f})},D.default.createElement(a.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},v("home.seeExpert"))))))),D.default.createElement(cn,{"data-open":s,onClick:function(e){e.stopPropagation(),u()}}))},En=M.default.div(In||(In=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})),kn=M.default.div(Ln||(Ln=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"]))),Cn=M.default.div(Bn||(Bn=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"]))),Tn=M.default.div(Dn||(Dn=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"])));M.default.span(Mn||(Mn=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})),M.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 In,Ln,Bn,Dn,Mn,On,Nn,Pn,Sn,Qn,Rn,Un,Gn,jn,zn=M.default.div(Nn||(Nn=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:rn},Fn=function(t){var i=t.isOpen,o=void 0===i||i,r=t.onClose,l=t.enableAnimation,d=void 0===l||l,s=t.expertId,u=g.useTranslations().t,c=n.useState(null),p=c[0],m=c[1],f=n.useState(!1),h=f[0],v=f[1];return n.useEffect((function(){if(o&&s&&String(null==p?void 0:p.user_id)!==String(s)){v(!0);try{m(null),He(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/"+Re(j.default(n,e.__assign({},t)))}(ke,{id:s}),"get").then((function(e){m(null==e?void 0:e.data)}))}catch(e){console.error(e)}v(!1)}}),[o,s,null==p?void 0:p.user_id]),D.default.createElement(D.default.Fragment,null,D.default.createElement(En,{"data-open":o,"data-animation":d,onClick:function(e){return e.stopPropagation()}},h||!p?D.default.createElement(sn,null):D.default.createElement("div",{className:"popup-content"},D.default.createElement("div",{className:"close-button",onClick:r},D.default.createElement("img",{src:on,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(Cn,null,D.default.createElement("div",{className:"image-container"},D.default.createElement("div",{style:{position:"relative"}},D.default.createElement("img",{src:(null==p?void 0:p.avatar)?null==p?void 0:p.avatar:an,className:"profile-image",alt:"avatar"}),D.default.createElement("img",{className:"badge-avatar",src:Hn[null==p?void 0:p.role],alt:"badge"})))),D.default.createElement(Tn,null,D.default.createElement(a.Text,{size:"s3",className:"full-name",type:"semiBold"},null==p?void 0:p.display_name),D.default.createElement("div",null,D.default.createElement(a.Text,{size:"p4",color:b.theme.colors.gray800},null==p?void 0:p.specialty," • "),D.default.createElement("a",{href:null==p?void 0:p.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},D.default.createElement(a.Text,{size:"p4",className:"organisation",color:b.theme.colors.gray800,style:{textDecoration:"underline"}},null==p?void 0:p.organisation)))))),D.default.createElement(Tn,null,D.default.createElement("div",{className:"experience"},D.default.createElement(a.Text,{type:"bold",size:"p4",color:b.theme.colors.gray800,style:{paddingBottom:16}},u("expert.content.description").toUpperCase()),D.default.createElement("div",{className:"list-items"},!!(null==p?void 0:p.experiences)&&p.experiences.filter((function(e){return!(!e||!e.title&&!e.organization)})).slice(0,3).map((function(e,n){return D.default.createElement(zn,{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(A.Heading,{tag:"h6",color:b.theme.colors.gray800},null==e?void 0:e.title),D.default.createElement(a.Text,{size:"p2",color:b.theme.colors.gray500},null==e?void 0:e.organization)))}))),D.default.createElement("a",{href:null==p?void 0:p.profile_url},D.default.createElement(a.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},u("home.seeExpert"))))))),D.default.createElement(kn,{"data-open":o,onClick:function(e){e.stopPropagation(),r()}}))},Kn=M.default.div(Pn||(Pn=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})),Yn=M.default.div(Sn||(Sn=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"]))),Wn=M.default.div(Qn||(Qn=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"]))),Zn=M.default.div(Rn||(Rn=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"])));M.default.span(Un||(Un=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})),M.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})),M.default.div(jn||(jn=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 Vn=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),f=m[0],h=m[1],v=n.useState(!1),x=v[0],w=v[1];n.useEffect((function(){if(i&&s&&String(null==f?void 0:f.id)!==String(s)){w(!0);try{h(null),He(je(Ee.GET_HOSPITAL_INFO,{hospital_branch_id:s,website_url:Ne[u]}),"get").then((function(e){h(null==e?void 0:e._data.branch)}))}catch(e){console.error(e)}w(!1)}}),[i,s,null==f?void 0:f.id]);var A=(null==f?void 0:f.specialties)||[],y=n.useMemo((function(){return A.map((function(e){return e.name}))}),[A]);return D.default.createElement(D.default.Fragment,null,D.default.createElement(Kn,{"data-open":i,"data-animation":d,onClick:function(e){return e.stopPropagation()}},x||!f?D.default.createElement(sn,null):D.default.createElement("div",{className:"popup-content"},D.default.createElement("div",{className:"close-button",onClick:r},D.default.createElement("img",{src:on,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(Wn,null,D.default.createElement("div",{className:"image-container"},D.default.createElement("div",{style:{position:"relative"}},D.default.createElement("img",{src:(null==f?void 0:f.logo)?null==f?void 0:f.logo:an,className:"profile-image",alt:"avatar"}),D.default.createElement("img",{className:"badge-avatar",src:rn,alt:"badge"})))),D.default.createElement(Zn,null,D.default.createElement(a.Text,{size:"s3",type:"semiBold",className:"full-name"},null==f?void 0:f.name),D.default.createElement("div",{className:"specialty"},A&&D.default.createElement(a.Text,{size:"p4",color:b.theme.colors.gray800},y.join(" • "),"•"),D.default.createElement("a",{href:Ze({id:f.id,name:f.name,slug:f.slug,locale:u}),className:"organisation",target:"_blank",rel:"noreferrer"},D.default.createElement(a.Text,{size:"p4",className:"organisation",color:b.theme.colors.gray800,style:{textDecoration:"underline"}},null==f?void 0:f.name))))),!c&&D.default.createElement("a",{href:Ze({id:f.id,name:f.name,slug:f.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(Zn,null,D.default.createElement("div",{className:"experience"},D.default.createElement(a.Text,{type:"bold",size:"s3",color:b.theme.colors.gray800,style:{paddingBottom:16}},p("hospital.content.description").toUpperCase()),D.default.createElement(a.Text,{size:"p2",color:b.theme.colors.gray500},f.about),c?D.default.createElement("a",{href:Ze({id:f.id,name:f.name,slug:f.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:Ze({id:f.id,name:f.name,slug:f.slug,locale:u})},D.default.createElement(a.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},p("home.seeHospital"))))))),D.default.createElement(Yn,{"data-open":i,onClick:function(e){e.stopPropagation(),r()}}))},qn={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}}နှစ်နီးပါး"}},Xn={code:"my",formatDistance:function(e,n,t){var i,a=qn[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}},Jn=M.default.div($n||($n=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}));M.default.img(et||(et=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 $n,et,nt,tt=M.default.div(nt||(nt=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"]))),it={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"},at={"vi-VN":R.default,"id-ID":P.default,"ms-MY":S.default,"km-KH":O.default,"en-PH":O.default,"th-TH":Q.default,"my-MM":Xn,"zh-TW":U.default,"hi-IN":N.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=H,exports.BEARER_TOKEN_COOKIE=te,exports.CARE_PATHS=Ee,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,h=e.role,v=e.style,x=e.type,b=void 0===x?"post":x,w=e.expertId,A=e.isMarryBaby,y=e.title,_=e.doctorId,E=e.hospitalId,k=e.hasQuickBooking,C=e.handleMakeAppointment,T=n.useContext(qe).data,I=T.locale,L=T.router,B=T.env,M=B.isMarryBaby,O=B.togetherBasePath,N="boolean"==typeof A?A:M,P=s||u||"",S=h?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)}))}(h):"",Q=g.useTranslations().t,R=t?isNaN(new Date(t).getTime())?null:new Date(t):null,U=R?r.formatDistanceToNow(R,{locale:at[I]}):t,G=R?r.format(R,"dd/MM/yyyy HH:mm"):t,j=n.useState(!1),z=j[0],F=j[1],K=(L||{}).asPath,Y="https://".concat(f.domainLocales[I]).concat(K),W=function(e){"expert"===h&&(w||_||E)?(e.stopPropagation(),F(!0)):c&&(window.location.href=c)};return n.useEffect((function(){i.toggleNoScroll(z)}),[z]),D.default.createElement(D.default.Fragment,null,"expert"===h&&w?D.default.createElement(Fn,{isOpen:z,onClose:function(){return F(!1)},expertId:w}):null,"expert"===h&&_?D.default.createElement(_n,{isOpen:z,onClose:function(){return F(!1)},doctorId:_,locale:I}):null,"expert"===h&&E?D.default.createElement(Vn,{isOpen:z,onClose:function(){return F(!1)},hospitalId:E,locale:I}):null,D.default.createElement(Jn,{"data-is-marrybaby":N,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(tt,{onClick:W},D.default.createElement(tn,{className:"author-avatar-wrapper",username:P,avatar:p}),m?D.default.createElement(H,{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"},P),S&&it[S]&&D.default.createElement("div",{className:"author-role","data-label-type":S},y||Q(it[S])),N?D.default.createElement(a.Text,{size:"p4",type:"regular",color:"#9495A0",title:G,className:"author-time"},"".concat("post"===b?"• ":"").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(O,"/").concat(null==d?void 0:d.slug):void 0,className:"author-community-name"},"".concat(null==d?void 0:d.name)),(N?void 0:U)?" • ":""),D.default.createElement("span",{className:"time-text"},N?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==C||C(_,E),e.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:Y},Q("careBooking.bookAnAppointment")))))},exports.DEFAULT_AVATAR_IMG=J,exports.DEFAULT_IMG=$,exports.DefaultComponentGlobalContextData=Ve,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,f=n.dropdownLabelTrackingAttributes,h=void 0===f?{}:f,v=n.isNativeSelect,x=void 0!==v&&v,b=D.default.useState(!1),w=b[0],A=b[1],y=function(){return!g&&A(!w)};return x?D.default.createElement(F,{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(F,{className:t,"data-dropdown-open":w||void 0,"data-size":p,id:l,"data-has-icons":!!d,style:u,onBlur:function(){return A(!1)},tabIndex:0,"data-disabled":g},!!m&&D.default.createElement(V,null,m),D.default.createElement(K,e.__assign({onClick:y,className:m&&"with-label"},h),d," ",D.default.createElement("span",null,i&&i.value?i.label:s)),w&&D.default.createElement(Y,{onClick:y,"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(Z,null,e.icon),e.label)}))))},exports.HEALTH_TOOL_TYPE=ee,exports.Loading=sn,exports.MAX_IMAGE_UPLOADS=20,exports.PATHS=_e,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(q,{"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(X,{"data-open":o,onClick:r}))},exports.PopupDoctor=_n,exports.PopupExpert=Fn,exports.PopupHospital=Vn,exports.REPORT_REASON_MAP=ae,exports.TogetherComponentGlobalContext=qe,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],f=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(Ge(_e.PROFILE,{_locale:i}),"GET").then((function(e){var n;f(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.id)}))}),[null==o?void 0:o.id]),D.default.createElement(qe.Provider,{value:{data:{userInfo:o,locale:i,togetherUserId:g,router:r,env:d},action:{pushNotifications:p,sanitizeFunction:u}}},a)},exports.UserAvatar=tn,exports.callApi=He,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=Oe.parse(a||""),r=o[ie],(l=r||h.getCookie(ie))&&l.length?[4,fetch(n,e.__assign(e.__assign({method:t},ze(i)),{headers:e.__assign({Authorization:"Bearer "+l},null==i?void 0:i.headers)})).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,f,v,x,b;return e.__generator(this,(function(w){switch(w.label){case 0:if(w.trys.push([0,7,,8]),o="string"==typeof n?n:n.url,r="string"==typeof n?n:n.backupUrl,l=Oe.parse(a||""),d=l[te],!(s=d||h.getCookie(te))||!s.length)return[3,5];w.label=1;case 1:return w.trys.push([1,3,,4]),[4,fetch(o,e.__assign(e.__assign({method:t},ze(i)),{headers:e.__assign({Authorization:"Bearer "+s},null==i?void 0:i.headers)})).then((function(e){return e.json()}))];case 2:return u=w.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,He(r||o,t,i)]:u?[2,u]:[3,4];case 3:return c=w.sent(),console.log({status:null===(g=null==c?void 0:c.response)||void 0===g?void 0:g.status,statusText:null===(f=null==c?void 0:c.response)||void 0===f?void 0:f.statusText}),[2,He(r||o,t,i)];case 4:return[3,6];case 5:return[2,He(r||o,t,i)];case 6:return[3,8];case 7:return p=w.sent(),console.log({status:null===(v=null==p?void 0:p.response)||void 0===v?void 0:v.status,statusText:null===(x=null==p?void 0:p.response)||void 0===x?void 0:x.statusText}),[2,(null===(b=null==p?void 0:p.response)||void 0===b?void 0:b.data)||null];case 8:return[2,null]}}))}))},exports.constants=re,exports.dataTransform=ye,exports.domainLocales=Ne,exports.formatComment=we,exports.formatCommunity=he,exports.formatOvulationInfo=be,exports.formatPost=xe,exports.formatTopic=ve,exports.formatUserProfileUrl=Ae,exports.getApiPath=Ge,exports.getCarePath=je,exports.getCurrentBaseUrl=Ue,exports.getCurrentHref=function(e,n,t){return"undefined"!=typeof window?window.location.href:"".concat(Ue(e)).concat(n).concat(t)},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){Ke(i,e,n[e])})),Ke(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=at;
|
package/build/index-973f9b54.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./index.styled-eea1940b.js"),t=require("./tslib.es6-e6f346c4.js"),a=require("react");require("date-fns"),require("./screenSizeContext-78ac9057.js"),require("styled-components");var l=require("./theme-696d81a9.js");require("./index-d28c27ca.js"),require("./isProduction-32e6a55a.js"),require("./Locale-11b51016.js"),require("./gAssets.js");var i=require("./useTranslations-473f169c.js");require("lodash/debounce");var n=require("./index-e3befb8e.js"),r=require("./useScrollbarSize-586f6706.js"),o=require("react-dom"),c=require("./index.styled-66b11a13.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=d(a),u={Ask:e.Ask,BarChart:e.BarChart,Booking:e.Booking,Bookmark:e.Bookmark,Boy:function(e){var a=e.size,l=void 0===a?40:a,i=t.__rest(e,["size"]);return s.default.createElement("svg",t.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 40 40"},i),s.default.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#2D87F3"}),s.default.createElement("path",{fill:"#fff",d:"M20.002 30.973c-2.616 0-4.945-.607-6.734-1.755-1.82-1.166-3.058-2.884-3.604-4.992-.045 0-.09.003-.136.003-.758 0-1.486-.3-2.023-.834a2.843 2.843 0 010-4.029 2.868 2.868 0 012.194-.83c.577-2.321 1.83-4.42 3.567-5.952C15.16 10.918 17.552 10 20.002 10s4.84.918 6.733 2.587c1.737 1.53 2.99 3.628 3.567 5.952a2.868 2.868 0 012.194.83 2.843 2.843 0 010 4.028 2.868 2.868 0 01-2.16.831c-.546 2.106-1.782 3.826-3.602 4.992-1.79 1.146-4.118 1.753-6.732 1.753z"}),s.default.createElement("path",{fill:"#2D87F3",d:"M17.95 13.19h-.014a.525.525 0 00-.524.509c0 .015-.059 1.466-2.006 1.927a.525.525 0 00-.389.63.523.523 0 00.633.386c2.18-.516 2.793-2.134 2.812-2.917a.519.519 0 00-.313-.491.527.527 0 00-.2-.044zM20.591 12.874a.524.524 0 00-.326.663c.004.014.455 1.396-1.212 2.5a.521.521 0 00.19.936.526.526 0 00.39-.066c1.866-1.236 1.878-2.966 1.625-3.708a.521.521 0 00-.464-.352.529.529 0 00-.203.027zM23.292 13.4a.525.525 0 00-.735.749c.008.007.787.783.35 2.119a.523.523 0 00.898.508.523.523 0 00.098-.183c.641-1.946-.56-3.142-.611-3.192zM15.977 21.818a1.365 1.365 0 000-1.936 1.38 1.38 0 00-1.945 0 1.365 1.365 0 000 1.936 1.38 1.38 0 001.945 0zM25.445 22.172a1.368 1.368 0 10-.682-2.652 1.369 1.369 0 10.682 2.652zM22.837 22.755a.532.532 0 00-.66.338c-.005.012-.414 1.222-2.124 1.222-1.71 0-2.12-1.21-2.124-1.222a.523.523 0 00-.998.316c.026.08.656 1.947 3.123 1.947s3.097-1.867 3.122-1.947a.52.52 0 00-.339-.654z"}))},Calendar:function(e){var a=e.size,l=void 0===a?20:a,i=e.color,n=void 0===i?"#595959":i,r=t.__rest(e,["size","color"]);return s.default.createElement("svg",t.__assign({width:l,height:l,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),s.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8337 2.50065H16.667C17.5837 2.50065 18.3337 3.25065 18.3337 4.16732V17.5006C18.3337 18.4173 17.5837 19.1673 16.667 19.1673H3.33366C2.41699 19.1673 1.66699 18.4173 1.66699 17.5006V4.16732C1.66699 3.25065 2.41699 2.50065 3.33366 2.50065H4.16699V1.66732C4.16699 1.20898 4.54199 0.833984 5.00033 0.833984C5.45866 0.833984 5.83366 1.20898 5.83366 1.66732V2.50065H14.167V1.66732C14.167 1.20898 14.542 0.833984 15.0003 0.833984C15.4587 0.833984 15.8337 1.20898 15.8337 1.66732V2.50065ZM4.16699 17.5007H15.8337C16.292 17.5007 16.667 17.1257 16.667 16.6673V6.66732H3.33366V16.6673C3.33366 17.1257 3.70866 17.5007 4.16699 17.5007Z",fill:n}))},Community:e.Community,EditSpecial:e.EditSpecial,Family:e.Family,Font:e.Font,GenderBoy:function(e){var a=e.size,l=void 0===a?16:a,i=t.__rest(e,["size"]);return s.default.createElement("svg",t.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 16 16"},i),s.default.createElement("g",{fill:"#595959",clipPath:"url(#clip0_408_8625)"},s.default.createElement("path",{d:"M15.325 1.199a.602.602 0 00-.038-.151v-.005h-.001a.618.618 0 00-.107-.168.623.623 0 00-.117-.105l-.004-.002a.6.6 0 00-.175-.078.609.609 0 00-.161-.024h-4.278a.611.611 0 000 1.223h2.802L9.6 5.535a5.469 5.469 0 00-3.433-1.203 5.506 5.506 0 00-5.5 5.5c0 3.033 2.468 5.5 5.5 5.5 3.033 0 5.5-2.467 5.5-5.5 0-1.262-.425-2.46-1.203-3.433l3.648-3.647v2.802a.611.611 0 001.222 0V1.277c0-.012-.003-.025-.004-.037a.617.617 0 00-.004-.041zM6.166 14.11A4.282 4.282 0 011.89 9.833a4.282 4.282 0 017.303-3.028 4.282 4.282 0 01-3.026 7.305z"}),s.default.createElement("path",{fillRule:"evenodd",d:"M15.287 1.048a.602.602 0 01.042.192l.002.016a.156.156 0 01.002.021v4.278a.611.611 0 01-1.222 0V2.753L10.463 6.4a5.469 5.469 0 011.203 3.433c0 3.033-2.467 5.5-5.5 5.5a5.506 5.506 0 01-5.5-5.5c0-3.033 2.468-5.5 5.5-5.5 1.263 0 2.46.425 3.433 1.203l3.647-3.647h-2.802a.611.611 0 010-1.223h4.278a.609.609 0 01.197.036.6.6 0 01.14.067h.003a.623.623 0 01.14.135h.001a.618.618 0 01.083.138v.003l.001.003zm.064-.02c.021.053.033.107.04.162m-.04-.162a.695.695 0 00-.096-.165l-.001-.002c-.008-.009-.016-.02-.026-.03A.69.69 0 0015.1.715m-.2-.089A.675.675 0 0014.722.6h-4.278a.678.678 0 000 1.355h2.641L9.594 5.447a5.535 5.535 0 00-3.428-1.18A5.573 5.573 0 00.6 9.832 5.573 5.573 0 006.166 15.4a5.573 5.573 0 005.567-5.567c0-1.257-.417-2.45-1.18-3.427l3.491-3.492v2.641a.678.678 0 001.356 0V1.277a.202.202 0 00-.003-.027v-.004l-.001-.01a.743.743 0 00-.005-.046M1.955 9.833a4.216 4.216 0 004.211 4.211 4.216 4.216 0 002.979-7.191 4.216 4.216 0 00-7.19 2.98zm7.237-3.028a4.282 4.282 0 00-7.304 3.028 4.282 4.282 0 004.278 4.278 4.282 4.282 0 003.026-7.306z",clipRule:"evenodd"})),s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"clip0_408_8625"},s.default.createElement("path",{fill:"#fff",d:"M0 0H16V16H0z"}))))},GenderChooseBoy:function(e){var l=a.useRef("svg-".concat(Math.random()));return s.default.createElement("svg",t.__assign({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),s.default.createElement("g",{clipPath:"url(#".concat(l.current,")")},s.default.createElement("path",{fill:"#45A4FF",d:"M11.203 7.633l1.914 1.914 6.397-6.397L17.6 1.235l-6.397 6.398z"}),s.default.createElement("path",{fill:"#45A4FF",d:"M8.083 5.334a7.333 7.333 0 100 14.667 7.333 7.333 0 000-14.667zm0 11.96a4.626 4.626 0 110-9.253 4.626 4.626 0 010 9.252z"}),s.default.createElement("path",{fill:"#2D87F3",d:"M7.508 8.077a4.626 4.626 0 100 9.181 4.627 4.627 0 010-9.181zM8.083 5.334a7.43 7.43 0 00-.575.022 7.334 7.334 0 010 14.622 7.333 7.333 0 10.575-14.644zM19.88 2.785v-.78L18.744.872h-.78l-2.707 2.707h1.55c.2 0 .364.163.364.365v1.55l2.707-2.708z"}),s.default.createElement("path",{fill:"#45A4FF",d:"M18.043 0h-4.585a.365.365 0 00-.364.365v1.978c0 .201.163.364.364.364h4.22c.201 0 .365.163.365.365v4.22c0 .2.163.364.364.364h1.978a.365.365 0 00.365-.364V.365A.365.365 0 0020.385 0h-2.342z"})),s.default.createElement("defs",null,s.default.createElement("clipPath",{id:l.current},s.default.createElement("path",{fill:"#fff",d:"M0 0H20V20H0z",transform:"translate(.75)"}))))},GenderChooseGirl:function(e){return s.default.createElement("svg",t.__assign({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},e),s.default.createElement("path",{fill:"#FE9DC2",d:"M13.748 15.546h-1.503a.321.321 0 01-.321-.322v-3.7H9.577v3.7a.321.321 0 01-.322.322H7.753a.321.321 0 00-.321.321v1.704c0 .178.144.322.321.322h1.502c.178 0 .322.144.322.321v1.465c0 .178.144.321.321.321h1.704a.321.321 0 00.322-.321v-1.465c0-.177.144-.321.321-.321h1.503a.321.321 0 00.321-.322v-1.704a.322.322 0 00-.321-.321z"}),s.default.createElement("path",{fill:"#FC488D",d:"M9.576 11.523v2.151a7.466 7.466 0 002.347 0v-2.15H9.576z"}),s.default.createElement("path",{fill:"#FE9DC2",d:"M10.75 0a6.357 6.357 0 100 12.715A6.357 6.357 0 0010.75 0zm0 10.368a4.01 4.01 0 110-8.021 4.01 4.01 0 010 8.021z"}),s.default.createElement("path",{fill:"#FC488D",d:"M10.157 2.391a4.01 4.01 0 100 7.934 4.011 4.011 0 010-7.934zM10.75 0c-.2 0-.398.01-.593.028a6.358 6.358 0 010 12.66A6.357 6.357 0 1010.75 0z"}))},GenderGirl:function(e){var a=e.size,l=void 0===a?16:a,i=t.__rest(e,["size"]);return s.default.createElement("svg",t.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 16 16"},i),s.default.createElement("path",{fill:"#595959",d:"M11.445 8.979a4.875 4.875 0 000-6.888 4.879 4.879 0 00-6.89 0 4.875 4.875 0 000 6.888 4.849 4.849 0 002.872 1.39V12H6.28a.573.573 0 100 1.147h1.147v1.614a.573.573 0 001.146 0v-1.614H9.72a.573.573 0 100-1.146H8.573v-1.63a4.849 4.849 0 002.872-1.391zm-6.08-.81a3.728 3.728 0 010-5.268 3.73 3.73 0 015.27 0 3.728 3.728 0 010 5.267 3.73 3.73 0 01-5.27 0z"}),s.default.createElement("path",{fill:"#595959",fillRule:"evenodd",d:"M5.366 8.168a3.73 3.73 0 005.268 0 3.728 3.728 0 000-5.267 3.73 3.73 0 00-5.268 0 3.728 3.728 0 000 5.267zm6.15-6.148a4.975 4.975 0 010 7.03 4.948 4.948 0 01-2.843 1.407V11.9H9.72a.673.673 0 110 1.346H8.673v1.514a.673.673 0 01-1.346 0v-1.514H6.28a.673.673 0 110-1.346h1.046v-1.443A4.948 4.948 0 014.484 9.05a4.975 4.975 0 010-7.029 4.979 4.979 0 017.032 0zm-4.09 8.35a4.849 4.849 0 01-2.871-1.391 4.875 4.875 0 010-6.888 4.879 4.879 0 016.89 0 4.875 4.875 0 010 6.888 4.849 4.849 0 01-2.872 1.39V12H9.72a.573.573 0 110 1.147H8.573v1.614a.573.573 0 01-1.146 0v-1.614H6.28a.573.573 0 110-1.146h1.147v-1.63zm-1.99-7.398a3.628 3.628 0 000 5.126 3.63 3.63 0 005.128 0 3.628 3.628 0 000-5.126 3.63 3.63 0 00-5.128 0z",clipRule:"evenodd"}))},Girl:function(e){var a=e.size,l=void 0===a?40:a,i=t.__rest(e,["size"]);return s.default.createElement("svg",t.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 24 24"},i),s.default.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#FC5D9A"}),s.default.createElement("path",{fill:"#fff",d:"M18.283 11.759c-.034 0-.068 0-.102.003-.346-1.394-1.099-2.652-2.14-3.57a6.132 6.132 0 00-3.726-1.544v-.532a2.062 2.062 0 001.617-.634 1.178 1.178 0 000-1.638 1.13 1.13 0 00-1.626 0c-.116.119-.218.25-.305.392a2.212 2.212 0 00-.308-.393 1.13 1.13 0 00-1.625 0 1.179 1.179 0 000 1.638 2.06 2.06 0 001.5.639c.041 0 .08 0 .117-.004v.533a6.143 6.143 0 00-3.726 1.543c-1.042.918-1.793 2.177-2.14 3.572a1.72 1.72 0 00-1.317.498 1.706 1.706 0 000 2.417c.323.32.76.5 1.215.5.027 0 .054 0 .081-.002a4.968 4.968 0 002.162 2.996c1.073.69 2.47 1.053 4.04 1.053 1.57 0 2.967-.364 4.04-1.053a4.987 4.987 0 002.162-2.998 1.72 1.72 0 001.295-.499 1.705 1.705 0 000-2.417c-.322-.32-.759-.5-1.214-.5zm-5.527-7.477a.5.5 0 01.724 0 .55.55 0 010 .763 1.446 1.446 0 01-1.165.446 1.834 1.834 0 01-.004-.077v-.09c.01-.392.168-.764.445-1.042zm-2.238.762a.55.55 0 010-.763.501.501 0 01.724 0c.276.278.435.65.444 1.042v.09c0 .027-.002.053-.004.078a1.45 1.45 0 01-1.164-.447z"}),s.default.createElement("path",{fill:"#FC5D9A",d:"M9.586 13.68a.819.819 0 000-1.161.828.828 0 00-1.167 0 .819.819 0 000 1.162c.323.32.845.32 1.167 0zM15.267 13.894a.821.821 0 10-.41-1.592.821.821 0 10.41 1.592zM13.704 14.242a.32.32 0 00-.282.045.314.314 0 00-.114.159c-.002.007-.248.733-1.274.733-1.027 0-1.272-.726-1.275-.733a.314.314 0 10-.598.19c.016.046.394 1.168 1.873 1.168s1.858-1.12 1.873-1.168a.313.313 0 00-.203-.394zM12.402 7.713a.315.315 0 00-.53.24.313.313 0 00.1.218c.253.248.466.533.632.845.316.61.298 1.118-.056 1.551-.403.493-.865.449-1.104.378-.33-.096-.598-.351-.625-.595-.03-.263.058-.585.318-.71.165-.077.337-.039.486.11a.315.315 0 00.538-.22.313.313 0 00-.092-.222c-.336-.337-.797-.426-1.204-.232-.473.226-.737.752-.671 1.343.055.494.495.957 1.072 1.128.151.045.308.067.465.068.491 0 .958-.228 1.305-.652.514-.63.558-1.402.127-2.234a4.11 4.11 0 00-.761-1.016z"}))},Heart:e.Heart,Home:e.Home,Kebab:function(e){var a=e.size,l=void 0===a?20:a,i=t.__rest(e,["size"]);return s.default.createElement("svg",t.__assign({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:"none",viewBox:"0 0 20 20"},i),s.default.createElement("path",{fill:"#000",fillOpacity:"0.54",fillRule:"evenodd",d:"M10 6.667c.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666zm0 1.667c-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667zm-1.667 6.667c0-.917.75-1.667 1.667-1.667.916 0 1.666.75 1.666 1.667 0 .916-.75 1.666-1.666 1.666-.917 0-1.667-.75-1.667-1.666z",clipRule:"evenodd"}))},Like:e.Like,MyCommunity:e.MyCommunity,PlusSpecial:e.PlusSpecial,Recalculate:e.Recalculate,Scale:e.Scale,Share:e.Share,Stethoscope:e.Stethoscope,FullScreen:e.FullScreen,GroupPeople:e.GroupPeople,GroupPeopleSolid:e.GroupPeopleSolid,Activities:e.Activities,Reply:e.Reply,Check:function(e){var a=e.size,i=void 0===a?20:a,n=e.color,r=void 0===n?"#595959":n,o=e.activeColor,c=void 0===o?l.theme.colors.primaryBase:o,d=e.isActive,u=void 0!==d&&d,f=t.__rest(e,["size","color","activeColor","isActive"]);return s.default.createElement("svg",t.__assign({width:i,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f),s.default.createElement("path",{d:"M19.9803 5.99067C19.7205 5.99841 19.4739 6.10699 19.2928 6.2934L8.99984 16.5864L5.70687 13.2934C5.61473 13.1974 5.50436 13.1208 5.38223 13.068C5.2601 13.0152 5.12867 12.9874 4.99563 12.986C4.86259 12.9846 4.73061 13.0099 4.60743 13.0601C4.48426 13.1104 4.37235 13.1848 4.27827 13.2789C4.1842 13.3729 4.10983 13.4849 4.05954 13.608C4.00926 13.7312 3.98405 13.8632 3.9854 13.9962C3.98676 14.1293 4.01464 14.2607 4.06743 14.3828C4.12021 14.505 4.19684 14.6153 4.29281 14.7075L8.29281 18.7075C8.48035 18.8949 8.73467 19.0002 8.99984 19.0002C9.26501 19.0002 9.51933 18.8949 9.70687 18.7075L20.7069 7.70747C20.8514 7.567 20.9501 7.38616 20.99 7.18864C21.03 6.99112 21.0093 6.78614 20.9308 6.60055C20.8523 6.41497 20.7195 6.25744 20.5499 6.14861C20.3803 6.03978 20.1817 5.98473 19.9803 5.99067Z",fill:u?c:r}))},UserCheck:function(e){var a=e.size,i=void 0===a?20:a,n=e.color,r=void 0===n?"#595959":n,o=e.activeColor,c=void 0===o?l.theme.colors.primaryBase:o,d=e.isActive,u=void 0!==d&&d,f=t.__rest(e,["size","color","activeColor","isActive"]);return s.default.createElement("svg",t.__assign({width:i,height:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f),s.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6051 6.37411C13.7666 6.52476 13.7755 6.77787 13.6249 6.93945L12.2303 8.43508C11.8189 8.87628 11.1238 8.88884 10.6968 8.46279L10.3831 8.14984C10.2267 7.99381 10.2264 7.74054 10.3825 7.58415C10.5385 7.42776 10.7917 7.42746 10.9481 7.58349L11.2618 7.89644C11.3686 8.00296 11.5424 7.99982 11.6452 7.88952L13.0397 6.39388C13.1904 6.23231 13.4435 6.22345 13.6051 6.37411Z",fill:u?c:r}),s.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.81379 3.06667C5.68447 3.06667 4.79403 3.94584 4.79403 5C4.79403 6.05417 5.68447 6.93334 6.81379 6.93334C7.9431 6.93334 8.83354 6.05417 8.83354 5C8.83354 3.94584 7.9431 3.06667 6.81379 3.06667ZM3.99403 5C3.99403 3.47684 5.27031 2.26667 6.81379 2.26667C8.35726 2.26667 9.63354 3.47684 9.63354 5C9.63354 6.52317 8.35726 7.73334 6.81379 7.73334C5.27031 7.73334 3.99403 6.52317 3.99403 5ZM8.40096 9.71521C7.34947 9.54185 6.27808 9.54185 5.22659 9.71521L5.10346 9.73551C3.93891 9.9275 3.06563 10.9706 3.06563 12.2142C3.06563 12.6237 3.38372 12.9333 3.74896 12.9333H9.87859C10.2438 12.9333 10.5619 12.6237 10.5619 12.2142C10.5619 10.9706 9.68864 9.9275 8.52409 9.73551L8.40096 9.71521ZM5.09645 8.92586C6.23411 8.7383 7.39343 8.7383 8.5311 8.92586L8.65423 8.94616C10.2236 9.20489 11.3619 10.5979 11.3619 12.2142C11.3619 13.0408 10.71 13.7333 9.87859 13.7333H3.74896C2.91758 13.7333 2.26562 13.0408 2.26562 12.2142C2.26562 10.5979 3.40399 9.20489 4.97332 8.94616L5.09645 8.92586Z",fill:u?c:r}))}},f="hhg-modals",m=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},h=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))};exports.Icon=u,exports.Modal=function(e){var t=e.type,l=void 0===t?"lead":t,i=e.closeIcon,n=e.isOpen,d=void 0===n||n,u=e.onClose,v=e.children,p=e.className,C=void 0===p?"":p,g=e.animationType,w=void 0===g?"slideTop":g,E=e.isStaticBackdrop,z=void 0!==E&&E;e.style;var y=a.useState(!1),_=y[0],M=y[1],b=a.useRef(null),x=r.useScrollbarSize().width;if(!b.current&&_&&(b.current=document.createElement("div")),a.useEffect((function(){return M(!0),function(){M(!1),m(),h()}}),[]),a.useEffect((function(){if(_){var e=((t=document.getElementById(f))||((t=document.createElement("div")).setAttribute("id",f),document.body.append(t)),t);return e.appendChild(b.current),function(){e.removeChild(b.current)}}var t}),[_]),a.useEffect((function(){d?document.body.classList.add("hhc-modal-show"):m()}),[d]),a.useEffect((function(){d?(document.body.style.overflow="hidden",document.body.style.paddingRight=x+"px",document.body.classList.add("hhc-disabled-scroll")):h()}),[d,x]),!_)return null;var S=["hhg-modal__wrapper",C,w].filter((function(e){return e})).join(" ");return o.createPortal(s.default.createElement(c.StyledModalWrapper,{className:S,"data-open":d,"data-type":l},!z&&s.default.createElement(c.StyledModalMask,{"data-open":d,onClick:u,"data-type":l}),!z&&"video"===l&&!!i&&s.default.createElement("div",{className:"hhg-modal__close",onClick:u},i),s.default.createElement(c.StyledModal,{className:"hhg-modal","data-open":d},s.default.createElement("div",{className:"video"===l?"hhg-modal__video":"hhg-modal__content"},!!i&&"video"!==l&&s.default.createElement("div",{className:"hhg-modal__close",onClick:u},i),v))),b.current)},exports.NewBabyProfileRadio=function(t){var a=t.isActive,r=t.onChange,o=t.value,c=void 0===o?"":o,d=t.onInputChange,u=i.useTranslations().t;return s.default.createElement(e.StyledNewBabyProfileRadio,{onClick:function(){return r("new")}},s.default.createElement("div",{className:"title"},s.default.createElement(e.Text,{size:"p2",color:l.theme.colors.gray800},u("chooseBaby.new")),s.default.createElement("div",{className:a?"radio active":"radio"})),s.default.createElement(n.Input,{name:"name",value:c,size:"md",placeholder:u("chooseBaby.placeholder"),type:"text",onChange:d}))},exports.RadioImageGroup=function(t){var l=t.value,i=t.options,n=t.className,r=t.direction,o=void 0===r?"horizontal":r,c=t.onChange,d=t.isDisabled,u=a.useState(l),f=u[0],m=u[1];return s.default.createElement(e.StyledRadioImageGroup,{className:n,"data-direction":o},i.map((function(t,a){return s.default.createElement(e.StyledRadioImageItem,{"data-selected":(l||f)===t.value,"data-disabled":d,key:a,onClick:function(){var e;e=t.value,d||(m(e),c&&c(e))}},s.default.createElement("div",null,t.content,t.label&&s.default.createElement(e.Text,{type:"bold",color:(l||f)===t.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},t.label)))})))};
|