"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8674],{fhJG:function(e,t,a){a.d(t,{C:function(){return CardLink}});var n=a("ySIk"),l=a("q1tI"),r=a("8vDj"),i=a("oYLa"),o=a("Ag88"),s=a("q/st"),c=a("rBCA"),d=a("IQVP"),u=a("58a8");let m=c.Z.div` .link-info-container { padding: 0.5rem 1rem; background: ${e=>e.color||"#f4faff"}; } .link-image-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: min(280px, 56.25%); .link-image-blur { position: absolute; top: 50%; left: 50%; width: 110%; height: 110%; /* Add the blur effect */ -webkit-filter: blur(8px); filter: blur(8px); object-fit: cover; object-position: center; opacity: 0.8; transform: translate(-50%, -50%); } .link-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; } } a { text-decoration: none; } &[data-is-marrybaby='true'] { overflow: hidden; border-radius: 1rem; .link-info-container { padding-bottom: 1rem; p { color: #2661ad; } .link-logo { max-width: 2rem; height: 13px; margin-right: 4px; object-fit: contain; vertical-align: middle; } } .link-image-wrapper { padding-top: min(360px, 56.25%); .link-image { object-fit: cover; } } } `,CardLink=({title:e,url:t,image:a,logo:c,className:h,style:p,noRefetch:g})=>{let{data:{locale:v,env:{isMarryBaby:f}}}=(0,l.useContext)(s.T),[b,E]=(0,l.useState)(!1),y=(0,r.rZ)(),x=(0,l.useRef)(g);x.current=g;let[C,w]=(0,l.useState)(null);(0,l.useEffect)(()=>{(0,n.a)(void 0,void 0,void 0,function*(){if(!x.current){if(!t)return w(null);w(e=>Object.assign(Object.assign({},e),{isFetching:!0})),(0,s.c)((0,s.e)(d.yy.FETCH_PREVIEW,{_locale:v}),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}}).then(e=>{var a,n,l;E(!1),w({title:null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.title,url:t,image:(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.image)||(null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.logo)})}).catch(()=>{w(null)})}})},[t]);let k=(null==C?void 0:C.image)||a,S=(null==C?void 0:C.title)||e,A=(null==C?void 0:C.logo)||c,N=(null==C?void 0:C.url)||t,P=N.replace("http://","").replace("https://","").split(/[/?#]/),T=P[0],B=(0,l.useRef)(!1);return l.createElement(m,{"data-is-marrybaby":f,className:`${h} no-replace-click`,style:p,color:y.colors[y.primaryColor][0]},l.createElement("a",{href:N,target:"_blank",rel:"noreferrer"},k&&l.createElement("div",{className:"link-image-wrapper"},!f&&l.createElement("img",{className:"link-image-blur",src:k,onError:e=>{B.current||(B.current=!0,e.currentTarget.src=u.D)},loading:"lazy"}),l.createElement("img",{className:"link-image",src:k,onError:e=>{B.current||(B.current=!0,e.currentTarget.src=u.D)},loading:"lazy"})),l.createElement("div",{className:"link-info-container"},l.createElement(o.T,{size:"n1"},f&&A&&!b&&l.createElement("img",{className:"link-logo",src:A,onError:()=>E(!0),loading:"lazy"}),T),l.createElement(i.H,{tag:"h6"},S))))}},"6XqM":function(e,t,a){a.d(t,{P:function(){return PostContent},T:function(){return r},U:function(){return i},a:function(){return ProfileDetail},b:function(){return q}});var n,l,r,i,o=a("ySIk"),s=a("q1tI"),c=a("Wgwc"),d=a.n(c),u=a("bIjs"),m=a("lOOI"),h=a("sea2"),p=a("IQVP"),g=a("q/st"),v=a("oTwY"),f=a("/npG"),b=a("eito"),E=a("bpvy"),y=a("SPK5"),x=a("8vDj"),C=a("2IpA"),w=a("/MN3"),k=a("gzw/"),S=a("4kHQ"),A=a("ybaB"),N=a("iBNF"),P=a("rCoo"),T=a("e0pn"),B=a("c29y"),L=a("Ag88"),I=a("ovJ4"),O=a("rBCA"),j=a("aZjv"),D=a("HM0t"),H=a("xtxu");let z=O.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; } } } } `,F=O.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; } `,R=O.Z.span` padding-left: 2px; background-color: ${N.r.colors.white}; bottom: 8px; position: absolute; right: 0; z-index: 10; cursor: pointer; `;var M=(0,f.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:a,className:n,style:l,replyingTo:r,mentionedUser:i,description:c,disableShortenContent:d,mentions:u=[],maxChars:m=1e3,maxLines:h,hideShowAllBtn:p,styles:v,onClickCreatePostLink:f}=e,E=(0,o._)(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","maxLines","hideShowAllBtn","styles","onClickCreatePostLink"]);let{classes:y,theme:x}=M(void 0,{name:"PostContent",styles:v}),[C,w]=(0,s.useState)(!1),[S,N]=(0,s.useState)(!1),{t:P}=(0,A.u)(),{authActionWrapper:T}=(0,j.iV)(),[B,L]=(0,s.useState)(!1),I=(0,D.d)((0,D.b)(c||"","display"),u),{action:{sanitizeFunction:O}}=(0,s.useContext)(g.T),H=(0,s.useMemo)(()=>{let e=O(I||"");if(d||C)return{showContent:e,hasSeeMore:!1};let t=e.slice(0,m),a=m-((t.match(/<\/div>/g)||[]).length-1)*27,n=(t||"").slice(0,a<40?40:a),l=O(n.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),r=l.lengths.createElement(s.Fragment,null,"... ",!p&&s.createElement(b.e,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),T(()=>w(!0))},className:"see-more-text"},t?{"data-event-category":t,"data-event-action":"See More Post Click","data-event-label":a}:{}),P("post.seeMore"))),[p,a,t]),handleCreatePostClick=e=>{e.preventDefault(),null==f||f()},isEllipsisActive=e=>e.scrollHeight>e.clientHeight;return(0,s.useEffect)(()=>{var e;return null===(e=null==G?void 0:G.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach(e=>{e.addEventListener("click",handleCreatePostClick,{passive:!0})}),()=>{var e;null===(e=null==G?void 0:G.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach(e=>{e.removeEventListener("click",handleCreatePostClick,!1)})}},[d,C,I]),(0,s.useEffect)(()=>{Z.current&&I&&h&&(isEllipsisActive(Z.current)?N(!0):N(!1))},[I,h]),s.createElement(s.Fragment,null,$&&s.createElement(k.P,{isOpen:B,onClose:()=>L(!1),expertId:String(null==i?void 0:i.partnerId)}),s.createElement(z,Object.assign({ref:G,className:`${y.root} ${n} no-replace-click`,style:l,mentionColor:x.fn.primaryColor()},E),_&&s.createElement(b.e,{onClick:()=>$&&L(!0),className:"post-content-replying"},"@",_),(null==c?void 0:c.startsWith("[mention+id="))&&s.createElement("span",{className:"post-content-replying tag-only",style:{color:x.fn.primaryColor()}},"@"),h?s.createElement(s.Fragment,null,s.createElement(F,{dangerouslySetInnerHTML:{__html:I},className:`post-content-line ${C?"post-content-show-all":""}`,line:h,ref:Z}),S&&!C&&s.createElement(R,null,V())):s.createElement(s.Fragment,null,s.createElement("span",{dangerouslySetInnerHTML:{__html:H.showContent},className:`post-content ${H.hasSeeMore?"has-see-more":""}`}),H.hasSeeMore&&!C&&s.createElement("span",null,V()))))},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=C.C.getAssetPath("logo/logomark.png"),ratio:a=1,size:n=80,radius:l=8,alt:r,className:i=""})=>s.createElement("div",{className:i},s.createElement("div",{className:"DZmf3s7",style:{width:`${n}px`,height:`${n*a}px`,borderRadius:`${l}px`}},s.createElement(w.I,{src:e,backupSrc:t,alt:r}))),CardArticle=({category:e,title:t,src:a,children:n,className:l=""})=>s.createElement("div",{className:`eaR8ATZ ${l}`},s.createElement(Thumbnail,{src:a}),s.createElement("div",{className:"xM-7K0a"},n||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:a,categories:n,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==n?void 0:n[0])||void 0===i?void 0:i.name),s.createElement(CardArticle.Title,null,t),s.createElement(k.d,{avatarProps:Object.assign(Object.assign({},a),{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 _={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 $=(0,s.createContext)({}),About=({className:e=""})=>{var t,a,n,l,r;let{t:i}=(0,A.u)(),{info:o,isMarryBaby:c,currentPageUrl:d}=(0,s.useContext)($),u=null==o?void 0:o.data,m=[{type:S.S.LinkedIn,icon:C.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:C.C.getAssetPath("instagram.svg"),url:null===(a=null==o?void 0:o.contact)||void 0===a?void 0:a.instagram,eventAction:"Doctor Profile - Instagram"},{type:S.S.Facebook,icon:C.C.getAssetPath("facebook.svg"),url:null===(n=null==o?void 0:o.contact)||void 0===n?void 0:n.facebook,eventAction:"Doctor Profile - Facebook"},{type:S.S.Youtube,icon:C.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:C.C.getAssetPath("tiktok.svg"),url:null===(r=null==o?void 0:o.contact)||void 0===r?void 0:r.tiktok,eventAction:"Doctor Profile - TikTok"}],h=[...((null==o?void 0:o.experiences)||[]).length>0?[{key:"experience",heading:i("profilePanel.experience"),iconSrc:C.C.getAssetPath(c?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:s.createElement("div",{className:_.accBodyGroup},null==o?void 0:o.experiences.map((e,t)=>s.createElement("div",{className:_.accBodyGroupItem,key:String(t)},s.createElement("div",{className:_.accBodyGroupTitle},e.title),s.createElement("div",{className:_.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:C.C.getAssetPath(c?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:s.createElement("div",{className:_.accBodyGroup},null==o?void 0:o.educations.map((e,t)=>s.createElement("div",{className:_.accBodyGroupItem,key:String(t)},s.createElement("div",{className:_.accBodyGroupTitle},e.schoolName),s.createElement("div",{className:_.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:C.C.getAssetPath(c?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:s.createElement("div",{className:_.accBodyGroup},null==o?void 0:o.awards.map((e,t)=>s.createElement("div",{className:_.accBodyGroupTitle,key:t},e.title)))}]:[]],p=(null==o?void 0:o.relatedPosts)||[],g=m.filter(e=>e.url);return s.createElement("div",{className:`${_.container} ${e}`,"data-is-marrybaby":c},h.length>0&&s.createElement(E.U,{defaultValue:h[0].key,chevron:c?s.createElement("div",{className:_.mbChevronWrapper},s.createElement(v.Z,{size:12,color:N.r.mbColors.midGray})):s.createElement(v.Z,{color:N.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"}}}},h.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:_.header},s.createElement("div",{className:_.headingIcon},s.createElement("img",{src:e.iconSrc,loading:"lazy"})),s.createElement("div",{className:_.heading},e.heading))),s.createElement(E.U.Panel,null,e.panel)))),p.length>0&&s.createElement("div",{className:_.group},s.createElement("div",{className:_.subTitle},s.createElement("img",{className:_.subIcon,src:C.C.getAssetPath(c?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),i("profilePanel.publishedArticles")),s.createElement("div",{className:`${_.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:_.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:_.group},s.createElement("div",{className:_.subTitle},s.createElement("img",{className:_.subIcon,src:C.C.getAssetPath(c?"social-mb.svg":"social.svg"),loading:"lazy"}),i("profilePanel.socialLinks")),s.createElement("div",{className:_.groupBody},s.createElement(y.k,null,m.map((e,t)=>e.url&&s.createElement("div",{className:_.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 G={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};let PostCard$1=({post:e,className:t=""})=>{var a,n,l,r,i,o,c,d;let{t:u}=(0,A.u)(),{data:{userInfo:m,env:{togetherBasePath:h}}}=(0,s.useContext)(g.T),{authActionWrapper:p,authorProps:v,currentPageUrl:f}=(0,s.useContext)($),b=`${window.location.origin}${h}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.slug}/${null==e?void 0:e.slug}/`;return s.createElement("div",{className:`${G.container} ${t}`},s.createElement("div",{className:G.header},s.createElement("div",{className:G.question},u("profilePanel.question")," ",s.createElement(B.b,{className:G.questionTitle,href:"#",onClick:()=>{(null==m?void 0:m.id)||null==p||p(()=>window.location.href=b,{_location:b})}},"#",null==e?void 0:e.title)),s.createElement("div",{className:G.community},null===(n=null==e?void 0:e.community)||void 0===n?void 0:n.name," - ",null==e?void 0:e.createdTime)),s.createElement("div",{className:G.questionCard},s.createElement(k.C,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:s.createElement(P.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(I.B,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":f,size:"md",onClick:()=>{(null==m?void 0:m.id)?window.location.href=b:null==p||p(()=>window.location.href=b,{_location:b})}},u("profilePanel.anserwing.viewFull")))};var Z={container:"_8fd7YMs",thumb:"DomiQfw",content:"-b2qnfL"};let EmptyMessage=({message:e,buttonTxt:t,imgSrc:a,onBtnClick:n})=>{let{siteType:l,isMarryBaby:r}=(0,s.useContext)($);return s.createElement("div",{className:Z.container},s.createElement("div",{className:Z.thumb},s.createElement("img",{src:a||C.C.getAssetPath(r?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&s.createElement("div",{className:Z.content},e),t&&s.createElement(H.B,{size:"md",theme:l,color:"secondary",onClick:n},t))},Answering=({id:e})=>{let{t}=(0,A.u)(),{data:{locale:a}}=(0,s.useContext)(g.T),{authorProps:n}=(0,s.useContext)($),[l,r]=(0,s.useState)(null),[i,c]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{e&&(0,o.a)(void 0,void 0,void 0,function*(){var t;c(!0);let n=yield(0,g.c)((0,g.e)(p.yy.USER.LIST_ANSWERS,{_locale:a,id:e}),"GET"),l=((null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.replies)||[]).map(h.a);r(l),c(!1)})},[]),s.createElement("div",{className:"MrdoES3"},i?s.createElement(m.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==n?void 0:n.name)||(null==n?void 0:n.username)})})))},QuestionCard=e=>{var t,a,n,l,{post:r}=e,i=(0,o._)(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===(a=null==r?void 0:r.author)||void 0===a?void 0:a.name)||(null===(n=null==r?void 0:r.author)||void 0===n?void 0:n.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(B.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 V={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",chevron:"L2Q9T6m",container:"h-pSmhX"};let Care=()=>{var e,t;let{t:a}=(0,A.u)(),{data:{locale:n,userInfo:l}}=(0,s.useContext)(g.T),{onSkipQuestion:r,countValues:i,setCountValues:c}=(0,s.useContext)($),[d,u]=(0,s.useState)(),[v,f]=(0,s.useState)([]),[b,y]=(0,s.useState)(!1),x=null==l?void 0:l.id;(0,s.useEffect)(()=>{x&&(0,o.a)(void 0,void 0,void 0,function*(){var e;y(!0);let t=yield(0,g.b)((0,g.e)(p.yy.USER.LIST_QUESTION_NEED_REPLY,{_locale:n}),"GET"),a=[],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(h.a),delete e.question,a.push((0,h.f)(e))}),f(a),u(l),y(!1)})},[]);let handleSkipQuestion=({id:e,communityId:t})=>{if(e&&t&&d){let a=Object.assign(Object.assign({},d),{[t]:[...((null==d?void 0:d[t])||[]).filter(t=>t.id!==e)]}),n=0;Object.keys(a).map(e=>n+=a[e].length||0),u(a),c(Object.assign(Object.assign({},i),{total_question:n})),null==r||r(n)}};return s.createElement("div",{className:V.container},b?s.createElement(m.L,null):(null==i?void 0:i.total_question)>0?v.length>0&&s.createElement(E.U,{className:V.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:V.chevron},s.createElement(T.Z,{color:N.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:V.header},s.createElement("div",{className:V.headingIcon},s.createElement("img",{src:e.thumbnail,loading:"lazy"})),s.createElement("div",{className:V.heading},e.name))),s.createElement(E.U.Panel,null,s.createElement("div",{className:V.body},t.map(e=>s.createElement(QuestionCard,{className:"question-card",key:e.id,post:e,onSkip:handleSkipQuestion})))))})):s.createElement(EmptyMessage,{message:a("profilePanel.emptyCareMess.content"),imgSrc:C.C.getAssetPath("questions.svg")}))},PostCard=({post:e,className:t=""})=>{var a;let{data:{userInfo:n,env:{togetherBasePath:l}}}=(0,s.useContext)(g.T),{t:r}=(0,A.u)(),i=(0,x.rZ)(),{authActionWrapper:o,authorProps:c}=(0,s.useContext)($),d=`${window.location.origin}${l}/${null===(a=null==e?void 0:e.community)||void 0===a?void 0:a.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==n?void 0:n.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,A.u)(),{data:{locale:t}}=(0,s.useContext)(g.T),{authorId:a,authorProps:n,isAuthorLogin:l,onCloseFromPost:r}=(0,s.useContext)($),[i,c]=(0,s.useState)(null),[d,u]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{a&&(0,o.a)(void 0,void 0,void 0,function*(){var e;u(!0);let n=yield(0,g.c)((0,g.e)(p.yy.USER.LIST_POST,{_locale:t,id:a,isAnonymous:0}),"GET"),l=((null===(e=null==n?void 0:n.data)||void 0===e?void 0:e.posts)||[]).map(h.a);c(l),u(!1)})},[a]),s.createElement("div",{className:"TSMHoEM"},d?s.createElement(m.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==n?void 0:n.name)||(null==n?void 0:n.username)||""}),buttonTxt:l&&e("profilePanel.createPost"),onBtnClick:()=>{null==r||r()}})))};var W={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}:{};(n=r||(r={}))[n.About=0]="About",n[n.Care=1]="Care",n[n.Answer=2]="Answer",n[n.Posts=3]="Posts",(l=i||(i={}))[l.Expert=0]="Expert",l[l.User=1]="User";let q={experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail=e=>{var t,{authorProps:a,selectedTab:n,authActionWrapper:l,onSkipQuestion:i,onCloseFromPost:c,hideQuestionTab:v,hideAnswerTab:f,showSkipQuestionTag:b,rolesToShowQuestionsTab:E=["expert"],currentPageUrl:y}=e,x=(0,o._)(e,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);let{data:{locale:C,userInfo:w,env:{isMarryBaby:S}}}=(0,s.useContext)(g.T),{t:N}=(0,A.u)(),P=null==a?void 0:a.role,T=null==w?void 0:w.role,B=String(null==a?void 0:a.userId),[L,I]=(0,s.useState)(),[O,j]=(0,s.useState)(!1),[D,H]=(0,s.useState)(),z=(null==w?void 0:w._togetherUserId)===(null==a?void 0:a.userId),F=[...-1!==E.indexOf(P)?[{value:r.About,text:N("profilePanel.tabs.highlight"),content:s.createElement(About,{id:B,info:D}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:y}]:[],{value:r.Posts,text:N("profilePanel.tabs.posts"),content:s.createElement(Posts,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...v||-1===E.indexOf(T)||(null==w?void 0:w._togetherUserId)!==(null==a?void 0:a.userId)?[]:[{value:r.Care,text:`${N("profilePanel.tabs.care")}`,content:s.createElement(Care,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:y}],...f||-1===E.indexOf(P)?[]:[{value:r.Answer,text:`${N("profilePanel.tabs.expertAnswer")}`,content:s.createElement(Answering,{id:B}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:y}]],[R,M]=(0,s.useState)(null),[_,G]=(0,s.useState)(null),Z={value:String(_),dataList:R,onTabChange:e=>G(Number(e))},V=null==F?void 0:F.filter(e=>null==e?void 0:e.hasCountResult);(0,s.useEffect)(()=>{(0,o.a)(void 0,void 0,void 0,function*(){var e,t,a,l,i,o,s,c,d,u;j(!0);let m=yield Promise.all([(0,g.c)((0,g.e)(p.yy.USER.DETAIL,{_locale:C,id:B}),"GET"),...V.map(e=>(0,g.c)((0,g.e)(p.yy.USER.COUNT_TABS,{_locale:C,id:B,[e.keyOfCountApi]:1}),"GET"))]),[v]=m,f={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===(a=null==v?void 0:v.data)||void 0===a?void 0:a.related_post)||[]).map(e=>(0,h.g)(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&&H(f);let b=(null==f?void 0:f.relatedPosts)||[],E=Object.keys(f.contact).map(e=>{var t;return(null===(t=null==f?void 0:f.contact)||void 0===t?void 0:t[e])!==""}),y=[...(null==f?void 0:f.experiences)||[],...(null==f?void 0:f.educations)||[],...(null==f?void 0:f.awards)||[]],x=b.length>0||E.length>0||y.length>0,w={},k=V.map((e,t)=>{var a,n,l;let i=(null===(l=null===(n=null===(a=m[t+1])||void 0===a?void 0:a.data)||void 0===n?void 0:n.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=F.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?x&&t:t}).filter(Boolean);M(S),G(n||(null===(u=null==S?void 0:S[0])||void 0===u?void 0:u.value)),I(w),j(!1)})},[]);let q=null==D?void 0:D.data;return s.createElement($.Provider,{value:{isMarryBaby:S,siteType:S?"marryBaby":"helloSites",authorId:String((null==a?void 0:a.userId)||""),authActionWrapper:l,onSkipQuestion:i,info:D,authorProps:a,onCloseFromPost:c,countValues:L,setCountValues:I,isAuthorLogin:z,showSkipQuestionTag:b,currentPageUrl:y}},s.createElement("div",Object.assign({},x,{className:`${W.container} ${(null==x?void 0:x.className)||""}`,"data-is-marrybaby":S}),O?s.createElement(m.L,null):s.createElement(s.Fragment,null,s.createElement(k.C,Object.assign({},a,{className:"card-author",showDetailPopup:!1,subLine:(null==a?void 0:a.role)==="expert"?(null==q?void 0:q.specialty)&&(null==q?void 0:q.organisation)&&s.createElement(k.C.SubTextRow,null,(null==q?void 0:q.specialty)&&s.createElement(s.Fragment,null,s.createElement(k.C.SubText,null,null==q?void 0:q.specialty),s.createElement(k.C.SubDivider,null)),s.createElement(k.C.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&s.createElement(k.C.SubTextRow,null,s.createElement(k.C.SubText,null,N("profilePanel.joined")," ",d()(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===P&&s.createElement("div",{className:W.info,dangerouslySetInnerHTML:{__html:null===(t=null==D?void 0:D.data)||void 0===t?void 0:t.description}}),null!==R&&null!==_&&(R.length>0?s.createElement("div",{className:W.body},s.createElement(u.T,Object.assign({},Z))):s.createElement(EmptyMessage,{message:N("profilePanel.emptyPostMess.content",{text:(null==a?void 0:a.name)||(null==a?void 0:a.username)||""})})))))}},tcYR:function(e,t,a){a.d(t,{M:function(){return MantineProvider}});var n=a("ySIk"),l=a("q1tI"),r=a("8vDj"),i=a("ypn8"),o=a("yQSt");let MantineProvider=e=>{var{children:t,locale:a,template:s="hb",isNotifications:c=!0,customStyleType:d=o.C.NONE}=e,u=(0,n._)(e,["children","locale","template","isNotifications","customStyleType"]);return(0,i.u)(a),l.createElement(r.Me,Object.assign({theme:(0,i.g)(a,s,d)},u),l.createElement(o.T,{variant:d},t,c&&l.createElement(i.N,null)))}},Phmo:function(e,t,a){a.d(t,{S:function(){return Spoiler}});var n=a("ySIk"),l=a("q1tI"),r=a("uCoU"),i=a("Ag88"),o=a("ybaB"),s=a("iBNF");let Spoiler=e=>{var{children:t,line:a,lineHeight:c,trackingAttributes:d,maxHeight:u,customExpandFn:m}=e,h=(0,n._)(e,["children","line","lineHeight","trackingAttributes","maxHeight","customExpandFn"]);let{t:p}=(0,o.u)(),g=(0,l.useMemo)(()=>u||(a&&c?a*c:(console.error("[HHG-Comp]:[Spoiler] Please provide maxHeight, or line with lineHeight"),0)),[]);t||console.error("[HHG-Comp]:[Spoiler] Please provide children");let v=(0,l.useMemo)(()=>d?{"data-event-category":d.dataEventCategory,"data-event-action":d.dataEventAction,"data-event-label":d.dataEventLabel}:{},[d]);return l.createElement(r.o,Object.assign({showLabel:l.createElement(i.T,Object.assign({size:"p3",color:s.r.colors.primaryBase},v,{onClick:m}),p("articlePage.readMore")),hideLabel:l.createElement(i.T,Object.assign({size:"p3",color:s.r.colors.primaryBase},v),p("articlePage.showLess"))},h,{maxHeight:g}),t)}},kG1m:function(e,t,a){a.d(t,{A:function(){return Avatar},D:function(){return DistanceTag},I:function(){return IconWrapper},P:function(){return Pin3},S:function(){return ShapedArrowDown},a:function(){return DrawerBottom}});var n=a("q1tI"),l=a("rBCA"),r=a("iBNF"),i=a("/MN3"),o=a("Ag88"),s=a("ySIk"),c=a("iuhU"),d=a("h8tX"),u=a("eHVF"),m=a("rSBk"),h=a("KhOF");let Pin3=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none"},e),n.createElement("g",{clipPath:"url(#clip0_5371_10640)"},n.createElement("path",{d:"M6.6665 4.3335L8.1665 5.8335L6.6665 7.3335",stroke:"#8C8C8C",strokeWidth:.72,strokeLinecap:"round",strokeLinejoin:"round"}),n.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"}),n.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"})),n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_5371_10640"},n.createElement("rect",{width:12,height:12,fill:"white"})))),ShapedArrowDown=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none"},e),n.createElement("path",{d:"M13.5554 9.33398L7.99989 5.55621L2.44434 9.33398",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),p=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; } } `,g={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},Avatar=({type:e="square",size:t,avatarImg:a,avatarUrl:l,firstLetter:r,backgroundColor:o,onClick:s,style:c,className:d,width:u,height:m,alt:h})=>{let v=t?g[t]:void 0,[f,b]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(l){let e=document.createElement("img");e.setAttribute("src",l),e.addEventListener("error",()=>{b(!0)})}},[l,b]);let E=(!l&&!a||f)&&r;return n.createElement(p,{style:Object.assign(Object.assign({},c),{"--size":v?v+"px":void 0,"--width-prop":u?u+"px":void 0,"--height-prop":m?m+"px":void 0,"--background-color":o}),"data-has-max":!!(u&&m),"data-avatar-type":e,onClick:s,className:d,avatarUrl:l,"data-custom-size":!!t},a,l&&!f&&n.createElement(i.I,{src:l,alt:h||"avatar"}),E&&r)},v=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; `,f=(0,l.Z)(Pin3)` width: 0.75rem; height: 0.75rem; color: ${r.r.colors.gray400}; `;function DistanceTag({value:e,className:t}){return n.createElement(v,{className:t},n.createElement(f,null),n.createElement(o.T,{size:"p3",weight:"regular",color:r.r.colors.gray400},e))}let b=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:a,wrapperSize:l,iconSize:r=24,wrapperStyle:i,iconStyle:o,svgIcon:s,wrapperProps:c})=>n.createElement(b,Object.assign({className:t,onClick:a,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":!!a,"data-svg-custom-stroke":!!(null==s?void 0:s.stroke),"data-svg-custom-fill":!!(null==s?void 0:s.fill)},c),n.cloneElement(e,{style:o}));(0,l.Z)(u.D)` /* max-height: 100vh; max-height: 100dvh; */ background-color: white; &[data-vaul-drawer-direction='bottom'] { top: initial !important; border-top-left-radius: 16px !important; border-top-right-radius: 16px !important; padding-bottom: 32px; padding-left: 20px; padding-right: 20px; } .drawer__handle { width: 44px; height: 3px; background-color: ${r.r.colors.neutral500}; margin: 16px auto; flex-shrink: 0; } `;let E=(0,l.Z)(m.dy.Content)` position: fixed; z-index: ${h.Z-9e6+1}; inset: 0; background-color: #fff; outline: none !important; &[data-is-linear='true'] { background: linear-gradient(180deg, #c3e3ff 1.86%, #fff 20%) !important; } &::-webkit-scrollbar { width: 6px; height: 6px; } &::-webkit-scrollbar-track { background-color: transparent; } &::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.4); border-radius: 6px; } &[data-vaul-drawer-direction='bottom'] { top: initial; border-top-left-radius: 16px; border-top-right-radius: 16px; /* padding-bottom: 16px; */ } ${e=>e.isDragging&&` input { caret-color: transparent; } `} `,y=(0,l.Z)(m.dy.Overlay)` position: fixed; inset: 0; z-index: ${h.Z-9e6}; width: 100%; max-height: 100%; background-color: rgb(0, 0, 0, 0.4); `,x=(0,l.Z)(m.dy.Handle)` &[data-vaul-handle] { width: 44px; height: 3px; background-color: ${r.r.colors.neutral500}; margin: 16px auto; flex-shrink: 0; } `;function DrawerBottom(e){var{children:t,onClose:a,isOpen:l,onOpenChange:r,isMobile:i,classNames:o,isLinear:h,overlayClassName:p,contentClassName:g,handlerClassName:v}=e,f=(0,s._)(e,["children","onClose","isOpen","onOpenChange","isMobile","classNames","isLinear","overlayClassName","contentClassName","handlerClassName"]);let{isDragging:b,handleDragStart:C,handleDragEnd:w}=(0,u.u)();return i?n.createElement(m.dy.Root,Object.assign({onDrag:C,onRelease:w,open:l,onOpenChange:r,onClose:a},f),n.createElement(m.dy.Portal,null,n.createElement(y,{className:(0,c.default)(p,"drawer__overlay")}),n.createElement(E,{isDragging:b,className:(0,c.default)(g,"drawer__content"),"data-is-linear":h},n.createElement(m.dy.Title,{style:{display:"none"}}),n.createElement(x,{className:(0,c.default)(v,"drawer__handle")}),t))):n.createElement(d.u,Object.assign({withCloseButton:!0,centered:!0,zIndex:500,size:"auto",classNames:o,radius:"lg"},f,{onClose:a,opened:l,styles:{root:{maxHeight:"400px"},body:{background:h?"linear-gradient(180deg, #A5D4FF 0%, #FFFFFF 20%)":void 0}}}),t)}},RmSG:function(e,t,a){a.d(t,{i:function(){return isVideo}});let isVideo=e=>e.endsWith(".mp4")},Emhi:function(e,t,a){a.d(t,{G:function(){return GenderOptionControl}});var n=a("ySIk"),l=a("q1tI"),r=a("XUjW"),i=a("ah6c"),o=a("/npG"),s=a("mYVa"),c=a("Eso5"),d=a("SPK5"),u=a("c29y"),m=a("2IpA"),h=a("Ag88"),p=a("ybaB");let g={lg:{height:48},md:{height:40},sm:{height:32},xs:{height:32}};var v=(0,o.k)((e,{type:t,gap:a,size:n})=>{let l="mb"===e.other.template,r=g[n]||{},i=r.height;return{root:{},wrapper:Object.assign({gap:(0,s.h)(a||8)},"radio"===t&&{justifyContent:"flex-end",gap:(0,s.h)(a||24)}),groupErr:{fontSize:(0,s.h)(14)},itemRoot:Object.assign({},"button"===t?{flexGrow:1,width:"50%",'&[data-checked="true"]':{".mantine-Radio-label":{borderColor:e.fn.primaryColor()}}}:"radio"===t?{padding:`${(0,s.h)(10)} 0`,margin:0}:{}),itemLabelWrapper:{padding:0,width:"100%"},itemLabel:Object.assign({whiteSpace:"nowrap"},"button"===t?{position:"relative",padding:`${(0,s.h)(2)} ${(0,s.h)(16)}`,border:`1px solid ${l?"#EAEAEC":e.colors.gray[2]}`,backgroundColor:"#fff",borderRadius:(0,s.h)(l?16:4),cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",height:i,'&[data-disabled="true"]':{background:e.colors.gray[1],color:`${e.colors.gray[4]} !important`,img:{opacity:.5}},img:{height:(0,s.h)("lg"===n?26:22)}}:"radio"===t?{fontSize:(0,s.h)(14)}:{}),itemInner:Object.assign(Object.assign({},"button"===t&&{display:"none"}),"radio"===t&&{alignSelf:"center"}),itemBody:Object.assign({},"radio"===t&&{alignItems:"center"})}});let GenderOptionControl=e=>{var{label:t,availableValue:a,styles:o,isBaby:g,genderValue:f={male:"male",female:"female"},type:b="button",hideLabel:E,labelTextProps:y,labelText:x,gap:C,size:w="md",LabelWrapper:k}=e,S=(0,n._)(e,["label","availableValue","styles","isBaby","genderValue","type","hideLabel","labelTextProps","labelText","gap","size","LabelWrapper"]);let{t:A}=(0,p.u)(),{classes:N,cx:P,theme:T}=v({type:b,gap:C,size:w},{name:"GenderOptionControl",styles:o}),B="mb"===T.other.template,[L,I]=(0,l.useState)(),O=(0,l.useRef)(null),j=k?{}:Object.assign({as:"label",size:"p2",weight:"semiBold",variant:"primary"},y),D=k||h.T,H=(0,l.useMemo)(()=>[{value:f.male,label:g?A("gender.boy"):A("gender.male"),icon:g?B?l.createElement(r.Z,null):m.C.getAssetPath("health-tools/boy-icon.svg"):m.C.getAssetPath("health-tools/male-icon.svg")},{value:f.female,label:g?A("gender.girl"):A("gender.female"),icon:g?B?l.createElement(i.Z,null):m.C.getAssetPath("health-tools/girl-icon.svg"):m.C.getAssetPath("health-tools/female-icon.svg")}],[]);return(0,l.useEffect)(()=>{I(a)},[a]),l.createElement(c.x,{ref:O,className:N.root},l.createElement(u.R.Group,Object.assign({className:"radio-group",label:E?void 0:l.createElement(D,Object.assign({id:"gender-option-control-label"},j),t||(g?A("tools.selectBabyGender"):A("tools.selectGender"))),size:"lg"},S,{classNames:{error:N.groupErr}},"radio"===b&&{error:null}),l.createElement(d.k,{className:P(N.wrapper)},H.map(e=>l.createElement(u.R,Object.assign({className:"gender-item",size:"sm",classNames:{root:N.itemRoot,labelWrapper:N.itemLabelWrapper,label:N.itemLabel,inner:N.itemInner,body:N.itemBody},key:e.value,value:e.value},L&&e.value!==L&&{disabled:!0},{label:l.createElement(d.k,{gap:(0,s.h)(8),align:"center",justify:"center",sx:{zIndex:0}},"button"===b&&("string"==typeof e.icon?l.createElement("img",{src:e.icon,className:"gender-image",alt:"female",loading:"lazy"}):e.icon),l.createElement(h.T,Object.assign({size:"p3"},x),e.label))}))))))}},JYmh:function(e,t,a){a.d(t,{T:function(){return ThrForm}});var n=a("ySIk"),l=a("q1tI"),r=a("cChf"),i=a("ZFu2"),o=a("hslX"),s=a("ybaB"),c=a("2IpA"),d=a("58a8"),u=a("Emhi"),m=a("c29y"),h=a("agy7"),p=a("Ag88"),g=a("8uuc"),v=a("ADW8"),f=a("xrdX");let b=(0,l.createContext)({}),DefaultForm=e=>{var t,a=(0,n._)(e,[]);let{t:r,locale:i}=(0,s.u)(),{isAdult:o,activeValueNote:c,linkTool:d,form:E,submitProps:y}=(0,l.useContext)(b),{classes:x={}}=(0,l.useContext)(g.C);return l.createElement(v.H,Object.assign({formLayout:"default"},a),l.createElement(v.H.FormRow,null,l.createElement(u.G,Object.assign({},E.getInputProps("gender")))),l.createElement(v.H.FormRow,null,l.createElement(h.D,Object.assign({},E.getInputProps("age"),{placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},label:l.createElement(p.T,{size:"p2",weight:"semiBold"},r("targetHeartRate.ageInput")),maxDate:new Date}))),l.createElement(v.H.FormRow,null,l.createElement(m.I.Number,Object.assign({label:l.createElement(p.T,{size:"p2",weight:"semiBold"},r("targetHeartRate.heartRateInput")),placeholder:r("tools.inputPlaceholder",{content:"60"})},E.getInputProps("heartRate"),{min:40,max:200,styles:()=>({rightSection:{width:"auto"}})}))),o&&l.createElement(v.H.FormRow,null,l.createElement(m.S,Object.assign({label:l.createElement(p.T,{size:"p2",weight:"semiBold"},r("targetHeartRate.selectActive")),defaultValue:null===(t=null==c?void 0:c[0])||void 0===t?void 0:t.value,data:c.map(e=>({value:e.value,label:e.label})),styles:{item:{whiteSpace:"nowrap",padding:"10px 12px",fontSize:"14px"}},withinPortal:!0},E.getInputProps("activeValue")))),l.createElement(v.H.FormRow,{className:x.submitWrapper},l.createElement(v.H.Submit,Object.assign({className:x.submitBtn,type:"submit",dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${f.v[i]}/${d}`},y),r("bmi.submit"))))},InlineForm=e=>{var t,a=(0,n._)(e,[]);let{t:r,locale:i}=(0,s.u)(),{isAdult:o,activeValueNote:c,linkTool:d,form:p,submitProps:E}=(0,l.useContext)(b),{classes:y={}}=(0,l.useContext)(g.C);return l.createElement(v.H,Object.assign({formLayout:"inline"},a),l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:r("tools.selectGender"),width:"none"},l.createElement(u.G,Object.assign({type:"radio",hideLabel:!0,error:null},p.getInputProps("gender")))),p.errors.gender&&l.createElement(v.H.Error,null,p.errors.gender)),l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:r("targetHeartRate.ageInput")},l.createElement(h.D,Object.assign({},p.getInputProps("age"),{placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},error:null,maxDate:new Date}))),p.errors.age&&l.createElement(v.H.Error,null,p.errors.age)),l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:r("targetHeartRate.heartRateInput")},l.createElement(m.I.Number,Object.assign({placeholder:r("tools.inputPlaceholder",{content:"60"})},p.getInputProps("heartRate"),{error:null,min:40,max:200,rightSection:l.createElement(v.H.Unit,null,"bmp"),styles:()=>({rightSection:{width:"auto"}})}))),p.errors.heartRate&&l.createElement(v.H.Error,null,p.errors.heartRate)),o&&l.createElement(v.H.FormRow,null,l.createElement(v.H.BorderInlineControl,{label:r("targetHeartRate.selectActive")},l.createElement(m.S,Object.assign({defaultValue:null===(t=null==c?void 0:c[0])||void 0===t?void 0:t.value,data:c.map(e=>({value:e.value,label:e.label})),styles:{item:{whiteSpace:"nowrap",padding:"10px 12px",fontSize:"14px"}},withinPortal:!0},p.getInputProps("activeValue"))))),l.createElement(v.H.FormRow,{className:y.submitWrapper},l.createElement(v.H.Submit,Object.assign({className:y.submitBtn,type:"submit",dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${f.v[i]}/${d}`},E),r("bmi.submit"))))},ThrForm=e=>{var{formLayout:t,onSubmit:a,onError:u,submitProps:m}=e,h=(0,n._)(e,["formLayout","onSubmit","onError","submitProps"]);let{t:p,locale:g}=(0,s.u)(),v=(0,l.useRef)(40),{getHealthToolLink:f}=(0,o.u)(g),E=(0,r.c)({initialValues:{heartRate:60,activeValue:"low_intensity"},validate:{gender:(0,i.U)(p("validation.error.requiredField")),age:(0,i.U)(p("validation.error.requiredField")),heartRate:e=>Number(e)>=v.current&&200>=Number(e)?null:p("tools.heartRateRangeErr",{min:v.current,max:200})}}),y=(0,l.useMemo)(()=>f(d.H.THR),[f]),[x,C]=(0,l.useState)(!1),w=[{idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40},{idAge:1,minAge:18,maxAge:25,rangeMale:49,rangeFemale:54},{idAge:2,minAge:25,maxAge:35,rangeMale:49,rangeFemale:54},{idAge:3,minAge:35,maxAge:45,rangeMale:50,rangeFemale:54},{idAge:4,minAge:45,maxAge:55,rangeMale:50,rangeFemale:54},{idAge:5,minAge:55,maxAge:65,rangeMale:51,rangeFemale:54},{idAge:6,minAge:65,maxAge:120,rangeMale:50,rangeFemale:54}],k=[{value:"low_intensity",label:p("targetHeartRate.lowIntensity.title"),image:c.C.getAssetPath("/low.svg"),imageActive:c.C.getAssetPath("/low-active.svg"),content:p("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:p("targetHeartRate.moderateIntensity.title"),image:c.C.getAssetPath("/moderate.svg"),imageActive:c.C.getAssetPath("/moderate-active.svg"),content:p("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:p("targetHeartRate.aerobicZone.title"),image:c.C.getAssetPath("/aerobic.svg"),imageActive:c.C.getAssetPath("/aerobic-active.svg"),content:p("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:p("targetHeartRate.vigorousIntensity.title"),image:c.C.getAssetPath("/vigorous.svg"),imageActive:c.C.getAssetPath("/vigorous-active.svg"),content:p("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:p("targetHeartRate.maximumIntensity.title"),image:c.C.getAssetPath("/maximum.svg"),imageActive:c.C.getAssetPath("/maximum-active.svg"),content:p("targetHeartRate.maximumIntensity.note")}];(0,l.useEffect)(()=>{let e=E.getInputProps("age").value,t=E.getInputProps("gender").value;if(e instanceof Date){let a=(new Date().getTime()-e.getTime())/1e3;a>=567648e3?C(!0):C(!1);let n=w.find(e=>a>=31536e3*e.minAge&&a<31536e3*e.maxAge)||w[0];v.current="male"===t?n.rangeMale:n.rangeFemale}},[E]);let S=Object.assign(Object.assign({},h),{onSubmit:E.onSubmit(a,u)});return l.createElement(b.Provider,{value:{isAdult:x,activeValueNote:k,linkTool:y,form:E,submitProps:m}},"inline"===t?l.createElement(InlineForm,Object.assign({},S)):l.createElement(DefaultForm,Object.assign({},S)))}},cZz9:function(e,t,a){a.d(t,{A:function(){return ArrowRightBlue},C:function(){return Clinic},D:function(){return DoctorExpertiseItem},I:function(){return InsuranceList},P:function(){return PaymentList},a:function(){return DoctorInfoExpertise}});var n=a("q1tI"),l=a("rBCA"),r=a("iBNF"),i=a("2JFq"),o=a("xXM3"),s=a.n(o),c=a("/MN3"),d=a("Ag88");let ArrowRightBlue=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"none"},e),n.createElement("path",{d:"M1 9L5 5L1 1",stroke:"#2D87F3",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round"})),Clinic=e=>n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),n.createElement("path",{d:"M4.89646 16.9996H2.96549C2.43225 16.9996 2 16.5674 2 16.0341V12.6549C2 12.1217 2.43225 11.6895 2.96549 11.6895H4.89646",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.0342 11.6895H16.9652C17.4984 11.6895 17.9306 12.1217 17.9306 12.6549V16.0341C17.9306 16.5674 17.4984 16.9996 16.9652 16.9996H15.0342",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M5.86197 3H14.0686C14.6015 3 15.0341 3.43263 15.0341 3.96549V16.9995H4.89648V3.96549C4.89648 3.43263 5.32912 3 5.86197 3Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.172 13.6206H8.7583V16.9998H11.172V13.6206Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M9.96533 9.99996V5.65527",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.1377 7.82764H7.79297",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),u=l.Z.ul` display: grid; grid-gap: 16px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); list-style: none; `,m=l.Z.li` p { margin-top: 8px; text-align: center; } .insuranceLogo { display: grid; height: 58px; border: 1px solid ${r.r.colors.neutral200}; border-radius: 6px; place-content: center; > img { width: 93px; height: 43px; object-fit: contain; } } `,InsuranceList=({insurances:e,className:t,isName:a=!0})=>e.length?n.createElement(u,{id:"insurance-list",className:t},e.map(e=>n.createElement(m,{className:"insuranceItem",key:e.id},n.createElement("div",{className:"insuranceLogo"},n.createElement("img",{src:e.logo,alt:e.name||"insurance-logo"})),a&&n.createElement(i.T,{size:"base",color:r.r.colors.gray500,type:"bold"},e.name)))):null,h=l.Z.div` display: flex; flex-wrap: wrap; gap: 7px; &.paymentList { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); justify-content: center; } `,p=l.Z.div` border: 1px solid ${r.r.colors.neutral100}; border-radius: 12px; width: 80px; min-height: 80px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; &.payment-item-mobile { width: 100%; } .logo { position: relative; width: 55px; aspect-ratio: 55 / 32; object-fit: contain; } .txt-caption-1 { font-size: 0.6875rem; line-height: 1rem; color: ${r.r.colors.gray800}; } `,PaymentList=({payments:e,className:t,isName:a=!0,isMobile:l=!1})=>e.length?n.createElement(h,{id:"payment-container",className:s()(t,{paymentList:l&&e.length>=4})},e.map(t=>n.createElement(p,{className:s()("payment-item",{"payment-item-mobile":l&&e.length>=4}),key:t.id},n.createElement(c.I,{className:"logo",src:t.logo,alt:t.name}),a&&n.createElement("div",{className:"txt-caption-1"},t.name)))):null,g=l.Z.div` display: flex; gap: 8px; .icon { width: 1.25rem; height: 1.25rem; color: ${r.r.colors.gray400}; flex-shrink: 0; } .doctor-info-item-content { display: flex; flex-direction: column; gap: 10px; } `;(0,l.Z)(Clinic)` width: 1.25rem; height: 1.25rem; `;let v=l.Z.div` display: flex; flex-direction: column; gap: 4px; `,DoctorExpertiseItem=e=>{let{doctorInfo:t,Icon:a,title:l}=e;return n.createElement(g,null,n.createElement(a,{className:"icon"}),n.createElement(v,null,n.createElement(d.T,{size:"p3",weight:"semiBold",color:"#111111"},l),n.createElement("div",{className:"doctor-info-item-content"},(Array.isArray(t)?t:[t]).map(e=>n.createElement(d.T,{size:"p3",weight:"regular",key:e},e)))))},f=l.Z.div` display: flex; padding: 1rem; width: 100%; justify-content: space-between; `,b=l.Z.div` display: flex; flex-direction: column; gap: 2px; `,DoctorInfoExpertise=e=>{let{name:t,specialty:a,experience:l,profileImage:r}=e;return n.createElement(f,null,n.createElement(b,null,n.createElement(d.T,{size:"title2",weight:"semiBold",color:"#111111"},t),n.createElement("div",null,a&&n.createElement(d.T,{size:"c1",weight:"regular"},a),l&&n.createElement(d.T,{size:"c1",weight:"regular"},l))),n.createElement(c.I,{src:r,alt:t,style:{width:"4.5rem",height:"4.5rem",borderRadius:"50%",objectFit:"cover",flexShrink:0}}))}},vHtu:function(e,t,a){a.d(t,{M:function(){return Modal}});var n=a("ySIk"),l=a("q1tI"),r=a("h8tX"),i=a("8CVL");let Modal=e=>{var{styles:t,classNames:a,transitionProps:o}=e,s=(0,n._)(e,["styles","classNames","transitionProps"]);let{classes:c}=(0,i.u)(void 0,{name:"Modal",styles:t,classNames:a});return l.createElement(r.u,Object.assign({centered:!0,classNames:c,transitionProps:Object.assign({transition:"fade"},o),trapFocus:!1},s))}},yQSt:function(e,t,a){a.d(t,{C:function(){return r},F:function(){return i},G:function(){return GlobalTextStyleNew},T:function(){return TemplateProvider},a:function(){return c},u:function(){return useTemplateVariant}});var n,l,r,i,o=a("mYVa"),s=a("q1tI");(n=r||(r={})).LEADGEN="leadgen",n.NONE="none",(l=i||(i={}))[l.regular=400]="regular",l[l.halfBold=500]="halfBold",l[l.semiBold=600]="semiBold",l[l.bold=700]="bold";let c={[r.NONE]:{fontSize:{base:[(0,o.h)(16),(0,o.h)(16)],lg:[(0,o.h)(18),(0,o.h)(16)],md:[(0,o.h)(18),(0,o.h)(16)],sm:[(0,o.h)(16),(0,o.h)(14)],xs:[(0,o.h)(14),(0,o.h)(12)],s1:[(0,o.h)(22),(0,o.h)(18)],s2:[(0,o.h)(18),(0,o.h)(16)],s3:[(0,o.h)(16),(0,o.h)(14)],s4:[(0,o.h)(14),(0,o.h)(12)],s5:[(0,o.h)(12),(0,o.h)(12)],p1:[(0,o.h)(18),(0,o.h)(16)],p2:[(0,o.h)(16),(0,o.h)(16)],p3:[(0,o.h)(16),(0,o.h)(14)],p4:[(0,o.h)(14),(0,o.h)(12)],p5:[(0,o.h)(12),(0,o.h)(12)],c1:[(0,o.h)(16),(0,o.h)(14)],c2:[(0,o.h)(14),(0,o.h)(12)],n1:[(0,o.h)(12),(0,o.h)(12)],label1:[(0,o.h)(14),(0,o.h)(14)],label2:[(0,o.h)(12),(0,o.h)(12)],h1:[(0,o.h)(40),(0,o.h)(26)],h2:[(0,o.h)(32),(0,o.h)(24)],h3:[(0,o.h)(26),(0,o.h)(20)],h4:[(0,o.h)(22),(0,o.h)(18)],h5:[(0,o.h)(18),(0,o.h)(16)],h6:[(0,o.h)(16),(0,o.h)(14)],title1:[(0,o.h)(17),(0,o.h)(17)],title2:[(0,o.h)(15),(0,o.h)(15)]},lineHeight:{base:[(0,o.h)(24),(0,o.h)(24)],lg:[(0,o.h)(32),(0,o.h)(28)],md:[(0,o.h)(32),(0,o.h)(28)],sm:[(0,o.h)(24),(0,o.h)(22)],xs:[(0,o.h)(24),(0,o.h)(18)],s1:[(0,o.h)(32),(0,o.h)(26)],s2:[(0,o.h)(28),(0,o.h)(24)],s3:[(0,o.h)(24),(0,o.h)(24)],s4:[(0,o.h)(22),(0,o.h)(18)],s5:[(0,o.h)(18),(0,o.h)(18)],p1:[(0,o.h)(28),(0,o.h)(28)],p2:[(0,o.h)(24),(0,o.h)(24)],p3:[(0,o.h)(24),(0,o.h)(22)],p4:[(0,o.h)(22),(0,o.h)(18)],c1:[(0,o.h)(24),(0,o.h)(22)],c2:[(0,o.h)(22),(0,o.h)(18)],n1:[(0,o.h)(18),(0,o.h)(18)],label1:[(0,o.h)(22),(0,o.h)(22)],label2:[(0,o.h)(18),(0,o.h)(18)],h1:[(0,o.h)(52),(0,o.h)(34)],h2:[(0,o.h)(42),(0,o.h)(32)],h3:[(0,o.h)(36),(0,o.h)(26)],h4:[(0,o.h)(32),(0,o.h)(26)],h5:[(0,o.h)(28),(0,o.h)(24)],h6:[(0,o.h)(24),(0,o.h)(22)],title1:[(0,o.h)(24),(0,o.h)(24)],title2:[(0,o.h)(24),(0,o.h)(24)]},letterSpacing:{lg:[-.2,0],md:[-.2,0],sm:[0,-.2],s1:[-.6,-.6],s2:[-.4,-.2],s3:[0,-.2],s4:[0,-.2],p1:[-.2,-.2],p2:[0,-.2],p3:[0,-.2],p4:[-.2,0],label1:[0,-.2],h1:[-1.2,-.9],h2:[-1,-.8],h3:[-.8,-.7],h4:[-.6,-.6],h5:[-.2,-.2],h6:[0,-.2],title1:[-.4,-.4],title2:[-.3,-.3]},fontWeightBySize:{s1:i.semiBold,s2:i.semiBold,s3:i.semiBold,s4:i.semiBold,h1:i.bold,h2:i.bold,h3:i.bold,h4:i.bold,h5:i.bold,h6:i.bold},fontWeight:i},[r.LEADGEN]:{fontSize:{base:[(0,o.h)(16),(0,o.h)(16)],lg:[(0,o.h)(18),(0,o.h)(16)],md:[(0,o.h)(18),(0,o.h)(16)],sm:[(0,o.h)(16),(0,o.h)(14)],xs:[(0,o.h)(14),(0,o.h)(12)],s1:[(0,o.h)(22),(0,o.h)(18)],s2:[(0,o.h)(18),(0,o.h)(16)],s3:[(0,o.h)(16),(0,o.h)(14)],s4:[(0,o.h)(14),(0,o.h)(12)],s5:[(0,o.h)(12),(0,o.h)(12)],p1:[(0,o.h)(17),(0,o.h)(17)],p2:[(0,o.h)(15),(0,o.h)(15)],p3:[(0,o.h)(13),(0,o.h)(13)],p4:[(0,o.h)(14),(0,o.h)(12)],p5:[(0,o.h)(12),(0,o.h)(12)],c1:[(0,o.h)(12),(0,o.h)(12)],c2:[(0,o.h)(11),(0,o.h)(11)],n1:[(0,o.h)(12),(0,o.h)(12)],label1:[(0,o.h)(14),(0,o.h)(14)],label2:[(0,o.h)(12),(0,o.h)(12)],h1:[(0,o.h)(40),(0,o.h)(26)],h2:[(0,o.h)(32),(0,o.h)(24)],h3:[(0,o.h)(26),(0,o.h)(22)],h4:[(0,o.h)(22),(0,o.h)(20)],h5:[(0,o.h)(18),(0,o.h)(16)],h6:[(0,o.h)(16),(0,o.h)(14)],title1:[(0,o.h)(17),(0,o.h)(17)],title2:[(0,o.h)(15),(0,o.h)(15)],overline:[(0,o.h)(11),(0,o.h)(11)],subText:[(0,o.h)(10),(0,o.h)(10)]},lineHeight:{base:[(0,o.h)(24),(0,o.h)(24)],lg:[(0,o.h)(32),(0,o.h)(28)],md:[(0,o.h)(32),(0,o.h)(28)],sm:[(0,o.h)(24),(0,o.h)(22)],xs:[(0,o.h)(24),(0,o.h)(18)],s1:[(0,o.h)(32),(0,o.h)(26)],s2:[(0,o.h)(28),(0,o.h)(24)],s3:[(0,o.h)(24),(0,o.h)(24)],s4:[(0,o.h)(22),(0,o.h)(18)],s5:[(0,o.h)(18),(0,o.h)(18)],p1:[(0,o.h)(28),(0,o.h)(28)],p2:[(0,o.h)(24),(0,o.h)(24)],p3:[(0,o.h)(20),(0,o.h)(20)],p4:[(0,o.h)(22),(0,o.h)(18)],c1:[(0,o.h)(16),(0,o.h)(16)],c2:[(0,o.h)(22),(0,o.h)(18)],n1:[(0,o.h)(18),(0,o.h)(18)],label1:[(0,o.h)(22),(0,o.h)(22)],label2:[(0,o.h)(18),(0,o.h)(18)],h1:[(0,o.h)(48),(0,o.h)(34)],h2:[(0,o.h)(40),(0,o.h)(32)],h3:[(0,o.h)(32),(0,o.h)(32)],h4:[(0,o.h)(32),(0,o.h)(28)],h5:[(0,o.h)(28),(0,o.h)(24)],h6:[(0,o.h)(24),(0,o.h)(22)],title1:[(0,o.h)(24),(0,o.h)(24)],title2:[(0,o.h)(24),(0,o.h)(24)],overline:[(0,o.h)(12),(0,o.h)(12)],subText:[(0,o.h)(12),(0,o.h)(12)]},letterSpacing:{lg:[-.2,0],md:[-.2,0],sm:[0,-.2],s1:[-.6,-.6],s2:[-.4,-.2],s3:[0,-.2],s4:[0,-.2],p1:[-.4,-.4],p2:[-.3,-.3],p3:[-.3,-.3],p4:[-.2,0],c1:[-.2,-.2],c2:[-.2,-.2],label1:[0,-.2],h1:[-1.2,-.9],h2:[-1,-.8],h3:[-.6,-.6],h4:[-.6,-.4],h5:[-.2,-.2],h6:[0,-.2],n1:[-.2,-.2],title1:[-.4,-.4],title2:[-.3,-.3],overline:[-.2,-.2],subText:[-.2,-.2]},fontWeightBySize:{s1:i.semiBold,s2:i.semiBold,s3:i.semiBold,s4:i.semiBold,h1:i.bold,h2:i.bold,h3:i.bold,h4:i.bold,h5:i.bold,h6:i.bold},fontWeight:i}},GlobalTextStyleNew=e=>({[r.LEADGEN]:{h1:{fontSize:(0,o.h)(40),lineHeight:(0,o.h)(48),letterSpacing:"-1.2px",[e.fn.smallerThan("sm")]:{fontSize:(0,o.h)(26),lineHeight:(0,o.h)(32),letterSpacing:"-0.6px"}},h2:{fontSize:(0,o.h)(32),lineHeight:(0,o.h)(40),letterSpacing:"-1px",[e.fn.smallerThan("sm")]:{fontSize:(0,o.h)(20),lineHeight:(0,o.h)(28),letterSpacing:"-0.4px"}},h3:{fontSize:(0,o.h)(26),lineHeight:(0,o.h)(32),letterSpacing:"-0.6px",[e.fn.smallerThan("sm")]:{fontSize:(0,o.h)(20),lineHeight:(0,o.h)(28),letterSpacing:"-0.4px"}},p1:{fontSize:(0,o.h)(17),lineHeight:(0,o.h)(28),letterSpacing:"-0.4px"},p2:{fontSize:(0,o.h)(15),lineHeight:(0,o.h)(24),letterSpacing:"-0.3px"}}}),d=(0,s.createContext)(r.NONE),TemplateProvider=({variant:e=r.NONE,children:t})=>s.createElement(d.Provider,{value:e},t),useTemplateVariant=()=>(0,s.useContext)(d)},EmQz:function(e,t,a){a.d(t,{S:function(){return SocialLinkPreview}});var n=a("ySIk"),l=a("q1tI"),r=a("Eso5"),i=a("8vDj"),o=a("/MN3"),s=a("q/st"),c=a("rBCA"),d=a("IQVP"),u=a("58a8"),m=a("HM0t"),h=a("iBpR");let p=c.Z.div` .link-info-container { padding: 0.5rem 1rem; background: ${e=>e.color||"#f4faff"}; } .link-image-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; &.fetching { background: lightgray; } .loading-spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .link-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; } } a { text-decoration: none; } &[data-is-marrybaby='true'] { overflow: hidden; border-radius: 1rem; } `,useExternalScript=({url:e,onLoad:t,onError:a})=>{let[n,r]=(0,l.useState)(e?"loading":"idle");return(0,l.useEffect)(()=>{if(!e){r("idle");return}let n=document.querySelector(`script[src="${e}"]`),handleLoadScript=()=>{r("ready"),null==t||t()},handleErrorScript=()=>{r("error"),null==a||a()};return n||((n=document.createElement("script")).type="application/javascript",n.src=e,n.async=!0,document.body.appendChild(n),n.addEventListener("load",handleLoadScript),n.addEventListener("error",handleErrorScript)),n.addEventListener("load",handleLoadScript),n.addEventListener("error",handleErrorScript),()=>{n.removeEventListener("load",handleLoadScript),n.removeEventListener("error",handleErrorScript)}},[e]),n},YoutubePlyr=({id:e,autoplay:t})=>{let a=(0,l.useRef)(null),n=useExternalScript({url:"https://cdn.plyr.io/3.7.8/plyr.js"});return(0,l.useEffect)(()=>{if(!document.getElementById("hhg-plyr-player")){let e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.href="https://cdn.plyr.io/3.7.8/plyr.css",e.id="hhg-plyr-player",document.head.appendChild(e)}("ready"===n||"undefined"!=typeof Plyr)&&new Plyr(a.current.querySelector('[data-id="player"]'),{autoplay:t,muted:!0})},[n]),l.createElement(l.Fragment,null,l.createElement(r.x,{ref:a,sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"#000","&, > div":{width:"100%",height:"100%"}}},l.createElement("div",{"data-id":"player"},l.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${e}?&mute=1&enablejsapi=1&rel=0`,allowFullScreen:!0,frameBorder:"0"}))))},SocialLinkPreview=({url:e,image:t,className:a,style:r,baseUrl:c="",autoPlay:g=!0,onPushStatus:v})=>{let{data:{locale:f}}=(0,l.useContext)(s.T),[b,E]=(0,l.useState)(null);(0,l.useEffect)(()=>{(0,n.a)(void 0,void 0,void 0,function*(){if(!t){if(!e)return E(null);E(e=>Object.assign(Object.assign({},e),{isFetching:!0})),(0,s.c)((0,s.e)(d.yy.FETCH_PREVIEW,{_locale:f},void 0,c),"POST",{data:{link:e},headers:{"Content-Type":"application/json"}},!!c).then(t=>{var a,n;E({url:e,image:(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.image)||(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.logo)})}).catch(()=>{E(null)})}})},[e,t]);let y=t||(null==b?void 0:b.image),x=(null==b?void 0:b.url)||e,C=(0,l.useMemo)(()=>(0,m.y)(x),[x]),w=(0,l.useMemo)(()=>x.includes("facebook.com")||x.includes("fb.watch"),[x]),k=(0,l.useRef)(0),S=(0,l.useRef)(0),[A,N]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let handleResize=()=>{var e;let t=null===(e=P.current)||void 0===e?void 0:e.getBoundingClientRect(),a=!1;t&&(!k.current||Math.abs((k.current-t.width)/(null==t?void 0:t.width))>.2)&&(k.current=Math.floor(t.width),a=!0),t&&(!S.current||Math.abs((S.current-t.height)/(null==t?void 0:t.height))>.2)&&(S.current=Math.floor(t.height),a=!0),a&&N(e=>!e)};return handleResize(),window.addEventListener("resize",handleResize,{passive:!0}),()=>{window.removeEventListener("resize",handleResize)}},[]),(0,l.useEffect)(()=>{(null==b?void 0:b.image)&&(null==b?void 0:b.url)&&(null==v||v(!0))},[b]);let P=(0,l.useRef)(null),T=(0,i.rZ)();return l.createElement(p,{className:`${a} no-replace-click`,style:r,ref:P,color:T.colors[T.primaryColor][0]},!t&&(C||w)?l.createElement("div",{className:"link-image-wrapper"},C?l.createElement(YoutubePlyr,{id:C,autoplay:g}):w?l.createElement("iframe",{key:String(A),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(x)}&autoplay=${g?1:0}&show_text=false&t=0&width=${k.current}&height=${S.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:S.current,width:k.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null):l.createElement("a",{href:x,target:"_blank",rel:"noreferrer"},l.createElement("div",{className:`link-image-wrapper ${(null==b?void 0:b.isFetching)?"fetching":""}`},(null==b?void 0:b.isFetching)?l.createElement(h.L,{className:"loading-spinner"}):l.createElement(o.I,{className:"link-image",src:y||u.D,backupSrc:u.D,alt:x}))))}},ypn8:function(e,t,a){a.d(t,{M:function(){return f},N:function(){return NotificationsHandler},a:function(){return getHeadingStyles},g:function(){return getMantineThemeOverride},s:function(){return showNotification},t:function(){return S},u:function(){return useMantineLocale}});var n=a("ySIk"),l=a("q1tI"),r=a("Wgwc"),i=a.n(r),o=a("rqZo"),s=a("INKa"),c=a("0Woy"),d=a("KhOF"),u=a("mYVa"),m=a("2IpA"),h=a("iBNF"),p=a("SPEo"),g=a("yQSt"),v=a("qQOG");let f={[o.L.Vietnam]:"vi",[o.L.Cambodia]:"km",[o.L.India]:"hi",[o.L.Indonesia]:"id",[o.L.Malaysia]:"ms",[o.L.Thailand]:"th",[o.L.Taiwan]:"zh-tw",[o.L.PhilippinesTagalog]:"tl-ph",[o.L.PhilippinesEnglish]:"en",[o.L.Myanmar]:"my",[o.L.Singapore]:"zh-cn"},b={[o.L.Vietnam]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"EdQk",23)),[o.L.Cambodia]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"9mFM",23)),[o.L.India]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"sjup",23)),[o.L.Indonesia]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"gydT",23)),[o.L.Malaysia]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"KjFU",23)),[o.L.Thailand]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"axPs",23)),[o.L.Taiwan]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"UIeI",23)),[o.L.Singapore]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"pHGr",23)),[o.L.PhilippinesTagalog]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"BmsB",23)),[o.L.PhilippinesEnglish]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"njAx",23)),[o.L.Myanmar]:()=>Promise.all([a.e(2138),a.e(9467),a.e(4467),a.e(6966),a.e(5243),a.e(8132),a.e(1375),a.e(4561),a.e(1448),a.e(5465),a.e(1217),a.e(5480),a.e(731),a.e(2050),a.e(2008),a.e(8469),a.e(8214),a.e(1482),a.e(6817),a.e(467),a.e(5951),a.e(9357),a.e(747),a.e(5675),a.e(6753),a.e(4802),a.e(3046),a.e(5745),a.e(3437),a.e(252),a.e(6839),a.e(9424),a.e(5702),a.e(8922),a.e(6399),a.e(553),a.e(2902),a.e(4969),a.e(3257),a.e(6611),a.e(7538),a.e(6894),a.e(5341)]).then(a.t.bind(a,"5EMu",23))},useMantineLocale=e=>{let[t,a]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{(0,n.a)(void 0,void 0,void 0,function*(){var t;a(!1),yield null===(t=b[e])||void 0===t?void 0:t.call(b),i().locale(f[e]),a(!0)})},[e]),{isLoaded:t}},GlobalButtonStyle=()=>({Button:{defaultProps:{variant:"primary",size:"md"}}}),E={[g.C.NONE]:{hb:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],mb:["#FFE9F1","#F8CCDC","#F5B4CB","#F29CBA","#EE84AA","#EB6B99","#E85388","#D34C7C","#BE446F","#A93D63"],blue:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],gray:["#fafafa","#f2f2f2","#d9d9d9","#bfbfbf","#8c8c8c","#737373","#595959","#404040","#262626","#1a1a1a"],delftGray:["#F3F3F3","#EAEAEC","#D9DAE2","#B9BAC8","#9898A9","#7C7C8F","#5A5A72","#3E3F58","#202135","#0C0C12"],neutral:["#f7f9fc","#e4e8ec","#d2d6dc","#bfc5cc","#adb3bc","#9aa2ac","#87909c","#757f8c","#626d7c","#545E6C"],green:["#e0f8ee","#b3eed5","#7ce2b9","#2ed69e","#00CB8A","#00C076","#00B16A","#009E5C","#008C50","#006C39"],pink:["#fff1f6","#ffdce9","#fec7dc","#feb2cf","#fe9dc2","#fd87b4","#fd72a7","#fc5d9a","#fc488d","#e92d74"],violet:["#F5EDFF","#E7D2F7","#D8B7F0","#CA9CE8","#BB82E1","#AD67D9","#9E4CD1","#9031CA","#8116C2","#63059D"],yellow:["#fff8e2","#ffecb6","#ffe187","#ffd658","#ffcb37","#ffc326","#ffb521","#fea21e","#fe921d","#fc7419"],teal:["#e0f7fc","#b1ebf8","#7ddff3","#44d1ec","#00c7e6","#00bee0","#00aecd","#0099b2","#008599","#00626c"],indigol:["#CEDDF0","#ACC5E6","#95B3DA","#85A6CF","#6D91BE","#5F85B5","#4C77AC","#35639C","#284A75","#1B3250"],red:["#fae9e8","#feccbf","#FEAA96","#f44d2c","#ff6f4d","#ff5331","#f44d2c","#e64728","#d84023","#bf331b"],redViolet:["#F3EAEB","#E8D5D7","#DDC1C4","#D1ACB0","#C5979C","#BA8288","#AF6D74","#A35961","#97444D","#8C2F39"]},[g.C.LEADGEN]:{hb:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],mb:["#FFE9F1","#F8CCDC","#F5B4CB","#F29CBA","#EE84AA","#EB6B99","#E85388","#D34C7C","#BE446F","#A93D63"],blue:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],gray:["#fafafa","#f2f2f2","#d9d9d9","#bfbfbf","#8c8c8c","#737373","#595959","#404040","#262626","#111111"],delftGray:["#F3F3F3","#EAEAEC","#D9DAE2","#B9BAC8","#9898A9","#7C7C8F","#5A5A72","#3E3F58","#202135","#0C0C12"],neutral:["#f7f9fc","#e4e8ec","#d2d6dc","#bfc5cc","#adb3bc","#9aa2ac","#87909c","#757f8c","#626d7c","#545E6C"],green:["#e0f8ee","#b3eed5","#7ce2b9","#2ed69e","#00CB8A","#00C076","#00B16A","#009E5C","#008C50","#006C39"],pink:["#fff1f6","#ffdce9","#fec7dc","#feb2cf","#fe9dc2","#fd87b4","#fd72a7","#fc5d9a","#fc488d","#e92d74"],violet:["#F5EDFF","#E7D2F7","#D8B7F0","#CA9CE8","#BB82E1","#AD67D9","#9E4CD1","#9031CA","#8116C2","#63059D"],yellow:["#fff8e2","#ffecb6","#ffe187","#ffd658","#ffcb37","#ffc326","#ffb521","#fea21e","#fe921d","#fc7419"],teal:["#e0f7fc","#b1ebf8","#7ddff3","#44d1ec","#00c7e6","#00bee0","#00aecd","#0099b2","#008599","#00626c"],indigol:["#CEDDF0","#ACC5E6","#95B3DA","#85A6CF","#6D91BE","#5F85B5","#4C77AC","#35639C","#284A75","#1B3250"],red:["#fae9e8","#feccbf","#FEAA96","#f44d2c","#ff6f4d","#ff5331","#f44d2c","#e64728","#d84023","#bf331b"],redViolet:["#F3EAEB","#E8D5D7","#DDC1C4","#D1ACB0","#C5979C","#BA8288","#AF6D74","#A35961","#97444D","#8C2F39"]}};function NotificationsHandler(){return l.createElement(s.T,{position:"top-right",zIndex:d.Z+5,autoClose:5e3})}let y={success:"green",danger:"red",warning:"yellow",info:"blue",firebase:"gray"},x={success:l.createElement(()=>l.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M10 18.333a8.333 8.333 0 1 0 0-16.666 8.333 8.333 0 0 0 0 16.666",fill:"#00B16A"}),l.createElement("path",{d:"m13.833 7.5-5.5 5-2.5-2.273",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),null),danger:l.createElement(()=>l.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10",fill:"#262626"}),l.createElement("path",{d:"m14.829 9.172-5.657 5.656m-.001-5.656 5.657 5.656",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),null),warning:l.createElement(()=>l.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1.66666C5.4 1.66666 1.66667 5.39999 1.66667 9.99999C1.66667 14.6 5.4 18.3333 10 18.3333C14.6 18.3333 18.3333 14.6 18.3333 9.99999C18.3333 5.39999 14.6 1.66666 10 1.66666ZM10 10.8333C9.54167 10.8333 9.16667 10.4583 9.16667 9.99999V6.66666C9.16667 6.20832 9.54167 5.83332 10 5.83332C10.4583 5.83332 10.8333 6.20832 10.8333 6.66666V9.99999C10.8333 10.4583 10.4583 10.8333 10 10.8333ZM9.16667 12.5V14.1667H10.8333V12.5H9.16667Z",fill:"#FE921D"})),null),info:l.createElement(()=>l.createElement("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{d:"M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12",fill:"#2D87F3"}),l.createElement("path",{d:"M8 11V8m0-3h.01",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),null),firebase:""},showNotification=e=>{var{type:t,title:a}=e,r=(0,n._)(e,["type","title"]);let i=x[t];c.N9.show(Object.assign(Object.assign({title:l.createElement("b",null,a),icon:i,withCloseButton:!0,closeButtonProps:{label:"Close alert"}},r),{styles:e=>{let a=y[t]||"blue";return{root:{backgroundColor:e.colors[a][0],borderColor:e.colors[a][0],"&::before":{backgroundColor:e.white}},title:{color:e.colors[a][8]},description:{color:e.black},closeButton:{color:e.black,"&:hover":{backgroundColor:e.colors[a][0]}},icon:{backgroundColor:"transparent",padding:0}}}}))},C={Container:{defaultProps:{sizes:{lg:(0,u.em)(p.S.LG)}}}},w={none:{default:[{size:"40px",lineHeight:"52px",letterSpacing:"-1.2px"},{size:"32px",lineHeight:"42px",letterSpacing:"-1px"},{size:"26px",lineHeight:"36px",letterSpacing:"-0.8px"},{size:"22px",lineHeight:"32px",letterSpacing:"-0.6px"},{size:"18px",lineHeight:"28px",letterSpacing:"-0.2px"},{size:"16px",lineHeight:"24px",letterSpacing:0}],mbDown:[{size:"26px",lineHeight:"34px",letterSpacing:"-0.9px"},{size:"24px",lineHeight:"32px",letterSpacing:"-0.8px"},{size:"20px",lineHeight:"26px",letterSpacing:"-0.7px"},{size:"18px",lineHeight:"26px",letterSpacing:"-0.6px"},{size:"16px",lineHeight:"24px",letterSpacing:"-0.2px"},{size:"14px",lineHeight:"22px",letterSpacing:"-0.2px"}]},leadgen:{default:[{size:"40px",lineHeight:"48px",letterSpacing:"-1.2px"},{size:"32px",lineHeight:"40px",letterSpacing:"-1px"},{size:"26px",lineHeight:"32px",letterSpacing:"-0.6px"},{size:"20px",lineHeight:"28px",letterSpacing:"-0.4px"},{size:"17px",lineHeight:"24px",letterSpacing:"-0.4px"},{size:"15px",lineHeight:"24px",letterSpacing:"-0.3px"}],mbDown:[{size:"26px",lineHeight:"34px",letterSpacing:"-0.9px"},{size:"24px",lineHeight:"32px",letterSpacing:"-0.8px"},{size:"20px",lineHeight:"26px",letterSpacing:"-0.7px"},{size:"18px",lineHeight:"26px",letterSpacing:"-0.6px"},{size:"16px",lineHeight:"24px",letterSpacing:"-0.2px"},{size:"14px",lineHeight:"22px",letterSpacing:"-0.2px"}]}},getHeadingStyles=e=>{let{version:t=g.C.NONE,mbDown:a}=e||{},n=w[t]||{};return Object.fromEntries((n[a?"mbDown":"default"]||[]).map((e,t)=>[`h${t+1}`,{fontSize:e.size,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing}]))},GlobalHeadingStyle=(e=g.C.NONE)=>({Title:{styles:{root:Object.assign(Object.assign({fontWeight:g.F.bold},getHeadingStyles({version:e})),{[`&${p.M.mbDown}`]:Object.assign({},getHeadingStyles({version:e,mbDown:!0}))})}}}),GlobalInputStyle=e=>{var t;return{InputWrapper:{styles:{label:{display:"inline-flex",gap:4,marginBottom:"0.25rem",fontWeight:600,fontSize:(0,u.h)(14),lineHeight:"22px",color:h.r.colors.gray600},description:{fontWeight:400,fontSize:"12px",lineHeight:"18px",color:h.r.colors.gray600,marginBottom:"0.25rem"},error:{marginTop:"0.25rem"}}},NumberInput:{defaultProps:{decimalSeparator:null===(t=d.I[e])||void 0===t?void 0:t.separator}},Input:{styles:(e,t,{size:a})=>({input:{border:`1px solid ${h.r.colors.gray200}`,transition:`all ${v.A} ease-in-out`,"&:not(.mantine-Textarea-input)":Object.assign({},(()=>{switch(a){case"lg":return{height:48,minHeight:"unset",fontSize:16,lineHeight:"24px"};case"md":return{height:40,minHeight:"unset",fontSize:(0,u.h)(14),lineHeight:"22px"};case"sm":return{height:32,minHeight:"unset",fontSize:(0,u.h)(14),lineHeight:"22px"}}})()),"&:hover":{border:`1px solid ${e.primaryColor}`},"&:focus":{boxShadow:`0px 0px 0px 2px ${e.colors[e.primaryColor][2]}`}},'&[data-invalid="true"]':{border:`1px solid ${h.r.colors.red600}`,color:"#000"}})}}},k={Radio:{defaultProps:{size:"sm",color:"blue.6"},styles:{radio:{backgroundColor:"transparent","&:checked":{backgroundColor:"transparent"}}}}},S=E[g.C.NONE],getMantineThemeOverride=(e,t="hb",a)=>{var n;return{defaultRadius:"hb"===t?8:16,cursorType:"pointer",colors:Object.assign(Object.assign(Object.assign({},null!==(n=E[a])&&void 0!==n?n:E[g.C.NONE]),h.r.colors),{toneYellow:"#fff9eb",toneGreen:"#f2fcf7",toneBlue:"#e0e9fb",tonePink:"#ffeaf1"}),primaryColor:t,primaryShade:6,fontFamily:(e===o.L.Cambodia?"Battambang":e===o.L.Thailand?"Noto Sans Thai":"Inter")+", -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",breakpoints:{xs:(0,u.em)(p.B.BREAK_POINT_SMALL_MOBILE),sm:(0,u.em)(p.B.BREAK_POINT_MOBILE),md:(0,u.em)(p.B.BREAK_POINT_TABLET),lg:(0,u.em)(p.B.BREAK_POINT_PC),xl:(0,u.em)(p.B.BREAK_POINT_LGPC)},components:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},GlobalInputStyle(e)),k),GlobalButtonStyle()),GlobalHeadingStyle(a)),C),other:{template:t,customStyleType:a,defaultImage:m.C.getAssetPath("mb"===t?"default-image-mb.jpg":"default-image.jpg")}}}},FbtI:function(e,t,a){a.d(t,{T:function(){return TextDivider}});var n=a("q1tI"),l=a("rBCA"),r=a("TXjF"),i=a("Ag88");let o=l.Z.div` background-color: var(--neutral50); padding: 12px 0; box-shadow: inset 0px 1px 0px #e4e8ec; > * { display: grid; grid-template-columns: 32px 1fr; align-content: center; p { font-weight: 600; } } .icon-wrapper { display: flex; align-items: center; } `,TextDivider=({children:e,icon:t,className:a,style:l})=>n.createElement(o,{style:l,className:a},n.createElement(r.C,null,n.createElement("div",{className:"icon-wrapper"},t),n.createElement(i.T,{size:"c1",color:"var(--neutral800)"},e)))}}]);