@hhgtech/hhg-components 1.21.13 → 1.21.15
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/components/molecules/embeddedHeathToolCards/dueDate.d.ts +34 -5
- package/build/components/molecules/embeddedHeathToolCards/ovulation.d.ts +14 -2
- package/build/components/molecules/embeddedHeathToolCards/pwg.d.ts +2 -1
- package/build/components/molecules/toolBannerCard/index.d.ts +1 -2
- package/build/components/organisms/heroBannerHealthTool/healthToolBanner.d.ts +13 -4
- package/build/components.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{index-91554cbe.js → index-08833fb4.js} +1 -1
- package/build/esm/index-3b378814.js +1 -0
- package/build/esm/index-c0b62dbe.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/types-0edd9c60.js +1 -0
- package/build/index-0bafdcb2.js +1 -0
- package/build/index-96d64b69.js +1 -0
- package/build/{index-3b0c9962.js → index-d6932941.js} +1 -1
- package/build/index.js +1 -1
- package/build/mantine.js +1 -1
- package/build/navigation.js +1 -1
- package/build/together/interfaces/types.d.ts +4 -0
- package/build/together.js +1 -1
- package/build/{types-63b1b2a9.js → types-c0fecd36.js} +1 -1
- package/package.json +1 -1
- package/build/esm/index-784db9aa.js +0 -1
- package/build/esm/index-a6a709b8.js +0 -1
- package/build/esm/types-56ab0960.js +0 -1
- package/build/index-a0a925d6.js +0 -1
- package/build/index-d8762878.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as n,e,c as t,d as i}from"./tslib.es6-dcf36680.js";import o,{useState as a,useEffect as r,createContext as l,useContext as d,useMemo as s}from"react";import c,{keyframes as p}from"styled-components";import{M as u,t as m}from"./screenSizeContext-d0c9aa9b.js";import{E as g,T as v}from"./index.styled-d5fee85d.js";import{B as h}from"./index-fc27293d.js";import{formatDistanceToNow as f,format as b}from"date-fns";import x from"date-fns/locale/en-US";import w from"date-fns/locale/hi";import A from"date-fns/locale/id";import y from"date-fns/locale/ms";import E from"date-fns/locale/th";import k from"date-fns/locale/vi";import C from"date-fns/locale/zh-TW";import{u as _}from"./useTranslations-3e47eecc.js";import{d as I}from"./index-58ae0705.js";import{g as L}from"./cookieHelper-0e8521c3.js";import B from"slugify";import D from"string-format";import{t as T}from"./theme-a50a1aa5.js";import{useId as N}from"react-id-generator";import{H as M}from"./index-38730a4c.js";var P,O,S,Q,R,U,z,G,H={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},F=function(e){var t=e.type,i=void 0===t?"square":t,l=e.size,d=e.avatarImg,s=e.avatarUrl,c=e.firstLetter,p=e.backgroundColor,u=e.onClick,m=e.style,v=e.className,h=e.isAmp,f=void 0!==h&&h,b=e.width,x=e.height,w=l?H[l]:void 0,A=a(!1),y=A[0],E=A[1];r((function(){if(s){var n=document.createElement("img");n.setAttribute("src",s),n.addEventListener("error",(function(){E(!0)}))}}),[s,E]);var k=(!s&&!d||y)&&c;return o.createElement(g,{style:n(n({},m),{"--size":f?void 0:w+"px","--width-prop":b?b+"px":void 0,"--height-prop":x?x+"px":void 0,"--background-color":p}),"data-has-max":!(!b||!x),"data-avatar-type":i,onClick:u,className:v,avatarUrl:s,"data-is-amp":f,"data-custom-size":!!l},d,s&&!y&&o.createElement("img",{src:s}),k&&c)},j=c.div(P||(P=e(["\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(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.gray100}),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.blue200})),K=c.div(O||(O=e(["\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(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.blue200})),Y=c.ul(S||(S=e(["\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(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200})),W=c.li(Q||(Q=e(["\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(n){return n.theme.colors.gray100})),Z=c.div(R||(R=e(["\n max-width: 16px;\n margin-right: 8px;\n"],["\n max-width: 16px;\n margin-right: 8px;\n"]))),V=c.div(U||(U=e(["\n position: absolute;\n top: 12px;\n left: 16px;\n pointer-events: none;\n"],["\n position: absolute;\n top: 12px;\n left: 16px;\n pointer-events: none;\n"]))),X=function(e){var t=e.className,i=e.value,a=e.options,r=e.onChange,l=void 0===r?function(){}:r,d=e.id,s=e.placeholderIcon,c=e.placeholder,p=e.style,u=e.size,m=void 0===u?"lg":u,g=e.groupedWithLabel,v=e.disabled,h=e.dropdownLabelTrackingAttributes,f=void 0===h?{}:h,b=e.isNativeSelect,x=void 0!==b&&b,w=o.useState(!1),A=w[0],y=w[1],E=function(){return!v&&y(!A)};return x?o.createElement(j,{as:"select","data-is-native":"true",value:(null==i?void 0:i.value)||void 0,disabled:v,onChange:function(n){if("string"==typeof n.target.value){var e=a.find((function(e){return e.value===n.target.value}));e&&l(e)}}},c&&o.createElement("option",{value:c,disabled:!0,selected:!0},c),a.map((function(n){return o.createElement("option",{key:"".concat(d,"-").concat(n.value),value:n.value,disabled:!!n.disabled&&n.disabled},n.label)}))):o.createElement(j,{className:t,"data-dropdown-open":A||void 0,"data-size":m,id:d,"data-has-icons":!!s,style:p,onBlur:function(){return y(!1)},tabIndex:0,"data-disabled":v},!!g&&o.createElement(V,null,g),o.createElement(K,n({onClick:E,className:g&&"with-label"},f),s," ",o.createElement("span",null,i&&i.value?i.label:c)),A&&o.createElement(Y,{onClick:E,"data-has-icons":!!s},a.map((function(n){return o.createElement(W,{key:"".concat(d,"-").concat(n.value),"data-selected":i&&i.value===n.value||void 0,onClick:function(){return!n.disabled&&!v&&(null==l?void 0:l(n))},"data-disabled":!!n.disabled&&n.disabled},n.icon&&o.createElement(Z,null,n.icon),n.label)}))))},J=c.div(z||(z=e(["\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(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}),u.mbDown,u.mbDown,u.mbUp),q=c.div(G||(G=e(["\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"]))),$=function(n){var e=n.type,t=void 0===e?"lead":e,i=n.closeIcon,a=n.isOpen,r=void 0===a||a,l=n.onClose,d=n.children,s=n.className,c=void 0===s?"":s,p=n.enableAnimation,u=void 0===p||p;return o.createElement(o.Fragment,null,o.createElement(J,{"data-open":r,"data-type":t,"data-animation":u},o.createElement("div",{className:"".concat(c||""," popup-content")},!!i&&o.createElement("div",{className:"close-button",onClick:l},i),d)),o.createElement(q,{"data-open":r,onClick:l}))},nn="/images/avatar.jpg",en="/images/default-image.jpg",tn={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR"},on={"id-ID":{"kalkulator-bmi":tn.BMI,"kebutuhan-kalori":tn.BMR,"kalkulator-hari-perkiraan-lahir":tn.DUE_DATE,"kalkulator-masa-subur-2":tn.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":tn.PWG,"kalkulator-detak-jantung-saat-olahraga":tn.THR},"ms-MY":{"kalkulator-bmi":tn.BMI,"kalkulator-bmr":tn.BMR,"kalkulator-tarikh-bersalin":tn.DUE_DATE,"kalkulator-kesuburan":tn.OVULATION,"kalkulator-tambah-berat-badan-hamil":tn.PWG,"target-heart-rate-calculator":tn.THR},"vi-VN":{"cach-tinh-chi-so-bmi":tn.BMI,"tinh-chi-so-bmr":tn.BMR,"cong-cu-tinh-ngay-du-sinh":tn.DUE_DATE,"tinh-ngay-rung-trung":tn.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":tn.PWG,"cong-cu-do-nhip-tim":tn.THR},"zh-TW":{"bmi-calculator":tn.BMI,"bmr-calculator":tn.BMR,"due-date-calculator":tn.DUE_DATE,"ovulation-calculator":tn.OVULATION,"pregnancy-weight-gain-calculator":tn.PWG,"target-heart-rate-calculator":tn.THR},"en-PH":{"bmi-calculator":tn.BMI,"bmr-calculator":tn.BMR,"due-date-calculator":tn.DUE_DATE,"ovulation-calculator":tn.OVULATION,"pregnancy-weight-gain-calculator":tn.PWG,"target-heart-rate-calculator":tn.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":tn.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":tn.BMR,"เครื่องมือคำนวณกำหนดคลอด":tn.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":tn.OVULATION,"เครื่องคำนวณน้ำหนักตัว":tn.PWG,"เครื่องวัดอัตราการเต้น":tn.THR},"hi-IN":{"bmi-calculator-en":tn.BMI,"bmi-calculator":tn.BMI,"bmr-calculator":tn.BMR,"delivery-date-calculator":tn.DUE_DATE,"ovulation-calculator":tn.OVULATION,"pregnancy-weight-gain-calculator":tn.PWG,"target-heart-rate-calculator":tn.THR},"km-KH":{"គណនា-bmi":tn.BMI,"គណនា-bmr":tn.BMR,"គណនាថ្ងៃសម្រាលកូន":tn.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":tn.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":tn.PWG,"គណនារកចង្វាក់បេះដូងល្អ":tn.THR},"my-MM":{"bmi-calculator":tn.BMI,"bmr-calculator":tn.BMR,"due-date-calendar":tn.DUE_DATE,"ovulation-calculator":tn.OVULATION,"pregnaancy-weight-calculator":tn.PWG,"target-heartrate":tn.THR,"pregnancy-weight-calculator":tn.PWG,"target-heart-rate":tn.THR}},an="hhg_user_token",rn="together_admin_token",ln={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"}},dn=20,sn={"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"}},cn=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DEFAULT_AVATAR_IMG:nn,DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:en,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:tn,LOCALE_HEALTH_TOOLS:on,BEARER_TOKEN_COOKIE:an,TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:rn,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:ln,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:sn}),pn=function(n){return n?{displayName:n.display_name||null,avatar:n.avatar||null,thumbnailAvatar:n.avatar_thumbnail||null,profileUrl:n.profile_url||null,description:n.description||null,metaTag:n.meta_tag||""}:{}},un=function(n){return n?{id:n.ID||null,name:n.name||null,specialty:n.specialty||null,avatar:n.avatar||null,permalink:n.permalink||null,thumbnailAvatar:n.avatar_thumbnail||null}:{}},mn=function(e){var t,i,o,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?vn(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:pn(e.author),reviewer:e.reviewed_by&&pn(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?n(n({},null==e?void 0:e.reviewed),{author:gn(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.author),editor:gn(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.editor),expert:gn(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.expert),fact_check:gn(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:fn(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(fn),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:un(e.expert),metaTag:e.meta_tag||null}:{}},gn=function(e){return void 0!==e&&e?n(n({},e),{profile_url:(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):e.profile_url}):null},vn=function(n){return n?{title:n.title,logo:n.logo,link:n.link}:{}},hn=function(n){return{postTitle:n.post_title,permalink:n.permalink}},fn=function(n){var e,t;return n?{termId:n.term_id||null,sponsor:n.sponsor?vn(n.sponsor):null,isSponsored:n.is_sponsored||null,categoryName:n.cat_name||null,name:n.name||null,iconUrl:n.icon||"",slugName:n.category_nicename||null,description:n.description||null,featureImage:n.image||null,displayName:n.name||null,parent:n.parent||null,permalink:n.permalink||null,slug:n.slug||null,childCates:(null===(e=n.child_cates)||void 0===e?void 0:e.map((function(n){return fn(n)})))||[],colorFeatureImage:n.color_feature_image||null,imageColor:n.image_color||null,textColor:n.text_color||null,catParent:(null===(t=n.cat_parent)||void 0===t?void 0:t.name)?{name:n.cat_parent.name,permalink:n.cat_parent.permalink}:{},metaTag:n.meta_tag||"",reviewedBy:n.reviewed_by?hn(n.reviewed_by):null,reviewedDate:n.reviewed_date||"",faqs:n.faqs?n.faqs.map((function(n){return bn(n)})):null}:{}},bn=function(n){return{title:n.title,content:n.content}},xn=function(n){return n?{icon:n.icon,link:n.link.startsWith("http")?n.link:"/health-tools"+n.link,subtitle:n.subtitle,title:n.title}:{}},wn=function(n){return n?{topicCount:n.topics_count||0,postCount:n.posts_count||0,memberCount:n.members_count||0,thumbnail:n.thumbnail||"",coverImage:n.cover_image||"",mobileCoverImage:n.mobile_cover_image||"",name:n.name||"",description:n.description||"",slug:n.slug||"",id:n.id||0,joined:Boolean(n.joined),isActive:null===n.is_active||void 0===n.is_active||Boolean(n.is_active),mappedCategoryId:n.mapped_category_id||0,discoverCategory:n.discover_category?{categoryId:n.discover_category.category_id||0,name:n.discover_category.name||""}:null,isHidden:Boolean(n.is_hidden)}:{}},An=function(n){var e,t,i,o;return n?{id:n.id||0,name:n.name||"",image:n.thumbnail||"",slug:n.slug||"",url:"/"+(null===(e=n.community)||void 0===e?void 0:e.slug)+"/"+(null==n?void 0:n.slug)||"",description:n.description||"",joined:n.joined||!1,postCount:n.count_posts||0,memberCount:n.count_members||0,communityId:String(null===(t=n.community)||void 0===t?void 0:t.id),communitySlug:null===(i=n.community)||void 0===i?void 0:i.slug,communityName:null===(o=n.community)||void 0===o?void 0:o.name,order:n.order||0,isActive:null===n.is_active||void 0===n.is_active||Boolean(n.is_active),mappedCategoryId:n.mapped_category_id||0,discoverCategory:n.discover_category?{categoryId:n.discover_category.category_id||0,name:n.discover_category.name||""}:null,isHidden:Boolean(n.is_hidden)}:{}},yn=function(n){var e,t,i,o,a,r,l,d,s,c,p,u,m,g,v,h,f,b,x,w,A;return n?{id:n.id,topics:(null===(e=n.topics)||void 0===e?void 0:e.map((function(e){var t,i,o,a;return{id:e.id||0,name:e.name||"",slug:e.slug||"",url:"/"+(null===(t=n.community)||void 0===t?void 0:t.slug)+"/"+e.slug,communityId:String(null===(i=n.community)||void 0===i?void 0:i.id),communitySlug:(null===(o=n.community)||void 0===o?void 0:o.slug)||"",communityName:(null===(a=n.community)||void 0===a?void 0:a.name)||"",isHidden:Boolean(e.is_hidden),isActive:!0}})))||[],community:{id:(null===(t=n.community)||void 0===t?void 0:t.id)||0,name:(null===(i=n.community)||void 0===i?void 0:i.name)||"",slug:(null===(o=n.community)||void 0===o?void 0:o.slug)||"",isActive:!0,isHidden:Boolean(null===(a=n.community)||void 0===a?void 0:a.is_hidden)},slug:n.slug||"",author:{id:(null===(r=n.user)||void 0===r?void 0:r.id)||0,username:(null===(l=n.user)||void 0===l?void 0:l.user_name)||"",email:(null===(d=n.user)||void 0===d?void 0:d.email)||"",name:(null===(s=n.user)||void 0===s?void 0:s.name)||"",avatar:(null===(c=n.user)||void 0===c?void 0:c.avatar)||"",role:(null===(p=n.user)||void 0===p?void 0:p.role)?null===(m=null===(u=n.user)||void 0===u?void 0:u.role)||void 0===m?void 0:m.toLowerCase():"",type:(null===(g=n.user)||void 0===g?void 0:g.type)||"",partnerId:(null===(v=n.user)||void 0===v?void 0:v.partner_id)?String(null===(h=n.user)||void 0===h?void 0:h.partner_id):"",title:(null===(f=n.user)||void 0===f?void 0:f.title)||"",doctorId:(null===(b=n.user)||void 0===b?void 0:b.doctor_id)?String(null===(x=n.user)||void 0===x?void 0:x.doctor_id):"",hospitalId:(null===(w=n.user)||void 0===w?void 0:w.hospital_id)?String(null===(A=n.user)||void 0===A?void 0:A.hospital_id):""},previewUrl:{title:n.preview_title||"",url:n.preview_link||"",image:n.preview_image||"",description:n.preview_description||""},createdAt:n.created_at||"",scheduleDateTime:n.schedule_datetime||"",photos:n.images||[],description:n.description||"",commentsCount:n.comments_count||0,likesCount:n.likes_count||0,title:n.name||"",isPin:!!n.is_pin,pinDate:n.pin_date||"",liked:n.liked||!1,bookmarked:Boolean(n.bookmarked)||!1,mentions:n.mentions||[],commented:Boolean(n.commented)||!1,introUrl:n.intro_url||"",bannerImage:n.banner_image||""}:{}},En=function(n){return n?{disclaimer:n.disclaimer,featuredImage:n.featured_image,info:n.info||[],reviewedBy:n.reviewed_by?{id:n.reviewed_by.ID,permalink:n.reviewed_by.permalink,name:n.reviewed_by.name,postTitle:n.reviewed_by.post_title}:null,reviewedDate:n.reviewed_date}:{}},kn=function(n){var e,t,i,o,a,r,l,d,s,c,p,u,m,g,v,h,f,b,x,w,A,y,E,k,C,_,I,L,B,D,T,N;return n?{content:n.content,countLikes:n.likes_count,countReplies:n.replies_count,createdAt:n.created_at,createdTime:n.created_time,id:String(n.id),images:n.image||[],link:n.link||null,replies:n.replies&&n.replies.length>0?n.replies.map(kn):[],author:{id:(null===(e=n.user)||void 0===e?void 0:e.id)||0,username:(null===(t=n.user)||void 0===t?void 0:t.user_name)||"",name:(null===(i=n.user)||void 0===i?void 0:i.name)||"",role:(null===(o=n.user)||void 0===o?void 0:o.role)?null===(r=null===(a=n.user)||void 0===a?void 0:a.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(l=n.user)||void 0===l?void 0:l.avatar)||"",type:(null===(d=n.user)||void 0===d?void 0:d.type)||"",email:(null===(s=n.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(c=n.user)||void 0===c?void 0:c.partner_id)?String(null===(p=n.user)||void 0===p?void 0:p.partner_id):"",title:(null===(u=n.user)||void 0===u?void 0:u.title)||"",doctorId:(null===(m=n.user)||void 0===m?void 0:m.doctor_id)?String(null===(g=n.user)||void 0===g?void 0:g.doctor_id):"",hospitalId:(null===(v=n.user)||void 0===v?void 0:v.hospital_id)?String(null===(h=n.user)||void 0===h?void 0:h.hospital_id):""},liked:!!n.liked,mentionedUser:n.mentioned?{id:(null===(f=n.mentioned)||void 0===f?void 0:f.id)||0,username:(null===(b=n.mentioned)||void 0===b?void 0:b.user_name)||"",name:(null===(x=n.mentioned)||void 0===x?void 0:x.name)||"",role:(null===(w=n.mentioned)||void 0===w?void 0:w.role)?null===(y=null===(A=n.mentioned)||void 0===A?void 0:A.role)||void 0===y?void 0:y.toLowerCase():"",avatar:(null===(E=n.mentioned)||void 0===E?void 0:E.avatar)||"",type:(null===(k=n.mentioned)||void 0===k?void 0:k.type)||"",email:(null===(C=n.mentioned)||void 0===C?void 0:C.email)||"",partnerId:(null===(_=n.mentioned)||void 0===_?void 0:_.partner_id)?String(null===(I=n.mentioned)||void 0===I?void 0:I.partner_id):"",doctorId:(null===(L=n.mentioned)||void 0===L?void 0:L.doctor_id)?String(null===(B=n.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=n.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(T=n.mentioned)||void 0===T?void 0:T.hospital_id):"",title:(null===(N=n.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:n.mentions||[]}:{}},Cn=function(n){return void 0!==n&&n?(null==n?void 0:n.turn_off_profile)?"":(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):(null==n?void 0:n.profile_url)||(null==n?void 0:n.permalink)||"#":""},_n=Object.freeze({__proto__:null,formatAuthor:pn,formatArticleExpert:un,formatArticle:mn,formatUserProfile:gn,formatBMIResult:function(n){var e,t,i,o,a,r,l,d,s;return n&&n.status?{status:null==n?void 0:n.status,comparison:null!==(e=null==n?void 0:n.comparison)&&void 0!==e?e:"",assessmentData:[{tab:"tools.condition",content:null!==(t=null==n?void 0:n.condition)&&void 0!==t?t:""},{tab:"tools.risks",content:null!==(i=null==n?void 0:n.risk)&&void 0!==i?i:""},{tab:"tools.suggestion",content:null!==(o=null==n?void 0:n.suggestion)&&void 0!==o?o:""}],chartData:(null===(a=null==n?void 0:n.chart_data)||void 0===a?void 0:a.length)>0?null==n?void 0:n.chart_data:[],disclaimer:null!==(r=null==n?void 0:n.disclaimer)&&void 0!==r?r:"",illustrator:null!==(l=null==n?void 0:n.illustrator)&&void 0!==l?l:"",faqs:null!==(d=null==n?void 0:n.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==n?void 0:n.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:vn,formatReviewedCategory:hn,formatCategory:fn,formatCategoryApi:function(n){return n?{categoryInfo:fn(n.data.category)||null,explainersPosts:(n.data.explainers_posts||[]).map(mn),subCategories:(n.data.sub_categories||[]).map(fn)}:{}},formatFaqsCategory:bn,formatHealthTool:xn,formatHealthToolTypeCategory:function(n){var e,t;return n?{termId:(null==n?void 0:n.term_id)||0,name:(null==n?void 0:n.name)||"",healthTools:null!==(t=null===(e=null==n?void 0:n.health_tools)||void 0===e?void 0:e.map((function(n){return xn(n)})))&&void 0!==t?t:[]}:{}},formatCommunity:wn,formatTopic:An,formatPost:yn,formatPostPagination:function(n){return n?{currentPage:n.current||0,lastPage:n.last||0,total:n.total_items||0}:{}},formatNotification:function(n){var e,t,i;return n?{time:n.created_at,content:n.content,postId:String(n.post_id),fromUser:{name:null===(e=n.from_user)||void 0===e?void 0:e.name,id:null===(t=n.from_user)||void 0===t?void 0:t.id,avatar:null===(i=n.from_user)||void 0===i?void 0:i.avatar},toUserId:String(n.to_user_id),postSlug:n.post_slug||"",communitySlug:n.community_slug||""}:{}},formatSpotlightsList:function(n){return n?n.map((function(n){return{id:n.ID,name:n.name,permalink:n.permalink,image:(null==n?void 0:n.small_banner)||(null==n?void 0:n.image),imageMedium:(null==n?void 0:n.image_medium)||null,imageThumbnail:(null==n?void 0:n.image_thumbnail)||null,startDate:null==n?void 0:n.start_date,endDate:null==n?void 0:n.end_date}})):[]},formatOvulationInfo:En,formatSuggestedArticle:function(n){return n?{postId:n.post_id||null,categoryId:n.category_id||null,postUrl:n.post_url||null,postReviewed:n.post_reviewed||null,postPageviews:n.post_pageviews||null,postRank:n.post_rank||null,isPin:n.is_pin||null,frequency:n.frequency||null,topic:n.topic||null}:{}},formatTopicHealthTool:function(n){return n?{id:n.tool_id||null,topicFrequency:n.frequency||null,topicId:n.topic_id||null,topicName:n.topic_name||null,isPinned:!!n.is_pin||null,toolLink:n.tool_link||""}:{}},formatComment:kn,formatReportedPostToPostDetail:function(n){return n?{name:n.title,description:n.description,images:n.images,likes_count:n.count_likes,comments_count:n.count_comments,topics:[],slug:n.post_slug,id:n.post_id,is_pin:n.is_pin,pin_date:"",post_type:n.post_type,schedule_datetime:n.schedule_datetime,is_active:n.is_active,preview_title:n.preview_title||"",preview_image:n.preview_image||"",preview_description:n.preview_description||"",preview_link:n.preview_link||"",user:n.user,created_at:"",created_time:"",community:{id:n.community_id,name:n.community_name,slug:n.community_slug,description:""}}:{}},formatTopicSubot:function(n){return n?{chatBotId:n.subot_id,isPinned:n.is_pin,topicId:n.topic_id,topicFrequency:n.frequency}:{}},formatSiteWideBanner:function(n,e){return void 0!==n&&n?{content:(null==n?void 0:n.content)||"",icon:(null==n?void 0:n.icon)||"",type:e||"other"}:null},formatPWGContent:function(n){return n?{disclaimer:n.disclaimer,info:n.info||[],reviewedBy:n.reviewed_by?gn(n.reviewed_by):null,reviewedDate:n.reviewed_date,metaTag:n.meta_tag}:{}},formatUserProfileUrl:Cn,formatTHRContent:function(n){return n?{disclaimer:n.disclaimer,info:n.info||[],reviewedBy:n.reviewed_by?gn(n.reviewed_by):null,reviewedDate:n.reviewed_date,metaTag:n.meta_tag}:{}}}),In={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"},Ln={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},Bn="expert/{id}",Dn={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},Tn=function(n,e){if("string"!=typeof n)throw new TypeError("argument str must be a string");var t={},i=(e||{}).decode||On,o=0;for(;o<n.length;){var a=n.indexOf("=",o);if(-1===a)break;var r=n.indexOf(";",o);if(-1===r)r=n.length;else if(r<a){o=n.lastIndexOf(";",a-1)+1;continue}var l=n.slice(o,a).trim();if(void 0===t[l]){var d=n.slice(a+1,r).trim();34===d.charCodeAt(0)&&(d=d.slice(1,-1)),t[l]=Qn(d,i)}o=r+1}return t},Nn=function(n,e,t){var i=t||{},o=i.encode||Sn;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!Pn.test(n))throw new TypeError("argument name is invalid");var a=o(e);if(a&&!Pn.test(a))throw new TypeError("argument val is invalid");var r=n+"="+a;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(!Pn.test(i.domain))throw new TypeError("option domain is invalid");r+="; Domain="+i.domain}if(i.path){if(!Pn.test(i.path))throw new TypeError("option path is invalid");r+="; Path="+i.path}if(i.expires){var d=i.expires;if(!function(n){return"[object Date]"===Mn.call(n)||n 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},Mn=Object.prototype.toString,Pn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function On(n){return-1!==n.indexOf("%")?decodeURIComponent(n):n}function Sn(n){return encodeURIComponent(n)}function Qn(n,e){try{return e(n)}catch(e){return n}}var Rn={parse:Tn,serialize:Nn},Un={"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"},zn={"vi-VN":"marrybaby.vn"},Gn=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",Hn=function(n){var e=ce.env.isMarryBaby;return"https://".concat(e?zn[n]:Un[n])},Fn=function(n){var e=n.indexOf("?");return e>=0?n.slice(0,e+1)+n.slice(e+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):n},jn=function(n){var e=ce.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?e?"fe.":"discover.":e?"www.":"").concat(Un[n])},Kn=function(n,e,t){return"undefined"!=typeof window?window.location.href:"".concat(jn(n)).concat(e).concat(t)},Yn=function(e,t,i){var o="";i&&(o=Object.keys(i).map((function(n){return n+"="+i[n]})).join("&"));var a=((null==ce?void 0:ce.env)||{}).togetherBaseApiUrl,r=void 0===a?"":a,l=D(e,n(n({},(null==t?void 0:t._locale)?{website_url:Hn(String(t._locale))}:{}),t));return l+="".concat(l.includes("?")?"&":"?").concat(o),r+"api/v1/"+Fn(l)},Wn=function(e,t){var i=((null==ce?void 0:ce.env)||{}).careBaseApiUrl;return((void 0===i?"":i)||"https://service-health-care.hellohealthgroup.com/")+Fn(D(e,n({},t)))},Zn=function(n){return(null==n?void 0:n.data)&&(n.data instanceof FormData?n.body=n.data:"object"==typeof n.data&&(n.body=JSON.stringify(n.data)),delete n.data),n},Vn=function(e,o,a,r){return void 0===r&&(r=!1),t(void 0,void 0,void 0,(function(){var t,l,d,s,c;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,fetch(r?e:(p=e,encodeURI(p).replace(/%5B/g,"[").replace(/%5D/g,"]")),n({method:o},Zn(a))).then((function(n){return n.json()}))];case 1:return(t=i.sent())?[2,t]:[3,3];case 2:return l=i.sent(),console.log(l),console.log({url:e,status:null===(d=null==l?void 0:l.response)||void 0===d?void 0:d.status,statusText:null===(s=null==l?void 0:l.response)||void 0===s?void 0:s.statusText}),[2,(null===(c=null==l?void 0:l.response)||void 0===c?void 0:c.data)||null];case 3:return[2,null]}var p}))}))},Xn=function(e,o,a,r){return void 0===o&&(o="GET"),t(void 0,void 0,void 0,(function(){var t,l,d,s,c,p,u,m,g,v,h,f,b,x;return i(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,7,,8]),t="string"==typeof e?e:e.url,l="string"==typeof e?e:e.backupUrl,d=Rn.parse(r||""),s=d[an],!(c=s||L(an))||!c.length)return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,fetch(t,n(n({method:o},Zn(a)),{headers:{Authorization:"Bearer "+c}})).then((function(n){return n.json()}))];case 2:return p=i.sent(),(null===(g=null==p?void 0:p.messages)||void 0===g?void 0:g.find((function(n){return"Unauthenticated"===(null==n?void 0:n.toLowerCase())})))?[2,Vn(l||t,o,a)]:p?[2,p]:[3,4];case 3:return u=i.sent(),console.log({status:null===(v=null==u?void 0:u.response)||void 0===v?void 0:v.status,statusText:null===(h=null==u?void 0:u.response)||void 0===h?void 0:h.statusText}),[2,Vn(l||t,o,a)];case 4:return[3,6];case 5:return[2,Vn(l||t,o,a)];case 6:return[3,8];case 7:return m=i.sent(),console.log({status:null===(f=null==m?void 0:m.response)||void 0===f?void 0:f.status,statusText:null===(b=null==m?void 0:m.response)||void 0===b?void 0:b.statusText}),[2,(null===(x=null==m?void 0:m.response)||void 0===x?void 0:x.data)||null];case 8:return[2,null]}}))}))},Jn=function(e,o,a,r){return t(void 0,void 0,void 0,(function(){var t,l,d,s;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t=Rn.parse(r||""),l=t[an],(d=l||L(an))&&d.length?[4,fetch(e,n(n({method:o},Zn(a)),{headers:{Authorization:"Bearer "+d}})).then((function(n){return n.json()}))]:[3,2];case 1:if(s=i.sent())return[2,s];i.label=2;case 2:return[3,4];case 3:return i.sent(),[2,null];case 4:return[2,null]}}))}))},qn=function(e,o,a,r){return t(void 0,void 0,void 0,(function(){var t,l,d,s;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t=Rn.parse(r||""),l=t[rn],(d=l||L(rn))&&d.length?[4,fetch(e,n(n({method:o},Zn(a)),{headers:{Authorization:"Bearer "+d}})).then((function(n){return n.json()}))]:[3,2];case 1:if(s=i.sent())return[2,s];i.label=2;case 2:return[3,4];case 3:return i.sent(),[2,null];case 4:return[2,null]}}))}))};function $n(n,e,t){var i=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==n.indexOf("?")?"&":"?";return n.match(i)?n.replace(i,"$1"+e+"="+t+"$2"):n+o+e+"="+t}var ne,ee,te,ie,oe=function(n,e,t){void 0===t&&(t="/community");var i=n||("undefined"!=typeof window?window.location.href:"/"),o="undefined"!=typeof window?window.location.origin:"";return o||n&&(n.startsWith("http://")||n.startsWith("https://"))&&(o=n.split("/").slice(0,3).join("/")),function(n,e){var t=ce.env.publicSSO,i=n||window.location.href;return e&&Object.keys(e).map((function(n){$n(i,n,e[n])})),$n(i,"source","communities"),t?"".concat(t,"?returnUrl=").concat(encodeURIComponent(i.toString())):i}("".concat(o).concat(t,"/on-boarding?return=").concat(encodeURIComponent(i)),e)},ae=function(n,e,t,i){return t&&e?"".concat(t,"-").concat(e):"".concat(B(n||"",{lower:!0,locale:i||Gn}),"-").concat(e)},re=function(n){var e,t=n.name,i=n.id,o=n.locale;return"/care/".concat(null===(e=sn[o||"vi-VN"])||void 0===e?void 0:e.DOCTOR,"/").concat(ae(t,i))},le=function(n){var e,t=n.name,i=n.id,o=n.slug,a=n.locale;return"/care/".concat(null===(e=sn[a||"vi-VN"])||void 0===e?void 0:e.HOSPITAL,"/").concat(ae(t,i,o))},de={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},se=l({data:de,action:{pushNotifications:function(n){return n},sanitizeFunction:function(n){return n}}}),ce=de,pe=function(n){var e=n.locale,t=void 0===e?"vi-VN":e,i=n.children,l=n.userInfo,d=n.router,s=n.env,c=void 0===s?{isMarryBaby:!1,togetherBasePath:"/community"}:s,p=n.sanitizeFunction,u=void 0===p?function(n){return n}:p,m=n.pushNotifications,g=void 0===m?function(){return!1}:m,v=a(),h=v[0],f=v[1];return ce={userInfo:l,locale:t,togetherUserId:h,router:d,env:c},r((function(){(null==l?void 0:l.id)&&Jn(Yn(In.PROFILE,{_locale:t}),"GET").then((function(n){var e;f(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.id)}))}),[null==l?void 0:l.id]),o.createElement(se.Provider,{value:{data:{userInfo:l,locale:t,togetherUserId:h,router:d,env:c},action:{pushNotifications:g,sanitizeFunction:u}}},i)},ue=c.div(ne||(ne=e(["\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(n){return n.theme.colors.secondaryBase}),(function(n){return n.theme.mbColors.pink})),me=function(n){var e=n.className,t=n.isMarryBaby,i=n.style,l=n.avatar,s=n.username,c=n.isLazy,p=d(se).data.env.isMarryBaby,u="boolean"==typeof t?t:p,m=a(!1),g=m[0],v=m[1];return r((function(){var n=new Image;n.onerror=function(){v(!0)},n.src=l}),[]),o.createElement(ue,{"data-is-marrybaby":u,className:e,style:i},l&&!g?o.createElement("img",{src:c?void 0:l,"data-src":c?l:void 0,className:"avatar ".concat(c?"lazy":""),alt:"avatar",onError:function(){v(!0)}}):o.createElement("div",{className:"avatar avatar-default"},s&&(null==s?void 0:s.length)>0?s[0].toUpperCase():"A"))},ge="data:image/png;base64,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",ve="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",he="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",fe=c.div(ee||(ee=e(["\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"]))),be=p(te||(te=e(["\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"])));c.div(ie||(ie=e(["\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"])),be);var xe=function(n){var e=n.className,t=n.size,i=void 0===t?"md":t,a=_().t;return o.createElement(fe,{className:e},o.createElement(h,{size:i,color:"transparent",isLoading:!0},a("loading")))},we=c.div(ke||(ke=e(["\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(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}),u.tdUp,u.mbDown,(function(n){return n.theme.colors.blue50})),Ae=c.div(Ce||(Ce=e(["\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"]))),ye=c.div(_e||(_e=e(["\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"]))),Ee=c.div(Ie||(Ie=e(["\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"])));c.span(Le||(Le=e(["\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(n){return n.theme.colors.neutral300})),c.div(Be||(Be=e(["\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(n){return n.theme.colors.gray400})),c.div(De||(De=e(["\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 ke,Ce,_e,Ie,Le,Be,De,Te,Ne=c.ul(Te||(Te=e(["\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"]))),Me=function(n){var e,t,i,l,d=n.isOpen,s=void 0===d||d,c=n.onClose,p=n.enableAnimation,u=void 0===p||p,m=n.doctorId,g=n.locale,f=n.isMobile,b=_().t,x=a(null),w=x[0],A=x[1],y=a(!1),E=y[0],k=y[1];r((function(){if(s&&m&&String(null==w?void 0:w.id)!==String(m)){k(!0);try{A(null),Vn(Wn(Ln.GET_DOCTOR_INFO,{doctorId:m,website_url:Un[g]}),"get").then((function(n){A(null==n?void 0:n._data.doctor)}))}catch(n){console.error(n)}k(!1)}}),[s,m,null==w?void 0:w.id]);var C=(null==w?void 0:w.experiences)||[],I=((null==w?void 0:w.specialties)||[]).map((function(n){return(null==n?void 0:n.name)||n})).join(" • "),L=C.map((function(n){try{return JSON.parse(n.description)}catch(e){return n.description}})).filter((function(n){return n.content})),B=N(null===(e=null==w?void 0:w.experiences)||void 0===e?void 0:e.length);return o.createElement(o.Fragment,null,o.createElement(we,{"data-open":s,"data-animation":u,onClick:function(n){return n.stopPropagation()}},E||!w?o.createElement(xe,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:c},o.createElement("img",{src:ve,style:{width:20,height:20},alt:"close-icon"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(ye,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement("img",{src:(null==w?void 0:w.avatar)?null==w?void 0:w.avatar:ge,className:"profile-image",alt:"avatar"}),o.createElement("img",{className:"badge-avatar",src:he,alt:"badge"})))),o.createElement(Ee,null,o.createElement(v,{size:"s3",type:"semiBold",className:"full-name"},null==w?void 0:w.name),o.createElement("div",{className:"specialty"},I&&o.createElement(o.Fragment,null,o.createElement(v,{size:"p4",color:T.colors.gray800},I," • ")),o.createElement("a",{href:le({id:null===(t=null==w?void 0:w.organization)||void 0===t?void 0:t.id,name:null===(i=null==w?void 0:w.organization)||void 0===i?void 0:i.name,slug:null===(l=null==w?void 0:w.organization)||void 0===l?void 0:l.slug,locale:g}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(v,{size:"p4",className:"organisation",color:T.colors.gray800,style:{textDecoration:"underline"}},null==w?void 0:w.organization.name))))),!f&&o.createElement("div",{className:"btn-wrapper"},o.createElement("a",{href:re({name:w.name,id:w.id,locale:g})},o.createElement(h,{color:"primary",size:"md",className:"btn-booking"},b("careBooking.bookAnAppointment"))))),L&&o.createElement(Ee,null,o.createElement("div",{className:"experience"},o.createElement(v,{type:"bold",size:"s3",color:T.colors.gray800,style:{paddingBottom:16}},b("expert.content.description").toUpperCase()),o.createElement(Ne,null,L.map((function(n,e){return o.createElement("li",{key:B[e]},o.createElement(v,{size:"p2"},function(n){return(null==n?void 0:n.year)?"".concat(n.year," ").concat(null==n?void 0:n.content):(null==n?void 0:n.content)?n.content:"string"==typeof n?n:""}(n)))}))),f?o.createElement("div",{className:"btn-wrapper"},o.createElement("a",{href:re({name:w.name,id:w.id,locale:g})},o.createElement(h,{color:"primary",size:"md",className:"btn-booking"},b("careBooking.bookAnAppointment")))):o.createElement("a",{href:re({name:w.name,id:w.id,locale:g})},o.createElement(v,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},b("home.seeExpert"))))))),o.createElement(Ae,{"data-open":s,onClick:function(n){n.stopPropagation(),c()}}))},Pe=c.div(Re||(Re=e(["\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(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}),u.tdUp,u.mbDown,(function(n){return n.theme.colors.blue50})),Oe=c.div(Ue||(Ue=e(["\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"]))),Se=c.div(ze||(ze=e(["\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"]))),Qe=c.div(Ge||(Ge=e(["\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"])));c.span(He||(He=e(["\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(n){return n.theme.colors.neutral300})),c.div(Fe||(Fe=e(["\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(n){return n.theme.colors.gray400}));var Re,Ue,ze,Ge,He,Fe,je,Ke,Ye,We,Ze,Ve,Xe,Je,qe=c.div(je||(je=e(["\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"]))),$e={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:he},nt=function(e){var t=e.isOpen,i=void 0===t||t,l=e.onClose,d=e.enableAnimation,s=void 0===d||d,c=e.expertId,p=_().t,u=a(null),m=u[0],g=u[1],h=a(!1),f=h[0],b=h[1];return r((function(){if(i&&c&&String(null==m?void 0:m.user_id)!==String(c)){b(!0);try{g(null),Vn(function(e,t){var i=((null==ce?void 0:ce.env)||{}).discoverBaseApiUrl;return(void 0===i?"":i)+"wp-json/api/"+Fn(D(e,n({},t)))}(Bn,{id:c}),"get").then((function(n){g(null==n?void 0:n.data)}))}catch(n){console.error(n)}b(!1)}}),[i,c,null==m?void 0:m.user_id]),o.createElement(o.Fragment,null,o.createElement(Pe,{"data-open":i,"data-animation":s,onClick:function(n){return n.stopPropagation()}},f||!m?o.createElement(xe,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:l},o.createElement("img",{src:ve,style:{width:20,height:20},alt:"close-icon"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(Se,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement("img",{src:(null==m?void 0:m.avatar)?null==m?void 0:m.avatar:ge,className:"profile-image",alt:"avatar"}),o.createElement("img",{className:"badge-avatar",src:$e[null==m?void 0:m.role],alt:"badge"})))),o.createElement(Qe,null,o.createElement(v,{size:"s3",className:"full-name",type:"semiBold"},null==m?void 0:m.display_name),o.createElement("div",null,o.createElement(v,{size:"p4",color:T.colors.gray800},null==m?void 0:m.specialty," • "),o.createElement("a",{href:null==m?void 0:m.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(v,{size:"p4",className:"organisation",color:T.colors.gray800,style:{textDecoration:"underline"}},null==m?void 0:m.organisation)))))),o.createElement(Qe,null,o.createElement("div",{className:"experience"},o.createElement(v,{type:"bold",size:"p4",color:T.colors.gray800,style:{paddingBottom:16}},p("expert.content.description").toUpperCase()),o.createElement("div",{className:"list-items"},!!(null==m?void 0:m.experiences)&&m.experiences.filter((function(n){return!(!n||!n.title&&!n.organization)})).slice(0,3).map((function(n,e){return o.createElement(qe,{key:e},o.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"}),o.createElement("div",{className:"text-contain"},o.createElement(M,{tag:"h6",color:T.colors.gray800},null==n?void 0:n.title),o.createElement(v,{size:"p2",color:T.colors.gray500},null==n?void 0:n.organization)))}))),o.createElement("a",{href:null==m?void 0:m.profile_url},o.createElement(v,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},p("home.seeExpert"))))))),o.createElement(Oe,{"data-open":i,onClick:function(n){n.stopPropagation(),l()}}))},et=c.div(Ke||(Ke=e(["\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(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}),u.tdUp,u.mbDown,(function(n){return n.theme.colors.blue50})),tt=c.div(Ye||(Ye=e(["\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"]))),it=c.div(We||(We=e(["\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"]))),ot=c.div(Ze||(Ze=e(["\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"])));c.span(Ve||(Ve=e(["\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(n){return n.theme.colors.neutral300})),c.div(Xe||(Xe=e(["\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(n){return n.theme.colors.gray400})),c.div(Je||(Je=e(["\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 at=function(n){var e=n.isOpen,t=void 0===e||e,i=n.onClose,l=n.enableAnimation,d=void 0===l||l,c=n.hospitalId,p=n.locale,u=n.isMobile,m=_().t,g=a(null),f=g[0],b=g[1],x=a(!1),w=x[0],A=x[1];r((function(){if(t&&c&&String(null==f?void 0:f.id)!==String(c)){A(!0);try{b(null),Vn(Wn(Ln.GET_HOSPITAL_INFO,{hospital_branch_id:c,website_url:Un[p]}),"get").then((function(n){b(null==n?void 0:n._data.branch)}))}catch(n){console.error(n)}A(!1)}}),[t,c,null==f?void 0:f.id]);var y=(null==f?void 0:f.specialties)||[],E=s((function(){return y.map((function(n){return n.name}))}),[y]);return o.createElement(o.Fragment,null,o.createElement(et,{"data-open":t,"data-animation":d,onClick:function(n){return n.stopPropagation()}},w||!f?o.createElement(xe,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:i},o.createElement("img",{src:ve,style:{width:20,height:20},alt:"close-icon"})),o.createElement("div",{className:"main-info"},o.createElement("div",{className:"border-banner"}),o.createElement("div",{className:"avatar-title"},o.createElement(it,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement("img",{src:(null==f?void 0:f.logo)?null==f?void 0:f.logo:ge,className:"profile-image",alt:"avatar"}),o.createElement("img",{className:"badge-avatar",src:he,alt:"badge"})))),o.createElement(ot,null,o.createElement(v,{size:"s3",type:"semiBold",className:"full-name"},null==f?void 0:f.name),o.createElement("div",{className:"specialty"},y&&o.createElement(v,{size:"p4",color:T.colors.gray800},E.join(" • "),"•"),o.createElement("a",{href:le({id:f.id,name:f.name,slug:f.slug,locale:p}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(v,{size:"p4",className:"organisation",color:T.colors.gray800,style:{textDecoration:"underline"}},null==f?void 0:f.name))))),!u&&o.createElement("a",{href:le({id:f.id,name:f.name,slug:f.slug,locale:p})},o.createElement("div",{className:"btn-wrapper"},o.createElement(h,{color:"primary",size:"md",className:"btn-booking"},m("careBooking.bookAnAppointment"))))),o.createElement(ot,null,o.createElement("div",{className:"experience"},o.createElement(v,{type:"bold",size:"s3",color:T.colors.gray800,style:{paddingBottom:16}},m("hospital.content.description").toUpperCase()),o.createElement(v,{size:"p2",color:T.colors.gray500},f.about),u?o.createElement("a",{href:le({id:f.id,name:f.name,slug:f.slug,locale:p})},o.createElement("div",{className:"btn-wrapper"},o.createElement(h,{color:"primary",size:"md",className:"btn-booking"},m("careBooking.bookAnAppointment")))):o.createElement("a",{href:le({id:f.id,name:f.name,slug:f.slug,locale:p})},o.createElement(v,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},m("home.seeHospital"))))))),o.createElement(tt,{"data-open":t,onClick:function(n){n.stopPropagation(),i()}}))},rt={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}}နှစ်နီးပါး"}},lt={code:"my",formatDistance:function(n,e,t){var i,o=rt[n];return i="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),(null==t?void 0:t.addSuffix)?t.comparison&&t.comparison>0?i+"အတွင်း":"လွန်ခဲ့သော "+i:i},options:{weekStartsOn:0,firstWeekContainsDate:1}},dt=c.div(st||(st=e(["\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(n){return n.theme.colors.secondaryBase}),(function(n){return n.theme.colors.blue800}),(function(n){return n.theme.colors.blue800}),(function(n){return n.theme.colors.green400}),(function(n){return n.theme.colors.red400}),(function(n){return n.theme.colors.yellow800}),(function(n){return n.theme.colors.teal400}),(function(n){return n.theme.colors.teal400}),(function(n){return n.theme.colors.teal400}),(function(n){return n.theme.colors.gray500}),(function(n){return n.theme.colors.blue50}),u.mbDown,(function(n){return n.theme.mbColors.cobalt}));c.img(ct||(ct=e(["\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 st,ct,pt,ut=c.div(pt||(pt=e(["\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"]))),mt={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"},gt={"vi-VN":k,"id-ID":A,"ms-MY":y,"km-KH":x,"en-PH":x,"th-TH":E,"my-MM":lt,"zh-TW":C,"hi-IN":w},vt=function(n){var e=n.time,t=n.className,i=n.community,l=n.name,s=n.username,c=n.url,p=n.avatar,u=n.miniIcon,g=n.role,x=n.style,w=n.type,A=void 0===w?"post":w,y=n.expertId,E=n.isMarryBaby,k=n.title,C=n.doctorId,L=n.hospitalId,B=n.hasQuickBooking,D=n.handleMakeAppointment,T=d(se).data,N=T.locale,M=T.router,P=T.env,O=P.isMarryBaby,S=P.togetherBasePath,Q="boolean"==typeof E?E:O,R=l||s||"",U=g?function(n){var e=["admin","moderator","ambassador","expert","sponsor","local-admin","guide","influencer"];return e.find((function(e){return e===n}))||e.find((function(e){return n.includes(e)}))||e.find((function(e){return e.includes(n)}))}(g):"",z=_().t,G=e?isNaN(new Date(e).getTime())?null:new Date(e):null,H=G?f(G,{locale:gt[N]}):e,j=G?b(G,"dd/MM/yyyy HH:mm"):e,K=a(!1),Y=K[0],W=K[1],Z=(M||{}).asPath,V="https://".concat(I[N]).concat(Z),X=function(n){"expert"===g&&(y||C||L)?(n.stopPropagation(),W(!0)):c&&(window.location.href=c)};return r((function(){m(Y)}),[Y]),o.createElement(o.Fragment,null,"expert"===g&&y?o.createElement(nt,{isOpen:Y,onClose:function(){return W(!1)},expertId:y}):null,"expert"===g&&C?o.createElement(Me,{isOpen:Y,onClose:function(){return W(!1)},doctorId:C,locale:N}):null,"expert"===g&&L?o.createElement(at,{isOpen:Y,onClose:function(){return W(!1)},hospitalId:L,locale:N}):null,o.createElement(dt,{"data-is-marrybaby":Q,className:t,style:x,"data-is-booking":B},o.createElement("div",{style:{display:"flex",width:"100%"}},o.createElement("a",null,o.createElement(ut,{onClick:X},o.createElement(me,{className:"author-avatar-wrapper",username:R,avatar:p}),u?o.createElement(F,{className:"mini-icon",type:"rounded",avatarImg:o.createElement("img",{src:u,style:{width:"12px",height:"12px",objectFit:"cover"},alt:"badge"})}):null)),o.createElement("div",{className:"expert-wrapper"},o.createElement("div",{className:"author-info"},o.createElement("div",{className:"author-info-top"},o.createElement("div",{onClick:X,className:"author-info-text-wrapper"},o.createElement("div",{className:"author-name"},R),U&&mt[U]&&o.createElement("div",{className:"author-role","data-label-type":U},k||z(mt[U])),Q?o.createElement(v,{size:"p4",type:"regular",color:"#9495A0",title:j,className:"author-time"},"".concat("post"===A?"• ":"").concat(H)):null)),o.createElement("div",{className:"author-community"},o.createElement("div",{className:"text-container"},(null==i?void 0:i.name)&&o.createElement(o.Fragment,null,o.createElement("a",{href:(null==i?void 0:i.slug)&&i.isActive&&!i.isHidden?"".concat(S,"/").concat(null==i?void 0:i.slug):void 0,className:"author-community-name"},"".concat(null==i?void 0:i.name)),(Q?void 0:H)?" • ":""),o.createElement("span",{className:"time-text"},Q?void 0:H)))))),B&&o.createElement("div",{className:"btn-wrapper"},o.createElement(h,{color:"primary",size:"md",className:"btn-booking",onClick:function(n){null==D||D(C,L),n.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:V},z("careBooking.bookAnAppointment")))))};export{F as A,an as B,vt as C,X as D,jn as E,Un as F,ce as G,tn as H,Xn as I,xe as L,dn as M,$ as P,ln as R,se as T,me as U,nt as a,Me as b,cn as c,_n as d,at as e,de as f,pe as g,Cn as h,En as i,wn as j,yn as k,gt as l,oe as m,en as n,Vn as o,Yn as p,In as q,Kn as r,Dn as s,qn as t,Jn as u,An as v,nn as w,kn as x,Wn as y,Ln as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useState as t,useRef as n,useMemo as a,useEffect as l,Fragment as o,useCallback as r}from"react";import{S as i,d as c,T as s,e as m,f as d,g as u,h as p,i as g,j as h,k as v,l as f,m as E,n as y,o as x,p as w,q as b,r as k,s as C,t as N,u as L,v as z,w as M,x as _,y as B,z as F,A as D,B as S,D as A,C as j,P as I,L as T,a as H}from"./index.styled-d5fee85d.js";import{_ as P,a as W,b as V,c as O,d as G,e as U}from"./tslib.es6-dcf36680.js";import{i as Z,B as R,M as q,l as K}from"./screenSizeContext-d0c9aa9b.js";import{B as X}from"./index-fc27293d.js";import{t as J}from"./theme-a50a1aa5.js";import{H as Y}from"./index-38730a4c.js";import{l as Q,m as $,n as ee,o as te,p as ne,q as ae,r as le,s as oe,t as re,u as ie,v as ce,w as se,x as me,y as de,z as ue,A as pe,B as ge,E as he,G as ve,H as fe,I as Ee,J as ye,K as xe,O as we,Q as be,T as ke,V as Ce,W as Ne,X as Le,Y as ze,Z as Me,_ as _e,$ as Be,a0 as Fe,a1 as De,a2 as Se,a3 as Ae,a4 as je,a5 as Ie,a6 as Te,a7 as He,a8 as Pe,a9 as We,aa as Ve,ab as Oe,ac as Ge,ad as Ue,ae as Ze,af as Re,ag as qe,ah as Ke,ai as Xe,aj as Je,ak as Ye,al as Qe,am as $e,an as et,ao as tt,ap as nt,aq as at,ar as lt,as as ot,at as rt,au as it,av as ct,aw as st,ax as mt,ay as dt,az as ut,aA as pt,aB as gt,aC as ht,aD as vt,aE as ft,aF as Et,aG as yt,aH as xt,aI as wt,aJ as bt,aK as kt,aL as Ct,aM as Nt,aN as Lt,aO as zt,aP as Mt,aQ as _t,aR as Bt,aS as Ft,aT as Dt,aU as St,aV as At,aW as jt,aX as It,aY as Tt,aZ as Ht,a_ as Pt,a$ as Wt,b0 as Vt,b1 as Ot,b2 as Gt}from"./index-08833fb4.js";import{useId as Ut}from"react-id-generator";import{D as Zt,h as Rt,i as qt,H as Kt}from"./index-3b378814.js";import{throttle as Xt}from"lodash";import{useKeenSlider as Jt}from"keen-slider/react";import{CommonGAssets as Yt}from"./gAssets.js";import"react-range";import{isBefore as Qt,startOfMonth as $t,addMonths as en,format as tn,subMonths as nn,getDaysInMonth as an,isToday as ln,isSameDay as on,isWithinInterval as rn,isAfter as cn,isPast as sn}from"date-fns";import mn from"styled-components";import{d as dn,L as un,F as pn,a as gn}from"./index-58ae0705.js";import"./Locale-69030fff.js";import{Checkbox as hn}from"@mantine/core";import"./translationsContext-d658f58d.js";import"string-format";import"lodash/debounce";import{u as vn}from"./useTranslations-3e47eecc.js";import{u as fn}from"./useHealthToolCache-79dda45b.js";import{u as En}from"./useOutsideClick-6004483a.js";import yn from"date-fns/locale/en-US";import xn from"date-fns/locale/id";import wn from"date-fns/locale/vi";import bn from"date-fns/locale/zh-TW";import{g as kn}from"./getSocialList-2f760404.js";import{I as Cn}from"./index-a156951f.js";var Nn=function(t){var n=t.style,a=t.onClose,l=t.text,o=t.type,r=t.contentIcon,d=t.closeIcon,u=t.className,p=t.description;return e.createElement(i,{style:n,"data-alert-type":o,className:u},e.createElement(c,null,e.createElement("div",{className:"icon-title"},r,e.createElement(s,{type:"bold",size:"label1"},l)),e.createElement(s,{type:"regular",size:"p3"},p)),e.createElement(m,{onClick:a},d))},Ln=function(t){var n=t.amount,a=t.type,l=t.size,o=void 0===l?"medium":l,r=t.color,i=void 0===r?"primary":r,c=t.icon,s=t.className;return e.createElement(d,{"data-notification-type":a,"data-notification-size":o,"data-notification-color":i,"data-has-icon":!!c||void 0,notificationType:a,notificationSize:o,notificationColor:i,hasIcon:!!c,className:s},e.createElement("div",null,n&&e.createElement("span",null,n)," ",c&&e.createElement("div",null,c)))},zn=function(t){var n=t.style,a=t.children,l=t.className,o=t.size,r=void 0===o?"lg":o,i=t.type,c=void 0===i?"bold":i,s=t.upperCase,m=t.as,d=void 0===m?"h4":m,p=t.color;return e.createElement(u,{style:P({color:p},n),className:l,"data-size":r,"data-type":c,"data-uppercase":s,as:d},a)},Mn=function(a){var l=a.className,o=a.value,r=a.options,i=a.onUploadSelected,c=a.id,s=a.placeholderIcon,m=a.placeholder,d=a.style,u=t(!1),E=u[0],y=u[1],x=function(){return y(!E)},w=n(r.map((function(t){return"upload"===t.type&&e.createElement("input",{id:"uploader-dropdown-input-"+c+"-"+t.value,key:"uploader-dropdown-input-"+c+"-"+t.value,accept:t.fileAcceptedType,multiple:t.multiple,type:"file",style:{display:"none"},onChange:function(e){console.log("change"),i(e.target.files)}})}))),b=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.17 14.83"},e.createElement("defs",null,e.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},e.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"})),e.createElement("style",null,".prefix__cls-3{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"File"),e.createElement("g",{clipPath:"url(#prefix__clip-path)"},e.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),e.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),k=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"download"),e.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),C=e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"upload"),e.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"}));return e.createElement(p,{className:l,"data-dropdown-open":!!E,id:c,"data-has-icons":!0,style:d,onBlur:function(){return y(!1)},tabIndex:0},e.createElement(g,{onClick:x},s||b," ",e.createElement("span",null,o&&o.value?o.label:m)),E&&e.createElement(h,{onClick:x,"data-has-icons":!0},r.map((function(t){return e.createElement(v,{key:"".concat(c,"-").concat(t.value),"data-selected":o&&o.value===t.value||void 0,onClick:function(){return"upload"===t.type?function(e){var t;null===(t=document.querySelector(e))||void 0===t||t.click()}("#uploader-dropdown-input-"+c+"-"+t.value):void((e=t.url)&&window.open(e,"_blank"));var e}},e.createElement(f,null,t.icon||"download"===t.type?k:C),t.label)}))),e.createElement(e.Fragment,null,w.current))},_n=function(t){var n=t.className,a=t.columns,l=t.columnsDesktop,o=t.gridTemplateColumns,r=t.gridTemplateColumnsDesktop,i=t.gap,c=t.children,s=t.justifyChildren,m=t.style,d=t.alignItems;return e.createElement(E,{className:n,style:m,theme:{columns:a,columnsDesktop:l,gap:i,justifyChildren:s,gridTemplateColumns:o,gridTemplateColumnsDesktop:r,alignItems:d}},c)},Bn=function(n){var a=n.pagesAmount,r=n.activePage,i=n.handlePageChange,c=n.handleClick,s=n.href,m=n.queryPageName,d=void 0===m?"page":m,u=W([],Array(a),!0).map((function(e,t){return t+1})),p=t(r<=4?u.slice(0,5):r>=u.length-3?u.slice(u.length-5,u.length):u.slice(r-2,r+1)),g=p[0],h=p[1];return l((function(){r<=4?h(u.slice(0,5)):r>=u.length-3?h(u.slice(u.length-5,u.length)):h(u.slice(r-2,r+1))}),[r]),e.createElement(o,null,r>4&&e.createElement(o,null,e.createElement(w,{onClick:function(){return i(1)}},s?e.createElement("a",{href:s,onClick:c},1):1),e.createElement(w,null,"...")),g.map((function(t){return e.createElement(w,{key:"".concat("pagination","+").concat(t),"data-page-active":t===r||void 0,onClick:function(){return i(t)}},s?e.createElement("a",{href:Z(s,t,d),onClick:c},t):t)})),r<u.length-3&&e.createElement(o,null,e.createElement(w,null,"..."),e.createElement(w,{onClick:function(){return i(u.length)}},s?e.createElement("a",{href:Z(s,u.length,d),onClick:c},u.length):u.length)))},Fn=function(n){var o=n.className,r=n.pagesAmount,i=n.currentPage,c=n.onChange,s=n.onClick,m=n.style,d=n.href,u=n.queryPageName,p=void 0===u?"page":u,g=W([],Array(r),!0).map((function(e,t){return t+1})),h=t(i),v=h[0],f=h[1],E=a((function(){return d&&d.endsWith("&page=")?d.replace("&page=",""):d}),[d]),b=r-1,k=function(e){e<=r&&e>0&&(f(e),c(e))},C=function(e){s&&s(e)};return l((function(){f(i)}),[i]),e.createElement(y,{className:o,style:m},e.createElement(x,{className:"prev-page",onClick:function(){return k(v-1)},"data-last-page":1===v||void 0},E?e.createElement("a",{href:Z(E,v,p),onClick:C},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),g.length>8?e.createElement(Bn,{pagesAmount:r,activePage:v,handlePageChange:k,handleClick:C,href:E,queryPageName:p}):g.map((function(t){return e.createElement(w,{key:"".concat("pagination","+").concat(t),"data-page-active":t===v||void 0,onClick:function(){return k(t)}},E?e.createElement("a",{href:Z(E,t,p),onClick:C},t):t)})),e.createElement(x,{className:"next-page",onClick:function(){return k(v+1)},"data-last-page":v===b+1||void 0},E?e.createElement("a",{href:Z(E,v,p),onClick:C},e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):e.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},Dn=function(t){var n=t.size,a=t.children,l=t.style,o=t.className;return e.createElement(b,{style:l,className:o,"data-shadow-size":n},a)},Sn=function(t){var n=t.type,a=t.children,l=t.style,o=t.isInline,r=t.isSquared,i=void 0!==r&&r,c=t.className,m=t.isLight,d=t.hasMorePadding,u=t.isLink,p=t.isSelected,g=t.textProps,h=void 0===g?{size:"sm"}:g,v=h.color?{"--text-props-color":h.color}:{};return e.createElement(k,{"data-is-squared":i||void 0,"data-tag-type":n,"data-is-light":m||void 0,"data-has-more-padding":d||void 0,"data-is-inline":o||void 0,style:P(P({},l),v),className:c,"data-is-selected":p||void 0,"data-is-link":u||void 0,tagType:n,isInline:o,tagHasMorePadding:d,tagIsLight:m,tagIsSquared:i,tagIsALink:u},e.createElement(s,P({},h),a))},An=function(t){var n=t.className,a=t.id,l=t.onChange,o=t.checked,r=t.style,i=t.label;return e.createElement(C,{className:n,style:r},e.createElement("input",{type:"checkbox",id:a,onChange:l,checked:o}),e.createElement("label",{htmlFor:a},e.createElement(N,null),i&&e.createElement(L,null,i)))},jn=function(t){var n=t.size,a=t.isDisabled,l=t.className,o=t.link,r=t.style;return e.createElement(z,{className:l,"data-size":n,style:r,"data-disabled":a||void 0},o)},In=function(t){var n=t.type,a=t.withIcon,l=t.onFileSelected,o=t.inputId,r=t.withElement,i=t.fileAcceptType,c=t.multiple,s=t.value,m=t.className,d=function(){var e;null===(e=document.querySelector("#uploader-input-"+o))||void 0===e||e.click()};return e.createElement(M,{className:m},"badge"===n?e.createElement(_,{onClick:d,"data-is-attached-to-element":!!r},r,e.createElement(B,{"data-is-attached-to-element":!!r},a)):r?e.createElement("div",{onClick:d},r):e.createElement(X,{size:"md",color:"secondary",className:"default-button",icon:a,onClick:d},e.createElement(F,null,e.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},e.createElement("defs",null,e.createElement("style",null,".prefix__cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),e.createElement("title",null,"upload"),e.createElement("path",{className:"prefix__cls-1",d:"M14 10v2.67A1.33 1.33 0 0112.67 14H3.33A1.33 1.33 0 012 12.67V10M11.33 5.33L8 2 4.67 5.33M8 2v8",transform:"translate(-1.25 -1.25)"})),"Upload Image")),e.createElement("input",{id:"uploader-input-"+o,accept:i,multiple:c,type:"file",style:{display:"none"},onChange:function(e){l(e.target.files)},value:s}))},Tn=function(t){var n=t.label,a=t.name,l=t.checked,o=t.className,r=t.isDisabled,i=t.onChange,c=t.value,s=t.isRectangle;return e.createElement(D,{className:o,"data-disabled":r||void 0,"data-is-rectangle":s||void 0,"data-label-text":n},e.createElement("input",{type:"checkbox",checked:l,name:a,onChange:function(){return i(c,!l)},disabled:r,value:c,id:"".concat(a,"-").concat(c),"data-label-text":n}),!s&&e.createElement("label",{htmlFor:"".concat(a,"-").concat(c)},n))},Hn=function(t){return e.createElement("svg",P({},t,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"}))},Pn=function(t){return e.createElement("svg",P({},t,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"}))},Wn=function(n){var a=t((function(){return"star-half-mask-".concat(Math.random())}))[0];return e.createElement("svg",P({},n,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),e.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),e.createElement("mask",{id:a,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},e.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),e.createElement("g",{mask:"url(#".concat(a,")")},e.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))},Vn=function(n){var a=n.gap,l=void 0===a?2:a,o=n.size,r=void 0===o?24:o,i=n.star,c=n.totalStars,s=void 0===c?5:c,m=n.onSelect,d=n.hideEmptyStars,u=n.style,p=n.className,g=Math.floor(i),h=i-g>=.5?1:0,v=t(null),f=v[0],E=v[1],y=f||g,x=f?0:h;return e.createElement(S,{"data-selectable":!!m,style:P({"--gap":l,"--star-size":r},u),className:p},Array.from({length:d?g+h:s}).map((function(t,n){var a=function(){return!!m&&E(n+1)},l=function(){return!!m&&E(null)};return n+1<=y?e.createElement(Pn,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l}):n+1===y+x?e.createElement(Wn,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l}):e.createElement(Hn,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l})})))},On=function(t){var n=t.percent,a=t.style;return e.createElement(A,{style:P({"--progress":n},a)})},Gn=function(t){var n=t.avatarImg,a=t.authorName,l=t.authorLink,o=t.uploadTime,r=t.size;return e.createElement(ee,null,e.createElement("div",{className:"author"},e.createElement("div",{className:"avatar","data-size":r},n),e.createElement("div",{className:"poster","data-is-disabled-url":!l},e.createElement(s,{size:"lg"===r?"p3":"p4"},e.createElement("a",{href:l},e.createElement("span",{className:"name"},a),"•"," "),e.createElement("span",null,o)))))},Un=function(t){var n=t.isMobile,a=t.avatarImg,l=t.name,o=t.link,r=t.size,i=void 0===r?"lg":r,c=t.specialty;return e.createElement(ee,null,e.createElement("div",{className:"author"},e.createElement("div",{className:"expert-avatar","data-size":i},a),e.createElement("div",{className:"expert","data-is-disabled-url":!o},n?e.createElement("a",{href:o},"lg"===i?e.createElement(e.Fragment,null,e.createElement(Y,{tag:"h6",className:"expert__name",color:J.colors.gray600},l),e.createElement(s,{color:J.colors.gray500,size:"p3",className:"specialty"},c)):e.createElement(e.Fragment,null,e.createElement(Y,{tag:"h6",className:"expert__name",color:J.colors.gray600},l))):e.createElement("a",{href:o},"lg"===i?e.createElement(e.Fragment,null,e.createElement(Y,{tag:"h6",className:"expert__name",color:J.colors.gray600},l),e.createElement(s,{color:J.colors.gray500,size:"p3",className:"specialty"},c)):e.createElement(e.Fragment,null,e.createElement(te,{color:J.colors.gray600,className:"expert__name"},l),e.createElement(s,{color:J.colors.gray500,size:"p4",className:"specialty"},c))))))},Zn=function(t){var n=t.articleLink,a=t.authorLink,l=t.authorName,o=t.avatarImg,r=t.banner,i=t.categoryLink,c=t.categoryName,m=t.className,d=t.dataEventActionForBanner,u=t.dataEventActionForBookmark,p=t.dataEventActionForCategory,g=t.dataEventActionForTitle,h=t.dataEventCategoryForBanner,v=t.dataEventCategoryForBookmark,f=t.dataEventCategoryForCategory,E=t.dataEventCategoryForTitle,y=t.dataEventLabelForBanner,x=t.dataEventLabelForBookmark,w=t.dataEventLabelForCategory,b=t.dataEventLabelForTitle,k=t.direction,C=void 0===k?"horizontal":k,N=t.hasAffiliate,L=t.isBookmark,z=void 0!==L&&L,M=t.isBookmarkDisplayed,_=void 0===M||M,B=t.isMobile,F=void 0===B||B,D=t.onBookmark,S=t.onClickCategoryName,A=t.section,j=void 0===A?"normal":A,I=t.size,T=void 0===I?"md":I,H=t.specialty,P=t.style,W=t.styleBanner,V=t.styleLabel,O=t.styleTitle,G=t.text,U=t.title,Z=t.type,R=void 0===Z?"author":Z,q=t.uploadTime,K=t.articleLinkTarget,X=function(e){e.stopPropagation(),D&&D()},J="lg"===T&&"expert"===R?"h4":"lg"===T&&"home"===j?F?"h4":"h3":"lg"===T?"h4":"h5",ee="lg"===T?"p3":"p4",te=F||"home"!==j||"lg"!==T||"author"!==R?"c2":"c1";return e.createElement(Q,{className:m,"data-size":T,style:P,"data-direction":C,"data-is-expert":"expert"===R||void 0},e.createElement("div",{className:"banner",style:W},e.createElement($,{"data-event-category":h,"data-event-action":d,"data-event-label":y,href:n||"#",target:K},r),N&&e.createElement("div",{className:"shoppable"},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{width:"24",height:"24",rx:"12",fill:"#1B3250"}),e.createElement("path",{d:"M16.6667 8.00033H15.3333C15.3333 6.16033 13.84 4.66699 12 4.66699C10.16 4.66699 8.66667 6.16033 8.66667 8.00033H7.33333C6.6 8.00033 6 8.60033 6 9.33366V17.3337C6 18.067 6.6 18.667 7.33333 18.667H16.6667C17.4 18.667 18 18.067 18 17.3337V9.33366C18 8.60033 17.4 8.00033 16.6667 8.00033ZM12 6.00033C13.1067 6.00033 14 6.89366 14 8.00033H10C10 6.89366 10.8933 6.00033 12 6.00033ZM12 12.667C10.4467 12.667 9.14 11.607 8.77333 10.167C8.66 9.74699 8.98667 9.33366 9.42 9.33366C9.73333 9.33366 9.98667 9.56033 10.0733 9.86699C10.3067 10.7137 11.08 11.3337 12 11.3337C12.92 11.3337 13.6933 10.7137 13.9267 9.86699C14.0133 9.56033 14.2667 9.33366 14.58 9.33366C15.0133 9.33366 15.3333 9.74699 15.2267 10.167C14.86 11.607 13.5533 12.667 12 12.667Z",fill:"white"})))),e.createElement("div",{className:"content"},e.createElement("div",{className:"inner-content"},e.createElement(s,{style:V,className:"label",size:te,type:"caption"},e.createElement($,{"data-event-category":f,"data-event-action":p,"data-event-label":w,href:i||"#",onClick:S},c),_&&e.createElement("a",{className:"bookmark",onClick:X},z?e.createElement("svg",{"data-event-category":v,"data-event-action":u,"data-event-label":x,width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M13 15L7 11.1111L1 15V2.55556C1 2.143 1.18061 1.74733 1.5021 1.45561C1.82359 1.16389 2.25963 1 2.71429 1H11.2857C11.7404 1 12.1764 1.16389 12.4979 1.45561C12.8194 1.74733 13 2.143 13 2.55556V15Z",fill:"#2ED69E",stroke:"#2ED69E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})):e.createElement("svg",{"data-event-category":v,"data-event-action":u,"data-event-label":x,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M12.75 2.25H5.25C4.425 2.25 3.75 2.925 3.75 3.75V15.75L9 13.5L14.25 15.75V3.75C14.25 2.925 13.575 2.25 12.75 2.25Z",fill:"#D2D6DC"})))),e.createElement(Y,{tag:J,style:O,className:"title",as:"lg"===T?"h2":"h3"},e.createElement($,{"data-event-category":E,"data-event-action":g,"data-event-label":b,href:n||"#",target:K},U)),G&&e.createElement("a",{href:n||"#",target:K},e.createElement(s,{size:ee,className:"text"},G))),e.createElement("div",{className:"footer"},"author"===R?e.createElement(Gn,{size:T,avatarImg:o,authorName:l,authorLink:a,uploadTime:q,handleClick:X,isBookmarked:z,dataEventCategoryForBookmark:v,dataEventActionForBookmark:u,dataEventLabelForBookmark:x}):e.createElement(Un,{size:T,isMobile:F,avatarImg:o,specialty:H,name:l,link:a,handleClick:X,isBookmarked:z,dataEventCategoryForBookmark:v,dataEventActionForBookmark:u,dataEventLabelForBookmark:x}))))},Rn=function(t){var n=t.LinkComponent,a=t.page,l=t.isLast,o=t.onChangePage,r=a.label,i=a.value,c=a.isDropdown,s=a.dropdownItems,m=a.dataEventCategory,d=a.dataEventAction,u=a.dataEventLabel;return c?e.createElement(Zt,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:o,className:"collapsed-breadcrumb"}):e.createElement(le,{title:"string"!=typeof r?i:r,"data-last":l},n&&e.createElement(n,{"data-event-category":m,"data-event-action":d,"data-event-label":u,href:i||"#"},r))},qn=function(t){var n=t.className,l=t.pages,r=t.size,i=t.LinkComponent,c=void 0===i?"a":i,s=t.onChangePage,m=t.separator,d=a((function(){return l.map((function(e,t){return l.length>4?t>1&&t<l.length-2?null:1===t?P(P({},e),{isDropdown:1===t,dropdownItems:l.slice(1,l.length-2)}):e:e})).filter(Boolean)}),[l]),u=Ut(d.length);return e.createElement(ne,{"data-size":r,className:n},d.map((function(t,n){var a=n+1===d.length;return e.createElement(o,{key:u[n]},e.createElement(Rn,{LinkComponent:c,page:t,isLast:a,onChangePage:s}),!a&&(m||e.createElement(ae,{"data-size":r})))})))},Kn=function(t){var n=t.name,a=t.values,l=void 0===a?[]:a,o=t.onChanges,r=t.options,i=void 0===r?[]:r,c=t.className,s=t.type,m=void 0===s?"vertical":s,d=t.isDisabled,u=t.isRectangle,p=function(e,t){var n=l.slice();if(t)n.push(e);else{var a=n.findIndex((function(t){return t===e}));n.splice(a,1)}o&&o(n)};return e.createElement(oe,{className:c,"data-type":m,"data-is-rectangle":u||void 0},i.map((function(t,a){return e.createElement(Tn,{label:t.label,name:n,key:"".concat(a,"-").concat(t.value),checked:l.includes(t.value),value:t.value,isDisabled:d||t.disabled,onChange:!d&&p,isRectangle:u})})))},Xn=function(t){var n=t.size,a=t.iconPosition,l=t.className,o=t.children,r=t.icon;return e.createElement(re,{className:l,"data-size":n,"data-icon-position":a},"left"===a&&r,o,"right"===a&&r)},Jn=function(n){var a=n.type,o=n.numberOfStep,i=n.activeStep,c=n.labelPrefix,s=n.detailSteps,m=n.className,d=n.onChange,u=t(0),p=u[0],g=u[1],h=function(t){var n=t.trackClassName,a=V(t,["trackClassName"]);return e.createElement(me,P({},a,{className:n}),e.createElement(de,null))},v=e.createElement(ie,{className:m+" progress-bar"},e.createElement(h,null),e.createElement((function(t){var n=t.trackLength,a=t.activeStep,l=t.labelPrefix,r=void 0===l?"Step":l,i=t.onChange;return e.createElement(e.Fragment,null,Array.from({length:o},(function(e,t){return t})).map((function(t,l){return e.createElement(ue,{"data-is-active":l===a,"data-label":l,style:{left:l*n/(o-1)},onClick:function(){i&&i(l)},key:l},l+1,e.createElement(pe,{"data-step-passed":l<=a},r+" "+(l+1)))})))}),{trackLength:p,activeStep:i,labelPrefix:c,onChange:d})),f=e.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5.5 9.5"},e.createElement("title",null,"chevron-right"),e.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),E=e.createElement(ce,null,s&&Array.from({length:s.length},(function(e,t){return t})).map((function(t,n){var a;return e.createElement(se,{key:n,"data-selected":n===i,onClick:function(){d&&d(n)}},null===(a=s[n])||void 0===a?void 0:a.text," ",n<s.length-1&&f)}))),y=e.createElement(ie,{className:m+" progress-bar"},e.createElement((function(t){var n=t.detailSteps,a=t.activeStep,l=t.onChange,o=Ut(n.length);return e.createElement(e.Fragment,null,Array.from({length:n.length},(function(e,t){return t})).map((function(t,r){return e.createElement(ge,{key:o[r],style:{left:100/n.length*r+"%",width:100/n.length+"%"},onClick:function(){l&&l(r)}},n[r].icon?e.createElement(he,{onClick:function(){l&&l(r)}},n[r].icon):e.createElement(ve,{"data-is-active":r===a,"data-label":t,onClick:function(){l&&l(r)},key:r},r+1),e.createElement(fe,{"data-step-passed":r<a+1},n[r].text,e.createElement(Ee,null,n[r].description)),r<n.length-1&&e.createElement(h,{"data-step-passed":r<a,trackClassName:"progress-track","data-track-type":"detail"}))})))}),{activeStep:i,detailSteps:s,onChange:d})),x=r(Xt((function(){var e=document.querySelector(".progress-bar");e&&g(e.offsetWidth)}),1e3),[]);return l((function(){var e=document.querySelector(".progress-bar");return g(null==e?void 0:e.offsetWidth),window.addEventListener("resize",x),function(){window.removeEventListener("resize",x)}}),[]),"step-track"===a&&v||"breadcrumb"===a&&E||"detail-track"===a&&y},Yn=Object.freeze({__proto__:null,SideMenu:ye,SideHeader:xe,UserInfo:we,MenuLink:be}),Qn=function(t){var n=t.isDisabled,a=t.isLeft,l=t.onClick,o=t.className,r=t.scheme,i=void 0===r?"hellosites":r;return e.createElement(Ne,{onClick:l,"data-is-disabled":n,"data-is-left":a,className:o},e.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a?e.createElement("path",{d:"M2.92902 6.00015L6.75002 2.17915C7.16402 1.76515 7.16402 1.09315 6.75002 0.679152C6.33602 0.265152 5.66402 0.265152 5.25002 0.679152L0.636023 5.29315C0.245023 5.68415 0.245023 6.31715 0.636023 6.70715L5.25002 11.3212C5.66402 11.7352 6.33602 11.7352 6.75002 11.3212C7.16402 10.9072 7.16402 10.2352 6.75002 9.82115L2.92902 6.00015Z",fill:"hellosites"===i?"#595959":"#E55C8A"}):e.createElement("path",{d:"M5.07095 6.00015L1.24995 2.17915C0.835953 1.76515 0.835953 1.09315 1.24995 0.679152C1.66395 0.265152 2.33595 0.265152 2.74995 0.679152L7.36395 5.29315C7.75495 5.68415 7.75495 6.31715 7.36395 6.70715L2.74995 11.3212C2.33595 11.7352 1.66395 11.7352 1.24995 11.3212C0.835953 10.9072 0.835953 10.2352 1.24995 9.82115L5.07095 6.00015Z",fill:"hellosites"===i?"#595959":"#E55C8A"})))},$n=function(n){for(var a=n.row,l=n.column,o=n.children,r=n.scheme,i=void 0===r?"hellosites":r,c=n.classNameLeftArrow,s=void 0===c?"":c,m=n.classNameRightArrow,d=void 0===m?"":m,u=n.mode,p=void 0===u?"snap":u,g=n.isDotsShown,h=void 0===g||g,v=n.isArrowShown,f=void 0!==v&&v,E=n.dataEventCategory,y=n.dataEventAction,x=n.dataEventLabel,w=n.onChangePage,b=e.useState(0),k=b[0],C=b[1],N=t(!1),L=N[0],z=N[1],M=Jt({defaultAnimation:{duration:1e3},initial:0,slideChanged:function(e){C(e.track.details.rel),w&&w(e.track.details.rel)},created:function(){z(!0)},drag:!0,mode:p,slides:{spacing:12}}),_=M[0],B=M[1],F=[],D=a*l,S=0;S<o.length;S+=D){var A=o.slice(S,S+D);F.push(A)}return e.createElement(ke,{row:a,column:l},e.createElement("div",{className:"navigation-wrapper"},e.createElement("div",{ref:_,className:"keen-slider slides-wrapper"},F.map((function(t,n){return e.createElement("div",{key:n,className:"keen-slider__slide page-items"},t.map((function(t,n){return e.createElement("div",{key:n},t)})))}))),L&&B.current&&f&&e.createElement(e.Fragment,null,e.createElement(Qn,{isLeft:!0,onClick:function(e){var t;return e.stopPropagation()||(null===(t=B.current)||void 0===t?void 0:t.prev())},isDisabled:0===k,scheme:i,className:"left-arrow ".concat(s),"data-event-category":E,"data-event-action":y,"data-event-label":x}),e.createElement(Qn,{isLeft:!1,onClick:function(e){var t;return e.stopPropagation()||(null===(t=B.current)||void 0===t?void 0:t.next())},isDisabled:k===B.current.track.details.slides.length-1,scheme:i,className:"right-arrow ".concat(d),"data-event-category":E,"data-event-action":y,"data-event-label":x}))),L&&B.current&&h&&e.createElement("div",{className:"dots"},W([],Array(B.current.track.details.slides.length),!0).map((function(t,n){return e.createElement(Ce,{key:n,onClick:function(){var e;null===(e=B.current)||void 0===e||e.moveToIdx(n)},"data-is-active":k===n,"data-is-hellosites":"hellosites"===i})}))))},ea=function(t){var n=t.type,a=t.description,l=t.value,o=t.withIcon,r=t.isInACard,i=t.cardColor,c=t.className;return e.createElement(Le,{className:c,"data-size":n,"data-is-in-card":"big"===n&&r,"data-card-color":i},e.createElement(ze,null,"small"===n&&e.createElement(Me,{"data-color":i}),a),e.createElement(_e,{"data-size":n},"small"!==n&&o,l))},ta=Object.freeze({__proto__:null,Table:Be,Cell:Fe,Head:De,Row:Se,Body:Ae}),na=function(n){var a=n.style,o=n.initialTab,r=n.tabContent,i=n.onChange,c=n.className,m=n.dataEventCategory,d=n.dataEventAction,u=n.dataEventLabel,p=n.id,g=t(o||0),h=g[0],v=g[1],f=Ut(r.length);return l((function(){v(o)}),[o]),e.createElement(je,{style:a,className:c,role:"tablist",id:p},r.map((function(t,n){return e.createElement(Ie,{"data-is-tab-active":h===n||void 0,"aria-selected":h===n,role:"tab",onClick:function(){v(n),i&&i(n)},onKeyDown:function(e){"Enter"===e.key&&(v(n),i&&i(n))},key:f[n],"data-event-category":m,"data-event-action":d,"data-event-label":u,tabIndex:0},e.createElement(Te,null,t.icon&&e.createElement(He,null,t.icon),e.createElement(s,{size:t.textSize||"sm",type:t.textType||"bold",color:t.textColor||J.colors.gray800,dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name)))})))},aa=function(t){var n=t.thankyou,a=t.thankyouSubtitle,l=t.className,o=t.style;return e.createElement(Pe,{className:l,style:o},e.createElement("div",{className:"survey-inner-wrapper"},e.createElement(We,null,e.createElement("div",{className:"survey-thankyou-wrapper-inner"},e.createElement("svg",{viewBox:"0 0 122 122",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"survey-thankyou-icon"},e.createElement("path",{d:"M61.5 122C94.6371 122 121.5 95.1371 121.5 62C121.5 28.8629 94.6371 2 61.5 2C28.3629 2 1.5 28.8629 1.5 62C1.5 95.1371 28.3629 122 61.5 122Z",fill:"#E3F2FF"}),e.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),e.createElement("path",{d:"M82.9048 72.6663H101.5L87.597 40H35.403L21.5 72.6663H40.0952V91H83.0786L82.9048 72.6663Z",fill:"#2C74DF"}),e.createElement("path",{d:"M74.4004 15.0005H39.863C36.9017 15.0005 34.5 17.4022 34.5 20.3635V72.5769C34.5 75.5383 36.9017 77.9399 39.863 77.9399H83.1357C86.097 77.9399 88.4987 75.5383 88.4987 72.5769V29.0988L88.4987 21.0005C88.4987 17.6868 85.8124 15.0005 82.4987 15.0005H74.4004Z",fill:"white"}),e.createElement("path",{d:"M88.8529 80.1077H34.1469C31.8699 80.1077 30.06 78.3036 30.06 76.0338V65.3837C30.06 63.1139 31.8699 61.3098 34.1469 61.3098H88.8529C91.1299 61.3098 92.9398 63.1139 92.9398 65.3837V76.0338C92.9398 78.3036 91.1299 80.1077 88.8529 80.1077Z",fill:"#E4E8EC"}),e.createElement("path",{d:"M90.838 85.4512H32.1618C29.8849 85.4512 28.075 83.6471 28.075 81.3774V70.7272C28.075 68.4575 29.8849 66.6533 32.1618 66.6533H90.7796C93.0566 66.6533 94.8665 68.4575 94.8665 70.7272V81.3774C94.9249 83.6471 93.0566 85.4512 90.838 85.4512Z",fill:"white"}),e.createElement("path",{d:"M103.748 75.4919V105.755C103.748 107.675 102.172 109.247 100.245 109.247H23.0031C21.0764 109.247 19.5 107.675 19.5 105.755V75.4919C19.5 73.5713 21.0764 72 23.0031 72H42.3866C44.3133 72 45.8897 73.5713 45.8897 75.4919V80.8461C45.8897 81.1952 46.1232 81.428 46.4735 81.428H76.7749C77.1253 81.428 77.3588 81.1952 77.3588 80.8461V75.4919C77.3588 73.5713 78.9352 72 80.8618 72H100.245C102.172 72 103.748 73.5713 103.748 75.4919Z",fill:"#45A4FF"}),e.createElement("path",{d:"M51.9541 91.3767V94.4612C51.9541 96.0907 53.2386 97.3711 54.8733 97.3711H67.7179C69.3526 97.3711 70.6371 96.0907 70.6371 94.4612V91.3767",stroke:"#2C74DF",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M120.5 38.0251C118.5 37.7793 117.25 39.3768 118.125 41.22L118.375 41.9573C119.125 43.8006 118 45.398 116 45.1523L115.25 45.0294C113.25 44.7836 112 46.3811 112.875 48.2244L113.25 48.9616C114 50.8049 112.875 52.4025 110.875 52.1567L110.125 52.0337C108.625 51.9109 107.5 52.7712 107.5 54",stroke:"#FE921D",strokeWidth:"1.9096",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M1.53299 62C1.2644 63.413 2.6745 64.337 4.35323 63.8478L5.02472 63.6304C6.70346 63.087 8.11356 64.0109 7.84496 65.4783L7.7107 66.0217C7.4421 67.4348 8.8522 68.3587 10.5309 67.8696L11.2024 67.6522C12.8812 67.1087 14.2913 68.0326 14.0227 69.5L13.8884 70.0435C13.687 71.1304 14.4256 71.8913 15.5 72",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M118 92C119.381 92 120.5 90.8807 120.5 89.5C120.5 88.1193 119.381 87 118 87C116.619 87 115.5 88.1193 115.5 89.5C115.5 90.8807 116.619 92 118 92Z",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M82.0001 3.18747L83.1875 7.53467L87.5347 6.34727L86.3473 2.00007L82.0001 3.18747Z",stroke:"#00B16A",strokeWidth:"2.1628",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M17.0001 28C18.1046 28 19 27.1045 19 25.9999C19 24.8954 18.1046 24 17.0001 24C15.8955 24 15 24.8954 15 25.9999C15 27.1045 15.8955 28 17.0001 28Z",stroke:"#FE921D",strokeWidth:"2.3278",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M61.5 26.6667C54.136 26.6667 48.1667 32.6361 48.1667 40.0001C48.1667 47.3641 54.136 53.3334 61.5 53.3334C68.864 53.3334 74.8334 47.3641 74.8334 40.0001C74.8334 32.6361 68.864 26.6667 61.5 26.6667ZM69.1094 36.9427L59.776 46.2761C59.516 46.5361 59.1747 46.6667 58.8334 46.6667C58.492 46.6667 58.1507 46.5361 57.8907 46.2761L53.8907 42.2761C53.3694 41.7547 53.3694 40.9121 53.8907 40.3907C54.412 39.8694 55.2547 39.8694 55.776 40.3907L58.8334 43.4481L67.224 35.0574C67.7454 34.5361 68.588 34.5361 69.1094 35.0574C69.6307 35.5787 69.6307 36.4214 69.1094 36.9427Z",fill:"#00CB8A"})),n&&e.createElement(Y,{className:"survey-thankyou-title",tag:"h3"},n),a&&e.createElement(s,{className:"survey-thankyou-subtitle",size:"p3"},a)))))},la=function(n){var a=n.items,o=n.className,r=n.style,i=n.backgroundPanelStyle,c=n.isOpen,s=n.onOpen,m=n.onClose,d=n.disableBackdropClick,u=n.siteType,p=void 0===u?"hb":u,g=n.animationType,h=void 0===g?"zoom":g,v=n.zIndex,f=void 0===v?300:v,E=t(!!c),y=E[0],x=E[1];l((function(){x(!!c)}),[c]);var w=function(){x(!1),m&&m()};return e.createElement(Ve,{style:r,className:o,"data-floatmenu-open":y,"data-site-type":p,"data-animation-type":h},e.createElement(Oe,{className:"float-button-group__panel",style:P({zIndex:f},i),onClick:d?void 0:w}),e.createElement(Ge,{className:"float-button-group___content",style:{zIndex:f}},e.createElement(Ue,null,a.map((function(t,n){return e.createElement(Ze,{className:"float-item-button-".concat(n),style:P(P({},"zoom"===h&&{bottom:64*(a.length-1-n),transitionDelay:"".concat(Re/a.length*(y?a.length-1-n:n),"ms")}),"slide"===h&&{bottom:64*(a.length-1-n),transitionDelay:"".concat(Re/a.length*(y?n:a.length-1-n),"ms")}),key:n,onClick:function(){t.onClick(),t.keepMenuOnClick||x(!1)}},e.createElement(qe,{style:P({},"zoom"===h&&{transitionDelay:"".concat(Re/a.length*(y?a.length-1-n:n),"ms")})},t.label),e.createElement(Ke,{className:"float-item-button__icon-wrapper",style:P({},("zoom"===h||"slide"===h)&&{transitionDelay:"".concat(Re/a.length*(y?a.length-1-n:n),"ms")})},t.icon))}))),e.createElement(Xe,{onClick:y?w:function(){x(!0),s&&s()}})))},oa=function(t){var n=t.className,a=t.policiesUrl,l=t.onAcceptClick,o=t.translations,r=void 0===o?{acceptButton:"Accept",policiesButton:"Our Policies"}:o,i=t.title,c=void 0===i?"":i,s=t.description,m=void 0===s?"":s,d=t.theme,u=void 0===d?"helloSites":d,p=t.isOpen,g=void 0===p||p,h=t.useDefaultPosition,v=void 0===h||h,f=t.trackingAttributes;return e.createElement(Je,{className:n,"data-theme":u,"data-is-open":g,"data-default-position":v},e.createElement(Ye,{"data-has-content":!!c},c),e.createElement(Qe,{dangerouslySetInnerHTML:{__html:m}}),e.createElement($e,null,e.createElement(et,{role:"button",tabIndex:0,on:"tap:consent-element.accept",onClick:l,"data-event-category":null==f?void 0:f.dataEventCategory,"data-event-action":null==f?void 0:f.dataEventAction,"data-event-label":null==f?void 0:f.dataEventLabel},r.acceptButton),e.createElement(tt,{href:a},r.policiesButton)))},ra=function(t){var n,a,l,o,r,i,c,s,m,d,u,p,g,h,v,f,E,y,x,w=t.SEOData,b=void 0===w?{}:w,k=t.isAmp,C=void 0!==k&&k,N=t.locale,L=void 0===N?"vi-VN":N,z=t.routerPathname,M=t.routerQuery,_=t.nextHead,B=t.siteType,F=t.seoCustom,D=t.userId,S=t.forcedCanonicalUrl,A=b.totalPages,j=b.currentPage,I=b.SEOTitle,T=void 0===I?"":I,H=b.SEODescription,V=void 0===H?"":H,O=b.SEOImage,G=b.seoType,U=b.SEOImageWidth,Z=b.SEOImageHeight,R=b.customMetaData,q=void 0===R?[]:R,K=b.isIndexable,X=void 0===K||K,J=b.hasNoCanonical,Y=void 0!==J&&J,Q=X&&gn?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",$=process.env.NEXT_PUBLIC_BASE_API_URL,ee=b.canonicalUrl||z;Object.keys(M).forEach((function(e){var t=M[e];t&&Array.isArray(t)&&(ee=ee.replace("[...".concat(e,"]"),t.join("/")))}));var te,ne=L||"en-PH",ae="helloSites"===B?dn[ne]:"www.marrybaby.vn",le=ee.endsWith("/")?"":"/";if(b.apiMetaData&&"string"==typeof b.apiMetaData){var oe=null===(n=b.apiMetaData)||void 0===n?void 0:n.match(/<title.*?>(.*)<\/title>/),re=" - Page ".concat(j," of ").concat(A),ie=j&&1!==j&&oe?b.apiMetaData.replace(oe[0],oe[0].includes("-")?oe[0].replace("-",re+" - "):"<title>".concat(oe[1].concat(re),"</title>")).replace('<link rel="canonical" href="https://'.concat(ae).concat(ee).concat(le,'" />'),'<link rel="canonical" href="https://'.concat(ae).concat(ee).concat(le,"?page=").concat(j,'" />')):b.apiMetaData,ce=(te=nt(ie,{trim:!0})).find((function(e){var t,n;return"og:image"===(null===(t=e.props)||void 0===t?void 0:t.property)||"og:image:secure_url"===(null===(n=e.props)||void 0===n?void 0:n.property)}));if(!ce){var se="https://".concat(ae,"/images/").concat(L,".png");te=W(W([],te,!0),[e.createElement("meta",{key:"og:image",property:"og:image",content:(null===(a=b.openGraph)||void 0===a?void 0:a.image)||se||""}),e.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(l=b.openGraph)||void 0===l?void 0:l.image)||se}),e.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(o=b.openGraph)||void 0===o?void 0:o.imageWidth)&&String(null===(r=b.openGraph)||void 0===r?void 0:r.imageWidth)||"1200"}),e.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(i=b.openGraph)||void 0===i?void 0:i.imageHeight)&&String(null===(c=b.openGraph)||void 0===c?void 0:c.imageHeight)||"630"})],!1)}}var me="https://".concat(ae,"/images/").concat(L,".png");return e.createElement(_,null,e.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===B&&e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter&family=Krub:wght@600&display=swap",rel:"stylesheet"}),"km-KH"===L?e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"id-ID"===L||"ms-MY"===L?e.createElement(e.Fragment,null):e.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap",rel:"preload",as:"style"}),e.createElement("link",{rel:"preconnect",href:$}),e.createElement("meta",{charSet:"UTF-8"}),!C&&e.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),e.createElement("meta",{name:"google",content:"notranslate"}),e.createElement("meta",{name:"robots",content:Q}),e.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),q.map((function(t,n){return e.createElement("meta",P({key:n},t))})),e.createElement("meta",{name:"theme-color",content:"helloSites"===B?"#2c87f3":"#e85388"}),e.createElement("meta",{name:"page_type",content:"Home"}),e.createElement("meta",{name:"page_platform",content:"WEB"}),e.createElement("meta",{name:"page_language",content:ne}),e.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),C&&e.createElement(e.Fragment,null,e.createElement("script",{async:!0,"custom-element":"amp-analytics",src:"https://cdn.ampproject.org/v0/amp-analytics-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-fx-collection",src:"https://cdn.ampproject.org/v0/amp-fx-collection-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-ad",src:"https://cdn.ampproject.org/v0/amp-ad-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-next-page",src:"https://cdn.ampproject.org/v0/amp-next-page-1.0.js"}),e.createElement("script",{async:!0,"custom-element":"amp-sticky-ad",src:"https://cdn.ampproject.org/v0/amp-sticky-ad-1.0.js"}),e.createElement("script",{async:!0,"custom-element":"amp-social-share",src:"https://cdn.ampproject.org/v0/amp-social-share-0.1.js"}),e.createElement("script",{async:!0,"custom-element":"amp-bind",src:"https://cdn.ampproject.org/v0/amp-bind-0.1.js"})),!te&&e.createElement(e.Fragment,null,"helloSites"===B?e.createElement("title",null,F?T:T+" - "+(null===(s=un[L])||void 0===s?void 0:s.SITE_NAME)):e.createElement("title",null,T),!Y&&e.createElement("link",{rel:"canonical",href:"https://".concat(ae).concat(ee)}),e.createElement("meta",{name:"description",content:V||(null===(m=b.openGraph)||void 0===m?void 0:m.description)}),b.schemaData&&e.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:b.schemaData}}),e.createElement("meta",{property:"og:locale",content:L}),e.createElement("meta",{property:"og:type",content:G||"website"}),e.createElement("meta",{property:"og:title",content:(null===(d=b.openGraph)||void 0===d?void 0:d.title)||T}),e.createElement("meta",{property:"og:description",content:(null===(u=b.openGraph)||void 0===u?void 0:u.description)||V}),e.createElement("meta",{property:"og:url",content:"https://".concat(ae).concat(ee)}),e.createElement("meta",{property:"og:site_name",content:"https://".concat(ae)}),e.createElement("meta",{property:"og:image",content:(null===(p=b.openGraph)||void 0===p?void 0:p.image)||O||me||""}),e.createElement("meta",{property:"og:image:secure_url",content:(null===(g=b.openGraph)||void 0===g?void 0:g.image)||O||me}),e.createElement("meta",{property:"og:image:width",content:(null===(h=b.openGraph)||void 0===h?void 0:h.imageWidth)&&String(null===(v=b.openGraph)||void 0===v?void 0:v.imageWidth)||U&&String(U)||"1200"}),e.createElement("meta",{property:"og:image:height",content:(null===(f=b.openGraph)||void 0===f?void 0:f.imageHeight)&&String(null===(E=b.openGraph)||void 0===E?void 0:E.imageHeight)||Z&&String(Z)||"630"}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"twitter:title",content:(null===(y=b.twitter)||void 0===y?void 0:y.title)||T}),e.createElement("meta",{name:"twitter:description",content:V}),e.createElement("meta",{name:"twitter:image",content:(null===(x=b.twitter)||void 0===x?void 0:x.image)||O})),("helloSites"===B?pn[ne]||[]:pn.marryBaby).map((function(t,n){return"link"===t.type?e.createElement("link",{key:"favicon-".concat(n),rel:t.rel,href:t.href,sizes:t.sizes}):"meta"===t.type?e.createElement("meta",{key:n,name:t.name,content:t.content}):null})),Array.isArray(te)&&S?te.filter((function(e){return"canonical"!==e.props.name&&"canonical"!==e.props.rel})):te,S&&e.createElement("link",{rel:"canonical",href:S}),!b.hasNoAmp&&"vi-VN"!==L&&e.createElement("link",{rel:"amphtml",href:"https://".concat(ae).concat(ee).concat(le,"?amp=1")}),D&&"undefined"!=typeof window?e.createElement("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '".concat(D,"'});")}}):null)},ia=function(t){var n=t.className,a=t.heading,l=t.isMobile,o=t.bannerUrl,r=t.bannerUrlLarge,i=t.medicalReview,c=t.icon,s=t.style,m=l?"h5":"h4",d=l?o:r||o;return e.createElement(at,{"data-is-mobile":l,style:s},e.createElement(lt,{className:n,"data-banner-url":d,"data-is-mobile":l},e.createElement(j,{className:"container"},e.createElement(ot,null,e.createElement(rt,{"data-is-mobile":l},e.createElement(it,{"data-is-mobile":l},e.createElement(Y,{color:J.colors.white,tag:m,as:"h2"},a)),i&&e.createElement(ct,{"data-is-mobile":l},i)),e.createElement(st,null,c)))))},ca=function(t){var n,a=t.isMobile,l=t.locale,o=t.onSubmitDueDate,r=t.dueDatePageInfo,i=t.expertUrl,c=vn().t;return e.createElement(mt,null,e.createElement(ia,{isEmbed:!0,bannerUrl:Yt.getAssetPath("embedToolBannerPink.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:(null==r?void 0:r.featured_image)||"https://hellobacsi.com/images/due-date-icon.svg",style:{objectFit:"contain",marginLeft:"auto"}}),heading:c("healthTools.dueDateCalculator"),medicalReview:(null===(n=null==r?void 0:r.reviewed_by)||void 0===n?void 0:n.display_name)?e.createElement(s,{size:"n1",color:J.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:c("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat(i,'"\n >\n ').concat(null==r?void 0:r.reviewed_by.display_name,"\n </a>"),date:null==r?void 0:r.reviewed_date})}}),e.createElement("span",null)):void 0,isMobile:a}),e.createElement(j,null,e.createElement(dt,{className:"due-date-cal"},e.createElement(ut,{locale:l,onSubmitDueDate:o}))))},sa=function(t){var n=t.src,a=t.title,l=t.backgroundSrc,o=t.className,r=t.reviewedSection,i=t.isAmp;return e.createElement(pt,{className:o},e.createElement(gt,{style:{backgroundImage:'url("'.concat(l,'")')}},e.createElement(ht,null,e.createElement(vt,null,e.createElement(Y,{tag:"h4",color:"white"},a),r),e.createElement(ft,null,i?e.createElement("amp-img",{src:n||"",alt:a,width:"140",height:"140"}):e.createElement("img",{src:n||"",style:{objectFit:"contain"},alt:a})))))},ma=function(t){var n,a,l,o=t.backgroundDesktopSrc,r=t.backgroundMobileSrc,i=t.title,c=t.className,m=t.isMobile,d=t.isAmp,u=t.ovulationContent,p=vn().t,g=Rt(null==u?void 0:u.reviewed_by);return e.createElement(Et,{className:c},e.createElement(yt,{style:{backgroundImage:"url('".concat(r||o,"')")}},e.createElement(xt,null,e.createElement(Y,{tag:"h5",color:"white"},i),(null===(n=null==u?void 0:u.reviewed_by)||void 0===n?void 0:n.display_name)?e.createElement(s,{size:"n1",color:"white",style:{marginTop:"0.3rem"}},e.createElement("span",{dangerouslySetInnerHTML:{__html:p("articlePage.articleReviewerBy",{name:'<a\n style="color: white"\n href="'.concat(g,'"\n >\n ').concat(u.reviewed_by.display_name,"\n </a>")})}}),e.createElement("span",null,p("tools.heading.on")),e.createElement("span",null,null==u?void 0:u.reviewed_date)):null),e.createElement(wt,null,d?e.createElement("amp-img",{src:(null==u?void 0:u.featured_image)||"",alt:i,width:"100%",height:"100%"}):e.createElement("img",{src:(null==u?void 0:u.featured_image)||"",style:{width:"100%",objectFit:"contain",marginTop:"30px"},alt:i}))),e.createElement(sa,{className:"desktop-only",src:(null==u?void 0:u.featured_image)||"",backgroundSrc:o||r||"",title:i,reviewedSection:(null===(a=null==u?void 0:u.reviewed_by)||void 0===a?void 0:a.display_name)&&""!==(null===(l=null==u?void 0:u.reviewed_by)||void 0===l?void 0:l.display_name)&&e.createElement(s,{size:"n1",color:J.colors.white,style:{marginTop:12}},e.createElement("span",{dangerouslySetInnerHTML:{__html:p("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat(g,'"\n >\n ').concat(u.reviewed_by.display_name,"\n </a>"),date:null==u?void 0:u.reviewed_date})}}),e.createElement("span",null)),isMobile:m}))},da=function(t){var n=t.onSubmitOvulation,a=t.locale,l=t.ovulationPageInfo,o=t.ovulationContent,r=t.isMobile,i=vn().t,c=qt(l||null);return e.createElement(mt,null,e.createElement(ma,{backgroundDesktopSrc:Yt.getAssetPath("embedToolBannerPink.svg"),backgroundMobileSrc:Yt.getAssetPath("embedToolBannerPink.svg"),title:i("healthTools.ovulationCalculator"),reviewedBy:c.reviewedBy,reviewedDate:c.reviewedDate,ovulationContent:o,isMobile:r}),e.createElement(j,null,e.createElement(dt,{className:"ovulation-cal"},e.createElement(bt,{locale:a,onSubmitOvulation:n}))))},ua=function(n){var a=n.info,o=n.onChange,r=n.errorMessage,i=void 0===r?{}:r,c=vn().t,s=t({weightBefore:!1,height:!1,weight:!1}),m=s[0],d=s[1],u=function(e,t){""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)};return l((function(){o&&o(P({},a))}),[]),l((function(){d({weightBefore:!1,height:!1,weight:!1})}),[i]),e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form"},e.createElement(I,{className:"input-section",label:e.createElement("span",{style:{color:J.colors.gray600,fontWeight:"bold",marginBottom:"9px",flex:"1"},className:"label-text"},c("pregnancyWeightGain.weightBeforeInput")," ",e.createElement("span",{style:{color:"".concat(J.colors.gray300)}},c("pregnancyWeightGain.weightInput.desc"))),errorMessage:m.weightBefore?"":null==i?void 0:i.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:function(e){u(e,(function(e){d((function(e){return P(P({},e),{weightBefore:!0})}));var t=P(P({},a),{weightBefore:e});o&&o(t)}))},value:null==a?void 0:a.weightBefore})),e.createElement("div",{className:"input-form"},e.createElement(I,{className:"input-section",label:e.createElement("span",{style:{color:J.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},c("pregnancyWeightGain.heightInput")," ",e.createElement("span",{style:{color:"".concat(J.colors.gray300)}},c("bmi.heightInput.desc"))),errorMessage:m.height?"":null==i?void 0:i.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==a?void 0:a.height,onChange:function(e){u(e,(function(e){d((function(e){return P(P({},e),{height:!0})}));var t=P(P({},a),{height:e});o&&o(t)}))}})),e.createElement("div",{className:"input-form"},e.createElement(I,{className:"input-section",label:e.createElement("span",{style:{color:J.colors.gray600,fontWeight:"bold",marginBottom:"9px"},className:"label-text"},c("pregnancyWeightGain.weightInput")," ",e.createElement("span",{style:{color:"".concat(J.colors.gray300)}},c("pregnancyWeightGain.weightInput.desc"))),errorMessage:m.weight?"":null==i?void 0:i.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==a?void 0:a.weight,onChange:function(e){u(e,(function(e){d((function(e){return P(P({},e),{weight:!0})}));var t=P(P({},a),{weight:e});o&&o(t)}))}})))},pa=function(n){var l,o,r=n.locale,i=n.onClick,c=n.inputErrorMessage,m=n.pwgContent,d=n.onFormChange,u=n.info,p=n.isMobile,g=vn().t,h=t(!1),v=h[0],f=h[1],E=t("notwins"),y=E[0],x=E[1],w=t({label:"0",value:0}),b=w[0],k=w[1],C=a((function(){return W([],Array(41),!0).map((function(e,t){return{label:"".concat(t),value:"".concat(t)}}))}),[]),N=fn(r).getHealthToolLink,L=a((function(){return N(Kt.PWG)}),[N]),z=(null===(l=null==m?void 0:m.reviewedBy)||void 0===l?void 0:l.display_name)?e.createElement(s,{size:"p4",color:J.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:g("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat(Rt(null==m?void 0:m.reviewedBy),'"\n >\n ').concat(null===(o=null==m?void 0:m.reviewedBy)||void 0===o?void 0:o.display_name,"\n </a>"),date:null==m?void 0:m.reviewedDate})}}),e.createElement("span",null)):void 0;return e.createElement(mt,null,e.createElement(ia,{bannerUrl:Yt.getAssetPath("embedToolBannerPink.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:m.featuredImage||"https://hellobacsi.com/images/pwg-icon.svg",style:{objectFit:"contain",marginLeft:"auto"}}),heading:g("pregnancyWeightGain.heading"),medicalReview:z,isMobile:p}),e.createElement(j,null,e.createElement(dt,{className:"pwg-view-mobile"},e.createElement(kt,{className:"hide-asking-mobile"},e.createElement(T,{size:"label2",style:{display:"block",fontWeight:"bold",color:J.colors.gray600},className:"label",htmlFor:"gender-selector"},g("pregnancyWeightGain.havingTwins")),e.createElement(Ct,{options:[{value:"twins",label:g("switchBtn.yes")},{value:"notwins",label:g("switchBtn.no")}],value:y,onChange:function(e){return x(e)},className:"gender-selector",id:"twins-mobile-check",type:"circle",direction:"horizontal",size:"small",group:"group1"})),e.createElement(Nt,null,e.createElement(hn,{checked:v,onChange:function(){return f(!v)}}),e.createElement(T,{size:"label2",style:{display:"inline-block",color:J.colors.gray600,fontSize:"13px"},htmlFor:"gender-selector"},g("tool.askChecking"))),e.createElement(Lt,null,e.createElement(zt,{className:"input-section input-form"},e.createElement(T,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:J.colors.gray600,fontWeight:"bold",fontSize:"13px",flex:"1"},htmlFor:"gender-selector"},g("pregnancyWeightGain.weekInput")),e.createElement(Zt,{options:C,placeholder:String(b.label),id:"weight-gain-dropdown",size:"md",value:b,onChange:function(e){return k({label:e.label,value:e.value})}})),e.createElement(ua,{info:u,errorMessage:c,onChange:d})),e.createElement(kt,{className:"hide-asking-desk"},e.createElement(T,{size:"label2",style:{display:"block",fontWeight:"bold",color:J.colors.gray600},className:"label",htmlFor:"gender-selector"},g("pregnancyWeightGain.havingTwins")),e.createElement(Ct,{options:[{value:"twins",label:g("switchBtn.yes")},{value:"notwins",label:g("switchBtn.no")}],value:y,onChange:function(e){return x(e)},className:"gender-selector",id:"twins-desk-check",type:"circle",direction:"horizontal",size:"small",group:"group1"})),e.createElement(Mt,null,e.createElement(X,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:"https://".concat(dn[r],"/").concat(L),className:"due-date-calculate-button",size:"lg",color:"primary",onClick:function(){return i(y,b.value)}},g("dueDatePage.lastPeriod.calculate"))))))},ga=function(t){var n=t.ampNextArticles,a=(null==n?void 0:n.filter(Boolean))||[];if(!(null==a?void 0:a.length))return null;return e.createElement("amp-next-page",null,e.createElement("script",{type:"application/json",dangerouslySetInnerHTML:{__html:JSON.stringify(a.map((function(e){return{image:e.image||"",title:e.title?JSON.stringify(e.title):"",url:e.link||""}})))}}),e.createElement("div",P({},{separator:""},{className:"amp-page-seperator",style:{color:"#8C8C8C",textTransform:"uppercase",fontSize:11,fontWeight:700,marginLeft:16}}),"Next article:"))},ha=function(){return"undefined"!=typeof window&&window.innerWidth<R.BREAK_POINT_MOBILE},va=function(){return"undefined"!=typeof window&&window.innerWidth>=R.BREAK_POINT_MOBILE&&window.innerWidth<R.BREAK_POINT_PC};var fa={"en-PH":yn,"vi-VN":wn,"zh-TW":bn,"id-ID":xn};function Ea(n){var o=n.value,r=void 0===o?{from:null,to:null}:o,i=t(null),c=i[0],s=i[1],m=function(){var e=t(ha()),n=e[0],a=e[1],o=t(va()),r=o[0],i=o[1];return l((function(){var e=function(){a(ha()),i(va())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),{isMobile:n,isLargeMobile:r}}().isMobile,d=t((function(){return r})),u=d[0],p=d[1],g=t((function(){var e;return $t(null!==(e=r.from)&&void 0!==e?e:new Date)})),h=g[0],v=g[1],f=a((function(){return en(h,1)}),[h]);var E=P(P({},n),{goToNextMonth:function(){v((function(e){return en(e,1)}))},goToPreviousMonth:function(){v((function(e){return nn(e,1)}))},range:u,setRange:p,hoverDay:c,setHoverDay:s});return e.createElement(e.Fragment,null,e.createElement(ya,P({},E,{date:h})),!m&&e.createElement(_t,null),!m&&e.createElement(ya,P({},E,{date:f})))}function ya(t){var n=t.date,o=t.range,r=t.setRange,i=t.onChange,c=t.goToPreviousMonth,s=t.goToNextMonth,m=t.minDate,d=t.maxDate,u=t.close,p=void 0===u?function(){}:u,g=t.autoClose,h=void 0!==g&&g,v=t.hoverDay,f=t.setHoverDay,E=vn().locale,y=a((function(){var e;return null!==(e=fa[E])&&void 0!==e?e:fa["en-PH"]}),[E]),x=a((function(){return tn(n,"MMMM",{locale:y})}),[n,y]),w=a((function(){return y?[1,2,3,4,5,6,0].map((function(e){return y.localize.day(e,{width:"narrow"})})):[]}),[y]);function b(t,n){if(null===t)return e.createElement(Ht,{key:"idx-".concat(n),"data-empty":"true"});var a=t.getDate(),l=ln(t),i=!!o.from&&on(o.from,t),c=!!o.to&&on(o.to,t),s=i||c,u=!1;null!==v&&o.from&&Qt(o.from,v)&&!o.to?u=rn(t,{start:o.from,end:v}):o.from&&o.to&&(u=rn(t,{start:o.from,end:o.to}));var g=!1;return m&&d?g=!rn(t,{start:m,end:d}):m?g=Qt(t,m):d&&(g=cn(t,d)),e.createElement(Ht,{key:a,"data-is-today":l,"data-is-past":!l&&sn(t),"data-is-selected":s,"data-is-disabled":g,"data-in-range":u,"data-is-from":i,"data-is-to":c,onMouseEnter:function(){f(t)},onMouseLeave:function(){return f(null)},onClick:function(){g||r((function(e){return h&&o.from&&!o.to&&p(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?Qt(e,t.from)?P(P({},t),{from:e}):P(P({},t),{to:e}):t:P(P({},t),{from:e})}(t,e)}))}},e.createElement(Pt,{onClick:function(){}},e.createElement("p",null,a)))}return l((function(){o.from&&o.to&&i(o)}),[o]),e.createElement(Bt,{className:"calendar-wrapper"},e.createElement(Ft,null,e.createElement(X,{onClick:c,size:"md",color:"ghost",icon:e.createElement("img",{src:Yt.getAssetPath("calendarArrowLeft.svg")})}),e.createElement("div",{className:"calendar-month"},x,e.createElement("strong",null,tn(n,"yyyy"))),e.createElement(X,{onClick:s,size:"md",color:"ghost",icon:e.createElement("img",{src:Yt.getAssetPath("calendarArrowRight.svg")})})),e.createElement(Dt,null,e.createElement("div",null,e.createElement(St,null,w.map((function(t,n){return e.createElement(At,{key:"".concat(t,"-").concat(n)},t)})))),e.createElement("div",null,function(){for(var t=n.getFullYear(),a=n.getMonth(),l=an(n),r=[],i=1;i<=l;i++)r.push(new Date(t,a,i));var c=r[0]?r[0].getDay():0;if(1!==c){var s=0===c?6:c-1;for(i=0;i<s;i++)r.unshift(null)}return e.createElement(jt,{key:"month-".concat(a),"data-month-index":a,"data-has-range":Boolean(o.from&&o.to)},e.createElement(It,null,e.createElement(Tt,null,r.map(b))))}())))}function xa(l){var o=l.inputSize,r=void 0===o?"md":o,i=l.name,c=void 0===i?"date-range-picker":i,s=l.value,m=l.minDate,d=l.maxDate,u=l.onChange,p=l.className,g=l.autoClose,h=void 0!==g&&g;s||(s={from:null,to:null});var v=t(!1),f=v[0],E=v[1];function y(){E(!1)}var x=n(null);function w(e){u&&u(e)}function b(e){return tn(e,"dd/MM/yyyy")}En(x,(function(){y()}));var k=a((function(){return s.from&&s.to?on(s.from,s.to)?b(s.from):"".concat(b(s.from)," - ").concat(b(s.to)):""}),[s.from,s.to]);return e.createElement(Wt,{className:[p,f&&"focused"].filter(Boolean).join(" "),ref:x},e.createElement("label",{htmlFor:c},e.createElement(I,{size:r,value:k,name:c,actionIcon:e.createElement("img",{src:Yt.getAssetPath("calendar.svg")}),onFocus:function(){return E(!0)}})),f?e.createElement(Vt,{onMouseDown:function(e){e.stopPropagation()}},e.createElement(Ea,{value:s,onChange:w,minDate:m,maxDate:d,close:y,autoClose:h})):null)}var wa,ba,ka,Ca,Na,La,za,Ma,_a,Ba=function(){return e.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M6.86364 10.6666H5.22727C4.86912 10.6666 4.51448 10.5977 4.18359 10.4637C3.8527 10.3296 3.55205 10.1332 3.2988 9.8856C2.78734 9.3855 2.5 8.70722 2.5 7.99998C2.5 7.29274 2.78734 6.61446 3.2988 6.11436C3.81026 5.61426 4.50396 5.33331 5.22727 5.33331H6.86364M9.78374 5.33331H11.7727C12.1309 5.33331 12.4855 5.40229 12.8164 5.5363C13.1473 5.67031 13.4479 5.86674 13.7012 6.11436C13.9545 6.36198 14.1553 6.65596 14.2924 6.97949C14.4295 7.30303 14.5 7.64979 14.5 7.99998C14.5 8.35017 14.4295 8.69693 14.2924 9.02047C14.1553 9.344 13.9545 9.63798 13.7012 9.8856C13.4479 10.1332 13.1473 10.3296 12.8164 10.4637C12.4855 10.5977 12.1309 10.6666 11.7727 10.6666H9.78374",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}))},Fa=function(t){var n=t.url,a=t.onCopied,l=t.locale,o=vn().t,r=kn(n||"").filter((function(e){return!e.allowedLocales||e.allowedLocales.includes(l)}));return e.createElement(Ot,null,e.createElement(s,{size:"p3",color:J.colors.gray800},o("shareContainer.title")),e.createElement("div",{className:"icon-group"},r.map((function(t,n){return e.createElement("a",{key:n,href:t.href,target:"_blank",rel:"noreferrer"},t.icon)})),e.createElement(X,{size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:e.createElement(Ba,null),onClick:function(){return O(void 0,void 0,void 0,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return[4,null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(n)];case 1:return t.sent(),null==a||a(),[2]}}))}))}})))},Da=function(){return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"copy"},e.createElement("path",{d:"M4 2.5C3.17125 2.5 2.5 3.17125 2.5 4V13.75C2.5 14.164 2.836 14.5 3.25 14.5C3.664 14.5 4 14.164 4 13.75V4H13.75C14.164 4 14.5 3.664 14.5 3.25C14.5 2.836 14.164 2.5 13.75 2.5H4ZM7 5.5C6.17125 5.5 5.5 6.17125 5.5 7V16C5.5 16.8287 6.17125 17.5 7 17.5H16C16.8287 17.5 17.5 16.8287 17.5 16V7C17.5 6.17125 16.8287 5.5 16 5.5H7ZM7 7H16V16H7V7Z",fill:"#595959"}))},Sa=function(t){var n=t.open,a=t.title,o=t.onClose,i=t.onCopied,c=t.onShared,m=t.url,d=t.locale,u=V(t,["open","title","onClose","onCopied","onShared","url","locale"]),p=vn().t,g=r((function(){return O(void 0,void 0,void 0,(function(){var e;return G(this,(function(t){switch(t.label){case 0:return[4,null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(m)];case 1:return t.sent(),null==i||i(),[2]}}))}))}),[m,i]),h=kn(m||"").filter((function(e){return!e.allowedLocales||e.allowedLocales.includes(d)}));return l((function(){n&&navigator.share&&navigator.share({title:null!=a?a:"Read This Post",url:m}).then((function(){null==c||c()})).catch((function(){null==o||o()}))}),[m,a,c,n]),"undefined"!=typeof navigator&&navigator.share?null:e.createElement(Gt,P({title:p("share.title"),onClose:o,open:n,placement:"bottom"},u),e.createElement("div",{className:"share-container"},e.createElement("div",{className:"icon-container"},e.createElement(s,{type:"semiBold",size:"s3",color:J.colors.gray600},p("share.title")),e.createElement("div",{className:"icon-group"},h.map((function(t,n){return e.createElement("a",{key:n,href:t.href,target:"_blank",rel:"noreferrer"},t.icon)})))),e.createElement("div",{className:"link-container"},e.createElement(s,{type:"semiBold",size:"s3",color:J.colors.gray600},p("share.copyLink")),e.createElement("div",{className:"input-group"},e.createElement(Cn,{name:"link",size:"md",value:m,isDisabled:!0}),e.createElement(X,{size:"md",type:"button",color:"tertiary",icon:e.createElement(Da,null),onClick:g})))))},Aa=mn.footer(wa||(wa=U(["\n background-color: #1b3250;\n\n .inner {\n padding: 64px 24px 98px 24px;\n "," {\n padding: 64px 0;\n }\n margin: 0 auto;\n //max-width: 1168px;\n\n &[data-type='mini'] {\n padding: 24px 0;\n }\n }\n\n .footer-logo {\n max-width: 132px;\n max-height: 32px;\n margin-bottom: 24px;\n &[data-is-sehat='true'] {\n max-width: 250px;\n }\n\n img {\n object-fit: contain;\n }\n }\n\n .social {\n margin-top: 24px;\n\n "," {\n margin-top: 32px;\n p {\n font-size: 13px;\n }\n }\n\n "," {\n p {\n font-size: 12px;\n }\n }\n\n p {\n color: ",";\n }\n }\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n\n .social-icon {\n width: 32px;\n height: 32px;\n }\n }\n\n .newsletter {\n > p {\n color: ",";\n\n font-size: 14px;\n line-height: 22px;\n\n "," {\n max-width: 380px;\n line-height: 28.5px;\n }\n }\n }\n\n hr {\n height: 1px;\n border: none;\n margin: 16px 0 16px 0;\n "," {\n margin-top: 0px;\n }\n background: ",";\n opacity: 0.1;\n outline: none;\n }\n\n .hrMobile {\n "," {\n display: none;\n }\n }\n\n .copyright {\n padding-top: 8px;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n }\n\n .copyright-content {\n width: 90%;\n color: ",";\n font-size: 12px;\n }\n\n .copyright-image-wrapper {\n flex-shrink: 0;\n flex-wrap: wrap;\n display: flex;\n max-width: 35%;\n justify-content: flex-end;\n "," {\n justify-content: flex-start;\n max-width: unset;\n }\n .copyright-image {\n &:not(:last-child) {\n margin-right: 0.5rem;\n }\n align-self: flex-start;\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n }\n }\n }\n\n &[data-is-amp='true'] {\n img {\n margin-bottom: 0;\n }\n }\n }\n\n .copyright-certificate {\n color: ",";\n "," {\n font-size: 11px;\n }\n "," {\n font-size: 12px;\n }\n }\n\n .biglinks {\n margin-bottom: 12px;\n }\n\n .bigLink {\n display: block;\n color: ",";\n font-size: 14px;\n font-weight: ",";\n text-decoration: none;\n word-break: break-word;\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n\n "," {\n display: inline-block;\n width: 50%;\n font-size: 16px;\n }\n }\n\n .mHalf {\n display: inline-block;\n width: 50%;\n padding-right: 24px;\n margin-bottom: 24px;\n vertical-align: top;\n\n p {\n color: ",";\n\n "," {\n margin-bottom: 8px;\n font-size: 13px;\n line-height: 20px;\n }\n "," {\n margin-bottom: 12px;\n font-size: 14px;\n }\n }\n }\n\n .otherSites {\n p {\n margin-bottom: 12px;\n color: ",";\n font-size: 12px;\n "," {\n font-size: 13px;\n }\n "," {\n font-size: 13px;\n }\n }\n\n .flags {\n display: flex;\n margin-bottom: 8px;\n\n div {\n margin-right: 10px;\n }\n }\n }\n\n .link {\n display: block;\n text-decoration: none;\n\n p {\n color: ",";\n font-weight: ",";\n word-break: break-word;\n }\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n\n .columns {\n "," {\n display: flex;\n flex-direction: row;\n width: 100%;\n\n > div:nth-child(1) {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-basis: 40%;\n }\n\n > div:nth-child(2) {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: 60%;\n\n > div:nth-child(1) {\n flex-basis: 45%;\n }\n\n > div:not(:last-child) {\n flex-basis: 27.5%;\n }\n\n > div:last-child() {\n flex-basis: 0;\n }\n }\n }\n }\n\n .signupButton {\n display: none;\n border: none;\n margin-top: 16px;\n outline: none;\n text-transform: uppercase;\n }\n"],["\n background-color: #1b3250;\n\n .inner {\n padding: 64px 24px 98px 24px;\n "," {\n padding: 64px 0;\n }\n margin: 0 auto;\n //max-width: 1168px;\n\n &[data-type='mini'] {\n padding: 24px 0;\n }\n }\n\n .footer-logo {\n max-width: 132px;\n max-height: 32px;\n margin-bottom: 24px;\n &[data-is-sehat='true'] {\n max-width: 250px;\n }\n\n img {\n object-fit: contain;\n }\n }\n\n .social {\n margin-top: 24px;\n\n "," {\n margin-top: 32px;\n p {\n font-size: 13px;\n }\n }\n\n "," {\n p {\n font-size: 12px;\n }\n }\n\n p {\n color: ",";\n }\n }\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n\n .social-icon {\n width: 32px;\n height: 32px;\n }\n }\n\n .newsletter {\n > p {\n color: ",";\n\n font-size: 14px;\n line-height: 22px;\n\n "," {\n max-width: 380px;\n line-height: 28.5px;\n }\n }\n }\n\n hr {\n height: 1px;\n border: none;\n margin: 16px 0 16px 0;\n "," {\n margin-top: 0px;\n }\n background: ",";\n opacity: 0.1;\n outline: none;\n }\n\n .hrMobile {\n "," {\n display: none;\n }\n }\n\n .copyright {\n padding-top: 8px;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n }\n\n .copyright-content {\n width: 90%;\n color: ",";\n font-size: 12px;\n }\n\n .copyright-image-wrapper {\n flex-shrink: 0;\n flex-wrap: wrap;\n display: flex;\n max-width: 35%;\n justify-content: flex-end;\n "," {\n justify-content: flex-start;\n max-width: unset;\n }\n .copyright-image {\n &:not(:last-child) {\n margin-right: 0.5rem;\n }\n align-self: flex-start;\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n }\n }\n }\n\n &[data-is-amp='true'] {\n img {\n margin-bottom: 0;\n }\n }\n }\n\n .copyright-certificate {\n color: ",";\n "," {\n font-size: 11px;\n }\n "," {\n font-size: 12px;\n }\n }\n\n .biglinks {\n margin-bottom: 12px;\n }\n\n .bigLink {\n display: block;\n color: ",";\n font-size: 14px;\n font-weight: ",";\n text-decoration: none;\n word-break: break-word;\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n\n "," {\n display: inline-block;\n width: 50%;\n font-size: 16px;\n }\n }\n\n .mHalf {\n display: inline-block;\n width: 50%;\n padding-right: 24px;\n margin-bottom: 24px;\n vertical-align: top;\n\n p {\n color: ",";\n\n "," {\n margin-bottom: 8px;\n font-size: 13px;\n line-height: 20px;\n }\n "," {\n margin-bottom: 12px;\n font-size: 14px;\n }\n }\n }\n\n .otherSites {\n p {\n margin-bottom: 12px;\n color: ",";\n font-size: 12px;\n "," {\n font-size: 13px;\n }\n "," {\n font-size: 13px;\n }\n }\n\n .flags {\n display: flex;\n margin-bottom: 8px;\n\n div {\n margin-right: 10px;\n }\n }\n }\n\n .link {\n display: block;\n text-decoration: none;\n\n p {\n color: ",";\n font-weight: ",";\n word-break: break-word;\n }\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n\n .columns {\n "," {\n display: flex;\n flex-direction: row;\n width: 100%;\n\n > div:nth-child(1) {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-basis: 40%;\n }\n\n > div:nth-child(2) {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: 60%;\n\n > div:nth-child(1) {\n flex-basis: 45%;\n }\n\n > div:not(:last-child) {\n flex-basis: 27.5%;\n }\n\n > div:last-child() {\n flex-basis: 0;\n }\n }\n }\n }\n\n .signupButton {\n display: none;\n border: none;\n margin-top: 16px;\n outline: none;\n text-transform: uppercase;\n }\n"])),q.mbDown,q.mbDown,q.mbUp,(function(e){return e.theme.colors.neutral500}),(function(e){return e.theme.colors.neutral500}),q.mbUp,q.mbDown,(function(e){return e.theme.colors.neutral500}),q.mbUp,q.mbUp,(function(e){return e.theme.colors.neutral500}),q.mbDown,(function(e){return e.theme.colors.neutral500}),q.mbDown,q.mbUp,(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),q.mbDown,(function(e){return e.theme.colors.neutral500}),q.mbDown,q.mbUp,(function(e){return e.theme.colors.neutral500}),q.mbDown,q.mbUp,(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),q.mbUp),ja=mn.div(ba||(ba=U(["\n width: 32px;\n height: 32px;\n margin-right: 10px;\n\n &[data-is-mobile='true'] {\n width: 24px;\n height: 24px;\n }\n\n .country-flag {\n width: 100%;\n height: 100%;\n }\n"],["\n width: 32px;\n height: 32px;\n margin-right: 10px;\n\n &[data-is-mobile='true'] {\n width: 24px;\n height: 24px;\n }\n\n .country-flag {\n width: 100%;\n height: 100%;\n }\n"]))),Ia=function(t){var n=t.url,a=t.isMobile,l=t.dataEventCategory,o=t.dataEventAction,r=t.dataEventLabel,i=t.isAmp;return e.createElement(ja,{"data-is-mobile":a},i?e.createElement("amp-img",{className:"country-flag",src:n,alt:"Country Flag","data-event-category":l,"data-event-action":o,"data-content-label":r}):e.createElement("img",{className:"country-flag lazy","data-src":n,alt:"Country Flag","data-event-category":l,"data-event-action":o,"data-content-label":r}))},Ta=function(t){var n,a,o,r,i,c,m,d,u,p,g,h,v,f,E,y,x,w,b,k,C,N,L,z,M,_,B,F,D,S,A=t.className,I=t.type,T=void 0===I?"main":I,H=t.footerInfo,P=t.isMobile,W=t.locale,V=t.isAmp,O=vn().t,G=null==H?void 0:H.menu;l((function(){setTimeout((function(){return null==K?void 0:K.update()}),100)}),[]);var U=(null===(a=null===(n=null==H?void 0:H.general)||void 0===n?void 0:n.verified)||void 0===a?void 0:a.filter(Boolean))||[];return e.createElement(Aa,{as:V&&"mini"===T?"div":"footer",className:A,style:"mini"===T?{backgroundColor:J.colors.neutral50}:{},"next-page-hide":!0},e.createElement(j,null,e.createElement("div",{className:"inner","data-type":T,"next-page-hide":""},"main"===T?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},V?(null===(r=null==H?void 0:H.general)||void 0===r?void 0:r.logo)?e.createElement("amp-img",{src:null===(i=null==H?void 0:H.general)||void 0===i?void 0:i.logo,alt:"Site logo",width:"132",height:"32",style:{marginBottom:24}}):null:e.createElement("img",{className:"footer-logo lazy","data-src":null===(o=null==H?void 0:H.general)||void 0===o?void 0:o.logo,alt:"Logo","data-is-sehat":"id-ID"===W})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(s,{size:"p1",type:"bold"},null===(c=null==H?void 0:H.general)||void 0===c?void 0:c.content),e.createElement(X,{className:"signupButton",color:"primary",size:"lg"},O("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(s,{size:"sm",type:"regular"},null===(m=null==H?void 0:H.social)||void 0===m?void 0:m.title),e.createElement("div",{className:"icons"},null===(u=null===(d=null==H?void 0:H.social)||void 0===d?void 0:d.socials)||void 0===u?void 0:u.map((function(t,n){return e.createElement("a",{key:n,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,href:t.url},V?e.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,src:t.icon,alt:"Logo Social",width:"32",height:"32"}):e.createElement("img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,"data-src":t.icon,alt:"Logo Social",className:"social-icon lazy"}))}))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,G&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(g=null===(p=G[0])||void 0===p?void 0:p.items)||void 0===g?void 0:g.map((function(t,n){return e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(dn[W]).concat(t.url),className:"bigLink",key:n,href:t.url},t.title)}))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(h=G[1])||void 0===h?void 0:h.menu_title),null===(f=null===(v=G[1])||void 0===v?void 0:v.items)||void 0===f?void 0:f.map((function(t,n){return e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(dn[W]).concat(t.url),className:"link",href:t.url,key:n},e.createElement(s,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:"https://".concat(dn[W]).concat(t.url)},t.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(E=G[2])||void 0===E?void 0:E.menu_title),null===(x=null===(y=G[2])||void 0===y?void 0:y.items)||void 0===x?void 0:x.map((function(t,n){return t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:n},e.createElement(s,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))})))),!V&&e.createElement(e.Fragment,null,e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(w=null==H?void 0:H.branch)||void 0===w?void 0:w.title),e.createElement("div",{className:"flags"},null===(k=null===(b=null==H?void 0:H.branch)||void 0===b?void 0:b.branch)||void 0===k?void 0:k.map((function(t,n){return e.createElement("a",{className:"link",href:t.url,key:n,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(Ia,{url:t.flag,isMobile:P,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url,isAmp:V}))}))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright","data-is-amp":V||void 0},e.createElement("div",{className:"copyright-image-wrapper"},U.length?U.map((function(t,n){return e.createElement("a",{href:t.url,key:n,className:"copyright-image"},V?e.createElement("amp-img",{src:t.image,alt:"DMCA Icon",width:"100",height:"36"}):e.createElement("img",{className:"lazy","data-src":t.image,alt:"DMCA Icon"}))})):null),e.createElement(s,{size:"xs",type:"regular",className:"copyright-content"},null===(C=null==H?void 0:H.general)||void 0===C?void 0:C.copyright)),"vi-VN"===W&&e.createElement(s,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==H?void 0:H.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(N=null==H?void 0:H.menu[1])||void 0===N?void 0:N.menu_title),null===(z=null===(L=null==H?void 0:H.menu[1])||void 0===L?void 0:L.items)||void 0===z?void 0:z.map((function(t){return e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":"https://".concat(dn[W]).concat(t.url),"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(dn[W]).concat(t.url)},e.createElement(s,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:"https://".concat(dn[W]).concat(t.url),size:"sm",type:"regular",style:{color:J.colors.gray800}},t.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(M=null==H?void 0:H.menu[2])||void 0===M?void 0:M.menu_title),null===(B=null===(_=null==H?void 0:H.menu[2])||void 0===_?void 0:_.items)||void 0===B?void 0:B.map((function(t,n){return e.createElement("a",{className:"link",href:t.url,key:n,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(s,{size:"sm",type:"regular",style:{color:J.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))}))),!V&&"mini"!==T&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(s,{size:"sm",type:"regular"},null===(F=null==H?void 0:H.social)||void 0===F?void 0:F.title),e.createElement("div",{className:"icons"},null===(S=null===(D=null==H?void 0:H.social)||void 0===D?void 0:D.socials)||void 0===S?void 0:S.map((function(t,n){return e.createElement("a",{key:n,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,href:t.url},V?e.createElement("amp-img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,src:t.icon,alt:"Logo Social",width:"32",height:"32"}):e.createElement("img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,"data-src":t.icon,alt:"Logo Social",className:"social-icon lazy"}))}))))))))))},Ha=mn.footer(ka||(ka=U(["\n position: relative;\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n }\n\n a {\n text-decoration: none;\n }\n a :hover {\n color: ",";\n }\n"],["\n position: relative;\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n }\n\n a {\n text-decoration: none;\n }\n a :hover {\n color: ",";\n }\n"])),(function(e){return e.theme.mbColors.blue})),Pa=mn.div(Ca||(Ca=U(["\n position: relative;\n padding: 80px 0 40px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n\n border-bottom: 1px solid\n ",";\n\n "," {\n padding: 32px 0 32px;\n flex-wrap: wrap;\n row-gap: 32px;\n column-gap: 16px;\n }\n"],["\n position: relative;\n padding: 80px 0 40px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n\n border-bottom: 1px solid\n ",";\n\n "," {\n padding: 32px 0 32px;\n flex-wrap: wrap;\n row-gap: 32px;\n column-gap: 16px;\n }\n"])),(function(e){return e.theme.colors.neutral200}),q.mbDown),Wa=mn.div(Na||(Na=U(["\n display: flex;\n justify-content: space-between;\n gap: 16px;\n flex-direction: column;\n\n "," {\n flex: 1 1 160px;\n }\n"],["\n display: flex;\n justify-content: space-between;\n gap: 16px;\n flex-direction: column;\n\n "," {\n flex: 1 1 160px;\n }\n"])),q.mbDown),Va=mn.div(La||(La=U(["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n"],["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n"]))),Oa=mn.div(za||(za=U(["\n padding: 40px 0;\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n flex-direction: column;\n text-align: center;\n\n .content {\n max-width: 680px;\n width: 100%;\n }\n .social-link {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n\n img {\n width: 32px;\n height: 32px;\n }\n }\n\n "," {\n padding: 32px 0;\n }\n"],["\n padding: 40px 0;\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n flex-direction: column;\n text-align: center;\n\n .content {\n max-width: 680px;\n width: 100%;\n }\n .social-link {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n\n img {\n width: 32px;\n height: 32px;\n }\n }\n\n "," {\n padding: 32px 0;\n }\n"])),q.mbDown),Ga=mn.div(Ma||(Ma=U(["\n background-color: ",";\n padding: 14px 0;\n position: relative;\n\n img {\n width: 89px;\n height: 32px;\n }\n .content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 174px;\n\n "," {\n flex-direction: column-reverse;\n gap: 16px;\n align-items: flex-start;\n }\n }\n\n .verify {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n }\n"],["\n background-color: ",";\n padding: 14px 0;\n position: relative;\n\n img {\n width: 89px;\n height: 32px;\n }\n .content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 174px;\n\n "," {\n flex-direction: column-reverse;\n gap: 16px;\n align-items: flex-start;\n }\n }\n\n .verify {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n }\n"])),(function(e){return e.theme.mbColors.dark}),q.mbDown),Ua=mn.div(_a||(_a=U(["\n overflow: hidden;\n &:before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 150%;\n height: 100%;\n background-color: ",";\n border-radius: 2150px 2150px 0 0 / 200px 200px 0 0;\n content: '';\n transform: translateX(-50%);\n }\n\n "," {\n &:before {\n width: 100%;\n }\n }\n"],["\n overflow: hidden;\n &:before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 150%;\n height: 100%;\n background-color: ",";\n border-radius: 2150px 2150px 0 0 / 200px 200px 0 0;\n content: '';\n transform: translateX(-50%);\n }\n\n "," {\n &:before {\n width: 100%;\n }\n }\n"])),(function(e){return e.theme.mbColors.lightGray}),q.mbDown),Za=function(t){var n,a=t.logoType,l=void 0===a?"marryBaby":a,o=t.footerMenu;if(!o)return null;var r=o.general,i=o.menu,c=o.socials;return e.createElement(Ha,{className:"footer-container"},e.createElement(Ua,null,e.createElement(j,{type:"marryBaby"},e.createElement(Pa,null,null==i?void 0:i.map((function(t,n){var a=t.menu_title,l=t.items;return e.createElement(Wa,{key:"mbf".concat(n)},e.createElement(s,{size:"s1",type:"semiBold",color:J.mbColors.pink},a),null==l?void 0:l.map((function(t,n){var a=t.title,l=t.url;return e.createElement("a",{"data-event-category":"Footer","data-event-action":a,"data-event-label":"".concat(l),className:"link",href:l,key:"footer-links-".concat(n)},e.createElement(Va,{key:"mbitem".concat(n)},e.createElement(s,{size:"p2",type:"regular",color:J.mbColors.gray},a)))})))})))),e.createElement(j,null,e.createElement(Oa,null,e.createElement(H,{className:"logo",type:l,width:"127px"}),e.createElement("div",{className:"content"},e.createElement(s,{size:"p2",type:"regular",color:J.mbColors.gray},null==r?void 0:r.content)),e.createElement("div",{className:"social-link"},null==c?void 0:c.map((function(t,n){var a=t.icon,l=t.name,o=t.url;return e.createElement("a",{key:"social".concat(n),target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - Facebook","data-content-label":l,href:o},e.createElement("img",{src:a,alt:l}))}))))),e.createElement(Ga,null,e.createElement(j,{type:"marryBaby"},e.createElement("div",{className:"content"},e.createElement(s,{size:"p3",type:"regular",color:J.colors.white},null==r?void 0:r.copyright),e.createElement("div",{className:"verify"},null===(n=null==r?void 0:r.verified)||void 0===n?void 0:n.map((function(t,n){var a=t.image,l=t.url;return e.createElement("img",{key:"imgMbFt".concat(n),src:a,alt:l})}))))))))},Ra=function(t){var n=t.type,a=t.isMobile,o=void 0===a||a,r=t.locale,i=t.footerInfo,c=t.isAmp,s=t.siteType;return l((function(){setTimeout((function(){return null==K?void 0:K.update()}),500)}),[]),"helloSites"===s?e.createElement(Ta,{isAmp:c,isMobile:o,type:n,locale:r,footerInfo:i||{}}):e.createElement(Za,{footerMenu:i})};export{Nn as A,Ln as B,Tn as C,ca as D,Mn as F,_n as G,Xn as I,da as O,Fn as P,Vn as R,Dn as S,Sn as T,jn as U,zn as a,An as b,In as c,On as d,Zn as e,qn as f,Kn as g,Jn as h,Yn as i,$n as j,ea as k,ta as l,na as m,aa as n,la as o,oa as p,ra as q,ia as r,pa as s,ga as t,xa as u,Fa as v,Sa as w,Ra as x};
|
package/build/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{i as Types}from"./index-62c22dbe.js";export{i as Constants}from"./index-58ae0705.js";export{A as Alert,t as AmpNextPage,e as ArticleCard,B as Badge,a as BorderHeading,f as Breadcrumbs,j as Carousel,C as Checkbox,g as CheckboxGroup,p as CookieAcceptConfirm,u as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,o as FloatButtonGroup,x as Footer,G as Grid,I as IconText,O as OvulationCardEmbed,s as PWGCardEmbed,P as Pagination,d as Progress,h as ProgressBar,R as RateStars,q as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,i as SideMenu,k as StatisticCard,n as SurveyThankyouCard,l as Table,m as Tabs,T as Tag,b as Toggle,r as ToolsBannerCard,U as UnderlinedLink,c as Uploader}from"./index-
|
|
1
|
+
export{i as Types}from"./index-62c22dbe.js";export{i as Constants}from"./index-58ae0705.js";export{A as Alert,t as AmpNextPage,e as ArticleCard,B as Badge,a as BorderHeading,f as Breadcrumbs,j as Carousel,C as Checkbox,g as CheckboxGroup,p as CookieAcceptConfirm,u as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,o as FloatButtonGroup,x as Footer,G as Grid,I as IconText,O as OvulationCardEmbed,s as PWGCardEmbed,P as Pagination,d as Progress,h as ProgressBar,R as RateStars,q as SeoHead,S as Shadow,v as ShareContainer,w as ShareDrawer,i as SideMenu,k as StatisticCard,n as SurveyThankyouCard,l as Table,m as Tabs,T as Tag,b as Toggle,r as ToolsBannerCard,U as UnderlinedLink,c as Uploader}from"./index-c0b62dbe.js";export{A as Avatar,C as CardAuthor,f as DefaultComponentGlobalContextData,D as Dropdown,G as GlobalData,L as Loading,P as Popup,b as PopupDoctor,a as PopupExpert,e as PopupHospital,T as TogetherComponentGlobalContext,g as TogetherComponentGlobalContextProvider,c as TogetherConstants,d as TogetherDataTransforms,U as UserAvatar}from"./index-3b378814.js";export{B as Button}from"./index-fc27293d.js";export{D as Divider}from"./index-6c500325.js";export{C as CategoryCard,D as DatePicker,c as DoctorInfo,F as Flag,L as LanguageSwitcher,M as MobileBottomNavigation,e as MobileBottomNavigationIcon,j as NavigationLogoutPopup,k as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,R as Radio,a as RadioGroup,b as ScrollList,S as Slider,d as SurveyQuestionCard,U as UserProfileNavigation,h as UserProfileNavigationHeader,i as UserProfileNavigationStats,g as getNavMenuContent,f as getNavMenuContentWithCache}from"./index-08833fb4.js";export{H as Heading}from"./index-38730a4c.js";export{I as Input}from"./index-a156951f.js";export{C as Container,L as Label,a as Logo,M as Menu,P as PureInput,T as Text,b as TextArea,c as TextDivider}from"./index.styled-d5fee85d.js";export{I as Icon,M as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-e77cf754.js";export{D as Drawer}from"./index.styled-ae81770e.js";export{u as useTranslations}from"./useTranslations-3e47eecc.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{u as useFbDataLayer}from"./useFbDataLayer-f9adf2a7.js";export{u as useHealthToolsCache}from"./useHealthToolCache-79dda45b.js";export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-a738e5de.js";export{T as TranslationsContext}from"./translationsContext-d658f58d.js";export{C as CardLink,r as CardPost,s as CardPostPopoverMore,b as CardReactions,v as CardReply,w as CardReplyPopover,f as CreateNewPostContent,g as CreatePostDescription,h as CreatePostTitle,n as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,x as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,q as SocialLinkPreview,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-0edd9c60.js";export{B as BookingSearchBar,t as CareTypes}from"./types-7fb683cb.js";export{c as CareConstants}from"./constants-a0a981fa.js";export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-77c129ef.js";export{B as Breakpoints,M as MediaQueries,S as ScreenSizeContext,p as ScreenSizeContextProvider,h as fadeIn,i as formatUrlWithPageParam,j as getBoundariesFromMediaQueryKey,k as getPopupWrapperDom,o as getWindowSizeGroups,l as lazyLoadInstance,m as makeParams,a as slideInDown,b as slideInLeft,c as slideInRight,s as slideInUp,e as slideOutDown,f as slideOutLeft,g as slideOutRight,d as slideOutUp,n as startCase,t as toggleNoScroll}from"./screenSizeContext-d0c9aa9b.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-0e8521c3.js";import"react";import"styled-components";export{t as theme}from"./theme-a50a1aa5.js";export{a as abbreviateNumber}from"./number-3cb24023.js";export{f as formatHealthTool,d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,e as getDynamicHealthTool,h as getDynamicHealthToolWithCache,b as getTogetherApiDomain}from"./getDynamicHealthTool-506a8dae.js";export{g as getSocialList}from"./getSocialList-2f760404.js";export{d as defaultTranslations}from"./en-PH-71017453.js";import"./Locale-69030fff.js";import"./tslib.es6-dcf36680.js";import"react-id-generator";import"lodash";import"keen-slider/react";import"./gAssets.js";import"react-range";import"date-fns";import"@mantine/core";import"string-format";import"lodash/debounce";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"slugify";import"./core-3e31237f.js";import"react-day-picker/DayPickerInput";import"react-dom";import"smoothscroll-polyfill";import"./types-f57c9932.js";import"innertext";import"react-contenteditable";import"react-loading-skeleton";import"lodash/shuffle";import"vanilla-lazyload";
|