@hhgtech/hhg-components 1.21.56 → 1.21.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/drawer/index.d.ts +1 -1
- package/build/components/mantine/accordion/index.d.ts +13 -0
- package/build/components/mantine/accordion/index.styled.d.ts +5 -0
- package/build/components/mantine/avatar/index.d.ts +1 -1
- package/build/components/mantine/index.d.ts +5 -1
- package/build/components/mantine/spoiler/index.d.ts +12 -0
- package/build/components/molecules/babyGrowthForm/index.d.ts +17 -0
- package/build/components/molecules/babyGrowthForm/index.styled.d.ts +8 -0
- package/build/components/molecules/babyGrowthForm/utils/bmiCalculate.d.ts +8 -0
- package/build/components/molecules/babyGrowthForm/utils/localizeNumberFormat.d.ts +8 -0
- package/build/components/molecules/dropdownSearch/index.d.ts +13 -14
- package/build/components/molecules/dropdownSearch/index.styled.d.ts +1 -1
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +17 -0
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.styled.d.ts +20 -0
- package/build/components/molecules/index.d.ts +1 -0
- package/build/components.js +1 -1
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-2a15f86c.js +1 -0
- package/build/esm/index-3c17bc28.js +1 -0
- package/build/esm/{index-21555c3f.js → index-98c0dac3.js} +1 -1
- package/build/esm/index-c6f61c80.js +1 -0
- package/build/esm/{index-a1a434ca.js → index-c7a9854e.js} +1 -1
- package/build/esm/index-d9428f26.js +1 -0
- package/build/esm/index-f2ce074c.js +1 -0
- package/build/esm/index-fc420029.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-264d32c3.js +1 -0
- package/build/esm/mantine.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/theme-24be0e4f.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/translationsContext-8575bd07.js +1 -0
- package/build/esm/translationsProvider-e87179a0.js +1 -0
- package/build/esm/{types-5fe5df89.js → types-75d31691.js} +1 -1
- package/build/esm/types-a2295452.js +1 -0
- package/build/esm/useTranslations-ddaec288.js +1 -0
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-c5ba3d33.js → index-15bd7e75.js} +1 -1
- package/build/index-72954eca.js +1 -0
- package/build/{index-aa9aedf7.js → index-72b17d37.js} +1 -1
- package/build/{index-3e3d35cb.js → index-8d3da089.js} +1 -1
- package/build/index-aa20c03b.js +1 -0
- package/build/index-c67f191f.js +1 -0
- package/build/index-d24d0cb6.js +1 -0
- package/build/{index-c3dc9c19.js → index-e4c3f90a.js} +1 -1
- package/build/index.js +1 -1
- package/build/index.styled-48ac7bb0.js +1 -0
- package/build/interfaces/baby-growth/errorMessage.d.ts +13 -0
- package/build/interfaces/types/BabyGrowth.d.ts +15 -0
- package/build/mantine.js +1 -1
- package/build/navigation.js +1 -1
- package/build/theme-a5775470.js +1 -0
- package/build/together/api/dataTransform.d.ts +2 -0
- package/build/together.js +1 -1
- package/build/translationsContext-f799a864.js +1 -0
- package/build/translationsProvider-9c3c9b9e.js +1 -0
- package/build/types-8e0fe54d.js +1 -0
- package/build/{types-91907d9e.js → types-e824b4b7.js} +1 -1
- package/build/useTranslations-fe351941.js +1 -0
- package/package.json +1 -1
- package/build/en-PH-605a14fc.js +0 -1
- package/build/esm/en-PH-8025ed49.js +0 -1
- package/build/esm/index-13c824c6.js +0 -1
- package/build/esm/index-1b7f5a9e.js +0 -1
- package/build/esm/index-41c793c8.js +0 -1
- package/build/esm/index-63ebb2ee.js +0 -1
- package/build/esm/index-9300d6c6.js +0 -1
- package/build/esm/index-e0001115.js +0 -1
- package/build/esm/index.styled-76f23280.js +0 -1
- package/build/esm/index.styled-e9c222d7.js +0 -1
- package/build/esm/theme-a0b9e0b0.js +0 -1
- package/build/esm/translationsContext-d658f58d.js +0 -1
- package/build/esm/translationsProvider-29dae7e1.js +0 -1
- package/build/esm/types-74a5b4b9.js +0 -1
- package/build/esm/useTranslations-c32c6487.js +0 -1
- package/build/index-904b97b6.js +0 -1
- package/build/index-c84bb4e8.js +0 -1
- package/build/index-f94b5d4a.js +0 -1
- package/build/index-fa51b8ce.js +0 -1
- package/build/index.styled-744ec79d.js +0 -1
- package/build/index.styled-97a84219.js +0 -1
- package/build/theme-883c4f21.js +0 -1
- package/build/translationsContext-2d7ea471.js +0 -1
- package/build/translationsProvider-b07b6ec5.js +0 -1
- package/build/types-d60f7e99.js +0 -1
- package/build/useTranslations-473f169c.js +0 -1
|
@@ -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,c,T as s,d as m,e as d,f as u,g as p,h as g,i as v,j as h,k as f,l as E,m as y,n as b,o as w,p as x,q as k,r as C,s as N,t as L,u as z,v as M,w as _,x as S,y as B,z as F,A as D,B as j,C as A,P as I,L as T}from"./index.styled-264d32c3.js";import{_ as H,a as P,b as W,c as G,d as V,e as O}from"./tslib.es6-dcf36680.js";import{i as U,B as R,M as Z,l as q}from"./screenSizeContext-f2090394.js";import{B as K}from"./index-98c0dac3.js";import{t as X}from"./theme-a50a1aa5.js";import{H as Y}from"./index-3c17bc28.js";import{m as J,n as Q,o as $,p as ee,q as te,r as ne,s as ae,t as le,u as oe,v as re,w as ie,x as ce,y as se,z as me,A as de,B as ue,C as pe,E as ge,G as ve,H as he,I as fe,J as Ee,K as ye,O as be,Q as we,V as xe,W as ke,X as Ce,Y as Ne,Z as Le,_ as ze,$ as Me,a0 as _e,a1 as Se,a2 as Be,a3 as Fe,a4 as De,a5 as je,a6 as Ae,a7 as Ie,a8 as Te,a9 as He,aa as Pe,ab as We,ac as Ge,ad as Ve,ae as Oe,af as Ue,ag as Re,ah as Ze,ai as qe,aj as Ke,ak as Xe,al as Ye,am as Je,an as Qe,ao as $e,ap as et,aq as tt,ar as nt,as as at,T as lt,at as ot,au as rt,av as it,aw as ct,ax as st,ay as mt,a as dt,az as ut,aA as pt,aB as gt,aC as vt,aD as ht,aE as ft,aF as Et,aG as yt,aH as bt,aI as wt,aJ as xt,aK as kt,aL as Ct,aM as Nt,aN as Lt,aO as zt,aP as Mt,aQ as _t,aR as St,aS as Bt,aT as Ft,aU as Dt,aV as jt,aW as At,aX as It,aY as Tt,aZ as Ht,a_ as Pt,a$ as Wt,b0 as Gt,b1 as Vt,b2 as Ot,b3 as Ut,b4 as Rt,b5 as Zt,b6 as qt,b7 as Kt,b8 as Xt,b9 as Yt,ba as Jt,L as Qt}from"./index-f2ce074c.js";import{useId as $t}from"react-id-generator";import{D as en,H as tn,h as nn,i as an,j as ln,k as on,l as rn,m as cn}from"./index-d9428f26.js";import{throttle as sn}from"lodash";import{useKeenSlider as mn}from"keen-slider/react";import{CommonGAssets as dn}from"./gAssets.js";import"react-range";import{isBefore as un,startOfMonth as pn,addMonths as gn,format as vn,subMonths as hn,getDaysInMonth as fn,isToday as En,isSameDay as yn,isWithinInterval as bn,isAfter as wn,isPast as xn}from"date-fns";import kn from"styled-components";import{d as Cn,L as Nn,F as Ln}from"./index-9dd60ba6.js";import{i as zn}from"./isProduction-6fc0946c.js";import"./Locale-69030fff.js";import{Container as Mn,Checkbox as _n}from"@mantine/core";import"./translationsContext-8575bd07.js";import"string-format";import"lodash/debounce";import{u as Sn}from"./useTranslations-ddaec288.js";import{useForm as Bn,Controller as Fn}from"react-hook-form";import{I as Dn,R as jn,a as An}from"./index-2a15f86c.js";import{u as In}from"./useHealthToolCache-74a46d69.js";import{I as Tn}from"./theme-24be0e4f.js";import"@mantine/hooks";import{u as Hn}from"./useOutsideClick-6004483a.js";import Pn from"date-fns/locale/en-US";import Wn from"date-fns/locale/id";import Gn from"date-fns/locale/vi";import Vn from"date-fns/locale/zh-TW";import{g as On}from"./getSocialList-e91ed860.js";import{I as Un}from"./index-c7a9854e.js";var Rn=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))},Zn=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)))},qn=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:H({color:p},n),className:l,"data-size":r,"data-type":c,"data-uppercase":s,as:d},a)},Kn=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],b=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)}})}))),x=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:b},s||x," ",e.createElement("span",null,o&&o.value?o.label:m)),E&&e.createElement(v,{onClick:b,"data-has-icons":!0},r.map((function(t){return e.createElement(h,{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))},Xn=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)},Yn=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=P([],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],v=p[1];return l((function(){r<=4?v(u.slice(0,5)):r>=u.length-3?v(u.slice(u.length-5,u.length)):v(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:U(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:U(s,u.length,d),onClick:c},u.length):u.length)))},Jn=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=P([],Array(r),!0).map((function(e,t){return t+1})),v=t(i),h=v[0],f=v[1],E=a((function(){return d&&d.endsWith("&page=")?d.replace("&page=",""):d}),[d]),x=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(b,{className:"prev-page",onClick:function(){return k(h-1)},"data-last-page":1===h||void 0},E?e.createElement("a",{href:U(E,h,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(Yn,{pagesAmount:r,activePage:h,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===h||void 0,onClick:function(){return k(t)}},E?e.createElement("a",{href:U(E,t,p),onClick:C},t):t)})),e.createElement(b,{className:"next-page",onClick:function(){return k(h+1)},"data-last-page":h===x+1||void 0},E?e.createElement("a",{href:U(E,h,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"}))))},Qn=function(t){var n=t.size,a=t.children,l=t.style,o=t.className;return e.createElement(x,{style:l,className:o,"data-shadow-size":n},a)},$n=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,v=void 0===g?{size:"sm"}:g,h=v.color?{"--text-props-color":v.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:H(H({},l),h),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,H({},v),a))},ea=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)))},ta=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)},na=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(S,{"data-is-attached-to-element":!!r},a)):r?e.createElement("div",{onClick:d},r):e.createElement(K,{size:"md",color:"secondary",className:"default-button",icon:a,onClick:d},e.createElement(B,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}))},aa=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(F,{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))},la=function(t){return e.createElement("svg",H({},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"}))},oa=function(t){return e.createElement("svg",H({},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"}))},ra=function(n){var a=t((function(){return"star-half-mask-".concat(Math.random())}))[0];return e.createElement("svg",H({},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"})))},ia=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),v=i-g>=.5?1:0,h=t(null),f=h[0],E=h[1],y=f||g,b=f?0:v;return e.createElement(D,{"data-selectable":!!m,style:H({"--gap":l,"--star-size":r},u),className:p},Array.from({length:d?g+v: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(oa,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l}):n+1===y+b?e.createElement(ra,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l}):e.createElement(la,{key:n,onClick:function(){return null==m?void 0:m(n+1)},onMouseOver:a,onMouseLeave:l})})))},ca=function(t){var n=t.percent,a=t.style;return e.createElement(j,{style:H({"--progress":n},a)})},sa=function(t){var n=t.avatarImg,a=t.authorName,l=t.authorLink,o=t.uploadTime,r=t.size;return e.createElement($,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)))))},ma=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($,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:X.colors.gray600},l),e.createElement(s,{color:X.colors.gray500,size:"p3",className:"specialty"},c)):e.createElement(e.Fragment,null,e.createElement(Y,{tag:"h6",className:"expert__name",color:X.colors.gray600},l))):e.createElement("a",{href:o},"lg"===i?e.createElement(e.Fragment,null,e.createElement(Y,{tag:"h6",className:"expert__name",color:X.colors.gray600},l),e.createElement(s,{color:X.colors.gray500,size:"p3",className:"specialty"},c)):e.createElement(e.Fragment,null,e.createElement(ee,{color:X.colors.gray600,className:"expert__name"},l),e.createElement(s,{color:X.colors.gray500,size:"p4",className:"specialty"},c))))))},da=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,v=t.dataEventCategoryForBanner,h=t.dataEventCategoryForBookmark,f=t.dataEventCategoryForCategory,E=t.dataEventCategoryForTitle,y=t.dataEventLabelForBanner,b=t.dataEventLabelForBookmark,w=t.dataEventLabelForCategory,x=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,S=t.isMobile,B=void 0===S||S,F=t.onBookmark,D=t.onClickCategoryName,j=t.section,A=void 0===j?"normal":j,I=t.size,T=void 0===I?"md":I,H=t.specialty,P=t.style,W=t.styleBanner,G=t.styleLabel,V=t.styleTitle,O=t.text,U=t.title,R=t.type,Z=void 0===R?"author":R,q=t.uploadTime,K=t.articleLinkTarget,X=function(e){e.stopPropagation(),F&&F()},$="lg"===T&&"expert"===Z?"h4":"lg"===T&&"home"===A?B?"h4":"h3":"lg"===T?"h4":"h5",ee="lg"===T?"p3":"p4",te=B||"home"!==A||"lg"!==T||"author"!==Z?"c2":"c1";return e.createElement(J,{className:m,"data-size":T,style:P,"data-direction":C,"data-is-expert":"expert"===Z||void 0},e.createElement("div",{className:"banner",style:W},e.createElement(Q,{"data-event-category":v,"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:G,className:"label",size:te,type:"caption"},e.createElement(Q,{"data-event-category":f,"data-event-action":p,"data-event-label":w,href:i||"#",onClick:D},c),_&&e.createElement("a",{className:"bookmark",onClick:X},z?e.createElement("svg",{"data-event-category":h,"data-event-action":u,"data-event-label":b,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":h,"data-event-action":u,"data-event-label":b,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:$,style:V,className:"title",as:"lg"===T?"h2":"h3"},e.createElement(Q,{"data-event-category":E,"data-event-action":g,"data-event-label":x,href:n||"#",target:K},U)),O&&e.createElement("a",{href:n||"#",target:K},e.createElement(s,{size:ee,className:"text"},O))),e.createElement("div",{className:"footer"},"author"===Z?e.createElement(sa,{size:T,avatarImg:o,authorName:l,authorLink:a,uploadTime:q,handleClick:X,isBookmarked:z,dataEventCategoryForBookmark:h,dataEventActionForBookmark:u,dataEventLabelForBookmark:b}):e.createElement(ma,{size:T,isMobile:B,avatarImg:o,specialty:H,name:l,link:a,handleClick:X,isBookmarked:z,dataEventCategoryForBookmark:h,dataEventActionForBookmark:u,dataEventLabelForBookmark:b}))))},ua=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(en,{options:s,placeholder:"...",id:"",placeholderIcon:null,onChange:o,className:"collapsed-breadcrumb"}):e.createElement(ae,{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))},pa=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?H(H({},e),{isDropdown:1===t,dropdownItems:l.slice(1,l.length-2)}):e:e})).filter(Boolean)}),[l]),u=$t(d.length);return e.createElement(te,{"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(ua,{LinkComponent:c,page:t,isLast:a,onChangePage:s}),!a&&(m||e.createElement(ne,{"data-size":r})))})))},ga=function(t){var n=t.imgBanner,a=t.label,l=t.className,o=t.style,r=t.href,i=void 0===r?"":r,c=t.dataEventCategory,m=t.dataEventAction,d=t.dataEventLabel;return e.createElement(le,{"data-event-category":c,"data-event-action":m,"data-event-label":d,className:l,style:o,href:i,onClick:function(e){""===i&&e.preventDefault()}},e.createElement("div",{className:"banner"},n),e.createElement("div",{className:"content"},e.createElement(s,{className:"category_name",size:"sm",type:"bold"},a)))},va=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(aa,{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})})))},ha=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)},fa=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],v=function(t){var n=t.trackClassName,a=W(t,["trackClassName"]);return e.createElement(me,H({},a,{className:n}),e.createElement(de,null))},h=e.createElement(ie,{className:m+" progress-bar"},e.createElement(v,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=$t(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(ve,{onClick:function(){l&&l(r)}},n[r].icon):e.createElement(he,{"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(v,{"data-step-passed":r<a,trackClassName:"progress-track","data-track-type":"detail"}))})))}),{activeStep:i,detailSteps:s,onChange:d})),b=r(sn((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",b),function(){window.removeEventListener("resize",b)}}),[]),"step-track"===a&&h||"breadcrumb"===a&&E||"detail-track"===a&&y},Ea=Object.freeze({__proto__:null,SideMenu:ye,SideHeader:be,UserInfo:we,MenuLink:xe}),ya=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"})))},ba=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,v=void 0===g||g,h=n.isArrowShown,f=void 0!==h&&h,E=n.dataEventCategory,y=n.dataEventAction,b=n.dataEventLabel,w=n.onChangePage,x=e.useState(0),k=x[0],C=x[1],N=t(!1),L=N[0],z=N[1],M=mn({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],S=M[1],B=[],F=a*l,D=0;D<o.length;D+=F){var j=o.slice(D,D+F);B.push(j)}return e.createElement(ke,{row:a,column:l},e.createElement("div",{className:"navigation-wrapper"},e.createElement("div",{ref:_,className:"keen-slider slides-wrapper"},B.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&&S.current&&f&&e.createElement(e.Fragment,null,e.createElement(ya,{isLeft:!0,onClick:function(e){var t;return e.stopPropagation()||(null===(t=S.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":b}),e.createElement(ya,{isLeft:!1,onClick:function(e){var t;return e.stopPropagation()||(null===(t=S.current)||void 0===t?void 0:t.next())},isDisabled:k===S.current.track.details.slides.length-1,scheme:i,className:"right-arrow ".concat(d),"data-event-category":E,"data-event-action":y,"data-event-label":b}))),L&&S.current&&v&&e.createElement("div",{className:"dots"},P([],Array(S.current.track.details.slides.length),!0).map((function(t,n){return e.createElement(Ce,{key:n,onClick:function(){var e;null===(e=S.current)||void 0===e||e.moveToIdx(n)},"data-is-active":k===n,"data-is-hellosites":"hellosites"===i})}))))},wa=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))},xa=Object.freeze({__proto__:null,Table:Se,Cell:Be,Head:Fe,Row:De,Body:je}),ka=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),v=g[0],h=g[1],f=$t(r.length);return l((function(){h(o)}),[o]),e.createElement(Ae,{style:a,className:c,role:"tablist",id:p},r.map((function(t,n){return e.createElement(Ie,{"data-is-tab-active":v===n||void 0,"aria-selected":v===n,role:"tab",onClick:function(){h(n),i&&i(n)},onKeyDown:function(e){"Enter"===e.key&&(h(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||X.colors.gray800,dataEventCategory:t.dataEventCategory,dataEventAction:t.dataEventAction,dataEventLabel:t.dataEventLabel},t.name)))})))},Ca=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)))))},Na=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,v=void 0===g?"zoom":g,h=n.zIndex,f=void 0===h?300:h,E=t(!!c),y=E[0],b=E[1];l((function(){b(!!c)}),[c]);var w=function(){b(!1),m&&m()};return e.createElement(Ge,{style:r,className:o,"data-floatmenu-open":y,"data-site-type":p,"data-animation-type":v},e.createElement(Ve,{className:"float-button-group__panel",style:H({zIndex:f},i),onClick:d?void 0:w}),e.createElement(Oe,{className:"float-button-group___content",style:{zIndex:f}},e.createElement(Ue,null,a.map((function(t,n){return e.createElement(Re,{className:"float-item-button-".concat(n),style:H(H({},"zoom"===v&&{bottom:64*(a.length-1-n),transitionDelay:"".concat(Ze/a.length*(y?a.length-1-n:n),"ms")}),"slide"===v&&{bottom:64*(a.length-1-n),transitionDelay:"".concat(Ze/a.length*(y?n:a.length-1-n),"ms")}),key:n,onClick:function(){t.onClick(),t.keepMenuOnClick||b(!1)}},e.createElement(qe,{style:H({},"zoom"===v&&{transitionDelay:"".concat(Ze/a.length*(y?a.length-1-n:n),"ms")})},t.label),e.createElement(Ke,{className:"float-item-button__icon-wrapper",style:H({},("zoom"===v||"slide"===v)&&{transitionDelay:"".concat(Ze/a.length*(y?a.length-1-n:n),"ms")})},t.icon))}))),e.createElement(Xe,{onClick:y?w:function(){b(!0),s&&s()}})))},La=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,v=t.useDefaultPosition,h=void 0===v||v,f=t.trackingAttributes;return e.createElement(Ye,{className:n,"data-theme":u,"data-is-open":g,"data-default-position":h},e.createElement(Je,{"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)))},za=function(t){var n,a,l,o,r,i,c,s,m,d,u,p,g,v,h,f,E,y,b,w=t.SEOData,x=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,S=t.siteType,B=t.seoCustom,F=t.userId,D=t.forcedCanonicalUrl,j=x.totalPages,A=x.currentPage,I=x.SEOTitle,T=void 0===I?"":I,W=x.SEODescription,G=void 0===W?"":W,V=x.SEOImage,O=x.seoType,U=x.SEOImageWidth,R=x.SEOImageHeight,Z=x.customMetaData,q=void 0===Z?[]:Z,K=x.isIndexable,X=void 0===K||K,Y=x.hasNoCanonical,J=void 0!==Y&&Y,Q=X&&zn?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",$=process.env.NEXT_PUBLIC_BASE_API_URL,ee=x.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"===S?Cn[ne]:"www.marrybaby.vn",le=ee.endsWith("/")?"":"/";if(x.apiMetaData&&"string"==typeof x.apiMetaData){var oe=null===(n=x.apiMetaData)||void 0===n?void 0:n.match(/<title.*?>(.*)<\/title>/),re=" - Page ".concat(A," of ").concat(j),ie=A&&1!==A&&oe?x.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(A,'" />')):x.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=P(P([],te,!0),[e.createElement("meta",{key:"og:image",property:"og:image",content:(null===(a=x.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=x.openGraph)||void 0===l?void 0:l.image)||se}),e.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(o=x.openGraph)||void 0===o?void 0:o.imageWidth)&&String(null===(r=x.openGraph)||void 0===r?void 0:r.imageWidth)||"1200"}),e.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(i=x.openGraph)||void 0===i?void 0:i.imageHeight)&&String(null===(c=x.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"===S&&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",H({key:n},t))})),e.createElement("meta",{name:"theme-color",content:"helloSites"===S?"#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"===S?e.createElement("title",null,B?T:T+" - "+(null===(s=Nn[L])||void 0===s?void 0:s.SITE_NAME)):e.createElement("title",null,T),!J&&e.createElement("link",{rel:"canonical",href:"https://".concat(ae).concat(ee)}),e.createElement("meta",{name:"description",content:G||(null===(m=x.openGraph)||void 0===m?void 0:m.description)}),x.schemaData&&e.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:x.schemaData}}),e.createElement("meta",{property:"og:locale",content:L}),e.createElement("meta",{property:"og:type",content:O||"website"}),e.createElement("meta",{property:"og:title",content:(null===(d=x.openGraph)||void 0===d?void 0:d.title)||T}),e.createElement("meta",{property:"og:description",content:(null===(u=x.openGraph)||void 0===u?void 0:u.description)||G}),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=x.openGraph)||void 0===p?void 0:p.image)||V||me||""}),e.createElement("meta",{property:"og:image:secure_url",content:(null===(g=x.openGraph)||void 0===g?void 0:g.image)||V||me}),e.createElement("meta",{property:"og:image:width",content:(null===(v=x.openGraph)||void 0===v?void 0:v.imageWidth)&&String(null===(h=x.openGraph)||void 0===h?void 0:h.imageWidth)||U&&String(U)||"1200"}),e.createElement("meta",{property:"og:image:height",content:(null===(f=x.openGraph)||void 0===f?void 0:f.imageHeight)&&String(null===(E=x.openGraph)||void 0===E?void 0:E.imageHeight)||R&&String(R)||"630"}),e.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),e.createElement("meta",{name:"twitter:title",content:(null===(y=x.twitter)||void 0===y?void 0:y.title)||T}),e.createElement("meta",{name:"twitter:description",content:G}),e.createElement("meta",{name:"twitter:image",content:(null===(b=x.twitter)||void 0===b?void 0:b.image)||V})),("helloSites"===S?Ln[ne]||[]:Ln.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)&&D?te.filter((function(e){return"canonical"!==e.props.name&&"canonical"!==e.props.rel})):te,D&&e.createElement("link",{rel:"canonical",href:D}),!x.hasNoAmp&&"vi-VN"!==L&&e.createElement("link",{rel:"amphtml",href:"https://".concat(ae).concat(ee).concat(le,"?amp=1")}),F&&"undefined"!=typeof window?e.createElement("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '".concat(F,"'});")}}):null)},Ma=function(t){var n,a=t.isMobile,l=t.locale,o=t.onSubmitDueDate,r=t.dueDatePageInfo,i=t.expertUrl,c=t.isSide,m=Sn().t;return e.createElement(at,{"data-is-side":c},e.createElement(lt,{isSide:c,bannerUrl:dn.getAssetPath("embedToolBannerPink.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:null==r?void 0:r.featured_image,style:{objectFit:"contain",marginLeft:"auto"}}),heading:m("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:X.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:m("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(A,null,e.createElement(ot,{onSubmit:function(e){return e.preventDefault()},className:"due-date-cal","data-is-side":c},e.createElement(rt,{locale:l,onSubmitDueDate:o,isSide:c}))))};function _a(e){var t=e.weight,n=e.height/100,a=t;return Math.round(a/(n*n)*10)/10}var Sa=function(n){var o,r,i,c,m=n.value,d=n.onChange,u=n.onSubmit,p=n.disabled,g=n.bmiGenerated,v=n.bmiUnit,h=n.locale,f=t(!1),E=f[0],y=f[1],b=Bn(),w=b.control,x=b.handleSubmit,k=b.setValue,C=(0,b.watch)(),N=Sn().t,L=p||{},z=L.gender,M=void 0!==z&&z,_=L.age,S=void 0!==_&&_,B=L.height,F=void 0!==B&&B,D=L.weight,j=void 0!==D&&D,A=L.objective,I=void 0===A||A,T=In(h).getHealthToolLink,H=a((function(){return T(tn.OVULATION)}),[T]),P=a((function(){return[{value:"male",label:N("gender.male"),content:e.createElement(Dn.GenderChooseBoy,null)},{value:"female",label:N("gender.female"),content:e.createElement(Dn.GenderChooseGirl,null)}]}),[]),W=a((function(){return[{value:"lose-weight",label:N("bmi.objective.loseWeight")},{value:"maintain-weight",label:N("bmi.objective.maintainWeight")},{value:"gain-weight",label:N("bmi.objective.gainWeight")}]}),[]),O=function(){y(!0)};return l((function(){Object.keys(m||{}).forEach((function(e){k(e,null==m?void 0:m[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[m]),l((function(){d&&d(C)}),[C]),e.createElement(it,null,e.createElement("form",{onSubmit:x((function(e){return G(void 0,void 0,void 0,(function(){var t,n,a;return V(this,(function(l){return t=v.heightConvert(e.height),n=v.weightConvert(e.weight),a={gender:e.gender,age:e.age,height:t,weight:n,bmi:_a({height:t,weight:n})},I||(a.objective=e.objective),O(),u&&u(a),[2]}))}))}),O)},!M&&e.createElement(ct,null,e.createElement(Fn,{name:"gender",control:w,defaultValue:"male",render:function(t){var n=t.field,a=n.name,l=n.value,o=n.onChange,r=t.fieldState.error;return e.createElement(st,{size:"md",name:a,label:g.gender.label,CustomInput:e.createElement(jn,{options:P,value:l,onChange:function(e){return o(e)},className:"bmi--input-radio_gender"}),errorMessage:E?null==r?void 0:r.message:"",className:"bmi--input bmi--input-gender"})}})),e.createElement(mt,null,!S&&e.createElement(ct,null,e.createElement(Fn,{name:"age",control:w,rules:null===(o=g.age)||void 0===o?void 0:o.rule,render:function(t){var n=t.field,a=n.name,l=n.value,o=n.onChange,r=t.fieldState.error;return e.createElement(Tn.Number,{label:e.createElement(s,{size:"label2",type:"bold",color:X.colors.gray600},g.age.label),name:a,value:l||0,onChange:o,error:E?null==r?void 0:r.message:"",min:0})}})),!F&&e.createElement(ct,null,e.createElement(Fn,{name:"height",control:w,rules:null===(r=g.height)||void 0===r?void 0:r.rule,render:function(t){var n=t.field,a=n.name,l=n.value,o=n.onChange,r=t.fieldState.error;return e.createElement(Tn.Number,{label:e.createElement(s,{size:"label2",type:"bold",color:X.colors.gray600},g.height.label),name:a,value:l||0,onChange:o,error:E?null==r?void 0:r.message:"",min:0})}})),!j&&e.createElement(ct,null,e.createElement(Fn,{name:"weight",control:w,rules:null===(i=g.weight)||void 0===i?void 0:i.rule,render:function(t){var n=t.field,a=n.name,l=n.value,o=n.onChange,r=t.fieldState.error;return e.createElement(Tn.Number,{label:e.createElement(s,{size:"label2",type:"bold",color:X.colors.gray600},g.weight.label),name:a,value:l||0,onChange:o,error:E?null==r?void 0:r.message:"",precision:1,min:0})}})),!I&&e.createElement(ct,null,e.createElement(Fn,{name:"objective",control:w,defaultValue:"lose-weight",rules:null===(c=g.objective)||void 0===c?void 0:c.rule,render:function(t){var n=t.field,a=n.name,l=n.value,o=n.onChange,r=t.fieldState.error;return e.createElement(st,{size:"md",name:a,label:g.objective.label,CustomInput:e.createElement(dt,{id:"bmi-objective",className:"bmi-objective",type:"circle",direction:"vertical",size:"small",group:"group1",options:W,value:l,onChange:o}),errorMessage:E?null==r?void 0:r.message:"",className:"bmi--input bmi--input-objective"})}}))),e.createElement(ut,{size:"lg",isBlock:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:"https://".concat(Cn[h],"/").concat(H)},N("bmi.submit"))))},Ba=function(t){var n,a,l,o=t.isMobile,r=t.onSubmit,i=t.bmiContent,c=t.isSide,m=t.bmiGenerated,d=t.bmiUnit,u=t.bmiLink,p=t.locale,g=Sn().t;return e.createElement(at,{"data-is-side":c},e.createElement(lt,{isSide:c,bannerUrl:dn.getAssetPath("embedToolBannerBlue.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:null==i?void 0:i.featured_image,style:{objectFit:"contain",marginLeft:"auto"}}),heading:g("bmi.heading"),medicalReview:(null===(n=null==i?void 0:i.reviewBy)||void 0===n?void 0:n.reviewer)?e.createElement(s,{size:"n1",color:X.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:g("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat((null===(a=null==i?void 0:i.reviewBy)||void 0===a?void 0:a.link)||"#",'"\n >\n ').concat(i.reviewBy.reviewer,"\n </a>"),date:null===(l=null==i?void 0:i.reviewBy)||void 0===l?void 0:l.date})}}),e.createElement("span",null)):void 0,isMobile:o}),e.createElement(A,null,e.createElement(ot,{onSubmit:function(e){return e.preventDefault()},"data-is-side":c},e.createElement(pt,null,u&&e.createElement(Sa,{onSubmit:r,bmiGenerated:m,locale:p,bmiUnit:d})))))},Fa=function(n){var a,o,i=n.isMobile,c=n.className,m=n.onSubmit,d=n.onError,u=n.isLoggedIn,p=n.currentUrl,g=n.onAddMeasurement,v=n.schema,h=n.source,f=n.babyLists,E=Sn().t,y=t(null),b=y[0],w=y[1],x=r((function(){return G(void 0,void 0,void 0,(function(){var e;return V(this,(function(t){switch(t.label){case 0:return[4,an(ln(on.GET_HEALTH_TOOL_BABY_GROWTH_INFO),"GET")];case 1:return e=t.sent(),w((function(){return nn(null==e?void 0:e.data)})),[2]}}))}))}),[]);return l((function(){x()}),[x]),e.createElement(at,{"data-is-mobile":i},e.createElement(lt,{bannerUrl:dn.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:dn.getAssetPath("embedToolBannerBlue.svg"),icon:e.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==b?void 0:b.featuredImage)||""}),heading:(null==b?void 0:b.title)||"",medicalReview:(null===(a=null==b?void 0:b.reviewBy)||void 0===a?void 0:a.reviewer)&&""!==(null===(o=null==b?void 0:b.reviewBy)||void 0===o?void 0:o.reviewer)?e.createElement(s,{size:"p4",color:X.colors.white,className:"embedded-review"},e.createElement("span",{dangerouslySetInnerHTML:{__html:E("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat((null==b?void 0:b.reviewBy.link)||"#",'"\n >\n ').concat(b.reviewBy.reviewer.trim(),"\n </a>"),date:b.reviewBy.date})}})):void 0,isMobile:i}),e.createElement(gt,null,e.createElement(vt,{onAddMeasurement:g,isMobile:i,schema:v,source:h,babyLists:f,className:c,onSubmit:m,onError:d,isLoggedIn:u,currentUrl:p})))},Da=function(n){var o=n.info,r=n.className,i=n.style,c=n.onChange,m=n.errorMessage,d=void 0===m?{}:m,u=n.locale,p=n.onClick,g=Sn().t,v=t({age:!1,height:!1,weight:!1}),h=v[0],f=v[1],E=In(u).getHealthToolLink,y=a((function(){return E(tn.OVULATION)}),[E]),b=t("male"),w=b[0],x=b[1],k=a((function(){return[{value:"male",label:g("gender.male"),content:e.createElement(Dn.GenderChooseBoy,null)},{value:"female",label:g("gender.female"),content:e.createElement(Dn.GenderChooseGirl,null)}]}),[]),C=function(e,t){""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},N=function(e){var t,n;n=function(e){f((function(e){return H(H({},e),{age:!0})}));var t=H(H({},o),{age:e});c&&c(t)},""!==(t=e)&&(isNaN(t)||isNaN(parseFloat(t))||t.includes("."))||n(t)};return l((function(){c&&c(H(H({},o),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),l((function(){f({age:!1,height:!1,weight:!1})}),[d]),e.createElement(ht,{style:i,className:r},e.createElement(ft,null,e.createElement(Et,{size:"md",name:"gender",label:g("bmi.selectGender"),CustomInput:e.createElement(jn,{options:k,value:w,onChange:function(e){return x(e)},className:"bmi--input-radio_gender"}),className:"bmi--input bmi--input-gender"})),e.createElement(yt,null,e.createElement(ft,null,e.createElement(Tn.Number,{label:e.createElement(s,{size:"label2",type:"bold",color:X.colors.gray600},g("bmi.ageInput")," ",e.createElement(s,{size:"label2",type:"bold",color:X.colors.gray300,as:"span"},g("bmi.ageInput.desc"))),value:Number(o.age)||0,onChange:function(e){return N(String(e))},error:h.age?"":d.age,min:0})),e.createElement(ft,null,e.createElement(Tn.Number,{label:e.createElement(s,{size:"label2",type:"bold",color:X.colors.gray600},g("bmi.heightInput")," ",e.createElement(s,{size:"label2",type:"bold",color:X.colors.gray300,as:"span"},g("bmi.heightInput.desc"))),value:Number(o.height)||0,onChange:function(e){return t=String(e),void C(t,(function(e){f((function(e){return H(H({},e),{height:!0})}));var t=H(H({},o),{height:e});c&&c(t)}));var t},error:h.height?"":d.height,min:0})),e.createElement(ft,null,e.createElement(Tn.Number,{label:e.createElement(s,{size:"label2",type:"bold",color:X.colors.gray600},g("bmi.weightInput")," ",e.createElement(s,{size:"label2",type:"bold",color:X.colors.gray300,as:"span"},g("bmi.weightInput.desc"))),value:Number(o.weight)||0,onChange:function(e){return t=String(e),f((function(e){return H(H({},e),{weight:!0})})),void C(t,(function(e){var t=H(H({},o),{weight:e});c&&c(t)}));var t},error:h.weight?"":d.weight,min:0,precision:1}))),e.createElement(bt,{size:"lg",isBlock:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:"https://".concat(Cn[u],"/").concat(y),onClick:function(){p(w)}},g("bmi.submit")))},ja=function(t){var n,a,l,o=t.isSide,r=t.locale,i=t.bmrContent,c=t.isMobile,m=t.info,d=t.inputErrorMessage,u=t.onFormChange,p=t.onSubmit,g=Sn().t;return e.createElement(at,{"data-is-side":o},e.createElement(lt,{isSide:o,bannerUrl:dn.getAssetPath("embedToolBannerBlue.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:null==i?void 0:i.featured_image,style:{objectFit:"contain",marginLeft:"auto"}}),heading:g("bmr.heading"),medicalReview:(null===(n=null==i?void 0:i.reviewBy)||void 0===n?void 0:n.reviewer)?e.createElement(s,{size:"n1",color:X.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:g("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat((null===(a=null==i?void 0:i.reviewBy)||void 0===a?void 0:a.link)||"#",'"\n >\n ').concat(i.reviewBy.reviewer,"\n </a>"),date:null===(l=null==i?void 0:i.reviewBy)||void 0===l?void 0:l.date})}}),e.createElement("span",null)):void 0,isMobile:c}),e.createElement(Mn,null,e.createElement(ot,{onSubmit:function(e){return e.preventDefault()},"data-is-side":o},e.createElement(pt,null,e.createElement(Da,{info:m,locale:r,errorMessage:d,onChange:u,onClick:p})))))},Aa=function(t){var n=t.src,a=t.title,l=t.backgroundSrc,o=t.className,r=t.reviewedSection,i=t.isAmp,c=t.isSide;return e.createElement(wt,{className:o},e.createElement(xt,{style:{backgroundImage:'url("'.concat(l,'")')}},e.createElement(kt,{"data-is-side":c},e.createElement(Ct,{"data-is-side":c},e.createElement(Y,{tag:"h4",color:"white"},a),r),e.createElement(Nt,null,i?e.createElement("amp-img",{src:n||"",alt:a,width:"140",height:"140"}):e.createElement("img",{src:n||"",style:{objectFit:"contain"},alt:a})))))},Ia=function(t){var n,a,l,o=t.backgroundDesktopSrc,r=t.backgroundMobileSrc,i=t.title,c=t.className,m=t.isSide,d=t.isAmp,u=t.ovulationContent,p=Sn().t,g=rn(null==u?void 0:u.reviewed_by);return e.createElement(Lt,{className:c,"data-is-side":m},e.createElement(zt,{style:{backgroundImage:"url('".concat(r||o,"')")}},e.createElement(Mt,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(_t,{"data-is-side":m},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:"20px"},alt:i}))),e.createElement(Aa,{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:X.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)),isSide:m}))},Ta=function(t){var n=t.onSubmitOvulation,a=t.locale,l=t.ovulationPageInfo,o=t.ovulationContent,r=t.isSide,i=void 0!==r&&r,c=Sn().t,s=cn(l||null);return e.createElement(at,{"data-is-side":i},e.createElement(Ia,{backgroundDesktopSrc:dn.getAssetPath("embedToolBannerPink.svg"),backgroundMobileSrc:dn.getAssetPath("embedToolBannerPink.svg"),title:c("healthTools.ovulationCalculator"),reviewedBy:s.reviewedBy,reviewedDate:s.reviewedDate,ovulationContent:o,isSide:i}),e.createElement(A,null,e.createElement(ot,{onSubmit:function(e){return e.preventDefault()},className:"ovulation-cal","data-is-side":i},e.createElement(St,{locale:a,onSubmitOvulation:n,isSide:i}))))},Ha=function(a){var o=a.info,r=a.onChange,i=a.errorMessage,c=void 0===i?{}:i,s=Sn().t,m=t({weightBefore:!1,height:!1,weight:!1}),d=m[0],u=m[1],p=t(0),g=p[0],v=p[1],h=n(null);l((function(){v(h.current.clientHeight)}));var f=function(e,t){""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)};return l((function(){r&&r(H({},o))}),[]),l((function(){u({weightBefore:!1,height:!1,weight:!1})}),[c]),e.createElement(e.Fragment,null,e.createElement("div",{className:"input-form-pwg"},e.createElement(I,{placeholder:s("pwg.placeholder.height"),className:"input-section",label:e.createElement("span",{style:{color:X.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px"},className:"label-text"},s("pregnancyWeightGain.heightInput")," ",e.createElement("span",{style:{color:"".concat(X.colors.gray300)}},s("bmi.heightInput.desc"))),errorMessage:d.height?"":null==c?void 0:c.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==o?void 0:o.height,onChange:function(e){f(e,(function(e){u((function(e){return H(H({},e),{height:!0})}));var t=H(H({},o),{height:e});r&&r(t)}))}})),e.createElement("div",{className:"input-form-pwg"},e.createElement(I,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:X.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px"},ref:h,className:"label-text"},s("pregnancyWeightGain.weightBeforeInput")," ",e.createElement("span",{style:{color:"".concat(X.colors.gray300)}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:d.weightBefore?"":null==c?void 0:c.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:function(e){f(e,(function(e){u((function(e){return H(H({},e),{weightBefore:!0})}));var t=H(H({},o),{weightBefore:e});r&&r(t)}))},value:null==o?void 0:o.weightBefore})),e.createElement("div",{className:"input-form-pwg"},e.createElement(I,{placeholder:s("pwg.placeholder.weight"),className:"input-section",label:e.createElement("span",{style:{color:X.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px",minHeight:g},className:"label-text"},s("pregnancyWeightGain.weightInput")," ",e.createElement("span",{style:{color:"".concat(X.colors.gray300)}},s("pregnancyWeightGain.weightInput.desc"))),errorMessage:d.weight?"":null==c?void 0:c.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==o?void 0:o.weight,onChange:function(e){f(e,(function(e){u((function(e){return H(H({},e),{weight:!0})}));var t=H(H({},o),{weight:e});r&&r(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=n.isSide,v=void 0!==g&&g,h=Sn().t,f=t(!1),E=f[0],y=f[1],b=t("notwins"),w=b[0],x=b[1],k=t({label:"1",value:1}),C=k[0],N=k[1],L=a((function(){return P([],Array(40),!0).map((function(e,t){return{label:"".concat(t+1),value:"".concat(t+1)}}))}),[]),z=In(r).getHealthToolLink,M=a((function(){return z(tn.PWG)}),[z]),_=(null===(l=null==m?void 0:m.reviewedBy)||void 0===l?void 0:l.display_name)?e.createElement(s,{size:"n1",color:X.colors.white},e.createElement("span",{dangerouslySetInnerHTML:{__html:h("toolPage.toolReviewer",{expert_name:'<a\n style="color: white"\n href="'.concat(rn(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(at,{"data-is-side":v},e.createElement(lt,{bannerUrl:dn.getAssetPath("embedToolBannerPink.svg"),icon:e.createElement("img",{alt:"health-tool-icon",src:m.featuredImage,style:{objectFit:"contain",marginLeft:"auto"}}),heading:h("pregnancyWeightGain.heading"),medicalReview:_,isMobile:p,isSide:v}),e.createElement(A,null,e.createElement(ot,{onSubmit:function(e){return e.preventDefault()},className:"pwg-view-mobile","data-is-side":v},e.createElement(Bt,{className:"hide-asking-mobile","data-is-side":v},e.createElement(T,{size:"label2",style:{display:"block",fontWeight:"bold",color:X.colors.gray600,fontSize:"12px"},className:"label",htmlFor:"gender-selector"},h("pregnancyWeightGain.havingTwins")),e.createElement(Ft,{options:[{value:"twins",label:h("switchBtn.yes")},{value:"notwins",label:h("switchBtn.no")}],value:w,onChange:function(e){return x(e)},className:"gender-selector",id:"twins-check",type:"circle",direction:"horizontal",size:"small",group:"group1"})),e.createElement(Dt,{"data-is-side":v},e.createElement(_n,{checked:E,onChange:function(){return y(!E)}}),e.createElement(T,{size:"label2",style:{display:"inline-block",color:X.colors.gray800,fontSize:"14px"},htmlFor:"gender-selector"},h("tool.askChecking"))),e.createElement(jt,null,e.createElement(At,{className:"input-section input-form-pwg","data-is-side":v},e.createElement(T,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:X.colors.gray600,fontWeight:"bold",fontSize:"12px"},htmlFor:"gender-selector"},h("pregnancyWeightGain.weekInput")),e.createElement(en,{options:L,placeholder:String(C.label),id:"weight-gain-dropdown",size:"md",value:C,onChange:function(e){return N({label:e.label,value:e.value})}})),e.createElement(Ha,{info:u,errorMessage:c,onChange:d})),e.createElement(Bt,{className:"hide-asking-desk","data-is-side":v},e.createElement(T,{size:"label2",style:{display:"block",fontWeight:"bold",color:X.colors.gray600,fontSize:"12px"},className:"label",htmlFor:"gender-selector"},h("pregnancyWeightGain.havingTwins")),e.createElement(Ft,{options:[{value:"twins",label:h("switchBtn.yes")},{value:"notwins",label:h("switchBtn.no")}],value:w,onChange:function(e){return x(e)},className:"gender-selector",id:"twins-check-mobile",type:"circle",direction:"horizontal",size:"small",group:"group1"})),e.createElement(It,{"data-is-side":v},e.createElement(K,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:"https://".concat(Cn[r],"/").concat(M),className:"due-date-calculate-button",size:"lg",color:"primary",onClick:function(){return i(w,C.value)},role:"button"},h("dueDatePage.lastPeriod.calculate"))))))},Wa=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",H({},{separator:""},{className:"amp-page-seperator",style:{color:"#8C8C8C",textTransform:"uppercase",fontSize:11,fontWeight:700,marginLeft:16}}),"Next article:"))},Ga=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 Oa={"en-PH":Pn,"vi-VN":Gn,"zh-TW":Vn,"id-ID":Wn};function Ua(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(Ga()),n=e[0],a=e[1],o=t(Va()),r=o[0],i=o[1];return l((function(){var e=function(){a(Ga()),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 pn(null!==(e=r.from)&&void 0!==e?e:new Date)})),v=g[0],h=g[1],f=a((function(){return gn(v,1)}),[v]);var E=H(H({},n),{goToNextMonth:function(){h((function(e){return gn(e,1)}))},goToPreviousMonth:function(){h((function(e){return hn(e,1)}))},range:u,setRange:p,hoverDay:c,setHoverDay:s});return e.createElement(e.Fragment,null,e.createElement(Ra,H({},E,{date:v})),!m&&e.createElement(Tt,null),!m&&e.createElement(Ra,H({},E,{date:f})))}function Ra(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,v=void 0!==g&&g,h=t.hoverDay,f=t.setHoverDay,E=Sn().locale,y=a((function(){var e;return null!==(e=Oa[E])&&void 0!==e?e:Oa["en-PH"]}),[E]),b=a((function(){return vn(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 x(t,n){if(null===t)return e.createElement(Zt,{key:"idx-".concat(n),"data-empty":"true"});var a=t.getDate(),l=En(t),i=!!o.from&&yn(o.from,t),c=!!o.to&&yn(o.to,t),s=i||c,u=!1;null!==h&&o.from&&un(o.from,h)&&!o.to?u=bn(t,{start:o.from,end:h}):o.from&&o.to&&(u=bn(t,{start:o.from,end:o.to}));var g=!1;return m&&d?g=!bn(t,{start:m,end:d}):m?g=un(t,m):d&&(g=wn(t,d)),e.createElement(Zt,{key:a,"data-is-today":l,"data-is-past":!l&&xn(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 v&&o.from&&!o.to&&p(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?un(e,t.from)?H(H({},t),{from:e}):H(H({},t),{to:e}):t:H(H({},t),{from:e})}(t,e)}))}},e.createElement(qt,{onClick:function(){}},e.createElement("p",null,a)))}return l((function(){o.from&&o.to&&i(o)}),[o]),e.createElement(Ht,{className:"calendar-wrapper"},e.createElement(Pt,null,e.createElement(K,{onClick:c,size:"md",color:"ghost",icon:e.createElement("img",{src:dn.getAssetPath("calendarArrowLeft.svg")})}),e.createElement("div",{className:"calendar-month"},b,e.createElement("strong",null,vn(n,"yyyy"))),e.createElement(K,{onClick:s,size:"md",color:"ghost",icon:e.createElement("img",{src:dn.getAssetPath("calendarArrowRight.svg")})})),e.createElement(Wt,null,e.createElement("div",null,e.createElement(Gt,null,w.map((function(t,n){return e.createElement(Vt,{key:"".concat(t,"-").concat(n)},t)})))),e.createElement("div",null,function(){for(var t=n.getFullYear(),a=n.getMonth(),l=fn(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(Ot,{key:"month-".concat(a),"data-month-index":a,"data-has-range":Boolean(o.from&&o.to)},e.createElement(Ut,null,e.createElement(Rt,null,r.map(x))))}())))}function Za(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,v=void 0!==g&&g;s||(s={from:null,to:null});var h=t(!1),f=h[0],E=h[1];function y(){E(!1)}var b=n(null);function w(e){u&&u(e)}function x(e){return vn(e,"dd/MM/yyyy")}Hn(b,(function(){y()}));var k=a((function(){return s.from&&s.to?yn(s.from,s.to)?x(s.from):"".concat(x(s.from)," - ").concat(x(s.to)):""}),[s.from,s.to]);return e.createElement(Kt,{className:[p,f&&"focused"].filter(Boolean).join(" "),ref:b},e.createElement("label",{htmlFor:c},e.createElement(I,{size:r,value:k,name:c,actionIcon:e.createElement("img",{src:dn.getAssetPath("calendar.svg")}),onFocus:function(){return E(!0)}})),f?e.createElement(Xt,{onMouseDown:function(e){e.stopPropagation()}},e.createElement(Ua,{value:s,onChange:w,minDate:m,maxDate:d,close:y,autoClose:v})):null)}var qa,Ka,Xa,Ya,Ja,Qa,$a,el,tl,nl=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"}))},al=function(t){var n=t.url,a=t.onCopied,l=t.locale,o=Sn().t,r=On(n||"").filter((function(e){return!e.allowedLocales||e.allowedLocales.includes(l)}));return e.createElement(Yt,null,e.createElement(s,{size:"p3",color:X.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(K,{size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:e.createElement(nl,null),onClick:function(){return G(void 0,void 0,void 0,(function(){var e;return V(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]}}))}))}})))},ll=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"}))},ol=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=W(t,["open","title","onClose","onCopied","onShared","url","locale"]),p=Sn().t,g=r((function(){return G(void 0,void 0,void 0,(function(){var e;return V(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]),v=On(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(Jt,H({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:X.colors.gray600},p("share.title")),e.createElement("div",{className:"icon-group"},v.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:X.colors.gray600},p("share.copyLink")),e.createElement("div",{className:"input-group"},e.createElement(Un,{name:"link",size:"md",value:m,isDisabled:!0}),e.createElement(K,{size:"md",type:"button",color:"tertiary",icon:e.createElement(ll,null),onClick:g})))))},rl=kn.footer(qa||(qa=O(["\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"])),Z.mbDown,Z.mbDown,Z.mbUp,(function(e){return e.theme.colors.neutral500}),(function(e){return e.theme.colors.neutral500}),Z.mbUp,Z.mbDown,(function(e){return e.theme.colors.neutral500}),Z.mbUp,Z.mbUp,(function(e){return e.theme.colors.neutral500}),Z.mbDown,(function(e){return e.theme.colors.neutral500}),Z.mbDown,Z.mbUp,(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),Z.mbDown,(function(e){return e.theme.colors.neutral500}),Z.mbDown,Z.mbUp,(function(e){return e.theme.colors.neutral500}),Z.mbDown,Z.mbUp,(function(e){return e.theme.colors.white}),(function(e){return e.theme.sizes.fwBold}),Z.mbUp),il=kn.div(Ka||(Ka=O(["\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"]))),cl=function(t){var n=t.url,a=t.isMobile,l=t.dataEventCategory,o=t.dataEventAction,r=t.dataEventLabel,i=t.isAmp;return e.createElement(il,{"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}))},sl=function(t){var n,a,o,r,i,c,m,d,u,p,g,v,h,f,E,y,b,w,x,k,C,N,L,z,M,_,S,B,F,D,j=t.className,I=t.type,T=void 0===I?"main":I,H=t.footerInfo,P=t.isMobile,W=t.locale,G=t.isAmp,V=Sn().t,O=null==H?void 0:H.menu;l((function(){setTimeout((function(){return null==q?void 0:q.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(rl,{as:G&&"mini"===T?"div":"footer",className:j,style:"mini"===T?{backgroundColor:X.colors.neutral50}:{},"next-page-hide":!0},e.createElement(A,null,e.createElement("div",{className:"inner","data-type":T,"next-page-hide":""},"main"===T?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},G?(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(K,{className:"signupButton",color:"primary",size:"lg"},V("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},G?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,O&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(g=null===(p=O[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(Cn[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===(v=O[1])||void 0===v?void 0:v.menu_title),null===(f=null===(h=O[1])||void 0===h?void 0:h.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(Cn[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(Cn[W]).concat(t.url)},t.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(s,{type:"regular",size:"sm",className:"linkTitle"},null===(E=O[2])||void 0===E?void 0:E.menu_title),null===(b=null===(y=O[2])||void 0===y?void 0:y.items)||void 0===b?void 0:b.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))})))),!G&&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===(x=null==H?void 0:H.branch)||void 0===x?void 0:x.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(cl,{url:t.flag,isMobile:P,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url,isAmp:G}))}))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright","data-is-amp":G||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"},G?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(Cn[W]).concat(t.url),"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(Cn[W]).concat(t.url)},e.createElement(s,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:"https://".concat(Cn[W]).concat(t.url),size:"sm",type:"regular",style:{color:X.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===(S=null===(_=null==H?void 0:H.menu[2])||void 0===_?void 0:_.items)||void 0===S?void 0:S.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:X.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))}))),!G&&"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===(B=null==H?void 0:H.social)||void 0===B?void 0:B.title),e.createElement("div",{className:"icons"},null===(D=null===(F=null==H?void 0:H.social)||void 0===F?void 0:F.socials)||void 0===D?void 0:D.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},G?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"}))}))))))))))},ml=kn.footer(Xa||(Xa=O(["\n position: relative;\n overflow: hidden;\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n }\n\n a {\n text-decoration: none;\n }\n a :hover {\n color: ",";\n }\n"],["\n position: relative;\n overflow: hidden;\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n }\n\n a {\n text-decoration: none;\n }\n a :hover {\n color: ",";\n }\n"])),(function(e){return e.theme.mbColors.cobalt})),dl=kn.div(Ya||(Ya=O(["\n position: relative;\n padding: 80px 0 40px;\n margin: auto 68px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n\n border-bottom: 1px solid ",";\n\n "," {\n margin: auto 16px;\n flex-wrap: wrap;\n row-gap: 32px;\n column-gap: 16px;\n }\n\n "," {\n margin: auto 0;\n }\n"],["\n position: relative;\n padding: 80px 0 40px;\n margin: auto 68px;\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n\n border-bottom: 1px solid ",";\n\n "," {\n margin: auto 16px;\n flex-wrap: wrap;\n row-gap: 32px;\n column-gap: 16px;\n }\n\n "," {\n margin: auto 0;\n }\n"])),(function(e){return e.theme.colors.neutral200}),Z.tdDown,Z.mbDown),ul=kn.div(Ja||(Ja=O(["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n\n "," {\n flex: 1 1 160px;\n }\n .title {\n padding-bottom: 4px;\n }\n"],["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n flex-direction: column;\n\n "," {\n flex: 1 1 160px;\n }\n .title {\n padding-bottom: 4px;\n }\n"])),Z.mbDown),pl=kn.div(Qa||(Qa=O(["\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"]))),gl=kn.div($a||($a=O(["\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"])),Z.mbDown),vl=kn.div(el||(el=O(["\n background-color: ",";\n padding: 16px 0;\n position: relative;\n\n img {\n width: 89px;\n height: 32px;\n }\n .content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 174px;\n margin: auto 68px;\n\n "," {\n margin: auto 16px;\n }\n\n "," {\n flex-direction: column-reverse;\n gap: 16px;\n align-items: flex-start;\n margin: auto 0;\n }\n }\n\n .verify {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n }\n"],["\n background-color: ",";\n padding: 16px 0;\n position: relative;\n\n img {\n width: 89px;\n height: 32px;\n }\n .content {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 174px;\n margin: auto 68px;\n\n "," {\n margin: auto 16px;\n }\n\n "," {\n flex-direction: column-reverse;\n gap: 16px;\n align-items: flex-start;\n margin: auto 0;\n }\n }\n\n .verify {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n }\n"])),(function(e){return e.theme.mbColors.dark}),Z.tdDown,Z.mbDown),hl=kn.div(tl||(tl=O(["\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}),Z.mbDown),fl=function(t){var n,a=t.logoType,l=void 0===a?"marryBaby":a,o=t.footerMenu,r=t.background;if(!o)return null;var i=o.general,c=o.menu,s=o.socials;return e.createElement(ml,{style:{backgroundColor:r||"none"}},e.createElement(hl,null,e.createElement(A,null,e.createElement(dl,null,null==c?void 0:c.map((function(t,n){var a=t.menu_title,l=t.items;return e.createElement(ul,{key:"mbf".concat(n)},e.createElement(An,{className:"title",type:"subtitle-1",color:X.mbColors.pink},a),null==l?void 0:l.map((function(t,n){var a=t.title,l=t.url;return e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":"".concat(l),className:"link",href:l,key:"footer-links-".concat(n)},e.createElement(pl,{key:"mbitem".concat(n)},e.createElement(An,{type:"bodytext-2",color:X.mbColors.gray},a)))})))})))),e.createElement(A,null,e.createElement(gl,null,e.createElement(Qt,{className:"logo",type:l,width:"127px"}),e.createElement("div",{className:"content"},e.createElement(An,{type:"bodytext-2",color:X.mbColors.gray},null==i?void 0:i.content)),e.createElement("div",{className:"social-link"},null==s?void 0:s.map((function(t,n){var a=t.icon,l=t.name,o=t.url;return e.createElement("a",{key:"social".concat(n),target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - ".concat(l),"data-content-label":l,href:o},e.createElement("img",{src:a,alt:l}))}))))),e.createElement(vl,null,e.createElement(A,null,e.createElement("div",{className:"content"},e.createElement(An,{type:"bodytext-3",color:X.colors.white},null==i?void 0:i.copyright),e.createElement("div",{className:"verify"},null===(n=null==i?void 0:i.verified)||void 0===n?void 0:n.map((function(t,n){var a=t.image,l=t.url;return e.createElement("img",{key:"imgMbFt".concat(n),src:a,alt:l})}))))))))},El=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==q?void 0:q.update()}),500)}),[]),"helloSites"===s?e.createElement(sl,{isAmp:c,isMobile:o,type:n,locale:r,footerInfo:i||{}}):e.createElement(fl,{footerMenu:i,background:null==t?void 0:t.background})};export{Rn as A,Zn as B,aa as C,Ma as D,El as E,Kn as F,Xn as G,ha as I,Ta as O,Jn as P,ia as R,Qn as S,$n as T,ta as U,qn as a,ea as b,na as c,ca as d,da as e,pa as f,ga as g,va as h,fa as i,Ea as j,ba as k,wa as l,xa as m,ka as n,Ca as o,Na as p,La as q,za as r,Ba as s,Fa as t,ja as u,Pa as v,Wa as w,Za as x,al as y,ol as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e,_ as a}from"./tslib.es6-dcf36680.js";import t,{useMemo as n}from"react";import{a6 as s,L as i,a7 as o,a8 as l,a9 as r}from"./index.styled-
|
|
1
|
+
import{b as e,_ as a}from"./tslib.es6-dcf36680.js";import t,{useMemo as n}from"react";import{a6 as s,L as i,a7 as o,a8 as l,a9 as r}from"./index.styled-264d32c3.js";var c=function(c){var m=c.name,d=c.value,u=c.errorMessage,p=c.isNumerousKeyboard,v=void 0!==p&&p,y=c.actionIcon,b=c.displayIcon,C=c.onActionClick,g=c.label,N=c.className,E=c.onChange,f=c.isDisabled,h=c.CustomInput,I=c.size,k=c.style,A=c.autoComplete,K=void 0===A?"off":A,z=c.type,L=void 0===z?"text":z,x=c.inputClassName,H=c.trackingAttributes,M=c.enterKeyHint,j=e(c,["name","value","errorMessage","isNumerousKeyboard","actionIcon","displayIcon","onActionClick","label","className","onChange","isDisabled","CustomInput","size","style","autoComplete","type","inputClassName","trackingAttributes","enterKeyHint"]),D=n((function(){return H?{"data-event-category":H.dataEventCategory,"data-event-action":H.dataEventAction,"data-event-label":H.dataEventLabel}:{}}),[H]);return t.createElement(s,{"data-size":I,className:N,"data-has-action-icon":!!y||void 0,"data-has-display-icon":!!b||void 0,"data-has-error":u&&u.length>0||void 0,style:k},g&&t.createElement(i,{size:"label2",htmlFor:m,className:"inputLabel"},g),t.createElement("div",{style:{position:"relative"}},h||t.createElement("input",a({id:m,name:m,onChange:function(e){return E&&E(e.target.value)},type:L,"aria-label":L,value:d,disabled:f,autoComplete:K,inputMode:v||"number"===L?"numeric":L,pattern:v?"[0-9]*":".*",className:x,enterKeyHint:M},D,j)),b&&t.createElement(o,{className:"displayIcon"},b),y&&t.createElement(l,{className:"actionIcon",onClick:C},y)),u&&u.length>0&&t.createElement(r,{className:"errorLabel"},u))};export{c as I};
|
|
@@ -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 s,useMemo as d}from"react";import c,{keyframes as p}from"styled-components";import{M as u,t as m}from"./screenSizeContext-f2090394.js";import{D as g,T as h}from"./index.styled-264d32c3.js";import{B as v}from"./index-98c0dac3.js";import{formatDistanceToNow as f,format as b}from"date-fns";import x from"date-fns/locale/en-US";import A from"date-fns/locale/hi";import w from"date-fns/locale/id";import E from"date-fns/locale/ms";import y from"date-fns/locale/th";import _ from"date-fns/locale/vi";import k from"date-fns/locale/zh-TW";import{u as C}from"./useTranslations-ddaec288.js";import{d as T}from"./index-9dd60ba6.js";import{g as I}from"./cookieHelper-0e8521c3.js";import L from"slugify";import O from"string-format";import{t as D}from"./theme-a50a1aa5.js";import{useId as B}from"react-id-generator";import{H as N}from"./index-3c17bc28.js";var M,S,P,R,G,U,H,Q,F={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},z=function(e){var t=e.type,i=void 0===t?"square":t,l=e.size,s=e.avatarImg,d=e.avatarUrl,c=e.firstLetter,p=e.backgroundColor,u=e.onClick,m=e.style,h=e.className,v=e.isAmp,f=void 0!==v&&v,b=e.width,x=e.height,A=l?F[l]:void 0,w=a(!1),E=w[0],y=w[1];r((function(){if(d){var n=document.createElement("img");n.setAttribute("src",d),n.addEventListener("error",(function(){y(!0)}))}}),[d,y]);var _=(!d&&!s||E)&&c;return o.createElement(g,{style:n(n({},m),{"--size":!f&&A?A+"px":void 0,"--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:h,avatarUrl:d,"data-is-amp":f,"data-custom-size":!!l},s,d&&!E&&o.createElement("img",{src:d}),_&&c)},j=c.div(M||(M=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 --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"])),(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(S||(S=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(P||(P=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), -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), -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(R||(R=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})),V=c.div(G||(G=e(["\n max-width: 16px;\n margin-right: 8px;\n"],["\n max-width: 16px;\n margin-right: 8px;\n"]))),Z=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,s=e.id,d=e.placeholderIcon,c=e.placeholder,p=e.style,u=e.size,m=void 0===u?"lg":u,g=e.groupedWithLabel,h=e.disabled,v=e.dropdownLabelTrackingAttributes,f=void 0===v?{}:v,b=e.isNativeSelect,x=void 0!==b&&b,A=o.useState(!1),w=A[0],E=A[1],y=function(){return!h&&E(!w)};return x?o.createElement(j,{as:"select","data-is-native":"true",value:(null==i?void 0:i.value)||void 0,disabled:h,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(s,"-").concat(n.value),value:n.value,disabled:!!n.disabled&&n.disabled},n.label)}))):o.createElement(j,{className:t,"data-dropdown-open":w||void 0,"data-size":m,id:s,"data-has-icons":!!d,style:p,onBlur:function(){return E(!1)},tabIndex:0,"data-disabled":h},!!g&&o.createElement(Z,null,g),o.createElement(K,n({onClick:y,className:g&&"with-label"},f),d," ",o.createElement("span",null,i&&i.value?i.label:c)),w&&o.createElement(Y,{onClick:y,"data-has-icons":!!d},a.map((function(n){return o.createElement(W,{key:"".concat(s,"-").concat(n.value),"data-selected":i&&i.value===n.value||void 0,onClick:function(){return!n.disabled&&!h&&(null==l?void 0:l(n))},"data-disabled":!!n.disabled&&n.disabled},n.icon&&o.createElement(V,null,n.icon),n.label)}))))},J=c.div(H||(H=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(Q||(Q=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,s=n.children,d=n.className,c=void 0===d?"":d,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),s)),o.createElement(q,{"data-open":r,onClick:l}))},nn="dd/MM/yyyy",en="/images/avatar.jpg",tn="/images/default-image.jpg",on={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR"},an={"id-ID":{"kalkulator-bmi":on.BMI,"kebutuhan-kalori":on.BMR,"kalkulator-hari-perkiraan-lahir":on.DUE_DATE,"kalkulator-masa-subur-2":on.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":on.PWG,"kalkulator-detak-jantung-saat-olahraga":on.THR},"ms-MY":{"kalkulator-bmi":on.BMI,"kalkulator-bmr":on.BMR,"kalkulator-tarikh-bersalin":on.DUE_DATE,"kalkulator-kesuburan":on.OVULATION,"kalkulator-tambah-berat-badan-hamil":on.PWG,"target-heart-rate-calculator":on.THR},"vi-VN":{"cach-tinh-chi-so-bmi":on.BMI,"tinh-chi-so-bmr":on.BMR,"cong-cu-tinh-ngay-du-sinh":on.DUE_DATE,"tinh-ngay-rung-trung":on.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":on.PWG,"cong-cu-do-nhip-tim":on.THR},"zh-TW":{"bmi-calculator":on.BMI,"bmr-calculator":on.BMR,"due-date-calculator":on.DUE_DATE,"ovulation-calculator":on.OVULATION,"pregnancy-weight-gain-calculator":on.PWG,"target-heart-rate-calculator":on.THR},"en-PH":{"bmi-calculator":on.BMI,"bmr-calculator":on.BMR,"due-date-calculator":on.DUE_DATE,"ovulation-calculator":on.OVULATION,"pregnancy-weight-gain-calculator":on.PWG,"target-heart-rate-calculator":on.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":on.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":on.BMR,"เครื่องมือคำนวณกำหนดคลอด":on.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":on.OVULATION,"เครื่องคำนวณน้ำหนักตัว":on.PWG,"เครื่องวัดอัตราการเต้น":on.THR},"hi-IN":{"bmi-calculator-en":on.BMI,"bmi-calculator":on.BMI,"bmr-calculator":on.BMR,"delivery-date-calculator":on.DUE_DATE,"ovulation-calculator":on.OVULATION,"pregnancy-weight-gain-calculator":on.PWG,"target-heart-rate-calculator":on.THR},"km-KH":{"គណនា-bmi":on.BMI,"គណនា-bmr":on.BMR,"គណនាថ្ងៃសម្រាលកូន":on.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":on.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":on.PWG,"គណនារកចង្វាក់បេះដូងល្អ":on.THR},"my-MM":{"bmi-calculator":on.BMI,"bmr-calculator":on.BMR,"due-date-calendar":on.DUE_DATE,"ovulation-calculator":on.OVULATION,"pregnaancy-weight-calculator":on.PWG,"target-heartrate":on.THR,"pregnancy-weight-calculator":on.PWG,"target-heart-rate":on.THR}},rn="hhg_user_token",ln="together_admin_token",sn={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,cn={"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"}},pn=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DUE_DATE_FORMAT:nn,DEFAULT_AVATAR_IMG:en,DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:tn,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:on,LOCALE_HEALTH_TOOLS:an,BEARER_TOKEN_COOKIE:rn,TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:ln,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:sn,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:cn}),un=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||""}:{}},mn=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}:{}},gn=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:un(e.author),reviewer:e.reviewed_by&&un(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?n(n({},null==e?void 0:e.reviewed),{author:hn(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.author),editor:hn(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.editor),expert:hn(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.expert),fact_check:hn(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:bn(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(bn),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:mn(e.expert),metaTag:e.meta_tag||null}:{}},hn=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}:{}},fn=function(n){return{postTitle:n.post_title,permalink:n.permalink}},bn=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 bn(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?fn(n.reviewed_by):null,reviewedDate:n.reviewed_date||"",faqs:n.faqs?n.faqs.map((function(n){return xn(n)})):null}:{}},xn=function(n){return{title:n.title,content:n.content}},An=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)}:{}},En=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,s,d,c,p,u,m,g,h,v,f,b,x,A,w;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===(s=n.user)||void 0===s?void 0:s.email)||"",name:(null===(d=n.user)||void 0===d?void 0:d.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===(h=n.user)||void 0===h?void 0:h.partner_id)?String(null===(v=n.user)||void 0===v?void 0:v.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===(A=n.user)||void 0===A?void 0:A.hospital_id)?String(null===(w=n.user)||void 0===w?void 0:w.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||""}:{}},_n=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,s,d,c,p,u,m,g,h,v,f,b,x,A,w,E,y,_,k,C,T,I,L,O,D,B;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===(s=n.user)||void 0===s?void 0:s.type)||"",email:(null===(d=n.user)||void 0===d?void 0:d.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===(h=n.user)||void 0===h?void 0:h.hospital_id)?String(null===(v=n.user)||void 0===v?void 0:v.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===(A=n.mentioned)||void 0===A?void 0:A.role)?null===(E=null===(w=n.mentioned)||void 0===w?void 0:w.role)||void 0===E?void 0:E.toLowerCase():"",avatar:(null===(y=n.mentioned)||void 0===y?void 0:y.avatar)||"",type:(null===(_=n.mentioned)||void 0===_?void 0:_.type)||"",email:(null===(k=n.mentioned)||void 0===k?void 0:k.email)||"",partnerId:(null===(C=n.mentioned)||void 0===C?void 0:C.partner_id)?String(null===(T=n.mentioned)||void 0===T?void 0:T.partner_id):"",doctorId:(null===(I=n.mentioned)||void 0===I?void 0:I.doctor_id)?String(null===(L=n.mentioned)||void 0===L?void 0:L.doctor_id):"",hospitalId:(null===(O=n.mentioned)||void 0===O?void 0:O.hospital_id)?String(null===(D=n.mentioned)||void 0===D?void 0:D.hospital_id):"",title:(null===(B=n.mentioned)||void 0===B?void 0:B.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)||"#":""},Tn=function(n){var e,t,i;return n&&n.information?{information:null!==(e=n.information.map((function(n){return{title:n.title,description:n.description}})))&&void 0!==e?e:[],reviewBy:{reviewer:(null===(t=n.reviewed_by)||void 0===t?void 0:t.display_name)||(null===(i=n.reviewed_by)||void 0===i?void 0:i.name)||"",date:n.reviewed_date||"",link:Cn(null==n?void 0:n.reviewed_by)},metaTag:n.meta_tag||"",title:n.title||"",description:n.description||"",disclaimer:n.disclaimer||"",is_sponsored:n.is_sponsored||!1,sponsor:n.sponsor,featuredImage:n.featured_image||""}:{}},In=Object.freeze({__proto__:null,formatAuthor:un,formatArticleExpert:mn,formatArticle:gn,formatUserProfile:hn,formatBMIResult:function(n){var e,t,i,o,a,r,l,s,d;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!==(s=null==n?void 0:n.faqs)&&void 0!==s?s:[],suggestedArticlesLink:null!==(d=null==n?void 0:n.suggested_articles_link)&&void 0!==d?d:""}:{}},formatSponsor:vn,formatReviewedCategory:fn,formatCategory:bn,formatCategoryApi:function(n){return n?{categoryInfo:bn(n.data.category)||null,explainersPosts:(n.data.explainers_posts||[]).map(gn),subCategories:(n.data.sub_categories||[]).map(bn)}:{}},formatFaqsCategory:xn,formatHealthTool:An,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 An(n)})))&&void 0!==t?t:[]}:{}},formatCommunity:wn,formatTopic:En,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:_n,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?hn(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?hn(n.reviewed_by):null,reviewedDate:n.reviewed_date,metaTag:n.meta_tag}:{}},formatBabyGrowthContent:Tn}),Ln={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"},On={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},Dn={BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ALL_CATEGORIES:"categories?type=all",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_ARTICLE_DETAIL:"article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch/{fullSlug}",GET_PREVIEW_ARTICLE:"fetch/{fullSlug}?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_PAGE_STATIC:"page/{slug}",GET_ALL_HEALTH_TOOLS:"healthtools",GET_ALL_MARRYBABY_HEALTH_TOOLS:"health-tools",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_AUTHOR:"author/{slug}",GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_AZ_DRUGS:"category/a-z/{category}",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_ARTICLES_BY_IDS:"articles?ids={ids}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_PROFILE:"user/profile",GET_ADMIN_PROFILE:"GET_ADMIN_PROFILE",GET_FEATURE:"feature",POST_NEW_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",GET_ALL_BOOKMARK:"bookmark",SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",GET_HEALTH_TOOL_BABY_GROWTH_INFO:"health-tools/baby-growth-tracking/info",POST_UPDATE_LOCATION:"tracking/geo/",GET_SIDIS_DUE_DATE:"frontend/tools/due_date",GET_SIDIS_OVULATION:"frontend/tools/ovulation",GET_SIDIS_BMI:"frontend/tools/bmi",GET_SIDIS_BMR:"frontend/tools/bmr",POST_LOGOUT:"user/logout",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_ALL_SPOTLIGHT:"spotlights?per_page={perPage}&order_by={orderBy}",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",POST_COMMENT_NOTIFICATION:"comment/notification",GET_ABOUT_US_DATA:"about",POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_SSO_VERIFY_TOKEN:"verify-id-token",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",FETCH_URL_DATA:"preview",GET_SPOTLIGHT_LANDING:"spotlight/{slug}",GET_FOOTER_INFO:"footer",CHECK_SSO_EMAIL:"member/check-email",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_DYNAMIC_FOOTER:"menu/footer",GET_EXPERTS:"experts?page={page}&number={perPage}&s={search}",GET_EXPERT_BY_ID:"expert/{id}"},Bn={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},Nn=function(n,e){if("string"!=typeof n)throw new TypeError("argument str must be a string");var t={},i=(e||{}).decode||Rn,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 s=n.slice(a+1,r).trim();34===s.charCodeAt(0)&&(s=s.slice(1,-1)),t[l]=Un(s,i)}o=r+1}return t},Mn=function(n,e,t){var i=t||{},o=i.encode||Gn;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 s=i.expires;if(!function(n){return"[object Date]"===Sn.call(n)||n instanceof Date}(s)||isNaN(s.valueOf()))throw new TypeError("option expires is invalid");r+="; Expires="+s.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},Sn=Object.prototype.toString,Pn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Rn(n){return-1!==n.indexOf("%")?decodeURIComponent(n):n}function Gn(n){return encodeURIComponent(n)}function Un(n,e){try{return e(n)}catch(e){return n}}var Hn={parse:Nn,serialize:Mn},Qn={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},Fn=l({data:Qn,action:{pushNotifications:function(n){return n},sanitizeFunction:function(n){return n}}}),zn=Qn,jn=function(n){var e=n.locale,t=void 0===e?"vi-VN":e,i=n.children,l=n.userInfo,s=n.router,d=n.env,c=void 0===d?{isMarryBaby:!1,togetherBasePath:"/community"}:d,p=n.sanitizeFunction,u=void 0===p?function(n){return n}:p,m=n.pushNotifications,g=void 0===m?function(){return!1}:m,h=a(),v=h[0],f=h[1];return zn={userInfo:l,locale:t,togetherUserId:v,router:s,env:c},r((function(){(null==l?void 0:l.id)&&oe(qn(Ln.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(Fn.Provider,{value:{data:{userInfo:l,locale:t,togetherUserId:v,router:s,env:c},action:{pushNotifications:g,sanitizeFunction:u}}},i)},Kn={"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"},Yn={"vi-VN":"marrybaby.vn"},Wn=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",Vn=function(n){var e=zn.env.isMarryBaby;return"https://".concat(e?Yn[n]:Kn[n])},Zn=function(n){var e=n.indexOf("?");return e>=0?n.slice(0,e+1)+n.slice(e+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):n},Xn=function(n){var e=zn.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(Kn[n])},Jn=function(n,e,t){return"undefined"!=typeof window?window.location.href:"".concat(Xn(n)).concat(e).concat(t)},qn=function(e,t,i){var o="";i&&(o=Object.keys(i).map((function(n){return n+"="+i[n]})).join("&"));var a=((null==zn?void 0:zn.env)||{}).togetherBaseApiUrl,r=void 0===a?"":a,l=O(e,n(n({},(null==t?void 0:t._locale)?{website_url:Vn(String(t._locale))}:{}),t));return l+="".concat(l.includes("?")?"&":"?").concat(o),r+"api/v1/"+Zn(l)},$n=function(e,t){var i=((null==zn?void 0:zn.env)||{}).discoverBaseApiUrl;return(void 0===i?"":i)+"wp-json/api/"+Zn(O(e,n({},t)))},ne=function(e,t){var i=((null==zn?void 0:zn.env)||{}).careBaseApiUrl;return((void 0===i?"":i)||"https://service-health-care.hellohealthgroup.com/")+Zn(O(e,n({},t)))},ee=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},te=function(e,o,a,r){return void 0===r&&(r=!1),t(void 0,void 0,void 0,(function(){var t,l,s,d,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(n({method:o},ee(a)),{headers:n({},null==a?void 0:a.headers)})).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===(s=null==l?void 0:l.response)||void 0===s?void 0:s.status,statusText:null===(d=null==l?void 0:l.response)||void 0===d?void 0:d.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}))}))},ie=function(e,o,a,r){return void 0===o&&(o="GET"),t(void 0,void 0,void 0,(function(){var t,l,s,d,c,p,u,m,g,h,v,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,s=Hn.parse(r||""),d=s[rn],!(c=d||I(rn))||!c.length)return[3,5];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,fetch(t,n(n({method:o},ee(a)),{headers:n({Authorization:"Bearer "+c},null==a?void 0:a.headers)})).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,te(l||t,o,a)]:p?[2,p]:[3,4];case 3:return u=i.sent(),console.log({status:null===(h=null==u?void 0:u.response)||void 0===h?void 0:h.status,statusText:null===(v=null==u?void 0:u.response)||void 0===v?void 0:v.statusText}),[2,te(l||t,o,a)];case 4:return[3,6];case 5:return[2,te(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]}}))}))},oe=function(e,o,a,r){return t(void 0,void 0,void 0,(function(){var t,l,s,d;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t=Hn.parse(r||""),l=t[rn],(s=l||I(rn))&&s.length?[4,fetch(e,n(n({method:o},ee(a)),{headers:n({Authorization:"Bearer "+s},null==a?void 0:a.headers)})).then((function(n){return n.json()}))]:[3,2];case 1:if(d=i.sent())return[2,d];i.label=2;case 2:return[3,4];case 3:return i.sent(),[2,null];case 4:return[2,null]}}))}))},ae=function(e,o,a,r){return t(void 0,void 0,void 0,(function(){var t,l,s,d;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t=Hn.parse(r||""),l=t[ln],(s=l||I(ln))&&s.length?[4,fetch(e,n(n({method:o},ee(a)),{headers:n({Authorization:"Bearer "+s},null==a?void 0:a.headers)})).then((function(n){return n.json()}))]:[3,2];case 1:if(d=i.sent())return[2,d];i.label=2;case 2:return[3,4];case 3:return i.sent(),[2,null];case 4:return[2,null]}}))}))};function re(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 le,se,de,ce,pe=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=zn.env.publicSSO,i=n||window.location.href;return e&&Object.keys(e).map((function(n){re(i,n,e[n])})),re(i,"source","communities"),t?"".concat(t,"?returnUrl=").concat(encodeURIComponent(i.toString())):i}("".concat(o).concat(t,"/on-boarding?return=").concat(encodeURIComponent(i)),e)},ue=function(n,e,t,i){return t&&e?"".concat(t,"-").concat(e):"".concat(L(n||"",{lower:!0,locale:i||Wn}),"-").concat(e)},me=function(n){var e,t=n.name,i=n.id,o=n.locale;return"/care/".concat(null===(e=cn[o||"vi-VN"])||void 0===e?void 0:e.DOCTOR,"/").concat(ue(t,i))},ge=function(n){var e,t=n.name,i=n.id,o=n.slug,a=n.locale;return"/care/".concat(null===(e=cn[a||"vi-VN"])||void 0===e?void 0:e.HOSPITAL,"/").concat(ue(t,i,o))},he=c.div(le||(le=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})),ve=function(n){var e=n.className,t=n.isMarryBaby,i=n.style,l=n.avatar,d=n.username,c=n.isLazy,p=s(Fn).data.env.isMarryBaby,u="boolean"==typeof t?t:p,m=a(!1),g=m[0],h=m[1];return r((function(){var n=new Image;n.onerror=function(){h(!0)},n.src=l}),[]),o.createElement(he,{"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(){h(!0)}}):o.createElement("div",{className:"avatar avatar-default"},d&&(null==d?void 0:d.length)>0?d[0].toUpperCase():"A"))},fe="data:image/png;base64,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",be="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",xe="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",Ae=c.div(se||(se=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"]))),we=p(de||(de=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(ce||(ce=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), -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), -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"])),we);var Ee=function(n){var e=n.className,t=n.size,i=void 0===t?"md":t,a=C().t;return o.createElement(Ae,{className:e},o.createElement(v,{size:i,color:"transparent",isLoading:!0},a("loading")))},ye=c.div(Te||(Te=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})),_e=c.div(Ie||(Ie=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"]))),ke=c.div(Le||(Le=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"]))),Ce=c.div(Oe||(Oe=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(De||(De=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(Ne||(Ne=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 Te,Ie,Le,Oe,De,Be,Ne,Me,Se=c.ul(Me||(Me=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"]))),Pe=function(n){var e,t,i,l,s=n.isOpen,d=void 0===s||s,c=n.onClose,p=n.enableAnimation,u=void 0===p||p,m=n.doctorId,g=n.locale,f=n.isMobile,b=C().t,x=a(null),A=x[0],w=x[1],E=a(!1),y=E[0],_=E[1];r((function(){if(d&&m&&String(null==A?void 0:A.id)!==String(m)){_(!0);try{w(null),te(ne(On.GET_DOCTOR_INFO,{doctorId:m,website_url:Kn[g]}),"get").then((function(n){w(null==n?void 0:n._data.doctor)}))}catch(n){console.error(n)}_(!1)}}),[d,m,null==A?void 0:A.id]);var k=(null==A?void 0:A.experiences)||[],T=((null==A?void 0:A.specialties)||[]).map((function(n){return(null==n?void 0:n.name)||n})).join(" • "),I=k.map((function(n){try{return JSON.parse(n.description)}catch(e){return n.description}})).filter((function(n){return n.content})),L=B(null===(e=null==A?void 0:A.experiences)||void 0===e?void 0:e.length);return o.createElement(o.Fragment,null,o.createElement(ye,{"data-open":d,"data-animation":u,onClick:function(n){return n.stopPropagation()}},y||!A?o.createElement(Ee,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:c},o.createElement("img",{src:be,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(ke,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement("img",{src:(null==A?void 0:A.avatar)?null==A?void 0:A.avatar:fe,className:"profile-image",alt:"avatar"}),o.createElement("img",{className:"badge-avatar",src:xe,alt:"badge"})))),o.createElement(Ce,null,o.createElement(h,{size:"s3",type:"semiBold",className:"full-name"},null==A?void 0:A.name),o.createElement("div",{className:"specialty"},T&&o.createElement(o.Fragment,null,o.createElement(h,{size:"p4",color:D.colors.gray800},T," • ")),o.createElement("a",{href:ge({id:null===(t=null==A?void 0:A.organization)||void 0===t?void 0:t.id,name:null===(i=null==A?void 0:A.organization)||void 0===i?void 0:i.name,slug:null===(l=null==A?void 0:A.organization)||void 0===l?void 0:l.slug,locale:g}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(h,{size:"p4",className:"organisation",color:D.colors.gray800,style:{textDecoration:"underline"}},null==A?void 0:A.organization.name))))),!f&&o.createElement("div",{className:"btn-wrapper"},o.createElement("a",{href:me({name:A.name,id:A.id,locale:g})},o.createElement(v,{color:"primary",size:"md",className:"btn-booking"},b("careBooking.bookAnAppointment"))))),I&&o.createElement(Ce,null,o.createElement("div",{className:"experience"},o.createElement(h,{type:"bold",size:"s3",color:D.colors.gray800,style:{paddingBottom:16}},b("expert.content.description").toUpperCase()),o.createElement(Se,null,I.map((function(n,e){return o.createElement("li",{key:L[e]},o.createElement(h,{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:me({name:A.name,id:A.id,locale:g})},o.createElement(v,{color:"primary",size:"md",className:"btn-booking"},b("careBooking.bookAnAppointment")))):o.createElement("a",{href:me({name:A.name,id:A.id,locale:g})},o.createElement(h,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},b("home.seeExpert"))))))),o.createElement(_e,{"data-open":d,onClick:function(n){n.stopPropagation(),c()}}))},Re=c.div(Qe||(Qe=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})),Ge=c.div(Fe||(Fe=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"]))),Ue=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"]))),He=c.div(je||(je=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(Ke||(Ke=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(Ye||(Ye=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 Qe,Fe,ze,je,Ke,Ye,We,Ve,Ze,Xe,Je,qe,$e,nt,et=c.div(We||(We=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"]))),tt={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:xe},it=function(n){var e=n.isOpen,t=void 0===e||e,i=n.onClose,l=n.enableAnimation,s=void 0===l||l,d=n.expertId,c=C().t,p=a(null),u=p[0],m=p[1],g=a(!1),v=g[0],f=g[1];return r((function(){if(t&&d&&String(null==u?void 0:u.user_id)!==String(d)){f(!0);try{m(null),te($n(Dn.GET_EXPERT_BY_ID,{id:d}),"get").then((function(n){m(null==n?void 0:n.data)}))}catch(n){console.error(n)}f(!1)}}),[t,d,null==u?void 0:u.user_id]),o.createElement(o.Fragment,null,o.createElement(Re,{"data-open":t,"data-animation":s,onClick:function(n){return n.stopPropagation()}},v||!u?o.createElement(Ee,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:i},o.createElement("img",{src:be,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(Ue,null,o.createElement("div",{className:"image-container"},o.createElement("div",{style:{position:"relative"}},o.createElement("img",{src:(null==u?void 0:u.avatar)?null==u?void 0:u.avatar:fe,className:"profile-image",alt:"avatar"}),o.createElement("img",{className:"badge-avatar",src:tt[null==u?void 0:u.role],alt:"badge"})))),o.createElement(He,null,o.createElement(h,{size:"s3",className:"full-name",type:"semiBold"},null==u?void 0:u.display_name),o.createElement("div",null,o.createElement(h,{size:"p4",color:D.colors.gray800},null==u?void 0:u.specialty," • "),o.createElement("a",{href:null==u?void 0:u.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(h,{size:"p4",className:"organisation",color:D.colors.gray800,style:{textDecoration:"underline"}},null==u?void 0:u.organisation)))))),o.createElement(He,null,o.createElement("div",{className:"experience"},o.createElement(h,{type:"bold",size:"p4",color:D.colors.gray800,style:{paddingBottom:16}},c("expert.content.description").toUpperCase()),o.createElement("div",{className:"list-items"},!!(null==u?void 0:u.experiences)&&u.experiences.filter((function(n){return!(!n||!n.title&&!n.organization)})).slice(0,3).map((function(n,e){return o.createElement(et,{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(N,{tag:"h6",color:D.colors.gray800},null==n?void 0:n.title),o.createElement(h,{size:"p2",color:D.colors.gray500},null==n?void 0:n.organization)))}))),o.createElement("a",{href:null==u?void 0:u.profile_url},o.createElement(h,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},c("home.seeExpert"))))))),o.createElement(Ge,{"data-open":t,onClick:function(n){n.stopPropagation(),i()}}))},ot=c.div(Ve||(Ve=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})),at=c.div(Ze||(Ze=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"]))),rt=c.div(Xe||(Xe=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"]))),lt=c.div(Je||(Je=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(qe||(qe=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($e||($e=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(nt||(nt=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 st=function(n){var e=n.isOpen,t=void 0===e||e,i=n.onClose,l=n.enableAnimation,s=void 0===l||l,c=n.hospitalId,p=n.locale,u=n.isMobile,m=C().t,g=a(null),f=g[0],b=g[1],x=a(!1),A=x[0],w=x[1];r((function(){if(t&&c&&String(null==f?void 0:f.id)!==String(c)){w(!0);try{b(null),te(ne(On.GET_HOSPITAL_INFO,{hospital_branch_id:c,website_url:Kn[p]}),"get").then((function(n){b(null==n?void 0:n._data.branch)}))}catch(n){console.error(n)}w(!1)}}),[t,c,null==f?void 0:f.id]);var E=(null==f?void 0:f.specialties)||[],y=d((function(){return E.map((function(n){return n.name}))}),[E]);return o.createElement(o.Fragment,null,o.createElement(ot,{"data-open":t,"data-animation":s,onClick:function(n){return n.stopPropagation()}},A||!f?o.createElement(Ee,null):o.createElement("div",{className:"popup-content"},o.createElement("div",{className:"close-button",onClick:i},o.createElement("img",{src:be,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(rt,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:fe,className:"profile-image",alt:"avatar"}),o.createElement("img",{className:"badge-avatar",src:xe,alt:"badge"})))),o.createElement(lt,null,o.createElement(h,{size:"s3",type:"semiBold",className:"full-name"},null==f?void 0:f.name),o.createElement("div",{className:"specialty"},E&&o.createElement(h,{size:"p4",color:D.colors.gray800},y.join(" • "),"•"),o.createElement("a",{href:ge({id:f.id,name:f.name,slug:f.slug,locale:p}),className:"organisation",target:"_blank",rel:"noreferrer"},o.createElement(h,{size:"p4",className:"organisation",color:D.colors.gray800,style:{textDecoration:"underline"}},null==f?void 0:f.name))))),!u&&o.createElement("a",{href:ge({id:f.id,name:f.name,slug:f.slug,locale:p})},o.createElement("div",{className:"btn-wrapper"},o.createElement(v,{color:"primary",size:"md",className:"btn-booking"},m("careBooking.bookAnAppointment"))))),o.createElement(lt,null,o.createElement("div",{className:"experience"},o.createElement(h,{type:"bold",size:"s3",color:D.colors.gray800,style:{paddingBottom:16}},m("hospital.content.description").toUpperCase()),o.createElement(h,{size:"p2",color:D.colors.gray500},f.about),u?o.createElement("a",{href:ge({id:f.id,name:f.name,slug:f.slug,locale:p})},o.createElement("div",{className:"btn-wrapper"},o.createElement(v,{color:"primary",size:"md",className:"btn-booking"},m("careBooking.bookAnAppointment")))):o.createElement("a",{href:ge({id:f.id,name:f.name,slug:f.slug,locale:p})},o.createElement(h,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},m("home.seeHospital"))))))),o.createElement(at,{"data-open":t,onClick:function(n){n.stopPropagation(),i()}}))},dt={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}}နှစ်နီးပါး"}},ct={code:"my",formatDistance:function(n,e,t){var i,o=dt[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}},pt=c.div(ut||(ut=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(mt||(mt=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 ut,mt,gt,ht=c.div(gt||(gt=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"]))),vt={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"},ft={"vi-VN":_,"id-ID":w,"ms-MY":E,"km-KH":x,"en-PH":x,"th-TH":y,"my-MM":ct,"zh-TW":k,"hi-IN":A},bt=function(n){var e=n.time,t=n.className,i=n.community,l=n.name,d=n.username,c=n.url,p=n.avatar,u=n.miniIcon,g=n.role,x=n.style,A=n.type,w=void 0===A?"post":A,E=n.expertId,y=n.isMarryBaby,_=n.title,k=n.doctorId,I=n.hospitalId,L=n.hasQuickBooking,O=n.handleMakeAppointment,D=s(Fn).data,B=D.locale,N=D.router,M=D.env,S=M.isMarryBaby,P=M.togetherBasePath,R="boolean"==typeof y?y:S,G=l||d||"",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):"",H=C().t,Q=e?isNaN(new Date(e).getTime())?null:new Date(e):null,F=Q?f(Q,{locale:ft[B]}):e,j=Q?b(Q,"dd/MM/yyyy HH:mm"):e,K=a(!1),Y=K[0],W=K[1],V=(N||{}).asPath,Z="https://".concat(T[B]).concat(V),X=function(n){"expert"===g&&(E||k||I)?(n.stopPropagation(),W(!0)):c&&(window.location.href=c)};return r((function(){m(Y)}),[Y]),o.createElement(o.Fragment,null,"expert"===g&&E?o.createElement(it,{isOpen:Y,onClose:function(){return W(!1)},expertId:E}):null,"expert"===g&&k?o.createElement(Pe,{isOpen:Y,onClose:function(){return W(!1)},doctorId:k,locale:B}):null,"expert"===g&&I?o.createElement(st,{isOpen:Y,onClose:function(){return W(!1)},hospitalId:I,locale:B}):null,o.createElement(pt,{"data-is-marrybaby":R,className:t,style:x,"data-is-booking":L},o.createElement("div",{style:{display:"flex",width:"100%"}},o.createElement("a",null,o.createElement(ht,{onClick:X},o.createElement(ve,{className:"author-avatar-wrapper",username:G,avatar:p}),u?o.createElement(z,{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"},G),U&&vt[U]&&o.createElement("div",{className:"author-role","data-label-type":U},_||H(vt[U])),R?o.createElement(h,{size:"p4",type:"regular",color:"#9495A0",title:j,className:"author-time"},"".concat("post"===w?"• ":"").concat(F)):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(P,"/").concat(null==i?void 0:i.slug):void 0,className:"author-community-name"},"".concat(null==i?void 0:i.name)),(R?void 0:F)?" • ":""),o.createElement("span",{className:"time-text"},R?void 0:F)))))),L&&o.createElement("div",{className:"btn-wrapper"},o.createElement(v,{color:"primary",size:"md",className:"btn-booking",onClick:function(n){null==O||O(k,I),n.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:Z},H("careBooking.bookAnAppointment")))))};export{z as A,rn as B,bt as C,X as D,en as E,kn as F,zn as G,on as H,ne as I,On as J,Xn as K,Ee as L,dn as M,Kn as N,ie as O,$ as P,sn as R,Fn as T,ve as U,it as a,Pe as b,pn as c,In as d,st as e,Qn as f,jn as g,Tn as h,te as i,$n as j,Dn as k,Cn as l,_n as m,nn as n,ft as o,wn as p,yn as q,pe as r,tn as s,qn as t,Ln as u,Jn as v,Bn as w,ae as x,oe as y,En as z};
|