"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4447],{"Z+18":function(e,t,n){n.d(t,{f:function(){return format},u:function(){return useTranslations}});var a=n("q1tI"),l=n("1P2a");function format(e,t){let n=[e];return(Object.keys(t).forEach(e=>{n=function(e,t,n){let l=[];return e.forEach(e=>{if("string"==typeof e){let r=RegExp(`\\{${n}\\}`,"gi");if("string"==typeof t||"number"==typeof t)l.push(e.replace(r,`${t}`));else{let n=e.split(r);n.forEach((e,r)=>{e&&(function(e){let t=[],n=!1,l=!1;return e.match(/^\s+/gi)&&(e=e.replace(/^\s+/gi,""),n=!0),e.match(/\s+$/gi)&&(e=e.replace(/\s+$/gi,""),l=!0),n&&t.push(a.createElement(a.Fragment,null,"\xa0")),t.push(e),l&&t.push(a.createElement(a.Fragment,null,"\xa0")),t})(e).forEach(e=>l.push(e)),r+1"string"==typeof e)?n.join(""):a.createElement(a.Fragment,null,n.map((e,t)=>a.createElement(a.Fragment,{key:t},e)))}function useTranslations(){let{values:e,locale:t}=(0,a.useContext)(l.T)||{locale:"en-PH"};return(0,a.useMemo)(()=>({t:(t,n)=>e?e[t]?n?format(e[t]||t,n):e[t]||t:n?format(t,n):t:t,locale:t}),[e,t])}},"07+u":function(e,t,n){n.d(t,{A:function(){return Avatar},D:function(){return DistanceTag},I:function(){return IconWrapper},P:function(){return Pin3},S:function(){return ShapedArrowDown}});var a=n("q1tI"),l=n("rBCA"),r=n("iBNF"),i=n("FfBq"),o=n("dDw1");let Pin3=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none"},e),a.createElement("g",{clipPath:"url(#clip0_5371_10640)"},a.createElement("path",{d:"M6.6665 4.3335L8.1665 5.8335L6.6665 7.3335",stroke:"#8C8C8C",strokeWidth:.72,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M8.16667 5.8335H5.83333C5.09667 5.8335 4.5 6.43016 4.5 7.16683V7.50016",stroke:"#8C8C8C",strokeWidth:.72,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M6.94331 10.3902L10.3907 6.94281C10.9114 6.42211 10.9114 5.57789 10.3907 5.05719L6.94331 1.60981C6.42261 1.08911 5.57839 1.08911 5.05769 1.60981L1.61031 5.05719C1.08961 5.57789 1.08961 6.42211 1.61031 6.94281L5.05769 10.3902C5.57839 10.9109 6.42261 10.9109 6.94331 10.3902Z",stroke:"#8C8C8C",strokeWidth:.72,strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_5371_10640"},a.createElement("rect",{width:12,height:12,fill:"white"})))),ShapedArrowDown=e=>a.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none"},e),a.createElement("path",{d:"M13.5554 9.33398L7.99989 5.55621L2.44434 9.33398",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),s=l.Z.div` background-color: var(--background-color, transparent); color: white; cursor: pointer; img { --width: var(--width-prop, 40px); --height: var(--height-prop, 40px); width: var(--width); height: var(--height); } &[data-has-max='true'] { img { max-width: var(--width); max-height: var(--height); } } &[data-avatar-type='square'] { img { --width: var(--width-prop, 72px); --height: var(--height-prop, 72px); border-radius: ${r.r.borderRadius}; } } &[data-avatar-type='rounded'] { img { border-radius: 50%; } } &[data-custom-size='true'] { display: flex; overflow: hidden; overflow: hidden; width: var(--size); height: var(--size); align-items: center; justify-content: center; background-size: cover; font-size: calc(var(--size) / 2); font-weight: bold; &[data-avatar-type='square'] { border-radius: ${r.r.borderRadius}; } &[data-avatar-type='rounded'] { border-radius: 50%; img { --width: 100%; --height: 100%; } } img { object-fit: cover; } } `,c={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},Avatar=({type:e="square",size:t,avatarImg:n,avatarUrl:l,firstLetter:r,backgroundColor:o,onClick:d,style:u,className:p,width:m,height:h,alt:g})=>{let v=t?c[t]:void 0,[C,f]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(l){let e=document.createElement("img");e.setAttribute("src",l),e.addEventListener("error",()=>{f(!0)})}},[l,f]);let E=(!l&&!n||C)&&r;return a.createElement(s,{style:Object.assign(Object.assign({},u),{"--size":v?v+"px":void 0,"--width-prop":m?m+"px":void 0,"--height-prop":h?h+"px":void 0,"--background-color":o}),"data-has-max":!!(m&&h),"data-avatar-type":e,onClick:d,className:p,avatarUrl:l,"data-custom-size":!!t},n,l&&!C&&a.createElement(i.I,{src:l,alt:g||"avatar"}),E&&r)},d=l.Z.div` display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; color: ${r.r.colors.red700}; border-radius: 8px; border: 1px solid ${r.r.colors.neutral100}; font-size: 0.6875rem; line-height: 1rem; border-radius: 0.5rem; `,u=(0,l.Z)(Pin3)` width: 0.75rem; height: 0.75rem; color: ${r.r.colors.gray400}; `;function DistanceTag({value:e,className:t}){return a.createElement(d,{className:t},a.createElement(u,null),a.createElement(o.T,{size:"p3",weight:"regular",color:r.r.colors.gray400},e))}let p=l.Z.div` display: inline-flex; align-items: center; justify-content: center; flex-grow: 0; flex-shrink: 0; width: calc(var(--wrapper-size, var(--icon-size)) * 1px); height: calc(var(--wrapper-size, var(--icon-size)) * 1px); &[data-clickable='true'] { cursor: pointer; } > * { width: calc(var(--icon-size) * 1px); height: calc(var(--icon-size) * 1px); } &[data-svg-custom-stroke='true'] > svg * { stroke: var(--icon-stroke-color); } &[data-svg-custom-fill='true'] > svg * { fill: var(--icon-fill-color); } `,IconWrapper=({children:e,className:t,onClick:n,wrapperSize:l,iconSize:r=24,wrapperStyle:i,iconStyle:o,svgIcon:s,wrapperProps:c})=>a.createElement(p,Object.assign({className:t,onClick:n,style:Object.assign(Object.assign(Object.assign(Object.assign({},l&&{"--wrapper-size":l}),r&&{"--icon-size":r}),s&&Object.assign(Object.assign({},s.fill&&{"--icon-fill-color":s.fill}),s.stroke&&{"--icon-stroke-color":s.stroke})),i),"data-clickable":!!n,"data-svg-custom-stroke":!!(null==s?void 0:s.stroke),"data-svg-custom-fill":!!(null==s?void 0:s.fill)},c),a.cloneElement(e,{style:o}))},gs4G:function(e,t,n){n.d(t,{P:function(){return Popup}});var a=n("q1tI"),l=n("rBCA"),r=n("un+D"),i=n("iBNF");let o=l.Z.div` position: fixed; left: 50%; padding: 0 16px 32px; background-color: ${i.r.colors.white}; border-radius: ${i.r.borderRadius}; box-shadow: 0px 4px 8px ${i.r.colors.gray200}; transform: translate(-50%, -50%); transition: all 0.5s ease-in-out; visibility: hidden; &[data-open='true'] { z-index: 400; top: 50%; opacity: 1; visibility: visible; } &[data-open='false'] { top: -50%; } &[data-type='lead'] { width: 332px; height: 460px; div { top: -15px; right: -15px; } } &[data-type='form'] { width: 496px; height: 548px; ${r.M.mbDown} { width: 340px; } } &[data-type='confirm'] { ${r.M.mbDown} { width: calc(100% - 32px); } ${r.M.mbUp} { width: 100%; max-width: 407px; } } .popup-content { position: relative; z-index: 111; height: 100%; padding: 16px; } .close-button { position: absolute; top: 16px; right: 0; cursor: pointer; img { width: 100%; height: 100%; border-radius: 50%; } } `,s=l.Z.div` position: fixed; z-index: 110; top: 0; left: 0; width: 100%; height: 100%; align-items: center; background: rgba(38, 38, 38, 0.3); &[data-open='false'] { display: none; } `,Popup=({type:e="lead",closeIcon:t,isOpen:n=!0,onClose:l,children:r,className:i="",enableAnimation:c=!0,disableClickOutside:d=!1})=>a.createElement(a.Fragment,null,a.createElement(o,{"data-open":n,"data-type":e,"data-animation":c},a.createElement("div",{className:`${i||""} popup-content`},!!t&&a.createElement("div",{className:"close-button",onClick:l},t),r)),a.createElement(s,{"data-open":n,onClick:()=>{d||l()}}))},"77CL":function(e,t,n){n.d(t,{P:function(){return PopoverMenu},S:function(){return c}});var a=n("q1tI"),l=n("WTZ1"),r=n("GAI/"),i=n("rBCA"),o=n("iBNF");let s=i.Z.div` position: relative; display: content; .popover-menu__btn { /* position: relative; */ > span { width: 100%; height: 100%; > img { width: 100%; height: 100%; } } } .popover-menu__content { position: absolute; z-index: 10; width: 320px; padding: 8px; border: none; background: #fff; border-radius: 8px; box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.1); &::before { position: absolute; width: 16px; height: 8px; background: #fff; content: ''; } &.--position { &-top { bottom: calc(100% + 8px); &.--align { &-start { left: 0; &::before { top: 100%; left: 16px; clip-path: polygon(0 0, 50% 100%, 100% 0); } } &-end { left: 100%; transform: translateX(calc(-100% + 1rem)); &::before { top: 100%; right: 16px; clip-path: polygon(0 0, 50% 100%, 100% 0); } } } } &-right { left: calc(100% + 8px); &.--align { &-start { top: 0; &::before { top: 16px; left: 0; width: 8px; height: 16px; clip-path: polygon(0 50%, 100% 0%, 100% 100%); transform: translateX(-100%); } } &-end { top: 100%; transform: translateX(calc(-100% + 1rem)); &::before { bottom: 16px; left: 0; width: 8px; height: 16px; clip-path: polygon(0 50%, 100% 0%, 100% 100%); transform: translateX(-100%); } } } } &-bottom { top: calc(100% + 8px); &.--align { &-start { left: 0; &::before { bottom: 100%; left: 16px; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); } } &-end { left: 100%; transform: translateX(calc(-100% + 1rem)); &::before { right: 16px; bottom: 100%; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); } } } } &-left { left: -8px; transform: translateX(-100%); &.--align { &-start { top: 0; &::before { top: 16px; left: 100%; width: 8px; height: 16px; clip-path: polygon(0 0%, 100% 50%, 0% 100%); transform: translateX(0); } } &-end { bottom: 0; &::before { bottom: 16px; left: 100%; width: 8px; height: 16px; clip-path: polygon(0 0%, 100% 50%, 0% 100%); transform: translateX(0); } } } } } } &[data-is-marrybaby='true'] { .popover-menu__content { padding: 0; border-radius: 12px; /* &::before { display: none; } */ } } `,c=i.Z.div` display: flex; /* max-height: 300px; */ flex-direction: column; cursor: default; .__header { position: relative; display: flex; align-items: center; justify-content: center; padding: 1rem 0; margin-bottom: 8px; .__back-btn { position: absolute; top: 50%; left: 8px; width: 16px; height: 16px; cursor: pointer; transform: translateY(-50%); } } .tree-text-description { padding-right: 8px; padding-left: 8px; margin-top: -8px; margin-bottom: 8px; font-size: 14px; font-weight: 400; line-height: 22px; text-align: left; } .__content { overflow: auto; flex: 1; } .__list { .__item { position: relative; &.bold-item { font-weight: 700; } &:last-child { .__btn { margin-bottom: 0; } } .__btn { position: relative; display: flex; width: 100%; height: 40px; align-items: center; padding: 0 1rem; border: none; margin-bottom: 8px; color: ${o.r.colors.gray800}; cursor: pointer; text-align: left; transition: background 0.3s; /* for better gtm tracking result */ * { pointer-events: none; } &.--checked { color: ${o.r.colors.gray500}; pointer-events: none; } &:hover { background: ${o.r.colors.gray100}; } .__icon { width: 16px; height: 16px; margin-right: 0.4rem; } & > span { position: relative; & > img { width: 16px; height: 16px; margin-right: 0.4rem; } } } .__toggle { position: absolute; top: 50%; right: 16px; width: 16px; height: 16px; pointer-events: none; transform: translateY(-50%); } } } &[data-is-marrybaby='true'] { .__header { padding: 1rem; } .tree-text-description { padding: 0 1rem; } .__list { .__item { &:first-child { .__btn { border-top-left-radius: 12px; border-top-right-radius: 12px; } } &:last-child { .__btn { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; } } .__btn { height: unset; padding: 1rem; margin-bottom: 0; &:hover { background: ${o.r.mbColors.lightPink}; } } } } } `,PopoverMenu=({className:e,style:t,toggleButtonContent:n,position:i="bottom",align:o="end",children:c,buttonProps:d})=>{let{data:{env:{isMarryBaby:u}}}=(0,a.useContext)(r.T),[p,m]=(0,a.useState)(!1),h=(0,a.useRef)(null),g=(0,a.useRef)(p);return(0,a.useEffect)(()=>{var e;g.current=p,p&&(null===(e=h.current)||void 0===e||e.focus())},[p]),(0,a.useEffect)(()=>{let clickHandler=e=>{var t;(null===(t=h.current)||void 0===t?void 0:t.contains(e.target))||!g.current||m(!1)};return window.addEventListener("click",clickHandler,{passive:!0}),()=>{window.removeEventListener("click",clickHandler)}},[]),a.createElement(s,{"data-is-marrybaby":u,className:e,style:t},a.createElement(l.B,Object.assign({theme:u?"marryBaby":"helloSites",className:"popover-menu__btn",size:"md",color:"transparent",onClick:()=>m(e=>!e)},d),n),p?a.createElement("div",{ref:h,className:`popover-menu__content --position-${i} --align-${o}`,tabIndex:0,onClick:e=>e.stopPropagation()},"function"==typeof c?c({setShow:m}):c):null)}},OzMM:function(e,t,n){n.d(t,{M:function(){return el},S:function(){return SurveyOrPremiumBanner},a:function(){return er},b:function(){return SideBannerModal}});var a,l,r,i,o,s,c,d=n("q1tI"),u=n("mYVa"),p=n("7Ci/"),m=n("/npG"),h=n("Eso5"),g=n("OAL+"),v=n("SPK5"),C=n("RZSM"),f=n("vaps"),E=n("9n+W"),b=n("DA0W"),y=n("RGvF"),x=n("JZkZ"),w=n("MkcP"),k=n("0dn/"),S=n("GAI/"),T=n("qFhO"),B=n("VgIh"),_=n("UIg8"),P=n("T/vS"),O=n("1ItU"),L=n("FfBq"),A=n("Rnw3"),M=n("Z+18"),N=n("cChf"),I=n("ZFu2"),R=n("SMDy"),j=n("fVGx"),z=n("dDw1"),F=n("RlpF"),$=n("jD9D"),H=n("IQVP"),D=n("Mjd7"),Z=n("iAc4"),G=n("flyO"),q=n("xrdX"),V=n("GOBr"),U=n("OWiL"),W=n("vWP/"),Y=n("DSvu"),K=n("L3Nj"),Q=n("JIJ2"),X=n("TYy9"),J=n.n(X),ee=n("qPyV"),et=n.n(ee),en=n("375z");let ea=[{title:"Health News & Current Affairs",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:k.C.getAssetPath("newsletter-prefer/newsletter-health.svg"),checked:!1,id:1},{title:"Educational Medical Hello Bacsi Content",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:k.C.getAssetPath("newsletter-prefer/newsletter-education.svg"),checked:!1,id:2},{title:"Hello Health Community Feed",description:"Covering the latest happenings in the health field, including medical breakthroughs, policies, and disease outbreaks",icon:k.C.getAssetPath("newsletter-prefer/newsletter-community.svg"),checked:!1,id:3}];(a=i||(i={})).Pregnant="pregnant",a.Parenting="parenting",(o||(o={})).Option="option",(l=s||(s={})).Button="button",l.Checkbox="checkbox",(r=c||(c={})).ShowTool="showTool",r.ShowPremiumModal="showPremiumModal",r.ShowOptionBanner="showOptionBanner",r.Hide="hide";let el={pregnancy:i.Pregnant,parenting:i.Parenting},er={[i.Pregnant]:"pregnant",[i.Parenting]:"parent"},FLOW=(e,t)=>({[i.Pregnant]:{action:c.ShowOptionBanner,props:{heading:e("pnBanner.pregnancy.heading"),description:e("pnBanner.pregnancy.desc"),styleType:s.Button,thumbnail:{desktop:k.C.getAssetPath("newsletter/banner-option-pregnancy-desktop.png"),mobile:k.C.getAssetPath("newsletter/banner-option-pregnancy-mobile.png")},buttonProps:{variant:"white",styles:e=>({minWidth:(0,u.h)(80),[e.fn.largerThan("sm")]:{minWidth:(0,u.h)(120)}})},items:[{label:e("switchBtn.yes"),value:"yes",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - Yes Click",dataEventLabel:t}},{label:e("switchBtn.no"),value:"no",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Are you navigating the world of pregnancy - No Click",dataEventLabel:t}}]},submitHandler:{yes:{action:c.ShowTool,props:{value:B.H.DUE_DATE}},no:{action:c.ShowPremiumModal}}},[i.Parenting]:{action:c.ShowOptionBanner,props:{heading:e("pnBanner.parenting.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:k.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:k.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,styleType:s.Checkbox,items:[{label:e("pnBanner.toddlers"),value:"todders"},{label:e("pnBanner.teenager"),value:"teenager"}],submitBtnTracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the age range of your kids Click",dataEventLabel:t}},submitHandler:{todders:{action:c.ShowTool,props:{value:B.H.BABY_VACCINE}},teenager:{action:c.ShowOptionBanner,props:{styleType:s.Button,heading:e("pnBanner.teenager.heading"),description:e("pnBanner.parenting.desc"),thumbnail:{desktop:k.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:k.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},buttonProps:{variant:"white"},items:[{label:e("childCard.boy"),value:"teenager.boy",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Boy Click",dataEventLabel:t}},{label:e("childCard.girl"),value:"teenager.girl",tracking:{dataEventCategory:"Focused Audience",dataEventAction:"What is the gender of your kids - Girl Click",dataEventLabel:t}}]}},"teenager.boy":{action:c.ShowPremiumModal},"teenager.girl":{action:c.ShowTool,activeTool:_.t.HPV,props:{value:_.t.HPV}},"todders|teenager":{action:c.ShowOptionBanner,props:{styleType:s.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:k.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:k.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:B.H.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}},{label:e("pnBanner.pn.btnLabel"),value:"todders|teenager.showPN",isPNBtn:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Premium Newsletter Click",dataEventLabel:t}}]}},"todders|teenager.showPN":{action:c.ShowOptionBanner,props:{styleType:s.Button,heading:e("pnBanner.both.heading"),description:e("pnBanner.both.desc"),thumbnail:{desktop:k.C.getAssetPath("newsletter/banner-option-parenting-desktop.png"),mobile:k.C.getAssetPath("newsletter/banner-option-parenting-mobile.png")},hideDescOnMobile:!0,buttonProps:{variant:"secondary"},styles:e=>({wrapper:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}},button:{background:e.colors.blue[0]}}),items:[{label:e("pnBanner.vaccine.btnLabel"),activeTool:B.H.BABY_VACCINE,isLink:!0,tracking:{dataEventCategory:"Focused Audience",dataEventAction:"Experience our tools for parent - Baby Vaccine Click",dataEventLabel:t}}]}}}}}),TOOL_BANNERS_PROPS=e=>({[B.H.DUE_DATE]:{heading:e("pnBanner.dueDateTool.heading"),description:e("pnBanner.dueDateTool.desc"),btnLabel:e("pnBanner.caclNow"),value:B.H.DUE_DATE,dataEventAction:"Try our Due Date Calculator Click"},[B.H.BABY_VACCINE]:{heading:e("pnBanner.vaccination.heading"),description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:B.H.BABY_VACCINE,dataEventAction:"Try our Baby Vaccine Scheduler Click"},[B.H.BABY_GROWTH]:{heading:"Baby Growth",description:e("pnBanner.vaccination.desc"),btnLabel:e("pnBanner.caclNow"),value:B.H.BABY_GROWTH},[_.t.HPV]:{heading:e("pnBanner.hpv.heading"),description:e("pnBanner.hpv.desc"),thumbnail:{desktop:k.C.getAssetPath("newsletter/banner-option-hpv-desktop.png"),mobile:k.C.getAssetPath("newsletter/banner-option-hpv-mobile.png")},isRiskScreener:!0,btnLabel:e("pnBanner.checkNow"),value:_.t.HPV,hideDescOnMobile:!0,dataEventAction:"Keep safe from HPV virus Click"}}),ei=(0,d.createContext)({}),PnBannerEle=e=>{var t=(0,P.a)(e,[]);let{locale:n}=(0,M.u)(),{type:a,isMobile:l,currentUrl:r,isMarketing:i,isLoggedIn:o,setShouldAcquisitionModalOpen:s}=(0,d.useContext)(ei),{triggerLogin:c}=(0,O.u)();return d.createElement(p.W,Object.assign({mih:{base:144,md:160},fluid:!0,p:0,sx:{borderRadius:4,cursor:"pointer"},onClick:()=>(0,P._)(void 0,void 0,void 0,function*(){let e=i?(0,A.g)(n)+"/dang-ky-nhan-tin/":`${window.location.href}?source=acquisition`;o?null==s||s():(0,O.I)(n)?c({returnUrl:i?e:void 0,source:i?void 0:"acquisition"}):window.location.href=`${(0,A.a)(n)}/?returnUrl=${encodeURIComponent(e)}`}),"data-event-category":"Newsletter","data-event-action":"Banner Click","data-event-label":r,className:"pointer-event-child-none"},t),d.createElement(L.I,{src:i?k.C.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_Marketing.png`):k.C.getAssetPath(`newsletter/${l?"Mobile":"Desktop"}_${a}.png`),style:{maxWidth:"100%"},alt:"newsletter banner"}))},eo={GET_NEWSLETTER_CATEGORIES:"api/v1/categories?site={website_url}",POST_SUBSCRIPTION:"api/v1/subscription?site={website_url}",GET_SUBSCRIPTION_CATEGORIES:"api/v1/categories?site={website_url}"};var es=(0,m.k)(e=>({root:{},wrapper:{[e.fn.smallerThan("sm")]:{width:"70%"}},button:{[e.fn.smallerThan("sm")]:{height:"auto",minHeight:(0,u.h)(32),padding:`${(0,u.h)(6)} ${(0,u.h)(16)}`,textAlign:"center",width:"100%"}},buttonLabel:{whiteSpace:"normal"}}));let BannerLayout=({heading:e,description:t,thumbnail:n={desktop:"",mobile:""},hideDescOnMobile:a,children:l})=>{let{isMobile:r,minHeight:i}=(0,d.useContext)(ei);return d.createElement(h.x,{sx:()=>({borderRadius:(0,u.h)(8),background:"linear-gradient(180deg, #FAFDFF 0%, #E3F2FF 100%)"})},d.createElement(h.x,{sx:e=>({minHeight:(0,u.h)(i),borderRadius:"inherit",background:`url(${r?n.mobile:n.desktop})`,backgroundPosition:"center right",backgroundRepeat:"no-repeat",backgroundSize:"contain",padding:`${(0,u.h)(24)} ${(0,u.h)(16)}`,display:"flex",flexDirection:"column",justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${(0,u.h)(22)} ${(0,u.h)(32)}`}})},d.createElement(g.K,{spacing:(0,u.h)(16)},d.createElement(g.K,{spacing:(0,u.h)(4),sx:e=>({maxWidth:"60%",[e.fn.largerThan("sm")]:{maxWidth:"70%"}})},e&&d.createElement(D.H,{tag:"h4"},e),!(a&&r)&&t&&d.createElement(z.T,{size:"p4"},t)),d.createElement(h.x,null,l))))},BannerWithOptions=e=>{let{styleType:t=s.Button,items:n=[],buttonProps:a,styles:l,submitBtnTracking:r}=e,{classes:i}=es(void 0,{name:"PremiumBannerWithOptions",styles:l}),{t:o,locale:c}=(0,M.u)(),{surveyType:p,articleId:m,handleClickOption:g,hasPremiumBanner:C,source:f,isMobile:E,setShowPNModal:b}=(0,d.useContext)(ei),y=(0,d.useMemo)(()=>C?n:n.filter(e=>!e.isPNBtn).filter(Boolean),[n]),{getHealthToolLink:x}=(0,Z.u)(c),w=(0,N.c)({initialValues:{bannerOptions:[]}}),saveStep=e=>(0,P._)(void 0,void 0,void 0,function*(){return yield(0,S.e)((0,S.f)(H.yy.HEALTH_TOOL.CREATE,{_locale:c,type:er[p]}),"POST",{headers:{"Content-Type":"application/json"},data:{value:e,article:m,source:f}})}),k=(0,d.useCallback)(()=>d.createElement(v.k,{gap:(0,u.h)(8),className:i.wrapper},y.map((e,t)=>d.createElement(h.x,{key:String(t),component:e.isLink?"a":"div",href:e.isRiskScreener?`https://${q.v[c]}/bot/${_.n[c][e.activeTool]}/`:e.isLink?x(e.activeTool):void 0},d.createElement(F.B,Object.assign({className:i.button,classNames:{label:i.buttonLabel},size:"sm"},e.tracking,a,{onClick:()=>{e.isLink||(e.isPNBtn&&b(!0),saveStep(e.value),g(e.value))}}),e.label)))),[y,w]),T=(0,d.useCallback)(()=>d.createElement(v.k,null,d.createElement(v.k,{align:"center",gap:(0,u.h)(24),sx:e=>({background:"white",borderRadius:(0,u.h)(8),padding:(0,u.h)(4),[e.fn.largerThan("sm")]:{paddingLeft:(0,u.h)(16)}})},d.createElement(R.d.Group,Object.assign({},w.getInputProps("bannerOptions",{type:"checkbox"})),d.createElement(v.k,{gap:(0,u.h)(16)},y.map((e,t)=>d.createElement(R.d,{key:String(t),value:e.value,label:e.label,styles:{label:{cursor:"pointer"}}})))),d.createElement(F.B,Object.assign({size:"sm"},r,a,{disabled:0===w.getInputProps("bannerOptions").value.length,leftIcon:E?d.createElement(G.I.ArrowRightTail,{size:18,useCurrentColor:!0}):void 0,onClick:()=>{let e=w.getInputProps("bannerOptions").value;saveStep(e.join("|")),g(e.join("|"))},styles:e=>({root:{[e.fn.smallerThan("sm")]:{width:(0,u.h)(38),minWidth:"auto",padding:0}}})}),!E&&o("pnBanner.submit")))),[y,w]);return d.createElement(BannerLayout,Object.assign({},e),t===s.Button?k():t===s.Checkbox?T():null)},ToolBanner=e=>{var t,n;let{t:a}=(0,M.u)(),{heading:l,description:r,thumbnail:i,btnLabel:o,value:s,isRiskScreener:c,hideDescOnMobile:p,dataEventAction:m}=e,{locale:h}=(0,M.u)(),{isMobile:C}=(0,d.useContext)(ei),{getHealthToolLink:f,allTools:E}=(0,Z.u)(h),b=(0,d.useMemo)(()=>{let e=c?`https://${V.y?"":"discover."}${q.v[h]}/bot/${_.n[h][s]}`:f(s);return d.createElement("a",{href:e},d.createElement(F.B,{size:"sm","data-event-category":"Focused Audience","data-event-action":m,"data-event-label":e},o||a("pnBanner.caclNow")))},[E]);return"mainBanner"==(c?"mainBanner":"toolBanner")?d.createElement(BannerLayout,Object.assign({},Object.assign(Object.assign({},e),{thumbnail:e.thumbnail})),b):d.createElement(v.k,{gap:(0,u.h)(7),align:"center",justify:"space-between",sx:e=>({borderRadius:(0,u.h)(8),background:e.colors.blue[0],minHeight:(0,u.h)(180),padding:`${(0,u.h)(24)} ${(0,u.h)(16)}`,[e.fn.largerThan("sm")]:{padding:`${(0,u.h)(34)} ${(0,u.h)(32)}`}})},d.createElement(g.K,{spacing:(0,u.h)(12)},d.createElement(g.K,{spacing:(0,u.h)(4)},l&&d.createElement(D.H,{tag:"h4"},l),!(C&&p)&&r&&d.createElement(z.T,{size:"p4"},r)),d.createElement(v.k,{gap:(0,u.h)(8),sx:{button:{minWidth:(0,u.h)(120)}}},b)),d.createElement(v.k,{align:"center",justify:"center",sx:e=>({width:(0,u.h)(96),height:(0,u.h)(96),borderRadius:"50%",background:"white",flexShrink:0,[e.fn.largerThan("sm")]:{width:(0,u.h)(112),height:(0,u.h)(112)},img:{maxWidth:(0,u.h)(64),[e.fn.largerThan("sm")]:{maxWidth:(0,u.h)(73)}}})},d.createElement("img",{alt:"health-tool-icon",src:i||(null===(n=null===(t=E.filter(e=>e.template===s))||void 0===t?void 0:t[0])||void 0===n?void 0:n.icon)||B.a[s]||"",loading:"lazy"})))},HandlerBanner=()=>{var e,t,n;let{t:a}=(0,M.u)(),{state:l,Outside:r}=(0,d.useContext)(ei);return(null==l?void 0:l.action)===c.ShowTool?d.createElement(r,null,TOOL_BANNERS_PROPS(a)[null===(e=null==l?void 0:l.props)||void 0===e?void 0:e.value]?d.createElement(ToolBanner,Object.assign({},TOOL_BANNERS_PROPS(a)[null===(t=null==l?void 0:l.props)||void 0===t?void 0:t.value],{value:null===(n=null==l?void 0:l.props)||void 0===n?void 0:n.value})):null):(null==l?void 0:l.action)===c.ShowOptionBanner?d.createElement(r,null,d.createElement(BannerWithOptions,Object.assign({},null==l?void 0:l.props))):null},SideBannerModal=e=>{var{isMobile:t,children:n,desktopBanner:a=k.C.getAssetPath("friso/onboarding-banner.jpg"),mobileBanner:l=k.C.getAssetPath("friso/onboarding-banner-mobile.jpg"),modalRatio:r={width:937,height:536},mobileBannerRatio:i={width:750,height:480},desktopBannerRatio:o={width:420,height:536},closeProps:s}=e,c=(0,P.a)(e,["isMobile","children","desktopBanner","mobileBanner","modalRatio","mobileBannerRatio","desktopBannerRatio","closeProps"]);let{width:p,height:m}=(0,$.n)(),g=p*i.height/i.width,[v,f]=(0,d.useState)(!1);return d.createElement(K.M,Object.assign({styles:e=>({header:{display:"none"},content:{flex:"auto",background:"transparent",[e.fn.smallerThan("sm")]:{maxHeight:"100%",height:"100%",position:"relative",borderRadius:0},[e.fn.largerThan("sm")]:{maxWidth:(0,u.h)(r.width),width:"100%",height:"100%",maxHeight:(0,u.h)(r.height),boxShadow:"none"}},body:{padding:0,width:"100%",height:"100%",[e.fn.largerThan("sm")]:{display:"flex",alignItems:"center"}},inner:{padding:0,[e.fn.smallerThan("sm")]:{display:"flex",alignItems:"flex-end"}}})},c),t?d.createElement(h.x,{sx:{position:"relative",width:"100%",height:"100%"},onTouchStart:()=>f(!0)},d.createElement(h.x,{className:"mobile-template",sx:{position:"absolute",height:`${(v?1:((m<=667?190:265)+g+74)/m)*100}%`,left:0,bottom:0,right:0,transition:"height 0.4s ease"}},d.createElement(h.x,{className:"mobile-template-wrapper",sx:{height:"100%",backgroundColor:"white",borderTopLeftRadius:v?0:(0,u.h)(12),borderTopRightRadius:v?0:(0,u.h)(12)}},d.createElement(h.x,{sx:{height:"100%",background:`url(${l})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"top center",overflowY:"auto",borderRadius:"inherit"}},(0,Y.i)(l)&&d.createElement("video",{loop:!0,muted:!0,autoPlay:!0,style:{width:"100%",position:"absolute",top:0,left:0}},d.createElement("source",{src:l})),d.createElement(F.B,Object.assign({variant:"white",leftIcon:d.createElement(U.Z,null),sx:{position:"absolute",right:0,top:0,zIndex:1,padding:(0,u.h)(10)}},s,{onClick:()=>null==c?void 0:c.onClose()})),d.createElement(C.o,{ratio:(null==i?void 0:i.width)/(null==i?void 0:i.height),w:"100%"}),d.createElement(h.x,{className:"inner",sx:{padding:`${(0,u.h)(28)} ${(0,u.h)(16)} ${(0,u.h)(16)}`,background:"white",position:"relative"}},n))))):d.createElement(C.o,{className:"desktop-template",ratio:r.width/r.height,w:"100%",sx:{position:"relative","& > div":{justifyContent:"flex-end"}}},d.createElement(h.x,{sx:{width:"100%",height:"100%",justifyContent:"flex-end",alignItems:"stretch",borderRadius:(0,u.h)(8),background:"white",boxShadow:"0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 2.25rem 1.75rem -0.4375rem, rgba(0, 0, 0, 0.04) 0 1.0625rem 1.0625rem -0.4375rem"}},(0,Y.i)(a)?d.createElement("video",{loop:!0,muted:!0,autoPlay:!0,style:{borderTopLeftRadius:(0,u.h)(8),borderBottomLeftRadius:(0,u.h)(8),height:"100%",display:"block"}},d.createElement("source",{src:a})):d.createElement("img",{alt:"",src:a,loading:"lazy",style:{borderTopLeftRadius:(0,u.h)(8),borderBottomLeftRadius:(0,u.h)(8),height:"100%",display:"block"}}),d.createElement(h.x,{sx:{position:"relative",height:"100%",width:`${(r.width-o.width)/r.width*100}%`}},d.createElement(F.B,Object.assign({variant:"white",leftIcon:d.createElement(U.Z,null)},s,{onClick:()=>null==c?void 0:c.onClose(),sx:{position:"absolute",right:0,top:0,backgroundColor:"transparent"}})),d.createElement(h.x,{className:"side-banner-modal-container",sx:{height:"100%",padding:`${(0,u.h)(40)} ${(0,u.h)(24)} 0`}},n)))))},ec={UPDATE_SUBSCRIPTION:"user/subscription"},ed=(0,d.createContext)({}),_NormalTopic=e=>{var{value:t,name:n}=e,a=(0,P.a)(e,["value","name"]);return d.createElement(R.g,Object.assign({value:t,withIcon:!0},a,{buttonProps:{styles:()=>({leftIcon:{marginRight:(0,u.h)(6)},root:{paddingLeft:(0,u.h)(10),paddingRight:(0,u.h)(10)}})}}),n)},TopicSection=({topicsGroup:e,onTopicChange:t,isBlock:n=!1,selectedTopics:a=[],inputProps:l,labelProps:r,maxSelect:i=5,hasScroll:o,readonly:s})=>{let{action:{pushNotifications:c}}=(0,d.useContext)(S.T),u=J()(e.map(e=>e.topics||[])),{t:p}=(0,M.u)(),[m,C]=(0,d.useState)([]);(0,d.useEffect)(()=>{C(a)},[a.length]),(0,d.useEffect)(()=>{null==t||t(m)},[m]);let onValueChange=e=>{if(e.length>5){c({type:"danger",title:p("pnTopicSection.maxSelectError.title",{maxSelect:i}),message:p("pnTopicSection.maxSelectError.desc")});return}s||C(()=>u.filter(t=>e.some(e=>t.catId===e)))};return d.createElement(g.K,{spacing:12},e.map((e,t)=>d.createElement(g.K,{key:String(t),spacing:12},e.label&&d.createElement(z.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},r),e.label),o?d.createElement(f.x,{w:"100%",offsetScrollbars:!0,scrollbarSize:4,p:16,m:-16,styles:{viewport:{margin:-16,padding:16}}},d.createElement(h.x,{w:800},d.createElement(E.A.Group,Object.assign({value:m.map(e=>e.catId),multiple:!0},l,{onChange:onValueChange}),d.createElement(v.k,{gap:8,wrap:"wrap"},e.topics.map(t=>d.createElement(_NormalTopic,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:n},e.tracking))))))):d.createElement(E.A.Group,Object.assign({value:m.map(e=>e.catId),multiple:!0},l,{onChange:onValueChange}),d.createElement(v.k,{gap:8,wrap:"wrap"},e.topics.map(t=>t.catId?d.createElement(_NormalTopic,Object.assign({key:t.catId,value:t.catId,name:t.localName,isBlock:n},e.tracking)):d.isValidElement(t.component)?t.component:null))))))},Layout=e=>{var{heading:t,children:n,stickyActions:a}=e,l=(0,P.a)(e,["heading","children","stickyActions"]);let{isMobile:r}=(0,d.useContext)(ed),i=d.createElement(g.K,{spacing:(0,u.h)(24),sx:{height:"100%"}},d.createElement(D.H,{tag:"h4",style:{textAlign:"center"}},t),d.createElement(h.x,null,n));return d.createElement(h.x,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative",height:"100%"}})},r?i:d.createElement(f.x,Object.assign({className:"layout-body",h:a?"calc(100% - 90px)":"100%"},l),i),a&&d.createElement(v.k,{gap:(0,u.h)(8),sx:e=>({position:"absolute",left:0,right:0,bottom:0,padding:(0,u.h)(16),button:{flexGrow:1},justifyContent:"center",[e.fn.largerThan("sm")]:{padding:`${(0,u.h)(24)} 0`}})},a))},MainForm=()=>{let{t:e,locale:t}=(0,M.u)(),{data:{userInfo:n},action:{pushNotifications:a}}=(0,d.useContext)(S.T),l=null==n?void 0:n.id,{currentUrl:r,isMobile:i,pnSuggestCategory:o=[],nextStep:s,formValues:c,setFormValues:p,onSubmit:m,submitLoading:h,selectCategory:v,setCategoryLibs:C,setSelectCategory:f,maxSelectCategory:E}=(0,d.useContext)(ed),b=o.map(e=>e.catId),y=(0,N.c)({validate:{name:(0,I.U)(e("healthToolPNModal.mainForm.requireName"))},initialValues:Object.assign(Object.assign({},c),{fitnessTopics:b})}),[x,w]=(0,d.useState)([]),[k,T]=(0,d.useState)([]);(0,d.useEffect)(()=>{(0,P._)(void 0,void 0,void 0,function*(){var e;try{let n=yield(0,S.e)((0,S.h)(eo.GET_SUBSCRIPTION_CATEGORIES,{_locale:t}),"get"),a=((null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.subscription)||[]).filter(e=>!b.includes(e.catId));w(o),T(a),C([...o,...a])}catch(e){console.log(e)}})},[]),(0,d.useEffect)(()=>{l&&y.setFieldValue("name",(null==n?void 0:n.name)||"")},[l]);let onMore=()=>{""!==y.getInputProps("name").value?(p(y.getTransformedValues()),s()):y.validateField("name")},B=(0,d.useMemo)(()=>d.createElement(F.B,{variant:"tertiary",dataEventCategory:"Newsletter",dataEventAction:"More Category Click",dataEventLabel:r,leftIcon:d.createElement(W.Z,{size:16,color:"currentColor"}),onClick:onMore,styles:e=>({root:{borderRadius:(0,u.h)(6),padding:"2px 15px",height:(0,u.h)(40)},label:{fontSize:(0,u.h)(14),fontWeight:400,[e.fn.smallerThan("sm")]:{fontSize:(0,u.h)(12),lineHeight:(0,u.h)(16),height:(0,u.h)(40)}},leftIcon:{marginRight:"5px"}})},d.createElement(z.T,{size:i?"p3":"p4"},e("home.seeMore"))),[y]);return(0,d.useEffect)(()=>{y.setFieldValue("fitnessTopics",v.map(e=>e.catId))},[v]),d.createElement("form",{style:{height:"100%"},onSubmit:y.onSubmit(t=>{if(0===v.length)return a({type:"danger",title:e("newsletter.error.minTitle"),message:e("newsletter.error.minCotennt")}),!1;p(t),null==m||m(t.name)})},d.createElement(Layout,{heading:e("healthToolPNModal.heading"),stickyActions:d.createElement(d.Fragment,null,d.createElement(F.B,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Register Click",dataEventLabel:r,loading:h,sx:{maxWidth:(0,u.h)(240)}},e("healthToolPNModal.register")))},d.createElement(g.K,{spacing:(0,u.h)(16)},d.createElement(R.I,Object.assign({label:e("newsletter.welcome.description")},y.getInputProps("name"))),d.createElement(TopicSection,{topicsGroup:[...0===o.length&&0===k.length?[{topics:[{component:B}]}]:[],...o.length>0?[{label:e("healthToolPNModal.mainForm.tailorTopicsHeading"),topics:[...o,...0===k.length?[{component:B}]:[]]}]:[],...k.length>0?[{label:e("healthToolPNModal.findMore.chooseFav"),topics:[...k,...k.length>0?[{component:B}]:[]]}]:[]],selectedTopics:[...x],labelProps:{size:i?"p3":"p4",color:"gray.6"},onTopicChange:f,maxSelect:E}))))},eu=(0,d.forwardRef)(function(e,t){var{label:n}=e,a=(0,P.a)(e,["label"]);return d.createElement("div",Object.assign({ref:t},a),d.createElement(b.Z,{noWrap:!0},d.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72615 14.8099 11.1702 14.2653 12.3086 13.3547L15.2376 16.2837C15.5264 16.5725 15.9946 16.5725 16.2833 16.2837C16.5721 15.9949 16.5721 15.5267 16.2833 15.238L13.3544 12.3091C14.2652 11.1705 14.8099 9.72634 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"#8C8C8C"})),d.createElement(z.T,{size:"p3"},n)))}),ep=(0,d.forwardRef)(function(e,t){var{label:n}=e,a=(0,P.a)(e,["label"]);return d.createElement("div",Object.assign({ref:t},a),d.createElement(z.T,{size:"p3"},n))}),HistorySection=({history:e,onDelete:t})=>d.createElement(v.k,{wrap:"wrap",gap:8},et()(e,"catId").map(e=>d.createElement(y.C,{key:e.catId,rightSection:d.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",onClick:()=>null==t?void 0:t(e)},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 9C1.5 4.8525 4.8525 1.5 9 1.5C13.1475 1.5 16.5 4.8525 16.5 9C16.5 13.1475 13.1475 16.5 9 16.5C4.8525 16.5 1.5 13.1475 1.5 9ZM11.1677 12.2248C11.4602 12.5173 11.9327 12.5173 12.2252 12.2248C12.5101 11.9323 12.5101 11.4523 12.2252 11.1673L10.0577 8.99979L12.2252 6.83229C12.5177 6.53979 12.5177 6.0673 12.2252 5.7748C11.9327 5.4823 11.4602 5.4823 11.1677 5.7748L9.00015 7.9423L6.83265 5.7748C6.54015 5.4823 6.06765 5.4823 5.77515 5.7748C5.63471 5.91492 5.55579 6.10516 5.55579 6.30354C5.55579 6.50193 5.63471 6.69217 5.77515 6.83229L7.94265 8.99979L5.77515 11.1673C5.63471 11.3074 5.55579 11.4977 5.55579 11.696C5.55579 11.8944 5.63471 12.0847 5.77515 12.2248C6.06765 12.5173 6.54015 12.5173 6.83265 12.2248L9.00015 10.0573L11.1677 12.2248Z",fill:"#8C8C8C"})),styles:{root:{height:32,background:"#ffffff",padding:"5px 12px",border:`1px solid ${j.t.neutral[4]}`,borderRadius:32,textTransform:"unset"},rightSection:{height:18,cursor:"pointer"}}},d.createElement(z.T,{size:"p4"},e.localName)))),RecentlyViewedSection=({topics:e,onTopicChange:t,isBlock:n=!1,selectedTopics:a,labelProps:l,maxSelect:r=5})=>{let{action:{pushNotifications:i}}=(0,d.useContext)(S.T),[o,s]=(0,d.useState)([]),{t:c}=(0,M.u)();return((0,d.useEffect)(()=>{s(a)},[a.length]),(0,d.useEffect)(()=>{t(o)},[o]),e&&0!==e.length)?d.createElement(g.K,{spacing:12,px:16,mx:-16},d.createElement(z.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold"},l),c("pnTopicSection.recentView")),d.createElement(E.A.Group,{value:o.map(e=>e.catId),onChange:t=>{if(n&&o.lengthe.filter(e=>t.some(t=>e.catId===t)))},multiple:!0},d.createElement(v.k,{gap:8,wrap:"wrap"},e.map((e,t)=>d.createElement(_NormalTopic,{key:t,value:e.catId,name:e.localName,isBlock:n}))))):null},_TopicSlide=e=>{var{topic:t,active:n,onClick:a}=e,l=(0,P.a)(e,["topic","active","onClick"]);return d.createElement(h.x,Object.assign({sx:e=>({position:"relative",cursor:"pointer",padding:2,borderRadius:8,boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04)",minHeight:(0,u.h)(130),[e.fn.largerThan("sm")]:{minHeight:(0,u.h)(138)}}),onClick:()=>a(t,n)},l),n&&d.createElement(h.x,{id:"test",sx:{position:"absolute",top:2,right:2,width:20,height:20,zIndex:1}},d.createElement("svg",{id:"test",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66699 9.99984C1.66699 5.39984 5.40033 1.6665 10.0003 1.6665C14.6003 1.6665 18.3337 5.39984 18.3337 9.99984C18.3337 14.5998 14.6003 18.3332 10.0003 18.3332C5.40033 18.3332 1.66699 14.5998 1.66699 9.99984ZM4.75066 10.5827L7.74232 13.5744C8.06732 13.8994 8.60066 13.8994 8.91732 13.5744L15.2423 7.2494C15.5673 6.9244 15.5673 6.3994 15.2423 6.0744C14.9173 5.7494 14.3923 5.7494 14.0673 6.0744L8.33399 11.8077L5.92566 9.40773C5.60066 9.08273 5.07566 9.08273 4.75066 9.40773C4.59461 9.56342 4.50692 9.7748 4.50692 9.99523C4.50692 10.2157 4.59461 10.427 4.75066 10.5827Z",fill:"#2D87F3"}),d.createElement("path",{d:"M7.74224 13.5772L4.75057 10.5856C4.59453 10.4299 4.50684 10.2185 4.50684 9.99808C4.50684 9.77765 4.59453 9.56627 4.75057 9.41058C5.07557 9.08558 5.60057 9.08558 5.92557 9.41058L8.33391 11.8106L14.0672 6.07725C14.3922 5.75225 14.9172 5.75225 15.2422 6.07725C15.5672 6.40225 15.5672 6.92725 15.2422 7.25225L8.91724 13.5772C8.60057 13.9022 8.06724 13.9022 7.74224 13.5772Z",fill:"white"}))),d.createElement(h.x,{sx:{borderRadius:"8px"}},d.createElement(R.c,{ratio:1.5,mb:10,sx:e=>({background:e.colors.neutral[0]})},d.createElement(h.x,null,d.createElement("img",{src:t.guid||"",alt:"cat",loading:"lazy",style:{maxHeight:"63px"}})))),d.createElement(z.T,{size:"p4",ta:"center",px:6,sx:{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}},t.localName||""))},TrendingCarousel=({topics:e,selectedTopics:t=[],onTopicChange:n,isBlock:a=!1,labelProps:l,pushNotifications:r,maxSelect:i=5})=>{let{t:o}=(0,M.u)(),[s,c]=(0,d.useState)([]),onSelect=(e,t)=>{if(t)c(t=>t.filter(t=>t.catId!==e.catId));else{if(a){r({type:"danger",title:o("pnTopicSection.maxSelectError.title",{maxSelect:i}),message:o("pnTopicSection.maxSelectError.desc")});return}c(t=>[...t,e])}};(0,d.useEffect)(()=>{c(t)},[t.length]),(0,d.useEffect)(()=>{n(s)},[s]);let[u,p]=(0,d.useState)(!1),[m,C]=(0,d.useState)(0),[E,b]=(0,d.useState)(0),y=(0,d.useRef)(null),handleMouseUp=()=>{p(!1)};return d.createElement(g.K,{spacing:10},d.createElement(v.k,{justify:"space-between",align:"center",w:"100%"},d.createElement(z.T,Object.assign({size:"s5",color:"gray.4",weight:"semiBold",span:!0},l),o("pnTopicSection.trending"))),d.createElement(h.x,null,d.createElement(f.x,{type:"always",w:"100%",offsetScrollbars:!0,scrollbarSize:4,px:4,viewportRef:y,viewportProps:{onMouseDown:e=>{e.preventDefault(),y.current&&(p(!0),C(e.pageX-y.current.offsetLeft),b(y.current.scrollLeft))},onMouseUp:handleMouseUp,onMouseLeave:handleMouseUp,onMouseMove:e=>{if(e.preventDefault(),!u||!y.current)return;let t=e.pageX-y.current.offsetLeft;y.current.scrollLeft=E-(t-m)*2}},styles:{viewport:{paddingBottom:16}}},d.createElement(h.x,{w:{base:112*e.length+8*(e.length-1)+10}},d.createElement(v.k,{gap:8},e.map((e,t)=>d.createElement(_TopicSlide,{key:t,topic:e,onClick:onSelect,active:s.some(t=>t.catId===e.catId),w:{base:112}})))))))},PremiumTopicSelect=e=>{var{isLoggedIn:t,maxSelect:n=5,values:a=[],labelProps:l,onChange:r}=e,i=(0,P.a)(e,["isLoggedIn","maxSelect","values","labelProps","onChange"]);let{action:{pushNotifications:o}}=(0,d.useContext)(S.T),[s,c]=(0,d.useState)(""),{t:p,locale:m}=(0,M.u)(),v=(0,d.useRef)(null),[C,f]=(0,d.useState)([]),[E,b]=(0,d.useState)([]),[y,w]=(0,d.useState)([]),[k,T]=(0,d.useState)([]),[B,_]=(0,d.useState)(null),[O,L]=(0,d.useState)([]);(0,d.useEffect)(()=>{(0,P._)(void 0,void 0,void 0,function*(){var e,t;let n=yield(0,S.e)((0,S.h)(eo.GET_NEWSLETTER_CATEGORIES,{_locale:m}),"get"),l=(null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.interested)||[],r=(null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.trending)||[],i=et()([...l,...r],"catId"),o=i.map(e=>Object.assign(Object.assign({},e),{value:e.catId||"",label:e.localName||""}));if(L(o||[]),_((null==n?void 0:n.data)||null),a.length>0){let e=l.filter(e=>a.includes(e.catId)).map(e=>Object.assign(Object.assign({},e),{template:"interested"})),t=r.filter(e=>a.includes(e.catId)).map(e=>Object.assign(Object.assign({},e),{template:"trending"}));T(e),b(t)}})},[t]);let A=(0,d.useMemo)(()=>et()([...C,...E,...k,...y],"catId"),[C,E,k,y]),[N,I]=(0,d.useState)(!1);(0,d.useEffect)(()=>{A.length>=n?I(!0):I(!1),null==r||r(A)},[A]);let onValueChange=e=>(0,P._)(void 0,void 0,void 0,function*(){var t;let a="default";if(N)o({type:"danger",title:p("pnTopicSection.maxSelectError.title",{maxSelect:n}),message:p("pnTopicSection.maxSelectError.desc")});else{let n=[{key:"trending",array:null==B?void 0:B.trending},{key:"recently",array:null==B?void 0:B.recently},{key:"interested",array:null==B?void 0:B.interested}],l=n.find(t=>{var n;return null===(n=t.array)||void 0===n?void 0:n.some(t=>t.catId===e[0])});({trending:b,recently:w,interested:T,default:f})[a=(null==l?void 0:l.key)||"default"](t=>[...t,...O.filter(t=>e.some(e=>t.catId===e))].map(e=>Object.assign(Object.assign({},e),{template:a}))),null===(t=v.current)||void 0===t||t.blur()}return null});return d.createElement(g.K,Object.assign({spacing:(0,u.h)(16)},i),d.createElement(g.K,{spacing:(0,u.h)(8)},d.createElement(z.T,{size:"p3"},p("pnTopicSection.maxSelectError.detail",{max:n,maxTopic:A.length})),d.createElement(x.NU,{ref:v,maxSelectedValues:3,styles:{wrapper:{overflow:"initial !important"},separator:{padding:16},separatorLabel:{fontWeight:600,fontSize:12,lineHeight:"18px",textTransform:"uppercase",color:j.t.gray[4],"&::after":{display:"none"}},searchInput:{fontSize:"inherit"},input:{paddingRight:16}},nothingFound:d.createElement(z.T,{size:"s4",color:"gray.6"},p("pnTopicSection.notFound")),itemComponent:""===s?eu:ep,size:"lg",placeholder:p("pnTopicSection.plsEnterFavTopics"),data:O,onSearchChange:c,searchValue:s,icon:d.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9682 19.7465 14.8936 19.0205 16.4115 17.8063L20.3168 21.7116C20.7018 22.0966 21.3261 22.0966 21.7111 21.7116C22.0961 21.3266 22.0961 20.7023 21.7111 20.3173L17.8059 16.4121C19.0203 14.894 19.7465 12.9684 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#595959"})),rightSection:d.createElement(d.Fragment,null),zIndex:500,searchable:!0,withinPortal:!0,onChange:e=>onValueChange(e),value:[]}),A&&A.length>0&&d.createElement(HistorySection,{history:A,onDelete:e=>{let t={trending:b,recently:w,interested:T,default:f},n=t[e.template]||t.default;n(t=>{let n=[...t],a=n.findIndex(t=>t.catId===e.catId);return n.splice(a,1),n})}})),d.createElement(h.x,{sx:e=>({position:"relative",height:(0,u.h)(175),[e.fn.largerThan("sm")]:{height:(0,u.h)(190)}})},d.createElement(h.x,{sx:{position:"absolute",top:0,right:0,left:0}},d.createElement(TrendingCarousel,{topics:((null==B?void 0:B.trending)||[]).map(e=>Object.assign(Object.assign({},e),{template:"trending"})),selectedTopics:E,onTopicChange:b,isBlock:N,labelProps:l}))),d.createElement(RecentlyViewedSection,{topics:((null==B?void 0:B.recently)||[]).map(e=>Object.assign(Object.assign({},e),{template:"recently"})),selectedTopics:y,onTopicChange:w,isBlock:N,labelProps:l}),d.createElement(TopicSection,{labelProps:l,topicsGroup:[{label:p("pnTopicSection.ppAlsoInterested"),topics:((null==B?void 0:B.interested)||[]).map(e=>Object.assign(Object.assign({},e),{template:"interested"}))}],selectedTopics:k,onTopicChange:T,isBlock:N}))},MoreTopics=()=>{let{t:e}=(0,M.u)(),{action:{pushNotifications:t}}=(0,d.useContext)(S.T),{prevStep:n,formValues:a,submitLoading:l,onSubmit:r,selectCategory:i,maxSelectCategory:o,setSelectCategory:s,currentUrl:c,isLoggedIn:p}=(0,d.useContext)(ed);return d.createElement(Layout,{heading:e("newsletter.topic.title"),type:"always",styles:{root:{paddingRight:(0,u.h)(25)}},stickyActions:d.createElement(d.Fragment,null,d.createElement(F.B,{fullWidth:!0,variant:"secondary",dataEventCategory:"Newsletter",dataEventAction:"Back Click",dataEventLabel:c,onClick:n},e("healthToolPNModal.back")),d.createElement(F.B,{fullWidth:!0,type:"submit",dataEventCategory:"Newsletter",dataEventAction:"Next Click",dataEventLabel:c,onClick:()=>{if(0===i.length)return t({type:"danger",title:e("newsletter.error.minTitle"),message:e("newsletter.error.minCotennt")}),!1;null==r||r(a.name)},loading:l},e("healthToolPNModal.next")))},d.createElement(PremiumTopicSelect,{isLoggedIn:p,maxSelect:o,values:a.fitnessTopics,onChange:s,labelProps:{size:"s5",sx:{textTransform:"uppercase"}}}))},Result=()=>{let{t:e}=(0,M.u)(),{close:t,selectCategory:n,onRegisterSuccess:a,currentUrl:l,finishLabelOnResult:r,disclaimerText:i}=(0,d.useContext)(ed);return(0,d.useEffect)(()=>()=>{setTimeout(()=>{null==a||a()},400)},[]),d.createElement(Layout,{heading:e("healthToolPNModal.heading"),stickyActions:d.createElement(F.B,{fullWidth:!0,sx:{maxWidth:(0,u.h)(300)},dataEventCategory:"Newsletter",dataEventAction:"Continue Reading Click",dataEventLabel:l,onClick:()=>{t()}},r||e("healthToolPNModal.finish"))},d.createElement(g.K,null,d.createElement(v.k,{gap:(0,u.h)(8),sx:e=>({background:e.colors.green[0],border:`1px solid ${e.colors.green[1]}`,borderRadius:(0,u.h)(8),padding:(0,u.h)(8)})},d.createElement(h.x,null,d.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},d.createElement("path",{d:"M9.99984 18.3334C14.6022 18.3334 18.3332 14.6025 18.3332 10.0001C18.3332 5.39771 14.6022 1.66675 9.99984 1.66675C5.39746 1.66675 1.6665 5.39771 1.6665 10.0001C1.6665 14.6025 5.39746 18.3334 9.99984 18.3334Z",fill:"#00B16A"}),d.createElement("path",{d:"M9.58558 12.6674C9.22944 12.668 8.87668 12.5983 8.54752 12.4623C8.21835 12.3264 7.91925 12.1268 7.66732 11.8751L6.68587 10.8931C6.55607 10.7587 6.48424 10.5787 6.48587 10.3919C6.48749 10.2051 6.56243 10.0263 6.69455 9.89422C6.82667 9.7621 7.00539 9.68716 7.19222 9.68554C7.37906 9.68391 7.55906 9.75574 7.69345 9.88554L8.67491 10.8675C8.79344 10.986 8.93415 11.08 9.08902 11.1442C9.24389 11.2083 9.40987 11.2413 9.5775 11.2413C9.74513 11.2413 9.91111 11.2083 10.066 11.1442C10.2208 11.08 10.3616 10.986 10.4801 10.8675L16.7033 5.24335C16.8443 5.12184 17.0272 5.06032 17.213 5.07195C17.3987 5.08358 17.5726 5.16744 17.6973 5.30558C17.8221 5.44373 17.8878 5.6252 17.8805 5.81118C17.8731 5.99717 17.7933 6.17291 17.6581 6.30081L11.4592 11.8998C11.2128 12.1448 10.9205 12.3387 10.5989 12.4705C10.2774 12.6022 9.93304 12.6692 9.58558 12.6674Z",fill:"white"}))),d.createElement(z.T,{size:"p3"},i||e("pnModal.disclaimer"))),d.createElement(D.H,{tag:"h5"},e("healthToolPNModal.yourPre")),n.length>0&&d.createElement(TopicSection,{topicsGroup:[{label:"",topics:n}],selectedTopics:n,readonly:!0})))},PremiumNewsletterModal=({isMobile:e,isLoggedIn:t,pnSuggestCategory:n=[],acquisitionInfo:a,currentUrl:l,opened:r,close:i,finishLabelOnResult:o,onRegisterSuccess:s,disclaimerText:c})=>{let{t:u,locale:p}=(0,M.u)(),{action:{pushNotifications:m}}=(0,d.useContext)(S.T),h=k.C.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),g=k.C.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),[v,C]=(0,d.useState)([]),[f,E]=(0,d.useState)([]),[b,y]=(0,d.useState)(0),[x,B]=(0,d.useState)({name:"",fitnessTopics:[]}),[_,O]=(0,d.useState)(!1),lastStep=()=>y(2),L=(0,d.useCallback)(e=>(0,P._)(void 0,void 0,void 0,function*(){try{O(!0),yield(0,S.e)((0,S.h)(eo.POST_SUBSCRIPTION,{website_url:(0,S.i)(p)}),"post",{headers:{"Content-Type":"application/json"},method:"POST",data:{ga_client_id:Q.Z.get(T.G),client_ip:window.clientIP||"",user_info:Object.assign(Object.assign({},a.userInfo),{name:e||x.name,type_subscription:1}),domain:q.v[p||en.L.Vietnam],category:f,perferred:a.preferredTopics.map(({id:e})=>({id:e}))}}),O(!1),yield(0,S.e)((0,S.j)(ec.UPDATE_SUBSCRIPTION),"post",{headers:{"Content-Type":"application/json"},method:"PUT",data:{subscription:1}}),lastStep()}catch(e){console.log({err:e}),O(!1),m({title:u("notification.comment.somethingWrong"),message:"",type:"danger"})}}),[x,f]);return(0,d.useEffect)(()=>{[h,g].forEach(e=>{let t=new Image;t.src=e})},[]),d.createElement(ed.Provider,{value:{currentUrl:l,isMobile:e,isLoggedIn:t,opened:r,close:i,pnSuggestCategory:n,nextStep:()=>y(e=>e<3?e+1:e),prevStep:()=>y(e=>e>0?e-1:e),lastStep,categoryLibs:v,setCategoryLibs:C,selectCategory:f,setSelectCategory:E,formValues:x,setFormValues:B,maxSelectCategory:5,submitLoading:_,onSubmit:L,onRegisterSuccess:s,finishLabelOnResult:o,disclaimerText:c}},d.createElement(SideBannerModal,{isMobile:e,desktopBanner:k.C.getAssetPath("premiumNewsletter/side-banner-desktop.jpg"),mobileBanner:k.C.getAssetPath("premiumNewsletter/side-banner-mobile.jpg"),modalRatio:{width:960,height:588},desktopBannerRatio:{width:384,height:588},opened:r,onClose:i,zIndex:305,closeProps:{dataEventCategory:"Newsletter",dataEventAction:"Close Click",dataEventLabel:l}},d.createElement(w.v,{active:b,onStepClick:y,styles:{root:{height:"100%"},content:{padding:0,height:"100%",width:"100%"},steps:{display:"none"}}},d.createElement(w.v.Step,null,d.createElement(MainForm,null)),d.createElement(w.v.Step,null,d.createElement(MoreTopics,null)),d.createElement(w.v.Step,null,d.createElement(Result,null)))))},SurveyBanner=()=>{let{locale:e}=(0,M.u)(),{isMobile:t,isLoggedIn:n,currentUrl:a,acquisitionInfo:l,categoryIds:r,state:i,setState:o,settings:s,submitHandler:u,subcribeHealthStatus:p,showPNModal:m,setShowPNModal:h,setIsBack:g}=(0,d.useContext)(ei),[v,C]=(0,d.useState)([]),[f,E]=(0,d.useState)(m);(0,d.useEffect)(()=>{(0,P._)(void 0,void 0,void 0,function*(){var t,n;let a=yield(0,S.e)((0,S.h)(eo.GET_NEWSLETTER_CATEGORIES,{_locale:e}),"get"),l=(null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.interested)||[],i=(null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.trending)||[],o=[...l,...i];C(o.filter(e=>r.includes(Number(e.catId))))})},[]);let b=(0,d.useRef)([]);return(0,d.useEffect)(()=>{let e=(null==p?void 0:p.value)||"",t=e.split("|").filter(Boolean),n=e;b.current.push(p),t.length>1&&(null!==b.current[0]&&g(!0),Object.keys(u).map(e=>{let a=e.split("|");if(t.length===a.length){let l=0;t.map(e=>{a.includes(String(e))&&(l+=1)}),l===t.length&&(n=e)}}));let a=t.length>0?u[n]:s;o(a)},[p]),(0,d.useEffect)(()=>{E(m)},[m]),(null==i?void 0:i.action)!==c.Hide?d.createElement(d.Fragment,null,d.createElement(HandlerBanner,Object.assign({},s.props)),d.createElement(PremiumNewsletterModal,{acquisitionInfo:l,isMobile:t,isLoggedIn:n,currentUrl:a,pnSuggestCategory:v,opened:f,close:()=>{var e;E(!1),h(!1),setTimeout(()=>{var e;(null===(e=i.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&o({action:c.Hide})},400),(null===(e=i.actionParams)||void 0===e?void 0:e.hideBannerWhenClose)&&o({action:c.Hide})},onRegisterSuccess:()=>E(!1)})):null},SurveyOrPremiumBanner=({type:e,articleId:t=0,categoryIds:n=[],isMarketing:a,isSurveyType:l,hasPremiumBanner:r,currentUrl:i,isMobile:o,subcribeHealthStatus:s,setShouldAcquisitionModalOpen:u,onValueChange:p,source:m="discover",Wrapper:g})=>{let{t:v}=(0,M.u)(),{data:{userInfo:C}}=(0,d.useContext)(S.T),f=!!(null==C?void 0:C.id),[E,b]=(0,d.useState)(null),[y,x]=(0,d.useState)(),[w,k]=(0,d.useState)(""),[T,B]=(0,d.useState)(!1),[_,P]=(0,d.useState)(!1),O=(0,d.useMemo)(()=>el[e],[]),L=FLOW(v,i)[O],A=null==L?void 0:L.submitHandler,getMappingMultiValue=e=>{let t="",n=e.split("|");return 1===n.length?e:(Object.keys(A).map(e=>{let a=e.split("|");if(n.length===a.length){let l=0;n.map(e=>{a.includes(String(e))&&(l+=1)}),l===n.length&&(t=e)}}),t)},N=g||h.x,handleShowPNBannerFlowWhenLogin=()=>r&&(null==C?void 0:C.subscription)!==1?d.createElement(PnBannerEle,null):null;return(0,d.useEffect)(()=>{f&&b({userInfo:C,preferredTopics:ea,healthTopics:[]})},[f]),d.createElement(ei.Provider,{value:{settings:L,submitHandler:A,type:e,surveyType:O,value:w,setValue:k,isMobile:o,isLoggedIn:f,isMarketing:a,hasPremiumBanner:r,currentUrl:i,acquisitionInfo:E,categoryIds:n,subcribeHealthStatus:s,articleId:t,onValueChange:p,state:y,setState:x,handleClickOption:e=>{let t=getMappingMultiValue(e);if(t){let n=A[t];n.action===c.ShowPremiumModal?r?(B(!0),x(Object.assign(Object.assign({},y),{actionParams:{hideBannerWhenClose:n.action===c.ShowPremiumModal}}))):(x({action:c.Hide}),null==p||p(e)):(x(n),null==p||p(e))}},showPNModal:T,setShowPNModal:B,source:m,Outside:N,isBack:_,setIsBack:P,minHeight:180,setShouldAcquisitionModalOpen:u}},void 0!==s?f?l&&L?(()=>{let e=A[(null==s?void 0:s.value)||""];return(null==e?void 0:e.action)===c.ShowPremiumModal?handleShowPNBannerFlowWhenLogin():d.createElement(SurveyBanner,null)})():handleShowPNBannerFlowWhenLogin():r?d.createElement(PnBannerEle,null):null:null)}},"H/q8":function(e,t,n){n.d(t,{L:function(){return Loading}});var a=n("q1tI"),l=n("Z+18"),r=n("WTZ1");let Loading=({className:e,size:t="md"})=>{let{t:n}=(0,l.u)();return a.createElement("div",{className:`PD6nRZX ${e}`},a.createElement(r.B,{size:t,color:"transparent",isLoading:!0},n("loading")))}},RzjD:function(e,t,n){n.d(t,{P:function(){return PostContent},T:function(){return r},U:function(){return i},a:function(){return ProfileDetail},b:function(){return U}});var a,l,r,i,o=n("T/vS"),s=n("q1tI"),c=n("Wgwc"),d=n.n(c),u=n("Py5H"),p=n("H/q8"),m=n("eKPt"),h=n("IQVP"),g=n("GAI/"),v=n("vWP/"),C=n("/npG"),f=n("eito"),E=n("bpvy"),b=n("SPK5"),y=n("8vDj"),x=n("0dn/"),w=n("FfBq"),k=n("OZ05"),S=n("YRXs"),T=n("Z+18"),B=n("iBNF"),_=n("Frvz"),P=n("h84G"),O=n("SMDy"),L=n("dDw1"),A=n("RlpF"),M=n("rBCA"),N=n("aZjv"),I=n("did1"),R=n("WTZ1");let j=M.Z.div` padding: 0.5rem 1rem 1rem; line-height: 1.5; word-break: break-word; .post-content-replying { margin-right: 5px; cursor: pointer; display: inline-block; &.tag-only { margin-right: 0; } } .post-content { display: inline; white-space: pre-wrap; /* > *:first-child, */ > mention:first-child ~ * { &:not(ul), &:not(ol) { display: inline-block; } } > mention:first-child { margin-right: 5px; } &.has-see-more { *:last-child { &:not(ul), &:not(ol) { display: inline; } } } img { width: 100%; height: unset; } ul, ol { list-style-position: inside; padding-left: 1rem; display: block; } ol { list-style-type: decimal; } ul { list-style-type: disc; } mention { color: ${e=>e.mentionColor||"#1890ff"}; padding-right: 4px; :hover { text-decoration: underline; } } .markdown { white-space: normal; p, ul, ol { margin-top: 1em; &:first-child { margin-top: 0; } } li { margin-top: 0.5em; &:first-child { margin-top: 0; } } } } `,z=M.Z.span` overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: ${e=>e.line||1}; display: -webkit-box; -webkit-box-orient: vertical; &.post-content-show-all { display: block; } `,F=M.Z.span` padding-left: 2px; background-color: ${B.r.colors.white}; bottom: 8px; position: absolute; right: 0; z-index: 10; cursor: pointer; `;var $=(0,C.k)(e=>({root:{mention:{color:e.fn.primaryColor()},a:{"&,&:visited,&:focus":{color:e.fn.primaryColor()}},".create-post-link":{display:"inline",color:e.fn.primaryColor(),cursor:"pointer"}}}));let PostContent=e=>{var{trackingCategory:t,url:n,className:a,style:l,replyingTo:r,mentionedUser:i,description:c,disableShortenContent:d,mentions:u=[],maxChars:p=1e3,maxLines:m,hideShowAllBtn:h,styles:v,onClickCreatePostLink:C}=e,E=(0,o.a)(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","maxLines","hideShowAllBtn","styles","onClickCreatePostLink"]);let{classes:b,theme:y}=$(void 0,{name:"PostContent",styles:v}),[x,w]=(0,s.useState)(!1),[S,B]=(0,s.useState)(!1),{t:_}=(0,T.u)(),{authActionWrapper:P}=(0,N.iV)(),[O,L]=(0,s.useState)(!1),A=(0,I.d)((0,I.b)(c||"","display"),u),{action:{sanitizeFunction:M}}=(0,s.useContext)(g.T),R=(0,s.useMemo)(()=>{let e=M(A||"");if(d||x)return{showContent:e,hasSeeMore:!1};let t=e.slice(0,p),n=p-((t.match(/<\/div>/g)||[]).length-1)*27,a=(t||"").slice(0,n<40?40:n),l=M(a.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),r=l.lengths.createElement(s.Fragment,null,"... ",!h&&s.createElement(f.e,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),P(()=>w(!0))},className:"see-more-text"},t?{"data-event-category":t,"data-event-action":"See More Post Click","data-event-label":n}:{}),_("post.seeMore"))),[h,n,t]),handleCreatePostClick=e=>{e.preventDefault(),null==C||C()},isEllipsisActive=e=>e.scrollHeight>e.clientHeight;return(0,s.useEffect)(()=>{var e;return null===(e=null==Z?void 0:Z.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach(e=>{e.addEventListener("click",handleCreatePostClick,{passive:!0})}),()=>{var e;null===(e=null==Z?void 0:Z.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach(e=>{e.removeEventListener("click",handleCreatePostClick,!1)})}},[d,x,A]),(0,s.useEffect)(()=>{G.current&&A&&m&&(isEllipsisActive(G.current)?B(!0):B(!1))},[A,m]),s.createElement(s.Fragment,null,D&&s.createElement(k.P,{isOpen:O,onClose:()=>L(!1),expertId:String(null==i?void 0:i.partnerId)}),s.createElement(j,Object.assign({ref:Z,className:`${b.root} ${a} no-replace-click`,style:l,mentionColor:y.fn.primaryColor()},E),H&&s.createElement(f.e,{onClick:()=>D&&L(!0),className:"post-content-replying"},"@",H),(null==c?void 0:c.startsWith("[mention+id="))&&s.createElement("span",{className:"post-content-replying tag-only",style:{color:y.fn.primaryColor()}},"@"),m?s.createElement(s.Fragment,null,s.createElement(z,{dangerouslySetInnerHTML:{__html:A},className:`post-content-line ${x?"post-content-show-all":""}`,line:m,ref:G}),S&&!x&&s.createElement(F,null,q())):s.createElement(s.Fragment,null,s.createElement("span",{dangerouslySetInnerHTML:{__html:R.showContent},className:`post-content ${R.hasSeeMore?"has-see-more":""}`}),R.hasSeeMore&&!x&&s.createElement("span",null,q()))))},CategoryText=({children:e,className:t=""})=>s.createElement("div",{className:`l5fL1xL ${t}`},e),Title=({children:e,className:t=""})=>s.createElement("div",{className:`L-aGKo7 ${t}`},e),Thumbnail=({src:e,defaultSrc:t=x.C.getAssetPath("logo/logomark.png"),ratio:n=1,size:a=80,radius:l=8,alt:r,className:i=""})=>s.createElement("div",{className:i},s.createElement("div",{className:"DZmf3s7",style:{width:`${a}px`,height:`${a*n}px`,borderRadius:`${l}px`}},s.createElement(w.I,{src:e,backupSrc:t,alt:r}))),CardArticle=({category:e,title:t,src:n,children:a,className:l=""})=>s.createElement("div",{className:`eaR8ATZ ${l}`},s.createElement(Thumbnail,{src:n}),s.createElement("div",{className:"xM-7K0a"},a||s.createElement("div",null,e&&s.createElement(CategoryText,null,e),t&&s.createElement(Title,null,t))));CardArticle.CategoryText=CategoryText,CardArticle.Title=Title;let ArticleCard=({featureImage:e,postTitle:t,author:n,categories:a,isReview:l,className:r=""})=>{var i;return s.createElement(CardArticle,{src:e,className:r},s.createElement(s.Fragment,null,s.createElement(CardArticle.CategoryText,null,null===(i=null==a?void 0:a[0])||void 0===i?void 0:i.name),s.createElement(CardArticle.Title,null,t),s.createElement(k.d,{avatarProps:Object.assign(Object.assign({},n),{size:32}),subTitle:s.createElement(s.Fragment,null,l?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD",s.createElement(k.d.SubDivider,null),"Dec 12, 2022")})))};var H={container:"SFSgnOz",header:"Tf3aoVa",heading:"TOt4QXl",headingIcon:"_5XYN1KT",accBodyGroup:"yE-tZRj",accBodyGroupItem:"LXiGuGT",accBodyGroupDesc:"r4rx-6v",subTitle:"XrHh8-C",subIcon:"c5-Yecd",group:"UBj6nWr",groupBody:"_2vptVBd",articleCardLink:"ZPDAwiR",relatedList:"_6wJn-NR",socialItem:"_21XDdFv",mbChevronWrapper:"LSyr3Zo"};let D=(0,s.createContext)({}),About=({className:e=""})=>{var t,n,a,l,r;let{t:i}=(0,T.u)(),{info:o,isMarryBaby:c,currentPageUrl:d}=(0,s.useContext)(D),u=null==o?void 0:o.data,p=[{type:S.S.LinkedIn,icon:x.C.getAssetPath("linkedin.svg"),url:null===(t=null==o?void 0:o.contact)||void 0===t?void 0:t.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:S.S.Instagram,icon:x.C.getAssetPath("instagram.svg"),url:null===(n=null==o?void 0:o.contact)||void 0===n?void 0:n.instagram,eventAction:"Doctor Profile - Instagram"},{type:S.S.Facebook,icon:x.C.getAssetPath("facebook.svg"),url:null===(a=null==o?void 0:o.contact)||void 0===a?void 0:a.facebook,eventAction:"Doctor Profile - Facebook"},{type:S.S.Youtube,icon:x.C.getAssetPath("youtube.svg"),url:null===(l=null==o?void 0:o.contact)||void 0===l?void 0:l.youtube,eventAction:"Doctor Profile - Youtube"},{type:S.S.Tiktok,icon:x.C.getAssetPath("tiktok.svg"),url:null===(r=null==o?void 0:o.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],m=[...((null==o?void 0:o.experiences)||[]).length>0?[{key:"experience",heading:i("profilePanel.experience"),iconSrc:x.C.getAssetPath(c?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:s.createElement("div",{className:H.accBodyGroup},null==o?void 0:o.experiences.map((e,t)=>s.createElement("div",{className:H.accBodyGroupItem,key:String(t)},s.createElement("div",{className:H.accBodyGroupTitle},e.title),s.createElement("div",{className:H.accBodyGroupDesc},s.createElement("p",null,e.organization),s.createElement("p",null,e.duration)))))}]:[],...((null==o?void 0:o.educations)||[]).length>0?[{key:"education",heading:i("profilePanel.education"),iconSrc:x.C.getAssetPath(c?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:s.createElement("div",{className:H.accBodyGroup},null==o?void 0:o.educations.map((e,t)=>s.createElement("div",{className:H.accBodyGroupItem,key:String(t)},s.createElement("div",{className:H.accBodyGroupTitle},e.schoolName),s.createElement("div",{className:H.accBodyGroupDesc},s.createElement("p",null,e.study),s.createElement("p",null,e.completedYear)))))}]:[],...((null==o?void 0:o.awards)||[]).length>0?[{key:"awards",heading:i("profilePanel.awards"),iconSrc:x.C.getAssetPath(c?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:s.createElement("div",{className:H.accBodyGroup},null==o?void 0:o.awards.map((e,t)=>s.createElement("div",{className:H.accBodyGroupTitle,key:t},e.title)))}]:[]],h=(null==o?void 0:o.relatedPosts)||[],g=p.filter(e=>e.url);return s.createElement("div",{className:`${H.container} ${e}`,"data-is-marrybaby":c},m.length>0&&s.createElement(E.U,{defaultValue:m[0].key,chevron:c?s.createElement("div",{className:H.mbChevronWrapper},s.createElement(v.Z,{size:12,color:B.r.mbColors.midGray})):s.createElement(v.Z,{color:B.r.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},m.map(e=>s.createElement(E.U.Item,{key:e.key,value:e.key},s.createElement(E.U.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":d},s.createElement("div",{className:H.header},s.createElement("div",{className:H.headingIcon},s.createElement("img",{src:e.iconSrc,loading:"lazy"})),s.createElement("div",{className:H.heading},e.heading))),s.createElement(E.U.Panel,null,e.panel)))),h.length>0&&s.createElement("div",{className:H.group},s.createElement("div",{className:H.subTitle},s.createElement("img",{className:H.subIcon,src:x.C.getAssetPath(c?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),i("profilePanel.publishedArticles")),s.createElement("div",{className:`${H.relatedList}`},null==o?void 0:o.relatedPosts.map(e=>s.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:H.articleCardLink},s.createElement(ArticleCard,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==u?void 0:u.name,avatar:null==u?void 0:u.avatar}}),{isReview:!0})))))),g.length>0&&s.createElement("div",{className:H.group},s.createElement("div",{className:H.subTitle},s.createElement("img",{className:H.subIcon,src:x.C.getAssetPath(c?"social-mb.svg":"social.svg"),loading:"lazy"}),i("profilePanel.socialLinks")),s.createElement("div",{className:H.groupBody},s.createElement(b.k,null,p.map((e,t)=>e.url&&s.createElement("div",{className:H.socialItem,key:t},s.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},s.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":d}))))))))};var Z={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};let PostCard$1=({post:e,className:t=""})=>{var n,a,l,r,i,o,c,d;let{t:u}=(0,T.u)(),{data:{userInfo:p,env:{togetherBasePath:m}}}=(0,s.useContext)(g.T),{authActionWrapper:h,authorProps:v,currentPageUrl:C}=(0,s.useContext)(D),f=`${window.location.origin}${m}/${null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.slug}/${null==e?void 0:e.slug}/`;return s.createElement("div",{className:`${Z.container} ${t}`},s.createElement("div",{className:Z.header},s.createElement("div",{className:Z.question},u("profilePanel.question")," ",s.createElement(O.b,{className:Z.questionTitle,href:"#",onClick:()=>{(null==p?void 0:p.id)||null==h||h(()=>window.location.href=f,{_location:f})}},"#",null==e?void 0:e.title)),s.createElement("div",{className:Z.community},null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.name," - ",null==e?void 0:e.createdTime)),s.createElement("div",{className:Z.questionCard},s.createElement(k.C,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:s.createElement(_.Z,null),subLine:s.createElement(k.C.SubTextRow,null,s.createElement(k.C.SubText,null,null===(i=null===(r=null===(l=null==e?void 0:e.expertAnswer)||void 0===l?void 0:l.answer)||void 0===r?void 0:r[0])||void 0===i?void 0:i.createdTime))})),s.createElement(PostContent,{className:"post-content-wrapper",description:(null===(d=null===(c=null===(o=null==e?void 0:e.expertAnswer)||void 0===o?void 0:o.answer)||void 0===c?void 0:c[0])||void 0===d?void 0:d.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),s.createElement(A.B,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":C,size:"md",onClick:()=>{(null==p?void 0:p.id)?window.location.href=f:null==h||h(()=>window.location.href=f,{_location:f})}},u("profilePanel.anserwing.viewFull")))};var G={container:"_8fd7YMs",thumb:"DomiQfw",content:"-b2qnfL"};let EmptyMessage=({message:e,buttonTxt:t,imgSrc:n,onBtnClick:a})=>{let{siteType:l,isMarryBaby:r}=(0,s.useContext)(D);return s.createElement("div",{className:G.container},s.createElement("div",{className:G.thumb},s.createElement("img",{src:n||x.C.getAssetPath(r?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&s.createElement("div",{className:G.content},e),t&&s.createElement(R.B,{size:"md",theme:l,color:"secondary",onClick:a},t))},Answering=({id:e})=>{let{t}=(0,T.u)(),{data:{locale:n}}=(0,s.useContext)(g.T),{authorProps:a}=(0,s.useContext)(D),[l,r]=(0,s.useState)(null),[i,c]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{e&&(0,o._)(void 0,void 0,void 0,function*(){var t;c(!0);let a=yield(0,g.c)((0,g.f)(h.yy.USER.LIST_ANSWERS,{_locale:n,id:e}),"GET"),l=((null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.replies)||[]).map(m.b);r(l),c(!1)})},[]),s.createElement("div",{className:"MrdoES3"},i?s.createElement(p.L,null):null!==l&&(l.length>0?l.map(e=>s.createElement(PostCard$1,{className:"post-card",key:e.id,post:e})):s.createElement(EmptyMessage,{message:t("profilePanel.emptyPostMess.content",{name:(null==a?void 0:a.name)||(null==a?void 0:a.username)})})))},QuestionCard=e=>{var t,n,a,l,{post:r}=e,i=(0,o.a)(e,["post"]);let{data:{env:{togetherBasePath:c}}}=(0,s.useContext)(g.T);return s.createElement(s.Fragment,null,s.createElement("div",Object.assign({},i,{className:`toEutn7 ${(null==i?void 0:i.className)||""}`}),s.createElement(k.C,{className:"card-author",avatar:null===(t=null==r?void 0:r.author)||void 0===t?void 0:t.avatar,name:(null===(n=null==r?void 0:r.author)||void 0===n?void 0:n.name)||(null===(a=null==r?void 0:r.author)||void 0===a?void 0:a.username),isAnonymous:!!(null==r?void 0:r.isAnonymous),subLine:s.createElement(k.C.SubTextRow,null,s.createElement(k.C.SubText,null,null==r?void 0:r.createdTime))}),s.createElement(O.b,{href:`${window.location.origin}${c}/${null===(l=null==r?void 0:r.community)||void 0===l?void 0:l.slug}/${null==r?void 0:r.slug}/`,className:"drdisHs",rel:"noreferrer"},null==r?void 0:r.title)))};var q={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",chevron:"L2Q9T6m",container:"h-pSmhX"};let Care=()=>{var e,t;let{t:n}=(0,T.u)(),{data:{locale:a,userInfo:l}}=(0,s.useContext)(g.T),{onSkipQuestion:r,countValues:i,setCountValues:c}=(0,s.useContext)(D),[d,u]=(0,s.useState)(),[v,C]=(0,s.useState)([]),[f,b]=(0,s.useState)(!1),y=null==l?void 0:l.id;(0,s.useEffect)(()=>{y&&(0,o._)(void 0,void 0,void 0,function*(){var e;b(!0);let t=yield(0,g.e)((0,g.f)(h.yy.USER.LIST_QUESTION_NEED_REPLY,{_locale:a}),"GET"),n=[],l=Object.create({});((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.communities)||[]).filter(e=>((null==e?void 0:e.question)||[]).length>0).map(e=>{l[e.id]=e.question.map(m.b),delete e.question,n.push((0,m.a)(e))}),C(n),u(l),b(!1)})},[]);let handleSkipQuestion=({id:e,communityId:t})=>{if(e&&t&&d){let n=Object.assign(Object.assign({},d),{[t]:[...((null==d?void 0:d[t])||[]).filter(t=>t.id!==e)]}),a=0;Object.keys(n).map(e=>a+=n[e].length||0),u(n),c(Object.assign(Object.assign({},i),{total_question:a})),null==r||r(a)}};return s.createElement("div",{className:q.container},f?s.createElement(p.L,null):(null==i?void 0:i.total_question)>0?v.length>0&&s.createElement(E.U,{className:q.accordion,defaultValue:String((null===(t=v[null===(e=Object.keys(v))||void 0===e?void 0:e[0]])||void 0===t?void 0:t.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},label:{padding:0},item:{marginBottom:"16px"}}),chevron:s.createElement("div",{className:q.chevron},s.createElement(P.Z,{color:B.r.colors.gray600,size:20}))},v.map(e=>{let t=d&&(null==d?void 0:d[e.id])||[];return t.length>0&&s.createElement(E.U.Item,{key:e.id,value:String(e.id)},s.createElement(E.U.Control,null,s.createElement("div",{className:q.header},s.createElement("div",{className:q.headingIcon},s.createElement("img",{src:e.thumbnail,loading:"lazy"})),s.createElement("div",{className:q.heading},e.name))),s.createElement(E.U.Panel,null,s.createElement("div",{className:q.body},t.map(e=>s.createElement(QuestionCard,{className:"question-card",key:e.id,post:e,onSkip:handleSkipQuestion})))))})):s.createElement(EmptyMessage,{message:n("profilePanel.emptyCareMess.content"),imgSrc:x.C.getAssetPath("questions.svg")}))},PostCard=({post:e,className:t=""})=>{var n;let{data:{userInfo:a,env:{togetherBasePath:l}}}=(0,s.useContext)(g.T),{t:r}=(0,T.u)(),i=(0,y.rZ)(),{authActionWrapper:o,authorProps:c}=(0,s.useContext)(D),d=`${window.location.origin}${l}/${null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.slug}/${null==e?void 0:e.slug}/`;return s.createElement("div",{className:`GA-zc-O ${t}`},s.createElement("div",{className:"IB049vj"},s.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":d,className:"_8I--vEV",href:d,onClick:e=>{(null==a?void 0:a.id)||(e.preventDefault(),null==o||o(()=>window.location.href=d,{_location:d}))}}),s.createElement(k.d,{className:"card-author",avatarProps:{avatar:null==c?void 0:c.avatar,size:32}},s.createElement(k.C.MainText,{className:"A18McWD"},null==e?void 0:e.title),s.createElement(k.C.SubTextRow,null,s.createElement(k.C.SubText,null,null==e?void 0:e.createdTime))),s.createElement(PostContent,{className:"post-content-wrapper",description:null==e?void 0:e.description,mentions:null==e?void 0:e.mentions,maxChars:200,"data-testid":"Content of the Post",hideShowAllBtn:!0}),s.createElement(L.T,{size:"p3",color:i.fn.primaryColor()},r("post.seeMore"))))},Posts=()=>{let{t:e}=(0,T.u)(),{data:{locale:t}}=(0,s.useContext)(g.T),{authorId:n,authorProps:a,isAuthorLogin:l,onCloseFromPost:r}=(0,s.useContext)(D),[i,c]=(0,s.useState)(null),[d,u]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{n&&(0,o._)(void 0,void 0,void 0,function*(){var e;u(!0);let a=yield(0,g.c)((0,g.f)(h.yy.USER.LIST_POST,{_locale:t,id:n,isAnonymous:0}),"GET"),l=((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.posts)||[]).map(m.b);c(l),u(!1)})},[n]),s.createElement("div",{className:"TSMHoEM"},d?s.createElement(p.L,null):null!==i&&(i.length>0?i.map(e=>s.createElement(PostCard,{className:"post-card",key:e.id,post:e})):s.createElement(EmptyMessage,{message:e("profilePanel.emptyPostMess.content",{name:(null==a?void 0:a.name)||(null==a?void 0:a.username)||""}),buttonTxt:l&&e("profilePanel.createPost"),onBtnClick:()=>{null==r||r()}})))};var V={container:"_4Vekw96",info:"DIJdGcB",body:"aQSt4-Q"};let formatExperience=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},formatEducation=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};(a=r||(r={}))[a.About=0]="About",a[a.Care=1]="Care",a[a.Answer=2]="Answer",a[a.Posts=3]="Posts",(l=i||(i={}))[l.Expert=0]="Expert",l[l.User=1]="User";let U={experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail=e=>{var t,{authorProps:n,selectedTab:a,authActionWrapper:l,onSkipQuestion:i,onCloseFromPost:c,hideQuestionTab:v,hideAnswerTab:C,showSkipQuestionTag:f,rolesToShowQuestionsTab:E=["expert"],currentPageUrl:b}=e,y=(0,o.a)(e,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);let{data:{locale:x,userInfo:w,env:{isMarryBaby:S}}}=(0,s.useContext)(g.T),{t:B}=(0,T.u)(),_=null==n?void 0:n.role,P=null==w?void 0:w.role,O=String(null==n?void 0:n.userId),[L,A]=(0,s.useState)(),[M,N]=(0,s.useState)(!1),[I,R]=(0,s.useState)(),j=(null==w?void 0:w._togetherUserId)===(null==n?void 0:n.userId),z=[...-1!==E.indexOf(_)?[{value:r.About,text:B("profilePanel.tabs.highlight"),content:s.createElement(About,{id:O,info:I}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:b}]:[],{value:r.Posts,text:B("profilePanel.tabs.posts"),content:s.createElement(Posts,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...v||-1===E.indexOf(P)||(null==w?void 0:w._togetherUserId)!==(null==n?void 0:n.userId)?[]:[{value:r.Care,text:`${B("profilePanel.tabs.care")}`,content:s.createElement(Care,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:b}],...C||-1===E.indexOf(_)?[]:[{value:r.Answer,text:`${B("profilePanel.tabs.expertAnswer")}`,content:s.createElement(Answering,{id:O}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:b}]],[F,$]=(0,s.useState)(null),[H,Z]=(0,s.useState)(null),G={value:String(H),dataList:F,onTabChange:e=>Z(Number(e))},q=null==z?void 0:z.filter(e=>null==e?void 0:e.hasCountResult);(0,s.useEffect)(()=>{(0,o._)(void 0,void 0,void 0,function*(){var e,t,n,l,i,o,s,c,d,u;N(!0);let p=yield Promise.all([(0,g.c)((0,g.f)(h.yy.USER.DETAIL,{_locale:x,id:O}),"GET"),...q.map(e=>(0,g.c)((0,g.f)(h.yy.USER.COUNT_TABS,{_locale:x,id:O,[e.keyOfCountApi]:1}),"GET"))]),[v]=p,C={data:null==v?void 0:v.data,experiences:((null===(t=null===(e=null==v?void 0:v.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(formatExperience),relatedPosts:((null===(n=null==v?void 0:v.data)||void 0===n?void 0:n.related_post)||[]).map(e=>(0,m.f)(e.post)),educations:((null===(i=null===(l=null==v?void 0:v.data)||void 0===l?void 0:l.fields)||void 0===i?void 0:i.educations)||[]).map(formatEducation),awards:(null===(s=null===(o=null==v?void 0:v.data)||void 0===o?void 0:o.fields)||void 0===s?void 0:s.awards_accreditations)||[],contact:(null===(d=null===(c=null==v?void 0:v.data)||void 0===c?void 0:c.fields)||void 0===d?void 0:d.contact)||{}};(null==v?void 0:v.status)===1&&R(C);let f=(null==C?void 0:C.relatedPosts)||[],E=Object.keys(C.contact).map(e=>{var t;return(null===(t=null==C?void 0:C.contact)||void 0===t?void 0:t[e])!==""}),b=[...(null==C?void 0:C.experiences)||[],...(null==C?void 0:C.educations)||[],...(null==C?void 0:C.awards)||[]],y=f.length>0||E.length>0||b.length>0,w={},k=q.map((e,t)=>{var n,a,l;let i=(null===(l=null===(a=null===(n=p[t+1])||void 0===n?void 0:n.data)||void 0===a?void 0:a.counting)||void 0===l?void 0:l[e.keyOfResult])||0;return i>0?(w[e.keyOfResult]=i,e):-1!==[r.Care,r.Posts].indexOf(e.value)?e:void 0}).filter(Boolean).map(e=>e.value),S=z.map(e=>{let t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==w?void 0:w[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==k.indexOf(t.value)?t:void 0:t.value===r.About?y&&t:t}).filter(Boolean);$(S),Z(a||(null===(u=null==S?void 0:S[0])||void 0===u?void 0:u.value)),A(w),N(!1)})},[]);let U=null==I?void 0:I.data;return s.createElement(D.Provider,{value:{isMarryBaby:S,siteType:S?"marryBaby":"helloSites",authorId:String((null==n?void 0:n.userId)||""),authActionWrapper:l,onSkipQuestion:i,info:I,authorProps:n,onCloseFromPost:c,countValues:L,setCountValues:A,isAuthorLogin:j,showSkipQuestionTag:f,currentPageUrl:b}},s.createElement("div",Object.assign({},y,{className:`${V.container} ${(null==y?void 0:y.className)||""}`,"data-is-marrybaby":S}),M?s.createElement(p.L,null):s.createElement(s.Fragment,null,s.createElement(k.C,Object.assign({},n,{className:"card-author",showDetailPopup:!1,subLine:(null==n?void 0:n.role)==="expert"?(null==U?void 0:U.specialty)&&(null==U?void 0:U.organisation)&&s.createElement(k.C.SubTextRow,null,(null==U?void 0:U.specialty)&&s.createElement(s.Fragment,null,s.createElement(k.C.SubText,null,null==U?void 0:U.specialty),s.createElement(k.C.SubDivider,null)),s.createElement(k.C.SubText,null,null==U?void 0:U.organisation)):(null==U?void 0:U.created_at)&&s.createElement(k.C.SubTextRow,null,s.createElement(k.C.SubText,null,B("profilePanel.joined")," ",d()(null==U?void 0:U.created_at).toNow(!0)))})),"expert"===_&&s.createElement("div",{className:V.info,dangerouslySetInnerHTML:{__html:null===(t=null==I?void 0:I.data)||void 0===t?void 0:t.description}}),null!==F&&null!==H&&(F.length>0?s.createElement("div",{className:V.body},s.createElement(u.T,Object.assign({},G))):s.createElement(EmptyMessage,{message:B("profilePanel.emptyPostMess.content",{text:(null==n?void 0:n.name)||(null==n?void 0:n.username)||""})})))))}},flyO:function(e,t,n){n.d(t,{I:function(){return s}});var a=n("T/vS"),l=n("q1tI"),r=n("iBNF"),i=n("F6Ok"),o=n("5QTd");let Bookmark=e=>{var{size:t,color:n,useCurrentColor:r,isActive:i,activeColor:o,isMarryBaby:s}=e,c=(0,a.a)(e,["size","color","useCurrentColor","isActive","activeColor","isMarryBaby"]);let d=r?"currentColor":i?o:n,u=Object.assign({width:t,height:t},c);return s?l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 18 18",fill:"none"},u),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3355 3.71496C9.79374 3.41194 8.20665 3.41194 6.66487 3.71496C5.25005 3.99302 4.2377 5.21812 4.2377 6.63391V13.7008C4.2377 14.3179 4.92323 14.7217 5.48162 14.3985L7.87185 13.0152C8.56899 12.6117 9.4314 12.6117 10.1285 13.0152L12.5188 14.3985C13.0772 14.7217 13.7627 14.3179 13.7627 13.7008V6.63391C13.7627 5.21812 12.7503 3.99302 11.3355 3.71496ZM6.47685 2.75826C8.14279 2.43084 9.8576 2.43084 11.5235 2.75826C13.3881 3.1247 14.7377 4.74448 14.7377 6.63391V13.7008C14.7377 15.0882 13.2219 15.932 12.0304 15.2424L9.64016 13.8591C9.24513 13.6304 8.75526 13.6304 8.36023 13.8591L5.97001 15.2424C4.77845 15.932 3.2627 15.0882 3.2627 13.7008V6.63391C3.2627 4.74448 4.61234 3.1247 6.47685 2.75826Z",fill:d,stroke:d})):l.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u),l.createElement("path",{d:"M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z",fill:d,strokeLinecap:"round",strokeLinejoin:"round"}))};Bookmark.defaultProps={size:18,color:r.r.colors.gray600,activeColor:r.r.colors.primaryBase};let Comment=e=>{var{size:t=24,color:n,useCurrentColor:r,isActive:i,activeColor:o,isMarryBaby:s}=e,c=(0,a.a)(e,["size","color","useCurrentColor","isActive","activeColor","isMarryBaby"]);let d=r?"currentColor":i?o:n,u=Object.assign({width:t,height:t},c);return s?l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 18 18",fill:"none"},u),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.599 2.92689C9.53974 2.67333 8.44007 2.67333 7.38083 2.92688L7.21355 2.96693C5.29637 3.42585 3.77529 4.99134 3.30709 7.02824C3.04637 8.16253 3.04859 9.35772 3.30963 10.4933C3.79199 12.5919 5.20833 14.326 7.09016 15.1306L7.17879 15.1685C7.78633 15.4282 8.5133 15.1259 8.78188 14.4393C8.94923 14.0114 9.35745 13.7068 9.83325 13.7068H10.6293C12.5519 13.7068 14.25 12.3213 14.7108 10.3166C14.9467 9.29055 14.9467 8.22001 14.7108 7.19398L14.6442 6.90409C14.1935 4.94324 12.7294 3.43685 10.8848 2.99531L10.599 2.92689ZM7.15385 1.97867C8.3623 1.6894 9.61751 1.6894 10.826 1.97867L11.1118 2.04709C13.3366 2.57965 15.0655 4.38457 15.5944 6.68567L15.661 6.97557C15.9299 8.14533 15.9299 9.36523 15.661 10.535C15.1055 12.952 13.0368 14.6818 10.6293 14.6818H9.83325C9.7862 14.6818 9.72124 14.7142 9.68989 14.7944C9.23642 15.9538 7.94762 16.5575 6.7955 16.065L6.70688 16.0271C4.52239 15.0931 2.90752 13.0963 2.3594 10.7118C2.06564 9.43373 2.0628 8.08918 2.35687 6.80983C2.90328 4.43267 4.68917 2.56866 6.98657 2.01872L7.15385 1.97867ZM6.0349 6.79267C6.0349 6.52343 6.25317 6.30517 6.5224 6.30517H11.0462C11.3154 6.30517 11.5337 6.52343 11.5337 6.79267C11.5337 7.06191 11.3154 7.28017 11.0462 7.28017H6.5224C6.25317 7.28017 6.0349 7.06191 6.0349 6.79267ZM6.0349 9.38479C6.0349 9.11555 6.25317 8.89729 6.5224 8.89729H9.40115C9.67039 8.89729 9.88865 9.11555 9.88865 9.38479C9.88865 9.65403 9.67039 9.87229 9.40115 9.87229H6.5224C6.25317 9.87229 6.0349 9.65403 6.0349 9.38479Z",fill:d})):l.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.375 15.8438L9.2625 13.875H8.625C6.95 13.875 5.53125 13.2937 4.36875 12.1312C3.20625 10.9687 2.625 9.55 2.625 7.875C2.625 6.2 3.20625 4.78125 4.36875 3.61875C5.53125 2.45625 6.95 1.875 8.625 1.875C9.4625 1.875 10.2438 2.03125 10.9688 2.34375C11.6938 2.65625 12.3282 3.0845 12.8722 3.6285C13.4158 4.172 13.8438 4.80625 14.1562 5.53125C14.4688 6.25625 14.625 7.0375 14.625 7.875C14.625 9.5875 14.128 11.1405 13.134 12.534C12.1405 13.928 10.8875 15.0312 9.375 15.8438ZM10.5 12.75V13.7625C11.3875 13.0125 12.1092 12.1345 12.6652 11.1285C13.2217 10.122 13.5 9.0375 13.5 7.875C13.5 6.5125 13.0283 5.35925 12.0848 4.41525C11.1408 3.47175 9.9875 3 8.625 3C7.2625 3 6.1095 3.47175 5.166 4.41525C4.222 5.35925 3.75 6.5125 3.75 7.875C3.75 9.2375 4.222 10.3907 5.166 11.3348C6.1095 12.2782 7.2625 12.75 8.625 12.75H10.5ZM5.625 9C6.03921 9 6.375 8.66421 6.375 8.25C6.375 7.83579 6.03921 7.5 5.625 7.5C5.21079 7.5 4.875 7.83579 4.875 8.25C4.875 8.66421 5.21079 9 5.625 9ZM9.375 8.25C9.375 8.66421 9.03921 9 8.625 9C8.21079 9 7.875 8.66421 7.875 8.25C7.875 7.83579 8.21079 7.5 8.625 7.5C9.03921 7.5 9.375 7.83579 9.375 8.25ZM11.625 9C12.0392 9 12.375 8.66421 12.375 8.25C12.375 7.83579 12.0392 7.5 11.625 7.5C11.2108 7.5 10.875 7.83579 10.875 8.25C10.875 8.66421 11.2108 9 11.625 9Z",fill:d}))};Comment.defaultProps={size:24,color:r.r.colors.gray600,activeColor:r.r.colors.primaryBase};let Eye=e=>{var{size:t,color:n,useCurrentColor:r,isActive:i,activeColor:o}=e,s=(0,a.a)(e,["size","color","useCurrentColor","isActive","activeColor"]);let c=Object.assign({width:t,height:t},s);return l.createElement("svg",Object.assign({width:t,height:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",fill:"none"},c),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00036 11.6827C9.85018 11.6827 10.572 11.3852 11.1657 10.7903C11.7595 10.1955 12.0563 9.4731 12.0563 8.62328C12.0563 7.77346 11.7589 7.05168 11.164 6.45793C10.5691 5.86418 9.84678 5.56731 8.99695 5.56731C8.14714 5.56731 7.42536 5.86474 6.83161 6.45962C6.23786 7.05451 5.94098 7.77686 5.94098 8.62669C5.94098 9.4765 6.23842 10.1983 6.83329 10.792C7.42818 11.3858 8.15054 11.6827 9.00036 11.6827ZM8.99866 10.65C8.43616 10.65 7.95803 10.4531 7.56428 10.0594C7.17053 9.66561 6.97366 9.18748 6.97366 8.62498C6.97366 8.06248 7.17053 7.58436 7.56428 7.19061C7.95803 6.79686 8.43616 6.59998 8.99866 6.59998C9.56116 6.59998 10.0393 6.79686 10.433 7.19061C10.8268 7.58436 11.0237 8.06248 11.0237 8.62498C11.0237 9.18748 10.8268 9.66561 10.433 10.0594C10.0393 10.4531 9.56116 10.65 8.99866 10.65ZM8.99866 13.875C7.41982 13.875 5.97584 13.4538 4.66671 12.6115C3.35757 11.7692 2.31263 10.661 1.53186 9.28699C1.46936 9.1793 1.42369 9.07077 1.39484 8.96139C1.36599 8.85201 1.35156 8.73974 1.35156 8.62461C1.35156 8.50947 1.36599 8.39734 1.39484 8.28821C1.42369 8.17908 1.46936 8.07066 1.53186 7.96298C2.31263 6.58894 3.35757 5.48077 4.66671 4.63847C5.97584 3.79616 7.41982 3.375 8.99866 3.375C10.5775 3.375 12.0215 3.79616 13.3306 4.63847C14.6397 5.48077 15.6847 6.58894 16.4655 7.96298C16.528 8.07066 16.5736 8.17919 16.6025 8.28857C16.6313 8.39796 16.6457 8.51022 16.6457 8.62536C16.6457 8.74049 16.6313 8.85263 16.6025 8.96175C16.5736 9.07089 16.528 9.1793 16.4655 9.28699C15.6847 10.661 14.6397 11.7692 13.3306 12.6115C12.0215 13.4538 10.5775 13.875 8.99866 13.875ZM8.99866 12.75C10.4112 12.75 11.708 12.3781 12.8893 11.6344C14.0705 10.8906 14.9737 9.88748 15.5987 8.62498C14.9737 7.36248 14.0705 6.35936 12.8893 5.61561C11.708 4.87186 10.4112 4.49998 8.99866 4.49998C7.58616 4.49998 6.28928 4.87186 5.10803 5.61561C3.92678 6.35936 3.02366 7.36248 2.39866 8.62498C3.02366 9.88748 3.92678 10.8906 5.10803 11.6344C6.28928 12.3781 7.58616 12.75 8.99866 12.75Z",fill:r?"currentColor":i?o:n}))};Eye.defaultProps={size:18,color:r.r.colors.gray600,activeColor:r.r.colors.primaryBase};let Heart=e=>{var{size:t,color:n,useCurrentColor:r,isActive:i,activeColor:o,isSolid:s,isMarryBaby:c}=e,d=(0,a.a)(e,["size","color","useCurrentColor","isActive","activeColor","isSolid","isMarryBaby"]);let u=r?"currentColor":i?o:n,p=Object.assign({width:t,height:t},d);return c?l.createElement(l.Fragment,null,s?l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 18 18"},p),l.createElement("path",{d:"M11.6031 3.04013C10.6484 3.17142 9.69193 3.6234 9 4.35668C8.30807 3.6234 7.35165 3.17142 6.39686 3.04013C5.18501 2.87348 3.86243 3.21318 3.04413 4.29816C1.98529 5.70207 1.98529 7.69046 3.04413 9.09438L6.56464 13.7622C7.80938 15.4126 10.1906 15.4126 11.4354 13.7622L14.9559 9.09438C16.0147 7.69047 16.0147 5.70207 14.9559 4.29816C14.1376 3.21318 12.815 2.87348 11.6031 3.04013Z",fill:u})):l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 18 18",fill:"none"},p),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8649 2.55606C13.1604 2.37549 14.5506 2.74705 15.4034 3.89319C16.5158 5.38825 16.5158 7.50379 15.4034 8.99885L11.5528 14.1739C10.2498 15.9252 7.75064 15.9252 6.44757 14.1739L2.597 8.99885C1.48459 7.50378 1.48459 5.38825 2.59701 3.89319C3.4498 2.74705 4.84003 2.37549 6.1355 2.55606C7.2032 2.70488 8.26445 3.23358 9.00019 4.08277C9.73594 3.23358 10.7972 2.70488 11.8649 2.55606ZM11.9995 3.52172C10.957 3.66704 9.95441 4.26136 9.4191 5.16067L9.0002 5.86442L8.58129 5.16067C8.04598 4.26136 7.0434 3.66704 6.0009 3.52172C4.96111 3.37679 3.96672 3.68564 3.37923 4.47521C2.52385 5.62483 2.52385 7.26721 3.37923 8.41682L7.22979 13.5919C8.143 14.8192 9.85739 14.8192 10.7706 13.5919L14.6212 8.41683C15.4765 7.26721 15.4765 5.62483 14.6212 4.47521C14.0337 3.68563 13.0393 3.37679 11.9995 3.52172Z",fill:u}))):l.createElement(l.Fragment,null,s?l.createElement("svg",Object.assign({width:t,height:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},p),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.0125 13.4437L8.08125 14.4375C8.34375 14.6625 8.65 14.775 9 14.775C9.35 14.775 9.65625 14.6562 9.91875 14.4187L10.9688 13.4625C12.2812 12.275 13.4688 11.0905 14.5312 9.90899C15.5938 8.72799 16.125 7.46249 16.125 6.11249C16.125 5.04999 15.7655 4.15924 15.0465 3.44024C14.328 2.72174 13.4375 2.36249 12.375 2.36249C11.775 2.36249 11.1783 2.50299 10.5848 2.78399C9.99075 3.06549 9.4625 3.51874 9 4.14374C8.5375 3.51874 8.0095 3.06549 7.416 2.78399C6.822 2.50299 6.225 2.36249 5.625 2.36249C4.5625 2.36249 3.672 2.72174 2.9535 3.44024C2.2345 4.15924 1.875 5.04999 1.875 6.11249C1.875 7.44999 2.397 8.70299 3.441 9.87149C4.4845 11.0405 5.675 12.2312 7.0125 13.4437Z",fill:u})):l.createElement("svg",Object.assign({width:t,height:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",fill:"none"},p),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.0125 13.4437L8.08125 14.4375C8.34375 14.675 8.65 14.7937 9 14.7937C9.35 14.7937 9.65625 14.6687 9.91875 14.4187L10.9688 13.4625C12.2812 12.275 13.4688 11.0905 14.5312 9.90899C15.5938 8.72799 16.125 7.46249 16.125 6.11249C16.125 5.04999 15.7655 4.15924 15.0465 3.44024C14.328 2.72174 13.4375 2.36249 12.375 2.36249C11.775 2.36249 11.1783 2.50299 10.5848 2.78399C9.99075 3.06549 9.4625 3.51874 9 4.14374C8.5375 3.51874 8.0095 3.06549 7.416 2.78399C6.822 2.50299 6.225 2.36249 5.625 2.36249C4.5625 2.36249 3.672 2.72174 2.9535 3.44024C2.2345 4.15924 1.875 5.04999 1.875 6.11249C1.875 7.44999 2.397 8.70299 3.441 9.87149C4.4845 11.0405 5.675 12.2312 7.0125 13.4437ZM7.18125 3.91874C7.63125 4.20624 8.05625 4.66249 8.45625 5.28749C8.51875 5.37499 8.6 5.44374 8.7 5.49374C8.8 5.54374 8.9 5.56874 9 5.56874C9.1 5.56874 9.2 5.54374 9.3 5.49374C9.4 5.44374 9.48125 5.37499 9.54375 5.28749C9.94375 4.66249 10.3688 4.20624 10.8188 3.91874C11.2688 3.63124 11.7875 3.48749 12.375 3.48749C13.125 3.48749 13.75 3.73749 14.25 4.23749C14.75 4.73749 15 5.36249 15 6.11249C15 6.71249 14.8063 7.34049 14.4188 7.99649C14.0312 8.65299 13.5437 9.30624 12.9562 9.95624C12.3687 10.6062 11.7345 11.2405 11.0535 11.859C10.372 12.478 9.7375 13.0562 9.15 13.5937C9.1125 13.6312 9.0625 13.65 9 13.65C8.9375 13.65 8.8875 13.6312 8.85 13.5937C8.2625 13.0562 7.628 12.478 6.9465 11.859C6.2655 11.2405 5.63125 10.6062 5.04375 9.95624C4.45625 9.30624 3.96875 8.65299 3.58125 7.99649C3.19375 7.34049 3 6.71249 3 6.11249C3 5.36249 3.25 4.73749 3.75 4.23749C4.25 3.73749 4.875 3.48749 5.625 3.48749C6.2125 3.48749 6.73125 3.63124 7.18125 3.91874Z",fill:u})))};Heart.defaultProps={size:24,color:r.r.colors.gray600,activeColor:r.r.colors.primaryBase};let Save=e=>{var{size:t,color:n,useCurrentColor:r,isActive:i,activeColor:o,isMarryBaby:s}=e,c=(0,a.a)(e,["size","color","useCurrentColor","isActive","activeColor","isMarryBaby"]);let d=r?"currentColor":i?o:n,u=Object.assign({width:t,height:t},c);return s?l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 18 18",fill:"none"},u),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3355 3.71496C9.79374 3.41194 8.20665 3.41194 6.66487 3.71496C5.25005 3.99302 4.2377 5.21812 4.2377 6.63391V13.7008C4.2377 14.3179 4.92323 14.7217 5.48162 14.3985L7.87185 13.0152C8.56899 12.6117 9.4314 12.6117 10.1285 13.0152L12.5188 14.3985C13.0772 14.7217 13.7627 14.3179 13.7627 13.7008V6.63391C13.7627 5.21812 12.7503 3.99302 11.3355 3.71496ZM6.47685 2.75826C8.14279 2.43084 9.8576 2.43084 11.5235 2.75826C13.3881 3.1247 14.7377 4.74448 14.7377 6.63391V13.7008C14.7377 15.0882 13.2219 15.932 12.0304 15.2424L9.64016 13.8591C9.24513 13.6304 8.75526 13.6304 8.36023 13.8591L5.97001 15.2424C4.77845 15.932 3.2627 15.0882 3.2627 13.7008V6.63391C3.2627 4.74448 4.61234 3.1247 6.47685 2.75826Z",fill:d})):l.createElement("svg",Object.assign({width:t,height:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",fill:"none"},u),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 11.85L5.25 13.4625V3.975C5.25 3.925 5.275 3.875 5.325 3.825C5.375 3.775 5.425 3.75 5.475 3.75H9H12.525C12.575 3.75 12.625 3.775 12.675 3.825C12.725 3.875 12.75 3.925 12.75 3.975V13.4625L9 11.85ZM4.434 14.7277C4.6405 14.8592 4.85625 14.875 5.08125 14.775L9 13.0875L12.9188 14.775C13.1438 14.875 13.3593 14.8592 13.5653 14.7277C13.7717 14.5967 13.875 14.4062 13.875 14.1562V3.975C13.875 3.6 13.7438 3.28125 13.4813 3.01875C13.2188 2.75625 12.9 2.625 12.525 2.625H5.475C5.1 2.625 4.78125 2.75625 4.51875 3.01875C4.25625 3.28125 4.125 3.6 4.125 3.975V14.1562C4.125 14.4062 4.228 14.5967 4.434 14.7277Z",fill:d}))};Save.defaultProps={size:18,color:r.r.colors.gray600,activeColor:r.r.colors.primaryBase};let s={Share:e=>{var{size:t=24,color:n=r.r.colors.gray600,useCurrentColor:i,activeColor:o=r.r.colors.primaryBase,isActive:s,isMarryBaby:c,isSolid:d=!0}=e,u=(0,a.a)(e,["size","color","useCurrentColor","activeColor","isActive","isMarryBaby","isSolid"]);let p=i?"currentColor":s?o:n;return c?l.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 24 24",fill:"none"},u),l.createElement("path",{d:"M18 8L19 8C20.1046 8 21 8.89543 21 10L21 15.155C21 17.3585 19.4253 19.2551 17.2391 19.6848C15.1006 20.1051 8.89937 20.1051 6.76089 19.6848C4.57467 19.2551 3 17.3585 3 15.155L3 10C3 8.89543 3.89543 8 5 8L6 8",stroke:p,strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M12 13L12 3M12 3L9.5 5.5M12 3L14.5 5.5",stroke:p,strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})):d?l.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.59725 11.6528C8.70325 11.7593 8.8375 11.8125 9 11.8125C9.1625 11.8125 9.297 11.7593 9.4035 11.6528C9.5095 11.5468 9.5625 11.4125 9.5625 11.25V3.54376L10.5562 4.53751C10.6687 4.63751 10.8 4.68751 10.95 4.68751C11.1 4.68751 11.2312 4.63751 11.3438 4.53751C11.4563 4.42501 11.5125 4.29051 11.5125 4.13401C11.5125 3.97801 11.4563 3.84376 11.3438 3.73126L9.46875 1.85626C9.40625 1.79376 9.3345 1.74676 9.2535 1.71526C9.172 1.68426 9.0875 1.66876 9 1.66876C8.9125 1.66876 8.82825 1.68426 8.74725 1.71526C8.66575 1.74676 8.59375 1.79376 8.53125 1.85626L6.65625 3.73126C6.54375 3.84376 6.4875 3.97501 6.4875 4.12501C6.4875 4.27501 6.54375 4.40626 6.65625 4.51876C6.76875 4.63126 6.9 4.68751 7.05 4.68751C7.2 4.68751 7.33125 4.63751 7.44375 4.53751L8.4375 3.54376V11.25C8.4375 11.4125 8.49075 11.5468 8.59725 11.6528ZM3.76875 16.4813C4.03125 16.7438 4.35 16.875 4.725 16.875H13.275C13.65 16.875 13.9688 16.7438 14.2313 16.4813C14.4938 16.2188 14.625 15.9 14.625 15.525V7.72501C14.625 7.35001 14.4938 7.03126 14.2313 6.76876C13.9688 6.50626 13.65 6.37501 13.275 6.37501H11.9062C11.7563 6.37501 11.625 6.42801 11.5125 6.53401C11.4 6.64051 11.3438 6.77501 11.3438 6.93751C11.3438 7.10001 11.4 7.23426 11.5125 7.34026C11.625 7.44676 11.7563 7.50001 11.9062 7.50001H13.275C13.325 7.50001 13.375 7.52501 13.425 7.57501C13.475 7.62501 13.5 7.67501 13.5 7.72501V15.525C13.5 15.575 13.475 15.625 13.425 15.675C13.375 15.725 13.325 15.75 13.275 15.75H4.725C4.675 15.75 4.625 15.725 4.575 15.675C4.525 15.625 4.5 15.575 4.5 15.525V7.72501C4.5 7.67501 4.525 7.62501 4.575 7.57501C4.625 7.52501 4.675 7.50001 4.725 7.50001H6.09375C6.24375 7.50001 6.375 7.44676 6.4875 7.34026C6.6 7.23426 6.65625 7.10001 6.65625 6.93751C6.65625 6.77501 6.6 6.64051 6.4875 6.53401C6.375 6.42801 6.24375 6.37501 6.09375 6.37501H4.725C4.35 6.37501 4.03125 6.50626 3.76875 6.76876C3.50625 7.03126 3.375 7.35001 3.375 7.72501V15.525C3.375 15.9 3.50625 16.2188 3.76875 16.4813Z",fill:p})):l.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u),l.createElement("path",{d:"M18.0011 21.75C17.2375 21.75 16.5881 21.4826 16.0529 20.9479C15.5176 20.4132 15.25 19.7639 15.25 19C15.25 18.8751 15.2599 18.7459 15.2798 18.6121C15.2997 18.4784 15.3295 18.3551 15.3692 18.2423L7.97305 13.9115C7.70895 14.1743 7.40831 14.3798 7.07113 14.5279C6.73394 14.6759 6.37689 14.75 5.99997 14.75C5.23609 14.75 4.58679 14.4827 4.05207 13.9482C3.51736 13.4137 3.25 12.7647 3.25 12.0011C3.25 11.2375 3.51736 10.5881 4.05207 10.0529C4.58679 9.51763 5.23609 9.25 5.99997 9.25C6.37689 9.25 6.73394 9.32403 7.07113 9.4721C7.40831 9.62018 7.70895 9.82563 7.97305 10.0885L15.3692 5.75768C15.3295 5.64486 15.2997 5.52157 15.2798 5.38783C15.2599 5.25409 15.25 5.12481 15.25 4.99998C15.25 4.23609 15.5173 3.58679 16.0518 3.05208C16.5863 2.51736 17.2353 2.25 17.9989 2.25C18.7624 2.25 19.4118 2.51725 19.9471 3.05175C20.4823 3.58625 20.75 4.23528 20.75 4.99885C20.75 5.76242 20.4826 6.41182 19.9479 6.94707C19.4132 7.48233 18.7639 7.74995 18 7.74995C17.6231 7.74995 17.266 7.67592 16.9288 7.52785C16.5916 7.37977 16.291 7.17432 16.0269 6.9115L8.63073 11.2423C8.67048 11.3551 8.70028 11.4782 8.72015 11.6115C8.74002 11.7447 8.74995 11.8736 8.74995 11.998C8.74995 12.1224 8.74002 12.2519 8.72015 12.3865C8.70028 12.5211 8.67048 12.6449 8.63073 12.7577L16.0269 17.0885C16.291 16.8256 16.5916 16.6202 16.9288 16.4721C17.266 16.324 17.6231 16.25 18 16.25C18.7639 16.25 19.4132 16.5173 19.9479 17.0518C20.4826 17.5863 20.75 18.2353 20.75 18.9989C20.75 19.7624 20.4827 20.4118 19.9482 20.9471C19.4137 21.4823 18.7647 21.75 18.0011 21.75ZM18 6.24998C18.3474 6.24998 18.6426 6.1285 18.8856 5.88555C19.1285 5.64258 19.25 5.34738 19.25 4.99995C19.25 4.65252 19.1285 4.35732 18.8856 4.11435C18.6426 3.87142 18.3474 3.74995 18 3.74995C17.6525 3.74995 17.3573 3.87143 17.1144 4.11438C16.8714 4.35734 16.75 4.65254 16.75 4.99998C16.75 5.34741 16.8714 5.64261 17.1144 5.88558C17.3573 6.12853 17.6525 6.24998 18 6.24998ZM5.99997 13.25C6.34741 13.25 6.64261 13.1285 6.88558 12.8856C7.12853 12.6426 7.25 12.3474 7.25 12C7.25 11.6525 7.12853 11.3573 6.88558 11.1144C6.64261 10.8714 6.34741 10.75 5.99997 10.75C5.65254 10.75 5.35734 10.8714 5.11438 11.1144C4.87143 11.3573 4.74995 11.6525 4.74995 12C4.74995 12.3474 4.87143 12.6426 5.11438 12.8856C5.35734 13.1285 5.65254 13.25 5.99997 13.25ZM18 20.25C18.3474 20.25 18.6426 20.1285 18.8856 19.8855C19.1285 19.6426 19.25 19.3474 19.25 19C19.25 18.6525 19.1285 18.3573 18.8856 18.1144C18.6426 17.8714 18.3474 17.75 18 17.75C17.6525 17.75 17.3573 17.8714 17.1144 18.1144C16.8714 18.3573 16.75 18.6525 16.75 19C16.75 19.3474 16.8714 19.6426 17.1144 19.8856C17.3573 20.1285 17.6525 20.25 18 20.25Z",fill:p}))},Eye,WhatsApp:i.W,ArrowRightTail:e=>{var{size:t=24,color:n=r.r.colors.gray600,useCurrentColor:i,isActive:o,activeColor:s=r.r.colors.primaryBase}=e,c=(0,a.a)(e,["size","color","useCurrentColor","isActive","activeColor"]);let d=Object.assign({width:t,height:t},c);return l.createElement("svg",Object.assign({viewBox:"0 0 18 18",fill:"none"},d),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.747 4.228a.75.75 0 0 1 1.06 0L15.05 8.47a.75.75 0 0 1 0 1.06l-4.242 4.243a.75.75 0 0 1-1.06 0l-.065-.065a.75.75 0 0 1 0-1.06L12.58 9.75H2.777a.75.75 0 0 1 0-1.5h9.803L9.683 5.353a.75.75 0 0 1 0-1.061z",fill:i?"currentColor":o?s:n}))},Spinner:o.S,Cart:e=>{var{size:t=24,color:n=r.r.colors.gray600,useCurrentColor:i,isActive:o,isSolid:s,activeColor:c=r.r.colors.primaryBase}=e,d=(0,a.a)(e,["size","color","useCurrentColor","isActive","isSolid","activeColor"]);let u=i?"currentColor":o?c:n,p=Object.assign({width:t,height:t},d);return s?l.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p),l.createElement("path",{d:"M7.154 21.558q-.73 0-1.24-.51-.51-.511-.51-1.24 0-.73.51-1.24t1.24-.51q.729 0 1.24.51.51.51.51 1.24 0 .729-.51 1.24-.511.51-1.24.51m9.692 0q-.729 0-1.24-.51-.51-.511-.51-1.24 0-.73.51-1.24.511-.51 1.24-.51.73 0 1.24.51t.51 1.24-.51 1.24-1.24.51M5.296 4.25h13.885q.613 0 .928.522t.03 1.066l-3.204 5.804a1.8 1.8 0 0 1-.651.674 1.7 1.7 0 0 1-.888.242H8.1l-1.158 2.115q-.077.115-.005.25.073.135.217.135h10.692q.32 0 .535.215a.73.73 0 0 1 .215.535.73.73 0 0 1-.215.534.73.73 0 0 1-.535.216H7.154q-1 0-1.503-.863-.503-.862-.036-1.722l1.427-2.565L3.404 3.75H2.25a.73.73 0 0 1-.535-.215A.73.73 0 0 1 1.5 3q0-.32.215-.535a.73.73 0 0 1 .535-.215h1.529a.9.9 0 0 1 .813.517z",fill:u})):l.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p),l.createElement("path",{d:"M7.154 21.558q-.73 0-1.24-.51-.51-.511-.51-1.24 0-.73.51-1.24t1.24-.51q.729 0 1.24.51.51.51.51 1.24 0 .729-.51 1.24-.511.51-1.24.51m9.692 0q-.729 0-1.24-.51-.51-.511-.51-1.24 0-.73.51-1.24.511-.51 1.24-.51.73 0 1.24.51t.51 1.24-.51 1.24-1.24.51M6.016 5.75l2.534 5.308h6.817a.3.3 0 0 0 .154-.044.4.4 0 0 0 .116-.12l2.682-4.875q.058-.105.01-.187t-.164-.082zm-.72-1.5h13.885q.613 0 .928.522.315.523.03 1.066l-3.204 5.804a1.8 1.8 0 0 1-.651.674 1.7 1.7 0 0 1-.888.242H8.1l-1.158 2.115q-.077.115-.005.25.073.135.217.135h10.692q.32 0 .535.215a.73.73 0 0 1 .215.535.73.73 0 0 1-.215.534.73.73 0 0 1-.535.216H7.154q-1 0-1.503-.863-.503-.862-.036-1.722l1.427-2.565L3.404 3.75H2.25a.73.73 0 0 1-.535-.215A.73.73 0 0 1 1.5 3q0-.32.215-.535a.73.73 0 0 1 .535-.215h1.529a.9.9 0 0 1 .813.517z",fill:u}))},CartWithAdd:e=>{var{size:t=24,color:n=r.r.colors.gray600,useCurrentColor:i,isActive:o,activeColor:s=r.r.colors.primaryBase}=e,c=(0,a.a)(e,["size","color","useCurrentColor","isActive","activeColor"]);let d=Object.assign({width:t,height:t},c);return l.createElement("svg",Object.assign({viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),l.createElement("path",{d:"M8.938 4.812H7.25a.54.54 0 0 1-.4-.161.55.55 0 0 1-.162-.401q0-.24.161-.401a.55.55 0 0 1 .401-.162h1.688V2q0-.24.161-.4a.55.55 0 0 1 .401-.163q.24 0 .4.162a.55.55 0 0 1 .162.401v1.688h1.688q.24 0 .4.161a.55.55 0 0 1 .162.401q0 .24-.161.4a.55.55 0 0 1-.401.162h-1.687V6.5q0 .24-.162.4a.55.55 0 0 1-.401.162.54.54 0 0 1-.4-.161.55.55 0 0 1-.162-.401zM5.865 16.668q-.546 0-.93-.383a1.27 1.27 0 0 1-.382-.93q0-.546.383-.929t.93-.383.929.383.383.93q0 .546-.383.93a1.27 1.27 0 0 1-.93.382m7.27 0q-.547 0-.93-.383a1.27 1.27 0 0 1-.383-.93q0-.546.383-.929t.93-.383.93.383.382.93q0 .546-.383.93a1.27 1.27 0 0 1-.93.382M3.053 3.312h-.865a.54.54 0 0 1-.401-.161.55.55 0 0 1-.162-.401q0-.24.162-.4a.55.55 0 0 1 .4-.162h1.158q.192 0 .36.1a.63.63 0 0 1 .25.287l2.946 6.218h5.113q.065 0 .115-.032a.3.3 0 0 0 .087-.09l2.618-4.702a.5.5 0 0 1 .198-.21.56.56 0 0 1 .28-.071q.324 0 .485.275.162.276.006.557L13.2 9.232a1.35 1.35 0 0 1-.489.505q-.303.18-.665.181H6.575l-.868 1.587q-.058.086-.004.187t.162.101h8.02q.239 0 .4.162a.55.55 0 0 1 .162.401q0 .24-.162.4a.55.55 0 0 1-.4.162h-8.02q-.75 0-1.133-.64-.383-.642-.02-1.298l1.07-1.924z",fill:i?"currentColor":o?s:n}))},Instagram:i.I,Comment,Heart,App:e=>{var{size:t=24}=e,n=(0,a.a)(e,["size"]);return l.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),l.createElement("g",{filter:"url(#filter0_ii_4999_54706)"},l.createElement("g",{clipPath:"url(#clip0_4999_54706)"},l.createElement("rect",{x:"1",y:"1",width:"16",height:"16",rx:"2",fill:"url(#paint0_linear_4999_54706)"}),l.createElement("rect",{x:"1",y:"1",width:"16",height:"16",rx:"2",fill:"url(#paint1_linear_4999_54706)",fillOpacity:"0.1",style:{mixBlendMode:"soft-light"}}),l.createElement("g",{filter:"url(#filter1_dd_4999_54706)"},l.createElement("g",{filter:"url(#filter2_iii_4999_54706)"},l.createElement("path",{d:"M8.29654 5.80369C8.29654 5.73385 8.29164 5.65909 8.28674 5.58741C8.26897 5.09885 7.7883 4.73068 7.31988 4.75105C6.7678 4.78342 6.64904 5.55644 7.12136 5.78838C7.19304 5.82637 7.21326 5.85945 7.20591 5.92624C7.20591 7.21503 7.20591 8.68747 7.20591 9.96463C7.20897 10.0155 7.19304 10.0412 7.14403 10.0621C6.63928 10.2819 6.76454 11.0833 7.33029 11.1055C7.79695 11.1288 8.2587 10.7427 8.28674 10.2704C8.29225 10.1975 8.29654 10.1264 8.29654 10.0529C8.29654 8.63657 8.30751 7.21995 8.29654 5.80369Z",fill:"white"}),l.createElement("path",{d:"M5.82243 10.0756C5.73542 10.0376 5.70724 9.9892 5.71643 9.88994V5.89321C5.72399 5.80249 5.79924 5.80677 5.85797 5.76147C6.29273 5.47607 6.10792 4.76229 5.58102 4.7505H5.56264C5.0355 4.7505 4.62519 5.18725 4.62519 5.70572C4.62519 6.81951 4.62398 7.9333 4.62764 9.04708C4.62887 9.41974 4.63009 9.79178 4.63009 10.1638C4.63009 10.6593 5.0522 11.1037 5.551 11.1037C6.09448 11.1037 6.34155 10.3213 5.82243 10.0756Z",fill:"white"}),l.createElement("path",{d:"M11.6617 8.88498C11.6617 9.16044 11.4384 9.38373 11.163 9.38373C10.8875 9.38373 10.6642 9.16044 10.6642 8.88498C10.6642 8.60953 10.8875 8.38624 11.163 8.38624C11.4384 8.38624 11.6617 8.60953 11.6617 8.88498Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.94126 8.85689C8.94126 9.92678 9.68187 10.8247 10.6709 11.0511C10.6001 12.3176 9.03205 12.3769 8.09561 12.2273C7.87932 12.1918 7.68632 12.1312 7.52211 12.0472C7.29602 11.9302 7.13058 11.7464 7.03132 11.5025C6.98554 11.3893 6.95676 11.2689 6.90511 11.1582C6.81259 10.9419 6.58527 10.8255 6.36531 10.8812C6.13738 10.9376 5.98542 11.1361 5.99584 11.364C6.00973 11.6959 6.1497 12.0255 6.34754 12.2886C6.55647 12.5717 6.83342 12.7886 7.19431 12.9503C7.70348 13.182 8.26352 13.25 8.818 13.25C9.43767 13.25 10.0914 13.1443 10.6316 12.826C11.1461 12.5218 11.6323 12.1241 11.6422 11.0526C12.6346 10.8288 13.3785 9.92919 13.3785 8.85689C13.3785 7.61676 12.3835 6.60762 11.1599 6.60762C9.9363 6.60762 8.94126 7.61676 8.94126 8.85689ZM12.3614 8.85689C12.3614 9.52965 11.8222 10.0768 11.1599 10.0768C10.4969 10.0768 9.95836 9.52965 9.95836 8.85689C9.95836 8.18413 10.4976 7.63697 11.1599 7.63697C11.8228 7.63759 12.3614 8.18474 12.3614 8.85689Z",fill:"white"})),l.createElement("mask",{id:"mask0_4999_54706",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"4",width:"10",height:"10"},l.createElement("path",{d:"M8.29654 5.80369C8.29654 5.73385 8.29164 5.65909 8.28674 5.58741C8.26897 5.09885 7.7883 4.73068 7.31988 4.75105C6.7678 4.78342 6.64904 5.55644 7.12136 5.78838C7.19304 5.82637 7.21326 5.85945 7.20591 5.92624C7.20591 7.21503 7.20591 8.68747 7.20591 9.96463C7.20897 10.0155 7.19304 10.0412 7.14403 10.0621C6.63928 10.2819 6.76454 11.0833 7.33029 11.1055C7.79695 11.1288 8.2587 10.7427 8.28674 10.2704C8.29225 10.1975 8.29654 10.1264 8.29654 10.0529C8.29654 8.63657 8.30751 7.21995 8.29654 5.80369Z",fill:"white"}),l.createElement("path",{d:"M5.82243 10.0756C5.73542 10.0376 5.70724 9.9892 5.71643 9.88994V5.89321C5.72399 5.80249 5.79924 5.80677 5.85797 5.76147C6.29273 5.47607 6.10792 4.76229 5.58102 4.7505H5.56264C5.0355 4.7505 4.62519 5.18725 4.62519 5.70572C4.62519 6.81951 4.62398 7.9333 4.62764 9.04708C4.62887 9.41974 4.63009 9.79178 4.63009 10.1638C4.63009 10.6593 5.0522 11.1037 5.551 11.1037C6.09448 11.1037 6.34155 10.3213 5.82243 10.0756Z",fill:"white"}),l.createElement("path",{d:"M11.6617 8.88498C11.6617 9.16044 11.4384 9.38373 11.163 9.38373C10.8875 9.38373 10.6642 9.16044 10.6642 8.88498C10.6642 8.60953 10.8875 8.38624 11.163 8.38624C11.4384 8.38624 11.6617 8.60953 11.6617 8.88498Z",fill:"white"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.94126 8.85689C8.94126 9.92678 9.68187 10.8247 10.6709 11.0511C10.6001 12.3176 9.03205 12.3769 8.09561 12.2273C7.87932 12.1918 7.68632 12.1312 7.52211 12.0472C7.29602 11.9302 7.13058 11.7464 7.03132 11.5025C6.98554 11.3893 6.95676 11.2689 6.90511 11.1582C6.81259 10.9419 6.58527 10.8255 6.36531 10.8812C6.13738 10.9376 5.98542 11.1361 5.99584 11.364C6.00973 11.6959 6.1497 12.0255 6.34754 12.2886C6.55647 12.5717 6.83342 12.7886 7.19431 12.9503C7.70348 13.182 8.26352 13.25 8.818 13.25C9.43767 13.25 10.0914 13.1443 10.6316 12.826C11.1461 12.5218 11.6323 12.1241 11.6422 11.0526C12.6346 10.8288 13.3785 9.92919 13.3785 8.85689C13.3785 7.61676 12.3835 6.60762 11.1599 6.60762C9.9363 6.60762 8.94126 7.61676 8.94126 8.85689ZM12.3614 8.85689C12.3614 9.52965 11.8222 10.0768 11.1599 10.0768C10.4969 10.0768 9.95836 9.52965 9.95836 8.85689C9.95836 8.18413 10.4976 7.63697 11.1599 7.63697C11.8228 7.63759 12.3614 8.18474 12.3614 8.85689Z",fill:"white"})),l.createElement("g",{mask:"url(#mask0_4999_54706)"},l.createElement("g",{filter:"url(#filter3_f_4999_54706)"},l.createElement("ellipse",{cx:"7.36076",cy:"7.31848",rx:"0.28125",ry:"0.421875",transform:"rotate(30 7.36076 7.31848)",fill:"white"})),l.createElement("g",{filter:"url(#filter4_f_4999_54706)"},l.createElement("rect",{x:"6.71875",y:"7.84375",width:"0.1875",height:"7.21875",fill:"white"})),l.createElement("g",{filter:"url(#filter5_f_4999_54706)"},l.createElement("rect",{x:"10.4688",y:"7.84375",width:"0.1875",height:"7.21875",fill:"white"})),l.createElement("g",{filter:"url(#filter6_f_4999_54706)"},l.createElement("ellipse",{cx:"10.267",cy:"7.50598",rx:"0.28125",ry:"0.421875",transform:"rotate(-30 10.267 7.50598)",fill:"white"}))))),l.createElement("rect",{x:"0.5",y:"0.5",width:"17",height:"17",rx:"2.5",stroke:"white"})),l.createElement("defs",null,l.createElement("filter",{id:"filter0_ii_4999_54706",x:"-0.191927",y:"-0.191927",width:"18.3839",height:"18.3839",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"0.191927",dy:"0.191927"}),l.createElement("feGaussianBlur",{stdDeviation:"0.0959636"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.2 0"}),l.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_4999_54706"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"-0.191927",dy:"-0.191927"}),l.createElement("feGaussianBlur",{stdDeviation:"0.0959636"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),l.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_4999_54706",result:"effect2_innerShadow_4999_54706"})),l.createElement("filter",{id:"filter1_dd_4999_54706",x:"2.375",y:"4.18774",width:"13.2539",height:"12.9998",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dy:"0.375"}),l.createElement("feGaussianBlur",{stdDeviation:"0.375"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4999_54706"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dy:"1.6875"}),l.createElement("feGaussianBlur",{stdDeviation:"1.125"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),l.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_4999_54706",result:"effect2_dropShadow_4999_54706"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_4999_54706",result:"shape"})),l.createElement("filter",{id:"filter2_iii_4999_54706",x:"4.25",y:"3.81274",width:"9.31641",height:"9.43726",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"-0.375",dy:"-0.9375"}),l.createElement("feGaussianBlur",{stdDeviation:"0.9375"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0582292 0 0 0 0 0.132925 0 0 0 0 0.325 0 0 0 0.25 0"}),l.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_4999_54706"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"0.1875",dy:"-0.375"}),l.createElement("feGaussianBlur",{stdDeviation:"0.1875"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.45 0"}),l.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_4999_54706",result:"effect2_innerShadow_4999_54706"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"-0.1875",dy:"-0.9375"}),l.createElement("feGaussianBlur",{stdDeviation:"0.46875"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.766667 0 0 0 0 0.888 0 0 0 0 1 0 0 0 1 0"}),l.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_4999_54706",result:"effect3_innerShadow_4999_54706"})),l.createElement("filter",{id:"filter3_f_4999_54706",x:"6.55924",y:"6.44706",width:"1.60417",height:"1.74284",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feGaussianBlur",{stdDeviation:"0.239909",result:"effect1_foregroundBlur_4999_54706"})),l.createElement("filter",{id:"filter4_f_4999_54706",x:"6.23893",y:"7.36393",width:"1.14714",height:"8.17839",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feGaussianBlur",{stdDeviation:"0.239909",result:"effect1_foregroundBlur_4999_54706"})),l.createElement("filter",{id:"filter5_f_4999_54706",x:"9.98893",y:"7.36393",width:"1.14714",height:"8.17839",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feGaussianBlur",{stdDeviation:"0.239909",result:"effect1_foregroundBlur_4999_54706"})),l.createElement("filter",{id:"filter6_f_4999_54706",x:"9.46549",y:"6.63456",width:"1.60417",height:"1.74284",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feGaussianBlur",{stdDeviation:"0.239909",result:"effect1_foregroundBlur_4999_54706"})),l.createElement("linearGradient",{id:"paint0_linear_4999_54706",x1:"9",y1:"1",x2:"9",y2:"17",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#65B5FF"}),l.createElement("stop",{offset:"1",stopColor:"#2685F1"})),l.createElement("linearGradient",{id:"paint1_linear_4999_54706",x1:"9",y1:"1",x2:"9",y2:"17",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:"0.151042",stopColor:"white"}),l.createElement("stop",{offset:"1",stopOpacity:"0.1"})),l.createElement("clipPath",{id:"clip0_4999_54706"},l.createElement("rect",{x:"1",y:"1",width:"16",height:"16",rx:"2",fill:"white"}))))},Save,Bookmark}}}]);