(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[640],{LOY9:function(e,t,a){"use strict";a.d(t,{v:function(){return r}});var n=a("g0uo");let r=(0,n.MI)(e=>{var t,a,n,r,o,i,l,s,d,c;return e?{id:e.poll_id,question:e.settings.question||"",description:e.settings.description||"",options:((null===(t=e.results)||void 0===t?void 0:t.options)||[]).map(e=>{var t;return{id:String(null!==(t=e.id)&&void 0!==t?t:""),text:e.text||"",percentage:e.percentage||0}}),ui:{displayType:"flip-card"===e.settings.style?"flip-card":"progress-bar",theme:(null===(a=e.settings)||void 0===a?void 0:a.theme)||"blue",isMulti:!!(null===(n=e.settings)||void 0===n?void 0:n.allow_multiple_answers),hideTotalCount:!!(null===(r=e.settings)||void 0===r?void 0:r.hide_total_count),watermarkLogo:"string"==typeof(null===(o=e.settings)||void 0===o?void 0:o.watermark_logo)?e.settings.watermark_logo:"",ctaBtn:{label:(null===(l=e.settings)||void 0===l?void 0:null===(i=l.cta_button)||void 0===i?void 0:i.cta_button_text)||"",link:(null===(d=e.settings)||void 0===d?void 0:null===(s=d.cta_button)||void 0===s?void 0:s.link)||""}},results:{total_votes:(null===(c=e.results)||void 0===c?void 0:c.total_votes)||0}}:null})},WV4P:function(e,t,a){"use strict";a.d(t,{Cr:function(){return m},Dc:function(){return fetchRatingReviews},Uq:function(){return uploadReviewImages},iV:function(){return resolveCollectionId},qc:function(){return submitRatingReview},yz:function(){return extractRatingReviewsPayload}});var n=a("JOt+"),r=a("z2FJ"),o=a("jhAu"),i=a("LSb+"),l=a("aVqH"),s=a("bPK4"),d=a("/sjq"),c=a("9brV");let m=5,buildRatingReviewsFilterParams=e=>{let{collectionId:t,rating:a,page:n=1,perPage:r=m}=e;return{collectionId:Number(t)||0,rating:a&&a>0?a:"",page:Number(n)||1,perPage:Number(r)||m}},resolveCollectionId=e=>{if("number"==typeof e&&Number.isFinite(e)&&e>0)return e;if("string"==typeof e&&e.trim()){let t=Number(e);return Number.isFinite(t)&&t>0?t:0}return e&&"object"==typeof e&&(resolveCollectionId(e.ID)||resolveCollectionId(e.id)||resolveCollectionId(e.collection_id)||resolveCollectionId(e.collectionId))||0},extractRatingReviewsPayload=e=>{if(!e||"object"!=typeof e)return null;let t=[e._data&&"object"==typeof e._data&&null!==e._data&&"data"in e._data?e._data.data:null,e._data,e.data&&"object"==typeof e.data&&null!==e.data&&"data"in e.data&&!("reviews"in e.data)?e.data.data:null,e.data,e];for(let e of t)if(e&&"object"==typeof e){if(Array.isArray(e))return{reviews:e};if("reviews"in e)return e}return null},uploadReviewImage=async e=>{var t;let n="image",r=new FormData;if(e.type.startsWith("image/gif"))r.append(n,e);else{let t=await a.e(8122).then(a.bind(a,"xsNn")),o=await t.default(e,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});r.append(n,o)}let o=c.Km.DEPLOY_LOCALE||"en-PH",m=await (0,l.T7)((0,s.e1)(i.PATHS.TOGETHER.IMAGE_UPLOAD,{websiteUrl:"https://".concat(d.domainLocales[o])}),"POST",{data:r,timeout:3e4,headers:{"Content-Type":"multipart/form-data"}});return(null==m?void 0:null===(t=m.data)||void 0===t?void 0:t[n])||""},uploadReviewImages=async e=>{let t=await Promise.all(e.map(e=>uploadReviewImage(e)));return t.filter(Boolean)},fetchRatingReviews=async e=>{let t=buildRatingReviewsFilterParams(e);if(!t.collectionId)return null;let a=(0,r.J)(i.PATHS.RATING_REVIEW.GET_RATING_REVIEWS,t),l=await (0,n.callApiNew)(a),s=extractRatingReviewsPayload(l);return s?(0,o.Pg)(s):null},submitRatingReview=async e=>(0,n.callApiNew)(i.PATHS.RATING_REVIEW.POST_RATING_REVIEW,{method:"POST",data:e})},yv0P:function(e,t,a){"use strict";var n=a("BGKE");a("+OUp"),t.A=e=>{let{size:t=40,color:a="#595959",...r}=e;return(0,n.Y)("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:(0,n.Y)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.7727 9.7478C13.9193 9.89405 13.9939 10.0862 13.9939 10.2781C13.9939 10.47 13.9193 10.6617 13.7727 10.8083L9.53048 15.0505C9.23798 15.3438 8.76319 15.3438 8.46994 15.0505L4.22775 10.8083C3.9345 10.5158 3.9345 10.0411 4.22775 9.7478L4.2922 9.68335C4.5847 9.3901 5.0595 9.3901 5.35275 9.68335L8.25021 12.5808L8.25021 2.77808C8.25021 2.36408 8.58621 2.02808 9.00021 2.02808C9.41421 2.02808 9.75021 2.36408 9.75021 2.77808L9.75021 12.5808L12.6477 9.68335C12.9402 9.3901 13.415 9.3901 13.7082 9.68335L13.7727 9.7478Z",fill:a})})}},p9qM:function(e,t,a){"use strict";var n=a("BGKE");a("+OUp");var r=a("VoJx"),o=a.n(r);let i=o()(async()=>{let e=await Promise.resolve().then(a.t.bind(a,"KLKL",23));return{default:e.default}},{loadableGenerated:{webpack:()=>["KLKL"]},ssr:!1,loading:()=>(0,n.Y)("div",{children:"Loading animation..."})});t.A=e=>(0,n.Y)(i,{...e})},"62hu":function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return PollCard_PollCard}});var n=a("BGKE"),r=a("+OUp"),o=a("P+HS"),i=a("W3Sf"),l=a("vH4S"),s=a("dDsW"),d=a("lNEE"),c=a("iZSu"),m=a("5p3F"),u=a("AeFk"),g=a("O1Tr"),p=a("6czb"),h=a.n(p);let RenderWatermark=e=>{let{opacity:t,color:a,svgContent:r,...o}=e;return(0,n.Y)("div",{style:{opacity:t,color:a},dangerouslySetInnerHTML:{__html:r},...o})},FlipOption=e=>{let{color:t,option:a,isSelected:r,showResults:o,hasWatermarkLogo:i,watermarkContent:s,onClick:d,isTaiwanPollTypography:c=!1,className:m="",...p}=e,f=(0,l.useMantineTheme)(),v=f.colors[t]||f.colors.blue,x=v[6],b=v[6],y=v[0],C=v[1],S="radial-gradient(55.8% 157.95% at 6.7% -24.87%, ".concat(v[3]," 0%, ").concat(x," 100%)"),w="absolute inset-0 border-2 rounded-2xl flex flex-col items-center justify-center transition-all duration-500 overflow-hidden backdrop-blur-[12px] [backface-visibility:hidden] ".concat("shadow-[0px_0px_1px_0px_#0000000A,0px_0px_2px_0px_#0000000F,0px_4px_8px_0px_#0000000A]").replace(/\s+/g," "),T={svgContent:s,"data-with-watermask":i,className:"".concat(h().watermarkContainer," absolute inset-0 pointer-events-none")};return(0,n.Y)("a",{...p,href:"#",className:"".concat(m," ").concat(h().flipCard," rounded-2xl h-[196px] md:h-[204px] [perspective:1000px] no-underline text-inherit block ").concat(o?"":"cursor-pointer"),onClick:e=>{e.preventDefault(),d()},children:(0,n.FD)(g.P.div,{initial:!1,animate:{rotateY:o?180:0},transition:{duration:.6,type:"spring",stiffness:200,damping:20},className:"w-full h-full relative [transform-style:preserve-3d]",children:[(0,n.FD)("div",{className:(0,l.clsx)("card-inner border-[--border-color] border border-solid ".concat(w),"bg-[var(--bg-color)]","".concat(o?"":"can-hover:hover:border-[--border-hover-color]")),style:{"--hover-color":t,"--border-color":"transparent","--border-hover-color":v[6],"--hover-bg":v[0],"--bg-color":o?y:r?"transparent":"#ffffff",backgroundImage:r&&!o?S:"none"},children:[(0,u.n)(RenderWatermark,{...T,key:s+r?"selected":"normal",opacity:r&&!o?.1:.6,color:r&&!o?"#ffffff":v[0]}),(0,n.Y)("span",{className:c?"relative font-medium text-[16px] md:text-[18px] leading-[1.7] text-center transition-colors duration-400":"relative font-medium text-[17px] leading-[24px] tracking-[-0.4px] text-center transition-colors duration-400",style:{color:r&&!o?"#ffffff":"#1f2937"},children:a.text})]}),(0,n.FD)("div",{className:"".concat(w," [transform:rotateY(180deg)]"),style:{color:r?"#ffffff":b,backgroundColor:r?"transparent":y,backgroundImage:r?S:"none",borderColor:r?"transparent":C},children:[(0,u.n)(RenderWatermark,{...T,key:s+"result",opacity:r?.1:.5,color:r?"#fff":v[1]}),(0,n.FD)("div",{className:"flex flex-col gap-[16px] relative p-[10px]",children:[(0,n.FD)("span",{className:"font-bold text-[28px] leading-[34px] tracking-[-1px] text-center",children:[a.percentage,"%"]}),(0,n.Y)("span",{className:c?"font-medium text-[16px] md:text-[18px] leading-[1.7] text-center":"font-medium text-[13px] leading-[20px] tracking-[-0.3px] text-center",children:a.text})]})]})]})})};var f=a("JOt+"),v=a("LOY9"),x=a("LSb+");let b="voted_polls_data",getVotedPolls=()=>{let e=localStorage.getItem(b);if(!e)return{};try{let t=JSON.parse(e),a=Date.now(),n={};return Object.keys(t).forEach(e=>{let r=t[e],o="object"==typeof r&&"timestamp"in r?r.timestamp:r;a-o<864e5&&("object"==typeof r?"optionIds"in r&&Array.isArray(r.optionIds)?n[Number(e)]={timestamp:o,optionIds:r.optionIds.map(e=>String(e))}:"optionId"in r&&(n[Number(e)]={timestamp:o,optionIds:r.optionId?[String(r.optionId)]:[]}):n[Number(e)]={timestamp:o,optionIds:[]})}),n}catch(e){return{}}},saveVotedPoll=(e,t)=>{let a=getVotedPolls();a[e]={timestamp:Date.now(),optionIds:t.map(String)},localStorage.setItem(b,JSON.stringify(a))},y=(0,r.createContext)(null),PollProvider=e=>{var t,a,o,i,l,s,d,c;let{pollId:m,articleId:u,currentUrl:g,color:p="blue",userInfo:h,isLoggedIn:b,locale:C,initialData:S,children:w}=e,[T,k]=(0,r.useState)((null==S?void 0:S.id)?S:null),[D,Y]=(0,r.useState)(null),[I,B]=(0,r.useState)([]),[N,F]=(0,r.useState)(!1),[E,A]=(0,r.useState)(!1),[R,L]=(0,r.useState)(!1),[P,M]=(0,r.useState)(!1),[_,z]=(0,r.useState)(null),W=(0,r.useCallback)(async e=>{let t={id:String(m)};b&&(null==h?void 0:h.id)&&(t.userId=h.id);try{var a,n;let r=await (0,f.callApiNew)(x.PATHS.POLL_WIDGET.GET_RESULT,{params:t,signal:e});if(null==e?void 0:e.aborted)return;let o=null!==(a=null==r?void 0:r.data)&&void 0!==a?a:r;if(!o)return;let i=(0,v.v)(o);if((null==i?void 0:i.id)&&k(i),b){if((null===(n=o.user_voted_options)||void 0===n?void 0:n.length)>0){F(!0),L(!0);let e=o.user_voted_options.map(e=>String(e));Y(e[0]||null),B(e)}}else{let e=getVotedPolls()[m];if(e){let t=Array.isArray(e.optionIds)?e.optionIds.map(e=>String(e)):[];t.length>0&&(F(!0),L(!0),Y(t[0]||null),B(t))}}}catch(t){if(null==e?void 0:e.aborted)return;console.error("Failed to fetch poll data",t)}},[m,b,null==h?void 0:h.id]);(0,r.useEffect)(()=>{let e=new AbortController;return k((null==S?void 0:S.id)?S:null),F(!1),Y(null),B([]),L(!1),z(null),W(e.signal),()=>e.abort()},[W,S]);let H={pollId:m,currentUrl:g,locale:C,question:(null==T?void 0:T.question)||"",description:(null==T?void 0:T.description)||"",options:(null==T?void 0:T.options)||[],displayType:(null==T?void 0:null===(t=T.ui)||void 0===t?void 0:t.displayType)||"flip-card",hideTotalCount:null!==(c=null==T?void 0:null===(a=T.ui)||void 0===a?void 0:a.hideTotalCount)&&void 0!==c&&c,watermarkLogo:(null==T?void 0:null===(o=T.ui)||void 0===o?void 0:o.watermarkLogo)||"",totalVotes:(null==T?void 0:null===(i=T.results)||void 0===i?void 0:i.total_votes)||0,selectedOption:D,selectedOptions:I,isMulti:(null==T?void 0:null===(l=T.ui)||void 0===l?void 0:l.isMulti)||!1,isVoted:N,isSubmitting:E,isShowingResults:R,isShaking:P,error:_,color:(null==T?void 0:null===(s=T.ui)||void 0===s?void 0:s.theme)||p,ctaBtn:null==T?void 0:null===(d=T.ui)||void 0===d?void 0:d.ctaBtn,toggleResults:()=>L(!R),setOption:e=>{if(!N){var t;(null==T?void 0:null===(t=T.ui)||void 0===t?void 0:t.isMulti)?B(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]):Y(e),z(null)}},submitVote:async()=>{var e,t,a,n;let r=(null==T?void 0:null===(e=T.ui)||void 0===e?void 0:e.isMulti)||!1,o=r?I:D?[D]:[];if(!o.length){M(!0),setTimeout(()=>M(!1),3e3);return}A(!0),z(null);try{await (0,f.callApiNew)(x.PATHS.POLL_WIDGET.POST_VOTE,{method:"POST",data:{poll_id:m,user_id:b?String((null==h?void 0:h.id)||""):"",option_ids:o,article_id:u}}),F(!0),L(!0),b||saveVotedPoll(m,o),await W()}catch(r){let e=(null==r?void 0:null===(a=r.response)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.message)||"C\xf3 lỗi xảy ra, vui l\xf2ng thử lại.";z(e),(null==r?void 0:null===(n=r.response)||void 0===n?void 0:n.status)===400&&(F(!0),L(!0))}finally{A(!1)}}};return(0,n.Y)(y.Provider,{value:H,children:w})},usePoll=()=>{let e=(0,r.useContext)(y);if(!e)throw Error("usePoll must be used within a PollProvider");return e},ProgressOption=e=>{let{color:t,option:a,isSelected:r,showResults:o,onClick:i,isTaiwanPollTypography:s=!1,className:d="",...c}=e,m=(0,l.useMantineTheme)(),u=m.colors[t]||m.colors.blue,p=u[1],h=u[6],f=u[7];return(0,n.FD)("a",{...c,href:"#",onClick:e=>{e.preventDefault(),i()},className:"".concat(d," rounded-2xl no-underline text-inherit ").concat(r?"bg-white border-[--border-selected-color]":"hover:bg-[var(--hover-bg)] hover:border-[--border-hover-color]"," relative border-[--border-color] border border-solid p-[12px] w-full rounded-2xl overflow-hidden cursor-pointer flex items-center transition-colors duration-200 shadow-[0px_0px_1px_0px_#0000000A,0px_0px_2px_0px_#0000000F,0px_4px_8px_0px_#0000000A] backdrop-blur-[12px]"),style:{"--hover-bg":u[0],"--border-color":u[0],"--border-hover-color":u[6],"--border-selected-color":u[2]},children:[(0,n.Y)(g.P.div,{initial:{width:0},animate:{width:o?"".concat(a.percentage,"%"):0},transition:{duration:1,ease:"easeOut"},style:{backgroundColor:p,position:"absolute",top:0,bottom:0,left:0}}),(0,n.FD)("div",{className:"relative z-10 flex w-full justify-between items-center gap-5",children:[(0,n.FD)("div",{className:"flex items-center gap-3",children:[!o&&(0,n.Y)("div",{children:(0,n.Y)(l.Box,{sx:{width:16,height:16,borderRadius:"100%",border:"1px solid ".concat(r?h:m.colors.neutral[4]),backgroundColor:"#fff",...r&&{display:"flex",justifyContent:"center",alignItems:"center","&:before":{content:'""',display:"block",width:8,height:8,borderRadius:"100%",backgroundColor:h}}}})}),(0,n.Y)("span",{className:s?"text-[16px] md:text-[18px] leading-[1.7] text-[#000] ".concat(r?"font-medium":""):"text-[15px] leading-[24px] tracking-[-0.3px] text-[#000] ".concat(r?"font-medium":""),children:a.text})]}),o&&(0,n.FD)("span",{className:"".concat(r?"font-bold text-[17px]":"font-medium text-[15px]"," leading-[24px] tracking-[-0.3px]"),style:{color:r?f:"#000"},children:[a.percentage,"%"]})]})]})},useInlineSvg=e=>{let[t,a]=(0,r.useState)("");return(0,r.useEffect)(()=>{if(!e)return;let t=!0,n=new AbortController,r=e.includes("?")?"".concat(e,"&t=").concat(Date.now()):"".concat(e,"?t=").concat(Date.now());return fetch(r,{signal:n.signal}).then(t=>{let a=t.headers.get("content-type");return a&&!a.includes("svg")&&console.warn("URL ".concat(e," kh\xf4ng trả về file SVG. Content-Type: ").concat(a)),t.text()}).then(n=>{if(!t)return;let r=new DOMParser,o=r.parseFromString(n,"image/svg+xml"),i=o.querySelector("svg");if(i){let e=i.querySelectorAll("script");e.forEach(e=>e.remove()),i.setAttribute("class","w-full h-full");let t=i.querySelectorAll("path, circle, rect, polygon, ellipse, g");t.forEach(e=>{e.setAttribute("fill","currentColor")}),a(i.outerHTML)}else console.error("Kh\xf4ng t\xecm thấy thẻ trong nội dung fetch được từ:",e)}).catch(e=>{"AbortError"!==e.name&&console.error("Lỗi khi fetch SVG:",e)}),()=>{t=!1,n.abort()}},[e]),t},PollCardUI=e=>{let{prefix:t,eventCategory:a}=e,{formatMessage:u}=(0,s.A)(),{pollId:g,question:p,description:f,options:v,isMulti:x,displayType:b,hideTotalCount:y,totalVotes:C,selectedOption:S,selectedOptions:w,setOption:T,submitVote:k,isVoted:D,isSubmitting:Y,isShowingResults:I,ctaBtn:B,isShaking:N,color:F,watermarkLogo:E,currentUrl:A,locale:R}=usePoll(),L=R===c.ne.Taiwan,P=(0,l.useMantineTheme)(),M=!!E,_=useInlineSvg(E),z=M?_:'',W=a||"Article Poll",trackingAction=e=>t?"".concat(t," - ").concat(e):e,H={"data-event-category":W,"data-event-action":trackingAction("Select Option"),"data-event-label":A},[O,G]=(0,r.useState)(!1),V=D||I;(0,r.useEffect)(()=>{G(N)},[N]);let handleOptionClick=e=>{T(e),G(!1)};if(!v||0===v.length)return null;let j={size:"md",color:F,styles:{label:{fontSize:"15px"}}},U=P.colors[F][0],K=(0,m.E2)(U,!0);return(0,n.Y)(o.TemplateProvider,{variant:o.CustomStylesType.LEADGEN,children:(0,n.FD)("div",{className:"relative w-full bg-white rounded-xl p-[8px] border poll-fade-in shadow-[0px_0px_1px_0px_#0000000A,0px_2px_8px_0px_#0000000A,0px_10px_16px_0px_#0000000A]",children:[(0,n.FD)("div",{className:"relative rounded-xl p-3 md:p-6",style:{background:"linear-gradient(180deg, rgba(".concat(K.r,",").concat(K.g,",").concat(K.b,", 0.75) 0%, rgba(").concat(K.r,",").concat(K.g,",").concat(K.b,", 0.35) 50%, ").concat(P.colors.neutral[0]," 100%)")},children:[(0,n.Y)(RenderWatermark,{opacity:.5,color:"#fff",svgContent:z,className:"".concat(h().pollCard," absolute top-6 right-6")}),(0,n.FD)("div",{className:"relative flex flex-col gap-3 md:gap-6",children:[(0,n.FD)("div",{className:"flex flex-col gap-[4px]",children:[(0,n.Y)("h2",{className:L?"text-[16px] md:text-[18px] font-medium text-gray-800 leading-[1.7]":"text-[20px] font-medium text-gray-800 leading-[24px] md:leading-[28px]",children:p}),f&&(0,n.Y)(d.f2,{content:f,className:L?"text-[14px] leading-[1.7] text-[#404040] [&_p]:text-[14px] [&_p]:leading-[1.7] [&_p]:text-[#404040]":"text-[13px] text-[#404040] leading-[16px] md:leading-[20px] [&_p]:text-[13px] [&_p]:text-[#404040] [&_p]:leading-[16px] md:[&_p]:leading-[20px]"})]}),"flip-card"===b?(0,n.Y)("div",{"data-pollid":g,"data-display-type":b,className:"flex flex-wrap gap-2 justify-center",children:v.map(e=>(0,n.Y)("div",{className:"\n flex-shrink-0 min-w-[140px]\n ".concat(v.length<=2?"w-full":"w-[calc(50%-4px)]","\n ").concat(v.length<=4?"md:flex-grow md:basis-0":"md:w-[calc(25%-6px)] md:max-w-[calc(25%-6px)]","\n "),children:(0,n.Y)(FlipOption,{hasWatermarkLogo:M,watermarkContent:z,color:F,option:e,isTaiwanPollTypography:L,isSelected:x?w.includes(e.id):S===e.id,showResults:V,onClick:()=>handleOptionClick(e.id),...H})},e.id))}):(0,n.Y)("div",{"data-pollid":g,"data-display-type":b,className:"space-y-2",children:v.map(e=>(0,n.Y)(ProgressOption,{color:F,option:e,isTaiwanPollTypography:L,isSelected:x?w.includes(e.id):S===e.id,showResults:V,onClick:()=>handleOptionClick(e.id),...H},e.id))})]})]}),(0,n.FD)("div",{className:"flex items-center justify-between p-[4px] mt-2",children:[(0,n.Y)("span",{className:"text-[13px] leading-[20px] tracking-[-0.3px] text-[#8C8C8C] pl-3 md:pl-6",children:!y&&(0,n.Y)(n.FK,{children:u({id:"pollWidget.voteNumber"},{number:C})})}),(0,n.Y)("div",{className:"flex items-center gap-3",children:D?(null==B?void 0:B.label)&&(null==B?void 0:B.link)?(0,n.Y)(o.Button,{component:"a",href:null==B?void 0:B.link,target:"_blank",...j,variant:"primary",rightIcon:(0,n.Y)(i.A,{className:"arrow-jump",size:20,color:"#fff"}),"data-event-category":W,"data-event-action":trackingAction("CTA Click"),"data-event-label":B.link,children:B.label}):null:(0,n.FD)(l.Popover,{opened:O,onClose:()=>G(!1),position:"top",withArrow:!0,shadow:"md",children:[(0,n.Y)(l.Popover.Target,{children:(0,n.Y)(o.Button,{...j,"data-event-category":W,"data-event-action":trackingAction("Vote Click"),"data-event-label":A,variant:"primary",className:N?"shake-trigger":"",onClick:k,rightIcon:!Y&&(0,n.Y)(i.A,{className:"arrow-jump",size:20,color:"#fff"}),children:u({id:Y?"pollWidget.voting":"pollWidget.vote"})})}),(0,n.Y)(l.Popover.Dropdown,{children:(0,n.Y)(l.Text,{size:"sm",children:u({id:"pollWidget.errMess.requireSelectAnswer"})})})]})})]})]})})};var PollCard_PollCard=e=>{let{prefix:t,eventCategory:a,...r}=e;return(0,n.Y)(PollProvider,{...r,children:(0,n.Y)(PollCardUI,{prefix:t,eventCategory:a})})}},Kbc6:function(e,t,a){"use strict";a.d(t,{H:function(){return AppIntroNav}});var n=a("BGKE"),r=a("Wbba"),o=a("vH4S"),i=a("MyZj"),l=a("eyHc");a("+OUp");var s=a("P+HS"),d=(0,o.createStyles)((e,t)=>{let{isSelected:a}=t;return{root:{position:"relative",color:"#262626",transition:"all .2s ease",padding:"8px 0",...a&&{cursor:"default"},"&:hover, &.selected":{color:e.fn.primaryColor(),"&:before":{width:30}},"&:before":{content:'""',borderBottom:"1px solid ".concat(e.fn.primaryColor()),position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 0)",transition:"all .3s ease",width:0}},title:{lineHeight:(0,o.rem)(22),fontSize:14}}});let UnderLine=e=>{let{title:t,className:a,classNames:r,styles:i,isSelected:l=!1,...c}=e,{classes:m,cx:u}=d({isSelected:l},{name:"CarePathHeroBannerNavigatorItem__UnderLine",classNames:r,styles:i});return(0,n.Y)(o.Box,{className:u(a,m.root,l?"selected":""),...c,children:(0,n.Y)(s.Text,{className:m.title,color:"inherit",size:"p3",children:t})})};UnderLine.displayName="UnderLine";var c=a("a5L+"),m=(0,o.createStyles)(e=>({logo:{[e.fn.smallerThan("sm")]:{display:"none"}},logoImg:{maxHeight:40},app:{borderRadius:8,overflow:"hidden"},appImg:{height:36,display:"block"}}));let AppIntroNav=e=>{let{navigating:t,onNavClick:a,selectedSection:s,logo:d,showDownApp:u,styles:g,className:p,classNames:h,...f}=e,{classes:v,cx:x}=m(void 0,{name:"AppIntroHeroBanner",styles:g,classNames:h}),b=(0,c.a)();return(0,n.FD)(o.Flex,{align:"center",justify:"space-between",className:x(p),...f,children:[!b&&(null==d?void 0:d.icon)&&(0,n.Y)("div",{className:v.logo,children:(0,n.Y)("img",{loading:"lazy",src:null==d?void 0:d.icon,alt:"App",className:v.logoImg})}),(0,n.FD)(o.Flex,{align:"center",gap:36,children:[(0,n.Y)(i.mD,{navigating:t,iconSize:24,selectedSection:s,onNavClick:a,children:t.map((e,t)=>(0,n.Y)(l.Z,{displayAs:UnderLine},String(t)))}),u&&(0,n.FD)(o.Flex,{align:"center",gap:16,children:[(0,n.Y)(o.Box,{component:b&&(null==d?void 0:d.url)?"a":"div",...b&&(null==d?void 0:d.url)&&{href:d.url,target:"_blank"},children:(0,n.Y)("div",{className:v.app,children:(0,n.Y)("img",{src:r.C.getAssetPath("appIntro/app-store.png"),className:v.appImg,loading:"lazy",alt:"App Store"})})}),(0,n.Y)(o.Box,{component:b&&(null==d?void 0:d.url)?"a":"div",...b&&(null==d?void 0:d.url)&&{href:d.url,target:"_blank"},children:(0,n.Y)("div",{className:v.app,children:(0,n.Y)("img",{src:r.C.getAssetPath("appIntro/google-play.png"),className:v.appImg,loading:"lazy",alt:"Google Play"})})})]})]})]})}},tPw4:function(e,t,a){"use strict";a.d(t,{jx:function(){return shouldFetchRemainingEmbeddingDoctors},pw:function(){return fetchEmbeddingDoctorsForSession},tu:function(){return p}});var n=a("TYy9"),r=a.n(n),o=a("xweI"),i=a.n(o),l=a("qPyV"),s=a.n(l),d=a("JOt+"),c=a("ROQx"),m=a("jhAu"),u=a("LSb+"),g=a("VAcX");let p=4,mapTopServiceDoctors=e=>{var t;let a=null==e?void 0:null===(t=e._data)||void 0===t?void 0:t.top_services;return a?i()(r()((0,m.V)(a).serviceList.map(e=>e.services)),["position"],"asc"):[]},mapSearchCareDoctors=e=>{var t;return i()(((null==e?void 0:null===(t=e._data)||void 0===t?void 0:t.searches)||[]).map(c.Uf),["position"],"asc")},getSearchCareParams=(e,t)=>{let{page:a,perPage:n}=t,{embebIds:r,typeEmbedding:o,allDoctors:i}=e;return{type:"doctor",skipBooking:1,page:a,perPage:n,...!i&&{..."doctors"===o&&{doctorIds:r.join(",")},..."specialties"===o&&r.length>0&&{specialtyId:r.join(",")}}}},fetchSearchCareDoctorsPage=async(e,t)=>{let a=await (0,d.callApiNew)(u.PATHS.CARE.GET_SEARCH_CARE,{params:getSearchCareParams(e,t)},"careV2");return mapSearchCareDoctors(a)},fetchSearchCareDoctorsFull=async e=>{let t=(await (0,g.v)(Array.from({length:5},(t,a)=>fetchSearchCareDoctorsPage(e,{page:a+1,perPage:60})))).map(g.R).filter(e=>!!e),a=r()(t);return i()(s()(a,e=>e.id),["position"],"asc")},fetchEmbeddingDoctorsForSession=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{embebIds:a,typeEmbedding:n,allDoctors:r}=e,{limit:o}=t;if("top_service"===n){if(0===(a||[]).length)return[];let e=await (0,d.callApiNew)(u.PATHS.CARE.GET_TOP_SERVICES,{params:{categoryIds:a.join(",")}},"care"),t=mapTopServiceDoctors(e);return o?t.slice(0,o):t}return("doctors"===n||"specialties"===n)&&(r||0!==(a||[]).length)?o?fetchSearchCareDoctorsPage(e,{page:1,perPage:o}):fetchSearchCareDoctorsFull(e):[]},shouldFetchRemainingEmbeddingDoctors=e=>e===p},rWZn:function(e,t,a){"use strict";a.d(t,{J:function(){return CountDownTimer}});var n=a("BGKE"),r=a("+OUp"),o=a("P+HS"),i=a("vH4S"),l=a("nCpW"),s=a("8BcA"),d=a.n(s),c=a("dDsW"),m=a("6xjG"),u=(0,i.createStyles)((e,t)=>{let{isEnd:a,hasUnit:n}=t;return{root:{backgroundColor:a?e.colors.gray[1]:"#FAF4E6",display:"flex",alignItems:"center",borderRadius:8,justifyContent:"space-between",padding:4},heading:{flexGrow:1,textAlign:"center",textTransform:"uppercase",padding:"0 10px"},listing:{display:"flex",alignItems:"center",...n&&{marginBottom:10}},item:{position:"relative",width:35,height:32,borderRadius:4,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:a?"#BFBFBF":"#FDC42D"},divider:{"&:before":{content:'":"',display:"inline-block",marginLeft:4,marginRight:4},"&:first-child":{"&:before":{content:"none"}}},text:{fontWeight:600,textAlign:"center"},unit:{position:"absolute",left:0,right:0,top:"100%",textAlign:"center"}}});let CountDownTimer=e=>{let{endDate:t,onEnd:a,label:s,hasUnit:g,styles:p,classNames:h,className:f}=e,{formatMessage:v}=(0,c.A)(),[x,b]=(0,r.useState)(0),[y,C]=(0,r.useState)(!1),{classes:S,cx:w}=u({isEnd:y,hasUnit:g},{name:"CountDownTimer",styles:p,classNames:h}),T=(0,l.$)(()=>b(e=>e+1),1e3),k=(0,r.useMemo)(()=>{let e=d().duration(d()(t).diff(d()()));return 1>Math.round(e.asSeconds())?(C(!0),null==a||a(),T.stop(),{day:0,hour:0,minute:0,second:0}):{day:Math.round(e.days()),hour:Math.round(e.hours()),minute:Math.round(e.minutes()),second:Math.round(e.seconds())}},[x]);return(0,r.useEffect)(()=>(T.start(),T.stop),[]),(0,n.FD)(i.Box,{className:w(f,S.root),children:[(0,n.Y)(o.Text,{size:"s4",className:S.heading,children:y?v({id:"common.ended"}):s||v({id:"common.startIn"})}),(0,n.FD)(i.Box,{className:S.listing,children:[(0,n.FD)(i.Box,{className:S.item,children:[(0,n.Y)("span",{className:S.text,children:(0,m.Jw)(k.day)}),g&&(0,n.Y)("span",{className:S.unit,children:v({id:"common.day"})})]}),(0,n.Y)(i.Box,{className:S.divider}),(0,n.FD)(i.Box,{className:S.item,children:[(0,n.Y)("span",{className:S.text,children:(0,m.Jw)(k.hour)}),g&&(0,n.Y)("span",{className:S.unit,children:v({id:"common.hour"})})]}),(0,n.Y)(i.Box,{className:S.divider}),(0,n.FD)(i.Box,{className:S.item,children:[(0,n.Y)("span",{className:S.text,children:(0,m.Jw)(k.minute)}),g&&(0,n.Y)("span",{className:S.unit,children:v({id:"common.minute"})})]}),(0,n.Y)(i.Box,{className:S.divider}),(0,n.FD)(i.Box,{className:S.item,children:[(0,n.Y)("span",{className:S.text,children:(0,m.Jw)(k.second)}),g&&(0,n.Y)("span",{className:S.unit,children:v({id:"common.second"})})]})]})]})}},"B/pt":function(e,t,a){"use strict";a.d(t,{s:function(){return ScrollAreaNav}});var n=a("BGKE"),r=a("+OUp"),o=a.n(r),i=a("vH4S"),l=(0,i.createStyles)(()=>({root:{gap:16},scrollViewport:{padding:0},scrollThumb:{display:"none"}})),s=a("yVya");let ScrollAreaNav=e=>{let{children:t,className:a,styles:d,classNames:c,...m}=e,{classes:u,cx:g}=l(void 0,{name:"HealthToolsNav",styles:d,classNames:c}),p=(0,r.useRef)(null),[h,f]=(0,r.useState)("");return(0,r.useEffect)(()=>{var e,t;let a=null===(e=p.current)||void 0===e?void 0:e.querySelector('[data-section-id="'.concat(h,'"]'));a instanceof HTMLElement&&(null===(t=p.current)||void 0===t||t.scrollTo({left:a.offsetLeft,behavior:"smooth"}))},[h]),(0,n.Y)(i.ScrollArea,{offsetScrollbars:!0,scrollbarSize:4,classNames:{viewport:u.scrollViewport,thumb:u.scrollThumb},viewportRef:p,...m,children:(0,n.Y)(i.Flex,{className:g(a,u.root),...m,children:(0,s.A)(t).map((e,t)=>o().isValidElement(e)?(0,n.Y)(i.Box,{"data-section-id":"scroll-".concat(t),onClick:()=>f("scroll-".concat(t)),children:e},t):null)})})}},HtcZ:function(e,t,a){"use strict";a.r(t),a.d(t,{SponsoredBy:function(){return SponsoredBy},SponsoredPopup:function(){return SponsoredPopup},StickySponsoredBy:function(){return StickySponsoredBy},StickySponsoredByRevamp:function(){return StickySponsoredByRevamp}});var n=a("BGKE"),r=a("+OUp"),o=a.n(r),i=a("iBNF"),l=a("+YhV"),s=a("P+HS"),d=a("q9DY"),c=a("xVO/"),m=a("vH4S"),u=a("TSYQ"),g=a.n(u),p=a("VoJx"),h=a.n(p),f=a("dDsW"),v=a("a5L+"),x=a("AG8C"),b=a("rBCA"),y=a("CL9C");let C=(0,b.A)("div",{target:"e9umfnp0"})("position:absolute;top:30px;left:50%;z-index:1;&[data-align-left='true']{left:190px;}width:350px;padding:1rem 1.5rem 1rem 1rem;border:1px solid ",i.w.colors.neutral100,";background:white;border-radius:8px;box-shadow:0px 0px 1px 0px #0000000a,0px 0px 2px 0px #0000000f,0px 4px 8px 0px #0000000a;transform:translateX(-50%);",y.M.mbDown,"{width:calc(100% - 2rem);}");var S=(0,m.createStyles)(e=>({root:{display:"flex",minHeight:(0,m.rem)(40),alignItems:"center",justifyContent:"center",padding:"4px 0px",borderTop:"1px solid #e4e8ec",backgroundColor:e.colors.neutral[0],cursor:"pointer",textDecoration:"none",'&[data-align-left="true"]':{justifyContent:"start"},[e.fn.largerThan("sm")]:{minHeight:"44px"},'&[data-show-popup="true"]':{".sticky-sponsored-info-icon":{position:"relative","&:before":{position:"absolute",zIndex:9,top:"100%",left:"9px",borderRight:"6px transparent solid",borderBottom:"8px white solid",borderLeft:"6px transparent solid",content:'" "',transform:"translateX(calc(-50% + 3px))"}}}},logo:{height:(0,m.rem)(32),[e.fn.largerThan("sm")]:{height:(0,m.rem)(36)}},logoWrapper:{display:"inline-block",overflowX:"auto",gap:"24px",marginLeft:"24px","-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"},whiteSpace:"nowrap",flexShrink:0,[e.fn.smallerThan("sm")]:{display:"inline",marginLeft:"8px"}},scrollBtn:{display:"flex",marginLeft:(0,m.rem)(24),gap:(0,m.rem)(32)},img:{width:(0,m.rem)(32),height:(0,m.rem)(32)},textWrapper:{display:"flex",alignItems:"center",overflow:"hidden",whiteSpace:"nowrap"},container:{position:"relative",padding:"0 16px"}})),w=a("9brV");let T=h()(()=>a.e(7445).then(a.bind(a,"4jPg")).then(e=>e.PremiumBadge),{loadableGenerated:{webpack:()=>["4jPg"]}}),SponsoredBy=e=>{let{image:t,href:a,className:r,isMobile:o,classNames:i,styles:s,...d}=e,{formatMessage:c}=(0,f.A)(),{classes:u,cx:g}=S(void 0,{name:"SponsoredBy",classNames:i,styles:s});return(0,n.FD)(m.Box,{className:g("dfdfdfdf",r,u.root),"data-type-mobile":o,...d,children:[(0,n.Y)(l.T,{size:"c2",type:"bold",color:"#737373",children:c({id:"articlePage.sponsoredBy"}).toUpperCase()+":"}),(0,n.Y)("a",{style:{flex:1},href:a,target:"_blank",children:(0,n.Y)("img",{src:t,style:{height:"22px",objectPosition:o?"right":"left",objectFit:"contain",paddingLeft:"1rem"},alt:"",loading:"lazy"})})]})},StickySponsoredBy=e=>{var t;let{className:a,isMobile:i,isCollapsed:s,sponsoredType:d,sponsoredBy:c,classNames:u,styles:g}=e,{formatMessage:p}=(0,f.A)(),{classes:h,cx:v}=S(void 0,{name:"StickySponsoredBy",classNames:u,styles:g}),[x,b]=(0,r.useState)(!1),y=(0,r.useRef)(null);(0,r.useEffect)(()=>{s&&b(!1)},[s]);let C=(0,r.useMemo)(()=>void 0!==c&&c.some(e=>!!(null==e?void 0:e.logo)),[c]);return(0,n.Y)(m.Box,{className:v(a,h.root),onClick:()=>b(!0),"data-show-popup":x&&!s,"data-align-left":C,"data-sticky-sponsor":"true",children:(0,n.FD)(m.Container,{className:v("hhg-disclaimer-text",h.container),"data-sponsored-id":null==c?void 0:null===(t=c[0])||void 0===t?void 0:t.id,size:"lg",w:"100%",children:["content"===d?(0,n.FD)("div",{className:h.textWrapper,children:[(0,n.Y)("div",{className:"sticky-sponsored-info-icon",children:(0,n.Y)("img",{src:"".concat(w.Mp,"/info-light.svg"),style:{width:20,height:20,marginRight:"0.3rem"},alt:"",loading:"lazy"})}),C?(0,n.FD)(n.FK,{children:[(0,n.Y)(l.T,{size:"p4",style:{display:"inline-block"},color:"#737373",children:p({id:"articlePage.sponsoredContentBy",defaultMessage:"Content sponsored by"})}),(0,n.Y)("div",{className:h.logoWrapper,"data-sponsor":c&&(null==c?void 0:c.length)>0,ref:y,children:null==c?void 0:c.map((e,t)=>(0,n.Y)(o().Fragment,{children:(null==e?void 0:e.logo)&&(0,n.Y)("img",{className:v("sponsored-logo",h.logo),src:(null==e?void 0:e.logo)||"",alt:(null==e?void 0:e.title)||"sponsored-logo",loading:"lazy"})},t))})]}):(0,n.Y)(l.T,{size:"p4",color:"#737373",as:"span",children:p({id:"articlePage.sponsoredContent",defaultMessage:"Sponsored Content"})}),!i&&c&&(null==c?void 0:c.length)>1&&(0,n.FD)("div",{className:h.scrollBtn,style:{display:(null==y?void 0:y.current)&&y.current.scrollWidth>y.current.offsetWidth?"flex":"none"},children:[(0,n.Y)("img",{alt:"",loading:"lazy",className:h.img,src:"".concat(w.nS,"/chevronLeftCircle.svg"),onClick:e=>{e.stopPropagation(),y.current&&(y.current.scrollLeft-=50)}}),(0,n.Y)("img",{loading:"lazy",alt:"",className:h.img,src:"".concat(w.nS,"/chevronRightCircleBlack.svg"),onClick:e=>{e.stopPropagation(),y.current&&(y.current.scrollLeft+=50)}})]})]}):(0,n.Y)(l.T,{size:"p2",color:"#737373",children:(0,n.FD)("div",{children:[p({id:"articlePage.sponsoredArticle"}),(0,n.Y)("div",{className:"sticky-sponsored-info-icon",children:(0,n.Y)("img",{src:"".concat(w.Mp,"/info-light.svg"),style:{width:20,height:20,verticalAlign:"middle",marginLeft:"0.3rem",marginBottom:"0.1rem"},alt:"",loading:"lazy"})})]})}),x&&!s?(0,n.Y)(SponsoredPopup,{sponsoredBy:c,onClose:()=>b(!1)}):null]})})},StickySponsoredByRevamp=e=>{var t;let{isPremium:a,isSponsored:o,sponsoredBy:l,className:d}=e,u=(0,v.a)(),{formatMessage:p}=(0,f.A)(),[h,x]=(0,r.useState)(!1),{logo:b,displayName:y,title:C}=(0,r.useMemo)(()=>(null==l?void 0:l[0])||{},[l]);return!o&&a?(0,n.Y)(T,{className:d}):(0,n.FD)(m.Box,{onClick:()=>x(!0),className:g()("hhg-disclaimer-text flex gap-3 relative cursor-pointer",d),"data-sponsored-id":null==l?void 0:null===(t=l[0])||void 0===t?void 0:t.id,children:[a&&(0,n.Y)(c.A,{size:20}),(0,n.FD)(m.Box,{className:"flex items-center gap-0.5",children:[(0,n.FD)(s.Text,{size:"p4",color:i.w.colors.gray600,children:[p(y||b?{id:"articlePage.sponsoredContentBy",defaultMessage:"Content sponsored by"}:{id:"articlePage.sponsoredContent",defaultMessage:"Sponsored Content"}),"\xa0",y?(0,n.Y)("span",{className:"underline",children:y}):b?(0,n.Y)("img",{loading:"lazy",src:b,alt:C,className:"min-h-9 h-9 align-middle"}):null]}),(0,n.FD)(m.Box,{className:"relative",onClick:()=>x(!0),children:[(0,n.Y)("img",{src:"".concat(w.Mp,"/info-").concat(h?"light":"dark",".svg"),alt:"",loading:"lazy",className:"w-4 h-4 cursor-pointer block"}),h&&!u&&(0,n.Y)(SponsoredPopup,{sponsoredBy:l,onClose:()=>x(!1),className:"!left-0 !z-20"})]})]}),h&&u&&(0,n.Y)(SponsoredPopup,{sponsoredBy:l,onClose:()=>x(!1),className:"!left-0 !translate-x-0 !top-10 !z-20"})]})},SponsoredPopup=e=>{var t;let{sponsoredBy:a,onClose:r,className:o}=e,{locale:i}=(0,x.$)(),{formatMessage:l}=(0,f.A)(),c="/static".concat((null===(t=w.CS[i])||void 0===t?void 0:t.ADVERTISING_SPONSOR_POLICY)||"/");return(0,n.FD)(C,{"data-align-left":a&&(Array.isArray(a)||!!(null==a?void 0:a.logo)),className:o,id:"sponsored-by",children:[(0,n.Y)(m.Box,{onClick:e=>{e.stopPropagation(),null==r||r()},className:"absolute top-2 right-2 cursor-pointer",children:(0,n.Y)(d.A,{size:18})}),(0,n.Y)(s.Text,{size:"p4",children:l({id:"articlePage.sponsoredByStickyPopup.content"},{a:e=>(0,n.Y)("a",{href:c,target:"_blank",className:"underline text-primaryBase",children:e})})})]})}},fY7c:function(e,t,a){"use strict";a.r(t),a.d(t,{BabyPoopCard:function(){return BabyPoopCard}});var n=a("BGKE"),r=a("+OUp"),o=a("soWg"),i=a("ei5w"),l=a("e5PB"),s=a("99+y"),d=a.n(s),c=a("JOt+"),m=a("ROQx"),u=a("LSb+"),g=a("Pvbb"),p=a("wA0V"),h=a("AG8C"),f=a("9brV"),v=a("mdEm"),x=a("VnHZ");let BabyPoopCard=e=>{let{isSide:t,direction:a,sponsorLogo:s,onlyUseForm:b,...y}=e,C=(0,p.m)(),{locale:S}=(0,h.$)(),[w,T]=(0,r.useState)({}),{getHealthToolLink:k}=(0,o.u)(S),D=(0,r.useMemo)(()=>k(v.zY.BABY_POOP),[k]),{state:Y}=(0,r.useContext)(x.B)||{},{userInfo:I}=Y||{};(0,r.useEffect)(()=>{(async()=>{let e=await (0,c.callApiNew)(u.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_BABY_POOP);T((0,m.Nh)(null==e?void 0:e.data))})()},[]);let onClickFindOut=()=>{let e="".concat(window.location.origin).concat(f.Jp).concat(D);(null==I?void 0:I.id)?d().push(e):(0,g.YA)(e,"baby-poop-checking")};return D?b?(0,n.Y)(i.B,{currentUrl:C,babyPoopPage:w,onClickFindOut:onClickFindOut,...y}):(0,n.Y)(l.k,{babyPoopPage:w,formProps:{babyPoopPage:w,currentUrl:C,onClickFindOut,sponsorLogo:s},...y}):null}},"7ZMO":function(e,t,a){"use strict";a.r(t),a.d(t,{BabyVaccinationCard:function(){return BabyVaccinationCard}});var n=a("BGKE"),r=a("+OUp"),o=a("soWg"),i=a("uvxu"),l=a("n4nW"),s=a("+u84"),d=a("Xanp"),c=a("8BcA"),m=a.n(c),u=a("JOt+"),g=a("ROQx"),p=a("LSb+"),h=a("Pvbb"),f=a("wA0V"),v=a("a5L+"),x=a("AG8C"),b=a("9brV"),y=a("mdEm"),C=a("VnHZ"),S=a("/GlT");let BabyVaccinationCard=e=>{let{isSide:t,onlyUseForm:a,...c}=e,{locale:w,router:T}=(0,x.$)(),[k,D]=(0,r.useState)(null),{state:Y}=(0,r.useContext)(C.B)||{},{getHealthToolLink:I}=(0,o.u)(w),B=(0,r.useMemo)(()=>I(y.zY.BABY_VACCINE),[I]),{isLoggedIn:N}=Y||{};(0,r.useEffect)(()=>{(async()=>{let e=await (0,u.callApiNew)(p.PATHS.BABY_VACCINE.GET_HEALTH_TOOL_BABY_VACCINE_INFO);D(()=>(0,g.IN)(null==e?void 0:e.data))})()},[]);let onSubmit=e=>{let{gender:t=""}=e,a=m()(e.age).format(b.a7);(async()=>{let e="".concat(window.location.origin).concat(b.Jp).concat(B,"?").concat(s.Q.gender,"=").concat((0,S.ik)(t),"&").concat(s.Q.age,"=").concat(a);if(N){var n;T.push((null===(n=(0,d.g)(e,{source:"baby-vaccine"}))||void 0===n?void 0:n.href)||e)}else(0,h.YA)(e,"baby-vaccine")})()},F=(0,v.a)(),E=(0,f.m)();return B?a?(0,n.Y)(i.B,{formLayout:F||t?"default":"inline",onSubmit:onSubmit,submitProps:{dataEventLabel:E},...c}):(0,n.Y)(l.h,{babyVaccineContent:k,formProps:{formLayout:F||t?"default":"inline",onSubmit,submitProps:{dataEventLabel:E}},...c}):(0,n.Y)("div",{style:{height:500}})}},lXMR:function(e,t,a){"use strict";a.r(t),a.d(t,{BMRCardWrapper:function(){return BMRCardWrapper}});var n=a("BGKE"),r=a("+OUp"),o=a("soWg"),i=a("75tZ"),l=a("KFz6"),s=a("+u84"),d=a("Xanp"),c=a("dDsW"),m=a("JOt+"),u=a("ROQx"),g=a("LSb+"),p=a("Pvbb"),h=a("uUQ3"),f=a("f5bo"),v=a("aaqK"),x=a("wA0V"),b=a("a5L+"),y=a("AG8C"),C=a("9brV"),S=a("mdEm"),w=a("VnHZ");let BMRCardWrapper=e=>{let{isSide:t,showUserResult:a,positionType:T,articleCategories:k,onlyUseForm:D,...Y}=e,{formatMessage:I}=(0,c.A)(),{locale:B,router:N}=(0,y.$)(),F=(0,b.a)(),[E,A]=(0,r.useState)({}),{state:{isLoggedIn:R=!1}}=(0,r.useContext)(w.B)||{},{getHealthToolLink:L}=(0,o.u)(B),P=(0,r.useMemo)(()=>L(S.zY.BMR),[L]),M=(0,x.m)(),_=(0,h.X0)(B)?"imperial":"metric";(0,r.useEffect)(()=>{(async()=>{let e=await (0,m.callApiNew)(g.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_BMR_INFO);void 0!==(null==e?void 0:e.data)&&A((0,u.RT)(null==e?void 0:e.data))})()},[]);let onSubmit=async e=>{let t=null==e?void 0:e.unit,a="imperial"===t||1===Number(null==e?void 0:e.lbs),n={...e,lbs:a?1:void 0},r=n.activityLevel||S.vL.LOW_INTENSITY,o=a?f.convertLbsToKg(Number(n.weight)):Number(n.weight),i=a?f.convertFtToCm(Number(n.height)):Number(n.height),l=(0,v.hj)(String(n.gender),{age:String(n.age),height:String(i),weight:String(o)}),c={age:String(n.age),height:String(n.height),weight:String(n.weight),activityLevel:r,isCheckYourself:!!n.isCheckYourself,objective:"maintain-weight",unit:a?"imperial":"metric",lbs:n.lbs},m=(0,v.mE)(l,String(n.gender),c,{isMobile:F,positionType:T,articleCategories:k});localStorage.setItem(v.N4,JSON.stringify(m));let u="".concat(window.location.origin).concat(C.Jp).concat(P),g=(0,v.Rl)(u,String(n.gender),c),{[s.Q.birthday]:h,...x}=N.query,b={...x,gender:String((null==n?void 0:n.gender)||""),[s.Q.yourself]:String(Number(!!(null==n?void 0:n.isCheckYourself)))};a&&(b.lbs="1");try{if(await N.push({pathname:N.pathname,query:b},void 0,{shallow:!0}),R){var y;let e=(null===(y=(0,d.g)(g,{source:"bmr"}))||void 0===y?void 0:y.href)||g;await N.push(e)}else(0,p.YA)(g,"bmr")}catch(e){console.error("BMRCardWrapper onSubmit navigation failed",e)}},z=f.generateBmiRules({f:I,locale:B}),W=f.bmiUnitValidation[B];return D?(0,n.Y)(i.B,{...Y,onSubmit:onSubmit,bmiGenerated:z,bmiUnit:W,formLayout:F||t?"default":"inline",submitProps:{dataEventLabel:M},isMobile:F,defaultUnitSystem:_}):(0,n.Y)(l.V,{...Y,bmrContent:E,bmiGenerated:z,bmiUnit:W,bmiLink:P,formProps:{isMobile:F,formLayout:F||t?"default":"inline",onSubmit,defaultUnitSystem:_,submitProps:{dataEventLabel:M}}})}},dJM9:function(e,t,a){"use strict";a.r(t),a.d(t,{BabyGrowthCard:function(){return BabyGrowthCard}});var n=a("BGKE"),r=a("+OUp"),o=a("soWg"),i=a("Pi6y"),l=a("kJ9R"),s=a("Xanp"),d=a("p46w"),c=a.n(d),m=a("JOt+"),u=a("ROQx"),g=a("LSb+"),p=a("Pvbb"),h=a("wA0V"),f=a("a5L+"),v=a("AG8C"),x=a("9brV"),b=a("ErZK"),y=a("mdEm"),C=a("VnHZ");let BabyGrowthCard=e=>{let{onlyUseForm:t,showUserResult:a,isSide:d,...S}=e,w=(0,f.a)(),{state:{isLoggedIn:T}}=(0,r.useContext)(C.B),{locale:k,router:{push:D}}=(0,v.$)(),{getHealthToolLink:Y}=(0,o.u)(k),I=(0,r.useMemo)(()=>Y(y.zY.BABY_GROWTH),[Y]),[B,N]=(0,r.useState)(null);(0,r.useEffect)(()=>{(async()=>{let e=await (0,m.callApiNew)(g.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_BABY_GROWTH_INFO);N(()=>(0,u.QY)(null==e?void 0:e.data))})()},[]);let F=(0,h.m)(),onSubmit=async e=>{let t="".concat(window.location.origin).concat(x.Jp).concat(I,"result?is_embed=true"),a={...e,name:e.name||""};if(c().set(b.WJ,JSON.stringify(a)),T){var n;D((null===(n=(0,s.g)(t,{source:"baby-growth"}))||void 0===n?void 0:n.href)||t)}else(0,p.YA)(t,"baby-growth")};return I?t?(0,n.Y)(l.B,{onSubmit:onSubmit,formLayout:w||d?"default":"inline",submitProps:{dataEventLabel:F},...S}):(0,n.Y)(i.t,{babyGrowthContent:B,formProps:{onSubmit,formLayout:w||d?"default":"inline",submitProps:{dataEventLabel:F}},...S}):(0,n.Y)("div",{style:{height:500}})}},W1kr:function(e,t,a){"use strict";a.r(t),a.d(t,{DueDateCardWrapper:function(){return DueDateCardWrapper}});var n=a("BGKE"),r=a("+OUp"),o=a("8+IF"),i=a("h+21"),l=a("+u84"),s=a("soWg"),d=a("Xanp"),c=a("JOt+"),m=a("ROQx"),u=a("LSb+"),g=a("Pvbb"),p=a("OWsn"),h=a("wA0V"),f=a("a5L+"),v=a("AG8C"),x=a("9brV"),b=a("mdEm"),y=a("VnHZ"),C=a("NLe/");let DueDateCardWrapper=e=>{let{onlyUseForm:t,isSide:a,showUserResult:S,...w}=e,{locale:T}=(0,v.$)(),{getHealthToolLink:k}=(0,s.u)(T),D=(0,r.useMemo)(()=>k(b.zY.DUE_DATE),[k]),Y=(0,f.a)(),I=(0,h.m)(),{state:B}=(0,r.useContext)(y.B)||{},{userInfo:N}=B||{},[F,E]=(0,r.useState)({}),A=(0,r.useMemo)(()=>{var e;return F&&{...F,featured_image:(0,C.UQ)(F.featured_image,{width:48}),reviewed_by:{...F.reviewed_by,avatar:(0,C.UQ)(null===(e=F.reviewed_by)||void 0===e?void 0:e.avatar,{width:32})}}},[F]),R=(0,r.useMemo)(()=>(0,m.th)(null==F?void 0:F.reviewed_by),[F]);(0,r.useEffect)(()=>{(async()=>{let e=await (0,c.callApiNew)(u.PATHS.HEALTH_TOOL.GET_DUE_DATE_INFO);E(null==e?void 0:e.data)})()},[]);let onSubmitDueDate=(e,t)=>{var a;let n="".concat(window.location.origin).concat(x.Jp).concat(D,"?").concat(t).concat(l.a.includes(T)?"&joincommunity=1":"");if(!(null==N?void 0:N.id))return(0,g.YA)(n,"due-date");let r={source_url:window.location.href};localStorage.setItem(p.Ui,JSON.stringify(r)),window.location.href=(null===(a=(0,d.g)(n,{source:"due-date"}))||void 0===a?void 0:a.href)||n};return D?t?(0,n.Y)(o.D,{isMobile:Y,onSubmit:onSubmitDueDate,formLayout:Y||a?"default":"inline",submitProps:{dataEventLabel:I},...w,locale:T}):(0,n.Y)(i.C,{dueDatePageInfo:A,expertUrl:R,formProps:{isMobile:Y,formLayout:Y||a?"default":"inline",onSubmit:onSubmitDueDate,submitProps:{dataEventLabel:I}},...w,locale:T}):(0,n.Y)("div",{style:{height:500}})}},NVrP:function(e,t,a){"use strict";a.r(t),a.d(t,{OvulationCardWrapper:function(){return OvulationCardWrapper}});var n=a("BGKE"),r=a("+OUp"),o=a("soWg"),i=a("yXuZ"),l=a("t0Yg"),s=a("+u84"),d=a("Xanp"),c=a("8BcA"),m=a.n(c),u=a("JOt+"),g=a("ROQx"),p=a("LSb+"),h=a("Pvbb"),f=a("wA0V"),v=a("a5L+"),x=a("AG8C"),b=a("9brV"),y=a("mdEm"),C=a("VnHZ");let getOvulationResultLink=(e,t)=>{let{method:a,periodDateStart:n,periodLength:r,cycle:o}=t;return"".concat(e,"?").concat(s.Q.method,"=").concat(a,"&").concat(s.Q.day,"=").concat(m()(n).format(b.qC),"&").concat(s.Q.cycle,"=").concat(o,"&").concat(s.Q.period,"=").concat(r)},OvulationCardWrapper=e=>{let{onlyUseForm:t,isSide:a=!1,showUserResult:s,...c}=e,{locale:m,router:S}=(0,x.$)(),{state:w}=(0,r.useContext)(C.B)||{},{isLoggedIn:T}=w||{},k=(0,v.a)(),D=(0,f.m)(),{getHealthToolLink:Y}=(0,o.u)(m),I=(0,r.useMemo)(()=>Y(y.zY.OVULATION),[Y]),updateOvulationInfoResult=e=>{if(e){var t;let a=getOvulationResultLink("".concat(window.location.origin).concat(b.Jp).concat(I),e);S.push((null===(t=(0,d.g)(a,{source:"ovulation"}))||void 0===t?void 0:t.href)||a)}},[B,N]=(0,r.useState)({}),F=(0,r.useMemo)(()=>(0,g.th)(null==B?void 0:B.reviewed_by),[B]);if((0,r.useEffect)(()=>{(async()=>{let e=await (0,u.callApiNew)(p.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_OVULATION_INFO);N(null==e?void 0:e.data)})()},[]),!I)return(0,n.Y)("div",{style:{height:500}});let onSubmit=e=>{let t={method:e.calculatorType,periodDateStart:e.lastPeriodDate,cycle:Number(e.cycleLength),periodLength:Number(e.periodLength),source_url:window.location.href};localStorage.setItem("ovulationInfo",JSON.stringify(t)),T?updateOvulationInfoResult(t):(0,h.YA)(getOvulationResultLink("".concat(window.location.origin).concat(b.Jp).concat(I),t),"ovulation")};return t?(0,n.Y)(i.O,{onSubmit:onSubmit,formLayout:k||a?"default":"inline",isMobile:k,submitProps:{dataEventLabel:D},...c}):(0,n.Y)(l.D,{expertUrl:F,ovulationPageInfo:B,formProps:{isMobile:k,formLayout:k||a?"default":"inline",onSubmit,submitProps:{dataEventLabel:D}},...c})}},efBK:function(e,t,a){"use strict";a.r(t),a.d(t,{PWGCardWrapper:function(){return PWGCardWrapper}});var n=a("BGKE"),r=a("+OUp"),o=a("soWg"),i=a("iCm1"),l=a("XJ7Q"),s=a("+u84"),d=a("Xanp"),c=a("JOt+"),m=a("ROQx"),u=a("LSb+"),g=a("Pvbb"),p=a("wA0V"),h=a("a5L+"),f=a("AG8C"),v=a("9brV"),x=a("mdEm"),b=a("VnHZ");let PWGCardWrapper=e=>{let{isSide:t,onlyUseForm:a,...y}=e,{locale:C,router:S}=(0,f.$)(),{state:w}=(0,r.useContext)(b.B)||{},{isLoggedIn:T}=w||{},[k,D]=(0,r.useState)({}),{getHealthToolLink:Y}=(0,o.u)(C),I=(0,r.useMemo)(()=>Y(x.zY.PWG),[Y]);(0,r.useEffect)(()=>{(async()=>{let e=await (0,c.callApiNew)(u.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_PWG_INFO);D((0,m.vr)(null==e?void 0:e.data))})()},[]);let onSubmit=e=>{let t=Number(e.weight),a=Number(e.height),n=Number(e.lastWeight),r=Number(e.pregnantWeek),o=Math.round(t/(a/100*a/100)*10)/10,i=t-n,l=e.hasTwin?"twins":"notwins",c={yourSelf:"self",pwg:i,bmi:o,week:Number(e.pregnantWeek),twin:!!e.hasTwin,weightBefore:n,weight:t,height:a,source_url:window.location.href};localStorage.setItem("pwgInfo",JSON.stringify(c)),(async()=>{let e="".concat(window.location.origin).concat(v.Jp).concat(I,"?").concat(s.Q.pwg,"=").concat(i,"&").concat(s.Q.bmi,"=").concat(o,"&").concat(s.Q.week,"=").concat(r,"&").concat(s.Q.twins,"=").concat(l,"&").concat(s.Q.weightBefore,"=").concat(n,"&").concat(s.Q.weight,"=").concat(t).concat(s.a.includes(C)?"&joincommunity=1":"");if(T){var a;S.push((null===(a=(0,d.g)(e,{source:"pregnancy-weight-gain"}))||void 0===a?void 0:a.href)||e)}else(0,g.YA)(e,"pregnancy-weight-gain")})()},B=(0,h.a)(),N=(0,p.m)();return I?a?(0,n.Y)(i.P,{formLayout:B||t?"default":"inline",onSubmit:onSubmit,submitProps:{dataEventLabel:N},...y}):(0,n.Y)(l.C,{pwgContent:k,formProps:{formLayout:B||t?"default":"inline",onSubmit,submitProps:{dataEventLabel:N}},...y}):null}},wZxR:function(e,t,a){"use strict";a.r(t),a.d(t,{THRCardWrapper:function(){return THRCardWrapper}});var n=a("BGKE"),r=a("+OUp"),o=a("soWg"),i=a("lyNv"),l=a("/FLf"),s=a("+u84"),d=a("Xanp"),c=a("8BcA"),m=a.n(c),u=a("p46w"),g=a.n(u),p=a("99+y"),h=a("JOt+"),f=a("ROQx"),v=a("LSb+"),x=a("Pvbb"),b=a("/sjq"),y=a("wA0V"),C=a("a5L+"),S=a("AG8C"),w=a("9brV"),T=a("mdEm"),k=a("VnHZ"),D=a("/GlT");let THRCardWrapper=e=>{let{showUserResult:t,isSide:a,onlyUseForm:c,...u}=e,Y=(0,C.a)(),I=(0,p.useRouter)(),B=(0,y.m)(),[N,F]=(0,r.useState)({}),{state:E}=(0,r.useContext)(k.B)||{},{isLoggedIn:A}=E||{},{locale:R,router:{defaultLocale:L="en-PH"}}=(0,S.$)(),{getHealthToolLink:P}=(0,o.u)(R),M=(0,r.useMemo)(()=>P(T.zY.THR),[P]);(0,r.useEffect)(()=>{(async()=>{let e=await (0,h.callApiNew)(v.PATHS.HEALTH_TOOL.GET_HEALTH_TOOL_THR_INFO);F((0,f.Nk)(null==e?void 0:e.data))})()},[]);let onSubmit=e=>{let{heartRate:t,gender:a,age:n,activeValue:r}=e,o=m()(n).format(w.a7),i={gender:a,age:o,rate:t,intensity:r,source_url:window.location.href};g().set(w.Ok,JSON.stringify(i),{domain:".".concat(b.domainLocales[R||L]),path:"/"}),(async()=>{I.push({...I,query:{...I.query,gender:a||"",birthday:n?m()(n).format("MM-DD-YYYY"):""}},void 0,{shallow:!0});let e="".concat(window.location.origin).concat(w.Jp).concat(M,"?").concat(s.Q.gender,"=").concat((0,D.ik)(a),"&").concat(s.Q.age,"=").concat(o,"&").concat(s.Q.rate,"=").concat(t,"&").concat(s.Q.intensity,"=").concat(r);if(A){var i;I.push((null===(i=(0,d.g)(e,{source:"target-heart-rate"}))||void 0===i?void 0:i.href)||e)}else(0,x.YA)(e,"target-heart-rate")})()};return M?c?(0,n.Y)(i.T,{onSubmit:onSubmit,formLayout:Y||a?"default":"inline",submitProps:{dataEventLabel:B},...u}):(0,n.Y)(l.w,{thrContent:N,isSide:a,formProps:{onSubmit,formLayout:Y||a?"default":"inline",submitProps:{dataEventLabel:B}},...u}):(0,n.Y)("div",{style:{height:500}})}},"7xX9":function(e,t,a){"use strict";a.d(t,{BZ:function(){return subotInlineFirstNode},EC:function(){return l},M:function(){return subotInlineMessage},Q8:function(){return subotInlineImpression},Vm:function(){return subotInlineClick}});var n=a("+OUp"),r=a("LSb+"),o=a("aVqH"),i=a("bPK4");let l=(0,n.createContext)({activeId:"",params:{},nodes:[],trackingCommonInline:{}}),subotInlineClick=async e=>{try{return await (0,o.px)((0,i.PU)(r.PATHS.SUBOT.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}},subotInlineImpression=async e=>{try{return await (0,o.px)((0,i.PU)(r.PATHS.SUBOT.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}},subotInlineMessage=async e=>{try{return await (0,o.px)((0,i.PU)(r.PATHS.SUBOT.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}},computeExtraSettingsForBot=e=>{var t;if((null==e?void 0:e._status)===1&&(null==e?void 0:null===(t=e._data)||void 0===t?void 0:t.extra_settings))try{let t=JSON.parse(e._data.extra_settings);"object"==typeof t?e._data.extra_settings=t:e._data.extra_settings={sync_data_friso_campaign:!1}}catch(t){e._data.extra_settings={sync_data_friso_campaign:!1}}return e},subotInlineFirstNode=async e=>{try{let t=await (0,o.px)((0,i.PU)(r.PATHS.SUBOT.GET_INLINE_FIRST_NODE)+"/".concat(e),"GET");return computeExtraSettingsForBot(t),t}catch(e){}}},"5Zd0":function(e,t,a){"use strict";a.d(t,{p:function(){return SubotCss}});var n=a("+OUp");let SubotCss=()=>((0,n.useEffect)(()=>{setTimeout(()=>{a.e(9577).then(a.t.bind(a,"Dfpe",23))},1e3)},[]),null)},cHEW:function(e,t,a){"use strict";a.d(t,{MY:function(){return _CardPost},Un:function(){return r}});var n,r,o=a("BGKE"),i=a("+OUp"),l=a("g9Qi"),s=a("62F8"),d=a("Bell"),c=a("P+HS"),m=a("D7zM"),u=a("r+qb"),g=a("220y"),p=a("vH4S"),h=a("dDsW"),f=a("JOt+"),v=a("LSb+"),x=a("bPK4"),b=a("AG8C"),y=a("9brV"),C=a("VnHZ");(n=r||(r={}))[n.post=1]="post",n[n.reply=2]="reply";let S=(0,p.createStyles)(()=>({postContent:{position:"relative"},linkOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0}})),_CardPostItem=e=>{var t,a;let{post:n,comment:r,children:w,hasExpertComment:T,...k}=e,{state:{isLoggedIn:D}}=(0,i.useContext)(C.B),{locale:Y}=(0,b.$)(),I=(0,p.useMantineTheme)(),{classes:B}=S(),{formatMessage:N}=(0,h.A)(),F=null==n?void 0:n.community,E=null==n?void 0:n.author,A=(null==E?void 0:E.name)||(null==E?void 0:E.username)||"",R=(null==E?void 0:E.username)||(null==E?void 0:E.name)||"",L=null==E?void 0:E.avatar,P=(null==n?void 0:n.isAnonymous)?void 0:null==E?void 0:E.role,M={isAnonymous:null==n?void 0:n.isAnonymous,avatar:L,name:A,username:R,email:null==E?void 0:E.email,timeText:null==n?void 0:n.createdTime,time:(null==n?void 0:n.scheduleDate)||(null==n?void 0:n.createdDate),community:F,className:"post-author with-popover",role:P,title:null==E?void 0:E.title,userId:null==E?void 0:E.id,expertId:String(null==n?void 0:null===(t=n.author)||void 0===t?void 0:t.partnerId),"data-testid":"name"},[_,z]=(0,i.useState)(n.liked),[W,H]=(0,i.useState)(!1),handleLikeClick=async()=>{D?(await (0,f.callApiNew)(v.PATHS.TOGETHER.POST_TOGETHER_LIKE_POST,{params:{postId:n.id}},"together"),z(e=>!e),H(!0)):y.dX?m.u.getState().triggerLogin({returnUrl:"".concat((0,x.oN)(Y),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(null==F?void 0:F.slug,"/").concat(null==n?void 0:n.slug,"?postAction=like")))}):window.open((0,x.gQ)("".concat((0,x.oN)(Y),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(null==F?void 0:F.slug,"/").concat(null==n?void 0:n.slug,"?postAction=like")))))},[O,G]=(0,i.useState)(null==n?void 0:n.likesCount),V="/community/".concat(F.slug,"/").concat(null==n?void 0:n.slug),onClickPost=(e,t)=>{null==e||e.preventDefault(),D?window.open("".concat(V).concat(t)):y.dX?m.u.getState().triggerLogin({returnUrl:"".concat((0,x.oN)(Y),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(F.slug,"/").concat(null==n?void 0:n.slug).concat(t)))}):window.location.href=(0,x.gQ)("".concat((0,x.oN)(Y),"/community/on-boarding/?returnUrl=/").concat(F.slug,"/").concat(null==n?void 0:n.slug,"?source=communities&action=embeddedarticle&campaign=").concat(F.slug,"/").concat(null==n?void 0:n.slug).concat(t))};return(0,i.useEffect)(()=>{W&&(_?G(e=>++e):G(e=>--e))},[null==n?void 0:n.likesCount,W,_]),(0,o.FD)(p.Box,{sx:e=>({display:"flex",flexDirection:"column",gap:(0,p.rem)(12),border:"1px solid ".concat(e.colors.neutral[1]),padding:(0,p.rem)(24),borderRadius:(0,p.rem)(8),justifyContent:"space-between",[e.fn.smallerThan("md")]:{padding:(0,p.rem)(16)}}),...k,children:[(0,o.FD)(p.Box,{sx:()=>({display:"flex",flexDirection:"column",gap:(0,p.rem)(12)}),children:[(0,o.FD)(l.C,{...M,children:[(0,o.Y)(l.C.MainText,{children:T?(0,o.Y)("a",{href:V,title:n.title,onClick:onClickPost,children:null==n?void 0:n.title}):A}),(0,o.Y)(l.C.SubTextRow,{children:T?(0,o.FD)(o.FK,{children:[(0,o.Y)(l.C.SubText,{children:null==n?void 0:null===(a=n.author)||void 0===a?void 0:a.name}),(0,o.Y)(l.C.SubDivider,{}),(0,o.Y)(l.C.SubText,{children:null==n?void 0:n.createdTime})]}):(0,o.Y)(l.C.SubText,{children:null==n?void 0:n.createdTime})})]}),!T&&(0,o.FD)(p.Box,{sx:{display:"flex",flexDirection:"column",gap:(0,p.rem)(8)},children:[!r&&(null==n?void 0:n.title)&&(0,o.Y)("a",{href:V,title:null==n?void 0:n.title,onClick:onClickPost,children:(0,o.Y)(c.Text,{size:"s3",as:"h4",weight:"semiBold",color:I.colors.gray[8],children:n.title})}),(0,o.FD)(c.Text,{size:"p3",as:"div",className:B.postContent,children:[(0,o.Y)(s.P,{className:"post-content-wrapper",description:(null==r?void 0:r.content)||(null==n?void 0:n.description),mentions:null==n?void 0:n.mentions,maxChars:200,style:{padding:0},hideShowAllBtn:!0},String(null==n?void 0:n.id)),(0,o.Y)("a",{className:B.linkOverlay,href:V,title:null==n?void 0:n.title,onClick:onClickPost,children:"\xa0"})]})]}),w]}),(0,o.FD)(p.Box,{sx:{display:"flex",justifyContent:"space-between",alignContent:"center"},children:[T?(0,o.Y)("span",{children:"\xa0"}):(0,o.Y)(d.C,{type:1,loveCount:n.likeCount,replyCount:n.commentCount,liked:null==n?void 0:n.liked,onCommentClick:()=>{onClickPost(void 0,"#comment")},onLikeClick:handleLikeClick,children:(0,o.FD)(p.Box,{sx:{display:"flex",gap:(0,p.rem)(24)},children:[(0,o.Y)(d.C.LikeWrapper,{children:(0,o.FD)(p.Box,{sx:{display:"flex",alignItems:"center",gap:(0,p.rem)(4)},children:[(0,o.Y)(u.A,{size:20,isSolid:_,color:_?I.colors.red[8]:void 0,className:"txt-icon"}),(0,o.Y)(c.Text,{size:"p3",children:O})]})}),(0,o.Y)(d.C.CommentWrapper,{children:(0,o.FD)(p.Box,{sx:{display:"flex",alignItems:"center",gap:(0,p.rem)(4)},children:[(0,o.Y)(g.A,{size:18}),(0,o.Y)(c.Text,{size:"p3",children:n.commentsCount})]})})]})}),(0,o.Y)("a",{href:V,title:n.title,onClick:onClickPost,children:(0,o.Y)(c.Text,{size:"p4",color:I.fn.primaryColor(),children:N({id:"expert.cardPost.viewDetail"})})})]})]})},_CardComment=e=>{var t,a,n,r,d,u;let{post:g}=e,{state:{isLoggedIn:h}}=(0,i.useContext)(C.B),{classes:f}=S(),v=(null==g?void 0:null===(a=g.expertAnswer)||void 0===a?void 0:null===(t=a.answer)||void 0===t?void 0:t[0])||{},b=null==g?void 0:g.community,w=null==g?void 0:null===(n=g.expertAnswer)||void 0===n?void 0:n.expert,T=(null==w?void 0:w.name)||(null==w?void 0:w.username)||"",k=(null==w?void 0:w.username)||(null==w?void 0:w.name)||"",D=null==w?void 0:w.avatar,Y=(null==g?void 0:g.isAnonymous)?void 0:null==w?void 0:w.role,I={isAnonymous:null==v?void 0:v.isAnonymous,avatar:D,name:T,username:k,email:null==w?void 0:w.email,timeText:null==g?void 0:g.createdTime,time:(null==g?void 0:g.scheduleDate)||(null==g?void 0:g.createdDate),community:b,className:"post-author with-popover",role:Y,title:null==w?void 0:w.title,userId:null==w?void 0:w.id,expertId:String(null==g?void 0:null===(r=g.author)||void 0===r?void 0:r.partnerId),"data-testid":"name"},B="/community/".concat(b.slug,"/").concat(null==g?void 0:g.slug);return(0,o.FD)(p.Box,{sx:e=>({display:"flex",flexDirection:"column",gap:(0,p.rem)(8),border:"1px solid ".concat(e.colors.neutral[1]),padding:(0,p.rem)(12),borderRadius:(0,p.rem)(8),background:e.colors.neutral[0]}),children:[(0,o.FD)(l.C,{...I,avatarProps:{size:32},children:[(0,o.Y)(l.C.MainText,{children:null==g?void 0:null===(u=g.expertAnswer)||void 0===u?void 0:null===(d=u.expert)||void 0===d?void 0:d.name}),(0,o.Y)(l.C.SubTextRow,{children:(0,o.Y)(l.C.SubText,{children:null==g?void 0:g.createdTime})})]}),(0,o.FD)(c.Text,{size:"p3",as:"div",sx:{paddingLeft:"44px"},className:f.postContent,children:[(0,o.Y)(s.P,{className:"post-content-wrapper",description:null==v?void 0:v.content,mentions:null==g?void 0:g.mentions,maxChars:80,style:{padding:0},hideShowAllBtn:!0},String(null==g?void 0:g.id)),(0,o.Y)("a",{className:f.linkOverlay,href:B,onClick:(e,t)=>{h||(null==e||e.preventDefault(),y.dX?m.u.getState().triggerLogin({returnUrl:"".concat((0,x.oN)(locale),"/community/on-boarding/?returnUrl=").concat(encodeURIComponent("/".concat(b.slug,"/").concat(null==g?void 0:g.slug).concat(t)))}):window.open((0,x.gQ)("".concat((0,x.oN)(locale),"/community/on-boarding/?returnUrl=/").concat(b.slug,"/").concat(null==g?void 0:g.slug,"?source=communities&action=embeddedarticle&campaign=").concat(b.slug,"/").concat(null==g?void 0:g.slug).concat(t))))},title:g.title,children:"\xa0"})]})]})},_CardPost=e=>{var t,a;let{post:n,hasExpertComment:r,...i}=e;return(0,o.Y)(p.Box,{...i,children:(0,o.Y)(_CardPostItem,{post:n,hasExpertComment:r,style:{width:"100%",height:"100%"},children:r&&(null==n?void 0:null===(a=n.expertAnswer)||void 0===a?void 0:null===(t=a.answer)||void 0===t?void 0:t[0])&&(0,o.Y)(_CardComment,{post:n})})})}},aaqK:function(e,t,a){"use strict";a.d(t,{$z:function(){return updateBmrSidisStorage},FE:function(){return formatBmrStatusLabel},N4:function(){return s},Rl:function(){return generateBmrRedirect},hj:function(){return getBmrKcal},mE:function(){return generateBmrInfoToSendSidis},sX:function(){return resolveBmrScoreLevel},vI:function(){return d}});var n=a("+u84"),r=a("cr+I"),o=a("9brV"),i=a("/GlT"),l=a("1sn1");let s="bmrInfo";function formatBmrStatusLabel(e,t){return t({id:"bmr.state.".concat(e)})}function getBmrScoreLevel(e){let t=o.WO.findIndex(t=>t===e)+1;return t||1}function resolveBmrScoreLevel(e,t){let a=Number(e);return null==e||0===a||Number.isNaN(a)?getBmrScoreLevel(t):Math.floor(a)}function updateBmrSidisStorage(e){let t=JSON.parse(localStorage.getItem(s)||"null");t&&localStorage.setItem(s,JSON.stringify({...t,...e}))}let d={low_intensity:1,moderate_intensity:2,aerobic_intensity:3,vigorous_intensity:4,maximum_intensity:5};function getBmrKcal(e,t){return Math.round(("male"===e?66.47+13.75*parseFloat(t.weight)+5.003*parseFloat(t.height)-6.755*parseFloat(t.age):655.1+9.563*parseFloat(t.weight)+1.85*parseFloat(t.height)-4.676*parseFloat(t.age))*100)/100}function generateBmrRedirect(e,t,a){let o=r.stringifyUrl({url:e,query:{result:1,[n.Q.gender]:(0,i.ik)(t),[n.Q.age]:a.age,[n.Q.height]:a.height,[n.Q.weight]:a.weight,[n.Q.yourself]:Number(!!a.isCheckYourself),[n.Q.activityLevel]:a.activityLevel,joincommunity:1,...1===Number(a.lbs)?{lbs:1}:{}}},{skipEmptyString:!0,skipNull:!0});return o}function generateBmrInfoToSendSidis(e,t,a,n){var r;let{articleCategories:o,positionType:i}=n,s=null!==(r=a.unit)&&void 0!==r?r:1===Number(a.lbs)?"imperial":"metric",c={age:a.age,height:a.height,weight:a.weight,kcal:e,kcal_level:function(e,t){let a=(0,l.gc)({bmr:e,gender:"female"===t?"female":"male"});return getBmrScoreLevel(a)}(e,t),gender:t,unit:s,position_type:i,device_type:"web",...(null==a?void 0:a.isCheckYourself)&&{is_my_self:1},...(null==a?void 0:a.activityLevel)&&{active_level:(null==d?void 0:d[a.activityLevel])||1},source_url:window.location.href};return o&&(c.categories=o.map(e=>({name:e.name||"",permalink:e.permalink||"",term_id:e.termId||"",text_color:e.textColor||""}))),c}},LkQj:function(e,t,a){"use strict";a.d(t,{W:function(){return GTMScript}});var n=a("BGKE"),r=a("PTO7"),o=a.n(r);let GTMScript=e=>{let{servicePageTrackingParams:t}=e,{pageId:a,audienceId:r,funnelId:i}=t||{};return(0,n.Y)(o(),{async:!0,strategy:"lazyOnload",id:"gtm-mount-script",dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n ".concat(r?"\n window.dataLayer.push({\n audience_name: '".concat(r||"","',\n user_funnel: '").concat(i||"","',\n project_id: '").concat(a||"","'\n });\n "):""," \n\n function gtag(){\n window.dataLayer.push(arguments);\n }\n window.gtag = gtag;\n\n function loadGTM() {\n if (window.__gtmLoaded) return;\n window.__gtmLoaded = true;\n window.dataLayer.push({\n 'gtm.start': new Date().getTime(),\n event: 'gtm.js'\n });\n const s = document.createElement(\"script\");\n s.async = true;\n s.src = \"https://www.googletagmanager.com/gtm.js?id=").concat("GTM-WDHZFL",'";\n document.head.appendChild(s);\n \n }\n ["scroll", "pointerdown", "keydown"].forEach(evt =>\n window.addEventListener(evt, loadGTM, { once: true, passive: true })\n );\n\n if ("requestIdleCallback" in window) {\n requestIdleCallback(loadGTM, { timeout: 5000 });\n } else {\n setTimeout(loadGTM, 5000);\n }\n ')}},"gtm-mount-script")}},Yytz:function(e,t,a){"use strict";a.d(t,{q9:function(){return i},so:function(){return o}});var n=a("VoJx"),r=a.n(n);r()(()=>Promise.all([a.e(3734),a.e(4555),a.e(7638),a.e(3594),a.e(6085)]).then(a.bind(a,"qZPO")).then(e=>e.SubotInline),{loadableGenerated:{webpack:()=>["qZPO"]},ssr:!1});let o=r()(()=>Promise.all([a.e(3734),a.e(6852)]).then(a.bind(a,"EE8p")).then(e=>e.SubotInlineRevampWithTheme),{loadableGenerated:{webpack:()=>[null]},ssr:!1});r()(()=>a.e(9451).then(a.bind(a,"Ugc6")).then(e=>e.InjectedRelatedPosts),{loadableGenerated:{webpack:()=>["Ugc6"]}}),r()(()=>a.e(8224).then(a.bind(a,"/2Zb")).then(e=>e.HealthConcern),{loadableGenerated:{webpack:()=>["/2Zb"]}}),r()(()=>a.e(4841).then(a.bind(a,"6UTK")).then(e=>e.CollapsibleFaqs),{loadableGenerated:{webpack:()=>["6UTK"]}}),r()(()=>a.e(7379).then(a.bind(a,"UXeX")),{loadableGenerated:{webpack:()=>["UXeX"]}}),r()(()=>Promise.all([a.e(1856),a.e(2621),a.e(101),a.e(3760),a.e(2897),a.e(5263),a.e(1451),a.e(1839),a.e(381),a.e(9418),a.e(5885),a.e(3805),a.e(9096),a.e(638),a.e(4640),a.e(121),a.e(2300)]).then(a.bind(a,"O7OQ")).then(e=>e.EmbeddedSpotlight),{loadableGenerated:{webpack:()=>["O7OQ"]}}),r()(()=>Promise.all([a.e(4728),a.e(2584),a.e(7757),a.e(1629)]).then(a.bind(a,"z7zN")).then(e=>e.EmbeddedCommunity),{loadableGenerated:{webpack:()=>["z7zN"]}}),r()(()=>Promise.all([a.e(2897),a.e(6255),a.e(5263),a.e(6724),a.e(6548),a.e(3319),a.e(5017)]).then(a.bind(a,"Es4b")).then(e=>e.BMICard),{loadableGenerated:{webpack:()=>["Es4b"]}}),r()(()=>Promise.all([a.e(6255),a.e(5263),a.e(6724),a.e(4107),a.e(4208)]).then(a.bind(a,"2Aas")).then(e=>e.BMICardWrapper),{loadableGenerated:{webpack:()=>["2Aas"]}}),r()(()=>Promise.all([a.e(7176),a.e(4985),a.e(2785)]).then(a.bind(a,"khRf")).then(e=>e.BMRCard),{loadableGenerated:{webpack:()=>["khRf"]}}),r()(()=>Promise.all([a.e(6255),a.e(5263),a.e(6724),a.e(824)]).then(a.bind(a,"lXMR")).then(e=>e.BMRCardWrapper),{loadableGenerated:{webpack:()=>["lXMR"]}}),r()(()=>Promise.all([a.e(3760),a.e(2897),a.e(6255),a.e(5263),a.e(6724),a.e(1451),a.e(9705),a.e(6548),a.e(8114),a.e(3319),a.e(1991)]).then(a.bind(a,"z0S7")).then(e=>e.DueDateCard),{loadableGenerated:{webpack:()=>["z0S7"]}});let i=r()(()=>Promise.all([a.e(3760),a.e(2897),a.e(1451),a.e(1240)]).then(a.bind(a,"W1kr")).then(e=>e.DueDateCardWrapper),{loadableGenerated:{webpack:()=>["W1kr"]}});r()(()=>Promise.all([a.e(3760),a.e(2897),a.e(3805),a.e(2275)]).then(a.bind(a,"NVrP")).then(e=>e.OvulationCardWrapper),{loadableGenerated:{webpack:()=>["NVrP"]}}),r()(()=>Promise.all([a.e(3760),a.e(2897),a.e(9096),a.e(8735)]).then(a.bind(a,"dJM9")).then(e=>e.BabyGrowthCard),{loadableGenerated:{webpack:()=>["dJM9"]}}),r()(()=>Promise.all([a.e(738),a.e(2843)]).then(a.bind(a,"XTfT")).then(e=>e.OvulationCard),{loadableGenerated:{webpack:()=>["XTfT"]}}),r()(()=>Promise.all([a.e(738),a.e(8484)]).then(a.bind(a,"GRVC")).then(e=>e.PWGCard),{loadableGenerated:{webpack:()=>["GRVC"]}}),r()(()=>Promise.all([a.e(2897),a.e(1153)]).then(a.bind(a,"efBK")).then(e=>e.PWGCardWrapper),{loadableGenerated:{webpack:()=>["efBK"]}}),r()(()=>Promise.all([a.e(738),a.e(4985),a.e(6831)]).then(a.bind(a,"2oRe")).then(e=>e.THRCard),{loadableGenerated:{webpack:()=>["2oRe"]}}),r()(()=>Promise.all([a.e(3760),a.e(2897),a.e(3125)]).then(a.bind(a,"wZxR")).then(e=>e.THRCardWrapper),{loadableGenerated:{webpack:()=>["wZxR"]}}),r()(()=>a.e(425).then(a.bind(a,"fY7c")).then(e=>e.BabyPoopCard),{loadableGenerated:{webpack:()=>["fY7c"]}}),r()(()=>Promise.all([a.e(3760),a.e(2897),a.e(2186)]).then(a.bind(a,"7ZMO")).then(e=>e.BabyVaccinationCard),{loadableGenerated:{webpack:()=>["7ZMO"]}}),r()(()=>a.e(5209).then(a.bind(a,"EDtq")).then(e=>e.ArticleRecommendation),{loadableGenerated:{webpack:()=>["EDtq"]}}),r()(()=>a.e(9104).then(a.bind(a,"Wxzg")).then(e=>e.ContentItemAppBanner),{loadableGenerated:{webpack:()=>["Wxzg"]}}),r()(()=>Promise.all([a.e(9705),a.e(3087)]).then(a.bind(a,"+qUI")).then(e=>e.ContentItemInterscrollerAd),{loadableGenerated:{webpack:()=>["+qUI"]}}),r()(()=>a.e(267).then(a.bind(a,"Zkkd")).then(e=>e.ContentItemVideoList),{loadableGenerated:{webpack:()=>["Zkkd"]}}),r()(()=>Promise.all([a.e(8669),a.e(3739),a.e(3429)]).then(a.bind(a,"iifB")).then(e=>e.RelatedArticleCarousel),{loadableGenerated:{webpack:()=>["iifB"]}}),r()(()=>a.e(2095).then(a.bind(a,"JaaR")).then(e=>e.EmbeddedAffiliate),{loadableGenerated:{webpack:()=>["JaaR"]}}),r()(()=>a.e(5003).then(a.bind(a,"h06R")).then(e=>e.ReadMore),{loadableGenerated:{webpack:()=>["h06R"]}}),r()(()=>a.e(5393).then(a.bind(a,"sZMt")).then(e=>e.PremiumContentBanner),{loadableGenerated:{webpack:()=>["sZMt"]}}),r()(()=>Promise.all([a.e(5938),a.e(6922)]).then(a.bind(a,"jeYB")).then(e=>e.ProductsWidget),{loadableGenerated:{webpack:()=>["jeYB"]}}),r()(()=>Promise.all([a.e(5163),a.e(6260),a.e(3760),a.e(2897),a.e(1839),a.e(8666),a.e(2682),a.e(4245)]).then(a.bind(a,"6MGn")).then(e=>e.LeadGenSubscriptionBox),{loadableGenerated:{webpack:()=>[null]},ssr:!1})},ohnT:function(e,t,a){"use strict";a.d(t,{MI:function(){return setAudienceTermId},MY:function(){return addPageCookies},Z0:function(){return getSessionsColor},fG:function(){return getServicePageParams},k5:function(){return handleScrollToBlock},pZ:function(){return getPageCookies}});var n=a("p46w"),r=a.n(n),o=a("ErZK"),i=a("imPi");let getPageCookies=e=>{var t;return null===(t=JSON.parse(r().get(o.jf)||"[]").filter(t=>t.pageId===e))||void 0===t?void 0:t[0]},addPageCookies=e=>{let{pageId:t,audienceId:a="",audienceTermId:n="",funnelId:i=""}=e,l=JSON.parse(r().get(o.jf)||"[]"),s=l.findIndex(e=>e.pageId===t);-1===s?l.push({pageId:t,audienceId:a,audienceTermId:n,funnelId:i}):l[s]={pageId:t,audienceId:a,audienceTermId:n,funnelId:i},r().set(o.jf,JSON.stringify(l))},setAudienceTermId=(e,t)=>{let a=JSON.parse(r().get(o.jf)||"[]"),n=a.findIndex(t=>t.pageId===e);a[n]&&(a[n].audienceTermId=t),r().set(o.jf,JSON.stringify(a))},l=["primary","secondary","tertiary","quaternary","tertiary"],getSessionsColor=(e,t)=>e.map((e,a)=>t[l[a%l.length]]),getServicePageParams=()=>JSON.parse(r().get(o.oP)||"{}"),customScrollTo=(e,t)=>{let a=e.toFixed(),onScroll=function(){window.pageYOffset.toFixed()===a&&(window.removeEventListener("scroll",onScroll),null==t||t())};window.addEventListener("scroll",onScroll),onScroll(),window.scrollTo({top:e,behavior:"smooth"})},handleScrollToBlock=e=>{let{hash:t,isMobile:a,callback:n}=e,r=a?0:69;t&&i.$.measure(()=>{var e;let a=null===(e=document)||void 0===e?void 0:e.querySelector('[data-hashtag="'.concat(t,'"]')),o=Number((null==a?void 0:a.getAttribute("data-gap"))||0);a&&customScrollTo(window.scrollY+a.getBoundingClientRect().top-r-o,n)})}},Vjb9:function(e,t,a){"use strict";a.d(t,{I:function(){return CarePathDefaultTemplate}});var n,r,o=a("BGKE"),i=a("AeFk"),l=a("+OUp"),s=a.n(l),d=a("Wbba"),c=a("vH4S"),m=a("ns0B"),u=a.n(m),g=a("VoJx"),p=a.n(g),h=a("JOt+"),f=a("LSb+"),v=a("q6HN"),x=a("SHon"),b=a("WkTD"),y=a("XVAb"),C=a("a5L+"),S=(0,c.createStyles)(e=>({root:{borderRadius:16,img:{borderRadius:"inherit"},[e.fn.largerThan("sm")]:{borderRadius:24}}}));let AppFooterBanner=e=>{let{banner:t,url:a="",alt:n="",className:r,classNames:i,styles:l,...s}=e,d=(0,C.a)(),{classes:m,cx:u}=S(void 0,{name:"AppFooterBanner",styles:l,classNames:i});return(0,o.Y)(c.Box,{className:u(r,m.root),component:d&&a?"a":"div",href:a,target:"_blank",...s,children:(0,o.Y)("img",{loading:"lazy",src:d?null==t?void 0:t.mobile:null==t?void 0:t.desktop,alt:n})})};var w=a("P+HS"),T=a("4BRW"),k=a("dDsW"),D=a("/sjq"),Y=a("AG8C"),I=a("9brV"),B=a("TaKJ"),N=a("m42D"),F=a("0e15"),E=a("pUA5"),A=a("ChHM");let getCarePathDoctorListFilterInteractiveStyles=(e,t)=>{let a=(null==t?void 0:t.filterColor)?"transparent":e.colors.neutral[2],n=(null==t?void 0:t.filterColor)?"rgba(255, 255, 255, 0.65)":e.colors.blue[3],r=(null==t?void 0:t.filterColor)?"0 0 6px 1px rgba(255, 255, 255, 0.35)":"0 0 6px 1px ".concat(e.fn.rgba(e.colors.blue[5],.3)),o=(null==t?void 0:t.filterColor)?"0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 12px 3px ".concat(e.fn.rgba(e.white,.3)):"0 0 0 1px ".concat(e.fn.rgba(e.colors.blue[4],.45),", 0 0 12px 4px ").concat(e.fn.rgba(e.colors.blue[5],.35));return{transition:"box-shadow 200ms ease, border-color 200ms ease","&:hover:not(:focus):not(:focus-visible)":{borderColor:a,boxShadow:r},"&:focus":{borderColor:n,outline:"none",boxShadow:o},"&:focus-visible":{borderColor:n,outline:"none",boxShadow:o}}},getCarePathDoctorListDefaultFilterWidthSx=e=>({width:"100%",[e.fn.largerThan("sm")]:{width:(0,c.rem)(250),flexShrink:0}}),R={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:(0,c.rem)(32),height:(0,c.rem)(32),borderRadius:9999,backgroundColor:w.themeColors.neutral[0],overflow:"hidden",lineHeight:0},renderOptionIcon=e=>{if(!e)return null;if("string"==typeof e)return(0,o.Y)(c.Box,{sx:R,children:(0,o.Y)(c.Box,{component:"img",src:e,alt:"",sx:{width:(0,c.rem)(20),height:(0,c.rem)(20),objectFit:"contain"}})});if((0,l.isValidElement)(e)){var t;return(0,o.Y)(c.Box,{sx:R,children:(0,l.cloneElement)(e,{size:null!==(t=e.props.size)&&void 0!==t?t:20})})}return(0,o.Y)(c.Box,{sx:R,children:(0,o.Y)(e,{size:20,color:"#111111"})})},L=(0,l.forwardRef)((e,t)=>{let{value:a,onChange:n,filterOpts:r,filterColor:i,filterIcon:s=F.A,layout:d="default",placeholder:m,optionDataEventCategory:u,optionDataEventAction:g}=e,{formatMessage:p}=(0,k.A)(),[h,f]=(0,l.useState)(!1),v=(0,c.useMantineTheme)(),x=(0,A.L)(()=>f(!1)),b="iconOnly"===d,y=null!==a&&"all"!==a,C=b&&y?"#111":i?"#fff":"#111",S=null!=m?m:p({id:"carePathDoctorList.placeholderSearchCity"}),T=(0,l.useMemo)(()=>{var e;return null===(e=r.find(e=>e.value===a))||void 0===e?void 0:e.label},[r,a]),D=T||S;return(0,l.useImperativeHandle)(t,()=>({openFilter:()=>f(!0)})),(0,o.FD)(c.Box,{ref:x,sx:{position:"relative",userSelect:"none",width:b?"auto":"100%"},children:[(0,o.Y)(c.Flex,{align:"center",justify:b?"center":"space-between",onClick:()=>f(e=>!e),sx:e=>({position:"relative",boxSizing:"border-box",padding:b?0:"0 ".concat((0,c.rem)(12)),backgroundColor:"#fff",borderRadius:8,border:"1px solid ".concat(i?"transparent":e.colors.neutral[2]),cursor:"pointer",gap:8,...getCarePathDoctorListFilterInteractiveStyles(e,{filterColor:i}),...b?{width:(0,c.rem)(48),height:(0,c.rem)(48),flexShrink:0}:{width:"100%",height:(0,c.rem)(48)},...i&&{backgroundColor:i,color:"#fff"},...b&&y&&{backgroundColor:"#E4E8EC"}}),"aria-label":b?D:void 0,children:b?(0,o.FD)(o.FK,{children:[(0,o.Y)(s,{size:20,color:C}),y&&(0,o.Y)(c.Box,{"aria-hidden":!0,sx:{position:"absolute",top:(0,c.rem)(6),right:(0,c.rem)(6),width:(0,c.rem)(8),height:(0,c.rem)(8),borderRadius:"50%",backgroundColor:w.themeColors.red[6],pointerEvents:"none"}})]}):(0,o.FD)(o.FK,{children:[(0,o.FD)(c.Flex,{gap:(0,c.rem)(8),align:"center",children:[(0,o.Y)(s,{size:24,color:C}),(0,o.Y)(w.Text,{size:"p2",variant:"primary",children:D})]}),(0,o.Y)(E.A,{size:24,color:i?"#fff":"#111"})]})}),(0,o.Y)(c.Box,{sx:{display:h?"block":"none",position:"absolute",top:"calc(100% + ".concat((0,c.rem)(4),")"),right:b?0:void 0,zIndex:1,minWidth:250},children:(0,o.Y)(c.Box,{sx:e=>({width:"100%",background:"#fff",border:"1px solid ".concat(e.colors.gray[1]),borderRadius:8,padding:(0,c.rem)(2),boxShadow:"0px 0px 1px 0px #0000000A, 0px 4px 8px 0px #0000000A, 0px 16px 24px 0px #0000000A, 0px 24px 32px 0px #0000000A"}),children:(0,o.Y)(c.ScrollArea.Autosize,{mah:320,type:"auto",scrollbarSize:8,sx:{thumb:{backgroundColor:v.colors.gray[2]}},children:r.map((e,t)=>{let r=e.value===a;return(0,o.FD)(c.Flex,{justify:"space-between",...u&&g?{"data-event-category":u,"data-event-action":g,"data-event-label":e.label}:{},sx:t=>({padding:e.icon?8:"".concat((0,c.rem)(8)," ").concat((0,c.rem)(16)),"&:hover":{background:t.colors.gray[1]},...r?{"&,&:hover":{backgroundColor:"#d5f1f1"}}:{cursor:"pointer"}}),onClick:()=>{n(e.value),f(!1)},children:[(0,o.FD)(c.Flex,{align:"center",gap:(0,c.rem)(8),sx:{minWidth:0},children:[renderOptionIcon(e.icon),(0,o.Y)(w.Text,{size:"p2",children:e.label})]}),r&&(0,o.Y)(N.A,{size:18,color:v.colors.blue[6]})]},String(t))})})})})]})}),getDoctorHospital=e=>{if("hospital"in e)return e.hospital},getDoctorCityId=e=>{var t;let a=null===(t=getDoctorHospital(e))||void 0===t?void 0:t.cityId;return null==a?null:String(a)},getDoctorCityName=e=>{var t;let a=null===(t=getDoctorHospital(e))||void 0===t?void 0:t.cityName.trim();return a||null},groupDoctorsByCityId=e=>{let t=new Map;return e.forEach(e=>{let a=getDoctorCityId(e);if(!a)return;let n=getDoctorCityName(e),r=t.get(a);if(r){r.doctors.push(e),!r.group.name&&n&&(r.group.name=n);return}t.set(a,{group:{id:a,name:n||a},doctors:[e]})}),Array.from(t.values())},filterCarePathDoctorListByCity=(e,t)=>{let a=null===t||"all"===t;if(a)return e;let n=groupDoctorsByCityId(e);return n.filter(e=>e.group.id===t).reduce((e,t)=>e.concat(t.doctors),[])},P=(0,l.memo)((0,l.forwardRef)((e,t)=>{let{listingAll:a,selectedFilterId:n,filterColor:r,onFilterChange:i}=e,{formatMessage:s}=(0,k.A)(),d=(0,C.a)(),c=(0,l.useRef)(null),[m,u]=(0,l.useState)(null!=n?n:null);(0,l.useEffect)(()=>{u(null!=n?n:null)},[n]);let g=(0,l.useMemo)(()=>groupDoctorsByCityId(a),[a]);(0,l.useImperativeHandle)(t,()=>({setDoctorsSelectedFilterId:e=>u(e),openFilter:()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.openFilter()}})),(0,l.useEffect)(()=>{let e=null===m||"all"===m;i({filterValue:m,isAllCitiesSelected:e})},[m,i]);let p=(0,l.useMemo)(()=>[{label:s({id:"keyword.all"}),value:"all"},...g.map(e=>({label:e.group.name,value:e.group.id}))],[s,g]);return p.length<=1?null:(0,o.Y)(L,{ref:c,value:m,onChange:u,filterOpts:p,filterColor:r,filterIcon:B.A,layout:d?"iconOnly":"default",optionDataEventCategory:"Service Connection",optionDataEventAction:"Filter Location Click"})}));var M=a("q9DY"),_=a("G82q");let normalizeForSearch=e=>(0,_.w)(e).replace(/-/g," ").replace(/\s+/g," ").trim(),textIncludesKeyword=(e,t)=>null!=e&&!!e.trim()&&!!t&&normalizeForSearch(e).includes(t),itemMatchesKeyword=(e,t)=>{var a;if("name"in e&&textIncludesKeyword(e.name,t))return!0;if("hospital"in e&&e.hospital){let a=e.hospital,n="object"==typeof a&&"name"in a?a.name:"string"==typeof a?a:"";if(textIncludesKeyword(n,t))return!0}return!!("specialtiesTransform"in e&&(null===(a=e.specialtiesTransform)||void 0===a?void 0:a.some(e=>textIncludesKeyword(e.slug,t))))},filterCarePathDoctorListByKeyword=(e,t)=>{let a=normalizeForSearch(t);return a?e.filter(e=>itemMatchesKeyword(e,a)):e},z=(0,l.memo)(e=>{let{value:t,onChange:a,className:n,filterColor:r}=e,{formatMessage:i}=(0,k.A)(),l=(0,c.useMantineTheme)(),s=t.trim().length>0,d=r?"#fff":"#111",m=r?"transparent":l.colors.neutral[2];return(0,o.Y)(w.Input,{className:n,value:t,onChange:a,placeholder:i({id:"carePathDoctorList.placeholderSearchDoctor"}),icon:(0,o.Y)(F.A,{size:20,color:d}),rightSection:s?(0,o.Y)(c.UnstyledButton,{type:"button",onClick:()=>a(""),"aria-label":i({id:"carePathDoctorList.search.clear",defaultMessage:"X\xf3a từ kh\xf3a"}),sx:{display:"flex",alignItems:"center",justifyContent:"center",width:(0,c.rem)(28),height:(0,c.rem)(28)},children:(0,o.Y)(M.A,{size:16,color:d})}):void 0,rightSectionWidth:s?(0,c.rem)(36):void 0,sx:{width:"100%"},styles:{rightSection:{pointerEvents:"auto"},input:{boxSizing:"border-box",padding:"0 ".concat((0,c.rem)(12)),paddingLeft:(0,c.rem)(36),...s&&{paddingRight:(0,c.rem)(36)},backgroundColor:r||"#fff",borderRadius:8,border:"1px solid ".concat(m),height:"".concat((0,c.rem)(48)," !important"),color:r?"#fff":"#111",fontSize:(0,c.rem)(15),lineHeight:(0,c.rem)(24),outline:"none","&::placeholder":{color:r?"#fff":"#8c8c8c"},...getCarePathDoctorListFilterInteractiveStyles(l,{filterColor:r})}}})});var W=a("YgWB"),H=a("oDhC");let isCareDoctor=e=>"specialtiesTransform"in e,groupDoctorsBySpecialtyId=e=>{let t=new Map;return e.forEach(e=>{var a;isCareDoctor(e)&&(null===(a=e.specialtiesTransform)||void 0===a||a.forEach(a=>{let n=a.id?String(a.id):"";if(!n)return;let r=t.get(n),o=a.name||a.slug||"";if(r){r.doctors.some(t=>t.id===e.id)||r.doctors.push(e),r.group.name||(r.group.name=o);return}t.set(n,{group:{id:n,name:o,thumbnail:a.thumbnail},doctors:[e]})}))}),Array.from(t.values())},doctorMatchesSpecialty=(e,t)=>{var a,n;return!!isCareDoctor(e)&&null!==(n=null===(a=e.specialtiesTransform)||void 0===a?void 0:a.some(e=>String(e.id)===t))&&void 0!==n&&n},filterCarePathDoctorListBySpecialty=(e,t)=>{let a=null===t||"all"===t;return a?e:e.filter(e=>doctorMatchesSpecialty(e,t))},O=(0,l.memo)((0,l.forwardRef)((e,t)=>{let{listingAll:a,selectedFilterId:n,filterColor:r,onFilterChange:i}=e,{formatMessage:s}=(0,k.A)(),d=(0,l.useRef)(null),[c,m]=(0,l.useState)(null!=n?n:null);(0,l.useEffect)(()=>{m(null!=n?n:null)},[n]);let u=(0,l.useMemo)(()=>groupDoctorsBySpecialtyId(a),[a]);(0,l.useImperativeHandle)(t,()=>({setSpecialtySelectedFilterId:e=>m(e),openFilter:()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.openFilter()}})),(0,l.useEffect)(()=>{let e=null===c||"all"===c;i({filterValue:c,isAllSpecialtiesSelected:e})},[c,i]);let g=(0,l.useMemo)(()=>[{label:s({id:"keyword.all"}),value:"all",icon:(0,o.Y)(W.A,{color:w.themeColors.neutral[5]})},...u.map(e=>({label:e.group.name,value:e.group.id,icon:e.group.thumbnail}))],[s,u]);return g.length<=1?null:(0,o.Y)(L,{ref:d,value:c,onChange:m,filterOpts:g,filterColor:r,layout:"iconOnly",filterIcon:H.A,optionDataEventCategory:"Service Connection",optionDataEventAction:"Filter Specialty Click"})})),applyCarePathDoctorListFilters=(e,t)=>{let{keyword:a,cityFilterId:n,specialtyFilterId:r}=t,o=filterCarePathDoctorListByKeyword(e,a),i=filterCarePathDoctorListByCity(o,n);return filterCarePathDoctorListBySpecialty(i,r)},Circle=e=>{let{color:t,...a}=e;return(0,o.Y)("svg",{width:"327",height:"168",viewBox:"0 0 327 168",fill:"none",...a,children:(0,o.Y)("path",{d:"M127 168C237.457 168 327 78.4569 327 -32C327 -142.457 237.457 -232 127 -232C16.5431 -232 -73 -142.457 -73 -32C-73 78.4569 16.5431 168 127 168Z",fill:t})})};var G=a("nnl3"),V=a("sEfC"),j=a.n(V),U=a("wA0V");let pushCarePathDoctorListSearchResultsEvent=(e,t)=>{let a=e.trim();a&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"view_search_results",event_category:"Service Connection",event_action:"Search - Care Booking",event_label:t,search_term:a}))},isCarePathDoctorListFilterActive=e=>null!==e&&"all"!==e,getCarePathDoctorListCityFilterLabel=(e,t)=>{if(!isCarePathDoctorListFilterActive(t))return null;for(let o of e){var a,n,r;if(!("hospital"in o))continue;let e=null===(a=o.hospital)||void 0===a?void 0:a.cityId;if(null==e||String(e)!==t)continue;let i=null===(r=o.hospital)||void 0===r?void 0:null===(n=r.cityName)||void 0===n?void 0:n.trim();return i||t}return t},getCarePathDoctorListSpecialtyFilterLabel=(e,t)=>{if(!isCarePathDoctorListFilterActive(t))return null;for(let n of e){var a;if(!("specialtiesTransform"in n))continue;let e=null===(a=n.specialtiesTransform)||void 0===a?void 0:a.find(e=>String(e.id)===t);if(e)return e.name||e.slug||t}return t},buildCarePathDoctorListResetEventLabel=e=>{let{searchKeyword:t,cityFilterId:a,specialtyFilterId:n,listingAll:r}=e,o=[],i=t.trim();i&&o.push(i);let l=getCarePathDoctorListCityFilterLabel(r,a);l&&o.push(l);let s=getCarePathDoctorListSpecialtyFilterLabel(r,n);return s&&o.push(s),o.join("^")},hasCarePathDoctorListActiveFilters=e=>{let{searchKeyword:t,cityFilterId:a,specialtyFilterId:n}=e;return!!t.trim()||isCarePathDoctorListFilterActive(a)||isCarePathDoctorListFilterActive(n)},K=(0,l.memo)(e=>{let{onClick:t,eventLabel:a,disabled:n=!1}=e,{formatMessage:r}=(0,k.A)();return(0,o.Y)(w.Button,{variant:"secondary",color:"#fff",onClick:t,disabled:n,leftIcon:(0,o.Y)(G.A,{size:24,color:"currentColor"}),"data-event-category":"Service Connection","data-event-action":"Reset search and filter click","data-event-label":a,sx:e=>({fontWeight:"normal",flexShrink:0,borderColor:"transparent",height:"".concat((0,c.rem)(48)," !important"),fontSize:(0,c.rem)(15),lineHeight:(0,c.rem)(24),letterSpacing:(0,c.rem)(-.3),"&:hover":{backgroundColor:"transparent",borderColor:"transparent"},"&[data-disabled]":{backgroundColor:"transparent",color:"#fff"},[e.fn.smallerThan("sm")]:{paddingRight:0},[e.fn.largerThan("sm")]:{"&:not([data-disabled])":{"&:hover":{backgroundColor:"transparent",borderColor:"#fff"}}}}),children:r({id:"reset.title",defaultMessage:"Đặt lại"})})}),keywordSearchWrapperSx=e=>({flex:1,minWidth:0,[e.fn.largerThan("sm")]:{flex:"unset",width:(0,c.rem)(250),flexShrink:0}}),doctorsFilterWrapperSx=e=>({flexShrink:0,[e.fn.largerThan("sm")]:{width:(0,c.rem)(250)}}),doctorListFilterBarSx=e=>({gap:(0,c.rem)(8),flexDirection:"column",alignItems:"stretch",width:"100%",[e.fn.largerThan("sm")]:{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",width:"auto"}}),doctorListFilterRowSx=e=>({gap:(0,c.rem)(8),flexDirection:"row",alignItems:"center",flexWrap:"nowrap",width:"100%",[e.fn.largerThan("sm")]:{width:"auto"}}),q=(0,l.memo)(e=>{let{listingAll:t,searchKeyword:a,cityFilterId:n,specialtyFilterId:r,filterColor:i,doctorsFilterRef:s,specialtiesFilterRef:d,onSearchKeywordChange:m,onDoctorsFilterChange:u,onSpecialtiesFilterChange:g,onResetFilters:p,showResetButton:h=!0}=e,f=(0,c.useMantineTheme)(),v=(0,U.m)(),x=(0,l.useMemo)(()=>j()((e,t)=>{pushCarePathDoctorListSearchResultsEvent(e,t)},300),[]);(0,l.useEffect)(()=>()=>{x.cancel()},[x]),(0,l.useEffect)(()=>{let e=a.trim();if(!e){x.cancel();return}x(e,v)},[a,v,x]);let b=(0,l.useMemo)(()=>buildCarePathDoctorListResetEventLabel({searchKeyword:a,cityFilterId:n,specialtyFilterId:r,listingAll:t}),[a,n,r,t]),y=(0,l.useMemo)(()=>!hasCarePathDoctorListActiveFilters({searchKeyword:a,cityFilterId:n,specialtyFilterId:r}),[a,n,r]);return(0,o.FD)(c.Flex,{sx:doctorListFilterBarSx(f),children:[(0,o.FD)(c.Flex,{sx:doctorListFilterRowSx(f),children:[(0,o.Y)(c.Box,{sx:keywordSearchWrapperSx(f),children:(0,o.Y)(z,{value:a,onChange:m,filterColor:i})}),(0,o.Y)(c.Box,{sx:doctorsFilterWrapperSx(f),children:(0,o.Y)(P,{ref:s,listingAll:t,selectedFilterId:n,filterColor:i,onFilterChange:u})}),(0,o.Y)(c.Box,{sx:{flexShrink:0},children:(0,o.Y)(O,{ref:d,listingAll:t,selectedFilterId:r,filterColor:i,onFilterChange:g})})]}),h&&(0,o.Y)(K,{onClick:p,eventLabel:b,disabled:y})]})}),isSameCardItem=(e,t)=>e.id===t.id&&e.avatar===t.avatar&&e.name===t.name&&e.rating===t.rating&&e.price===t.price&&e.hospital===t.hospital&&e.hospitalLogo===t.hospitalLogo,buildStableDoctorSlides=(e,t,a,n)=>{if(!e.length)return n.current.clear(),[];let r=new Set,o=e.map(e=>{let o=a(e,t),i=String(o.id);r.add(i);let l=n.current.get(i),s=l&&isSameCardItem(l,o)?l:o;return n.current.set(i,s),{id:i,item:s}});return n.current.forEach((e,t)=>{r.has(t)||n.current.delete(t)}),o};var Q=(0,c.createStyles)((e,t)=>{let{display:a}=t;return{root:{display:"flex",flex:1,background:"white",borderRadius:(0,c.rem)(16),boxShadow:"0px 0px 1px 0px rgba(0, 0, 0, 0.06), 0px 2px 8px 0px rgba(0, 0, 0, 0.08)",overflow:"hidden",flexDirection:"column",alignItems:"stretch",..."vertical"===a&&{justifyContent:"space-between",gap:(0,c.rem)(0),[e.fn.largerThan("md")]:{minHeight:(0,c.rem)(250)}}},verticalInner:{width:"100%",flex:1,display:"flex",flexDirection:"column"},verticalTop:{padding:(0,c.rem)(16),flex:1},verticalFooter:{marginTop:"auto",flexShrink:0,padding:"".concat((0,c.rem)(8)," ").concat((0,c.rem)(16)),backgroundColor:e.colors.neutral[0],transition:"background-color 0.2s ease","&:has(button:hover, a:hover)":{backgroundColor:e.colors.blue[0]}},horizonInner:{width:"100%",flex:1,display:"flex",flexDirection:"column"},horizonTop:{padding:(0,c.rem)(16),flex:1},horizonFooter:{marginTop:"auto",flexShrink:0,padding:(0,c.rem)(16),backgroundColor:e.colors.neutral[0],transition:"background-color 0.2s ease","&:has(button:hover, a:hover)":{backgroundColor:e.colors.blue[0]}},btn:{..."vertical"===a?{width:"100%"}:{flexShrink:0}}}}),X=(0,c.createStyles)(e=>({doctorAvatar:{width:(0,c.rem)(64),height:(0,c.rem)(64),borderRadius:"50%",overflow:"hidden",backgroundColor:e.colors.gray[1]},doctorAvatarImg:{width:"100%",height:"100%",objectFit:"cover",display:"block"},doctorAvatarWrapOverlay:{position:"relative",flexShrink:0,width:(0,c.rem)(64)},ratingPill:{gap:(0,c.rem)(4),align:"center",backgroundColor:e.colors.yellow[0],borderRadius:(0,c.rem)(32),padding:"".concat((0,c.rem)(3)," ").concat((0,c.rem)(10))},ratingPillOverlay:{position:"absolute",left:"50%",top:"100%",transform:"translate(-50%, -80%)",flexShrink:0,whiteSpace:"nowrap",padding:"".concat((0,c.rem)(2)," ").concat((0,c.rem)(8)),zIndex:1,"& svg":{width:(0,c.rem)(14),height:(0,c.rem)(14)}},doctorNameSpecialtyBlock:{flex:1,minWidth:0,minHeight:(0,c.rem)(64),display:"flex",flexDirection:"column",justifyContent:"center"},hospitalAvatarWrap:{width:(0,c.rem)(40),height:(0,c.rem)(40),flexShrink:0,borderRadius:"50%",border:"1px solid ".concat(e.colors.neutral[1]),overflow:"hidden",backgroundColor:e.white,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}));let J={radius:"sm"},DoctorAvatarSkeleton=()=>{let{classes:e}=X(),t=(0,c.useMantineTheme)();return(0,o.Y)(c.Box,{className:e.doctorAvatar,sx:{flexShrink:0,backgroundColor:t.colors.gray[1]},children:(0,o.Y)(c.Skeleton,{height:"100%",width:"100%",radius:0})})},HospitalRowSkeleton=()=>{let{classes:e}=X();return(0,o.FD)(c.Flex,{align:"center",gap:(0,c.rem)(12),sx:{flex:1,minWidth:0},children:[(0,o.Y)(c.Box,{className:e.hospitalAvatarWrap,children:(0,o.Y)(c.Skeleton,{height:"100%",width:"100%",radius:0})}),(0,o.FD)(c.Stack,{spacing:(0,c.rem)(4),sx:{flex:1,minWidth:0},children:[(0,o.Y)(c.Skeleton,{height:(0,c.rem)(14),width:"72%",...J}),(0,o.Y)(c.Skeleton,{height:(0,c.rem)(12),width:"92%",...J})]})]})},BookButtonSkeleton=e=>{let{fullWidth:t}=e;return(0,o.Y)(c.Skeleton,{height:(0,c.rem)(36),width:t?"100%":(0,c.rem)(120),radius:"md",sx:{flexShrink:t?void 0:0}})},NameBlockSkeleton=()=>{let{classes:e}=X();return(0,o.Y)(c.Box,{className:e.doctorNameSpecialtyBlock,children:(0,o.FD)(c.Stack,{spacing:(0,c.rem)(4),children:[(0,o.Y)(c.Skeleton,{height:(0,c.rem)(14),width:"88%",...J}),(0,o.Y)(c.Skeleton,{height:(0,c.rem)(12),width:"62%",...J})]})})},DoctorCardSkeleton=e=>{let{display:t,className:a,...n}=e,{classes:r,cx:i}=Q({display:t},{name:"DoctorCardSkeleton"});return"vertical"===t?(0,o.Y)(c.Box,{className:i(r.root,a),...n,children:(0,o.FD)(c.Stack,{spacing:0,className:r.verticalInner,children:[(0,o.Y)(c.Stack,{className:r.verticalTop,spacing:(0,c.rem)(12),children:(0,o.FD)(c.Flex,{align:"center",gap:(0,c.rem)(12),children:[(0,o.Y)(DoctorAvatarSkeleton,{}),(0,o.Y)(NameBlockSkeleton,{})]})}),(0,o.FD)(c.Stack,{className:r.verticalFooter,spacing:(0,c.rem)(12),children:[(0,o.Y)(HospitalRowSkeleton,{}),(0,o.Y)(BookButtonSkeleton,{fullWidth:!0})]})]})}):(0,o.Y)(c.Box,{className:i(r.root,a),...n,children:(0,o.FD)(c.Stack,{spacing:(0,c.rem)(12),className:r.horizonInner,children:[(0,o.Y)(c.Stack,{className:r.horizonTop,spacing:(0,c.rem)(4),children:(0,o.FD)(c.Flex,{align:"center",gap:(0,c.rem)(12),children:[(0,o.Y)(DoctorAvatarSkeleton,{}),(0,o.Y)(NameBlockSkeleton,{})]})}),(0,o.FD)(c.Flex,{className:r.horizonFooter,align:"center",gap:(0,c.rem)(16),children:[(0,o.Y)(HospitalRowSkeleton,{}),(0,o.Y)(BookButtonSkeleton,{})]})]})})};var Z=a("U+Ez"),$=a("bPK4"),ee=a("Gi6Z"),et=a("pqUD");let ea=(0,l.memo)(function(e){let{rating:t,className:a,sx:n}=e,r=(0,c.useMantineTheme)(),{classes:i,cx:l}=X(),s=Math.floor(Number(t));return s<=0?null:(0,o.FD)(c.Flex,{className:l(i.ratingPill,a),sx:n,children:[(0,o.Y)(ee.A,{size:16,color:r.colors.yellow[8]}),(0,o.FD)(w.Text,{size:"s5",weight:"semiBold",children:[parseFloat(t),"/5"]})]})}),en=(0,l.memo)(function(e){let{src:t,alt:a,hrefProps:n,rating:r,ratingPlacement:i="inline",className:l,...s}=e,{classes:d}=X(),m=(0,o.Y)(c.Box,{className:d.doctorAvatar,children:(0,o.Y)(et.B,{src:t,alt:a,width:100,height:100,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover"}})}),u="overlay"===i?(0,o.FD)(c.Box,{className:d.doctorAvatarWrapOverlay,children:[m,r&&(0,o.Y)(ea,{rating:r,className:d.ratingPillOverlay})]}):m;return n?(0,o.Y)("a",{...n,style:{flexShrink:0,...n.style},children:u}):(0,o.Y)(c.Box,{className:l,sx:{flexShrink:0},...s,children:u})}),er=(0,l.memo)(function(e){let{name:t,hrefProps:a}=e,n=(0,o.Y)(w.Text,{size:"title2",weight:"semiBold",variant:"primary",lineClamp:3,children:t}),r=a?(0,o.Y)("a",{...a,children:n}):n;return r}),eo=(0,l.memo)(function(e){let{text:t}=e;return t?(0,o.Y)(w.Text,{size:"n1",color:"gray.6",lineClamp:3,children:t}):null}),ei=(0,l.memo)(function(e){let{cityName:t}=e;return t?(0,o.FD)(c.Flex,{align:"center",gap:4,children:[(0,o.Y)(c.Box,{children:(0,o.Y)("img",{src:"/svg/location-outline.svg",loading:"lazy",style:{width:16,display:"block"},alt:""})}),(0,o.Y)(w.Text,{size:"n1",color:"gray.6",children:t})]}):null}),el=(0,l.memo)(function(e){let{hospital:t,hospitalLogo:a,hospitalAddress:n,addressLineClamp:r=2}=e,{classes:i}=X();return t||n||a?(0,o.FD)(c.Flex,{align:"center",gap:12,sx:{flex:1,minWidth:0},children:[a&&(0,o.Y)(c.Box,{className:i.hospitalAvatarWrap,children:(0,o.Y)(et.B,{src:a,alt:t||"Hospital logo",width:100,height:100,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"contain"}})}),(0,o.FD)(c.Box,{sx:{flex:1,minWidth:0},children:[t&&(0,o.Y)(w.Text,{size:"p3",weight:"semiBold",variant:"primary",lineClamp:1,children:t}),n&&(0,o.Y)(w.Text,{size:"c1",color:"gray.6",lineClamp:r,children:n})]})]}):null},(e,t)=>e.hospital===t.hospital&&e.hospitalLogo===t.hospitalLogo&&e.hospitalAddress===t.hospitalAddress&&e.addressLineClamp===t.addressLineClamp),es=(0,l.memo)(function(e){let{variant:t,footerClassName:a,hospital:n,hospitalLogo:r,hospitalAddress:i,button:l,...s}=e,d=(0,o.Y)(el,{hospital:n,hospitalLogo:r,hospitalAddress:i,addressLineClamp:"vertical"===t?2:1});return"vertical"===t?(0,o.FD)(c.Stack,{className:a,spacing:(0,c.rem)(12),children:[d,l]}):(0,o.FD)(c.Flex,{className:a,align:"center",gap:(0,c.rem)(16),...s,children:[d,l]})});var ed=a("Iblh"),ec=a("ljJ2");let em=(0,c.createStyles)(e=>({root:{},popoperDropdown:{padding:(0,c.rem)(8),border:0,backgroundColor:e.colors.gray[8]},popoperArrow:{backgroundColor:e.colors.gray[8],borderColor:e.colors.gray[8]},text:{color:"#fff"},email:{color:e.colors.blue[3]}})),PromotionTag=e=>{var t,a,n,r;let{label:i,color:l="blue",textColor:s,styles:d,className:m,classNames:u,hasTooltip:g}=e,{formatMessage:p}=(0,k.A)(),h=(0,C.a)(),[f,{close:v,open:x}]=(0,ed.j)(!1),{classes:b,theme:y,cx:S}=em(void 0,{name:"PromotionTag",styles:d,classNames:u}),T=s||(null===(a=y.colors)||void 0===a?void 0:null===(t=a[l])||void 0===t?void 0:t[6]),D=(0,o.Y)(c.Box,{className:S(b.root,m),sx:{background:l.startsWith("#")?l:null===(r=y.colors)||void 0===r?void 0:null===(n=r[l])||void 0===n?void 0:n[0],borderRadius:(0,c.rem)(4),padding:"5px 12px 5px 4px"},children:(0,o.FD)(w.Text,{size:"p4",color:T,sx:{display:"flex",gap:(0,c.rem)(4),".icon":{marginTop:(0,c.rem)(2)}},children:[(0,o.Y)(ec.A,{size:16,color:T,className:"icon"}),(0,o.Y)("span",{children:i})]})});return!h&&(h||g)?(0,o.FD)(w.Popover,{withArrow:!0,shadow:"md",opened:f,width:300,classNames:{dropdown:b.popoperDropdown,arrow:b.popoperArrow},children:[(0,o.Y)(w.Popover.Target,{children:(0,o.Y)(c.Box,{onMouseEnter:x,onMouseLeave:v,sx:{cursor:"pointer"},children:D})}),(0,o.Y)(w.Popover.Dropdown,{onMouseEnter:x,onMouseLeave:v,children:(0,o.Y)(w.Text,{size:"p4",className:b.text,children:p({id:"doctorCard.promotionTag.popoverContent",defaultMessage:"Vui l\xf2ng li\xean hệ hotline 02871096118 hoặc email {email} để nhận ngay voucher ưu đ\xe3i."},{email:(0,o.Y)(c.Box,{component:"a",className:b.email,href:"mailto:Hotro@hellobacsi.com",children:"Hotro@hellobacsi.com"})})})})]}):D};var eu=a("zwQ/"),eg=a("xGJE");let tag_Tag=e=>{let{title:t,colorShade:a,icon:n}=e,r=(0,c.useMantineTheme)(),i=(0,l.useMemo)(()=>a.split(".")[0],[]),d=(0,l.useMemo)(()=>Number(a.split(".")[1]),[]);return(0,o.FD)(c.Flex,{align:"center",gap:(0,c.rem)(4),sx:()=>({border:"1px solid ".concat(r.colors[i][d]),backgroundColor:r.colors[i][d-1],borderRadius:(0,c.rem)(34),padding:" ".concat((0,c.rem)(3)," ").concat((0,c.rem)(12)," ").concat((0,c.rem)(3)," ").concat((0,c.rem)(8))}),children:[s().cloneElement(n,{size:16,color:r.colors[i][9]}),(0,o.Y)(w.Text,{size:"n1",children:t})]})},Tags=e=>{let{hasOutpatient:t,hasTelemedicine:a,...n}=e,{formatMessage:r}=(0,k.A)();return t||a?(0,o.FD)(c.Flex,{wrap:"wrap",gap:(0,c.rem)(4),...n,children:[t&&(0,o.Y)(tag_Tag,{title:r({id:"carePathEmbedDoctor.outPatient",defaultMessage:"Out patient"}),icon:(0,o.Y)(eu.A,{}),colorShade:"blue.1"}),a&&(0,o.Y)(tag_Tag,{title:r({id:"carePathEmbedDoctor.telemedicine",defaultMessage:"Telemedicine"}),icon:(0,o.Y)(eg.A,{}),colorShade:"orange.1"})]}):null},ep=(0,l.memo)(e=>{let{item:t,className:a,classNames:n,display:r="vertical",styles:i,isService:s,showConfirmCityPopup:d=!1,onCancel:m,showPromotionEvent:u,campaign:g={name:"",source:""},...p}=e,{name:h,validOutpatient:f,validTelemedicine:v,rating:x,slug:b,id:y,cityName:C,doctorWebsite:S,avatar:T,doctorSpecialties:B=[],hospital:N,hospitalLogo:F,hospitalAddress:E}=t,{formatMessage:A}=(0,k.A)(),{locale:R}=(0,Y.$)(),{classes:L,cx:P}=Q({display:r},{name:"DoctorCard",classNames:n,styles:i}),{classes:M}=X(),[_,z]=(0,l.useState)(null),W=(0,l.useMemo)(()=>B.map(e=>"string"==typeof e?e:e.name).filter(Boolean).join(", "),[B]),H=(0,l.useMemo)(()=>s?A({id:"articlePage.careEmbedding.bookService"}):A({id:"articleAuthor.button",defaultMessage:"Book now"}),[A,s]),O=(0,l.useMemo)(()=>{var e;let t="".concat((0,$.oN)(R),"/care/").concat(null===(e=I.ix[R])||void 0===e?void 0:e[s?"SERVICE":"DOCTOR"],"/").concat(b,"-").concat(y,"/"),a=S||t;try{let e=new URL(a,(0,$.oN)(R));return g.name&&e.searchParams.set("utm_campaign",g.name),g.source&&e.searchParams.set("utm_source",g.source),e.toString()}catch(e){return t}},[S,R,s,b,y,g.name,g.source]),G=(0,l.useMemo)(()=>({"data-event-category":"Service Connection","data-event-action":"Book Doctor","data-event-label":S||"https://".concat(D.domainLocales[R]).concat(O)}),[S,R,O]),V=(0,l.useCallback)(e=>{if(d){e.preventDefault(),z({cityName:C,url:O});return}e.currentTarget instanceof HTMLAnchorElement||window.open(O,"_blank","noopener,noreferrer")},[d,C,O]),j=(0,l.useMemo)(()=>({href:O,target:"_blank",style:{display:"block",borderRadius:"inherit"},className:"pointer-event-child-none",onClick:V,...G}),[O,V,G]),U=(0,l.useMemo)(()=>d?(0,o.Y)(w.Button,{h:36,size:"md",className:L.btn,onClick:V,...G,children:H}):(0,o.Y)(w.Button,{h:36,size:"md",className:L.btn,...{component:"a",href:O,target:"_blank",rel:"noopener noreferrer",onClick:V,...G},children:H}),[L.btn,V,G,H,d,O]),K=(0,l.useMemo)(()=>u?(0,o.FD)(c.Stack,{spacing:(0,c.rem)(4),align:"flex-start",children:[(0,o.Y)(PromotionTag,{color:"yellow",textColor:"yellow.9",hasTooltip:!0,label:(0,o.Y)(o.FK,{children:A({id:"doctorCard.promotionTag.canUseVoucher",defaultMessage:"C\xf3 thể \xe1p dụng voucher"})})}),(0,o.Y)(PromotionTag,{color:"#FDF1F6",textColor:"#A50064",label:(0,o.Y)(o.FK,{children:A({id:"doctorCard.promotionTag.discount",defaultMessage:"Thẻ qu\xe0 tặng giảm th\xeam {price}"},{price:(0,o.Y)("strong",{children:"100.000 đ"})})})}),(0,o.Y)(PromotionTag,{color:"#FDF1F6",textColor:"#A50064",label:(0,o.Y)(o.FK,{children:A({id:"doctorCard.promotionTag.discount1",defaultMessage:"Cơ hội nhận qu\xe0 trị gi\xe1 {price}"},{price:(0,o.Y)("strong",{children:"300.000 đ"})})})})]}):null,[u,A]),q=(0,l.useMemo)(()=>(0,o.Y)(Tags,{hasOutpatient:f,hasTelemedicine:v}),[f,v]),J=(0,l.useMemo)(()=>(0,o.Y)(es,{variant:r,footerClassName:"vertical"===r?L.verticalFooter:L.horizonFooter,hospital:N,hospitalLogo:F,hospitalAddress:E,button:U}),[r,L.verticalFooter,L.horizonFooter,N,F,E,U]);return(0,o.FD)(o.FK,{children:[(0,o.Y)(c.Box,{className:P(L.root,a),...p,children:"vertical"===r?(0,o.FD)(c.Stack,{spacing:0,className:L.verticalInner,children:[(0,o.FD)(c.Stack,{className:L.verticalTop,spacing:(0,c.rem)(12),children:[(0,o.FD)(c.Flex,{align:"center",gap:12,children:[(0,o.Y)(en,{src:T,alt:h,hrefProps:j,rating:x,ratingPlacement:"overlay"}),(0,o.FD)(c.Box,{className:M.doctorNameSpecialtyBlock,children:[(0,o.Y)(er,{name:h,hrefProps:j}),(0,o.Y)(eo,{text:W})]})]}),q,(0,o.Y)(ei,{cityName:C}),K]}),J]}):(0,o.FD)(c.Stack,{spacing:12,className:L.horizonInner,children:[(0,o.FD)(c.Stack,{className:L.horizonTop,spacing:4,children:[(0,o.FD)(c.Flex,{align:"center",gap:12,children:[(0,o.Y)(en,{src:T,alt:h,hrefProps:j}),(0,o.FD)(c.Stack,{spacing:4,sx:{flex:1,minWidth:0},children:[(0,o.FD)(c.Box,{className:M.doctorNameSpecialtyBlock,children:[(0,o.FD)(c.Flex,{align:s?"center":"flex-start",justify:"space-between",gap:(0,c.rem)(8),children:[(0,o.Y)(er,{name:h,hrefProps:j}),(0,o.Y)(ea,{rating:x,sx:{flexShrink:0}})]}),(0,o.Y)(eo,{text:W})]}),q,(0,o.Y)(ei,{cityName:C})]})]}),K]}),J]})}),d&&_&&(0,o.Y)(w.Modal,{size:(0,c.rem)(408),target:I.D9,opened:!!_,withCloseButton:!0,styles:e=>({header:{position:"absolute",right:0,top:0,border:0,paddingLeft:0},body:{padding:0},heading:{[e.fn.smallerThan("sm")]:{}}}),onClose:()=>z(null),children:(0,o.FD)(c.Stack,{sx:e=>({padding:(0,c.rem)(16),gap:(0,c.rem)(16),[e.fn.largerThan("sm")]:{padding:(0,c.rem)(32),gap:(0,c.rem)(32)}}),children:[(0,o.FD)(c.Stack,{spacing:8,sx:{textAlign:"center"},children:[(0,o.Y)(Z.H,{tag:"h4",children:A({id:"doctorCard.confirmCityPopup.heading"})}),(0,o.Y)(w.Text,{size:"p2",children:A({id:"doctorCard.confirmCityPopup.content"},{location:(0,o.Y)("strong",{children:null==_?void 0:_.cityName})})})]}),(0,o.FD)(c.Flex,{gap:12,sx:{button:{flex:1}},children:[(0,o.Y)(w.Button,{variant:"tertiary",onClick:()=>{z(null),null==m||m()},children:A({id:"carePathDoctorList.confirmLocModal.cancel"})}),(0,o.Y)(w.Button,{onClick:()=>{(null==_?void 0:_.url)&&window.open(null==_?void 0:_.url),z(null)},children:A({id:"confirm"})})]})]})})]})},(e,t)=>{var a,n,r,o;return e.item.id===t.item.id&&e.item.avatar===t.item.avatar&&e.item.name===t.item.name&&e.item.rating===t.item.rating&&e.item.price===t.item.price&&e.item.hospital===t.item.hospital&&e.item.hospitalLogo===t.item.hospitalLogo&&e.display===t.display&&e.isService===t.isService&&e.hidePrice===t.hidePrice&&e.showConfirmCityPopup===t.showConfirmCityPopup&&e.showPromotionEvent===t.showPromotionEvent&&(null===(a=e.campaign)||void 0===a?void 0:a.name)===(null===(n=t.campaign)||void 0===n?void 0:n.name)&&(null===(r=e.campaign)||void 0===r?void 0:r.source)===(null===(o=t.campaign)||void 0===o?void 0:o.source)}),carePathDoctorListActionBtnSx=e=>({width:e?"100%":"auto"}),CarePathDoctorListActionButton=e=>{let{fullWidth:t=!1,sx:a,children:n,...r}=e;return(0,o.Y)(w.Button,{h:48,size:"lg",fullWidth:t,variant:"white",sx:{...carePathDoctorListActionBtnSx(t),...a},...r,children:n})},ShowMoreBtn=e=>{let{fullWidth:t=!0,onClick:a}=e,{formatMessage:n}=(0,k.A)();return(0,o.Y)(CarePathDoctorListActionButton,{fullWidth:t,onClick:a,variant:"secondary",color:"#fff",sx:{"&:hover":{backgroundColor:"transparent"}},children:n({id:"articlePage.careEmbedding.seeMore",defaultMessage:"Xem th\xeam"})})},getNativeScrollItemFlex=(e,t)=>{let a=(e-1)*t;return"0 0 calc((100cqi - ".concat(a,"px) / ").concat(e,")")},getNativeScrollPageFlex=()=>"0 0 100cqi",chunkSlidesForViewport=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,a=[];for(let n=0;n1&&void 0!==arguments[1]?arguments[1]:{},l=getNativeScrollItemFlex(t,a),s=getNativeScrollPageFlex();return{cardWrapper:{padding:(0,c.rem)(4),width:"100%",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},mobileCardWrapper:{width:"100%",minWidth:0},mobileExpandBtnWrapper:{paddingTop:(0,c.rem)(16)},mobileViewAllBtnWrapper:{paddingTop:(0,c.rem)(8)},mobileViewAllBtnWrapperOnly:{paddingTop:(0,c.rem)(16)},nativeScrollRoot:{position:"relative"},nativeScrollViewport:{containerType:"inline-size",display:"flex",alignItems:"stretch",overflowX:i?"auto":"hidden",scrollSnapType:i?"x mandatory":"none",scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",touchAction:i?"pan-x":"auto",cursor:i?"grab":"default",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}},nativeScrollPageStatic:{flex:"0 0 100%",boxSizing:"border-box"},nativeScrollItemFull:{flex:"1 1 100%",minWidth:0,display:"flex",flexDirection:"column",boxSizing:"border-box"},nativeScrollDragging:{cursor:"grabbing",scrollSnapType:"none",scrollBehavior:"auto",userSelect:"none"},nativeScrollItem:{flex:l,display:"flex",flexDirection:"column",alignSelf:"stretch",scrollSnapAlign:"start",scrollSnapStop:"always",minWidth:0,boxSizing:"border-box"},nativeScrollPage:{flex:s,alignSelf:"stretch",scrollSnapAlign:"start",scrollSnapStop:"always",minWidth:0,boxSizing:"border-box"},nativeScrollHorizonGrid:{display:"grid",gridTemplateColumns:"repeat(".concat(r,", 1fr)"),gridTemplateRows:o>1?"repeat(".concat(o,", 1fr)"):"1fr",gap:(0,c.rem)(a),height:"100%",alignItems:"stretch"},nativeScrollGridCell:{minWidth:0,minHeight:0,display:"flex",flexDirection:"column"},nativeScrollArrow:{position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:2,width:(0,c.rem)(40),height:(0,c.rem)(40),borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",background:e.white,cursor:"pointer",transition:"all .2s ease",userSelect:"none",opacity:.85,boxShadow:"1px 4px 8px 1px rgba(0, 0, 0, 0.1)",...n?{border:"1px solid ".concat(n),"&:hover":{backgroundColor:e.fn.lighten(n,.9)}}:{"&:hover":{backgroundColor:e.colors.neutral100,borderColor:e.colors.neutral100}},"&.disabled":{opacity:0,cursor:"inherit",pointerEvents:"none"}},nativeScrollArrowIcon:{transition:"all .2s ease",...n&&{color:n}},nativeScrollArrowPrev:{left:0,[e.fn.largerThan("sm")]:{left:(0,c.rem)(-60)}},nativeScrollArrowNext:{right:0,[e.fn.largerThan("sm")]:{right:(0,c.rem)(-60)}}}});let ef=(0,l.memo)(e=>{let{slides:t,filterKey:a,cardCommonProps:n}=e,{classes:r}=eh({}),[i,s]=(0,l.useState)(4),d=(0,l.useMemo)(()=>t.map(e=>e.id).join("\x00"),[t]);(0,l.useEffect)(()=>{s(4)},[d,a]);let m=t.length>i,u=(0,l.useMemo)(()=>t.slice(0,i),[t,i]),g=(0,l.useCallback)(()=>{s(e=>Math.min(e+4,t.length))},[t.length]);return(0,o.FD)(c.Stack,{spacing:16,children:[u.map(e=>{let{id:t,item:a}=e;return(0,o.Y)(c.Box,{className:r.mobileCardWrapper,children:(0,o.Y)(ep,{...n,item:a})},t)}),m?(0,o.Y)(c.Box,{className:r.mobileCardWrapper,children:(0,o.Y)(ShowMoreBtn,{onClick:g})}):null]})});var ev=a("5Q4Z"),ex=a("iZ8j");let getNativeScrollPageIndex=e=>{let t=e.clientWidth;return t<=0?0:Math.round(e.scrollLeft/t)},createInitialRenderedIndices=e=>Array.from({length:Math.min(2,e)},(e,t)=>t),areRenderedIndicesEqual=(e,t)=>e.length===t.length&&e.every((e,a)=>e===t[a]),mergeRenderedWithPageAndAhead=(e,t,a)=>{if(t<=0)return[];let n=new Set(e.filter(e=>e>=0&&ee-t)},useNativeScrollLazyRender=(e,t)=>{let{enabled:a,mode:n,totalCount:r}=t,[o,i]=(0,l.useState)(()=>a&&r>0?createInitialRenderedIndices(r):[]),s=(0,l.useRef)(a);s.current=a;let d=(0,l.useRef)(n);d.current=n,(0,l.useLayoutEffect)(()=>{if(!a||r<=0){i([]);return}i(createInitialRenderedIndices(r))},[a,r]);let c=(0,l.useCallback)(e=>{s.current&&!(r<=0)&&i(t=>{let a=mergeRenderedWithPageAndAhead(t,r,e);return areRenderedIndicesEqual(t,a)?t:a})},[r]),m=(0,l.useCallback)(()=>{if(!s.current||"pages"!==d.current)return;let t=e.current;!t||r<=0||t.clientWidth<=0||c(getNativeScrollPageIndex(t))},[e,r,c]),u=(0,l.useCallback)(e=>{c(e)},[c]);(0,l.useEffect)(()=>{if(!a||"pages"!==d.current)return;let t=e.current;if(!t)return;let n=0,onScroll=()=>{n||(n=requestAnimationFrame(()=>{n=0,m()}))};t.addEventListener("scroll",onScroll,{passive:!0});let r="undefined"!=typeof ResizeObserver?new ResizeObserver(()=>{m()}):null;return null==r||r.observe(t),()=>{t.removeEventListener("scroll",onScroll),null==r||r.disconnect(),n&&cancelAnimationFrame(n)}},[a,m,e]);let g=(0,l.useCallback)(e=>!a||(0===o.length?e<2:o.includes(e)),[a,o]);return{shouldRenderIndex:g,prepareIndicesAround:u,syncPreloadFromViewport:m}},isNativeScrollInteractiveTarget=e=>e instanceof Element&&!!e.closest('button, a, input, textarea, select, [role="button"], [data-no-drag]'),eb=(0,l.memo)(e=>{var t,a;let{slides:n,cardCommonProps:r,desktopLayout:i,cardWrapperClassName:s,gap:d,arrowColor:m}=e,{layoutType:u,columns:g,rows:p,itemsPerViewport:h,useGrid:f,enableScroll:v}=i,{classes:x,cx:b}=eh({nativeScrollVisibleCount:h,nativeScrollGap:d,arrowColor:m,gridColumns:g,gridRows:p,enableScroll:v},{name:"CarePathDoctorList"}),y=(0,l.useMemo)(()=>"scroll-pages"===u?chunkSlidesForViewport(n,h):null,[u,n,h]),C=null!==(t=null==y?void 0:y.length)&&void 0!==t?t:0,S=v&&"scroll-pages"===u&&C>1,w=(0,l.useRef)(null),T=(0,l.useRef)(null),k=(0,l.useRef)(null),D=(0,l.useRef)({prev:!1,next:!1}),Y=(0,l.useRef)({active:!1,pointerId:-1,startX:0,startScrollLeft:0,hasMoved:!1}),[I,B]=(0,l.useState)(!1),{shouldRenderIndex:N,prepareIndicesAround:F}=useNativeScrollLazyRender(w,{enabled:S,mode:"pages",totalCount:C}),E=(0,l.useCallback)(()=>{var e,t;if(!v)return;let a=w.current;if(!a)return;let n=a.scrollWidth-a.clientWidth,r=a.scrollLeft>4,o=a.scrollLeft{if(!v)return;let t=w.current;if(t){if(S&&1===e){let a=getNativeScrollPageIndex(t),n=Math.min(Math.max(0,a+e),Math.max(0,Math.ceil(t.scrollWidth/t.clientWidth)-1));F(n)}t.scrollBy({left:e*t.clientWidth,behavior:"smooth"})}},[v,S,F]),R=(0,l.useCallback)(e=>{let t=w.current;Y.current.active&&t&&(Y.current.active=!1,B(!1),t.hasPointerCapture(e)&&t.releasePointerCapture(e),E())},[E]),L=(0,l.useCallback)(e=>{if(!v||0!==e.button||"touch"===e.pointerType||isNativeScrollInteractiveTarget(e.target))return;let t=w.current;t&&(Y.current={active:!0,pointerId:e.pointerId,startX:e.clientX,startScrollLeft:t.scrollLeft,hasMoved:!1},B(!0),t.setPointerCapture(e.pointerId))},[v]),P=(0,l.useCallback)(e=>{if(!Y.current.active)return;let t=w.current;if(!t)return;let a=e.clientX-Y.current.startX;Math.abs(a)>5&&(Y.current.hasMoved=!0),t.scrollLeft=Y.current.startScrollLeft-a,e.preventDefault()},[]),M=(0,l.useCallback)(e=>{R(e.pointerId)},[R]),_=(0,l.useCallback)(e=>{R(e.pointerId)},[R]),z=(0,l.useCallback)(e=>{Y.current.hasMoved&&(e.preventDefault(),e.stopPropagation(),Y.current.hasMoved=!1)},[]);(0,l.useEffect)(()=>{if(!v)return;E();let e=w.current;if(!e||"undefined"==typeof ResizeObserver)return;let t=0,a=new ResizeObserver(()=>{cancelAnimationFrame(t),t=requestAnimationFrame(E)});return a.observe(e),()=>{cancelAnimationFrame(t),a.disconnect()}},[v,n.length,null==y?void 0:y.length,E]);let W=null!==(a=r.display)&&void 0!==a?a:"vertical",renderPlaceholderGrid=e=>(0,o.Y)(c.Box,{className:x.nativeScrollHorizonGrid,children:Array.from({length:e},(e,t)=>(0,o.Y)(c.Box,{className:x.nativeScrollGridCell,children:(0,o.Y)(DoctorCardSkeleton,{display:W,sx:{height:"100%",flex:1,minHeight:0}})},"placeholder-cell-".concat(t)))}),renderSlidePlaceholder=(e,t)=>(0,o.Y)(c.Box,{className:b(t?x.nativeScrollGridCell:x.nativeScrollItem,"single-full"===u&&x.nativeScrollItemFull,!t&&"single-full"!==u&&s),"aria-hidden":!0,children:(0,o.Y)(DoctorCardSkeleton,{display:W,sx:{height:"100%",flex:1,minHeight:0}})},"placeholder-".concat(e)),renderCard=(e,t,a)=>(0,o.Y)(c.Box,{className:b(a?x.nativeScrollGridCell:x.nativeScrollItem,"single-full"===u&&x.nativeScrollItemFull,!a&&"single-full"!==u&&s),children:(0,o.Y)(ep,{...r,item:t})},e),renderGrid=e=>(0,o.Y)(c.Box,{className:x.nativeScrollHorizonGrid,children:e.map(e=>{let{id:t,item:a}=e;return renderCard(t,a,!0)})});return(0,o.FD)(c.Box,{className:x.nativeScrollRoot,children:[v&&(0,o.Y)(c.Box,{ref:T,className:b(x.nativeScrollArrow,x.nativeScrollArrowPrev,"disabled"),onClick:()=>D.current.prev&&A(-1),children:(0,o.Y)(ev.A,{className:x.nativeScrollArrowIcon,size:18,useCurrentColor:!0})}),(0,o.Y)(c.Box,{ref:w,className:b(x.nativeScrollViewport,I&&x.nativeScrollDragging),sx:{gap:(0,c.rem)(d)},onScroll:E,onPointerDown:L,onPointerMove:P,onPointerUp:M,onPointerCancel:_,onClickCapture:z,children:(()=>{if("single-full"===u&&n[0]){let{id:e,item:t}=n[0];return(0,o.Y)(c.Box,{className:b(x.nativeScrollPage,x.nativeScrollPageStatic,s),children:renderCard(e,t,!1)})}return"static-grid"===u&&f?(0,o.Y)(c.Box,{className:b(x.nativeScrollPage,x.nativeScrollPageStatic,s),children:renderGrid(n)}):"scroll-pages"===u&&y?y.map((e,t)=>(0,o.Y)(c.Box,{className:b(x.nativeScrollPage,s),children:N(t)?renderGrid(e):renderPlaceholderGrid(e.length)},"page-".concat(t))):n.map((e,t)=>{let{id:a,item:n}=e;return N(t)?renderCard(a,n,!1):renderSlidePlaceholder(a,!1)})})()}),v&&(0,o.Y)(c.Box,{ref:k,className:b(x.nativeScrollArrow,x.nativeScrollArrowNext),onClick:()=>D.current.next&&A(1),children:(0,o.Y)(ex.A,{className:x.nativeScrollArrowIcon,size:18,useCurrentColor:!0})})]})}),ey=(0,l.memo)(e=>{let{slides:t,cardCommonProps:a,desktopLayout:n,cardWrapperClassName:r,gap:i}=e,{layoutType:l,columns:s,rows:d}=n;return"single-full"===l&&t[0]?(0,o.Y)(c.Box,{className:r,children:(0,o.Y)(ep,{...a,item:t[0].item})}):(0,o.Y)(c.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(".concat(s,", minmax(0, 1fr))"),gridTemplateRows:d>1?"repeat(".concat(d,", auto)"):"auto",gap:(0,c.rem)(i),alignItems:"stretch"},children:t.map(e=>{let{id:t,item:n}=e;return(0,o.Y)(c.Box,{className:r,sx:{minWidth:0,display:"flex",flexDirection:"column"},children:(0,o.Y)(ep,{...a,item:n})},t)})})}),eC=d.C.getAssetPath("carePath/doctor-not-found.svg"),eS=Array.from({length:4},(e,t)=>"skeleton-".concat(t)),usePreloadCarePathDoctorNotFoundImage=()=>{(0,l.useEffect)(()=>{let e=new Image;e.src=eC},[])},ew=(0,l.memo)(e=>{var t;let{displayDoctors:a,isLoading:n,isMobile:r,listingGapDesktop:i,desktopListLayout:s,arrowColor:d,mobileListFilterKey:m,cardWrapperClassName:u,typeEmbedding:g,formatCardItem:p,cardCommonProps:h}=e,{formatMessage:f}=(0,k.A)(),v=(0,l.useRef)(new Map);usePreloadCarePathDoctorNotFoundImage();let x=null!==(t=h.display)&&void 0!==t?t:"vertical",{layoutType:b,columns:y,rows:C,itemsPerViewport:S,useGrid:T,enableScroll:D}=s,Y=getNativeScrollItemFlex(S,i),I=(0,l.useMemo)(()=>"single-full"===b?1:"static-grid"===b?y*C:S,[b,y,C,S]),B=(0,l.useMemo)(()=>buildStableDoctorSlides(a,g,p,v),[a,g,p]);return n?r?(0,o.Y)(c.Stack,{spacing:16,children:eS.map(e=>(0,o.Y)(DoctorCardSkeleton,{display:"vertical"},e))}):"single-full"===b?(0,o.Y)(c.Box,{sx:{containerType:"inline-size",overflow:"hidden"},children:(0,o.Y)(c.Box,{className:u,children:(0,o.Y)(DoctorCardSkeleton,{display:x})})}):T?(0,o.Y)(c.Box,{sx:{containerType:"inline-size",overflow:"hidden"},children:(0,o.Y)(c.Box,{className:u,children:(0,o.Y)(c.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(".concat(y,", 1fr)"),gridTemplateRows:C>1?"repeat(".concat(C,", 1fr)"):"1fr",gap:(0,c.rem)(i)},children:Array.from({length:I},(e,t)=>(0,o.Y)(c.Box,{sx:{minWidth:0,display:"flex",flexDirection:"column"},children:(0,o.Y)(DoctorCardSkeleton,{display:x,sx:{height:"100%",flex:1,minHeight:0}})},"desktop-skeleton-".concat(t)))})})}):(0,o.Y)(c.Flex,{gap:i,sx:{containerType:"inline-size",overflow:"hidden",alignItems:"stretch"},children:Array.from({length:I},(e,t)=>(0,o.Y)(c.Box,{sx:{flex:Y,minWidth:0,display:"flex",flexDirection:"column",alignSelf:"stretch",boxSizing:"border-box"},className:u,children:(0,o.Y)(DoctorCardSkeleton,{display:x,sx:{height:"100%",flex:1,minHeight:0}})},"desktop-skeleton-".concat(t)))}):a.length?r?(0,o.Y)(ef,{slides:B,filterKey:m,cardCommonProps:h}):D?(0,o.Y)(eb,{slides:B,cardCommonProps:h,desktopLayout:s,cardWrapperClassName:u,gap:i,arrowColor:d}):(0,o.Y)(ey,{slides:B,cardCommonProps:h,desktopLayout:s,cardWrapperClassName:u,gap:i}):(0,o.Y)(c.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",padding:(0,c.rem)(24)},children:(0,o.FD)(c.Stack,{align:"center",spacing:16,sx:{maxWidth:456},children:[(0,o.Y)(c.Box,{component:"img",src:eC,alt:"",loading:"eager",fetchPriority:"high",width:120,height:120,sx:{width:(0,c.rem)(120),aspectRatio:"1 / 1",objectFit:"contain"}}),(0,o.Y)(w.Text,{size:"p2",color:"#fff",align:"center",children:f({id:"carePathDoctorList.notFoundDesc",defaultMessage:"Kh\xf4ng t\xecm thấy b\xe1c sĩ"})})]})})},(e,t)=>e.isLoading===t.isLoading&&e.isMobile===t.isMobile&&e.displayDoctors===t.displayDoctors&&e.cardCommonProps===t.cardCommonProps&&e.mobileListFilterKey===t.mobileListFilterKey&&e.listingGapDesktop===t.listingGapDesktop&&e.arrowColor===t.arrowColor&&e.cardWrapperClassName===t.cardWrapperClassName&&e.typeEmbedding===t.typeEmbedding&&e.formatCardItem===t.formatCardItem&&e.desktopListLayout===t.desktopListLayout);var eT=a("tPw4");let HalfCircle=e=>{let{color:t,...a}=e;return(0,o.Y)("svg",{width:"204",height:"132",viewBox:"0 0 204 132",fill:"none",...a,children:(0,o.Y)("path",{d:"M131 0.54982L0 0.549797L-2.29048e-05 131.55C-3.55404e-05 203.817 58.6115 262.55 131 262.55C203.267 262.55 262 203.938 262 131.55C261.879 59.1614 203.268 0.549833 131 0.54982Z",fill:t})})},resolveDesktopDoctorListLayout=(e,t,a)=>{var n;let r=null!==(n=null==a?void 0:a.useScrollLayoutFromFour)&&void 0!==n&&n;return e<=0?{layoutType:"static-grid",columns:1,rows:1,itemsPerViewport:1,useGrid:!0,enableScroll:!1}:1===e?{layoutType:"single-full",columns:1,rows:1,itemsPerViewport:1,useGrid:!1,enableScroll:!1}:2===e?{layoutType:"static-grid",columns:2,rows:1,itemsPerViewport:2,useGrid:!0,enableScroll:!1}:3===e?t?{layoutType:"static-grid",columns:2,rows:2,itemsPerViewport:3,useGrid:!0,enableScroll:!1}:{layoutType:"static-grid",columns:3,rows:1,itemsPerViewport:3,useGrid:!0,enableScroll:!1}:4!==e||r?t?{layoutType:"scroll-pages",columns:2,rows:2,itemsPerViewport:4,useGrid:!0,enableScroll:!0}:{layoutType:"scroll-row",columns:4,rows:1,itemsPerViewport:4,useGrid:!1,enableScroll:!0}:t?{layoutType:"static-grid",columns:2,rows:2,itemsPerViewport:4,useGrid:!0,enableScroll:!1}:{layoutType:"static-grid",columns:4,rows:1,itemsPerViewport:4,useGrid:!0,enableScroll:!1}},resolveDoctorCardDisplay=e=>{let{isMobile:t,itemCount:a,horizontalLayout:n,layoutConfig:r}=e;if(t)return"vertical";if(a>0&&a<=2)return"horizon";let o=null==r?void 0:r[a];return o||(n?"horizon":"vertical")},Shape=e=>{let{color:t,...a}=e;return(0,o.Y)("svg",{width:"122",height:"122",viewBox:"0 0 122 122",fill:"none",...a,children:(0,o.Y)("path",{d:"M61 0H122V61C122 94.6513 94.7076 122 61 122C27.3487 122 0 94.7076 0 61C0.0562668 27.2924 27.3487 0 61 0Z",fill:t})})};var ek=a("TYy9"),eD=a.n(ek),eY=a("xweI"),eI=a.n(eY),eB=a("jhAu");let eN=(0,l.forwardRef)((e,t)=>{let{categoryIds:a,listingAll:n,selectedFilterId:r,filterColor:i,filterLayout:s,onFilterChange:d}=e,{formatMessage:c}=(0,k.A)(),m=(0,l.useRef)(null),[u,g]=(0,l.useState)([]),[p,v]=(0,l.useState)(null);(0,l.useImperativeHandle)(t,()=>({setTopServiceSelectedFilterId:e=>v(e),openFilter:()=>{var e;return null===(e=m.current)||void 0===e?void 0:e.openFilter()}})),(0,l.useEffect)(()=>{a.length&&(async()=>{var e,t;let n=await (0,h.callApiNew)(f.PATHS.CARE.GET_TOP_SERVICES,{params:{showDistrict:1,categoryIds:a.join(",")}},"care");g(eD()(((null==n?void 0:null===(t=n._data)||void 0===t?void 0:null===(e=t.top_services)||void 0===e?void 0:e.city_list)||[]).map(e=>{var t,a,n;return{group:{id:String(null!==(n=null===(t=e.city)||void 0===t?void 0:t.id)&&void 0!==n?n:""),name:(null===(a=e.city)||void 0===a?void 0:a.name)||""},doctors:eI()(eD()((0,eB.V)(e).serviceList.map(e=>e.services)),["position"],"asc")}})))})()},[a]),(0,l.useEffect)(()=>{r&&v(r)},[r]),(0,l.useEffect)(()=>{let e=null===p||"all"===p,t=e?n:eD()(u.filter(e=>{var t;return(null===(t=e.group)||void 0===t?void 0:t.id)==p}).map(e=>e.doctors));d({doctors:t,filterValue:p,isAllCitiesSelected:e})},[p,u,n,d]);let x=(0,l.useMemo)(()=>[{label:c({id:"keyword.all"}),value:"all"},...u.map(e=>{var t,a;return{label:null===(t=e.group)||void 0===t?void 0:t.name,value:String(null===(a=e.group)||void 0===a?void 0:a.id)}})],[c,u]);return(0,o.Y)(L,{ref:m,value:p,onChange:v,filterOpts:x,filterColor:i,layout:s})}),getListingItemKey=(e,t)=>{if("id"in e)return String(e.id);if("categoryId"in e){let t=e.services.map(e=>"id"in e?String(e.id):"").join(",");return"".concat(e.categoryId,":").concat(t)}return String(t)},useEmbeddingDoctorsListing=(e,t)=>{let[a,n]=(0,l.useState)(e),[r,o]=(0,l.useState)(!1),i=(0,l.useRef)(!1),[,s]=(0,l.useTransition)(),d=(0,l.useMemo)(()=>e.map(getListingItemKey).join("\x00"),[e]),c=(0,l.useRef)(d);return(0,l.useEffect)(()=>{c.current!==d&&(c.current=d,n(e),i.current=!1,o(!1))},[e,d]),(0,l.useEffect)(()=>{if(i.current||!(0,eT.jx)(e.length))return;i.current=!0,o(!0);let a=!1;return(async()=>{try{let e=await (0,eT.pw)(t);a||s(()=>{n(e)})}catch(e){console.error("Failed to fetch remaining embedding doctors",e)}finally{a||o(!1)}})(),()=>{a=!0}},[t.typeEmbedding,t.allDoctors,t.embebIds.join(","),e.length]),{listingAll:a,isFetchingRemaining:r,initialFetchCount:eT.tu}},ViewAllBtn=e=>{let{fullWidth:t=!1,target:a="_blank",rel:n="noopener noreferrer",style:r,sx:i,...l}=e,{formatMessage:s}=(0,k.A)(),d=(0,c.useMantineTheme)(),m={target:a,rel:n,...l};return(0,o.Y)(w.Button,{component:"a",size:"lg",variant:"white",fullWidth:t,sx:{width:t?"100%":"auto",display:t?void 0:"inline-flex",textDecoration:"none",backgroundColor:d.white,color:d.colors.blue[6],transition:"background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease","&:hover":{backgroundColor:d.colors.blue[6],color:d.white,borderColor:d.colors.blue[6]},...i&&"object"==typeof i&&!Array.isArray(i)?i:{}},style:r,...m,children:s({id:"categoryPage.seeAll"})})},formatProps=(e,t)=>{var a,n;return"top_service"===t?{name:e.name,validOutpatient:!1,validTelemedicine:!1,rating:e.hospital.rating||"",doctorSpecialties:[],hospital:e.hospital.name||"",hospitalLogo:e.hospital.logo||"",hospitalAddress:e.hospital.address||"",slug:e.slug,id:e.id,avatar:e.image||"",price:e.price||"",priceUnit:e.priceUnit||"",originalPrice:e.originalPrice||"",cityName:(null===(a=e.hospital.city)||void 0===a?void 0:a.name)||""}:{name:e.name,validOutpatient:e.validOutpatient,validTelemedicine:e.validTelemedicine,rating:e.rating,doctorSpecialties:e.doctorSpecialties,hospital:e.hospital.name||"",hospitalLogo:e.hospital.logo||"",hospitalAddress:e.hospital.address||"",slug:e.slug,id:e.id,avatar:e.avatar,price:e.price||"",priceUnit:e.priceUnit||"",originalPrice:e.originalPrice||"",cityName:(null===(n=e.hospital.city)||void 0===n?void 0:n.name)||"",doctorWebsite:e.doctorWebsite||""}},eF={[T.L.Vietnam]:"tat-ca",[T.L.Indonesia]:"semua"},getListingItemId=e=>{var t;return String(null!==(t=e.id)&&void 0!==t?t:"")};var eE=(0,l.memo)((0,l.forwardRef)((e,t)=>{var a,n;let{defaultColor:r,sessionProps:i,hidePrice:s,hideViewAll:d,hideBgPattern:m,listingAll:u=[],selectedFilterId:g,filterColor:p,styles:h,showConfirmCityPopup:f,viewAllUrl:x,layoutConfig:b,showPromotionEvent:y,carouselListProps:S,applyH1:T,campaign:B,...N}=e,{locale:F}=(0,Y.$)(),E=!!(h&&Object.keys(h).length>0),{classes:A}=eh({},{name:"CarePathDoctorList",...E?{styles:h}:{}}),{formatMessage:R}=(0,k.A)(),L=(0,l.useRef)(null),P=(0,l.useRef)(null),M=(0,l.useRef)(null),[_,z]=(0,l.useState)(!0),{title:W,description:H,typeEmbedding:O,embebIds:G,allDoctors:V,horizontalLayout:j,backgroundColor:U}=i,[Q,X]=(0,l.useState)(()=>"top_service"===i.typeEmbedding&&u.length>0?u:null),{listingAll:J,isFetchingRemaining:Z}=useEmbeddingDoctorsListing(u,i),$=U||r,ee=(0,c.useMantineTheme)(),et=(0,C.a)(),ea=(0,l.useMemo)(()=>"top_service"===O,[O]),en=(0,l.useMemo)(()=>"doctors"===O||"specialties"===O,[V,O]),[er,eo]=(0,l.useState)(""),[ei,el]=(0,l.useState)(null),[es,ed]=(0,l.useState)(null),ec=(0,l.useMemo)(()=>({keyword:er,cityFilterId:ei,specialtyFilterId:es}),[er,ei,es]),[em,eu]=(0,l.useState)(null),eg=(0,l.useMemo)(()=>en?applyCarePathDoctorListFilters(J,ec):ea?null!=Q?Q:[]:J,[en,ea,J,ec,Q]),ep=(0,l.useMemo)(()=>en?"doctors:".concat(er,"|").concat(null!=ei?ei:"","|").concat(null!=es?es:""):ea?"top_service:".concat(null!=em?em:"all"):"default",[en,ea,er,ei,es,em]),ef=(0,l.useCallback)((e,t)=>formatProps(e,t),[]),ev=(0,l.useCallback)(()=>{var e,t;eo(""),el(null),ed(null),null===(e=P.current)||void 0===e||e.setDoctorsSelectedFilterId("all"),null===(t=M.current)||void 0===t||t.setSpecialtySelectedFilterId("all")},[]),ex=0===J.length&&(Z||ea&&null===Q||!ea&&!en&&null===Q),eb=null!==(a=null==eg?void 0:eg.length)&&void 0!==a?a:0,ey=J.length,eC=en&&ey>0,eS=null!==(n=null==S?void 0:S.gapDesktop)&&void 0!==n?n:20,ek=p||r,eD=(0,l.useCallback)(e=>{let{doctors:t,isAllCitiesSelected:a,filterValue:n}=e;X(t),z(a),eu(n)},[]),eY=(0,l.useCallback)(e=>{let{filterValue:t,isAllCitiesSelected:a}=e;el(a?null:t)},[]),eI=(0,l.useCallback)(e=>{let{filterValue:t,isAllSpecialtiesSelected:a}=e;ed(a?null:t)},[]);(0,l.useImperativeHandle)(t,()=>({setSelectedFilterId:e=>{var t,a,n;null===(t=L.current)||void 0===t||t.setTopServiceSelectedFilterId(e),null===(a=P.current)||void 0===a||a.setDoctorsSelectedFilterId(e),null===(n=M.current)||void 0===n||n.setSpecialtySelectedFilterId(e)}})),(0,l.useEffect)(()=>{ea||en||X(J)},[ea,en,J]);let eB=(0,l.useMemo)(()=>(null===ei||"all"===ei)&&(null===es||"all"===es),[ei,es]),eE=(0,l.useMemo)(()=>buildCarePathDoctorListResetEventLabel({searchKeyword:er,cityFilterId:ei,specialtyFilterId:es,listingAll:J}),[er,ei,es,J]),eA=(0,l.useMemo)(()=>!hasCarePathDoctorListActiveFilters({searchKeyword:er,cityFilterId:ei,specialtyFilterId:es}),[er,ei,es]),eR=(0,l.useMemo)(()=>en&&hasCarePathDoctorListActiveFilters({searchKeyword:er,cityFilterId:ei,specialtyFilterId:es}),[en,er,ei,es]),eL=(0,l.useMemo)(()=>ea&&!!em&&"all"!==em,[ea,em]),eP=(0,l.useMemo)(()=>eR||eL?ey:eb,[eR,eL,ey,eb]),viewAllByType=e=>{var t;return"/care/".concat((null==eF?void 0:eF[F])||"all","/").concat(null===(t=I.ix[F])||void 0===t?void 0:t["top_service"===O?"SERVICE":"DOCTOR"],"/").concat(e?"?specialtyId=".concat(e):"")},eM=x||"https://".concat(D.domainLocales[F]).concat("specialties"===O&&1===G.length?viewAllByType(null==G?void 0:G[0]):viewAllByType()),e_={href:eM,target:"_blank","data-event-category":"Service Connection","data-event-action":"View All Doctor Click","data-event-label":eM},ez=!d&&!ea&&!V,eW=(0,l.useMemo)(()=>resolveDoctorCardDisplay({isMobile:et,itemCount:eP,horizontalLayout:j,layoutConfig:b}),[et,eP,j,b]),eH=(0,l.useMemo)(()=>resolveDesktopDoctorListLayout(eP,"horizon"===eW,{useScrollLayoutFromFour:Z&&eP===eT.tu}),[eP,eW,Z]),eO=(0,l.useCallback)(()=>{var e,t;ea?null===(e=L.current)||void 0===e||e.openFilter():en&&(null===(t=P.current)||void 0===t||t.openFilter())},[ea,en]),eG=(0,l.useMemo)(()=>({className:"item",isService:"top_service"===O,hidePrice:s,display:eW,showPromotionEvent:y,showConfirmCityPopup:f&&(en?eB:_),campaign:B,onCancel:eO}),[O,s,eW,y,f,en,eB,_,B,eO]);return(0,o.Y)(w.TemplateProvider,{variant:w.CustomStylesType.LEADGEN,children:(0,o.FD)(c.Box,{sx:{position:"relative",background:$},...N,children:[!m&&(0,o.FD)(c.Box,{sx:{position:"absolute",inset:0,overflow:"hidden",pointerEvents:"none"},children:[(0,o.Y)(c.Box,{sx:{position:"absolute",left:0,top:0},children:(0,o.Y)(Circle,{color:ee.fn.darken($,.08)})}),(0,o.FD)(c.Box,{sx:{position:"absolute",right:0,bottom:0},children:[(0,o.Y)(HalfCircle,{color:ee.fn.lighten($,.08)}),(0,o.Y)(c.Box,{sx:{position:"absolute",left:(0,c.rem)(44),top:0,transform:"translate(0, -75%)"},children:(0,o.Y)(Shape,{color:ee.fn.darken($,.08)})})]})]}),(0,o.Y)(v.m,{style:{position:"relative"},children:(0,o.FD)(c.Stack,{sx:e=>({padding:"".concat((0,c.rem)(24)," 0"),gap:8,[e.fn.largerThan("sm")]:{gap:24,padding:"".concat((0,c.rem)(40)," 0")}}),children:[(0,o.FD)(c.Flex,{justify:"space-between",sx:e=>({gap:16,[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:8}}),children:[(0,o.FD)(c.Stack,{sx:e=>({gap:(0,c.rem)(8),[e.fn.largerThan("sm")]:{gap:(0,c.rem)(12)}}),children:[W&&(0,o.Y)(w.Text,{size:"h2",as:T?"h1":"h2",weight:"semiBold",variant:"primary",color:"#fff",children:W}),H&&(0,o.Y)(w.Text,{size:"s3",color:"#fff",weight:"semiBold",children:H})]}),ea?(0,o.Y)(c.Box,{sx:getCarePathDoctorListDefaultFilterWidthSx(ee),children:(0,o.Y)(eN,{ref:L,categoryIds:G,listingAll:J,selectedFilterId:g,filterColor:p,onFilterChange:eD})}):eC?(0,o.Y)(c.Box,{sx:e=>({width:"100%",[e.fn.largerThan("sm")]:{width:"auto"}}),children:(0,o.Y)(q,{listingAll:J,searchKeyword:er,cityFilterId:ei,specialtyFilterId:es,filterColor:p,doctorsFilterRef:P,specialtiesFilterRef:M,onSearchKeywordChange:eo,onDoctorsFilterChange:eY,onSpecialtiesFilterChange:eI,onResetFilters:ev,showResetButton:!et})}):null]}),(0,o.FD)(c.Flex,{justify:"space-between",align:"center",sx:e=>({[e.fn.smallerThan("sm")]:{minHeight:48}}),children:[(0,o.Y)(w.Text,{size:"title1",color:"#fff",weight:"semiBold",children:R({id:ea?"carePathDoctorList.totalSearchPerTotalService":"carePathDoctorList.totalSearchPerTotalDoctor",defaultMessage:ea?"{search}/{total} services":"{search}/{total} doctors"},{search:eb,total:J.length})}),eC&&et&&(0,o.Y)(K,{onClick:ev,eventLabel:eE,disabled:eA}),ez&&!et&&(0,o.Y)(ViewAllBtn,{...e_})]}),(0,o.Y)(ew,{displayDoctors:eg,isLoading:ex,typeEmbedding:O,isMobile:et,listingGapDesktop:eS,desktopListLayout:eH,arrowColor:ek,mobileListFilterKey:ep,cardWrapperClassName:A.cardWrapper,formatCardItem:ef,cardCommonProps:eG}),ez&&et&&(0,o.Y)(c.Box,{className:eb>4?A.mobileViewAllBtnWrapper:A.mobileViewAllBtnWrapperOnly,children:(0,o.Y)(ViewAllBtn,{...e_,fullWidth:!0})})]})})]})})}),(e,t)=>{var a,n;let r=null!==(a=e.listingAll)&&void 0!==a?a:[],o=null!==(n=t.listingAll)&&void 0!==n?n:[];return!(r!==o&&(r.length!==o.length||r.some((e,t)=>getListingItemId(e)!==getListingItemId(o[t]))))&&e.defaultColor===t.defaultColor&&e.selectedFilterId===t.selectedFilterId&&e.hidePrice===t.hidePrice&&e.hideViewAll===t.hideViewAll&&e.hideBgPattern===t.hideBgPattern&&e.filterColor===t.filterColor&&e.showConfirmCityPopup===t.showConfirmCityPopup&&e.viewAllUrl===t.viewAllUrl&&e.layoutConfig===t.layoutConfig&&e.showPromotionEvent===t.showPromotionEvent&&e.applyH1===t.applyH1&&e.campaign===t.campaign&&e.sessionProps.title===t.sessionProps.title&&e.sessionProps.description===t.sessionProps.description&&e.sessionProps.typeEmbedding===t.sessionProps.typeEmbedding&&e.sessionProps.horizontalLayout===t.sessionProps.horizontalLayout&&e.sessionProps.backgroundColor===t.sessionProps.backgroundColor&&e.sessionProps.allDoctors===t.sessionProps.allDoctors&&e.sessionProps.embebIds===t.sessionProps.embebIds}),eA=(0,c.createStyles)((e,t)=>{let{bgColor:a,productNumber:n}=t;return{root:{backgroundColor:a||e.colors.blue[0],paddingTop:(0,c.rem)(80),paddingBottom:(0,c.rem)(80),[e.fn.smallerThan("sm")]:{paddingTop:(0,c.rem)(32),paddingBottom:(0,c.rem)(32)}},inner:{display:"flex",flexDirection:"column",gap:(0,c.rem)(16),[e.fn.largerThan("sm")]:{gap:(0,c.rem)(40)}},heading:{color:"#fff"},widgets:{[e.fn.largerThan("sm")]:{...1===n?{background:"#fff"}:{padding:0,background:"transparent"}},[e.fn.smallerThan("sm")]:{background:"transparent",margin:"0 -16px"}},cardRoot:{[e.fn.largerThan("sm")]:{...2===n?{padding:(0,c.rem)(16)}:{}}},cardThumbnail:{[e.fn.largerThan("sm")]:{...2===n?{width:(0,c.rem)(164)}:{}}},progressBar:{},progressRoot:{background:"rgba(255,255,255,0.5)"}}}),eR=a("jeYB");let CarePathProductWidgets=e=>{let{title:t,products:a=[],styles:n,classNames:r,className:i,bgColor:l,applyH1:s}=e,d=(0,C.a)(),m=a.length,{classes:u,cx:g}=eA({bgColor:l,productNumber:m},{name:"CarePathProductWidgets",styles:n,classNames:r});return a.length>0?(0,o.Y)(c.Box,{className:g(u.root,i),children:(0,o.Y)(v.m,{children:(0,o.FD)(c.Box,{className:u.inner,children:[t&&(0,o.Y)(w.Text,{size:"h2",as:s?"h1":"h3",className:u.heading,children:t}),(0,o.Y)(eR.ProductsWidget,{products:a,numberItemToSlideDesktop:6,numberItemToSlideMobile:2,cartBtnColor:l,layout:d?Array(m).fill("wide-horizon"):["wide-horizon","wide-horizon","horizon","vertical"],classNames:{root:u.widgets,progressBar:u.progressBar,progressRoot:u.progressRoot,cardRoot:u.cardRoot}})]})})}):null};var eL=a("Zsbt");let PfizerDisclaimer=()=>{let{formatMessage:e}=(0,k.A)(),t=(0,c.useMantineTheme)();return(0,o.Y)(w.TemplateProvider,{variant:w.CustomStylesType.LEADGEN,children:(0,o.FD)(c.Box,{sx:{display:"flex",background:t.colors.neutral[0],border:"1px solid ".concat(t.colors.neutral[1]),padding:"".concat((0,c.rem)(12)," ").concat((0,c.rem)(16)),borderRadius:8,[t.fn.smallerThan("sm")]:{flexDirection:"column",gap:8},[t.fn.largerThan("sm")]:{gap:40}},children:[(0,o.FD)(c.Flex,{gap:8,sx:{whiteSpace:"nowrap",".icon":{flexShrink:0,marginTop:3,path:{"&:first-child":{fill:"#fff"}}}},children:[(0,o.Y)(eL.A,{className:"icon",size:16,color:t.fn.primaryColor()}),(0,o.Y)(w.Text,{size:"p3",weight:"semiBold",variant:"secondary",children:e({id:"pfizer.disclaimer.title",defaultMessage:"Nội dung được t\xe0i trợ bởi Pfizer"})})]}),(0,o.Y)(w.Text,{size:"overline",variant:"secondary",sx:{lineHeight:(0,c.rem)(16),[t.fn.smallerThan("sm")]:{lineHeight:(0,c.rem)(16)}},children:e({id:"pfizer.disclaimer.desc",defaultMessage:"Th\xf4ng tin về sức khỏe trong t\xe0i liệu n\xe0y chỉ được cung cấp cho mục đ\xedch gi\xe1o dục v\xe0 kh\xf4ng nhằm mục đ\xedch thay thế việc tham khảo \xfd kiến với chuy\xean gia tại c\xe1c cơ sở y tế. Tất cả c\xe1c quyết định li\xean quan đến việc chăm s\xf3c bệnh nh\xe2n phải được thực hiện bởi chuy\xean gia tại c\xe1c cơ sở y tế dựa tr\xean việc xem x\xe9t c\xe1c đặc điểm ri\xeang biệt của từng bệnh nh\xe2n v\xe0 dựa tr\xean đ\xe1nh gi\xe1 v\xe0 điều trị của nh\xe2n vi\xean y tế."})})]})})};var eP=a("HtcZ"),eM=(0,c.createStyles)(e=>({root:{display:"block",position:"relative",backgroundColor:"#fff",borderRadius:32,border:"1px solid ".concat(e.colors.neutral[1]),[e.fn.smallerThan("sm")]:{borderRadius:16},[e.fn.largerThan("sm")]:{"&:hover":{[".".concat((0,c.getStylesRef)("thumbnailImg"))]:{transform:"scale(1.1)"}}}},info:{position:"relative",display:"flex",flexDirection:"column",gap:16,padding:16,[e.fn.largerThan("sm")]:{padding:"24px 32px 32px"}},bg:{position:"absolute",top:0,left:0,zIndex:0,width:"100%",borderRadius:"inherit",overflow:"hidden",border:"2px solid transparent"},thumbnail:{zIndex:1,overflow:"hidden",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",img:{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},img:{ref:(0,c.getStylesRef)("thumbnailImg"),transition:"all 0.3s ease"}}));let VerticalLayout=e=>{let{title:t,description:a,thumbnail:n,ratio:r=430/380,url:i="",className:l,classNames:s,styles:m,...u}=e,{classes:g,cx:p}=eM(void 0,{name:"InfoCard--VerticalLayout",styles:m,classNames:s}),h=(0,C.a)();return(0,o.FD)(c.Box,{className:p(l,g.root),...i&&h&&{component:"a",href:i,target:"_blank"},...u,children:[(0,o.Y)(c.AspectRatio,{ratio:r,className:g.thumbnail,children:(0,o.Y)("img",{loading:"lazy",src:n,alt:t,className:g.img})}),(0,o.Y)(c.AspectRatio,{ratio:429/380,className:g.bg,children:(0,o.Y)("img",{loading:"lazy",src:d.C.getAssetPath("appIntro/blue-blur-bg.jpg"),alt:""})}),(0,o.FD)(c.Box,{className:g.info,children:[t&&(0,o.Y)(w.Text,{size:h?"s1":"s2",children:t}),a&&(0,o.Y)(w.Text,{size:h?"p2":"p1",as:"div",dangerouslySetInnerHTML:{__html:a}})]})]})};var e_=(0,c.createStyles)(e=>({root:{backgroundColor:"#fff",borderRadius:16,border:"1px solid rgba(228, 232, 236, 0.5)",padding:20,[e.fn.largerThan("md")]:{padding:"24px 24px 24px 72px",borderRadius:32}},container:{display:"flex",[e.fn.smallerThan("md")]:{flexDirection:"column",gap:(0,c.rem)(24)},[e.fn.largerThan("md")]:{gap:(0,c.rem)(48),justifyContent:"space-between",alignItems:"stretch"}},icon:{width:(0,c.rem)(40)},iconWrapper:{flexShrink:0},heading:{fontSize:26,lineHeight:(0,c.rem)(36),fontWeight:500,[e.fn.largerThan("md")]:{fontSize:48,lineHeight:(0,c.rem)(58)}},info:{display:"flex",gap:(0,c.rem)(16),flexDirection:"column",[e.fn.largerThan("md")]:{flexDirection:"column",gap:(0,c.rem)(24),alignItems:"flex-start"}},infoTop:{display:"flex",flexDirection:"column",gap:(0,c.rem)(16),[e.fn.largerThan("md")]:{gap:(0,c.rem)(24)}},infoCol:{display:"flex",flexDirection:"column",gap:(0,c.rem)(16),justifyContent:"space-between",maxWidth:711,[e.fn.largerThan("md")]:{gap:(0,c.rem)(24),paddingTop:48}},imgCol:{[e.fn.largerThan("md")]:{width:"100%",maxWidth:(0,c.rem)(532)}},boxFrame:{position:"relative",borderRadius:(0,c.rem)(12),[e.fn.largerThan("md")]:{borderRadius:(0,c.rem)(24),"&:before":{content:'""',height:0,display:"block",paddingBottom:"100%"}}},boxFrameInner:{borderRadius:"inherit",[e.fn.largerThan("md")]:{position:"absolute",top:0,left:0,right:0,bottom:0}},thumbnail:{maxWidth:"100%",maxHeight:"100%",objectFit:"cover"},imgHref:{display:"block"},img:{borderRadius:"inherit"},ctaBtn:{minWidth:(0,c.rem)(180)},disclaimerRoot:{},disclaimerTargetBtn:{},disclaimerDropdown:{},disclaimerIcon:{},btn:{position:"relative",zIndex:1,padding:0,border:0,"&:hover, &:focus":{backgroundColor:"transparent"},fontWeight:400},btnIcon:{marginLeft:8}})),ez=a("lNEE");let InfoCard=e=>(0,o.Y)(VerticalLayout,{...e});InfoCard.WideLayout=e=>{let{icon:t,title:a,description:n,thumbnail:r,url:i="",styles:l,classNames:s,...d}=e,{formatMessage:m}=(0,k.A)(),{classes:u,cx:g}=e_(void 0,{name:"InfoCard--WideLayout",styles:l,classNames:s}),p=(0,C.a)();return(0,o.Y)(c.Box,{className:u.root,styles:l,classNames:s,...d,children:(0,o.FD)("div",{className:u.container,children:[(0,o.Y)(c.Box,{className:u.infoCol,children:(0,o.FD)(c.Box,{className:u.info,children:[t&&(0,o.Y)(c.Box,{className:u.iconWrapper,children:(0,o.Y)("img",{src:t,alt:a,loading:"lazy",className:u.icon,onError:e=>{e.currentTarget.style.display="none"}})}),a&&(0,o.Y)("h2",{className:u.heading,children:a}),n&&(0,o.Y)(w.Text,{size:"p3",as:"div",children:(0,o.Y)(ez.f2,{content:n})}),i&&p?(0,o.Y)(c.Box,{component:"a",href:i,target:"_blank",className:g(u.ctaBtn,"pointer-event-child-none"),"data-event-category":"App Install","data-event-action":"Try Now Button","data-event-label":i,children:(0,o.Y)(w.Button,{className:u.btn,classNames:{rightIcon:u.btnIcon},variant:"secondary",rightIcon:(0,o.Y)(ex.A,{size:18,useCurrentColor:!0}),children:m({id:"common.tryNow",defaultMessage:"D\xf9ng thử ngay"})})}):null]})}),(0,o.Y)(c.Box,{className:u.imgCol,children:(0,o.Y)("div",{className:u.boxFrame,children:(0,o.Y)(c.Box,{className:u.boxFrameInner,children:(0,o.Y)("img",{src:r,className:u.thumbnail,loading:"lazy",alt:a})})})})]})})},InfoCard.VerticalLayout=VerticalLayout;var eW=(0,c.createStyles)(()=>({item:{height:"100%"}})),eH=a("magG");let AppIntroCards=e=>{let{data:t=[],isSingleLayout:a,...n}=e,{classes:r,theme:i}=eW(void 0,{name:"AppIntroCards"}),l=(0,C.a)();return a||1===t.length?(0,o.Y)(c.Stack,{spacing:24,...n,children:t.map((e,t)=>(0,o.Y)(InfoCard.WideLayout,{thumbnail:e.banner,...e,sx:()=>({position:"sticky",top:36+(t+1)*20,[i.fn.largerThan("sm")]:{top:110+(t+1)*20}})},t))}):(0,o.Y)(c.Box,{...n,children:(0,o.Y)(eH.v,{showFullSlide:!l,disableCarousel:l,lengthToCarouselDesktop:4,lengthToCarouselMobile:2,lazyLoad:!0,carouselSetting:{loop:!1},children:(0,o.Y)(eH.v.Slider,{styles:e=>({listing:{[e.fn.smallerThan("sm")]:{flexDirection:"column"}}}),children:t.map((e,a)=>(0,o.Y)(InfoCard.VerticalLayout,{className:r.item,ratio:2===t.length?1.65:void 0,...e,thumbnail:e.banner},a))})})})};var eO=a("yv0P"),eG=(0,c.createStyles)(e=>({root:{display:"flex",gap:16,alignItems:"center",borderRadius:12,[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{backgroundColor:"#fff",padding:"8px 24px 8px 8px"}},info:{display:"flex",flexDirection:"column",gap:12},thumb:{height:120,[e.fn.smallerThan("sm")]:{display:"none"}},download:{display:"flex",alignItems:"center",gap:12,[e.fn.smallerThan("sm")]:{flexDirection:"column"}},apps:{display:"flex",gap:12},app:{height:40},body:{display:"flex",flexDirection:"column",gap:(0,c.rem)(8),alignItems:"center"},img:{width:(0,c.rem)(160)},button:{}}));let AppDownloadInfoCard=e=>{let{url:t,styles:a,classNames:n,className:r,...i}=e,{classes:l,cx:s}=eG(void 0,{name:"AppDownloadInfoCard",styles:a,classNames:n}),m=(0,C.a)();return(0,o.FD)(c.Box,{className:s(r,l.root),...i,children:[(0,o.Y)("img",{src:d.C.getAssetPath("appIntro/qr-code.jpg"),className:l.thumb,alt:"Qr Code",loading:"lazy"}),(0,o.FD)("div",{className:l.info,children:[(0,o.FD)("div",{className:l.download,children:[(0,o.Y)(c.Avatar.Group,{children:[,,,,].fill("").map((e,t)=>(0,o.Y)(c.Avatar,{src:d.C.getAssetPath("appIntro/avatar".concat(t+1,".jpg")),size:28,radius:"xl"},t))}),(0,o.Y)(w.Text,{size:"p4",children:"30k+ người d\xf9ng sử dụng sản phẩm của ch\xfang t\xf4i"})]}),(0,o.FD)("div",{className:l.apps,children:[(0,o.Y)(c.Box,{...m&&t&&{component:"a",href:t,target:"_blank","data-event-category":"App Install","data-event-action":"Open App Store","data-event-label":t},children:(0,o.Y)("img",{src:d.C.getAssetPath("appIntro/app-store.png"),className:l.app,alt:"App Store",loading:"lazy"})}),(0,o.Y)(c.Box,{...m&&t&&{component:"a",href:t,target:"_blank","data-event-category":"App Install","data-event-action":"Open Google Play","data-event-label":t},children:(0,o.Y)("img",{src:d.C.getAssetPath("appIntro/google-play.png"),className:l.app,alt:"Google Play",loading:"lazy"})})]})]})]})};var eV=a("Kbc6"),ej=a("ohnT"),eU=a("3CQ3");let eK=(0,c.keyframes)({"0%":{transform:"translateY(-4px)"},"50%":{transform:"translateY(4px)"},"100%":{transform:"translateY(-4px)"}});(0,c.keyframes)({"0%":{transform:"scale(1)",opacity:1},"50%":{transform:"scale(1.2)",opacity:0},"100%":{transform:"scale(1.2)",opacity:0}});let eq=(0,c.keyframes)({"0%":{transform:"rotate(0)"},"100%":{transform:"rotate(360deg)"}});(0,c.keyframes)({"0%":{transform:"scale(1.2)",opacity:0},"50%":{transform:"scale(1)",opacity:1},"100%":{transform:"scale(1)",opacity:1}});var eQ=(0,c.createStyles)(e=>({root:{display:"flex",flexDirection:"column",gap:40,[e.fn.largerThan("sm")]:{gap:80}},banner:{position:"relative",backgroundImage:"url(".concat(d.C.getAssetPath("appIntro/hero-bg-mobile.jpg"),")"),backgroundSize:"cover",padding:"32px 0 16px",[e.fn.largerThan("sm")]:{backgroundImage:"url(".concat(d.C.getAssetPath("appIntro/hero-bg.jpg"),")"),padding:"16px 0 36px"}},inner:{display:"flex",flexDirection:"column",gap:8},body:{[e.fn.largerThan("sm")]:{position:"relative","&:before":{content:'""',display:"block",paddingBottom:"calc(50% - 80px)",height:0}}},bodyInner:{display:"flex",alignItems:"center",justifyContent:"space-between",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:16},[e.fn.largerThan("sm")]:{gap:24,position:"absolute",top:0,left:0,right:0,bottom:0}},heading:{fontSize:72,fontWeight:500,lineHeight:(0,c.rem)(86),[e.fn.smallerThan("sm")]:{fontSize:32,lineHeight:(0,c.rem)(42),textAlign:"center"}},thumbnail:{maxHeight:640,[e.fn.smallerThan("sm")]:{maxHeight:340}},info:{display:"flex",flexDirection:"column",alignItems:"center",gap:16,[e.fn.largerThan("sm")]:{alignItems:"flex-start",width:"55%",gap:24}},logoNav:{[e.fn.smallerThan("sm")]:{display:"none"}},logo:{width:40},logoHead:{fontSize:14,fontWeight:600},nav:{[e.fn.smallerThan("sm")]:{display:"none"}},heroDesc:{fontSize:22,lineHeight:(0,c.rem)(34),[e.fn.largerThan("sm")]:{fontSize:32,lineHeight:(0,c.rem)(42)}},bannerImageFrame:{[e.fn.largerThan("sm")]:{width:"45%",flexGrow:1}},bannerImageFrameInner:{[e.fn.largerThan("sm")]:{position:"relative","&:before":{content:'""',height:0,paddingBottom:"100%",display:"block"}}},bannerImageFrameInnerInner:{[e.fn.largerThan("sm")]:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"flex-end",alignItems:"center",img:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}}},scrollToNext:{position:"absolute",bottom:32,left:0,right:0,zIndex:1,[e.fn.largerThan("sm")]:{bottom:24}},scrollToNextBtn:{cursor:"pointer",width:88,color:e.fn.primaryColor(),borderRadius:"100%",backgroundColor:"transparent",transition:"all 0.3s ease",[e.fn.smallerThan("sm")]:{backgroundColor:"rgba(255, 255, 255, 0.5)",backdropFilter:"blur(8px)"},[e.fn.largerThan("sm")]:{width:112}},scrollToNextFrame:{[e.fn.smallerThan("sm")]:{borderRadius:"100%",border:"1px solid #fff",top:"20px !important",left:"20px !important",right:"20px !important",bottom:"20px !important",width:"auto !important",height:"auto !important"}},scrollToNextThumb:{[e.fn.largerThan("sm")]:{width:100},"&:hover":{[".".concat((0,c.getStylesRef)("scrollToNextLogo"))]:{animationPlayState:"paused"},[".".concat((0,c.getStylesRef)("scrollToNextIcon"))]:{animation:"".concat(eK," 0.8s infinite")}}},scrollToNextLogo:{ref:(0,c.getStylesRef)("scrollToNextLogo"),animation:"".concat(eq," 8s linear infinite"),[e.fn.smallerThan("sm")]:{top:"4px !important",left:"4px !important",width:"calc(100% - 8px)!important",height:"calc(100% - 8px)!important"}},scrollToNextIcon:{ref:(0,c.getStylesRef)("scrollToNextIcon")}}));let AppIntroHeroBanner=e=>{let{title:t,banner:a,headerDescription:n,innerClass:r="",descInnerClass:i="",onNavClick:s,logo:m,styles:u,className:g,classNames:p,...h}=e,{classes:f,cx:v}=eQ(void 0,{name:"AppIntroHeroBanner",styles:u,classNames:p}),{navigating:x}=(0,l.useContext)(eU.d),b=(0,C.a)();return(0,o.FD)("div",{className:v(g,f.root),...h,children:[(0,o.FD)("div",{className:f.banner,children:[(0,o.FD)("div",{className:v(r,f.inner),children:[!b&&(0,o.Y)(eV.H,{navigating:x,onNavClick:s,selectedSection:"tong-quan",logo:m,className:f.nav}),(0,o.Y)("div",{className:f.body,children:(0,o.FD)("div",{className:f.bodyInner,children:[(0,o.FD)("div",{className:f.info,children:[t&&(0,o.Y)("h1",{className:f.heading,children:t}),(0,o.Y)(AppDownloadInfoCard,{url:null==m?void 0:m.url})]}),a&&(0,o.Y)("div",{className:f.bannerImageFrame,children:(0,o.Y)("div",{className:f.bannerImageFrameInner,children:(0,o.Y)("div",{className:f.bannerImageFrameInnerInner,children:(0,o.Y)("img",{loading:"lazy",src:a,className:f.thumbnail,alt:t})})})})]})})]}),(0,o.Y)(c.Flex,{justify:"center",className:f.scrollToNext,children:(0,o.Y)("button",{onClick:()=>(0,ej.k5)({hash:"hero-description",isMobile:b}),className:f.scrollToNextBtn,children:(0,o.FD)(c.AspectRatio,{ratio:1,className:f.scrollToNextThumb,children:[(0,o.Y)("img",{src:d.C.getAssetPath("appIntro/circle-logo.svg"),alt:"Health app qrcode",loading:"lazy",className:f.scrollToNextLogo}),(0,o.Y)(c.Flex,{align:"center",justify:"center",className:f.scrollToNextFrame,children:(0,o.Y)(eO.A,{color:"currentColor",className:f.scrollToNextIcon,size:b?28:32})})]})})})]}),n&&(0,o.Y)(c.Box,{className:f.heroDesc,"data-hashtag":"hero-description","data-gap":40,children:(0,o.Y)(ez.f2,{className:v(i,f.inner),content:n})})]})};var eX=(0,c.createStyles)(e=>({root:{position:"relative",backgroundColor:"#fff",backgroundPosition:"cover",backgroundRepeat:"no-repeat",borderRadius:16,border:"1px solid rgba(228, 232, 236, 0.5)",padding:16,display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",gap:16,transition:"all .3s ease",overflow:"hidden",[e.fn.largerThan("sm")]:{borderRadius:32,padding:"32px 32px 24px 32px","&:hover":{transform:"translateY(-10px)",[".".concat((0,c.getStylesRef)("bg"))]:{}}}},thumbnailFrame:{borderRadius:"100%",border:"1px solid ".concat(e.colors.neutral[1]),backgroundColor:e.colors.neutral[0],width:48,[e.fn.largerThan("sm")]:{width:72}},thumbnail:{display:"flex"},thumbnailImg:{maxWidth:28,maxHeight:28,[e.fn.largerThan("sm")]:{maxWidth:40,maxHeight:40}},heading:{fontSize:18,lineHeight:(0,c.rem)(26),fontWeight:600,[e.fn.largerThan("sm")]:{fontSize:22,lineHeight:"32px"}},info:{position:"relative",zIndex:1,display:"flex",flexDirection:"column",gap:16},infoTop:{display:"flex",gap:16,[e.fn.smallerThan("sm")]:{alignItems:"center",justifyContent:"space-between"},[e.fn.largerThan("sm")]:{flexDirection:"column"}},infoHead:{display:"flex",gap:13,[e.fn.smallerThan("sm")]:{alignItems:"center"},[e.fn.largerThan("sm")]:{flexDirection:"column"}},arrow:{flexGrow:0,[e.fn.largerThan("sm")]:{display:"none"}},desc:{fontSize:14,lineHeight:(0,c.rem)(22),color:"#595959",[e.fn.largerThan("sm")]:{fontSize:18,lineHeight:(0,c.rem)(28)}},btn:{position:"relative",zIndex:1,padding:0,border:0,fontWeight:400,"&:hover, &:focus":{backgroundColor:"transparent"},[e.fn.smallerThan("sm")]:{display:"none"}},btnIcon:{marginLeft:8},bg:{position:"absolute",top:0,left:0,right:0,zIndex:0,borderRadius:"inherit"},bgImg:{ref:(0,c.getStylesRef)("bg"),opacity:0,borderRadius:"inherit",transition:"all .3s ease"}}));let InfoCardWithSmallIcon=e=>{let{heading:t,description:a,thumbnail:n,url:r,className:i,classNames:l,styles:s,...m}=e,{classes:u,cx:g}=eX(void 0,{name:"InfoCardWithSmallIcon",styles:s,classNames:l}),{formatMessage:p}=(0,k.A)(),h=(0,C.a)();return(0,o.FD)(c.Box,{component:h&&r?"a":"div",...h&&r&&{href:r,target:"_blank"},className:g(i,u.root),"data-event-category":"App Install","data-event-action":"Health Tools","data-event-label":r,...m,children:[(0,o.FD)(c.Box,{className:u.info,children:[(0,o.FD)(c.Box,{className:u.infoTop,children:[(0,o.FD)(c.Box,{className:u.infoHead,children:[(0,o.Y)(c.AspectRatio,{ratio:1,className:u.thumbnailFrame,children:(0,o.Y)(c.Box,{className:u.thumbnail,children:(0,o.Y)("img",{loading:"lazy",src:n,className:u.thumbnailImg,alt:t})})}),t&&(0,o.Y)("h4",{className:u.heading,children:t})]}),(0,o.Y)(ex.A,{className:u.arrow,size:20})]}),a&&(0,o.Y)(ez.f2,{className:u.desc,content:a})]}),h&&r&&(0,o.Y)(w.Button,{className:u.btn,classNames:{rightIcon:u.btnIcon},variant:"secondary",rightIcon:(0,o.Y)(ex.A,{size:18,useCurrentColor:!0}),children:p({id:"common.tryNow",defaultMessage:"D\xf9ng thử ngay"})}),(0,o.Y)(c.AspectRatio,{ratio:429/380,className:u.bg,children:(0,o.Y)("img",{loading:"lazy",src:d.C.getAssetPath("appIntro/blue-blur-bg.jpg"),alt:"",className:u.bgImg})})]})};var eJ=(0,c.createStyles)(e=>({root:{},inner:{display:"flex",flexDirection:"column",gap:48},listing:{display:"flex",flexDirection:"column",gap:32,[e.fn.largerThan("sm")]:{gap:48}},group:{display:"flex",flexDirection:"column",gap:24},header:{display:"flex",flexDirection:"column",gap:24},desc:{fontSize:16,lineHeight:(0,c.rem)(24),[e.fn.largerThan("sm")]:{fontSize:18,lineHeight:(0,c.rem)(28)}},heading:{fontSize:28,lineHeight:(0,c.rem)(34),fontWeight:500,[e.fn.largerThan("sm")]:{fontSize:48,lineHeight:(0,c.rem)(58)}},item:{height:"100%"}}));let InfoCardWithSmallIconSection=e=>{let{title:t,description:a,data:n,innerClass:r,className:i,classNames:l,styles:s}=e,{classes:d,cx:m}=eJ(void 0,{name:"InfoCardWithSmallIconSection",styles:s,classNames:l}),u=(0,C.a)();return(0,o.Y)(c.Box,{className:m(i,d.root),children:(0,o.FD)("div",{className:m(r,d.inner),children:[(t||a)&&(0,o.FD)("div",{className:d.header,children:[t&&(0,o.Y)("h2",{className:d.heading,children:t}),a&&(0,o.Y)("div",{className:d.desc,children:a})]}),(0,o.Y)("div",{className:d.listing,children:n.map((e,t)=>(0,o.FD)("div",{className:d.group,children:[(0,o.Y)(w.Text,{size:u?"s2":"s1",children:e.title}),(0,o.Y)(c.Grid,{gutterSm:"sm",gutterMd:"xl",children:e.listHealthTools.map((e,t)=>(0,o.Y)(c.Grid.Col,{md:6,lg:4,children:(0,o.Y)(InfoCardWithSmallIcon,{heading:e.title,description:e.description,thumbnail:e.icon,url:e.url,className:d.item})},t))})]},t))})]})})};var eZ=a("O/o9"),e$=(0,c.createStyles)(e=>({root:{backgroundColor:"#1A1A1A",padding:"64px 0",[e.fn.largerThan("sm")]:{padding:"100px 0"}},inner:{display:"flex",flexDirection:"column",gap:36,[e.fn.largerThan("sm")]:{gap:80}},thumbnail:{height:200},descWrapper:{position:"relative"},desc:{color:"#595959",fontSize:22,lineHeight:(0,c.rem)(33),[e.fn.largerThan("sm")]:{fontSize:32,lineHeight:(0,c.rem)(42)}},descOverlay:{position:"absolute",top:0,left:0,right:0,backgroundClip:"text",backgroundImage:"linear-gradient(175.61deg, #2D87F3 1.1%, #26E187 61.79%, #CAEDFE 105.65%)","-webkit-text-fill-color":"transparent",transition:"all 2.5s ease",clipPath:"circle(1% at 0 0)","&.fill-bg":{clipPath:"circle(150% at 0 0)",backgroundImage:"linear-gradient(175.61deg, #2D87F3 1.1%, #26E187 61.79%, #CAEDFE 105.65%)"},[e.fn.largerThan("sm")]:{backgroundImage:"linear-gradient(85.58deg, #2D87F3 6.64%, #26E187 38.45%, #CAEDFE 87.17%)","&.fill-bg":{backgroundImage:"linear-gradient(85.58deg, #2D87F3 6.64%, #26E187 38.45%, #CAEDFE 87.17%)"}}},listing:{display:"flex",flexDirection:"column",gap:48},group:{display:"flex",flexDirection:"column",gap:16},header:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:24,[e.fn.smallerThan("sm")]:{flexDirection:"column"}},heading:{fontSize:20,lineHeight:(0,c.rem)(30),textAlign:"right",position:"relative",paddingBottom:12,color:"#fff",backgroundImage:"linear-gradient(90deg, #D9D9D9 0%, #737373 100%)",backgroundClip:"text","-webkit-text-fill-color":"transparent","&:after":{content:'""',position:"absolute",top:"100%",left:0,right:0,height:1,backgroundImage:"linear-gradient(93.31deg, #2D87F3 0.41%, #26E187 30.84%, #CAEDFE 77.43%)"},[e.fn.smallerThan("sm")]:{textAlign:"center",fontSize:18,lineHeight:(0,c.rem)(28)}}}));let InfoGardientSection=e=>{let{heading:t,description:a,image:n,innerClass:r,className:i,classNames:s,styles:d}=e,{ref:m,inView:u}=(0,eZ.Wx)(),{classes:g,cx:p}=e$(void 0,{name:"InfoGardientSection",styles:d,classNames:s}),[h,f]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{!h&&u&&f(!0)},[u]),(0,o.Y)(c.Box,{className:p(i,g.root),ref:m,children:(0,o.FD)("div",{className:p(r,g.inner),children:[(0,o.FD)("div",{className:g.header,children:[(0,o.Y)("img",{loading:"lazy",src:n,className:g.thumbnail,alt:"Hello Bacsi"}),(0,o.FD)("div",{className:g.heading,children:[(0,o.Y)("div",{children:"Hello Bacsi"}),(0,o.Y)("div",{children:t})]})]}),a&&(0,o.FD)("div",{className:g.descWrapper,children:[(0,o.Y)(ez.f2,{className:p(g.desc),content:a}),(0,o.Y)(ez.f2,{className:p(h?"fill-bg":"",g.desc,g.descOverlay),content:a})]})]})})};var e0=a("yVya"),e1=(0,c.createStyles)(()=>({root:{}})),e2=(0,l.forwardRef)((e,t)=>{let{children:a,disableScrollTo:n=!1,onVisible:r,unsetHash:i,className:d,classNames:m,styles:u,...g}=e,{classes:p,cx:h}=e1(void 0,{name:"ScrollingBlocks",styles:u,classNames:m}),[f,v]=(0,l.useState)(!n),x=(0,l.useRef)([]),b=(0,l.useRef)([]),y=(0,l.useRef)({}),C=(0,l.useRef)(null);return(0,l.useImperativeHandle)(t,()=>({setCanScroll:v})),(0,l.useEffect)(()=>{v(!n)},[n]),(0,l.useEffect)(()=>{let e=[];return b.current.map(()=>{e.push(!1)}),C.current=new IntersectionObserver(t=>{t.forEach(t=>{var a;let n=t.target.dataset.idScroll||"",r=null===(a=y.current)||void 0===a?void 0:a[n];e[r]=t.isIntersecting});let a=e.findIndex(e=>e),n=b.current[a]||"";null==r||r(n)},{rootMargin:"-120px 0px 0px 0px"}),x.current.map(e=>{var t;return null===(t=C.current)||void 0===t?void 0:t.observe(e)}),()=>{x.current.map(e=>{var t;return null===(t=C.current)||void 0===t?void 0:t.unobserve(e)})}},[f]),(0,o.Y)(c.Box,{className:h(d,p.root),...g,children:(0,e0.A)(a).map((e,t)=>{if(s().isValidElement(e)){let a=null==e?void 0:e.props,n=a["data-id-scroll"]||"";return(0,o.Y)(c.Box,{ref:e=>{e&&x.current&&(x.current[t]=e,b.current[t]=n,y.current[n]=t)},"data-id-scroll":n,...a["data-quo-lead"]&&{"data-quo-lead":a["data-quo-lead"]},...a["data-lead-si"]&&{"data-lead-si":a["data-lead-si"]},children:e},t)}return null})})}),e4=a("ysNr"),e8=(0,c.createStyles)(e=>({root:{display:"flex",flexDirection:"column",gap:24},slider:{height:"100%",padding:"2px 0 1px",[e.fn.largerThan("sm")]:{padding:"10px 5px"}}})),e3=a("xrdX"),e6=(0,c.createStyles)(e=>({item:{display:"block",boxShadow:e.shadows.sm,padding:4,height:"100%",borderRadius:"4px",border:"1px solid ".concat(e.colors.neutral[0]),[e.fn.smallerThan("sm")]:{minHeight:148},[e.fn.largerThan("sm")]:{padding:"20px 5px"}},inner:{display:"flex",flexDirection:"column",gap:8,alignItems:"center",[e.fn.largerThan("sm")]:{gap:12}},thumb:{[e.fn.smallerThan("sm")]:{width:"100%",textAlign:"center",backgroundColor:e.colors.neutral[0],padding:"8px 0"}},thumbImg:{height:64,[e.fn.largerThan("sm")]:{height:80}},itemHeading:{textAlign:"center"}}));let Item=e=>{let{data:t,styles:a,classNames:n}=e,{locale:r}=(0,Y.$)(),i=(0,C.a)(),{classes:l}=e6(void 0,{name:"ArticleCardList__Categories-Item",styles:a,classNames:n});return(0,o.Y)(c.Box,{component:"a",target:"_blank",href:t.permalink,className:l.item,"data-event-category":"Service Connection","data-event-action":"Related Category Click","data-event-label":"https://".concat(e3.y[r]).concat(t.permalink),children:(0,o.FD)(c.Box,{className:l.inner,children:[(0,o.Y)(c.Box,{className:l.thumb,children:(0,o.Y)("img",{loading:"lazy",src:t.featureImage||I.I6,alt:t.name,className:l.thumbImg})}),(0,o.Y)(w.Text,{size:i?"s3":"s4",className:l.itemHeading,children:t.name})]})})};var e5=a("QdPe");let Categories=e=>{let{categories:t=[],styles:a,className:n,classNames:r,...i}=e,{classes:s,cx:d,theme:m}=e8(void 0,{name:"ArticleCardList__Categories",styles:a,classNames:r}),{formatMessage:u}=(0,k.A)(),g=(0,C.a)(),p=(0,l.useMemo)(()=>t.length,[t]),h=(0,l.useMemo)(()=>g?6:1,[g]),f=(0,l.useMemo)(()=>Array(Math.ceil(p/h)).fill("").map((e,a)=>t.slice(a*h,a*h+h)),[g]);return t.length>0?(0,o.FD)(c.Box,{className:d(n,s.root),...i,children:[(0,o.Y)(w.Text,{size:"h3",children:u({id:"articlePage.relatedCategoriesListSectionTitle"})}),g?(0,o.Y)(e5.CL,{lengthToCarouselMobile:2,lengthToCarouselDesktop:5,showFullSlide:!0,carouselSetting:{loop:!1},children:(0,o.Y)(e5.CL.Slider,{children:f.map((e,t)=>(0,o.Y)(c.Grid,{justify:1===f.length&&1===e.length?"center":void 0,grow:f.length>1&&e.length>1,gutterMd:24,gutterXs:0,sx:{[m.fn.smallerThan("sm")]:{height:"auto !important"}},children:e.map((e,t)=>(0,o.Y)(c.Grid.Col,{span:g?4:12,children:(0,o.Y)(c.Box,{className:s.slider,children:(0,o.Y)(Item,{data:e})},t)},t))},t))})}):(0,o.Y)(e5.CL,{lengthToCarouselMobile:2,lengthToCarouselDesktop:5,showFullSlide:!0,children:(0,o.Y)(e5.CL.Slider,{children:t.map((e,t)=>(0,o.Y)(c.Box,{className:s.slider,children:(0,o.Y)(Item,{data:e})},t))})})]}):null};var e9=a("q8dt");let SingleAdvanceItem=e=>{var t;let{articles:a,mobileLayoutStretch:n,dataTrackingCommon:r,featuredDescriptionLineClamp:i,hideDescription:l}=e,s=(0,C.a)(),d=a.slice(0,5),m=null===(t=d.slice(0,1))||void 0===t?void 0:t[0],u=d.slice(1,5),g=!s&&!l&&!!i,p=!s&&!!l,h=(0,o.FD)(c.Flex,{sx:e=>({gap:(0,c.rem)(16),[e.fn.smallerThan("sm")]:{".col:first-of-type":{width:(0,c.rem)(279)}},[e.fn.largerThan("sm")]:{gap:(0,c.rem)(24),".col":{width:"calc((100% - 24px)/2)"}}}),children:[(0,o.Y)(c.Box,{className:a.length>1?"col":"",children:(0,o.Y)(e9.ArticleCardWrapper,{className:"card-item",article:m,...r(m),isMobile:s,type:"author",size:s?"sm":"md",direction:a.length>1?"vertical":"horizontal",hideBookmark:!0,...p?{text:""}:{},...g?{descriptionLineClamp:i}:{}})}),u.length>0&&(0,o.Y)(c.Flex,{className:"col",sx:e=>({gap:(0,c.rem)(16),".card-item":{width:(0,c.rem)(279)},[e.fn.largerThan("sm")]:{flexWrap:"wrap",gap:(0,c.rem)(24),".card-item":{width:"calc((100% - 24px)/2)"}}}),children:u.map((e,t)=>(0,o.Y)(e9.ArticleCardWrapper,{className:"card-item",article:e,...r(m),isMobile:s,type:"author",size:"sm",direction:"vertical",hideBookmark:!0,...p||g?{text:""}:{}},String(t)))})]});return a.length>0?s&&!n?(0,o.Y)(c.ScrollArea,{w:"100%",offsetScrollbars:!0,type:"always",scrollbarSize:6,sx:{'[data-orientation="vertical"]':{display:"none"}},styles:e=>({scrollbar:{backgroundColor:e.colors.neutral[1],borderRadius:4},thumb:{backgroundColor:e.colors.gray[3]}}),children:(0,o.Y)(c.Box,{w:279*d.length+(d.length-1)*16,sx:{paddingBottom:(0,c.rem)(16)},children:h})}):s&&n?(0,o.Y)(c.Stack,{spacing:20,sx:{".card-item":{padding:"0 !important"}},children:d.map((e,t)=>(0,o.Y)(e9.ArticleCardWrapper,{className:"card-item",article:e,...r(m),isMobile:s,type:"author",size:"sm",hideBookmark:!0},String(t)))}):(0,o.Y)(c.Box,{children:h}):null},AdvanceLayout=e=>{let{articles:t=[],categories:a=[],dataTrackingCommon:n,mobileLayoutStretch:r}=e;return(0,o.FD)(c.Stack,{spacing:40,sx:{position:"relative"},children:[(0,o.Y)(SingleAdvanceItem,{mobileLayoutStretch:r,articles:t,dataTrackingCommon:n,featuredDescriptionLineClamp:4}),(0,o.Y)(Categories,{categories:a})]})};var e7=a("wo9K"),te=a("ROQx");let LazyItem=e=>{let{articles:t=[],inView:a,loadIds:n=[],dataTrackingCommon:r,hideDescription:i}=e,s=(0,C.a)(),[d,m]=(0,l.useState)(t);return(0,l.useEffect)(()=>{a&&0===t.length&&n.length>0&&(async()=>{var e;let t=await (0,h.callApiNew)(f.PATHS.ARTICLE.GET_ARTICLES,{params:{ids:n.join(",")}});m(((null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.posts)||[]).map(te.W0))})()},[a]),0===d.length?(0,o.Y)(e7.L,{}):(0,o.Y)(c.Box,{sx:e=>({[e.fn.smallerThan("sm")]:{display:"flex",flexDirection:"column",".card-item":{borderTop:"1px solid ".concat(e.colors.neutral[1]),"&:first-of-type":{borderTop:0,paddingTop:0}}},[e.fn.largerThan("sm")]:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:(0,c.rem)(24)}}),children:d.slice(0,s?4:8).map((e,t)=>(0,o.Y)(e9.ArticleCardWrapper,{article:e,className:"card-item",...r(e),type:"author",size:"sm",direction:s?"horizontal":"vertical",hideBookmark:!0,...!s&&i?{text:""}:{}},String(t)))})},AdvanceLayoutWithLoadMore=e=>{let t=(0,C.a)(),{readmoreArticles:a=[],categories:n=[],onSlideChange:r}=e,i=t?4:8;return(0,o.FD)(c.Stack,{spacing:40,children:[a.length>0?(0,o.Y)(c.Box,{sx:{position:"relative"},children:(0,o.FD)(eH.v,{showFullSlide:!t,lengthToCarouselDesktop:2,percentOfEndSlideMobile:88,lazyLoad:!0,onSlideChange:r,carouselSetting:{loop:!1},children:[(0,o.Y)(e5.CL.Slider,{children:[...Array(Math.round(a.length/i)+1)].map((n,r)=>(0,o.Y)(eH.v.LazyLoadItem,{index:r,children:n=>t||0!==r?(0,o.Y)(LazyItem,{loadIds:a.slice((r-1)*i,(r-1)*i+i),inView:n,articles:0===r?e.articles:[],dataTrackingCommon:e.dataTrackingCommon,hideDescription:!0}):(0,o.Y)(c.Box,{children:(0,o.Y)(SingleAdvanceItem,{...e,featuredDescriptionLineClamp:4})})},String(r)))}),(0,o.Y)(e5.CL.Paging,{sx:e=>({position:"absolute",bottom:"calc(100% + 40px)",right:0,[e.fn.smallerThan("sm")]:{display:"none"}})})]})}):(0,o.Y)(SingleAdvanceItem,{...e,featuredDescriptionLineClamp:4}),(0,o.Y)(Categories,{categories:n})]})};var tt=(0,c.createStyles)(e=>({root:{".card-item":{backgroundColor:"transparent"},gap:(0,c.rem)(40),[e.fn.largerThan("sm")]:{gap:(0,c.rem)(80)}},processRoot:{},processBar:{},header:{display:"flex",gap:(0,c.rem)(24),[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{justifyContent:"space-between",alignItems:"flex-end"}},heading:{},headingWrapper:{display:"flex",gap:8,[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{justifyContent:"space-between",alignItems:"center"}},pillarBar:{display:"flex",gap:8,[e.fn.smallerThan("sm")]:{paddingRight:16}},pillarBtn:{fontWeight:"normal",paddingLeft:16,paddingRight:16}}));let SingleNormalLayout=e=>{let{layout:t,articles:a,categories:n,adUnitPath:r,dataTrackingCommon:i,mobileCarouselLayoutForNormalStyle:l,hideDescription:s}=e,d=(0,C.a)(),m=a.map((e,a)=>(0,o.Y)(e9.ArticleCardWrapper,{className:"card-item",article:e,...i(e),isMobile:d,type:"author",size:d?"sm":"md",direction:d&&l?"vertical":"list-contain-ads"===t?"horizontal":"vertical",hideBookmark:!0,...!d&&s?{text:""}:{}},String(a))),u=(0,o.Y)(c.Box,{sx:e=>({display:"flex",gap:24,flexWrap:"wrap",".card-item":{padding:"0 !important",..."list-contain-ads"===t&&{width:"100%",...!r&&!d&&a.length>1&&{width:"calc((100% - 32px)/2)"}},..."grid"===t&&{width:"calc((100% - 64px)/".concat(r?2:3,")"),"&[data-direction=vertical] .banner":{height:240}}},[e.fn.largerThan("sm")]:{gap:32}}),children:d&&l?(0,o.Y)(c.ScrollArea,{w:"100%",offsetScrollbars:!0,type:"always",scrollbarSize:6,sx:{'[data-orientation="vertical"]':{display:"none"}},styles:e=>({scrollbar:{backgroundColor:e.colors.neutral[1],borderRadius:4},thumb:{backgroundColor:e.colors.gray[3]}}),children:(0,o.Y)(c.Box,{w:279*a.length+(a.length-1)*16,sx:{paddingBottom:16},children:(0,o.Y)(c.Flex,{sx:e=>({gap:16,[e.fn.smallerThan("sm")]:{".col:first-of-type":{width:279}},[e.fn.largerThan("sm")]:{gap:24,".col":{width:"calc((100% - 24px)/2)"}}}),children:m})})}):m});return(0,o.FD)(c.Box,{sx:e=>({display:"flex",gap:24,[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{gap:68}}),children:[(0,o.FD)(c.Stack,{spacing:40,children:[u,(0,o.Y)(Categories,{categories:n})]}),r&&!d&&(0,o.Y)(c.Box,{sx:{position:"relative",width:300},children:(0,o.Y)(c.Box,{sx:{position:"sticky",top:80},children:(0,o.Y)(e4.A,{adUnitPath:r,size:[[300,250]],divId:"article-top-banner-desktop",pos:["TopBanner"]})})})]})},NormalLayout=e=>{let{layout:t,articles:a,categories:n=[],adUnitPath:r,dataTrackingCommon:i,mobileCarouselLayoutForNormalStyle:l,hideDescription:s}=e,d=(0,C.a)();return(0,o.Y)(SingleNormalLayout,{categories:n,articles:a,layout:d?"list-contain-ads":t,adUnitPath:r,dataTrackingCommon:i,mobileCarouselLayoutForNormalStyle:l,hideDescription:s})},SliderAdvanceLayout=e=>{let t=(0,C.a)(),{onSlideChange:a,articles:n=[],dataTrackingCommon:r,adUnitPath:i,keepMobileLayoutSameDesktop:l,hideDescription:s}=e;return(0,o.Y)(c.Box,{sx:{position:"relative"},children:!l&&t||n.length<=5?(0,o.Y)(SingleAdvanceItem,{articles:n.slice(0,5),dataTrackingCommon:r,hideDescription:s}):(0,o.Y)(e5.CL,{showFullSlide:!t,lengthToCarouselDesktop:2,percentOfEndSlideMobile:88,lazyLoad:!0,onSlideChange:a,carouselSetting:{loop:!1},children:(0,o.Y)(e5.CL.Slider,{children:(0,o.FD)(o.FK,{children:[!t&&n.length>5&&(0,o.Y)(SingleAdvanceItem,{articles:n.slice(0,5),dataTrackingCommon:r,hideDescription:s}),(()=>{let e=n.slice(5),a=t?4:6;return[...Array(Math.ceil(e.length/a))].map((t,n)=>(0,o.Y)(NormalLayout,{layout:"list-contain-ads",articles:e.slice(n*a,n*a+a),adUnitPath:i,dataTrackingCommon:r,hideDescription:s},n))})()]})})})})},SliderNormalLayout=e=>{let{layout:t,articles:a,adUnitPath:n,dataTrackingCommon:r,hideDescription:i}=e,s=(0,C.a)(),d=(0,l.useMemo)(()=>s?4:6,[s,a]);return(0,o.Y)(e5.CL,{showFullSlide:!s,lengthToCarouselDesktop:2,percentOfEndSlideMobile:88,lazyLoad:!0,carouselSetting:{loop:!1},children:(0,o.Y)(e5.CL.Slider,{children:[...Array(Math.ceil(a.length/d))].map((e,l)=>(0,o.Y)(c.Box,{children:(0,o.Y)(SingleNormalLayout,{articles:a.slice(l*d,l*d+d),layout:s?"list-contain-ads":t,adUnitPath:n,dataTrackingCommon:r,hideDescription:i})},l))})})},KeyPillarLayout=e=>{let{activeIndex:t,listByGroup:a=[],dataTrackingCommon:n,categories:r}=e;return(0,o.FD)(c.Stack,{spacing:40,children:[(0,o.FD)(c.Tabs,{value:String(t),keepMounted:!0,styles:{root:{position:"relative"},panel:{display:"block !important",transition:"opacity 0.2s ease","&.inactive":{position:"absolute",top:0,left:0,right:0,opacity:0,zIndex:0},"&.active":{position:"relative",zIndex:1}}},children:[(0,o.Y)(c.Tabs.Panel,{value:String(-1),className:-1===t?"active":"inactive",children:(0,o.Y)(SliderAdvanceLayout,{articles:eD()(a.map(e=>e.articles)),dataTrackingCommon:n,keepMobileLayoutSameDesktop:!0,hideDescription:!0})}),a.map((e,a)=>(0,o.Y)(c.Tabs.Panel,{value:String(a),className:t===a?"active":"inactive",children:(0,o.Y)(SliderNormalLayout,{articles:e.articles,layout:"list-contain-ads",dataTrackingCommon:n,hideDescription:!0})},a))]}),(0,o.Y)(Categories,{categories:r})]})};var ta=a("B/pt"),tn=a("8MpR");let ArticleCardList=e=>{var t;let{articles:a=[],listCategories:n,listingByKeyPillar:r,display:i="list-contain-ads",cardProps:s,wrapperListProps:d,adUnitPath:m,readmoreArticles:u=[],styles:g,applyH1:p,className:h,classNames:f,wrapperProps:v,mobileLayoutStretch:x,mobileCarouselLayoutForNormalStyle:b,...y}=e,{formatMessage:S}=(0,k.A)(),{classes:T,cx:D,theme:Y}=tt(void 0,{name:"ArticleCardList",styles:g,classNames:f}),I=(0,C.a)(),[B,N]=(0,l.useState)(-1),F=(0,U.m)(),dataTrackingCommon=e=>{if(e)return{dataEventCategoryForCategory:"Service Connection",dataEventActionForCategory:"Category Title Click",dataEventCategoryForTitle:"Service Connection",dataEventActionForTitle:"Article Title Click",dataEventCategoryForBanner:"Service Connection",dataEventActionForBanner:"Article Banner Click",dataEventCategoryForReviewer:"Service Connection",dataEventActionForReviewer:"Expert Title Click"}};return(0,o.FD)(tn.A.Wrapper,{noPadding:!0,className:D(h,T.root),...y,children:[I&&m&&(0,o.Y)(e4.A,{wrapperProps:{my:"1rem",mx:"auto"},adUnitPath:m,size:[[300,250],[300,600]],divId:"article-top-banner-mobile",pos:["TopBanner"]}),(0,o.Y)(tn.A.Header,{...v,styles:{root:{..."key-pillars"===i&&{display:"flex",gap:(0,c.rem)(24),[Y.fn.smallerThan("sm")]:{flexDirection:"column"},[Y.fn.largerThan("sm")]:{justifyContent:"space-between",alignItems:"center"}}}},children:"key-pillars"===i&&(0,o.Y)(c.Box,{sx:{[Y.fn.smallerThan("sm")]:{marginRight:-16}},children:(0,o.FD)(ta.s,{classNames:{root:T.pillarBar},children:[(0,o.Y)(w.Button,{className:D("pointer-event-child-none",T.pillarBtn),variant:-1===B?"primary":"tertiary","data-event-category":"Service Connection","data-event-action":"Articles Key Pillar - ".concat(S({id:"common.all"})),"data-event-label":F,onClick:()=>N(-1),children:S({id:"common.all"})}),null==r?void 0:null===(t=r.keyPillars)||void 0===t?void 0:t.map((e,t)=>(0,o.Y)(w.Button,{className:D("pointer-event-child-none",T.pillarBtn),variant:B===t?"primary":"tertiary",onClick:()=>N(t),"data-event-category":"Service Connection","data-event-action":"Articles Key Pillar - ".concat(e.name),"data-event-label":F,children:e.name},t))]})})}),"key-pillars"===i?(0,o.Y)(KeyPillarLayout,{categories:n,activeIndex:B,listByGroup:(null==r?void 0:r.listing)||[],dataTrackingCommon:dataTrackingCommon}):"advance"===i&&u.length>0?(0,o.Y)(AdvanceLayoutWithLoadMore,{categories:n,articles:a,readmoreArticles:u,dataTrackingCommon:dataTrackingCommon}):"advance"===i?(0,o.Y)(AdvanceLayout,{categories:n,articles:a,dataTrackingCommon:dataTrackingCommon,mobileLayoutStretch:x}):(0,o.Y)(NormalLayout,{categories:n,articles:a,dataTrackingCommon:dataTrackingCommon,adUnitPath:m,layout:i,mobileCarouselLayoutForNormalStyle:b}),I&&m&&(0,o.Y)(e4.A,{wrapperProps:{my:"1rem",mx:"auto"},adUnitPath:m,size:[[300,250],[300,600]],divId:"article-mid-banner-mobile",pos:["MidBanner1"]})]})};var tr=a("D7zM"),to=a("z6SF"),ti=a("VnHZ"),tl=(0,c.createStyles)(()=>({imgHref:{borderRadius:"inherit"},img:{borderRadius:"inherit"}})),ts=a("EYOB"),td=a("f8uB"),icons_ArrowDown=e=>{let{size:t=40,color:a="#595959",...n}=e;return(0,o.Y)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",...n,children:(0,o.Y)("path",{d:"M7.99982 9.38055L5.45248 6.83322C5.17648 6.55722 4.72848 6.55722 4.45248 6.83322C4.17648 7.10922 4.17648 7.55722 4.45248 7.83322L7.52848 10.9092C7.78915 11.1699 8.21115 11.1699 8.47115 10.9092L11.5471 7.83322C11.8231 7.55722 11.8231 7.10922 11.5471 6.83322C11.2711 6.55722 10.8232 6.55722 10.5472 6.83322L7.99982 9.38055Z",fill:a})})},tc=(0,c.createStyles)((e,t)=>{let{opened:a}=t;return{root:{display:"flex",flexDirection:"column",gap:(0,c.rem)(8)},targetBtn:{display:"flex",alignItems:"center",gap:(0,c.rem)(8),cursor:"pointer"},dropdown:{display:a?"block":"none"},icon:{},arrowIcon:{},targetText:{},scrollThumb:{backgroundColor:"#D9D9D9"}}});let Disclaimer=e=>{let{heading:t,description:a,maxHeight:n,styles:r,className:i,classNames:s}=e,{formatMessage:d}=(0,k.A)(),[m,u]=(0,l.useState)(!1),{cx:g,classes:p}=tc({opened:m},{name:"ClickableSingleBanner__Disclaimer",styles:r,classNames:s});return(0,o.FD)(c.Box,{className:g(p.root,i),children:[(0,o.FD)(c.Box,{className:p.targetBtn,onClick:()=>u(e=>!e),children:[(0,o.Y)(td.A,{size:18,className:p.icon}),(0,o.Y)(w.Text,{size:"s4",className:p.targetText,children:t||d({id:"clickableSingleBanner.disclaimer.heading"})}),(0,o.Y)(icons_ArrowDown,{size:18,className:p.arrowIcon})]}),n?(0,o.Y)(c.ScrollArea,{mah:n,scrollbarSize:4,classNames:{thumb:p.scrollThumb},children:(0,o.Y)(w.Text,{size:"p5",className:p.dropdown,children:a||d({id:"clickableSingleBanner.disclaimer.description"})})}):(0,o.Y)(w.Text,{size:"p5",className:p.dropdown,children:a||d({id:"clickableSingleBanner.disclaimer.description"})})]})};var tm=(0,c.createStyles)(e=>({root:{backgroundColor:e.colors.blue[0],paddingTop:(0,c.rem)(80),paddingBottom:(0,c.rem)(80),[e.fn.smallerThan("sm")]:{paddingTop:(0,c.rem)(40),paddingBottom:(0,c.rem)(40)}},container:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:(0,c.rem)(24)},[e.fn.largerThan("sm")]:{gap:(0,c.rem)(48),justifyContent:"space-between"}},icon:{width:(0,c.rem)(64)},iconWrapper:{flexShrink:0},heading:{},info:{display:"flex",gap:(0,c.rem)(16),alignItems:"center",[e.fn.largerThan("sm")]:{flexDirection:"column",gap:(0,c.rem)(24),alignItems:"flex-start"}},infoTop:{display:"flex",flexDirection:"column",gap:(0,c.rem)(24)},infoCol:{display:"flex",flexDirection:"column",gap:(0,c.rem)(24),maxWidth:(0,c.rem)(360),justifyContent:"space-between"},imgCol:{[e.fn.largerThan("sm")]:{width:"100%",maxWidth:(0,c.rem)(648)}},boxFrame:{borderRadius:(0,c.rem)(12),[e.fn.largerThan("sm")]:{borderRadius:(0,c.rem)(24)}},boxFrameInner:{borderRadius:"inherit"},imgHref:{display:"block"},img:{borderRadius:"inherit"},ctaBtn:{minWidth:(0,c.rem)(180)},disclaimerRoot:{},disclaimerTargetBtn:{},disclaimerDropdown:{},disclaimerIcon:{}}));let RiskScreenerLayout=e=>{let{icon:t,title:a,description:n,disclaimer:r,reviewedBy:i,url:l,ctaTitle:s,ctaFn:d,ctaBtnProps:m,bodyRatio:u=648/486,children:g,styles:p,classNames:h,applyH1:f,...x}=e,b=(0,C.a)(),{locale:y}=(0,Y.$)(),{formatMessage:S}=(0,k.A)(),{classes:T}=tm(void 0,{name:"RiskScreenerLayout",styles:p,classNames:h}),D=l&&s?(0,o.Y)(c.Box,{className:T.ctaBtn,children:(0,o.Y)(w.Button,{fullWidth:!0,variant:"primary",onClick:d,...m,children:s})}):null,B={heading:(null==r?void 0:r.heading)||"",description:(null==r?void 0:r.description)||"",classNames:{root:T.disclaimerRoot,targetBtn:T.disclaimerTargetBtn,dropdown:T.disclaimerDropdown,icon:T.disclaimerIcon}};return(0,o.Y)(c.Box,{className:T.root,styles:p,...x,children:(0,o.FD)(v.m,{className:T.container,children:[(0,o.FD)(c.Box,{className:T.infoCol,children:[(0,o.FD)(c.Box,{className:T.infoTop,children:[(0,o.FD)(c.Box,{className:T.info,children:[t&&(0,o.Y)(c.Box,{className:T.iconWrapper,children:(0,o.Y)("img",{src:t,alt:a,loading:"lazy",className:T.icon,onError:e=>{e.currentTarget.style.display="none"}})}),a&&(0,o.Y)(w.Text,{size:"h2",as:f?"h1":"h2",weight:"semiBold",variant:"primary",className:T.heading,children:a})]}),n&&(0,o.Y)(w.Text,{size:"p3",children:n}),!b&&D,(null==i?void 0:i.reviewer)&&(0,o.FD)(c.Flex,{gap:12,sx:e=>({alignItems:"center",[e.fn.smallerThan("sm")]:{position:"relative",zIndex:1,alignItems:"flex-start"}}),children:[(0,o.Y)(c.Box,{children:(0,o.Y)(w.Avatar,{size:32,src:i.avatar,withIndicator:!0,indicatorConfig:{size:18,label:(0,o.Y)("img",{loading:"lazy",width:"16",src:"".concat(I.nS,"/reviewer-medical.svg"),alt:""})},styles:{root:{".mantine-Indicator-indicator":{bottom:"7px",right:"5px"},".mantine-Avatar-placeholder":{border:0}}}})}),(0,o.FD)(w.Text,{size:b?"p3":"p4",color:"gray.6",as:"div",sx:e=>({lineHeight:"".concat((0,c.rem)(24),"!important"),[e.fn.largerThan("sm")]:{div:{display:"inline"}}}),children:[(0,o.FD)("div",{children:[S({id:"articlePage.reviewed.factCheck"},{name:(0,o.FD)("div",{children:[(0,o.Y)("a",{href:i.link||"#",style:{color:"#262626"},children:i.reviewer}),!b&&i.date&&" • "]})})," "]}),i.date&&(0,o.Y)("div",{children:(0,ts.F)(i.date,y)})]})]})]}),!b&&(null==r?void 0:r.heading)&&(null==r?void 0:r.description)&&(0,o.Y)(Disclaimer,{maxHeight:90,...B})]}),(0,o.Y)(c.Box,{className:T.imgCol,children:"none"===u?(0,o.Y)(c.Box,{className:T.boxFrame,children:(0,o.Y)(c.Box,{className:T.boxFrameInner,children:g})}):(0,o.Y)(c.AspectRatio,{ratio:u,className:T.boxFrame,children:(0,o.Y)(c.Box,{className:T.boxFrameInner,children:g})})}),b&&(null==r?void 0:r.heading)&&(null==r?void 0:r.description)&&(0,o.FD)(o.FK,{children:[D,(0,o.Y)(Disclaimer,{...B})]})]})})},ClickableSingleBanner=e=>{let{data:t,onItemClick:a,styles:n,classNames:r,applyH1:i,...s}=e,{state:{isLoggedIn:d}}=(0,l.useContext)(ti.B),{classes:m}=tl(void 0,{name:"ClickableSingleBanner",styles:n,classNames:r}),{title:u,description:g,requireLogin:p,singleBanner:h,disclaimer:f}=t,{icon:v,banner:x,url:b,ctaTitle:y}=h,C=(0,to.m)([b]),{isExternalUrl:S}=(null==C?void 0:C[0])||{},w=(0,l.useCallback)(()=>{if(!S&&b.includes("#")){let e=b.split("#");null==a||a(e[e.length-1])}else p&&!d&&I.dX?tr.u.getState().triggerLogin({returnUrl:b}):window.open(p&&!d?(0,$.gQ)(b):b)},[S,d]);return(0,o.Y)(RiskScreenerLayout,{applyH1:i,title:u,description:g,url:b,ctaTitle:y,ctaBtnProps:{dataEventCategory:"Service Connection",dataEventAction:"Clickable Banner",dataEventLabel:b},ctaFn:w,icon:v,styles:n,classNames:r,disclaimer:{heading:f.title,description:f.description},...s,children:(0,o.Y)(c.Box,{component:"a",...b?{href:b,target:S?"_blank":"_self",onClick:e=>{e.preventDefault(),w()}}:{},className:m.imgHref,"data-event-category":"Service Connection","data-event-action":"Clickable Banner","data-event-label":b,children:(0,o.Y)("img",{src:x,alt:u,loading:"lazy",className:m.img,onError:e=>{e.currentTarget.style.display="none"}})})})};var tu=a("4tKT"),tg=(0,c.createStyles)(e=>({root:{position:"relative"},loadingRoot:{display:"flex",[e.fn.smallerThan("sm")]:{position:"relative",flexDirection:"column",backgroundColor:e.colors.neutral[0]},[e.fn.largerThan("sm")]:{height:"min(800px, 100vh)"}},sideBar:{width:456,backgroundColor:e.colors.neutral[0],paddingInline:24,paddingTop:40,height:"100%",[e.fn.smallerThan("sm")]:{position:"absolute",left:0,bottom:0,width:"100%",height:"auto",padding:16}},header:{[e.fn.smallerThan("sm")]:{display:"none"}},headerMobile:{padding:16,[e.fn.largerThan("sm")]:{display:"none"}},content:{backgroundColor:e.white,[e.fn.smallerThan("sm")]:{height:"80vh"},[e.fn.largerThan("sm")]:{width:"calc(100% - 456px)"}},searchItem:{[e.fn.smallerThan("sm")]:{display:"none","&:first-child":{display:"flex"}}},searchItemContent:{width:"calc(100% - 48px)"}}));let tp=p()(()=>Promise.resolve().then(a.bind(a,"4tKT")).then(e=>e.default),{loadableGenerated:{webpack:()=>["4tKT"]},ssr:!1}),ClinicLocator=e=>{let{formatMessage:t}=(0,k.A)(),{classes:n}=tg(void 0,{name:"ServiceConnection__ClinicLocator"}),[r,i]=(0,l.useState)(!0),s=(0,C.a)();return(0,l.useEffect)(()=>{Promise.resolve().then(a.bind(a,"4tKT")).then(()=>{setTimeout(()=>i(!1),1e3)})},[]),(0,o.FD)(c.Box,{className:n.root,children:[(0,o.FD)(c.Box,{sx:{opacity:Number(r)},className:n.loadingRoot,children:[s?(0,o.Y)(tu.TitleComp,{title:e.title||t({id:"section.clinicLocator.title",defaultMessage:"Explore the best Clinics for yourself"})}):(0,o.FD)(c.Stack,{align:"center",spacing:8,className:n.headerMobile,children:[(0,o.Y)(c.Skeleton,{height:24,width:"100%"}),(0,o.Y)(c.Skeleton,{height:24,width:"80%"})]}),(0,o.FD)(c.Stack,{spacing:32,className:n.sideBar,children:[(0,o.FD)(c.Stack,{spacing:8,className:n.header,children:[(0,o.Y)(c.Skeleton,{height:24,width:"100%"}),(0,o.Y)(c.Skeleton,{height:24,width:"80%"})]}),(0,o.Y)(c.Stack,{spacing:24,children:[,,,,].fill(null).map((e,t)=>(0,o.FD)(c.Flex,{className:n.searchItem,gap:16,sx:{width:"100%"},children:[(0,o.Y)(c.Skeleton,{width:32,height:32}),(0,o.FD)(c.Stack,{spacing:8,className:n.searchItemContent,children:[(0,o.Y)(c.Skeleton,{height:18,width:"100%"}),(0,o.FD)(c.Stack,{spacing:4,sx:{width:"100%"},children:[(0,o.Y)(c.Skeleton,{height:10,width:"100%"}),(0,o.Y)(c.Skeleton,{height:10,width:"100%"}),(0,o.Y)(c.Skeleton,{height:10,width:"40%"})]})]})]},String(t)))})]}),(0,o.Y)(c.Flex,{align:"center",justify:"center",className:n.content,children:(0,o.Y)(c.Loader,{color:"gray"})})]}),(0,o.Y)(c.Box,{sx:{opacity:Number(!r),position:"absolute",inset:0},children:(0,o.Y)(tp,{...e})})]})};var th=a("e6wM"),tf=a("mlYt"),icons_Expert=e=>{let{size:t=24,color:a="#2D87F3",...n}=e;return(0,o.FD)("svg",{width:t,height:t,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,o.Y)("path",{d:"M0 8a8 8 0 0 1 8-8h32v40H0z",fill:"#fff"}),(0,o.Y)("path",{d:"M20 40c11.046 0 20-8.954 20-20S31.046 0 20 0 0 8.954 0 20s8.954 20 20 20",fill:"#fff"}),(0,o.Y)("path",{d:"M23.333 16.667V10h-6.666v6.667H10v6.667h6.667V30h6.666v-6.666H30v-6.667z",fill:a})]})},tv=a("5p3F"),tx=(0,c.createStyles)((e,t)=>{let{size:a,color:n=""}=t,r=(0,tv.E2)(n,!0),o=(0,tv.wm)(r.r,r.g,r.b),i=(0,tv.sO)(o[0],.15*o[1],98),l="rgb(".concat(i[0],",").concat(i[1],",").concat(i[2],")");return{root:{display:"flex",alignItems:"center",padding:8,gap:"lg"===a?12:8,background:"#fff",borderRadius:8,..."md"===a&&{flexDirection:"column",alignItems:"stretch"},[e.fn.largerThan("sm")]:{gap:"lg"===a?24:12,padding:"lg"===a?16:12,"&:hover":{[".".concat((0,c.getStylesRef)("name"))]:{color:n},[".".concat((0,c.getStylesRef)("hospitalInfo"))]:{backgroundColor:l},hoverColor:l}}},thumbCol:{..."md"===a&&{display:"flex",alignItems:"center",flexShrink:0,gap:12}},thumb:{display:"block",flexShrink:0,position:"relative",img:{borderRadius:8}},nameAreaSmSize:{..."lg"===a&&{display:"none"}},nameAreaLgSize:{..."md"===a&&{display:"none"}},name:{ref:(0,c.getStylesRef)("name")},info:{display:"flex",flexDirection:"column",gap:"lg"===a?8:4,..."md"===a&&{height:"100%"}},hospitalInfo:{ref:(0,c.getStylesRef)("hospitalInfo"),borderRadius:"lg"===a?8:4,backgroundColor:e.colors.neutral[0],padding:"lg"===a?8:6,transition:"all .3s ease",..."md"===a&&{height:"100%"}},cta:{display:"flex",alignItems:"center",gap:8,paddingTop:5},expertIcon:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",bottom:0,right:0,backgroundColor:"#fff",borderTopLeftRadius:6,width:16,height:16,[e.fn.largerThan("sm")]:{width:"lg"===a?40:16,height:"lg"===a?40:16},img:{width:12,height:12,[e.fn.largerThan("sm")]:{width:"lg"===a?28:12,height:"lg"===a?28:12}}}}});let ExpertCard=e=>{let{name:t,position:a,specialty:n,organisation:r,url:i,avatar:s,role:d,size:m="md",styles:u,className:g,classNames:p,...h}=e,{activeTheme:f}=(0,l.useContext)(eU.d),{locale:v}=(0,Y.$)(),x=(0,C.a)(),b=(0,l.useMemo)(()=>x?"md":m,[x]),y=(0,l.useMemo)(()=>"lg"===b?22:18,[b]),{classes:S,cx:T,theme:k}=tx({size:b,color:null==f?void 0:f.primary},{name:"ExpertCard",styles:u,classNames:p}),B=(0,l.useMemo)(()=>({"data-event-category":"Service Connection","data-event-action":"See Doctor Profile","data-event-label":"https://".concat(D.domainLocales[v]).concat(i)}),[v,i]);return(0,o.FD)(c.Box,{component:"a",href:i,title:t,target:"_blank",className:T(g,S.root),...B,...h,children:[(0,o.FD)(c.Box,{className:S.thumbCol,children:[(0,o.FD)(c.Box,{className:S.thumb,children:[(0,o.Y)(et.B,{loading:"lazy",src:s||I.I6,alt:t,width:"lg"===b?160:x?48:64,height:"lg"===b?160:x?48:64}),(0,o.Y)(c.Box,{className:S.expertIcon,children:"medical"===d?(0,o.Y)(icons_Expert,{size:x?16:"lg"===b?40:24,color:k.colors.red[5]}):(0,o.Y)("img",{src:"".concat(I.nS,"/article-").concat(d,".svg"),alt:"",loading:"lazy"})})]}),(0,o.Y)(c.Box,{className:S.nameAreaSmSize,children:(0,o.Y)(w.Text,{size:x?"s3":"lg"===b?"s2":"s3",className:S.name,children:t})})]}),(0,o.FD)(c.Box,{className:S.info,children:[(0,o.Y)(c.Box,{className:S.nameAreaLgSize,children:(0,o.Y)(w.Text,{size:x?"s3":"lg"===b?"s2":"s3",className:S.name,children:t})}),(n||r)&&(0,o.FD)(c.Box,{className:S.hospitalInfo,children:[n&&(0,o.FD)(c.Flex,{align:"flex-start",gap:"lg"===b?8:4,children:[(0,o.Y)(c.Box,{children:(0,o.Y)(th.A,{size:y})}),(0,o.Y)(w.Text,{size:"p4",children:n})]}),r&&(0,o.FD)(c.Flex,{align:"flex-start",gap:"lg"===b?8:4,children:[(0,o.Y)(c.Box,{children:(0,o.Y)(tf.A,{size:y})}),(0,o.Y)(w.Text,{size:"p4",children:a||r})]})]})]})]})};var tb=(0,c.createStyles)(()=>({root:{display:"flex",".title,.description":{color:"#fff",textAlign:"center"},".header":{display:"flex",flexDirection:"column",gap:8,marginBottom:24}},card:{height:"100%"}}));let ContentExpert=e=>{let{doctors:t,styles:a,className:n,classNames:r,wrapperProps:i,wrapperPropsStyles:s,applyH1:d}=e,{classes:m,cx:u,theme:g}=tb(void 0,{name:"ContentExpert",styles:a,classNames:r}),p=(0,C.a)(),h=(0,l.useMemo)(()=>t.length,[t]),f=(0,l.useMemo)(()=>p?4:1,[p]),v=(0,l.useMemo)(()=>Array(Math.ceil(h/f)).fill("").map((e,a)=>t.slice(a*f,a*f+f)),[p]);return(0,o.Y)(tn.A,{className:u(n,m.root),defaultColor:g.fn.primaryColor(),applyH1:d,...i,...s,children:(0,o.Y)(e5.CL,{lengthToCarouselDesktop:4,showFullSlide:!p,percentOfEndSlideMobile:85,carouselSetting:{withIndicators:!1},children:(0,o.Y)(e5.CL.Slider,{styles:e=>({listing:{[e.fn.largerThan("sm")]:{".mantine-Grid-root":{margin:0},".mantine-Grid-col":{padding:0}}},sliderWrapper:{[e.fn.largerThan("sm")]:{".mantine-Grid-root":{margin:0},".mantine-Grid-col":{padding:0}}}}),children:v.map((e,t)=>(0,o.Y)(c.Grid,{justify:1===v.length&&1===e.length?"center":void 0,grow:v.length>1&&e.length>1,gutterMd:24,gutterXs:16,sx:{[g.fn.smallerThan("sm")]:{height:"auto !important"}},children:e.map((t,a)=>(0,o.Y)(c.Grid.Col,{span:p||1!==v.length||1!==e.length?12:6,children:(0,o.Y)(ExpertCard,{size:!p&&v.length<3?"lg":"md",className:m.card,...t},a)},a))},t))})})})};var ty=a("6tEp"),tC=a("mCqF"),tS=a("ufNQ"),tw=(0,c.createStyles)((e,t)=>{let{backgroundColor:a}=t;return{root:{backgroundColor:a,...a&&{padding:"".concat((0,c.rem)(48)," 0")},[e.fn.smallerThan("sm")]:{overflow:"hidden"},".customize-item":{height:"100%"}},inner:{display:"flex",flexDirection:"column",gap:16,[e.fn.largerThan("sm")]:{gap:48}},header:{[e.fn.largerThan("sm")]:{textAlign:"center"}}}}),tT=(0,c.createStyles)((e,t)=>{let{backgroundColor:a}=t;return{root:{backgroundColor:a||"#fff",borderRadius:16,border:"1px solid ".concat(a||e.colors.neutral[0]),padding:16,boxShadow:"0px 0px 1px 0px #0000000A, 0px 2px 8px 0px #0000000A, 0px 16px 24px 0px #0000000F",".odometer.odometer-auto-theme, .odometer.odometer-theme-default":{fontFamily:"unset",lineHeight:"unset"}},inner:{height:"100%"},info:{flexGrow:1},icon:{width:56,height:56,flexShrink:0}}});a("vHLl");let Item_Item=e=>{let{size:t="sm",icon:n,backgroundColor:r,header:i,content:s,description:d,styles:m,classNames:u,className:g,...p}=e,{classes:h,cx:f}=tT({backgroundColor:r,icon:n},{name:"CustomizeBlock__Item",styles:m,classNames:u}),{value:v,color:x}=s,{value:b,color:y}=d,{value:C,color:S}=i,T=(0,l.useRef)(null),k=(0,l.useRef)(null),{ref:D,inView:Y}=(0,eZ.Wx)({rootMargin:"56px 0px 0px 0px"}),I=(0,l.useMemo)(()=>Number(v),[]),[B,N]=(0,l.useState)(!1),[F,E]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{isNaN(I)||a.e(6975).then(a.t.bind(a,"qTOg",23)).then(e=>{let{default:t}=e;k.current=new t({el:T.current,value:0,format:function(e){let t=String(e);if(!t.includes("."))return"(,ddd)";let a=t.split(".")[1].length;return"(,ddd)."+"d".repeat(a)}(v),theme:"default",duration:800}),N(!0)})},[]),(0,l.useEffect)(()=>{if(!Y||F||!B)return;let e=setTimeout(()=>{Y&&T.current&&(k.current.update(I),E(!0))},1500);return()=>clearTimeout(e)},[B,Y,F,I]),(0,o.Y)(c.Box,{className:f(g,h.root),...p,ref:D,children:(0,o.FD)(c.Flex,{gap:4,justify:"space-between",align:"center",className:h.inner,children:[n&&(0,o.Y)(c.AspectRatio,{ratio:1,className:h.icon,children:(0,o.Y)("img",{loading:"lazy",src:n,alt:C})}),(0,o.FD)(c.Stack,{spacing:18,sx:{textAlign:"right"},className:h.info,children:[C&&(0,o.Y)(w.Text,{size:"md"===t?"p2":"p3",color:S,variant:"secondary",sx:e=>({[e.fn.smallerThan("sm")]:{fontSize:(0,c.rem)(15)}}),children:C}),(v||b)&&(0,o.FD)(c.Stack,{spacing:4,className:h.info,children:[(0,o.Y)(w.Text,{size:"md"===t?"h3":"h4",weight:"bold",variant:"primary",ref:T,color:x,sx:e=>({[e.fn.smallerThan("sm")]:{fontSize:(0,c.rem)(26)}}),children:v}),(0,o.Y)(w.Text,{size:"md"===t?"c1":"c2",color:y,variant:"tertiary",children:b})]})]})]})})},CustomizedBlock=e=>{let{data:t,styles:a,classNames:n,className:r,...i}=e,{listing:l=[],title:s,description:d,backgroundColor:m}=t,u=l.length,{classes:g,cx:p}=tw({backgroundColor:m},{name:"CustomizedBlock",styles:a,classNames:n});return u>0?(0,o.Y)(w.TemplateProvider,{variant:w.CustomStylesType.LEADGEN,children:(0,o.Y)(c.Stack,{...i,className:p(g.root,r),children:(0,o.FD)(v.m,{className:g.inner,children:[(s||d)&&(0,o.FD)(c.Stack,{spacing:8,className:g.header,children:[s&&(0,o.Y)(w.Text,{size:"h2",weight:"semiBold",variant:"primary",children:s}),d&&(0,o.Y)(w.Text,{size:"p2",children:d})]}),(0,o.Y)(tS.A,{breakpoints:{base:{itemsPerGroup:u,GroupWrapper:e=>(0,o.FD)(tC.A,{slideSize:"90%",slideGap:8,styles:{root:{marginLeft:-16,marginRight:-16},viewport:{paddingLeft:16,paddingRight:16}},children:[(0,o.Y)(tC.A.Body,{children:e}),(0,o.Y)(c.Box,{children:(0,o.Y)(tC.A.Progress,{styles:e=>({root:{[e.fn.smallerThan("md")]:{display:"block",height:6,borderRadius:4,backgroundColor:e.colors.neutral[1]}},bar:{backgroundColor:e.colors.gray[3],border:"1px solid ".concat(e.colors.neutral[1])}})})})]}),ItemWrapper:e=>(0,o.Y)(tC.A.Slide,{children:(0,o.Y)(c.Box,{sx:{padding:"0 4px 24px",height:"100%"},children:e})})},md:{itemsPerGroup:u,GroupWrapper:e=>(0,o.Y)(c.Grid,{gutter:24,children:e}),ItemWrapper:e=>(0,o.Y)(c.Grid.Col,{span:12/Math.min(u,4),children:e})}},items:l.map((e,t)=>(0,o.Y)(Item_Item,{size:u<4?"md":"sm",className:"customize-item",...e},String(t)))})]})})}):null};var tk=a("XsRk"),tD=a("oz0L"),tY=a("oTwY"),tI=a("8BcA"),tB=a.n(tI),tN=a("iZSu"),tF=a("Pvbb");let CommunityBtn=e=>{let{community:t,isFollowing:a,joinCommunity:n,joinedLabel:r,goToLabel:i,onJoinCommunity:s,...d}=e,{formatMessage:m}=(0,k.A)(),{state:{isLoggedIn:u}}=(0,l.useContext)(ti.B),{locale:g}=(0,Y.$)(),[p,h]=(0,l.useState)(!1);return(0,o.Y)(c.Box,{component:a?"a":"div",href:"/community/".concat(null==t?void 0:t.slug,"/"),children:(0,o.Y)(w.Button,{loading:p,fullWidth:!0,"data-event-category":"Together Embedded","data-event-action":a?"Go to Community":"Join Community","data-event-label":t.name,...d,onClick:e=>{a||(e.preventDefault(),u&&(null==t?void 0:t.id)?(h(!0),null==n||n(t.id).then(e=>{(null==e?void 0:e.status)===1&&(null==s||s()),h(!1)})):(0,tF.YA)("".concat((0,$.oN)(g),"/community/on-boarding/?returnUrl=/").concat(null==t?void 0:t.slug)))},children:a?i||m({id:"cardCommunity.goToCommunity"}):r||m({id:"cardCommunity.joinCommunity"})})})};var tE=(0,c.createStyles)(e=>({inner:{display:"flex",flexDirection:"column",gap:(0,c.rem)(16),[e.fn.largerThan("sm")]:{gap:(0,c.rem)(40)}},info:{display:"flex",gap:(0,c.rem)(16),alignItems:"center",justifyContent:"space-between"},infoLeft:{display:"flex",gap:(0,c.rem)(16),alignItems:"center"},header:{display:"flex",flexDirection:"column",gap:(0,c.rem)(4)},heading:{},thumbnail:{width:(0,c.rem)(80),flexShrink:0},thumbnailImg:{borderRadius:"50%",overflow:"hidden",backgroundColor:"#fff"}})),tA=a("62F8"),tR=a("O6Wk"),tL=a("Bell"),tP=a("Vsct"),tM=a("220y"),t_=a("r+qb"),tz=a("cHEW"),tW=a("rBCA"),tH=a("iBNF"),tO=a("CL9C"),tG=a("g9Qi");tH.w.colors.neutral100,tO.M.mbUp;let tV=(0,tW.A)("div",{target:"e13fq5ae1"})("margin-bottom:12px;"),tj=(0,tW.A)("div",{target:"e13fq5ae2"})("font-size:14px;"),tU=(0,tW.A)("div",{target:"e13fq5ae3"})(tO.M.mbUp,"{display:flex;justify-content:space-between;}"),tK=(0,tW.A)("div",{target:"e13fq5ae4"})(),tq=(0,tW.A)("div",{target:"e13fq5ae5"})("position:relative;&[data-has-thumb='true']{",tO.M.mbUp,"{width:calc(100% - 140px);}}"),tQ=(0,tW.A)("div",{target:"e13fq5ae6"})("margin-top:12px;",tO.M.mbUp,"{margin-top:0;width:120px;}img{max-width:100%;}"),tX=(0,tW.A)(tG.C,{target:"e13fq5ae7"})(),tJ=(0,tW.A)("a",{target:"e13fq5ae11"})("position:absolute;top:0;left:0;right:0;bottom:0;");var tZ=(0,c.createStyles)(e=>({root:{display:"flex",gap:(0,c.rem)(12),flexDirection:"column",justifyContent:"space-between",background:"white",border:"1px solid ".concat(e.colors.neutral100),borderRadius:(0,c.rem)(8),padding:"16px 16px",".post-author, .post-content-wrapper":{paddingLeft:0,paddingRight:0},".post-content-wrapper":{paddingBottom:0},[e.fn.largerThan("sm")]:{padding:"24px"},".cursor-pointer":{cursor:"pointer"}},customReact:{display:"flex",alignItems:"center",gap:(0,c.rem)(16)},reactItem:{display:"flex",alignItems:"center",gap:(0,c.rem)(4)}}));let item_Item=e=>{var t,a;let{post:n,jointCommunityBtn:r,joinCommunity:i,styles:s,className:d,classNames:m,...u}=e,{state:g}=(0,l.useContext)(ti.B),{isLoggedIn:p}=g||{},{likesCount:v=0,liked:x,joinedCommunity:b,commentsCount:y=0}=n,[C,S]=(0,l.useState)(!1),{locale:T}=(0,Y.$)(),[k,B]=(0,l.useState)(!1),[N,F]=(0,l.useState)(!0),[E,A]=(0,l.useState)(v),{classes:R,cx:L,theme:P}=tZ(void 0,{name:"CarePathCommunityWithPostsItem",styles:s,classNames:m}),M="/community/".concat((null==n?void 0:null===(t=n.community)||void 0===t?void 0:t.slug)||"_","/").concat((null==n?void 0:n.slug)||"","/"),openPost=e=>{if(null==e||e.preventDefault(),p)window.location.href=M;else{var t,a;I.dX?tr.u.getState().triggerLogin({returnUrl:"".concat((0,$.oN)(T),"/community/on-boarding/?returnUrl=/").concat(null==n?void 0:null===(t=n.community)||void 0===t?void 0:t.slug,"/").concat(null==n?void 0:n.slug)}):window.location.href=(0,$.gQ)("".concat((0,$.oN)(T),"/community/on-boarding/?returnUrl=/").concat(null==n?void 0:null===(a=n.community)||void 0===a?void 0:a.slug,"/").concat(null==n?void 0:n.slug))}},_=((null==n?void 0:n.photos)||[]).length>0,z=null==n?void 0:n.author,W=(null==z?void 0:z.name)||(null==z?void 0:z.username)||"",H=(null==z?void 0:z.username)||(null==z?void 0:z.name)||"",O=null==z?void 0:z.avatar,G={isAnonymous:null==n?void 0:n.isAnonymous,avatar:O,name:W,username:H,email:null==z?void 0:z.email,role:null==z?void 0:z.role,timeText:null==n?void 0:n.createdTime,community:null==n?void 0:n.community,showDetailPopup:!0,userId:null==z?void 0:z.id,profileModalProps:{zIndex:1e3}},handleLikeClick=async()=>{if(p)await (0,h.callApiNew)(f.PATHS.TOGETHER.POST_TOGETHER_LIKE_POST,{params:{postId:n.id}},"together"),B(e=>!e);else{var e;(null==n?void 0:null===(e=n.community)||void 0===e?void 0:e.slug)&&(0,tF.YA)("".concat((0,$.oN)(T),"/community/on-boarding/?returnUrl=/").concat(n.community.slug))}};(0,l.useEffect)(()=>{B(!!(null==n?void 0:n.liked))},[n]),(0,l.useEffect)(()=>{N||(k?A(x?v:v+1):A(v?v-1:v)),F(!1)},[k]),(0,l.useEffect)(()=>{S(!!b)},[b]);let V={"data-event-category":"Together Embedded","data-event-action":"Click Post","data-event-label":"https://".concat(D.domainLocales[T]).concat(M)};return(0,o.FD)(c.Box,{className:L(R.root,d),...u,children:[(0,o.FD)(c.Box,{children:[(0,o.Y)(tV,{children:(0,o.Y)(tX,{...G})}),(0,o.Y)(tj,{children:(0,o.FD)(tU,{children:[(0,o.FD)(tq,{"data-has-thumb":_,children:[(0,o.Y)(w.Text,{as:"h4",size:"s3",children:null==n?void 0:n.title}),(0,o.FD)(tK,{children:[(0,o.Y)(tA.P,{trackingCategory:"Together Embedded",url:"",className:"post-content-wrapper",description:null==n?void 0:n.description,disableShortenContent:!1,mentions:null==n?void 0:n.mentions,maxChars:_?100:150}),(0,o.Y)(tJ,{href:M,...V,onClick:e=>{openPost(e)}})]})]}),_&&(0,o.Y)(tQ,{className:"cursor-pointer",onClick:e=>{openPost(e)},children:(0,o.Y)(tR.a,{images:n.photos})})]})})]}),(0,o.Y)(tL.C,{trackingCategory:"Together Embedded",trackingLabel:"https://".concat(D.domainLocales[T]).concat(M),type:tz.Un.post,loveCount:E,replyCount:null==n?void 0:n.commentsCount,className:"post-reaction",liked:k,hasShare:!1,onCommentClick:()=>{openPost()},onLikeClick:handleLikeClick,children:r?(0,o.FD)(c.Flex,{align:"center",justify:"space-between",children:[(null==n?void 0:null===(a=n.community)||void 0===a?void 0:a.id)&&(0,o.Y)(CommunityBtn,{isFollowing:C,community:null==n?void 0:n.community,joinCommunity:i,onJoinCommunity:()=>S(!0),variant:"white",leftIcon:C?void 0:(0,o.Y)(tY.A,{color:"currentColor",size:18}),rightIcon:C?(0,o.Y)(tD.I.ArrowRightTail,{useCurrentColor:!0,size:16}):void 0,styles:{root:{paddingLeft:0},leftIcon:{marginRight:"4px"},rightIcon:{marginLeft:"6px"}}}),(0,o.FD)(c.Box,{className:R.customReact,children:[(0,o.Y)(tL.C.LikeWrapper,{...V,children:(0,o.FD)(c.Box,{className:R.reactItem,children:[(0,o.Y)(t_.A,{isSolid:k,color:k?P.colors.red[8]:void 0}),(0,o.Y)(w.Text,{size:"p4",children:(0,tP.a)(E)})]})}),(0,o.Y)(tL.C.CommentWrapper,{...V,children:(0,o.FD)(c.Box,{className:R.reactItem,children:[(0,o.Y)(tM.A,{size:22}),(0,o.Y)(w.Text,{size:"p4",children:(0,tP.a)(y)})]})})]})]}):void 0})]})},EmbedCommunityWithPosts=e=>{let{styles:t,classNames:a,maxPosts:n=7,applyH1:r,title:i,description:s,typeEmbed:d,community:m,postsIds:u=[],posts:g=[],wrapperProps:p,...v}=e,x=(0,C.a)(),{formatMessage:b}=(0,k.A)(),{state:{isLoggedIn:y}}=(0,l.useContext)(ti.B),[S,T]=(0,l.useState)(g),[D,Y]=(0,l.useState)([]),{classes:I,theme:B}=tE(void 0,{name:"EmbedCommunityWithPosts",styles:t,classNames:a}),N=d===tN.Rp.COMMUNITY&&m,F=d===tN.Rp.POST&&S.length>0;(0,l.useEffect)(()=>{(F&&u.length>0||N&&(null==m?void 0:m.id))&&(async()=>{var e;let t=await (0,h.callApiNew)(f.PATHS.TOGETHER.GET_TOGETHER_POST_LIST,{method:"GET",params:(null==u?void 0:u.length)>0?{includeIds:u.join(","),pageSize:n}:{communityId:null==m?void 0:m.id,startDate:tB()().subtract(2,"month").format("YYYY-MM-DD"),endDate:tB()().format("YYYY-MM-DD"),pageSize:n,sortBy:"relevant",postBy:"member"}},"together");T(((null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.posts)||[]).map(tk.d.formatPost))})()},[u]),(0,l.useEffect)(()=>{y&&fetchCommunityMember(N?String(null==m?void 0:m.id):g.map(e=>{var t;return null==e?void 0:null===(t=e.community)||void 0===t?void 0:t.id}).filter(Boolean).join(","))},[y]),(0,l.useEffect)(()=>{T(S.map(e=>{var t;return{...e,joinedCommunity:D.includes(String(null==e?void 0:null===(t=e.community)||void 0===t?void 0:t.id))}}))},[D]);let joinCommunity=async e=>await (0,h.callApiNew)(f.PATHS.TOGETHER.POST_TOGETHER_JOIN_COMMUNITY,{method:"POST",data:{ids:[e]}},"together"),fetchCommunityMember=async e=>{var t;if(!e)return;let a=await (0,h.callApiNew)(f.PATHS.TOGETHER.GET_TOGETHER_COMMUNITY,{params:{includeIds:e}},"together");Y(((null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.communities)||[]).filter(e=>e.joined).map(e=>String(e.id)))},E=(null==D?void 0:D[0])===String(null==m?void 0:m.id),A=N&&(null==m?void 0:m.id)?(0,o.Y)(CommunityBtn,{isFollowing:E,leftIcon:E?void 0:(0,o.Y)(tY.A,{color:"#fff",size:18}),rightIcon:E?(0,o.Y)(tD.I.ArrowRightTail,{color:"#fff",size:18}):void 0,community:m,joinCommunity:joinCommunity,onJoinCommunity:()=>(null==m?void 0:m.id)&&Y([...D,String(m.id)]),joinedLabel:b({id:"cardCommunity.joinCommunityName"},{name:null==m?void 0:m.name}),goToLabel:b({id:"cardCommunity.goToCommunityName"},{name:null==m?void 0:m.name})}):null;return N||F?(0,o.Y)(tn.A.Wrapper,{defaultColor:B.colors.neutral[0],...p,...v,children:(0,o.FD)(c.Box,{className:I.inner,children:[(0,o.FD)(c.Box,{className:I.info,children:[(0,o.FD)(c.Box,{className:I.infoLeft,children:[N&&(0,o.Y)(c.Box,{className:I.thumbnail,children:(0,o.Y)(c.AspectRatio,{ratio:1,className:I.thumbnailImg,children:(0,o.Y)("img",{src:m.thumbnail,alt:m.name,loading:"lazy"})})}),(0,o.FD)(c.Box,{className:I.header,children:[i&&(0,o.Y)(w.Text,{size:"h2",as:r?"h1":"h2",weight:"semiBold",variant:"primary",className:I.heading,children:i}),s&&(0,o.Y)(w.Text,{size:"p3",children:s})]})]}),!x&&A]}),(0,o.Y)(eH.v,{lengthToCarouselDesktop:3,children:(0,o.Y)(eH.v.Slider,{children:S.map(e=>(0,o.Y)(item_Item,{post:e,jointCommunityBtn:d===tN.Rp.POST,joinCommunity:joinCommunity},e.id))})}),x&&A]})}):null};var t$=(0,c.createStyles)((e,t)=>{let{isEventExpired:a}=t;return{root:{display:"flex",flexDirection:"column",gap:(0,c.rem)(16),[e.fn.largerThan("sm")]:{gap:(0,c.rem)(24)}},customReact:{display:"flex",alignItems:"center",gap:(0,c.rem)(16)},reactItem:{display:"flex",alignItems:"center",gap:(0,c.rem)(4)},body:{borderRadius:(0,c.rem)(8),border:"1px solid ".concat(e.colors.neutral[1]),backgroundColor:"#fff"},bodyHref:{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",borderBottomLeftRadius:0,borderBottomRightRadius:0,backgroundColor:e.colors.neutral[0]},imgThumb:{width:"100%",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",borderBottomLeftRadius:0,borderBottomRightRadius:0,...a&&{"&,img":{filter:"grayscale(1)"}}},reaction:{gap:(0,c.rem)(24),padding:"".concat((0,c.rem)(8)," ").concat((0,c.rem)(12)),[e.fn.largerThan("sm")]:{padding:(0,c.rem)(12)}},author:{svg:{[e.fn.largerThan("sm")]:{marginRight:(0,c.rem)(12)}}},content:{display:"inline-block",[e.fn.largerThan("sm")]:{paddingLeft:(0,c.rem)(10)}}}});let embedPost_item_Item=e=>{var t;let{post:a,mobileBanner:n,desktopBanner:r,styles:i,className:s,classNames:d,applyH1:m,...u}=e,{state:g}=(0,l.useContext)(ti.B),{isLoggedIn:p}=g||{},{likesCount:v=0,liked:x,commentsCount:b=0}=a,y=(0,C.a)(),{locale:S}=(0,Y.$)(),[T,k]=(0,l.useState)(!1),[B,N]=(0,l.useState)(!0),[F,E]=(0,l.useState)(v),A=tB()(),R=tB()(null==a?void 0:a.eventEnd),L=!!((null==a?void 0:a.isMinigame)&&R.isBefore(A,"dates")),P="/community/".concat((null==a?void 0:null===(t=a.community)||void 0===t?void 0:t.slug)||"_","/").concat((null==a?void 0:a.slug)||"","/"),{classes:M,cx:_,theme:z}=t$({isEventExpired:L},{name:"CarePathCommunityWithPostsItem",styles:i,classNames:d}),onClickPost=e=>{if(null==e||e.preventDefault(),p)window.location.href=P;else{var t,n;I.dX?tr.u.getState().triggerLogin({returnUrl:"".concat((0,$.oN)(S),"/community/on-boarding/?returnUrl=/").concat(null==a?void 0:null===(t=a.community)||void 0===t?void 0:t.slug,"/").concat(null==a?void 0:a.slug)}):window.location.href=(0,$.gQ)("".concat((0,$.oN)(S),"/community/on-boarding/?returnUrl=/").concat(null==a?void 0:null===(n=a.community)||void 0===n?void 0:n.slug,"/").concat(null==a?void 0:a.slug))}},W=null==a?void 0:a.author,H=(null==W?void 0:W.name)||(null==W?void 0:W.username)||"",O=(null==W?void 0:W.username)||(null==W?void 0:W.name)||"",G=null==W?void 0:W.avatar,V={isAnonymous:null==a?void 0:a.isAnonymous,avatar:G,avatarProps:{size:y?40:80},role:null==W?void 0:W.role,name:H,username:O,email:null==W?void 0:W.email,timeText:null==a?void 0:a.createdTime,community:null==a?void 0:a.community,showDetailPopup:!0,userId:null==W?void 0:W.id,profileModalProps:{zIndex:1e3}},handleLikeClick=async()=>{if(p)await (0,h.callApiNew)(f.PATHS.TOGETHER.POST_TOGETHER_LIKE_POST,{params:{postId:a.id}},"together"),k(e=>!e);else{var e;(null==a?void 0:null===(e=a.community)||void 0===e?void 0:e.slug)&&(0,tF.YA)("".concat((0,$.oN)(S),"/community/on-boarding/?returnUrl=/").concat(a.community.slug))}};(0,l.useEffect)(()=>{k(!!(null==a?void 0:a.liked))},[a]),(0,l.useEffect)(()=>{B||(T?E(x?v:v+1):E(v?v-1:v)),N(!1)},[T]);let j=(0,l.useMemo)(()=>{var e,t;return(0,o.Y)("img",{className:M.imgThumb,src:(null==a?void 0:null===(e=a.photos)||void 0===e?void 0:e[0])||"/images/default-image.jpg",alt:null==a?void 0:a.title,style:(null==a?void 0:null===(t=a.photos)||void 0===t?void 0:t[0])?void 0:{maxWidth:"400px",margin:"0 auto",display:"block"},loading:"lazy"})},[a]),U={"data-event-category":"Together Embedded","data-event-action":"Click Post","data-event-label":"https://".concat(D.domainLocales[S]).concat(P)},K={...U,href:P,onClick:e=>{onClickPost(e)}};return(0,o.FD)(c.Box,{className:_(M.root,s),...u,children:[(0,o.Y)(tG.C,{className:M.author,...V,children:(0,o.FD)(c.Box,{className:M.content,component:"a",...K,children:[(0,o.Y)(tG.C.MainText,{children:(0,o.Y)(w.Text,{size:y?"h4":"h3",as:m?"h1":"h3",children:null==a?void 0:a.title})}),(0,o.Y)(tG.C.SubText,{children:(0,o.FD)(w.Text,{as:"div",size:y?"p4":"p3",sx:{"> *":{display:"inline-block",verticalAlign:"middle"}},children:[(0,o.Y)(tG.C.DisplayName,{}),(0,o.Y)(tG.C.AuthorBadge,{sx:{color:z.colors.gray[8]}}),(0,o.Y)(tG.C.SubDivider,{}),null==a?void 0:a.createdTime]})})]})}),(0,o.FD)(c.Box,{className:M.body,children:[(0,o.Y)(c.Box,{component:"a",className:M.bodyHref,sx:{display:"block"},...K,children:y?n?(0,o.Y)("img",{className:M.imgThumb,src:n,alt:null==a?void 0:a.title,loading:"lazy",onError:e=>{e.currentTarget.src="/images/default-image.jpg",e.currentTarget.style.maxHeight="400px",e.currentTarget.style.margin="0 auto",e.currentTarget.style.display="block"}}):j:r?(0,o.Y)("img",{className:M.imgThumb,src:r,alt:null==a?void 0:a.title,loading:"lazy",onError:e=>{e.currentTarget.src="/images/default-image.jpg",e.currentTarget.style.maxHeight="400px",e.currentTarget.style.margin="0 auto",e.currentTarget.style.display="block"}}):j}),(0,o.Y)(tL.C,{trackingCategory:"Together Embedded",trackingLabel:"https://".concat(D.domainLocales[S]).concat(P),type:tz.Un.post,loveCount:F,replyCount:null==a?void 0:a.commentsCount,className:"post-reaction",liked:T,hasShare:!1,onCommentClick:()=>{onClickPost()},onLikeClick:handleLikeClick,children:(0,o.FD)(c.Flex,{align:"center",justify:"flex-end",className:M.reaction,children:[(0,o.Y)(tL.C.LikeWrapper,{...U,children:(0,o.FD)(c.Box,{className:M.reactItem,children:[(0,o.Y)(t_.A,{isSolid:T,color:T?z.colors.red[8]:void 0}),(0,o.Y)(w.Text,{size:"p4",children:(0,tP.a)(F)})]})}),(0,o.Y)(tL.C.CommentWrapper,{...U,children:(0,o.FD)(c.Box,{className:M.reactItem,children:[(0,o.Y)(tM.A,{}),(0,o.Y)(w.Text,{size:"p4",children:(0,tP.a)(b)})]})})]})})]})]})},EmbedPost=e=>{let{styles:t,className:a,classNames:n,applyH1:r,mobileBanner:i,desktopBanner:l,postDetail:s,wrapperProps:d,...c}=e;return s?(0,o.Y)(tn.A.Wrapper,{defaultColor:"#fff",...d,...c,children:(0,o.Y)(embedPost_item_Item,{applyH1:r,post:s,mobileBanner:i,desktopBanner:l})}):null};var t0=a("jWy7"),t1=a("fY7c"),t2=a("7ZMO"),t4=a("dJM9"),t8=a("2Aas"),t3=a("lXMR"),t6=a("W1kr"),t5=a("NVrP"),t9=a("efBK"),t7=a("wZxR"),ae=a("mdEm"),at=(0,c.createStyles)(e=>({body:{border:"1px solid ".concat(e.colors.blue[1]),backgroundColor:"#fff",[e.fn.largerThan("sm")]:{".due-date-card":{".mantine-HealthToolFormWrapper-root":{paddingTop:0,paddingBottom:0}},".mantine-HealthToolFormWrapper__FormRow-root":{paddingLeft:40,paddingRight:40},".mantine-HealthToolFormWrapper-root":{paddingTop:40,paddingBottom:24,"&.baby-growth-card":{paddingTop:0,paddingBottom:0,".mantine-HealthToolFormWrapper__FormRow-root":{paddingLeft:0,paddingRight:0}},"&.bmi-card-wrapper":{paddingBottom:0,".mantine-BmiForm-newsletterBlock":{paddingBottom:24}}},".baby-poop-card":{paddingTop:24,paddingBottom:8,button:{marginTop:8}}},[e.fn.smallerThan("sm")]:{"&:before":{content:"none"},".form-wrapper":{padding:0},"&>:not(style)":{position:"static"},".mantine-HealthToolFormWrapper-root":{paddingTop:16,paddingBottom:16,"&.baby-growth-card":{paddingTop:0,paddingBottom:0,".mantine-HealthToolFormWrapper__FormRow-root":{paddingLeft:0,paddingRight:0}}},".mantine-HealthToolFormWrapper__FormRow-root":{"&:last-child":{paddingBottom:0}},".mantine-BmiForm-newsletterBlock":{borderBottomLeftRadius:10,borderBottomRightRadius:10},".baby-poop-card":{paddingBottom:16},".due-date-card":{".mantine-HealthToolFormWrapper-root":{paddingTop:0,paddingBottom:0}}}},bodyInner:{},healthForm:{display:"flex",flexDirection:"column",gap:(0,c.rem)(16),padding:(0,c.rem)(16),[e.fn.largerThan("sm")]:{padding:(0,c.rem)(32),gap:(0,c.rem)(24)}}}));let HealthToolEmbed=e=>{var t,a,n,r;let{data:i,styles:l,classNames:s,applyH1:m}=e,{classes:u}=at(void 0,{name:"HealthToolEmbed",styles:l,classNames:s}),{formatMessage:g}=(0,k.A)(),p=(0,C.a)(),h=(null==i?void 0:null===(t=i.healthTool)||void 0===t?void 0:t.template)||"",embedStyles=e=>({root:{},bodyWrapper:{[e.fn.largerThan("sm")]:{paddingTop:32}}}),f=(0,o.FD)(c.Box,{sx:e=>({borderRadius:"inherit",...h===ae.e4.BABY_POOP&&{[e.fn.largerThan("sm")]:{display:"flex"}}}),children:[h===ae.e4.BABY_POOP&&(0,o.Y)(c.Box,{sx:e=>({flexShrink:0,padding:"16px 16px 0 16px",[e.fn.largerThan("sm")]:{padding:"32px 0 0 32px"}}),children:(0,o.Y)("img",{alt:"babyPoop",loading:"lazy",src:d.C.getAssetPath("baby-poop-embed.png"),style:{width:"120px"}})}),h===ae.e4.BABY_GROWTH?(0,o.Y)(c.Box,{sx:e=>({padding:(0,c.rem)(16),[e.fn.largerThan("sm")]:{padding:(0,c.rem)(32),gap:(0,c.rem)(24)}}),children:(0,o.Y)(t4.BabyGrowthCard,{className:"baby-growth-card",onlyUseForm:!0,styles:embedStyles})}):h===ae.e4.BMI?(0,o.Y)(c.Box,{sx:e=>({borderRadius:"inherit",[e.fn.largerThan("sm")]:{".mantine-HealthToolFormWrapper-root":{paddingBottom:0}}}),children:(0,o.Y)(t8.BMICardWrapper,{onlyUseForm:!0,positionType:"article",styles:embedStyles,className:"bmi-card-wrapper"})}):h===ae.e4.BMR?(0,o.Y)(t3.BMRCardWrapper,{onlyUseForm:!0,positionType:"article",styles:embedStyles}):h===ae.e4.THR?(0,o.Y)(t7.THRCardWrapper,{onlyUseForm:!0,positionType:"article",styles:embedStyles}):h===ae.e4.BABY_POOP?(0,o.Y)("div",{className:"baby-poop-card",children:(0,o.Y)(t1.BabyPoopCard,{onlyUseForm:!0,styles:embedStyles})}):h===ae.e4.PWG?(0,o.Y)(t9.PWGCardWrapper,{onlyUseForm:!0,styles:embedStyles}):h===ae.e4.OVULATION?(0,o.Y)(t5.OvulationCardWrapper,{onlyUseForm:!0,styles:embedStyles}):h===ae.e4.BABY_VACCINE?(0,o.Y)(t2.BabyVaccinationCard,{onlyUseForm:!0,styles:embedStyles}):h===ae.e4.DUE_DATE?(0,o.Y)(t6.DueDateCardWrapper,{className:"due-date-card",onlyUseForm:!0,styles:embedStyles}):h===ae.e4.AIR_POPULATION?(0,o.Y)(c.Box,{sx:e=>({padding:16,[e.fn.largerThan("sm")]:{padding:40}}),children:(0,o.Y)(t0.A,{})}):null]});return(0,o.Y)(RiskScreenerLayout,{applyH1:m,title:null==i?void 0:i.title,icon:null==i?void 0:null===(a=i.healthTool)||void 0===a?void 0:a.icon,reviewedBy:null==i?void 0:null===(n=i.healthTool)||void 0===n?void 0:n.reviewedBy,bodyRatio:"none",disclaimer:{heading:g({id:"tools.disclaimer"}),description:(null==i?void 0:null===(r=i.healthTool)||void 0===r?void 0:r.disclaimer)||""},classNames:{boxFrame:u.body,boxFrameInner:u.bodyInner},styles:l,children:p?f:(0,o.Y)(c.ScrollArea,{h:"100%",w:"100%",style:{borderRadius:"inherit"},children:f})})};var aa=a("LbCR"),an=a("bg63"),ar=(0,c.createStyles)((e,t)=>{let{numberItem:a}=t;return{root:{backgroundColor:e.colors.neutral[0]},row:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:(0,c.rem)(16)},[e.fn.largerThan("sm")]:{gap:(0,c.rem)(24)}},column:{flexGrow:1,[e.fn.largerThan("sm")]:{width:"calc((100% - 48px)/2)"}},mainBannerWrapper:{position:"relative",borderRadius:(0,c.rem)(16),width:"100%"},mainBannerCtaBtn:{[e.fn.largerThan("sm")]:{height:(0,c.rem)(56),fontSize:(0,c.rem)(22),padding:"8px 24px 8px 32px"}},mainBannerCtaBtnRightIcon:{[e.fn.largerThan("sm")]:{marginLeft:(0,c.rem)(16)}},navigatorRoot:{display:"flex",...2===a?{flexDirection:"column"}:3===a||4===a?{flexWrap:"wrap"}:{},[e.fn.smallerThan("sm")]:{gap:(0,c.rem)(16),flexDirection:"row"},[e.fn.largerThan("sm")]:{height:"100%"}},navigatorItem:{flexGrow:1,...3===a||4===a?{width:"calc((100% - 24px)/2)"}:{},[e.fn.smallerThan("sm")]:{width:"calc((100% - 16px)/2)"},[e.fn.largerThan("sm")]:{...3===a||4===a?{height:"calc((100% - 24px)/2)"}:{height:"100%"}}},navigatorItemWrapper:{},navigatorItemDesc:{},disclaimer:{border:"1px solid ".concat(e.colors.yellow[1]),borderRadius:(0,c.rem)(8),[e.fn.smallerThan("sm")]:{padding:(0,c.rem)(8)}},disclaimerTitle:{fontWeight:"normal"}}}),ao=a("JPg4"),ai=(0,c.createStyles)(()=>({root:{overflow:"hidden",img:{objectFit:"cover",width:"100%",height:"100%"}},wrapper:{position:"relative"}})),al=a("sYNu"),as=a("NLe/");let ad=(0,c.keyframes)({"0%":{transform:"translateX(-2px)"},"50%":{transform:"translateX(2px)"},"100%":{transform:"translateX(-2px)"}});(0,c.keyframes)({"0%, 5%, 50%, 100%":{backgroundPosition:"0 50%"},"35%":{backgroundPosition:"100% 50%"}});var ac=(0,c.createStyles)((e,t)=>{let{listBannerLength:a}=t;return{heading:{position:"absolute",[e.fn.smallerThan("sm")]:{left:(0,c.rem)(16),right:(0,c.rem)(16),top:(0,c.rem)(16),textAlign:"center"},[e.fn.largerThan("sm")]:{left:(0,c.rem)(40),top:(0,c.rem)(40)}},cta:{position:"absolute",[e.fn.smallerThan("sm")]:{left:(0,c.rem)(16),bottom:a>1?(0,c.rem)(40):(0,c.rem)(16),right:(0,c.rem)(16)},[e.fn.largerThan("sm")]:{left:(0,c.rem)(40),bottom:(0,c.rem)(40)}},ctaBtn:{color:"#fff",[e.fn.smallerThan("sm")]:{width:"100%"}},ctaBtnRightIcon:{},ctaArrow:{animation:"".concat(ad," 0.6s infinite")},popoperDropdown:{padding:0,border:0},popoperArrow:{backgroundColor:e.colors.yellow[0]},disclaimer:{padding:(0,c.rem)(8),border:"1px solid ".concat(e.colors.yellow[1])},disclaimerText:{fontSize:(0,c.rem)(12),lineHeight:(0,c.rem)(18)}}}),am=a("Kwke");let bannerItem_item_Item=e=>{let{styles:t,ratio:a,classNames:n,dataTracking:r,keepRatio:i=!0,i:s,listBannerLength:d}=e,{formatMessage:m}=(0,k.A)(),{detectPage:u}=(0,l.useContext)(eU.d),{isCarePath:g}=u,{classes:p,cx:h,theme:f}=ac({listBannerLength:d},{name:"CarePathHeroBannerBannerItem",styles:t,classNames:n}),{onItemClick:v}=(0,l.useContext)(am.S),x=(0,C.a)(),{encodedGaId:b}=(0,al.V)(),y=(0,to.m)([s.linkTo]),{isExternalUrl:S,formatUrl:w,isValidUrl:T,isExternalSite:D}=(null==y?void 0:y[0])||{},Y=g?(0,as.Ny)(w,b):w,I=(0,l.useCallback)(e=>{if(S)window.open(Y);else if(e.preventDefault(),Y.includes("#")){let e=Y.split("#");null==v||v(e[e.length-1])}else window.location.href=Y},[Y,S,v]),insideEle=e=>{let t={className:"pointer-event-child-none","data-event-category":"Service Connection","data-event-action":"Banner Click","data-event-label":Y,...r},a={component:T?"a":"div",href:Y,target:S?"_blank":"_self",...t,onClick:e=>{if(!S&&(null==Y?void 0:Y.includes("#"))){e.preventDefault();let t=Y.split("#");null==v||v(t[t.length-1])}}};return(0,o.FD)(c.Box,{...!e.ctaTitle&&a,children:[e.title&&(0,o.Y)(Z.H,{className:p.heading,tag:"h1",children:e.title}),e.ctaTitle&&(0,o.Y)(c.Box,{className:h(p.cta),children:(0,o.Y)(c.Tooltip,{arrowPosition:"center",arrowSize:8,width:264,withinPortal:!0,withArrow:!0,label:(0,o.Y)(an.M,{classNames:{root:p.disclaimer,content:p.disclaimerText},content:m({id:"confirmLeavePage.content",defaultMessage:"As your trusted health partner, we want to ensure you have the information you need to safeguard your health. Are you sure you want to leave this page?"})}),position:"bottom",disabled:!(D&&e.ctaTitle),styles:{tooltip:{padding:0,whiteSpace:"normal",background:f.colors.yellow[0]}},children:(0,o.Y)(c.Button,{...t,"data-primary-btn":"true",classNames:{root:p.ctaBtn,rightIcon:p.ctaBtnRightIcon},size:"lg",rightIcon:(0,o.Y)(tD.I.ArrowRightTail,{className:p.ctaArrow,color:"currentColor",size:x?20:24}),onClick:I,children:e.ctaTitle})})})]})};return(0,o.Y)(o.FK,{children:i?(0,o.FD)(c.AspectRatio,{ratio:a||(x?.75:3.2),children:[(0,o.Y)(et.B,{src:x?s.mobileBanner:s.desktopBanner,fill:!0,alt:s.title}),insideEle(s)]}):(0,o.FD)(o.FK,{children:[(0,o.Y)("img",{loading:"eager",src:x?s.mobileBanner:s.desktopBanner,alt:""}),insideEle(s)]})})},BannerItem=e=>{let{desktopBanner:t,mobileBanner:a,linkTo:n,title:r,ctaTitle:i,styles:s,ratio:d,className:m,classNames:u,dataTracking:g,hasLeavePageConfirm:p,keepRatio:h=!0,onBannerLoad:f,listBanner:v=[],primaryColor:x,autoSlide:b,delayTime:y,...C}=e,S=(0,l.useRef)((0,ao.A)({delay:y||7e3,stopOnInteraction:!1})),T=v.length>0?v:[{desktopBanner:t,mobileBanner:a,ctaTitle:i,linkTo:n,title:r}],{classes:k,cx:D}=ai(void 0,{name:"CarePathHeroBannerBannerItemList",styles:s,classNames:u});return(0,o.Y)(c.Box,{className:D(k.root,m),sx:()=>({overflow:"hidden",img:{objectFit:"cover",width:"100%",height:"100%"}}),...C,children:(0,o.Y)(c.Box,{className:k.wrapper,children:(0,o.Y)(w.Carousel,{plugins:b?[S.current]:[],withControls:!1,withIndicators:T.length>1,loop:!0,styles:e=>({indicator:{width:8,height:8,borderRadius:"50%",border:"1px solid ".concat(e.colors.neutral100),boxShadow:"none",background:"#fff",opacity:1,"&[data-active]":{borderColor:x,background:x}}}),children:T.map((e,t)=>(0,o.Y)(w.Carousel.Slide,{children:(0,o.Y)(bannerItem_item_Item,{i:e,dataTracking:g,keepRatio:h,ratio:d,listBannerLength:T.length})},t))})})})};var au=a("4igs"),ag=a("MyZj"),ap=a("eyHc"),ah=a("U/y6");(0,c.keyframes)({"0%":{backgroundPosition:"top right"},"100%":{backgroundPosition:"top left"}});var af=(0,c.createStyles)((e,t)=>{let{bgColor:a,isQuare:n,useImgAsFullBg:r,image:o,isImageBg:i}=t;return{root:{position:"relative",display:"block",backgroundColor:a,borderRadius:(0,c.rem)(16),overflow:"hidden",[e.fn.smallerThan("sm")]:{minHeight:(0,c.rem)(120)},[e.fn.largerThan("sm")]:{"&:hover":{[".".concat((0,c.getStylesRef)("info"))]:{transform:"translateY(10px)"}}},...r&&{backgroundColor:"transparent"},...i&&{backgroundImage:"url(".concat(o,")"),backgroundSize:"cover"}},thumbnail:{ref:(0,c.getStylesRef)("thumbnail"),position:"absolute",right:(0,c.rem)(40),bottom:0,zIndex:1,maxHeight:"100%",transition:"all .2s ease",...n&&{maxHeight:"72%",right:0,bottom:0},[e.fn.smallerThan("sm")]:{...n&&{right:0,bottom:0,maxHeight:(0,c.rem)(60),height:"auto"}},...r&&{top:0,left:0,right:0,bottom:0,zIndex:0,width:"100%",height:"100%",maxHeight:"none !important",objectFit:"cover"}},wrapper:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",position:"relative",zIndex:2,[e.fn.largerThan("sm")]:{...!n&&{justifyContent:"space-around"}},...r&&{position:"relative",zIndex:1,[e.fn.largerThan("sm")]:{justifyContent:"flex-start"}}},info:{ref:(0,c.getStylesRef)("info"),padding:(0,c.rem)(12),display:"flex",flexDirection:"column",gap:n?(0,c.rem)(2):(0,c.rem)(8),transition:"all .2s ease",[e.fn.largerThan("sm")]:{gap:n?(0,c.rem)(4):(0,c.rem)(8),padding:(0,c.rem)(24)}},title:{color:"#fff",...n?{maxWidth:(0,c.rem)(200)}:{maxWidth:(0,c.rem)(188)},[e.fn.largerThan("sm")]:{...!n&&{maxWidth:(0,c.rem)(269)}}},desc:{color:"#fff",maxWidth:"70%"},exploreLink:{color:"#fff",ref:(0,c.getStylesRef)("exploreLink"),display:"flex",gap:(0,c.rem)(4),[e.fn.smallerThan("sm")]:{alignItems:"center",gap:0}},exploreText:{color:"inherit"},exploreArrow:{ref:(0,c.getStylesRef)("exploreArrow"),color:"#fff",transition:"transform .3s ease",display:"flex",marginTop:(0,c.rem)(1),[e.fn.largerThan("sm")]:{marginTop:(0,c.rem)(3)}},hint:{position:"absolute",bottom:0,left:0,zIndex:3,paddingBottom:8,paddingLeft:(0,c.rem)(10),[e.fn.largerThan("sm")]:{paddingLeft:(0,c.rem)(20),paddingBottom:12}},popoperDropdown:{padding:0,border:0},popoperArrow:{backgroundColor:e.colors.yellow[0]},disclaimer:{padding:(0,c.rem)(8),border:"1px solid ".concat(e.colors.yellow[1])},disclaimerText:{fontSize:(0,c.rem)(12),lineHeight:(0,c.rem)(18)},pattern:{position:"absolute",top:(0,c.rem)(-2),right:(0,c.rem)(-2),left:(0,c.rem)(-2),bottom:(0,c.rem)(-2),display:"flex",justifyContent:"flex-end",...r&&{display:"none"}}}});let av=p()(()=>a.e(7687).then(a.bind(a,"rXQO")),{loadableGenerated:{webpack:()=>["rXQO"]}}),ax=p()(()=>a.e(1602).then(a.bind(a,"gEXU")),{loadableGenerated:{webpack:()=>["gEXU"]}}),FullBg=e=>{let{image:t,isImageBg:a,title:n,description:r,ctaTitle:i,bgColor:l="blue.6",className:s,classNames:d,isQuare:m=!0,showBrushPattern:u,styles:g,isExternalUrl:p,hideDescription:h,useImgAsFullBg:f=!1,...v}=e,x=(0,C.a)(),{formatMessage:b}=(0,k.A)(),{classes:y,cx:S}=af({bgColor:l,isQuare:m,useImgAsFullBg:f,image:t,isImageBg:a},{name:"CarePathHeroBannerNavigatorItem____BlockItem--FullBg",classNames:d,styles:g}),[T,{close:D,open:Y}]=(0,ed.j)(!1),I=(0,o.FD)(c.Flex,{gap:(0,c.rem)(4),align:"center",children:[(0,o.Y)(ah.A,{size:18,color:"#fff"}),(0,o.Y)(w.Text,{size:"n1",color:"#fff",children:b({id:"ctaBanner.leavingSite",defaultMessage:"Leaving site"})})]});return(0,o.FD)(c.Box,{className:S(y.root,s),...v,onMouseEnter:Y,onMouseLeave:D,children:[!a&&(0,o.FD)(o.FK,{children:[(0,o.Y)(c.Box,{className:y.wrapper,children:(0,o.FD)(c.Box,{className:y.info,children:[n&&(0,o.Y)(Z.H,{className:y.title,tag:x?"h4":"h3",children:n}),!x&&r&&!h&&(0,o.Y)(w.Text,{size:"p4",className:y.desc,children:r}),(0,o.FD)(c.Box,{className:y.exploreLink,children:[(0,o.Y)(w.Text,{className:y.exploreText,size:"s4",children:i||b({id:"ctaBanner.exploreLink",defaultMessage:"Explore"})}),(0,o.Y)("span",{className:y.exploreArrow,children:(0,o.Y)(ex.A,{size:18,useCurrentColor:!0})})]})]})}),(0,o.Y)(c.Box,{className:y.pattern,children:m?(0,o.Y)(ax,{color:l,showBrush:u&&!x}):(0,o.Y)(av,{color:l,showBrush:u&&!x})}),t&&(0,o.Y)("img",{src:t,loading:"eager",alt:n,className:y.thumbnail})]}),p?x?(0,o.Y)(c.Box,{className:y.hint,children:I}):(0,o.Y)(c.Box,{className:y.hint,children:(0,o.FD)(w.Popover,{width:264,withinPortal:!0,position:"bottom",withArrow:!0,shadow:"md",opened:T,classNames:{dropdown:y.popoperDropdown,arrow:y.popoperArrow},children:[(0,o.Y)(w.Popover.Target,{children:(0,o.Y)(c.Button,{sx:{pointerEvents:"auto",height:"auto",padding:0},children:I})}),(0,o.Y)(w.Popover.Dropdown,{children:(0,o.Y)(an.M,{classNames:{root:y.disclaimer,content:y.disclaimerText},content:b({id:"confirmLeavePage.content",defaultMessage:"As your trusted health partner, we want to ensure you have the information you need to safeguard your health. Are you sure you want to leave this page?"})})})]})}):null]})};FullBg.displayName="FullBg";let CtaBanner=e=>{let{colorArr:t,sessionProps:{imageBanner:a,navigating:n,medicalFacts:r},styles:i,navigatorProps:l,bannerTracking:s,bannerComponent:d,listBanner:m=[],autoSlide:u,delayTime:g,mappingIconList:p}=e,{formatMessage:h}=(0,k.A)(),f=(0,C.a)(),x=[...n].slice(0,4),b=(0,U.m)(),{classes:y}=ar({numberItem:x.length},{name:"CarePathHeroBannerCTALayout",styles:i}),S=(0,to.m)([a[0].linkTo,...x.map(e=>e.url)]),w=d||BannerItem;return(0,o.Y)(c.Box,{className:y.root,children:(0,o.Y)(v.m,{children:(0,o.FD)(c.Stack,{sx:e=>({gap:(0,c.rem)(16),paddingBottom:0===r.listContent.length?(0,c.rem)(24):0,[e.fn.largerThan("sm")]:{gap:(0,c.rem)(40),paddingBottom:0===r.listContent.length?(0,c.rem)(40):0}}),children:[(0,o.FD)(c.Box,{className:y.row,children:[(0,o.Y)(c.Box,{className:y.column,children:(0,o.Y)(c.AspectRatio,{ratio:f?343/347:552/414,children:(0,o.Y)(c.Box,{children:(0,o.Y)(w,{...a[0],listBanner:m,dataTracking:s,classNames:{root:y.mainBannerWrapper,ctaBtn:y.mainBannerCtaBtn,ctaBtnRightIcon:y.mainBannerCtaBtnRightIcon},ratio:f?343/347:552/414,primaryColor:t[0],autoSlide:u,delayTime:g})})})}),(0,o.Y)(c.Box,{className:y.column,children:(0,o.Y)(ag.mD,{className:y.navigatorRoot,colorArr:t,navigating:x,itemComponent:FullBg,mappingIconList:p,...l,children:x.map((e,t)=>{var a,n;return(0,o.Y)(ap.Z,{"data-index":t,classNames:{root:y.navigatorItem,wrapper:y.navigatorItemWrapper,desc:y.navigatorItemDesc},isQuare:!f&&1===x.length||f&&x.length%2==0||4===x.length||3===x.length&&2!==t,hideDescription:4===x.length||3===x.length&&(t+1)%3!=0,isImageBg:e.isImageBg,"data-event-label":e.url||"".concat(b.split("#")[0]).concat(e.idScroll?"#"+decodeURI(e.idScroll):""),isExternalUrl:null===(a=S[t+1])||void 0===a?void 0:a.isExternalSite,target:(null===(n=S[t+1])||void 0===n?void 0:n.isExternalUrl)?"_blank":"_self"},String(t))})})})]}),f&&S.filter(e=>e.isExternalSite).length>0&&(0,o.Y)(an.M,{classNames:{root:y.disclaimer,title:y.disclaimerTitle},title:h({id:"confirmLeavePage.content",defaultMessage:"As your trusted health partner, we want to ensure you have the information you need to safeguard your health. Are you sure you want to leave this page?"})}),(0,o.Y)(au.f,{medicalFacts:r,styles:{root:{paddingLeft:0,paddingRight:0}}})]})})})};CtaBanner.displayName="CtaBanner";var ab=a("YM8E"),ay=(0,c.createStyles)((e,t)=>{let{blockName:a,numberItem:n}=t;return{navigatorWrapper:{},navigatorRoot:{display:"flex",..."ElegantUI"==a?{flexWrap:"wrap",gap:(0,c.rem)(12),[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:(0,c.rem)(8)}}:{gap:(0,c.rem)(24),...n>3&&{flexWrap:"wrap"},[e.fn.largerThan("sm")]:{gap:n>3?(0,c.rem)(12):(0,c.rem)(24)},[e.fn.smallerThan("sm")]:{gap:(0,c.rem)(8)}}},navigatorItem:{..."ElegantUI"===a?{[e.fn.largerThan("sm")]:{width:"calc((100% - 12px)/2)",minHeight:(0,c.rem)(102)}}:{...1===n&&{maxWidth:(0,c.rem)(360)},...n<=3&&{width:"100%",flexGrow:1},...4===n&&{width:"calc((100% - 36px)/4)",flexGrow:0,[e.fn.smallerThan("sm")]:{width:"calc((100% - 16px)/2)"}},...n>4&&{width:"calc((100% - 36px)/4)",flexGrow:0,[e.fn.smallerThan("sm")]:{width:"calc((100% - 16px)/3)"}},[e.fn.largerThan("sm")]:{...n>3&&{padding:(0,c.rem)(12),gap:(0,c.rem)(12)}}}},navigatorItemImgWrapper:{..."ElegantUI"!==a&&{[e.fn.largerThan("sm")]:{...n>3&&{width:(0,c.rem)(40),height:(0,c.rem)(40),borderRadius:(0,c.rem)(12)}}}},navigatorItemTitle:{..."ElegantUI"!==a&&{[e.fn.largerThan("sm")]:{...n>3&&{fontSize:"14px",lineHeight:"18px"}}}}}}),aC=a("Lp3b");let DefaultBanner=e=>{var t;let{mappingIconList:a,colorArr:n,sessionProps:{imageBanner:r,title:i,description:s,navigating:d,medicalFacts:m},styles:u,navigatorProps:g}=e,p=(0,C.a)(),h=[...d].slice(0,4),f=null!==(t=null==g?void 0:g.itemComponent)&&void 0!==t?t:aC.f,x=f===aC.f||(null==f?void 0:f.displayName)==="FlatIcon",b=(0,l.useMemo)(()=>(null==f?void 0:f.displayName)||"FlatIcon",[f]),y=x?{layout:(p?h.length<4:h.length>1&&h.length<4)?"horizon":"vertical",fullWidth:p&&h.length<3}:void 0,{classes:S}=ay({numberItem:h.length,blockName:b},{name:"CarePathHeroBannerDefaultLayout",styles:u}),w=(0,l.useMemo)(()=>{var e;return null===(e=r[0])||void 0===e?void 0:e.desktopBanner},[]),T=(0,l.useMemo)(()=>{var e;return null===(e=r[0])||void 0===e?void 0:e.mobileBanner},[]),k=p?c.Box:c.AspectRatio;return(0,o.Y)(c.Box,{children:(0,o.FD)(c.Stack,{sx:e=>({gap:(0,c.rem)(16),[e.fn.largerThan("sm")]:{gap:(0,c.rem)(40)}}),children:[(0,o.FD)(c.Box,{sx:e=>({[e.fn.largerThan("sm")]:{position:"relative"}}),children:[!p&&(0,o.Y)(c.Box,{sx:{position:"absolute",top:0,right:0,bottom:0,width:"50%",backgroundImage:"url(".concat(w,")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"left"}}),(0,o.Y)(k,{ratio:3.2,children:(0,o.FD)(c.Box,{sx:e=>({[e.fn.largerThan("sm")]:{display:"flex",alignItems:"center"}}),children:[(0,o.Y)(c.Box,{sx:e=>({height:"100%",[e.fn.largerThan("sm")]:{display:"none"}}),children:(0,o.Y)(c.AspectRatio,{ratio:p?750/208:892/550,sx:{height:"100%"},children:(0,o.Y)("img",{src:T,alt:i||s,loading:"lazy"})})}),(i||s||h.length>0)&&(0,o.Y)(v.m,{style:{position:"relative"},children:(0,o.Y)(c.Box,{sx:e=>({[e.fn.largerThan("sm")]:{width:(0,c.rem)(552)}}),children:(0,o.FD)(c.Stack,{spacing:(0,c.rem)(24),children:[(0,o.Y)(c.Stack,{spacing:(0,c.rem)(12),children:i&&(0,o.Y)(Z.H,{tag:"h2",children:i})}),(0,o.Y)(ag.mD,{mappingIconList:a,classNames:{root:S.navigatorRoot},navigating:h,colorArr:n,...g,itemProps:{...null==g?void 0:g.itemProps,...y},children:h.map((e,t)=>(0,o.Y)(ap.Z,{classNames:{root:S.navigatorItem},displayAs:f,iconSize:"ElegantUI"!==b?h.length>3?24:32:void 0},String(t)))})]})})})]})})]}),m.listContent.length>0&&(0,o.Y)(v.m,{children:(0,o.Y)(au.f,{medicalFacts:m,sx:e=>({background:e.colors.neutral[0]})})})]})})};DefaultBanner.displayName="DefaultBanner";var aS=a("R3fp"),aw=(0,c.createStyles)((e,t)=>{let{bgColor:a="#fc7419"}=t,n="transparent",r=(0,tv.E2)(a,!0),o=(0,tv.wm)(r.r,r.g,r.b),i=(0,tv.sO)(o[0],9,99),l="rgb(".concat(i[0],",").concat(i[1],",").concat(i[2],")"),s=(0,tv.sO)(o[0],24,98),d="rgb(".concat(s[0],",").concat(s[1],",").concat(s[2],")");return{root:{position:"relative",overflow:"hidden",backgroundColor:l,borderRadius:(0,c.rem)(16),transition:"all .3s ease",[e.fn.smallerThan("sm")]:{border:"1px solid ".concat(d)},"&:hover":{[e.fn.largerThan("sm")]:{backgroundColor:d,transform:"translateY(-10px)"}}},wrapper:{position:"relative",padding:(0,c.rem)(1),borderRadius:"inherit","&:before, &:after":{content:'""',position:"absolute",zIndex:1,width:(0,c.rem)(10),height:0,backgroundColor:l,transitionProperty:"all",transitionDuration:"".concat(.6,"s")},"&:before":{top:"-100%",left:0,backgroundImage:"linear-gradient(".concat(a," ,").concat(a," ,").concat(a," ,").concat(a," ,").concat(a," ,").concat(a," , ").concat(n,")")},"&:after":{bottom:"-100%",right:0,backgroundImage:"linear-gradient(".concat(n,", ").concat(a,",").concat(a," ,").concat(a," ,").concat(a," ,").concat(a," , ").concat(a,")")}},inner:{position:"relative",zIndex:2,display:"flex",alignItems:"center",gap:(0,c.rem)(16),padding:(0,c.rem)(16),justifyContent:"space-between",borderRadius:"inherit",[e.fn.largerThan("sm")]:{flexDirection:"column",alignItems:"stretch",justifyContent:"center",minHeight:(0,c.rem)(102)}},infoWrapper:{display:"flex",gap:(0,c.rem)(16),alignItems:"center",[e.fn.largerThan("sm")]:{justifyContent:"space-between"}},thumbnail:{transition:"all .3s ease",[e.fn.largerThan("sm")]:{order:2}},info:{display:"flex",flexDirection:"column",gap:(0,c.rem)(4),[e.fn.largerThan("sm")]:{order:1}},title:{},exploreLink:{display:"flex",alignItems:"center",gap:(0,c.rem)(1)},exploreText:{lineHeight:(0,c.rem)(18)},exploreArrow:{color:e.colors.gray[4],transition:"transform .3s ease",fontSize:0},arrow:{background:"#fff",borderRadius:"50%",width:(0,c.rem)(24),height:(0,c.rem)(24),display:"flex",alignItems:"center",justifyContent:"center"}}});let ElegantUI=e=>{let{icon:t=(0,o.Y)(aS.A,{}),title:a,ctaTitle:n,bgColor:r="blue.6",className:i,classNames:l,styles:d,iconSize:m,...u}=e,{formatMessage:g}=(0,k.A)(),{classes:p,cx:h}=aw({bgColor:r},{name:"CarePathHeroBannerNavigatorItemElegant",classNames:l,styles:d}),f=(0,C.a)();return(0,o.Y)(c.Box,{className:h(p.root,i),...u,children:(0,o.Y)(c.Box,{className:p.wrapper,children:(0,o.FD)(c.Box,{className:p.inner,children:[(0,o.FD)(c.Box,{className:p.infoWrapper,children:[(0,o.Y)(c.Box,{className:p.thumbnail,children:s().cloneElement(t,{size:m||(f?40:48)})}),a&&(0,o.FD)(c.Box,{className:p.info,children:[(0,o.Y)(w.Text,{className:p.title,size:f?"s2":"s3",children:a}),!f&&(0,o.FD)(c.Box,{className:p.exploreLink,children:[(0,o.Y)(w.Text,{className:p.exploreText,size:"n1",children:n||g({id:"ctaBanner.exploreLink",defaultMessage:"Explore"})}),(0,o.Y)("span",{className:p.exploreArrow,children:(0,o.Y)(ex.A,{size:16,useCurrentColor:!0})})]})]})]}),f&&(0,o.Y)(c.Box,{className:p.arrow,children:(0,o.Y)(icons_ArrowDown,{size:20,color:r})})]})})})};ElegantUI.displayName="ElegantUI";var aT=(0,c.createStyles)(e=>({root:{display:"flex",flexDirection:"column",padding:"".concat((0,c.rem)(16)," ").concat((0,c.rem)(8)),gap:(0,c.rem)(16),boxShadow:"0px 0px 1px 0px rgba(0, 0, 0, 0.04), 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 16px 24px 0px rgba(0, 0, 0, 0.06)",alignItems:"center",cursor:"pointer",borderRadius:(0,c.rem)(16),background:"#fff",[e.fn.smallerThan("sm")]:{width:"100%",flexDirection:"row",padding:(0,c.rem)(12)},[e.fn.largerThan("sm")]:{gap:(0,c.rem)(24)}},imgWrapper:{display:"flex",justifyContent:"center",alignItems:"center",borderRadius:(0,c.rem)(12),flexShrink:0,width:(0,c.rem)(48),height:(0,c.rem)(48),[e.fn.largerThan("sm")]:{borderRadius:(0,c.rem)(16),width:(0,c.rem)(64),height:(0,c.rem)(64)},svg:{width:(0,c.rem)(48),height:(0,c.rem)(48),[e.fn.largerThan("sm")]:{width:(0,c.rem)(64),height:(0,c.rem)(64)}}},title:{textAlign:"center",[e.fn.smallerThan("sm")]:{textAlign:"left",fontSize:(0,c.rem)(16)},[e.fn.largerThan("sm")]:{fontSize:(0,c.rem)(18),maxWidth:(0,c.rem)(220)}}}));let ImageIcon=e=>{let{icon:t=(0,o.Y)(aS.A,{}),title:a,className:n,classNames:r,styles:i,iconSize:l=32,...d}=e,{classes:m,cx:u}=aT(void 0,{name:"CarePathHeroBannerNavigatorImageIcon",styles:i,classNames:r}),g=(0,C.a)();return(0,o.FD)(c.Box,{className:u(m.root,n),...d,children:[(0,o.Y)(c.Box,{className:m.imgWrapper,children:s().cloneElement(t,{size:g?24:l,color:"#ffffff"})}),a&&(0,o.Y)(w.Text,{className:m.title,size:"s3",weight:"semiBold",children:a})]})};ImageIcon.displayName="ImageIcon";var ak=a("7ndH"),aD=a("7xX9"),aY=(0,c.createStyles)((e,t)=>{let{layout:a,carouselItemLayout:n,itemLength:r}=t,o="vertical"===a,i="horizontal"===a&&"group"===n,l="horizontal"===a&&"inline"===n;return{root:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:8},[e.fn.largerThan("sm")]:{gap:(0,c.rem)(24),alignItems:"center",justifyContent:"center",...o&&{flexDirection:"column",gap:56},...l&&{gap:80}}},listing:{display:"flex",gap:(0,c.rem)(16),..."horizontal"===a&&{flexShrink:0},...(o||l)&&{".carouselCard":{width:"100%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"},[e.fn.largerThan("sm")]:{flexWrap:"wrap",gap:(0,c.rem)(24),...i&&{order:1,maxWidth:(0,c.rem)(648)},...o&&{width:"100%"},...l&&{flex:1},".slide-item":{..."group"===n&&{height:"auto",'&[data-item="4"]':{paddingBottom:80,[".".concat((0,c.getStylesRef)("item"))]:{"&:nth-child(even)":{transform:"translate(0, ".concat((0,c.rem)(80),")")}}},'&[data-item="3"]':{justifyContent:"flex-end",[".".concat((0,c.getStylesRef)("item"))]:{"&:nth-child(1)":{transform:"translate(0, 50%)"}}},'&[data-item="2"]':{[".".concat((0,c.getStylesRef)("item"))]:{"&:nth-child(2)":{marginTop:80}}},...1===r&&{'&[data-item="1"]':{"& > div":{flex:"0 0 100%",maxWidth:"100%"}}}}}}},carousel:{},info:{[e.fn.largerThan("sm")]:{...i&&{width:"100%",order:2},...l&&{flex:1}}},infoInner:{gap:0,[e.fn.largerThan("sm")]:{...o&&{textAlign:"center",alignItems:"center"},...i&&{width:(0,c.rem)(360),...r>1?{margin:"0 auto"}:{marginLeft:40}}}},title:{[e.fn.largerThan("sm")]:{...o&&{textAlign:"center"}}},item:{ref:(0,c.getStylesRef)("item"),[e.fn.largerThan("sm")]:{..."group"===n&&{flex:"0 0 calc(50% - 12px)"}}},embedItem:{[e.fn.largerThan("sm")]:{..."group"===n&&{height:354},..."inline"===n&&{height:1===r||2===r?320:3===r?332:386}}},editorContent:{"p, ul":{margin:"".concat((0,c.rem)(16)," 0")},li:{position:"relative",paddingLeft:(0,c.rem)(44),marginTop:(0,c.rem)(16),"&:first-of-type":{marginTop:0},"&:before":{content:'""',display:"inline-block",width:(0,c.rem)(28),height:(0,c.rem)(28),background:"url(".concat(d.C.getAssetPath("check-green.svg"),")"),backgroundPosition:"center",backgroundColor:e.colors.green[0],backgroundRepeat:"no-repeat",borderRadius:"50%",position:"absolute",top:(0,c.rem)(-2),left:0}}}}}),aI=a("oXFM");let aB=(0,c.createStyles)((e,t)=>{let{color:a}=t;return{root:{borderRadius:"50%",background:a}}}),circle_Circle=e=>{let{color:t,...a}=e,{classes:n,cx:r}=aB({color:t});return(0,o.Y)(c.Box,{className:r(n.root),sx:{borderRadius:"50%",background:t},...a})};var aN=(0,c.createStyles)((e,t)=>{let{color:a}=t;return{root:{position:"relative",backgroundColor:a,borderRadius:(0,c.rem)(20),overflow:"hidden"},circle:{position:"absolute",top:0,right:0,zIndex:1,opacity:.5,transform:"translate(50%, -50%)"},wrapper:{position:"relative",zIndex:2,padding:"".concat((0,c.rem)(16)," ").concat((0,c.rem)(24)),display:"flex",flexDirection:"column",gap:(0,c.rem)(8),height:"100%",[e.fn.largerThan("sm")]:{justifyContent:"space-between",padding:(0,c.rem)(24)}},inner:{display:"flex",flexDirection:"column",gap:(0,c.rem)(8)},header:{display:"flex",gap:(0,c.rem)(16),[e.fn.smallerThan("sm")]:{alignItems:"center"},[e.fn.largerThan("sm")]:{gap:(0,c.rem)(24),flexDirection:"column"}},actions:{[e.fn.smallerThan("sm")]:{display:"none"}},imgWrapper:{width:(0,c.rem)(48),borderRadius:"50%",overflow:"hidden",background:"#fff",flexShrink:0,[e.fn.largerThan("sm")]:{width:(0,c.rem)(80)}},reviewer:{}}});let RiskScreenerEmbedItem=e=>{let{color:t,styles:a,className:n,item:r,loading:i,...l}=e,{thumbnail:s,title:m,reviewerAvatar:u,reviewerName:g,reviewerSpecialty:p,reviewerHospital:h,langdingPageUrlPrefix:f,landingPageUrlSlug:v}=r||{},{formatMessage:x}=(0,k.A)(),{classes:b,cx:y,theme:S}=aN({color:i?"#efefef":t},{name:"RiskScreenerEmbedItem",styles:a}),T=(0,C.a)(),D=[p&&"".concat(p,""),h&&"".concat(h,"")].filter(Boolean),Y=(0,U.m)(),B="".concat(f).concat(v,"?source_link=").concat(encodeURIComponent(Y)),N={href:i?"#":B,target:"_blank","data-event-category":"Service Connection","data-event-action":"Risk Screening Banner Click","data-event-label":B},F=(0,o.FD)(c.Box,{className:y(b.root,n),...l,children:[(0,o.Y)(c.Box,{className:b.circle,children:(0,o.Y)(circle_Circle,{color:S.fn.lighten(t,.23),sx:e=>({width:120,height:120,[e.fn.largerThan("sm")]:{width:240,height:240}})})}),(0,o.FD)(c.Box,{className:b.wrapper,children:[(0,o.FD)(c.Box,{className:b.inner,children:[(0,o.FD)(c.Box,{className:b.header,children:[(0,o.Y)(c.Box,{children:(0,o.Y)(c.AspectRatio,{ratio:1,className:b.imgWrapper,children:i?(0,o.Y)(c.Skeleton,{width:"100%",height:"100%",circle:!0}):(0,o.Y)("img",{src:s||d.C.getAssetPath("stethoscop.png"),alt:m,loading:"lazy",style:{objectFit:"cover",width:"100%",height:"100%"}})})}),(0,o.Y)(c.Box,{sx:e=>({[e.fn.largerThan("sm")]:{".item-title":{display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden"}}}),children:(0,o.Y)("a",{...N,children:(0,o.Y)(Z.H,{tag:"h4",className:"item-title",color:"#fff",children:i?(0,o.FD)(c.Stack,{spacing:8,children:[(0,o.Y)(c.Skeleton,{height:16,width:"100%"}),(0,o.Y)(c.Skeleton,{height:16,width:"30%"})]}):m})})})]}),g&&(0,o.FD)(c.Flex,{gap:8,align:"center",className:b.reviewer,children:[(0,o.Y)(w.Avatar,{src:u,size:32,withIndicator:!0,indicatorConfig:{size:18,label:(0,o.Y)("img",{src:"".concat(I.nS,"/reviewer-medical.svg"),loading:"lazy",alt:"badge"}),offset:6},styles:{root:{backgroundColor:"white",borderRadius:"50%"},placeholder:{border:0}}}),(0,o.FD)(c.Box,{children:[(0,o.Y)(w.Text,{size:"p4",color:"#fff",as:"div",sx:{".si-review-by-name":{"strong,b":{fontWeight:600},a:{color:"inherit","&:hover":{color:"#2d87f3"}}}},children:(0,o.Y)(aI.o,{children:g})}),D.length>0&&(0,o.Y)(c.Box,{sx:{color:"#fff",fontSize:"12px",lineHeight:"140%","span + span":{" &:before ":{content:'" \xb7 "'}}},children:(0,o.Y)("div",{dangerouslySetInnerHTML:{__html:D.join("")}})})]})]})]}),(0,o.Y)(c.Box,{className:b.actions,children:i?(0,o.Y)(c.Skeleton,{height:40,width:240}):(0,o.Y)(w.Button,{component:"a",...N,variant:"white",rightIcon:(0,o.Y)(ex.A,{size:16,color:t}),styles:e=>({root:{background:e.fn.lighten(t,.9),"&:hover":{background:"#fff"}}}),"data-event-category":"Service Connection","data-event-action":"Risk Screening Banner Click","data-event-label":B,onClick:()=>window.open(B),children:(0,o.Y)(w.Text,{size:"s4",weight:"semiBold",color:t,children:x({id:"multiRiskEmbed.cta",defaultMessage:"Assess your risk here"})})})})]})]});return T?(0,o.Y)("a",{href:B,target:"_blank",children:F}):F},MultiRiskScreenerEmbed=e=>{let{sessionProps:t,className:a,classNames:n,styles:r,colorShade:i,applyH1:d,...m}=e,{listSubot:u=[],horizontalDisplay:g}=t,p=(0,C.a)(),h=u.length,f=h>0,[x,b]=(0,l.useState)(!0),[y,S]=(0,l.useState)(Array(h).fill("")),{classes:T,cx:k,theme:D}=aY({layout:g&&y.length>1?"vertical":"horizontal",carouselItemLayout:g?"inline":"group",itemLength:y.length},{name:"MultiRiskScreenerEmbed",classNames:n,styles:r}),Y=["primary","secondary","tertiary","quaternary"],I=(0,l.useMemo)(()=>({defaultItemsPerRow:g?1:2,defaultRowsPerSlide:g?1:2,slideSize:g?"".concat(100/Math.min(y.length,4),"%"):"100%"}),[g,y]),fetchListSubot=async()=>{try{b(!0);let e=await Promise.all(u.map(e=>(0,aD.BZ)(e.id))),t=e.map((e,t)=>{var a,n,r,o,i,l,s,d;return(null==e?void 0:e._data)&&{bgColor:u[t].backgroundColor,thumbnail:(null==e?void 0:null===(a=e._data)||void 0===a?void 0:a.landing_page_image)||"",title:(null==e?void 0:null===(n=e._data)||void 0===n?void 0:n.landing_page_title)||"",reviewerName:(null==e?void 0:null===(r=e._data)||void 0===r?void 0:r.landing_page_reviewer)||"",reviewerAvatar:(null==e?void 0:null===(o=e._data)||void 0===o?void 0:o.landing_page_avatar)||"",reviewerHospital:(null==e?void 0:null===(i=e._data)||void 0===i?void 0:i.landing_page_hospital_name)||"",reviewerSpecialty:(null==e?void 0:null===(l=e._data)||void 0===l?void 0:l.landing_page_speciality)||"",langdingPageUrlPrefix:(null==e?void 0:null===(s=e._data)||void 0===s?void 0:s.landing_page_url_prefix)||"",landingPageUrlSlug:(null==e?void 0:null===(d=e._data)||void 0===d?void 0:d.landing_page_url_slug)||""}}).filter(e=>(null==e?void 0:e.title)!=="");S(t)}finally{b(!1)}};return((0,l.useEffect)(()=>{f&&fetchListSubot()},[]),f)?(0,o.Y)(v.m,{children:(0,o.FD)(c.Box,{className:k(T.root,a),...m,children:[(t.title||t.description)&&(0,o.Y)(c.Box,{className:T.info,children:(0,o.FD)(c.Stack,{className:T.infoInner,children:[t.title&&(0,o.Y)(w.Text,{size:"h2",as:d?"h1":"h2",variant:"primary",weight:"semiBold",className:T.title,children:t.title}),t.description&&(0,o.Y)(c.Box,{children:(0,o.Y)(w.Text,{size:"p4",as:"div",children:(0,o.Y)(c.Box,{className:T.editorContent,dangerouslySetInnerHTML:{__html:t.description}})})})]})}),(0,o.Y)(c.Box,{className:T.listing,children:(0,o.Y)(tC.A,{containScroll:"trimSnaps",className:T.carousel,slideSize:I.slideSize,breakpoints:[{maxWidth:tO.B.BREAK_POINT_TABLET,slideSize:"100%"}],slideGap:24,align:"start",withIndicators:!g,styles:e=>({indicators:{position:"static",paddingTop:24,[e.fn.smallerThan("sm")]:{display:"none"}}}),children:(0,o.FD)(c.Stack,{spacing:24,sx:{width:"100%",position:"relative",".arrow":{position:"absolute",top:"50%",transform:"translate(0, -50%)",border:"1px solid ".concat(D.colors.gray[1]),width:40,height:40,boxShadow:"0px 0px 1px 0px #0000000A,0px 2px 8px 0px #0000000A,0px 10px 16px 0px #0000000A","&.arrow-prev":{left:-64},"&.arrow-next":{right:-64}}},children:[(0,o.Y)(tC.A.Body,{children:(0,o.Y)(tS.A,{...p?{itemsPerGroup:y.length,GroupWrapper:e=>(0,o.Y)(tC.A.Slide,{children:(0,o.Y)(c.Stack,{spacing:16,children:e})})}:{itemsPerGroup:g?1:4,GroupWrapper:e=>(0,o.Y)(tC.A.Slide,{children:g?e:(0,o.Y)(c.Flex,{gap:24,wrap:"wrap",className:"slide-item","data-item":function(e){if(!e)return[];if((0,l.isValidElement)(e)){var t;return s().Children.toArray(null===(t=e.props)||void 0===t?void 0:t.children)}return s().Children.toArray(e)}(e).length,children:e})})},items:y.map((e,t)=>(0,o.Y)(RiskScreenerEmbedItem,{item:x?null:e,loading:x,className:T.embedItem,color:(null==e?void 0:e.bgColor)||i[Y[t%Y.length]]},String(t))),ItemWrapper:e=>(0,o.Y)(c.Box,{className:T.item,children:e})})}),(0,o.Y)(tC.A.Control,{className:"arrow arrow-prev",direction:"prev"}),(0,o.Y)(tC.A.Control,{className:"arrow arrow-next",direction:"next"})]})})})]})}):null};var aF=a("62hu"),aE=a("PDSQ"),aA=(0,c.createStyles)((e,t)=>{let{hasSectionHeader:a,backgroundImage:n}=t;return{root:{...n&&{backgroundImage:"url(".concat(n,")"),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}},pollCard:{width:"100%",flex:1,minWidth:0,...a&&{[e.fn.largerThan("sm")]:{maxWidth:648}}}}});let isValidPollViewData=e=>!!((null==e?void 0:e.id)&&Array.isArray(e.options)&&e.options.length>0),mapSessionPollToViewData=e=>{var t,a,n;return(null==e?void 0:e.pollId)&&(null===(t=e.options)||void 0===t?void 0:t.length)?{id:e.pollId,question:e.question||"",description:e.description||"",options:e.options.map(e=>{var t;return{id:String(null!==(t=e.id)&&void 0!==t?t:""),text:e.text||"",percentage:0}}),ui:{displayType:"flip-card"===e.style?"flip-card":"progress-bar",theme:e.theme||"blue",isMulti:!!e.allowMultipleAnswers,hideTotalCount:!!e.hideTotalCount,watermarkLogo:"string"==typeof e.watermarkLogo?e.watermarkLogo:"",ctaBtn:{label:(null===(a=e.ctaButton)||void 0===a?void 0:a.ctaButtonText)||"",link:(null===(n=e.ctaButton)||void 0===n?void 0:n.link)||""}},results:{total_votes:0}}:null},PollEmbed=e=>{let{data:t,spotlightId:a,applyH1:n,initialData:r,prefix:i,eventCategory:l,styles:s,className:d,classNames:m,...u}=e,{poll:g,title:p,description:h,wrapperProps:f,backgroundColor:v,backgroundImage:x,pollData:b}=t,{state:y}=(0,aE.U)(),{userInfo:C,isLoggedIn:S}=y||{},{locale:T}=(0,Y.$)(),k=(0,U.m)(),D=isValidPollViewData(r)&&r||isValidPollViewData(b)&&b||mapSessionPollToViewData(g),I=p||(null==f?void 0:f.title)||"",B=h||(null==f?void 0:f.description)||"",N="string"==typeof x?x.trim():"",{classes:F,cx:E,theme:A}=aA({hasSectionHeader:!!(I||B),backgroundImage:N},{name:"PollEmbed",styles:s,classNames:m}),R=v||(null==f?void 0:f.bgColor)||A.colors.neutral[0];return(null==g?void 0:g.pollId)?(0,o.Y)(w.TemplateProvider,{variant:w.CustomStylesType.LEADGEN,children:(0,o.Y)(tn.A,{className:E(F.root,d),title:I,description:B,bgColor:R,applyH1:n,defaultColor:A.colors.neutral[0],styles:{header:{display:"flex",flexDirection:"column",gap:4,[A.fn.largerThan("sm")]:{width:360,flexShrink:0,gap:8}},innerClass:{gap:24,[A.fn.largerThan("sm")]:{flexDirection:"row",gap:48,justifyContent:"space-between"}}},...u,children:(0,o.Y)(c.Box,{className:F.pollCard,children:(0,o.Y)(aF.default,{pollId:g.pollId,articleId:a,color:g.theme||"blue",currentUrl:k,userInfo:C,isLoggedIn:!!S,locale:T,initialData:D,prefix:i,eventCategory:l})})})}):null};var aR=(0,c.createStyles)(e=>({root:{backgroundColor:"#fff",boxShadow:e.shadows.sm,borderRadius:e.radius.lg,padding:16},content:{marginRight:-10},authorBox:{textAlign:"right","& > div":{display:"inline-block",verticalAlign:"middle"}},author:{color:"#8c8c8c"},divider:{display:"inline-block",width:12,height:1,backgroundColor:"#8c8c8c",marginRight:8}})),aL=a("bux9");let QuotationCard=e=>{let{message:t,name:a,className:n,classNames:r,styles:i,iconColor:l,...s}=e,{classes:d,cx:m}=aR(void 0,{name:"QuotationCard",styles:i,classNames:r}),u=(0,C.a)();return(0,o.FD)(c.Stack,{spacing:8,className:m(d.root,d.root),...s,children:[(0,o.Y)(aL.A,{size:40,color:l}),(0,o.Y)(c.Box,{className:d.content,children:(0,o.Y)(c.ScrollArea,{h:u?168:144,scrollbarSize:6,offsetScrollbars:!0,styles:{thumb:{backgroundColor:"#d9d9d9"}},children:(0,o.Y)(w.Text,{size:"p1",children:t})})}),(0,o.FD)(c.Box,{className:d.authorBox,children:[(0,o.Y)(c.Box,{className:d.divider}),(0,o.Y)(w.Text,{size:"p4",as:"div",className:d.author,children:a})]})]})};var aP=(0,c.createStyles)(()=>({root:{},innerClass:{}}));let Quotations=e=>{let{data:t=[],wrapperProps:a,className:n,classNames:r,styles:i,color:l,...s}=e,{theme:d}=aP(void 0,{name:"ServiceConnections__Quotations",styles:i,classNames:r}),m=(0,C.a)(),{title:u,description:g}=a;return t.length>0?(0,o.Y)(tn.A,{layout:"withIcon",...a,...s,bgColor:d.colors.neutral[0],styles:{header:{[d.fn.largerThan("sm")]:{...1===t.length&&(u||g)&&{width:456,flexShrink:0}}},innerClass:{[d.fn.largerThan("sm")]:{...1===t.length&&{flexDirection:"row",gap:32}}}},children:(0,o.Y)(e5.CL,{lengthToCarouselDesktop:2,showFullSlide:!m,percentOfEndSlideMobile:87,carouselSetting:{loop:!1,withIndicators:!1,...m&&{slideGap:0}},children:(0,o.Y)(e5.CL.Slider,{styles:{carouselViewport:{[d.fn.smallerThan("sm")]:{"&:before, &:after":{boxShadow:"none !important"}}},progressRoot:{[d.fn.smallerThan("sm")]:{marginTop:0}},sliderWrapper:{padding:"24px 10px 24px 5px",[d.fn.largerThan("sm")]:{padding:"24px 16px"}}},children:m?t.map((e,t)=>(0,o.Y)(QuotationCard,{iconColor:l,...e},t)):t.length>3?[...Array(Math.ceil(t.length/6))].map((e,a)=>(0,o.Y)(c.SimpleGrid,{spacing:24,cols:3,children:t.slice(6*a,6*a+6).map((e,t)=>(0,o.Y)(QuotationCard,{iconColor:l,...e},t))},a)):(0,o.Y)(c.Grid,{gutter:24,grow:!0,children:t.map((e,t)=>(0,o.Y)(c.Grid.Col,{span:4,children:(0,o.Y)(QuotationCard,{iconColor:l,...e})},t))})})})}):null};var aM=a("WV4P");let a_="yellow.8",az="complete.svg",aW={mobile:12,desktop:16},aH={mobile:2,desktop:4},aO=(0,c.keyframes)({from:{opacity:0},to:{opacity:1}}),aG=(0,c.keyframes)({from:{opacity:0,transform:"translateX(28px)"},to:{opacity:1,transform:"translateX(0)"}}),aV=(0,c.keyframes)({from:{opacity:0,transform:"translateX(-28px)"},to:{opacity:1,transform:"translateX(0)"}});var aj=(0,c.createStyles)(e=>({root:{},summary:{display:"flex",flexDirection:"column",gap:8,width:"100%"},summaryHeader:{display:"flex",alignItems:"center",justifyContent:"center",gap:8,flexWrap:"wrap",[e.fn.largerThan("md")]:{justifyContent:"flex-start"}},summaryScoreGroup:{display:"flex",alignItems:"center",gap:2},summaryStarIcon:{color:e.fn.themeColor(a_),flexShrink:0},breakdown:{display:"flex",flexDirection:"column",gap:0},breakdownRow:{display:"grid",gridTemplateColumns:"48px 1fr",alignItems:"center",gap:12,height:24,minHeight:24},breakdownLabel:{whiteSpace:"nowrap"},breakdownBarTrack:{height:4,borderRadius:999,backgroundColor:e.fn.rgba(e.colors.yellow[5],.15),overflow:"hidden"},breakdownBarFill:{height:"100%",borderRadius:999,backgroundColor:e.colors.yellow[5],transition:"width 200ms ease"},card:{padding:"16px 0",display:"flex",flexDirection:"column",gap:12,[e.fn.largerThan("sm")]:{gap:16,padding:"24px 0"}},cardHeader:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:16},authorInfo:{display:"flex",alignItems:"center",gap:8,minWidth:0,flex:1},authorAvatar:{width:40,height:40,flexShrink:0,borderRadius:"50%",overflow:"hidden",backgroundColor:e.white,display:"flex",alignItems:"center",justifyContent:"center",[e.fn.largerThan("sm")]:{width:48,height:48}},authorAvatarAnonymous:{backgroundColor:"transparent"},authorAvatarImg:{width:"100%",height:"100%",objectFit:"cover",display:"block"},authorAvatarImgAnonymous:{width:"125%",height:"125%",objectFit:"cover",maxWidth:"none",maxHeight:"none"},authorAvatarBadge:{width:"100%",height:"100%",padding:0,borderRadius:"50%",".mantine-Badge-inner":{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%"}},authorMeta:{display:"flex",flexDirection:"column",gap:0,minWidth:0,[e.fn.largerThan("sm")]:{gap:4}},authorDate:{color:e.colors.gray[5]},cardRating:{flexShrink:0,display:"flex",alignItems:"center","& > div":{gap:2},svg:{width:16,height:16}},reviewContent:{color:e.colors.gray[7]},reviewImages:{display:"flex",flexWrap:"nowrap",gap:8,width:"100%",[e.fn.largerThan("sm")]:{flexWrap:"wrap"}},reviewImageItem:{position:"relative",display:"block",width:72,height:72,flexShrink:0,padding:0,border:"none",borderRadius:e.radius.md,overflow:"hidden",cursor:"zoom-in",backgroundColor:e.colors.gray[1],[e.fn.largerThan("sm")]:{width:120,height:120},img:{width:"100%",height:"100%",objectFit:"cover",display:"block"}},reviewImageItemSingle:{width:120,height:120,[e.fn.largerThan("sm")]:{width:200,height:200}},reviewImageMore:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1},reviewImageLightboxInner:{padding:0,alignItems:"center",[e.fn.largerThan("sm")]:{padding:16}},reviewImageLightboxContent:{backgroundColor:"transparent",boxShadow:"none",width:"100%",maxWidth:"100vw",margin:0,borderRadius:0,[e.fn.largerThan("sm")]:{maxWidth:"min(1040px, 96vw)",borderRadius:e.radius.md}},reviewImageLightboxBody:{position:"relative",padding:0,backgroundColor:"transparent"},reviewImageLightboxClose:{position:"absolute",top:8,right:8,zIndex:2,width:40,height:40,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.45)",[e.fn.largerThan("sm")]:{top:12,right:12}},reviewImageLightboxMain:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",minWidth:"100%",minHeight:"min(72vh, 480px)",padding:"52px 8px 44px",[e.fn.largerThan("sm")]:{minWidth:"min(96vw, 1000px)",minHeight:"min(80vh, 680px)",padding:"56px 72px 48px"}},reviewImageLightboxImg:{maxWidth:"100%",maxHeight:"min(72vh, 480px)",width:"100%",height:"auto",objectFit:"contain",borderRadius:0,willChange:"opacity, transform",[e.fn.largerThan("sm")]:{maxWidth:"min(92vw, 960px)",maxHeight:"min(80vh, 680px)",width:"auto",borderRadius:e.radius.md}},reviewImageLightboxImgEnterNext:{animation:"".concat(aG," 280ms ease")},reviewImageLightboxImgEnterPrev:{animation:"".concat(aV," 280ms ease")},reviewImageLightboxNav:{position:"absolute",left:4,top:"50%",transform:"translateY(-50%)",zIndex:2,width:40,height:40,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.45)","&:disabled":{opacity:.35,cursor:"not-allowed"},[e.fn.largerThan("sm")]:{left:12,width:44,height:44}},reviewImageLightboxNavRight:{left:"auto",right:4,[e.fn.largerThan("sm")]:{left:"auto",right:12}},reviewImageLightboxCounter:{position:"absolute",left:"50%",bottom:12,transform:"translateX(-50%)",textAlign:"center"},reviewToolbar:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:16,marginBottom:0},filterTrigger:{display:"inline-flex",alignItems:"center",gap:4,color:e.colors.gray[6]},filterTriggerLabel:{color:e.colors.gray[6]},filterTriggerStars:{display:"flex",alignItems:"center","& > div":{gap:2},svg:{width:16,height:16}},filterTriggerIcon:{flexShrink:0,color:e.colors.gray[6]},filterDropdown:{padding:8,border:"1px solid ".concat(e.colors.gray[2])},filterDropdownItem:{display:"flex",alignItems:"center",width:"100%",padding:"10px 12px",borderRadius:e.radius.md,transition:"background-color 150ms ease","&:hover":{backgroundColor:e.colors.gray[0]}},filterDropdownItemActive:{backgroundColor:e.colors.gray[1]},filterDropdownStars:{display:"flex",alignItems:"center","& > div":{gap:2},svg:{width:16,height:16}},loadMore:{display:"flex",justifyContent:"center",marginTop:16,[e.fn.largerThan("sm")]:{justifyContent:"flex-start",marginTop:24}},reviewListSection:{display:"flex",flexDirection:"column",gap:0,marginBottom:24,[e.fn.largerThan("sm")]:{marginBottom:0}},reviewListWrap:{position:"relative"},reviewList:{width:"100%"},reviewListViewport:{paddingRight:0},reviewListViewportScrollable:{paddingRight:16},reviewListFade:{position:"absolute",left:0,right:0,height:16,pointerEvents:"none",zIndex:1,opacity:0,transition:"opacity 150ms ease"},reviewListFadeTop:{top:0},reviewListFadeBottom:{bottom:0},reviewListFadeVisible:{opacity:1},reviewListItem:{borderBottom:"1px solid ".concat(e.colors.gray[2]),"&:last-child":{borderBottom:"none"}},reviewListEmpty:{width:"100%",padding:"32px 16px"},reviewListEmptyImage:{width:"100%",maxWidth:280,[e.fn.largerThan("md")]:{maxWidth:400}},submitPlaceholder:{marginTop:24,padding:24,borderRadius:e.radius.lg,border:"1px dashed ".concat(e.colors.gray[4]),textAlign:"center",color:e.colors.gray[6]},submitForm:{display:"flex",flexDirection:"column",gap:16,width:"100%"},submitRatingStars:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%","& > div":{width:"100%",alignItems:"center"},"& .error-text":{textAlign:"center",width:"100%"},[e.fn.largerThan("md")]:{alignItems:"flex-start","& > div":{position:"relative",width:"fit-content",alignItems:"flex-start"},"& .error-text":{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)",marginTop:0,marginLeft:16,width:"max-content",textAlign:"left",whiteSpace:"nowrap"}}},submitFormBody:{display:"flex",flexDirection:"column",gap:12,width:"100%"},submitApiError:{width:"100%",textAlign:"left"},submitInputRow:{display:"flex",alignItems:"flex-start",gap:8},submitInputColumn:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:12},submitInputWrap:{flex:1,position:"relative",display:"flex",alignItems:"center",border:"1px solid #d9d9d9",borderRadius:e.radius.md,backgroundColor:e.white,minHeight:48},submitInput:{flex:1,width:"100%",border:"none",outline:"none",padding:"12px 88px 12px 16px",fontSize:14,fontFamily:e.fontFamily,backgroundColor:"transparent","&::placeholder":{color:e.colors.gray[5]},"&:disabled":{cursor:"not-allowed",opacity:.7}},submitInputIcons:{position:"absolute",right:8,display:"flex",alignItems:"center",gap:4},submitIconBtn:{display:"flex",alignItems:"center",justifyContent:"center",padding:4,borderRadius:e.radius.sm,color:"#8c8c8c","&:hover":{backgroundColor:e.colors.gray[0]}},submitIconBtnPicture:{position:"relative"},submitIconBtnWrapper:{position:"relative",display:"flex",alignItems:"center"},hiddenFileInput:{display:"none"},submitIconBtnActive:{color:e.colors.blue[6],backgroundColor:e.colors.blue[0]},submitIconBtnDisabled:{opacity:.5,cursor:"not-allowed"},submitIconBadge:{position:"absolute",top:0,right:0,minWidth:16,height:16,padding:"0 4px",borderRadius:999,backgroundColor:e.colors.blue[6],color:e.white,fontSize:10,fontWeight:600,lineHeight:"16px",textAlign:"center",transform:"translate(25%, -25%)"},attachedImagesSection:{display:"flex",flexDirection:"column",gap:8,padding:"8px 12px",borderRadius:e.radius.md,backgroundColor:e.colors.blue[0]},attachedImagesLabel:{color:e.colors.blue[7],fontWeight:600},attachedImagesList:{display:"flex",flexWrap:"wrap",gap:8},attachedImageItem:{position:"relative",width:72,height:72,borderRadius:e.radius.md,overflow:"hidden",img:{width:"100%",height:"100%",objectFit:"cover",display:"block"}},attachedImageRemove:{position:"absolute",top:4,right:4,width:20,height:20,borderRadius:"50%",backgroundColor:"rgba(0, 0, 0, 0.55)",display:"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.75)"}},submitSendBtn:{display:"none",flexShrink:0,width:48,minWidth:48,height:48,padding:0,borderRadius:e.radius.md,backgroundColor:e.colors.blue[6],alignItems:"center",justifyContent:"center",border:"none",cursor:"pointer",[e.fn.largerThan("md")]:{display:"flex"},"&:hover":{backgroundColor:e.colors.blue[7]},"&:disabled, &[data-loading]":{opacity:.6,cursor:"not-allowed"},"& .mantine-Button-leftIcon":{margin:0},"& .mantine-Button-label":{display:"none"}},submitBtnMobile:{width:"100%",[e.fn.largerThan("md")]:{display:"none"}},submitFooter:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,width:"100%",[e.fn.largerThan("md")]:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:16}},submitAnonymous:{flexShrink:0},submitDisclaimer:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:4,color:e.colors.gray[6],flexShrink:0,textAlign:"left",[e.fn.largerThan("md")]:{marginLeft:"auto"}},emojiPickerDropdown:{padding:8,borderRadius:e.radius.md,border:"1px solid ".concat(e.colors.gray[2]),boxShadow:e.shadows.md},emojiPickerGrid:{display:"grid",gridTemplateColumns:"repeat(8, 32px)",gap:4,maxHeight:220,overflowY:"auto"},emojiPickerItem:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:e.radius.sm,fontSize:22,lineHeight:1,cursor:"pointer","&:hover":{backgroundColor:e.colors.gray[1]}},actionPanel:{position:"relative",display:"flex",flexDirection:"column",gap:16,padding:16,borderRadius:12,backgroundColor:e.white,[e.fn.largerThan("md")]:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:80,padding:24,borderRadius:e.radius.lg}},actionPanelLogin:{["& .".concat((0,c.getStylesRef)("actionPanelMain"))]:{order:1},["& .".concat((0,c.getStylesRef)("actionPanelSummary"))]:{order:2}},actionPanelSuccess:{minHeight:"var(--rating-success-min-height, auto)",overflow:"hidden",transition:"min-height 200ms ease",[e.fn.largerThan("md")]:{minHeight:"auto"}},actionPanelMain:{ref:(0,c.getStylesRef)("actionPanelMain"),flex:1,minWidth:0,width:"100%",order:2,[e.fn.largerThan("md")]:{order:1}},actionPanelMainOnSuccess:{display:"flex",alignItems:"center",justifyContent:"center",[e.fn.largerThan("md")]:{alignItems:"stretch",justifyContent:"flex-start"}},actionPanelSummary:{ref:(0,c.getStylesRef)("actionPanelSummary"),width:"100%",flexShrink:0,order:1,[e.fn.largerThan("md")]:{order:2,width:246,maxWidth:246}},actionPanelSummaryOnSuccess:{display:"none",[e.fn.largerThan("md")]:{display:"block"}},successTransitionWrap:{width:"100%",willChange:"opacity"},loginCardMain:{display:"flex",flex:1,flexDirection:"column",alignItems:"center",gap:16,width:"100%",minWidth:0,[e.fn.largerThan("md")]:{flexDirection:"row",alignItems:"center",gap:40}},loginCardImage:{width:"auto",height:180,maxWidth:"100%",objectFit:"contain",flexShrink:0,marginTop:-10,marginBottom:-10,[e.fn.largerThan("md")]:{margin:-20}},loginCardContent:{display:"flex",flexDirection:"column",alignItems:"stretch",gap:16,width:"100%",minWidth:0,textAlign:"left",[e.fn.largerThan("md")]:{alignItems:"flex-start"}},loginCardButton:{width:"100%",[e.fn.largerThan("md")]:{width:"auto"}},successMain:{display:"flex",flex:1,flexDirection:"column",alignItems:"center",gap:16,width:"100%",minWidth:0,[e.fn.largerThan("md")]:{flexDirection:"row",alignItems:"center",gap:40}},successImage:{width:120,height:120,objectFit:"contain",flexShrink:0,animation:"".concat(aO," 220ms ease")},successContent:{display:"flex",flexDirection:"column",alignItems:"center",gap:8,width:"100%",minWidth:0,textAlign:"center",animation:"".concat(aO," 220ms ease 40ms both"),[e.fn.largerThan("md")]:{alignItems:"flex-start",textAlign:"left"}},successOkButton:{marginTop:8,width:"100%",alignSelf:"stretch",[e.fn.largerThan("md")]:{width:"auto",minWidth:140,alignSelf:"flex-start"}}}));let RatingReviewLoginPrompt=()=>{let{classes:e}=aj(void 0,{name:"RatingReview"}),{formatMessage:t}=(0,k.A)();return(0,o.FD)("div",{className:e.loginCardMain,children:[(0,o.Y)("img",{loading:"lazy",className:e.loginCardImage,src:d.C.getAssetPath("userReview/empty-state.png"),alt:""}),(0,o.FD)("div",{className:e.loginCardContent,children:[(0,o.Y)(w.Text,{size:"p3",color:"gray.6",children:t({id:"rateReview.introContent",defaultMessage:"Please log in to share your feedback and help us improve consultation quality. Your review will be linked to your consultation session for verification purposes."})}),(0,o.Y)(w.Button,{size:"md",className:e.loginCardButton,onClick:()=>{(0,tF.YA)()},children:t({id:"rateReview.loginBtn",defaultMessage:"Login to leave a review"})})]})]})};var aU=a("1Hbx"),aK=a("jQiJ");let aq=[5,4,3,2,1],RatingFilter=e=>{let{totalReviews:t,activeRating:a,onChange:n}=e,{classes:r,cx:i,theme:l}=aj(void 0,{name:"RatingReview"}),{formatMessage:s}=(0,k.A)(),[d,{close:m,open:u,toggle:g}]=(0,ed.j)(!1),p=l.fn.themeColor(a_),h=s({id:"common.all",defaultMessage:"All"}),handleSelect=e=>{n(e),m()},getFilterTrackingProps=e=>({"data-event-category":"Service Connection","data-event-action":"Rating & Review section - Filter","data-event-label":0===e?h:String(e)});return(0,o.FD)("div",{className:r.reviewToolbar,children:[(0,o.Y)(w.Text,{size:"h6",weight:"bold",color:"indigo.8",children:s({id:"rateReview.totalReview",defaultMessage:"{number} reviews"},{number:t})}),(0,o.FD)(c.Popover,{opened:d,onChange:e=>e?u():m(),position:"bottom-end",width:200,shadow:"md",radius:"md",withinPortal:!0,children:[(0,o.Y)(c.Popover.Target,{children:(0,o.FD)(c.UnstyledButton,{className:r.filterTrigger,onClick:g,"aria-label":h,children:[0===a?(0,o.Y)(w.Text,{size:"p3",weight:"semiBold",className:r.filterTriggerLabel,children:h}):(0,o.Y)("div",{className:r.filterTriggerStars,children:(0,o.Y)(e4.v,{value:a,readOnly:!0,hideEmptyStars:!0,icon:aK.A,filledColor:p})}),(0,o.Y)(aU.A,{size:16,className:r.filterTriggerIcon})]})}),(0,o.FD)(c.Popover.Dropdown,{className:r.filterDropdown,children:[(0,o.Y)(c.UnstyledButton,{className:i(r.filterDropdownItem,{[r.filterDropdownItemActive]:0===a}),onClick:()=>handleSelect(0),...getFilterTrackingProps(0),children:(0,o.Y)(w.Text,{size:"p3",children:h})}),aq.map(e=>(0,o.Y)(c.UnstyledButton,{className:i(r.filterDropdownItem,{[r.filterDropdownItemActive]:a===e}),onClick:()=>handleSelect(e),...getFilterTrackingProps(e),children:(0,o.Y)("div",{className:r.filterDropdownStars,children:(0,o.Y)(e4.v,{value:e,readOnly:!0,hideEmptyStars:!0,icon:aK.A,filledColor:p})})},e))]})]})]})},aQ=[5,4,3,2,1],getBarPercent=(e,t)=>t?Math.min(100,e/t*100):0,RatingSummary=e=>{let{averageScore:t,totalReviews:a,breakdown:n,className:r}=e,{classes:i,cx:l,theme:s}=aj(void 0,{name:"RatingReview"}),{formatMessage:d}=(0,k.A)();return(0,o.FD)("div",{className:l(i.summary,r),children:[(0,o.FD)("div",{className:i.summaryHeader,children:[(0,o.FD)("div",{className:i.summaryScoreGroup,children:[(0,o.Y)(aK.A,{isSolid:!0,color:s.fn.themeColor(a_),size:16,className:i.summaryStarIcon}),(0,o.FD)("span",{children:[(0,o.Y)(w.Text,{size:"c1",weight:"semiBold",as:"span",children:t.toFixed(1)}),(0,o.Y)(w.Text,{size:"c1",as:"span",children:"/5"})]})]}),(0,o.FD)(w.Text,{size:"c1",variant:"tertiary",children:["(",d({id:"rateReview.totalReview",defaultMessage:"{number} reviews"},{number:a}),")"]})]}),(0,o.Y)("div",{className:i.breakdown,children:aQ.map(e=>{let t=n[e],r=getBarPercent(t,a);return(0,o.FD)("div",{className:i.breakdownRow,children:[(0,o.Y)(w.Text,{size:"p3",color:"gray.6",className:i.breakdownLabel,children:d({id:"rateReview.numberStar",defaultMessage:"{number} sao"},{number:e})}),(0,o.Y)("div",{className:i.breakdownBarTrack,children:(0,o.Y)("div",{className:i.breakdownBarFill,style:{width:"".concat(r,"%")}})})]},e)})})]})};var aX=a("Jvqx"),aJ=a("5wjV"),aZ=a("HhV7"),a$=a("XWlF"),a0=a("Nels"),a1=a("le9Y");let ReviewImages=e=>{let{images:t,alt:a=""}=e,{classes:n,cx:r}=aj(void 0,{name:"RatingReview"}),[i,s]=(0,l.useState)(null);if(!t.length)return null;let d=1===t.length,m=t.slice(0,4),u=t.length-4;return(0,o.FD)(o.FK,{children:[(0,o.Y)(c.Box,{className:n.reviewImages,children:m.map((e,i)=>{let l=3===i&&u>0;return(0,o.FD)(c.UnstyledButton,{type:"button",className:r(n.reviewImageItem,d&&n.reviewImageItemSingle),onClick:()=>s(i),"aria-label":l?"View all ".concat(t.length," images"):"View image",children:[(0,o.Y)("img",{src:e,alt:a,loading:"lazy"}),l?(0,o.Y)(c.Box,{className:n.reviewImageMore,children:(0,o.FD)(w.Text,{size:"h5",color:"white",fw:600,children:["+",u]})}):null]},"".concat(e,"-").concat(i))})}),(0,o.Y)(ReviewImageLightbox,{images:t,activeIndex:null!=i?i:0,opened:null!==i,alt:a,onClose:()=>s(null),onChangeIndex:s})]})},ReviewImageLightbox=e=>{let{images:t,activeIndex:a,opened:n,alt:r="",onClose:i,onChangeIndex:s}=e,{classes:d,cx:m,theme:u}=aj(void 0,{name:"RatingReview"}),[g,p]=(0,l.useState)("next"),h=a>0,f=a{e===a||e<0||e>=t.length||(p(e>a?"next":"prev"),s(e))};return(0,l.useEffect)(()=>{if(!n)return;let handleKeyDown=e=>{"ArrowLeft"===e.key&&h&&(p("prev"),s(a-1)),"ArrowRight"===e.key&&f&&(p("next"),s(a+1))};return window.addEventListener("keydown",handleKeyDown),()=>window.removeEventListener("keydown",handleKeyDown)},[n,a,h,f,s]),(0,o.FD)(c.Modal,{opened:n,onClose:i,centered:!0,size:"100%",padding:0,withCloseButton:!1,classNames:{inner:d.reviewImageLightboxInner,content:d.reviewImageLightboxContent,body:d.reviewImageLightboxBody},overlayProps:{opacity:.85,color:"#000"},zIndex:1e3,children:[(0,o.Y)(c.UnstyledButton,{type:"button",className:d.reviewImageLightboxClose,onClick:i,"aria-label":"Close",children:(0,o.Y)(M.A,{size:24,color:u.white})}),(0,o.FD)(c.Box,{className:d.reviewImageLightboxMain,children:[t.length>1?(0,o.Y)(c.UnstyledButton,{type:"button",className:d.reviewImageLightboxNav,disabled:!h,onClick:()=>goToIndex(a-1),"aria-label":"Previous image",children:(0,o.Y)(a0.A,{size:24,color:u.white})}):null,v?(0,o.Y)("img",{src:v,alt:r,loading:"lazy",className:m(d.reviewImageLightboxImg,"next"===g?d.reviewImageLightboxImgEnterNext:d.reviewImageLightboxImgEnterPrev)},a):null,t.length>1?(0,o.Y)(c.UnstyledButton,{type:"button",className:m(d.reviewImageLightboxNav,d.reviewImageLightboxNavRight),disabled:!f,onClick:()=>goToIndex(a+1),"aria-label":"Next image",children:(0,o.Y)(a1.A,{size:24,color:u.white})}):null]}),t.length>1?(0,o.FD)(w.Text,{size:"c1",color:"white",className:d.reviewImageLightboxCounter,children:[a+1,"/",t.length]}):null]})},a2=d.C.getAssetPath("userReview/anomyous.svg"),a4=[{bg:"#E8F4FD",color:"#0066CC"},{bg:"#FEF3E8",color:"#E67E22"},{bg:"#F0E8FE",color:"#7B61FF"}],getRelativeReviewDate=(e,t)=>{let a=(0,aX.A)(e,"yyyy-MM-dd HH:mm:ss",new Date);return(0,aJ.A)(a)?(0,aZ.A)(a,{addSuffix:!0,locale:t}):e},ReviewCard=e=>{let{rating:t,content:a,images:n,createdAt:r,anonymous:i,author:l,index:s}=e,{classes:d,cx:m,theme:g}=aj(void 0,{name:"RatingReview"}),{locale:p}=(0,a$.j)(),{formatMessage:h}=(0,k.A)(),f=(0,C.a)(),v=a4[s%a4.length],x=r?getRelativeReviewDate(r,p):"",b=i?h({id:"cardPost.anonymous",defaultMessage:"Anonymous"}):l.name,y=a?u()(a):"",S=i?a2:l.avatar;return(0,o.FD)("div",{className:d.card,children:[(0,o.FD)("div",{className:d.cardHeader,children:[(0,o.FD)("div",{className:d.authorInfo,children:[(0,o.Y)("div",{className:m(d.authorAvatar,i&&d.authorAvatarAnonymous),children:S?(0,o.Y)("img",{loading:"lazy",alt:b,src:S,className:m(d.authorAvatarImg,i&&d.authorAvatarImgAnonymous)}):(0,o.Y)(c.Badge,{bg:v.bg,className:d.authorAvatarBadge,children:(0,o.Y)(w.Text,{size:"s4",fw:500,color:v.color,children:(null==b?void 0:b.charAt(0))||"?"})})}),(0,o.FD)("div",{className:d.authorMeta,children:[(0,o.Y)(w.Text,{size:f?"p3":"title2",weight:"semiBold",lineClamp:1,children:b}),x?(0,o.Y)(w.Text,{size:"c1",className:d.authorDate,lineClamp:1,children:x}):null]})]}),t>0?(0,o.Y)("div",{className:d.cardRating,children:(0,o.Y)(e4.v,{hideEmptyStars:!0,size:f?aW.mobile:aW.desktop,gap:f?aH.mobile:aH.desktop,value:t,readOnly:!0,icon:aK.A,filledColor:g.fn.themeColor(a_)})}):null]}),y?(0,o.Y)(w.Text,{size:f?"p2":"p3",className:d.reviewContent,children:y}):null,(0,o.Y)(ReviewImages,{images:n,alt:b})]})};var a8=a("o3hv"),a3=a("TD78"),a6=a("oguI"),a5=a("ZFu2"),a9=a("69Ac"),a7=a("c+kX");let ne=["\uD83D\uDE00","\uD83D\uDE03","\uD83D\uDE04","\uD83D\uDE01","\uD83D\uDE06","\uD83E\uDD79","\uD83D\uDE02","\uD83E\uDD23","\uD83D\uDE0A","\uD83D\uDE07","\uD83D\uDE42","\uD83D\uDE09","\uD83D\uDE0D","\uD83E\uDD70","\uD83D\uDE18","\uD83D\uDE17","\uD83E\uDD17","\uD83E\uDD29","\uD83E\uDD14","\uD83E\uDD28","\uD83D\uDE10","\uD83D\uDE11","\uD83D\uDE36","\uD83D\uDE44","\uD83D\uDE0F","\uD83D\uDE23","\uD83D\uDE25","\uD83D\uDE2E","\uD83E\uDD10","\uD83D\uDE2F","\uD83D\uDE2A","\uD83D\uDE2B","\uD83E\uDD71","\uD83D\uDE34","\uD83D\uDE0C","\uD83D\uDE1B","\uD83D\uDE1C","\uD83D\uDE1D","\uD83E\uDD24","\uD83D\uDE12","\uD83D\uDE13","\uD83D\uDE14","\uD83D\uDE15","\uD83D\uDE43","\uD83E\uDEE0","\uD83E\uDD11","\uD83D\uDE32","☹️","\uD83D\uDE41","\uD83D\uDE16","\uD83D\uDE1E","\uD83D\uDE1F","\uD83D\uDE24","\uD83D\uDE22","\uD83D\uDE2D","\uD83D\uDE26","\uD83D\uDE27","\uD83D\uDE28","\uD83D\uDE29","\uD83E\uDD2F","\uD83D\uDE2C","\uD83D\uDE30","\uD83D\uDE31","\uD83E\uDD75","\uD83E\uDD76","\uD83D\uDE33","\uD83E\uDD2A","\uD83D\uDE35","\uD83D\uDE21","\uD83D\uDE20","\uD83E\uDD2C","\uD83D\uDE37","\uD83E\uDD12","\uD83E\uDD15","\uD83E\uDD22","\uD83E\uDD2E","\uD83E\uDD27","\uD83E\uDD73","\uD83E\uDD78","\uD83D\uDE0E","\uD83E\uDD13","\uD83E\uDDD0","\uD83D\uDC4D","\uD83D\uDC4E","\uD83D\uDC4F","\uD83D\uDE4C","\uD83E\uDD1D","\uD83D\uDCAA","❤️","\uD83E\uDDE1","\uD83D\uDC9B","\uD83D\uDC9A","\uD83D\uDC99","\uD83D\uDC9C","\uD83D\uDDA4","\uD83E\uDD0D","\uD83D\uDC94","\uD83D\uDCAF","✨","\uD83D\uDD25"],EmojiPickerButton=e=>{let{onEmojiSelect:t,ariaLabel:a}=e,{classes:n}=aj(void 0,{name:"RatingReview"}),[r,i]=(0,l.useState)(!1),handleEmojiClick=e=>{t(e),i(!1)};return(0,o.FD)(c.Popover,{opened:r,onChange:i,position:"top-end",withinPortal:!0,trapFocus:!1,returnFocus:!1,closeOnEscape:!0,children:[(0,o.Y)(c.Popover.Target,{children:(0,o.Y)(c.UnstyledButton,{type:"button",className:n.submitIconBtn,"aria-label":a,"aria-expanded":r,onMouseDown:e=>{e.preventDefault()},onClick:()=>i(e=>!e),children:(0,o.Y)(a7.A,{size:24,color:"#8c8c8c"})})}),(0,o.Y)(c.Popover.Dropdown,{className:n.emojiPickerDropdown,onMouseDown:e=>{e.preventDefault()},children:(0,o.Y)("div",{className:n.emojiPickerGrid,children:ne.map((e,t)=>(0,o.Y)(c.UnstyledButton,{type:"button",className:n.emojiPickerItem,onClick:()=>handleEmojiClick(e),"aria-label":e,children:e},"".concat(e,"-").concat(t)))})})]})};var nt=a("//ps");let ImageAttachmentButton=e=>{let{count:t,maxImages:a=5,onSelectFiles:n}=e,{classes:r,cx:i}=aj(void 0,{name:"RatingReview"}),{formatMessage:s}=(0,k.A)(),d=(0,l.useRef)(null),m=t>0;return(0,o.FD)(c.Box,{className:r.submitIconBtnWrapper,children:[(0,o.Y)("input",{ref:d,type:"file",accept:"image/*",multiple:!0,className:r.hiddenFileInput,tabIndex:-1,"aria-hidden":!0,onChange:e=>{let t=Array.from(e.target.files||[]);if(!t.length)return;let a=t.filter(e=>e.type.startsWith("image/"));if(!a.length){e.target.value="";return}n(a),e.target.value=""}}),(0,o.FD)(c.UnstyledButton,{type:"button",className:i(r.submitIconBtn,r.submitIconBtnPicture,{[r.submitIconBtnActive]:m,[r.submitIconBtnDisabled]:t>a}),"aria-label":s({id:"carePath.ratingReview.addImage",defaultMessage:"Add image"}),onClick:()=>{var e;null===(e=d.current)||void 0===e||e.click()},children:[(0,o.Y)(nt.A,{size:24,color:"#8c8c8c"}),m?(0,o.Y)(c.Box,{className:r.submitIconBadge,children:t}):null]})]})},AttachedImagesPreview=e=>{let{images:t,onRemove:a}=e,{classes:n}=aj(void 0,{name:"RatingReview"}),{formatMessage:r}=(0,k.A)();return t.length?(0,o.FD)(c.Box,{className:n.attachedImagesSection,children:[(0,o.Y)(w.Text,{size:"c1",className:n.attachedImagesLabel,children:r({id:"common.countAttachedUpload",defaultMessage:"{count, plural, one {# photo attached} other {# photos attached}}"},{count:t.length})}),(0,o.Y)(c.Box,{className:n.attachedImagesList,children:t.map(e=>(0,o.FD)(c.Box,{className:n.attachedImageItem,children:[(0,o.Y)("img",{src:e.previewUrl,alt:"",loading:"lazy"}),(0,o.Y)(c.UnstyledButton,{type:"button",className:n.attachedImageRemove,"aria-label":r({id:"carePath.ratingReview.removeImage",defaultMessage:"Remove image"}),onClick:()=>a(e.id),children:(0,o.Y)(M.A,{size:12,color:"#fff"})})]},e.id))})]}):null},na={1:"carePath.ratingReview.ratingTitle.worse",2:"carePath.ratingReview.ratingTitle.bad",3:"carePath.ratingReview.ratingTitle.meh",4:"carePath.ratingReview.ratingTitle.good",5:"carePath.ratingReview.ratingTitle.excellent"},nn={1:"Worse",2:"Bad",3:"Meh",4:"Good",5:"Excellent"},RatingReviewSubmitForm=e=>{let{collectionId:t,isLoading:a=!1,onSubmitted:n}=e,{classes:r,theme:i}=aj(void 0,{name:"RatingReview"}),{formatMessage:s}=(0,k.A)(),{state:{isLoggedIn:d,userInfo:m}}=(0,l.useContext)(ti.B),[u,g]=(0,l.useState)(!1),[p,h]=(0,l.useState)(null),f=a||u,[v,x]=(0,l.useState)([]),b=(0,l.useRef)(null),y=(0,l.useRef)(v),C=v.length>5;y.current=v,(0,l.useEffect)(()=>()=>{y.current.forEach(e=>{URL.revokeObjectURL(e.previewUrl)})},[]);let S=s({id:"notification.comment.somethingWrong",defaultMessage:"Something went wrong!"}),isSubmitSuccess=e=>!!e&&"object"==typeof e&&(1===e._status||1===e.status),T=(0,a6.m)({initialValues:{rating:0,content:"",isAnonymous:!1},validate:{rating:e=>e>0?null:s({id:"common.error.requireSelectRating",defaultMessage:"Please select a rating"}),content:(0,a5.h)(s({id:"common.error.requireEnterComment",defaultMessage:"Please enter your comment"}))}});if(!d)return null;let getRatingTitle=e=>{let t=na[e];return t?s({id:t,defaultMessage:nn[e]}):""},clearAttachedImages=()=>{x(e=>(e.forEach(e=>URL.revokeObjectURL(e.previewUrl)),[]))},handleSubmit=async e=>{if(t&&!C){h(null),g(!0);try{let a=v.length?await (0,aM.Uq)(v.map(e=>e.file)):[];if(v.length&&a.length!==v.length){h(S);return}let r=await (0,aM.qc)({collection_id:t,rating:e.rating,title:getRatingTitle(e.rating),content:(0,a9.jt)(e.content),is_anonymous:e.isAnonymous?1:0,...(null==m?void 0:m.avatar)?{avatar:m.avatar}:{},...a.length?{images:a}:{}});if(!isSubmitSuccess(r)){h(S);return}T.reset(),clearAttachedImages(),h(null),null==n||n()}catch(e){h(S)}finally{g(!1)}}},D=s({id:"rateReview.submitBtn",defaultMessage:"Submit"}),Y={"data-event-category":"Service Connection","data-event-action":"Rating & Review section - Submit","data-event-label":"Rating - ".concat(T.values.rating)};return(0,o.FD)(c.Box,{component:"form",className:r.submitForm,onSubmit:T.onSubmit(handleSubmit),children:[(0,o.Y)(c.Box,{className:r.submitRatingStars,children:(0,o.Y)(e4.w,{size:40,gap:8,value:T.values.rating,hideFeedback:!0,onChange:e=>{h(null),T.setFieldValue("rating",e)},icon:aK.A,filledColor:i.fn.themeColor(a_),emptyColor:"#bdbfbf",error:"string"==typeof T.errors.rating?T.errors.rating:void 0})}),(0,o.FD)(c.Box,{className:r.submitFormBody,children:[(0,o.FD)(c.Box,{className:r.submitInputRow,children:[(0,o.FD)(c.Box,{className:r.submitInputColumn,children:[(0,o.FD)(c.Box,{className:r.submitInputWrap,children:[(0,o.Y)("input",{ref:b,type:"text",className:r.submitInput,placeholder:s({id:"rateReview.contentPlaceholder",defaultMessage:"Viết đ\xe1nh gi\xe1"}),value:T.values.content,onChange:e=>{h(null),T.setFieldValue("content",e.currentTarget.value)},onBlur:T.getInputProps("content").onBlur,disabled:f}),(0,o.FD)(c.Box,{className:r.submitInputIcons,children:[(0,o.Y)(ImageAttachmentButton,{count:v.length,onSelectFiles:e=>{x(t=>[...t,...e.map(e=>({id:"".concat(e.name,"-").concat(e.lastModified,"-").concat(e.size,"-").concat(Math.random().toString(36).slice(2,8)),file:e,previewUrl:URL.createObjectURL(e)}))])}}),(0,o.Y)(EmojiPickerButton,{ariaLabel:s({id:"carePath.ratingReview.addEmoji",defaultMessage:"Add emoji"}),onEmojiSelect:e=>{let t=b.current,a=T.values.content;if(t){var n,r;let o=null!==(n=t.selectionStart)&&void 0!==n?n:a.length,i=null!==(r=t.selectionEnd)&&void 0!==r?r:a.length,l="".concat(a.slice(0,o)).concat(e).concat(a.slice(i));T.setFieldValue("content",l);let s=o+e.length;requestAnimationFrame(()=>{t.focus(),t.setSelectionRange(s,s)});return}T.setFieldValue("content","".concat(a).concat(e))}})]})]}),C?(0,o.Y)(w.Text,{size:"c1",variant:"error",children:s({id:"common.error.limitImageUpload",defaultMessage:"Maximum {number} images allow"},{number:5})}):null,(0,o.Y)(AttachedImagesPreview,{images:v,onRemove:e=>{x(t=>{let a=t.find(t=>t.id===e);return a&&URL.revokeObjectURL(a.previewUrl),t.filter(t=>t.id!==e)})}}),"string"==typeof T.errors.content&&(0,o.Y)(w.Text,{size:"c1",color:"red",children:T.errors.content})]}),(0,o.Y)(w.Button,{type:"submit",size:"md",className:r.submitSendBtn,loading:f,disabled:C,"aria-label":D,leftIcon:(0,o.Y)(a8.A,{size:24,color:i.white}),...Y})]}),(0,o.FD)(c.Box,{className:r.submitFooter,children:[(0,o.Y)(w.Checkbox,{className:r.submitAnonymous,label:s({id:"rateReview.anomyousReview",defaultMessage:"Anonymous review"}),checked:T.values.isAnonymous,onChange:e=>T.setFieldValue("isAnonymous",e.currentTarget.checked),styles:{body:{alignItems:"center"}}}),(0,o.FD)(c.Box,{className:r.submitDisclaimer,children:[(0,o.Y)(a3.A,{isSolid:!0,size:12,color:i.fn.themeColor(a_)}),(0,o.Y)(w.Text,{size:"c1",children:s({id:"rateReview.reviewNote",defaultMessage:"Please avoid sharing personal medical records."})})]})]}),(0,o.Y)(w.Button,{type:"submit",size:"md",className:r.submitBtnMobile,loading:f,disabled:C,...Y,children:D}),p?(0,o.Y)(w.Text,{size:"c1",color:"red",className:r.submitApiError,children:p}):null]})]})},RatingReviewSuccessBanner=e=>{let{onClose:t}=e,{classes:a}=aj(void 0,{name:"RatingReview"}),{formatMessage:n}=(0,k.A)();return(0,o.FD)("div",{className:a.successMain,children:[(0,o.Y)("img",{loading:"eager",className:a.successImage,src:d.C.getAssetPath(az),alt:""}),(0,o.FD)("div",{className:a.successContent,children:[(0,o.Y)(w.Text,{size:"h5",weight:"bold",variant:"primary",children:n({id:"rateReview.thankMess.title",defaultMessage:"Thank you for sharing your experience!"})}),(0,o.Y)(w.Text,{size:"p3",color:"gray.6",children:n({id:"rateReview.thankMess.content",defaultMessage:"Your feedback helps us provide better healthcare support and improve the consultation experience for future users."})}),(0,o.Y)(w.Button,{size:"md",className:a.successOkButton,onClick:t,children:n({id:"rateReview.thankMess.button",defaultMessage:"OK"})})]})]})},nr={1:0,2:0,3:0,4:0,5:0},no={in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},RatingReview=e=>{var t,a,n,r,i,s,m;let{showAverage:u,averageScore:g,totalReviews:p,ratingBreakdown:h,collectionId:f,reviewsData:v,initialData:x,styles:b,className:y,classNames:S,wrapperProps:T,backgroundColor:D,applyH1:Y}=e,I=null!=x?x:v,{classes:B,cx:N,theme:F}=aj(void 0,{name:"RatingReview",styles:b,classNames:S}),E=(null==T?void 0:T.bgColor)||D||F.colors.neutral[0],{formatMessage:A}=(0,k.A)(),{state:{isLoggedIn:R}}=(0,l.useContext)(ti.B),L=(0,C.a)(),[P,M]=(0,l.useState)((null==I?void 0:I.reviews)||[]),[_,z]=(0,l.useState)((null==I?void 0:I.ratingBreakdown)||h||nr),[W,H]=(0,l.useState)(null!==(m=null==I?void 0:I.averageScore)&&void 0!==m?m:g),[O,G]=(0,l.useState)((null==I?void 0:I.total)||(null==I?void 0:null===(t=I.pagination)||void 0===t?void 0:t.total)||p||(null==I?void 0:null===(a=I.reviews)||void 0===a?void 0:a.length)||0),[V,j]=(0,l.useState)((null==I?void 0:null===(n=I.pagination)||void 0===n?void 0:n.total)||(null==I?void 0:I.total)||p||(null==I?void 0:null===(r=I.reviews)||void 0===r?void 0:r.length)||0),[U,K]=(0,l.useState)(0),[q,Q]=(0,l.useState)(1),[X,J]=(0,l.useState)((null==I?void 0:null===(i=I.pagination)||void 0===i?void 0:i.totalPages)||1),[Z,$]=(0,l.useState)(0),[ee,et]=(0,l.useState)(!1),[ea,en]=(0,l.useState)(!1),[er,eo]=(0,l.useState)(!1),[ei,el]=(0,l.useState)(!1),[es,ed]=(0,l.useState)(null),[ec,em]=(0,l.useState)(!1),[eu,eg]=(0,l.useState)(!1),[ep,eh]=(0,l.useState)(!1),ef=(0,l.useRef)(null),ev=(0,l.useRef)(null),ex=(0,l.useCallback)(()=>{let e=ef.current;if(!e){em(!1),eg(!1),eh(!1);return}let{scrollTop:t,scrollHeight:a,clientHeight:n}=e,r=a>n+1;eh(r),em(r&&t>4),eg(r&&t+n{let a=!!(null==t?void 0:t.append);M(t=>a?[...t,...e.reviews]:e.reviews),z(e.ratingBreakdown),H(e.averageScore),j(e.pagination.total||e.total||e.reviews.length||0);let n=[1,2,3,4,5].reduce((t,a)=>t+(e.ratingBreakdown[a]||0),0);0===U?G(n||e.total||e.pagination.total||e.reviews.length||0):n>0&&G(n),J(e.pagination.totalPages||1)},[U]);(0,l.useEffect)(()=>{(null==I?void 0:I.reviews)&&eb(I)},[f,null==I?void 0:I.collectionId,null==I?void 0:I.total,null==I?void 0:null===(s=I.reviews)||void 0===s?void 0:s.length]),(0,l.useEffect)(()=>{var e;if(!f)return;let t=!1,a=1===q,n=!!(null==I?void 0:null===(e=I.reviews)||void 0===e?void 0:e.length),loadReviews=async()=>{a?n||et(!0):en(!0);try{let e=await (0,aM.Dc)({collectionId:f,rating:U,page:q,perPage:aM.Cr});if(t||!e)return;eb(e,{append:!a})}finally{t||(et(!1),en(!1))}};return loadReviews(),()=>{t=!0}},[f,U,q,Z,eb]),(0,l.useEffect)(()=>{if(L){em(!1),eg(!1),eh(!1);return}ex()},[P,ea,L,ex]),(0,l.useEffect)(()=>{if(!R)return;let e=new Image;e.src=d.C.getAssetPath(az)},[R]);let handleCloseSuccessBanner=()=>{el(!1)},ey=P.length0||P.length>0),eD=!ee&&0===P.length,eY=(0,o.FD)(o.FK,{children:[P.map((e,t)=>(0,o.Y)("div",{className:B.reviewListItem,children:(0,o.Y)(ReviewCard,{...e,index:t})},e.id||t)),ey?(0,o.Y)("div",{className:B.loadMore,children:(0,o.Y)(w.Button,{size:"md",variant:"secondary",loading:ea,onClick:()=>{qe+1)},children:A({id:"rateReview.loadMore",defaultMessage:"Load more reviews"})})}):null]});return f||u||eS||ew?(0,o.Y)(w.TemplateProvider,{variant:w.CustomStylesType.LEADGEN,children:(0,o.FD)(tn.A,{className:N(y,B.root),defaultColor:F.colors.neutral[0],applyH1:Y,...T,bgColor:E,children:[ew||eS?(0,o.FD)("div",{ref:ev,className:N(B.actionPanel,ew&&B.actionPanelLogin,eT&&B.actionPanelSuccess),style:eT&&es?{"--rating-success-min-height":"".concat(es,"px")}:void 0,children:[(0,o.FD)("div",{className:N(B.actionPanelMain,eT&&B.actionPanelMainOnSuccess),children:[ew?(0,o.Y)(RatingReviewLoginPrompt,{}):null,eS&&!er?(0,o.Y)(RatingReviewSubmitForm,{collectionId:f,isLoading:ee,onSubmitted:()=>{var e;let t=null===(e=ev.current)||void 0===e?void 0:e.offsetHeight;t&&ed(t),eo(!0),el(!0),Q(1),$(e=>e+1)}}):null,(0,o.Y)(c.Transition,{mounted:ei,transition:no,duration:220,exitDuration:180,timingFunction:"ease",onExited:()=>{eo(!1),ed(null)},children:e=>(0,o.Y)("div",{className:B.successTransitionWrap,style:e,children:(0,o.Y)(RatingReviewSuccessBanner,{onClose:handleCloseSuccessBanner})})})]}),u?(0,o.Y)("div",{className:N(B.actionPanelSummary,eT&&B.actionPanelSummaryOnSuccess),children:(0,o.Y)(RatingSummary,{averageScore:W,totalReviews:O,breakdown:_})}):null]}):null,ek?(0,o.FD)("div",{className:B.reviewListSection,children:[(0,o.Y)(RatingFilter,{totalReviews:eC,activeRating:U,onChange:e=>{K(e),Q(1)}}),P.length>0?L?(0,o.Y)("div",{className:B.reviewList,children:eY}):(0,o.FD)("div",{className:B.reviewListWrap,children:[(0,o.Y)(c.ScrollArea.Autosize,{mah:500,className:B.reviewList,offsetScrollbars:ep,type:ep?"always":"hover",scrollbarSize:6,viewportRef:ef,onScrollPositionChange:ex,classNames:{viewport:N(B.reviewListViewport,ep&&B.reviewListViewportScrollable)},children:eY}),(0,o.Y)("div",{className:N(B.reviewListFade,B.reviewListFadeTop,ec&&B.reviewListFadeVisible),style:{background:"linear-gradient(180deg, ".concat(E," 0%, ").concat(F.fn.rgba(E,0)," 100%)")},"aria-hidden":!0}),(0,o.Y)("div",{className:N(B.reviewListFade,B.reviewListFadeBottom,eu&&B.reviewListFadeVisible),style:{background:"linear-gradient(180deg, ".concat(F.fn.rgba(E,0)," 0%, ").concat(E," 100%)")},"aria-hidden":!0})]}):eD?(0,o.Y)(c.Flex,{justify:"center",className:B.reviewListEmpty,children:(0,o.FD)(c.Stack,{spacing:24,justify:"center",align:"center",children:[(0,o.Y)(c.AspectRatio,{ratio:247/154,className:B.reviewListEmptyImage,children:(0,o.Y)("img",{loading:"lazy",src:"/svg/not-found.svg",alt:""})}),(0,o.Y)(w.Text,{size:"p3",sx:{textAlign:"center"},children:A({id:"rateReview.noResult",defaultMessage:"No Results Found"})})]})}):null]}):null]})}):null};var ni=a("p46w"),nl=a.n(ni),ns=a("5Zd0"),nd=a("Yytz"),nc=a("4JDt"),nm=(0,c.createStyles)((e,t)=>{let{loading:a}=t;return{root:{position:"relative",...a&&{backgroundColor:e.colors.blue[0]},[e.fn.largerThan("sm")]:{'&[data-type-form="true"]':{".si-revamp-left":{paddingTop:0}}}}}}),nu=(0,c.createStyles)(e=>({root:{position:"relative",[e.fn.smallerThan("sm")]:{paddingTop:40,paddingBottom:40},[e.fn.largerThan("sm")]:{height:"calc(654px + 160px)",paddingTop:80,paddingBottom:80}},inner:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:24},[e.fn.largerThan("sm")]:{gap:30}},subotIframe:{position:"absolute",inset:0},colLeft:{width:"100%",maxWidth:490},colLeftInner:{[e.fn.smallerThan("sm")]:{gap:12},[e.fn.largerThan("sm")]:{paddingTop:48}},colRight:{backgroundColor:"#fff",borderRadius:12,padding:12,[e.fn.smallerThan("sm")]:{height:"80vh",maxHeight:480},[e.fn.largerThan("sm")]:{width:720,height:654,padding:48,borderRadius:20}},header:{[e.fn.smallerThan("sm")]:{flexDirection:"row",gap:16}},heading:{[e.fn.smallerThan("sm")]:{width:"calc(100% - 48px)"}},icon:{[e.fn.smallerThan("sm")]:{width:48,height:48}},form:{position:"absolute",inset:0}}));let SubotSkeleton=e=>{let{children:t,loading:a}=e,{classes:n}=nu(void 0,{name:"RiskScreenerEmbed__SubotSkeleton"});return(0,o.FD)(c.Box,{className:n.root,children:[(0,o.FD)(v.m,{className:n.inner,style:{opacity:Number(a)},children:[(0,o.FD)(c.Stack,{spacing:24,justify:"space-between",className:n.colLeft,children:[(0,o.FD)(c.Stack,{spacing:24,className:n.header,children:[(0,o.Y)(c.Skeleton,{height:64,width:64,radius:"100%",className:n.icon}),(0,o.FD)(c.Stack,{spacing:16,className:n.heading,children:[(0,o.Y)(c.Skeleton,{height:24,width:"100%",radius:12}),(0,o.Y)(c.Skeleton,{height:24,width:"70%",radius:12})]})]}),(0,o.FD)(c.Flex,{gap:12,align:"center",children:[(0,o.Y)(c.Skeleton,{height:40,width:40,radius:"100%",sx:{flexShrink:0}}),(0,o.FD)(c.Stack,{spacing:8,sx:{width:"100%"},children:[(0,o.Y)(c.Skeleton,{height:12,width:"100%",radius:4}),(0,o.Y)(c.Skeleton,{height:12,width:"70%",radius:4})]})]})]}),(0,o.Y)(c.Flex,{align:"center",justify:"center",className:n.colRight,children:(0,o.FD)(c.Stack,{spacing:16,sx:{width:"100%"},children:[(0,o.Y)(c.Skeleton,{height:32,width:"80%",radius:8}),(0,o.FD)(c.Stack,{spacing:8,children:[(0,o.Y)(c.Skeleton,{height:16,width:"100%",radius:4}),(0,o.Y)(c.Skeleton,{height:16,width:"100%",radius:4}),(0,o.Y)(c.Skeleton,{height:16,width:"40%",radius:4})]}),(0,o.Y)(c.Skeleton,{height:40,width:130,radius:8})]})}),(0,o.FD)(c.Flex,{gap:8,align:"center",sx:e=>({[e.fn.largerThan("sm")]:{display:"none"}}),children:[(0,o.Y)(c.Skeleton,{height:20,width:20,radius:"100%"}),(0,o.Y)(c.Skeleton,{height:16,width:300,radius:4})]})]}),(0,o.Y)(c.Box,{className:n.form,sx:{opacity:Number(!a)},children:t})]})};var ng=(0,c.createStyles)(e=>({root:{position:"relative",[e.fn.smallerThan("sm")]:{paddingTop:40,paddingBottom:40},[e.fn.largerThan("sm")]:{paddingTop:80,paddingBottom:80}},inner:{display:"flex",flexDirection:"column",[e.fn.smallerThan("sm")]:{gap:24},[e.fn.largerThan("sm")]:{gap:30}},subotIframe:{position:"absolute",inset:0},colLeft:{width:"100%",maxWidth:900},colRight:{backgroundColor:"#fff",borderRadius:12,padding:12,width:"100%",[e.fn.smallerThan("sm")]:{height:"80vh"},[e.fn.largerThan("sm")]:{height:550,padding:48,borderRadius:20}},header:{flexDirection:"row",gap:16},heading:{width:"calc(100% - 80px)",[e.fn.smallerThan("sm")]:{width:"calc(100% - 48px)"}},icon:{[e.fn.smallerThan("sm")]:{width:48,height:48}},form:{position:"absolute",inset:0}}));let TypeFormSkeleton=e=>{let{children:t,loading:a}=e,{classes:n}=ng(void 0,{name:"RiskScreenerEmbed__TypeFormSkeleton"}),r=(0,C.a)();return(0,o.FD)(c.Box,{className:n.root,children:[(0,o.FD)(v.m,{className:n.inner,style:{opacity:Number(a)},children:[(0,o.FD)(c.Stack,{spacing:24,justify:"space-between",className:n.colLeft,children:[(0,o.FD)(c.Stack,{spacing:12,className:n.header,children:[(0,o.Y)(c.Skeleton,{height:64,width:64,radius:"100%",className:n.icon}),(0,o.Y)(c.Stack,{spacing:8,className:n.heading,children:(0,o.Y)(c.Skeleton,{height:r?24:36,width:"100%",radius:12})})]}),(0,o.FD)(c.Flex,{gap:12,align:"center",sx:e=>({[e.fn.largerThan("sm")]:{marginLeft:60,marginTop:-20}}),children:[(0,o.Y)(c.Skeleton,{height:40,width:40,radius:"100%",sx:{flexShrink:0}}),(0,o.FD)(c.Stack,{spacing:8,sx:{width:"100%"},children:[(0,o.Y)(c.Skeleton,{height:12,width:"80%",radius:4}),(0,o.Y)(c.Skeleton,{height:12,width:"30%",radius:4})]})]})]}),(0,o.Y)(c.Flex,{align:"center",justify:"center",className:n.colRight,children:(0,o.FD)(c.Stack,{spacing:16,sx:{width:"100%"},children:[(0,o.Y)(c.Skeleton,{height:32,width:"80%",radius:8}),(0,o.FD)(c.Stack,{spacing:8,children:[(0,o.Y)(c.Skeleton,{height:16,width:"100%",radius:4}),(0,o.Y)(c.Skeleton,{height:16,width:"100%",radius:4}),(0,o.Y)(c.Skeleton,{height:16,width:"40%",radius:4})]}),(0,o.Y)(c.Skeleton,{height:40,width:130,radius:8})]})}),(0,o.FD)(c.Flex,{gap:8,align:"center",children:[(0,o.Y)(c.Skeleton,{height:20,width:20,radius:"100%"}),(0,o.Y)(c.Skeleton,{height:16,width:300,radius:4})]})]}),(0,o.Y)(c.Box,{className:n.form,sx:{opacity:Number(!a)},children:t})]})},RiskScreenerEmbed=e=>{let{data:t,primaryColor:a,onLoad:n,isFullContainer:r,isDisabledAnimationOnMobile:i,handleOnCloseMobile:s,typeoformId:d,className:m,classNames:u,styles:g,withoutSkeleton:p,...h}=e,{asPath:f,locale:v,query:x}=(0,Y.$)(),{state:b}=(0,aE.U)(),{selectSubot:y=[],backgroundColor:S}=t,w=(0,C.a)(),[T,k]=(0,l.useState)(),D=!p&&void 0===T,[B,N]=(0,l.useState)(!1),{classes:F,cx:E}=nm({loading:D},{name:"RiskScreenerEmbed",classNames:u,styles:g}),A=(0,l.useMemo)(()=>{let e={...x};return delete e.slug,e},[x]),R=d?{id:d||"",params:{ga_client:nl().get(I.pJ),page_path:f,...A}}:void 0,L=!!R,P=L?TypeFormSkeleton:SubotSkeleton;return((0,l.useEffect)(()=>{setTimeout(()=>{N(!0)},1e3),(S||a)&&console.warn("[Warning] Please remove the setting primaryColor and backgroundColor in the CMS. All these fields will be configured in SubotAdmin.")},[]),y[0])?(0,o.Y)(c.Box,{...h,className:E(m,F.root),"data-type-form":L,children:(0,o.Y)(P,{loading:D,children:B&&(0,o.FD)(nc.A,{children:[(0,o.Y)(ns.p,{}),(0,o.Y)(nd.so,{id:Number(y[0]),isFullContainer:r,isDisabledAnimationOnMobile:i,onCloseMobile:s,articleLink:f,userInfo:b.userInfo,typeFormProps:R,isMobile:w,locale:v,onLoadFirstNode:e=>{setTimeout(()=>k(e),600)}})]})})}):null};var np=a("0TCZ");(n=r||(r={})).LIVED="lived",n.LIVE="live",n.COMMING_SOON="comming",n.NOT_YET="notyet",n.NEAREST_COMMING="nearest_comming";let nh="YYYY-MM-DD HH:mm:ss",nf=(0,l.createContext)({});var nv=a("+u84"),nx=a("QktA"),nb=(0,c.createStyles)(e=>({root:{},body:{overflow:"hidden",paddingLeft:80,paddingTop:40},bodyInner:{display:"flex",flexDirection:"column",gap:40,backgroundColor:"#EDF4FF",borderRadius:24,padding:24,position:"relative","&:before, &:after":{content:'""',position:"absolute",left:42,top:40,bottom:30,width:4,backgroundColor:e.colors.neutral[1],transition:"height .3s ease"}},title:{textTransform:"capitalize",paddingLeft:64},group:{display:"flex",flexDirection:"column",gap:40,position:"relative",zIndex:1},header:{display:"flex",gap:24,alignItems:"center",justifyContent:"space-between"},headerLeft:{display:"flex",gap:24,alignItems:"center"},heading:{textTransform:"capitalize"},icon:{position:"relative",width:40,height:40,borderRadius:"100%",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",backgroundImage:"linear-gradient(139.59deg, #FFE16B 2.87%, #FFBA0F 58.46%, #FB8908 89.05%)"},cardWrapper:{position:"relative",paddingLeft:64},card:{position:"relative","&:before, &:after":{content:'""',position:"absolute",top:24,left:-51,width:12,height:12,borderRadius:"100%",backgroundImage:"linear-gradient(139.59deg, #FFE16B 2.87%, #FFBA0F 33.47%, #FB8908 89.05%)"}},desc:{position:"sticky",paddingTop:40,paddingBottom:40,top:56,left:0,display:"flex",flexDirection:"column",gap:24,width:256,float:"left"},listing:{display:"flex",flexDirection:"column",gap:40},info:{display:"flex",flexDirection:"column",gap:8},maskcot:{display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",backgroundColor:"#EDF4FF",width:120,height:120,img:{maxWidth:96,maxHeight:96}}})),ny=(0,c.createStyles)(e=>({root:{borderRadius:8,border:"1px solid ".concat(e.colors.neutral[1]),boxShadow:e.shadows.sm,backgroundColor:"#fff"},info:{display:"flex",flexDirection:"column",padding:16,gap:12,[e.fn.smallerThan("sm")]:{},[e.fn.largerThan("sm")]:{width:320,flexShrink:0,justifyContent:"space-between",borderTopLeftRadius:"inherit",borderBottomLeftRadius:"inherit"}},topInfo:{display:"flex",flexDirection:"column",gap:8,alignItems:"flex-start"},countdown:{width:"100%",[e.fn.largerThan("sm")]:{order:2}},title:{[e.fn.smallerThan("sm")]:{textAlign:"center"},[e.fn.largerThan("sm")]:{order:1}},thumbFrame:{"&, *, img":{borderRadius:"inherit"}},thumbImg:{borderRadius:"inherit",display:"block"},action:{[e.fn.largerThan("sm")]:{display:"flex",alignItems:"center",justifyContent:"space-between"}}}));let EventCard=e=>{let{startCountdown:t,className:a,classNames:n,styles:r,item:i,...l}=e,{title:s,state:d,bannersDesktop:m,bannersMobile:u}=i,g=(0,C.a)(),{classes:p,cx:h}=ny(void 0,{name:"ScheduleEvent__EventCard",styles:r,classNames:n});return(0,o.Y)(c.Box,{"data-status":d,className:h(a,p.root,"event-card"),...l,children:(0,o.Y)(c.AspectRatio,{ratio:g?1:664/206,className:h("thumb-frame",p.thumbFrame),children:(0,o.Y)(et.B,{src:g?u:m,alt:s||"",loading:"lazy",className:p.thumbImg,fill:!0})})})},DesktopLayout=e=>{let{groupByMothList:t,styles:a,classNames:n,className:r}=e,{maskcot:i,wrapperProps:s}=(0,l.useContext)(nf),{locale:d}=(0,Y.$)(),{classes:m,cx:u}=nb(void 0,{name:"ScheduleEvent__EventList-GroupByStatus--Desktop",styles:a,classNames:n});return(0,o.FD)(c.Box,{className:u(r,m.root),children:[(0,o.FD)(c.Box,{className:m.desc,children:[(0,o.Y)(c.Box,{className:u(m.maskcot),children:(0,o.Y)("img",{src:i,alt:"maskcot",loading:"lazy"})}),(0,o.FD)(c.Box,{className:m.info,children:[(0,o.Y)(w.Text,{size:"h2",children:s.title}),(0,o.Y)(w.Text,{size:"p3",children:s.description})]})]}),(0,o.Y)(c.Box,{className:m.body,children:(0,o.Y)(c.Box,{className:m.bodyInner,children:t.monthArr.map(e=>{let a=t.listing[e]||[];return(0,o.FD)(c.Box,{className:u(m.group),children:[(0,o.Y)(c.Box,{className:m.header,children:(0,o.FD)(c.Box,{className:m.headerLeft,children:[(0,o.Y)(c.Box,{className:u(m.icon),children:(0,o.Y)(aS.A,{size:24,color:"currentColor"})}),(0,o.Y)(w.Text,{size:"h2",as:"h2",className:m.heading,children:(0,nx.A)(new Date(2020,tB()(e,"MM-YYYY").month(),1),"MMMM",{locale:nv.j[d]})})]})}),(0,o.Y)(c.Box,{className:m.listing,children:a.map((e,t)=>(0,o.Y)(c.Box,{className:u(m.cardWrapper),children:(0,o.Y)(EventCard,{item:e,className:u(m.card)})},t))})]},e)})})})]})};var nC=(0,c.createStyles)(e=>({root:{display:"flex",flexDirection:"column",gap:24},body:{},bodyInner:{},title:{textTransform:"capitalize",paddingLeft:64},group:{},heading:{textTransform:"capitalize"},card:{},listing:{display:"flex",flexDirection:"column",gap:40},info:{display:"flex",flexDirection:"column",gap:8},calendarImg:{display:"block"},monthGroup:{},monthList:{display:"flex"},monthItem:{flexGrow:1,backgroundColor:e.colors.neutral[0],height:52,borderRadius:0,paddingLeft:4,paddingRight:4,".text":{color:e.colors.neutral[5],textTransform:"capitalize"},"&,&:active":{border:"1px solid ".concat(e.colors.neutral[1]),borderTop:0},"&[data-active]":{"&,&:active":{backgroundColor:"#FFF5DC",borderLeftColor:"#FFE299",borderBottomColor:"#FFE299",borderRightColor:e.colors.neutral[1],".text":{color:"#262626"}}}}}));function hasCommingCountdown(e){if(!e||!e.countdownStart)return!1;let t=tB()(e.countdownStart,nh).toDate();return e.state===r.NOT_YET&&tB()().isAfter(t)}let MobileLayout=e=>{let{groupByMothList:t,styles:a,classNames:n,className:r}=e,{wrapperProps:i}=(0,l.useContext)(nf),{locale:s}=(0,Y.$)(),{classes:m,cx:u}=nC(void 0,{name:"ScheduleEvent__EventList-GroupByStatus--Desktop",styles:a,classNames:n}),[g,p]=(0,l.useState)(t.monthArr[0]),[h,f]=(0,l.useState)(null),v=(0,U.m)(),x=(0,l.useMemo)(()=>{let e=t.monthArr.slice(0,3),a=0,n={},r=eD()(e.map((e,r)=>{n[e]=r+a;let o=t.listing[e]||[];return a=a+o.length-1,o}));return{monthList:e,listing:r,indexOfMonth:n}},[t]);return(0,o.FD)(c.Box,{className:u(r,m.root),children:[(0,o.FD)(c.Box,{className:m.info,children:[(0,o.Y)(w.Text,{size:"h2",children:i.title}),(0,o.Y)(w.Text,{size:"p3",children:i.description})]}),(0,o.Y)(c.Box,{className:m.body,children:(0,o.Y)(c.Box,{className:m.bodyInner,children:(0,o.FD)(c.Tabs,{classNames:{tab:m.monthItem},value:g,keepMounted:!0,onTabChange:e=>{p(e),e&&(null==h||h.scrollTo(x.indexOfMonth[e])),e&&console.log({v:e,index:x.indexOfMonth[e]})},styles:{root:{position:"relative",display:"flex",flexDirection:"column",gap:24},tabsList:{borderBottom:0},tab:{"&[data-active],&:focus":{borderColor:"transparent",outline:0}},panel:{display:"block !important",transition:"opacity 0.2s ease","&.inactive":{position:"absolute",top:0,left:0,right:0,opacity:0,zIndex:0},"&.active":{position:"relative",zIndex:1}}},children:[(0,o.Y)(c.Tabs.List,{children:(0,o.FD)(c.Box,{className:m.monthGroup,children:[(0,o.Y)("img",{src:d.C.getAssetPath("tiki/calendar-bar.png"),className:m.calendarImg,alt:"calendar",loading:"lazy"}),(0,o.Y)(c.Box,{className:m.monthList,children:x.monthList.map((e,t)=>{let a=(0,nx.A)(new Date(2020,tB()(e,"MM-YYYY").month(),1),"MMMM",{locale:nv.j[s]});return(0,o.Y)(c.Tabs.Tab,{value:e,className:u(Number(e)===Number(tB()().format("MM"))?"active":"",m.monthItem),"data-event-category":"Service Connection","data-event-action":"Livestream Schedule - ".concat(a),"data-event-label":v,children:(0,o.Y)(w.Text,{size:"s1",className:"text",children:a})},t)})})]})}),(0,o.Y)(c.Box,{sx:{position:"relative"},children:(0,o.FD)(c.Box,{className:u(m.group),children:[(0,o.Y)(eH.v,{percentOfEndSlideMobile:85,onSlideChange:e=>{var t;return p((null===(t=x.listing[e])||void 0===t?void 0:t.monthKey)||null)},carouselSetting:{getEmblaApi:f},children:(0,o.Y)(eH.v.Slider,{styles:()=>({progressRoot:{display:"none"}}),children:x.listing.map((e,t)=>(0,o.Y)(EventCard,{item:e,classNames:{root:m.card}},t))})}),(0,o.Y)(c.Box,{className:m.listing})]})})]})})})]})},GroupByStatus=e=>{let{listEvent:t=[],...a}=e,n=(0,C.a)(),r=(0,l.useMemo)(()=>{let e=function(e){let t={};return e.map(e=>{let a=tB()(e.startDate,nh).format("MM-YYYY"),n={...e,monthKey:a};if(Object.keys(t).includes(a)){let e=t[a]||[];t[a]=[...e,n]}else t[a]=[n]}),t}(t);return{listing:e,monthArr:Object.keys(e),monthLength:Object.keys(e).length}},[t]);return n?(0,o.Y)(MobileLayout,{groupByMothList:r,...a}):(0,o.Y)(DesktopLayout,{groupByMothList:r,...a})};var nS=(0,c.createStyles)(e=>({root:{[e.fn.largerThan("sm")]:{paddingTop:0}}}));let EventList=e=>{let{className:t,classNames:a,styles:n}=e,{listEvent:i=[],wrapperProps:s}=(0,l.useContext)(nf),{classes:d,cx:c}=nS(void 0,{name:"ScheduleEvent__EventList",styles:n,classNames:a}),m=(0,l.useMemo)(()=>i.filter(e=>e.state===r.NOT_YET),[i]);return m.length>0?(0,o.Y)(tn.A,{className:c(t,d.root),...s,title:"",description:"",children:(0,o.Y)(GroupByStatus,{listEvent:m})}):null};var icons_Share=e=>{let{size:t=24,isOutline:a,...n}=e;return a?(0,o.Y)("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,o.Y)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0397 15.7109C12.4411 16.112 12.9281 16.3125 13.5008 16.3125C14.0735 16.3125 14.5603 16.1117 14.9612 15.7103C15.362 15.3089 15.5625 14.8218 15.5625 14.2491C15.5625 13.6765 15.3619 13.1897 14.9609 12.7888C14.5599 12.3879 14.0729 12.1875 13.5 12.1875C13.2173 12.1875 12.9495 12.243 12.6966 12.3541C12.4437 12.4651 12.2183 12.6192 12.0202 12.8163L6.47304 9.56826C6.50286 9.48364 6.52521 9.39086 6.54011 9.28989C6.55501 9.18893 6.56246 9.09179 6.56246 8.99848C6.56246 8.90518 6.55501 8.80855 6.54011 8.70859C6.52521 8.60861 6.50286 8.51632 6.47304 8.43171L12.0202 5.18363C12.2183 5.38074 12.4437 5.53483 12.6966 5.64589C12.9495 5.75694 13.2173 5.81246 13.5 5.81246C14.0729 5.81246 14.5599 5.61174 14.9609 5.21031C15.3619 4.80887 15.5625 4.32181 15.5625 3.74914C15.5625 3.17646 15.3617 2.68969 14.9603 2.28881C14.5589 1.88794 14.0718 1.6875 13.4991 1.6875C12.9265 1.6875 12.4397 1.88802 12.0388 2.28906C11.6379 2.69009 11.4375 3.17707 11.4375 3.74998C11.4375 3.84361 11.445 3.94057 11.4599 4.04087C11.4748 4.14118 11.4971 4.23364 11.5269 4.31826L5.97979 7.56634C5.78171 7.36923 5.55623 7.21514 5.30334 7.10408C5.05046 6.99303 4.78267 6.9375 4.49998 6.9375C3.92707 6.9375 3.44009 7.13822 3.03906 7.53966C2.63802 7.94109 2.4375 8.42815 2.4375 9.00083C2.4375 9.5735 2.63802 10.0603 3.03906 10.4612C3.44009 10.862 3.92707 11.0625 4.49998 11.0625C4.78267 11.0625 5.05046 11.0069 5.30334 10.8959C5.55623 10.7848 5.78171 10.6307 5.97979 10.4336L11.5269 13.6817C11.4971 13.7663 11.4748 13.8588 11.4599 13.9591C11.445 14.0594 11.4375 14.1564 11.4375 14.25C11.4375 14.8229 11.6382 15.3099 12.0397 15.7109ZM14.1642 4.41416C13.982 4.59637 13.7606 4.68748 13.5 4.68748C13.2394 4.68748 13.018 4.59639 12.8358 4.41418C12.6536 4.23196 12.5625 4.01056 12.5625 3.74998C12.5625 3.48941 12.6536 3.26801 12.8358 3.08578C13.018 2.90357 13.2394 2.81246 13.5 2.81246C13.7606 2.81246 13.982 2.90356 14.1642 3.08576C14.3464 3.26799 14.4375 3.48939 14.4375 3.74996C14.4375 4.01054 14.3464 4.23194 14.1642 4.41416ZM5.16418 9.66416C4.98196 9.84638 4.76056 9.93748 4.49998 9.93748C4.23941 9.93748 4.01801 9.8464 3.83578 9.66418C3.65357 9.48196 3.56246 9.26056 3.56246 8.99998C3.56246 8.73941 3.65357 8.51801 3.83578 8.33578C4.01801 8.15357 4.23941 8.06246 4.49998 8.06246C4.76056 8.06246 4.98196 8.15356 5.16418 8.33576C5.34639 8.51799 5.4375 8.73939 5.4375 8.99996C5.4375 9.26054 5.34639 9.48194 5.16418 9.66416ZM14.1642 14.9142C13.982 15.0964 13.7606 15.1875 13.5 15.1875C13.2394 15.1875 13.018 15.0964 12.8358 14.9142C12.6536 14.732 12.5625 14.5106 12.5625 14.25C12.5625 13.9894 12.6536 13.768 12.8358 13.5858C13.018 13.4036 13.2394 13.3125 13.5 13.3125C13.7606 13.3125 13.982 13.4036 14.1642 13.5858C14.3464 13.768 14.4375 13.9894 14.4375 14.25C14.4375 14.5105 14.3464 14.7319 14.1642 14.9142Z",fill:"#595959"})}):(0,o.FD)("svg",{width:t,height:t,fill:"none",viewBox:"0 0 24 24",...n,children:[(0,o.Y)("g",{clipPath:"url(#clip0_586_5683)",children:(0,o.Y)("path",{fill:"#595959",d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7 0-.24-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92 0-1.61-1.31-2.92-2.92-2.92z"})}),(0,o.Y)("defs",{children:(0,o.Y)("clipPath",{id:"clip0_586_5683",children:(0,o.Y)("path",{fill:"#fff",d:"M0 0H24V24H0z"})})})]})},icons_TikiArrow=e=>{let{size:t=40,color:a,...n}=e;return(0,o.FD)("svg",{width:t,height:t,viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,o.FD)("g",{"clip-path":"url(#clip0_2752_36921)",children:[(0,o.Y)("path",{d:"M9.5 18C14.4706 18 18.5 13.9706 18.5 9C18.5 4.02944 14.4706 0 9.5 0C4.52944 0 0.5 4.02944 0.5 9C0.5 13.9706 4.52944 18 9.5 18Z",fill:"white"}),(0,o.Y)("path",{d:"M13.7471 8.95891L6.15026 4.31869L7.3719 13.2062L9.43129 11.3099L11.3285 14.1674L13.0635 13.0177L11.1535 10.1426L13.7471 8.95891Z",fill:a})]}),(0,o.Y)("defs",{children:(0,o.Y)("clipPath",{id:"clip0_2752_36921",children:(0,o.Y)("rect",{width:"18",height:"18",fill:"white",transform:"translate(0.5)"})})})]})},nw=a("p9qM"),nT=a("rWZn"),nk=(0,c.createStyles)(e=>({thumbFrame:{cursor:"pointer",[e.fn.smallerThan("sm")]:{width:"100%"},flexGrow:1,"&, img":{borderRadius:8}},img:{display:"block"}}));let Banner=e=>{let{event:t,status:a,handleOnClick:n,...r}=e,i=(0,C.a)(),{classes:l}=nk(void 0,{name:"ScheduleEvent__UpcommingBanner__Banner"});return(0,o.Y)(c.Box,{component:"a",href:"live"===a?t.ctaUrl:"#",target:"_blank",className:l.thumbFrame,...r,onClick:e=>{e.preventDefault(),n(t,a)},children:(0,o.Y)(c.AspectRatio,{ratio:i?1:3.25,children:(0,o.Y)(et.B,{alt:t.title||"",src:i?t.bannersMobile:t.bannersDesktop,loading:"lazy",className:l.img,fill:!0})})})},nD={fontSize:40,fontWeight:750,color:"#fff",textShadow:"rgb(43, 191, 255) 0px 0px 0px, 0.5px 1px 2px #663C1D"};var nY=(0,c.createStyles)((e,t)=>{let{isLiveEvent:a,isEndLive:n}=t;return{root:{display:"flex",gap:40,alignItems:"center",[e.fn.smallerThan("sm")]:{flexDirection:"column",justifyContent:"center",gap:16}},heading:{fontSize:24,lineHeight:(0,c.rem)(32),fontWeight:700,textAlign:"center",marginBottom:8,color:e.colors.gray[7],[e.fn.largerThan("sm")]:{fontSize:26,lineHeight:(0,c.rem)(36)}},info:{display:"flex",flexDirection:"column",justifyContent:"center",gap:24,[e.fn.largerThan("sm")]:{width:360},[e.fn.smallerThan("sm")]:{width:"100%"}},topInfo:{display:"flex",flexDirection:"column",justifyContent:"center"},thumbFrame:{cursor:"pointer",[e.fn.smallerThan("sm")]:{width:"100%"},flexGrow:1,"&, img":{borderRadius:8}},statusBar:{display:"flex",alignItems:"center",backgroundImage:n?"linear-gradient(139.59deg, #BFC5CC 2.87%, #87909C 89.05%)":a?"linear-gradient(271.93deg, #E64728 25.89%, #FC8A09 131.8%)":"linear-gradient(139.59deg, #FFE16B 2.87%, #FFBA0F 58.46%, #FB8908 89.05%)",justifyContent:"center",height:76,marginTop:-10,borderRadius:12},liveBar:{display:"flex",alignItems:"center",gap:16},liveText:{color:"#fff",textTransform:"uppercase",fontSize:24,fontWeight:700,textShadow:"rgb(43, 191, 255) 0px 0px 0px, 0.5px 1px 2px #663C1D",[e.fn.largerThan("sm")]:{fontSize:32}},timer:{background:"transparent"},timerItem:{background:"transparent",width:50,height:"auto"},timerText:{...nD},timerDivider:{...nD,padding:"0 5px",marginTop:-5},timerUnit:{textTransform:"uppercase",fontSize:(0,c.rem)(12),color:"#fff",fontWeight:700},announceText:{color:"#fff",fontWeight:800,fontSize:18,textTransform:"uppercase"},action:{display:"flex",justifyContent:"center",[e.fn.smallerThan("sm")]:{display:"none"}},btn:{backgroundColor:"#FB8908 !important",height:48,[e.fn.smallerThan("sm")]:{fontSize:14,paddingLeft:0,paddingRight:0,textAlign:"center"}},sticky:{position:"fixed",bottom:0,left:0,right:0,zIndex:3,backgroundColor:"rgba(255,255,255,0.95)",backdropFilter:"blur(8px)",padding:16,display:"flex",gap:8,".action-btn":{width:"100%"}},share:{width:48,flexShrink:0}}});let nI=["lived","about-lived"],HighlightEvent=e=>{var t,n;let{className:i,styles:s,classNames:m}=e,{locale:u}=(0,Y.$)(),{formatMessage:g}=(0,k.A)(),{applyH1:p,listEvent:h,openLeadModal:f,setCampaign:v,setHighlightEvent:x}=(0,l.useContext)(nf),b=(0,C.a)(),y=(0,U.m)(),[S,T]=(0,l.useState)(null),D=(0,l.useMemo)(()=>h.filter(e=>e.state===r.LIVE||e.state===r.NOT_YET),[]),[B,N]=(0,l.useState)((()=>{let e=null==D?void 0:D[0];return{event:e,isLive:(null==e?void 0:e.state)===r.LIVE,isComming:(null==e?void 0:e.state)===r.NOT_YET,hasCountdownNow:hasCommingCountdown(e)}})()),[F,E]=(0,l.useState)(B.isLive?"live":B.isComming&&B.hasCountdownNow?"commingWithCountDown":B.isComming?"comming":"lived"),{classes:A,cx:R}=nY({isLiveEvent:"live"===F,isEndLive:nI.includes(F)},{name:"ScheduleEvent__HighlightEvent",styles:s,classNames:m});(0,l.useEffect)(()=>{a.e(3067).then(a.t.bind(a,"S4a3",19)).then(e=>{T(e.default)})},[]);let L=(0,l.useCallback)((e,t)=>{"live"===t||"lived"===t?e.ctaUrl&&window.open(e.ctaUrl):f()},[]),P=(0,l.useMemo)(()=>{var e,t;return(0,o.Y)(w.Button,{size:"lg",variant:"primary",className:"action-btn",classNames:{root:A.btn},rightIcon:(0,o.Y)(icons_TikiArrow,{size:18,color:"#FB8908"}),"data-event-category":"Service Connection","data-event-action":"live"===F?"Watch Livestream Button":"Leadgen Livestream Button","data-event-label":y,onClick:()=>L(B.event,F),children:g({id:"live"===F||"lived"===F?(null===(e=B.event)||void 0===e?void 0:e.ctaTitle)||"common.clickToPlay":(null===(t=B.event)||void 0===t?void 0:t.leadgenCampaign.ctaTitle)||"common.registerToPlayNow"})})},[F]);return((0,l.useEffect)(()=>{(B.isLive||B.isComming)&&x(B.event)},[]),(0,l.useEffect)(()=>{if("comming"===F||"commingWithCountDown"===F)fetch(I.Km.NEXT_PUBLIC_LEAD_API+"api/campaign/"+String(I.El[u].SITE_ID||1),{method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{var t;v(((null===(t=e._data)||void 0===t?void 0:t.campaigns)||[]).find(e=>e.code===B.event.leadgenCampaign.code))});else if("about-lived"===F){let e=function(e,t){let a=t.findIndex(t=>t.id===e.id);return t[a]}(B.event,h);e?(E(hasCommingCountdown(e)?"commingWithCountDown":"comming"),N({event:e,isLive:e.state===r.LIVE,isComming:e.state===r.NOT_YET,hasCountdownNow:hasCommingCountdown(e)})):E("lived")}},[F]),B.event)?(0,o.FD)(o.FK,{children:[(0,o.Y)(tn.A,{title:"",description:"",styles:e=>({root:{background:nI.includes(F)?e.colors.neutral[0]:"#FFFAED",[e.fn.smallerThan("sm")]:{paddingTop:24}}}),children:(0,o.FD)(c.Box,{className:R(i,A.root),children:[(0,o.FD)(c.Box,{className:A.info,children:[(0,o.FD)(c.Box,{className:A.topInfo,children:[("commingWithCountDown"===F||"comming"===F)&&(0,o.Y)(c.Box,{component:p?"h1":"div",className:A.heading,children:"Đ\xf3n xem livestream"}),(0,o.FD)(c.AspectRatio,{ratio:512/68,children:[(0,o.Y)("img",{src:d.C.getAssetPath("tiki/annouce-bar.png"),alt:B.event.title,loading:"lazy"}),(0,o.Y)(c.Flex,{align:"center",justify:"center",sx:{paddingBottom:8},children:(0,o.Y)(c.Box,{className:A.announceText,children:(0,nx.A)(tB()(null===(t=B.event)||void 0===t?void 0:t.startDate,"YYYY-MM-DD HH:mm").toDate(),"eeee, dd.MM.yyyy",{locale:nv.j[u]})})})]}),(0,o.Y)(c.Box,{className:A.statusBar,sx:{position:"relative"},children:"comming"===F?(0,o.FD)(o.FK,{children:[(0,o.Y)(c.Box,{className:A.liveBar,children:(0,o.Y)(c.Box,{className:A.liveText,children:g({id:"common.livestreamIsComming"})})}),(0,o.Y)(nT.J,{endDate:tB()(B.event.countdownStart||B.event.startDate,nh).toDate(),onEnd:()=>{E(B.event.countdownStart?"commingWithCountDown":"live"),x(B.event)},styles:{root:{display:"none"}}})]}):"commingWithCountDown"===F?(0,o.Y)(nT.J,{hasUnit:!0,endDate:tB()(null===(n=B.event)||void 0===n?void 0:n.startDate,nh).toDate(),classNames:{root:A.timer,item:A.timerItem,divider:A.timerDivider,text:A.timerText,unit:A.timerUnit},onEnd:()=>E("live"),styles:{root:{height:62},heading:{display:"none"}}}):"live"===F?(0,o.FD)(o.FK,{children:[(0,o.FD)(c.Box,{className:A.liveBar,children:[S&&(0,o.Y)(nw.A,{animationData:S,style:{width:24,height:24},loop:!0}),(0,o.Y)(c.Box,{className:A.liveText,children:g({id:"common.livestreamIsLive"})})]}),(0,o.Y)(nT.J,{endDate:tB()(B.event.endDate,nh).toDate(),onEnd:()=>E("about-lived"),styles:{root:{display:"none"}}})]}):"lived"===F?(0,o.Y)(o.FK,{children:(0,o.Y)(c.Box,{className:A.liveBar,children:(0,o.Y)(c.Box,{className:A.liveText,children:g({id:"common.ended"})})})}):null})]}),(0,o.Y)(c.Box,{className:A.action,children:P})]}),(0,o.Y)(Banner,{status:F,event:B.event,handleOnClick:L,"data-event-category":"Service Connection","data-event-action":B.isLive?"Watch Livestream Banner":"Leadgen Livestream Banner","data-event-label":y})]})}),b&&(0,o.FD)(c.Box,{className:A.sticky,children:[(0,o.Y)(w.Button,{size:"lg",variant:"tertiary",leftIcon:(0,o.Y)(icons_Share,{size:18,isOutline:!0}),className:A.share,"data-event-category":"Service Connection","data-event-action":"Share Livestream Button","data-event-label":y,onClick:()=>{var e;return navigator.share({url:y,title:"Đ\xf3n xem livestream ".concat(tB()(null===(e=B.event)||void 0===e?void 0:e.startDate,"YYYY-MM-DD HH:mm").format("DD.MM.YYYY"))})}}),P]})]}):null};var nB=a("k8Y/"),nN=a.n(nB),nF=(0,c.createStyles)(e=>({leadWrapper:{[e.fn.smallerThan("sm")]:{padding:0},[e.fn.largerThan("sm")]:{padding:"60px 0",backgroundImage:"linear-gradient(139.59deg, #182EF3 2.87%, #021575 89.05%)",position:"relative","&:before,&:after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0,backgroundRepeat:"no-repeat",backgroundPosition:"top"},"&:before":{backgroundImage:"url(".concat(d.C.getAssetPath("tiki/top-bg.png"),")"),backgroundSize:"contain"},"&:after":{backgroundImage:"url(".concat(d.C.getAssetPath("tiki/icon-bg.png"),")"),backgroundSize:"95%"}},".mantine-LeadgenWithBanner-root":{position:"relative",zIndex:1}},leadRoot:{backgroundColor:"#fff !important",[e.fn.largerThan("sm")]:{paddingBottom:0,backgroundColor:"transparent !important"}},leadModalRoot:{ref:(0,c.getStylesRef)("leadModalRoot"),".form-wrapper":{},".action-list":{display:"flex",justifyContent:"flex-end"},".banner-img":{[e.fn.largerThan("sm")]:{maxHeight:600}},".banner-wrapper,.form-wrapper":{flex:"none"},".mantine-Form-container":{justifyContent:"space-evenly"}},leadModalWrapper:{".banner-img":{maxHeight:500,maxWidth:450},".mantine-Form-container":{height:560},".mantine-Form-formFrame":{maxWidth:416},".mantine-Form-formSubmitBtnWrapper":{},".mantine-SuccessBox-description":{textAlign:"left"},".mantine-SuccessBox-img":{height:120}},leadInlineRoot:{backgroundColor:"#fff !important",[e.fn.smallerThan("sm")]:{padding:"0 !important",".banner-wrapper":{marginLeft:-16,marginRight:-16}},[e.fn.largerThan("sm")]:{backgroundColor:"transparent !important",padding:0},".banner-wrapper,.form-wrapper":{flex:"none"},".action-list":{display:"flex",justifyContent:"flex-end"},".banner-img":{[e.fn.largerThan("sm")]:{}},".mantine-SuccessBox-description":{textAlign:"left"}},leadFormFrame:{[e.fn.smallerThan("sm")]:{background:"#fff",padding:0,paddingBottom:16},[e.fn.largerThan("sm")]:{maxWidth:456}}})),nE=(0,c.createStyles)(e=>({root:{padding:60,[e.fn.smallerThan("sm")]:{padding:0}},wrapper:{display:"flex",flexDirection:"column",alignItems:"center",gap:24,position:"relative",padding:"0 0 24px 0",[e.fn.largerThan("sm")]:{padding:"0 80px",backgroundImage:"linear-gradient(90deg, rgba(180, 214, 249, 0) 0%, rgba(180, 214, 249, 0.25) 50.5%, rgba(180, 214, 249, 0) 100%)"}},border:{[e.fn.smallerThan("sm")]:{display:"none"},[e.fn.largerThan("sm")]:{position:"relative",width:"100%","&:before":{content:'""',position:"absolute",left:0,right:0,height:2,top:1,backgroundImage:"linear-gradient(90deg, rgba(32, 202, 255, 0) 0%, #20CAFF 54.74%, rgba(32, 202, 255, 0) 110.59%)"},"&:after":{content:'""',height:4,width:"100%",filter:"blur(8px)",display:"block",backgroundImage:"linear-gradient(90deg, rgba(32, 202, 255, 0) 0%, #20CAFF 54.74%, rgba(32, 202, 255, 0) 110.59%)"}}},ruleBoxTitle:{color:"#fff"},header:{textAlign:"center",padding:"12px 24px",boxShadow:"2px 4px 8px 0px #031676",borderRadius:24,position:"relative",backgroundImage:"linear-gradient(162.6deg, #20CAFF -3.27%, #4297FC 113.89%)","&:before":{content:'""',position:"absolute",borderRadius:"inherit",top:1,left:1,right:1,bottom:1,zIndex:0,backgroundColor:"#0C2498"}},heading:{position:"relative",fontSize:32,lineHeight:"40px",textTransform:"uppercase",color:"#fff",backgroundImage:"linear-gradient(350.43deg, #FFE16B -30.23%, #FFFFFF 90.17%)",backgroundClip:"text","-webkit-text-fill-color":"transparent",textShadow:"1px 2px 4px 0px #000622"},listing:{display:"flex",[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:16},[e.fn.largerThan("sm")]:{gap:80}},item:{display:"flex",flexDirection:"column",gap:8,position:"relative",color:"#fff",p:{margin:"10px 0"},[e.fn.smallerThan("sm")]:{paddingLeft:24,"&:before":{content:'""',position:"absolute",top:18,left:0,width:8,height:8,borderRadius:"50%",backgroundImage:"linear-gradient(139.59deg, #FFE16B 2.87%, #FFBA0F 58.46%, #FB8908 89.05%)"}},[e.fn.largerThan("sm")]:{"&:before":{content:'""',position:"absolute",top:"50%",transform:"translate(0, -50%)",left:-40,height:"50%",maxHeight:80,width:1,background:e.colors.neutral[1]},"&:first-child":{"&:before":{content:"none"}}}},bannerWrapper:{[e.fn.smallerThan("sm")]:{margin:"0 -10px 0 -16px"},[e.fn.largerThan("sm")]:{display:"none"}},banner:{display:"block"}}));let GameRules=e=>{let{className:t,classNames:a,styles:n,...r}=e,{wrapperProps:i}=(0,l.useContext)(nf),{classes:s}=nE(void 0,{name:"ScheduleEvent__GameRules",styles:n,classNames:a});return(0,o.Y)(tn.A.Wrapper,{className:t,classNames:{root:s.root},...i,children:(0,o.FD)(c.Box,{className:s.wrapper,...r,children:[(0,o.Y)(c.Box,{className:s.border}),(0,o.Y)(c.Box,{className:s.bannerWrapper,children:(0,o.Y)("img",{src:d.C.getAssetPath("tiki/game-rules.png"),loading:"lazy",className:s.banner,alt:"THỂ LỆ MINI GAME"})}),(0,o.Y)(c.Box,{className:s.header,children:(0,o.Y)("h3",{className:s.heading,children:"THỂ LỆ MINIGAME"})}),(0,o.FD)(c.Box,{className:s.listing,children:[(0,o.Y)(w.Text,{size:"p3",className:s.item,as:"div",children:(0,o.Y)("div",{dangerouslySetInnerHTML:{__html:"

200 bạn may mắn đăng k\xfd đầu ti\xean sẽ được nhận m\xe3 Coupon th\xf4ng qua tin nhắn của HelloBACSI.

Ngo\xe0i ra, HelloBACSI sẽ gửi tin nhắn SMS nhắc nhở k\xe8m đường dẫn xem livestream 15 ph\xfat trước khi chương tr\xecnh bắt đầu cho c\xe1c bạn đăng k\xfd th\xe0nh c\xf4ng.

"}})}),(0,o.Y)(w.Text,{size:"p3",className:s.item,as:"div",children:(0,o.Y)("div",{dangerouslySetInnerHTML:{__html:"

Trị gi\xe1 coupon: Giảm 50% tối đa 100K \xe1p dụng cho to\xe0n bộ sản phẩm tại Tiki.vn. Mỗi bạn c\xf3 1 m\xe3 ri\xeang, 1 số điện thoại chỉ nhận được 1 m\xe3 duy nhất.

\n

Thời hạn sử dụng coupon: 01.11.2024 - 14.11.2024.

"}})})]}),(0,o.Y)(c.Box,{className:s.border})]})})};var nA=(0,l.forwardRef)((e,t)=>{let{campaign:a,event:n,styles:r,classNames:i}=e,{classes:l,theme:s}=nF(void 0,{name:"ScheduleEvent___LeadgenSection",styles:r,classNames:i}),d={isSkippable:!0,campaignCode:a.code,banner:{desktop:(null==n?void 0:n.leadgenCampaign.bannerDesktop)||"",mobile:(null==n?void 0:n.leadgenCampaign.bannerMobile)||""},thankYouMessage:(()=>{var e,t,n,r,o;let i=JSON.parse((null===(e=a.extra_fields)||void 0===e?void 0:e.listBlockThankyou)||null);return{title:(null==i?void 0:null===(n=i.find(e=>"TitleBlock"==e.name))||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.value)||"",description:(null==i?void 0:null===(o=i.find(e=>"SubtitleBlock"==e.name))||void 0===o?void 0:null===(r=o.data)||void 0===r?void 0:r.value)||""}})(),campaigns:a};return(0,o.FD)(o.FK,{children:[n.leadgenCampaign.enableLeadgenInline&&(0,o.FD)(c.Box,{className:l.leadWrapper,children:[(0,o.Y)(ak.A,{classNames:{root:l.leadInlineRoot,formFrame:l.leadFormFrame},scrollable:!0,data:d}),(0,o.Y)(GameRules,{styles:{root:{[s.fn.smallerThan("sm")]:{backgroundImage:"linear-gradient(139.59deg, #2338F7 2.87%, #021575 89.05%)"},[s.fn.largerThan("sm")]:{paddingBottom:0}}}})]}),(0,o.Y)(ak.A,{isModal:!0,scrollable:!0,desktopModalType:"normal",mobileModalType:"drawer",ref:t,classNames:{root:l.leadModalRoot,formFrame:l.leadFormFrame,wrapper:l.leadModalWrapper},data:d})]})});let ScheduleEvent=e=>{let{locale:t}=(0,Y.$)(),{listEvent:a,wrapperProps:n}=e,i=(0,l.useMemo)(()=>{let e=a.map(e=>({...e,timestamp:tB()(e.startDate,nh).unix()}));return nN()(e,["timestamp"],["asc"])},[a]),[s,d]=(0,np.p)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.map((e,a)=>{var n,o;let i=(n=tB()(e.startDate,nh).toDate(),o=tB()(e.endDate,nh).toDate(),tB()().isAfter(o)?r.LIVED:tB()().isBetween(n,o)?r.LIVE:r.NOT_YET),l={...e,state:i,title:(0,nx.A)(tB()(e.startDate,nh).toDate(),"HH:mm - eeee, dd.MM.YYY",{locale:nv.j[t]}),episode:a+1};return l})}(i,t)),[c,m]=(0,l.useState)(),[u,g]=(0,l.useState)(null),p=(0,l.useRef)(),h=(0,l.useCallback)(()=>{var e;null==p||null===(e=p.current)||void 0===e||e.openModal()},[]),f=(0,l.useCallback)(e=>{let t=a.findIndex(t=>t.id===e.id);t>-1&&d.setItemProp(t,"state",r.LIVED)},[s]),v=(0,l.useCallback)(e=>{let t=a.findIndex(t=>t.id===e.id);t>-1&&d.setItemProp(t,"state",r.LIVE)},[s]);return(0,l.useEffect)(()=>{setTimeout(()=>h(),1e3)},[]),(0,l.useEffect)(()=>{d.filter(e=>e.id!==(null==u?void 0:u.id)),m(null)},[u]),(0,o.FD)(nf.Provider,{value:{...e,listEvent:s,wrapperProps:n,changeToLivedEvent:f,changeToLiveEvent:v,openLeadModal:h,campaign:c,setCampaign:m,highlightEvent:u,setHighlightEvent:g},children:[(0,o.Y)(HighlightEvent,{}),(0,o.Y)(EventList,{}),c&&u&&(0,o.Y)(nA,{ref:p,event:u,campaign:c})]})};var nR=a("J+gj"),nL=a("olOo");let TypeformEmbed=e=>{let{url:t,...a}=e;return(0,o.Y)(c.Box,{component:"iframe",src:t,...a,allow:"camera; microphone; autoplay; encrypted-media;",loading:"lazy",title:"Typeform"})};var nP=(0,c.createStyles)(e=>({root:{position:"relative",padding:"".concat((0,c.rem)(40)," 0"),[e.fn.largerThan("sm")]:{padding:"".concat((0,c.rem)(80)," 0")}},inner:{display:"flex",flexDirection:"column",gap:30,position:"relative"},header:{display:"flex",alignItems:"flex-start",gap:(0,c.rem)(12),[e.fn.largerThan("sm")]:{gap:(0,c.rem)(24)}},headerContent:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:(0,c.rem)(10)},headerIcon:{flexShrink:0,width:48,[e.fn.largerThan("sm")]:{width:64}},headingWrapper:{minHeight:(0,c.rem)(48),display:"flex",alignItems:"center",[e.fn.largerThan("sm")]:{minHeight:(0,c.rem)(64)}},headerInfo:{},medicalAvatar:{flexShrink:0,width:32,[e.fn.largerThan("sm")]:{width:40}},medicalReview:{},medicalTitle:{fontSize:(0,c.rem)(14),lineHeight:"150%",letterSpacing:"-0.07px",color:"#595959"},medicalSubTitle:{fontSize:(0,c.rem)(12),lineHeight:"140%",letterSpacing:"-0.07px",color:"#595959"},iframeWrapper:{height:"80vh",backgroundColor:"#fff",position:"relative",[e.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16},[e.fn.largerThan("sm")]:{height:550,borderRadius:20}},iframe:{position:"relative",width:"100%",height:"100%",borderRadius:"inherit"},disclaimer:{},skeleton:{position:"absolute",inset:0,zIndex:0,borderRadius:0,[e.fn.largerThan("sm")]:{borderRadius:20}}}));let TypeFormInlineHeader=e=>{let{headline:t,headlineIcon:a,medicalInfo:n}=e,{classes:r}=nP(void 0,{name:"TypeFormInlineInlineScreen"}),i=!!(null==n?void 0:n.icon),l=!!(null==n?void 0:n.doctorInfo),s=!!(null==n?void 0:n.subText),d=i||l||s,m=!!(t||a&&d),u=m||d;return a||u?(0,o.FD)(c.Box,{className:r.header,children:[a&&(0,o.Y)(c.Box,{className:r.headerIcon,children:(0,o.Y)(c.AspectRatio,{ratio:1,children:(0,o.Y)("img",{loading:"lazy",src:a,alt:t})})}),u&&(0,o.FD)(c.Box,{className:r.headerContent,children:[m&&(0,o.Y)("div",{className:r.headingWrapper,children:t&&(0,o.Y)(w.Text,{size:"h2",weight:"semiBold",variant:"primary",children:t})}),d&&(0,o.FD)(c.Flex,{gap:12,align:"center",className:r.medicalReview,children:[i&&(0,o.Y)(c.Box,{className:r.medicalAvatar,children:(0,o.Y)(c.AspectRatio,{ratio:1,children:(0,o.Y)("img",{loading:"lazy",src:n.icon,alt:n.doctorInfo})})}),(l||s)&&(0,o.FD)(c.Stack,{spacing:4,children:[l&&(0,o.Y)(c.Box,{...n.url&&{component:"a",href:n.url,target:"_blank"},"data-event-category":"Reviewer Name","data-event-action":"Click text","data-event-label":n.url,className:r.medicalTitle,children:n.doctorInfo}),s&&(0,o.Y)(c.Box,{className:r.medicalSubTitle,children:n.subText})]})]})]})]}):null},FullScreen=e=>{let{data:t,url:a}=e,{disclaimer:n,headline:r,headlineIcon:i,medicalInfo:l}=t||{};return(0,o.FD)(c.Box,{sx:e=>({display:"flex",flexDirection:"column",height:"calc(100vh - 53px)",minHeight:500,paddingBottom:(0,c.rem)(40),[e.fn.largerThan("sm")]:{paddingBottom:(0,c.rem)(80)}}),children:[(0,o.Y)(v.m,{children:(0,o.Y)(TypeFormInlineHeader,{headline:r,headlineIcon:i,medicalInfo:l})}),(0,o.FD)(c.Box,{sx:{flex:1,minHeight:0,display:"flex",flexDirection:"column",gap:(0,c.rem)(30)},children:[(0,o.Y)(c.Box,{sx:{flex:1,minHeight:0},children:(0,o.Y)(TypeformEmbed,{url:a,style:{width:"100%",height:"100%",border:"none"}})}),n&&(0,o.Y)(v.m,{children:(0,o.Y)(nL.M,{contentSize:"n1",bordered:!1,description:n,HeadingWrapper:e=>(0,o.Y)(w.Text,{...e,size:"p2",sx:{textTransform:"none"}}),ContentWrapper:e=>(0,o.Y)(w.Text,{...e,size:"p3"}),icon:(0,o.Y)(nR.A,{color:"#FE921D",size:20}),expand:!1})})]})]})},InlineScreen=e=>{let{data:t,url:a}=e,{headline:n,headlineIcon:r,disclaimer:i,backgroundColor:l,medicalInfo:s}=t||{},{classes:d}=nP(void 0,{name:"TypeFormInlineInlineScreen"});return(0,o.Y)(w.TemplateProvider,{variant:w.CustomStylesType.LEADGEN,children:(0,o.Y)(c.Box,{bg:l,className:d.root,children:(0,o.FD)(v.m,{className:d.inner,children:[(0,o.Y)(TypeFormInlineHeader,{headline:n,headlineIcon:r,medicalInfo:s}),(0,o.FD)(c.Box,{className:d.iframeWrapper,children:[(0,o.Y)(c.Skeleton,{visible:!0,className:d.skeleton}),(0,o.Y)(TypeformEmbed,{url:a,className:d.iframe})]}),i&&(0,o.Y)(c.Box,{className:d.disclaimer,children:(0,o.Y)(nL.M,{contentSize:"n1",bordered:!1,description:i,HeadingWrapper:e=>(0,o.Y)(w.Text,{...e,size:"p2",sx:{textTransform:"none"}}),ContentWrapper:e=>(0,o.Y)(w.Text,{...e,size:"p3"}),icon:(0,o.Y)(nR.A,{color:"#FE921D",size:20}),expand:!1})})]})})})},TypeFormInline=e=>{var t;let a,{data:n}=e,{formId:r,displayFull:i,utmParams:s}=n||{},{query:d,asPath:c}=(0,Y.$)(),m=(0,l.useMemo)(()=>{let e={...d};return delete e.slug,e},[d]);if(!r)return null;let u=s.split("&").filter(Boolean),g=u.reduce((e,t)=>{let[a,n]=t.split("=");return a&&(e[a]=n),e},{}),p="https://form.typeform.com/to/".concat(r,"?").concat((t={ga_client:nl().get(I.pJ),page_path:c,...m,...g},a="",t&&(a=Object.keys(t).map(e=>e+"="+t[e]).join("&")),a));return i?(0,o.Y)(FullScreen,{data:n,url:p}):(0,o.Y)(InlineScreen,{data:n,url:p})},nM=(0,l.createContext)({});var n_=(0,c.createStyles)(e=>({root:{[e.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16}}}));let CarouselProgress=e=>{let{currentSlide:t,totalSlides:a,show:n,sideSpacing:r=0}=e;if(!n||a<=1)return null;let i=(Math.min(Math.max(t,0),a-1)+1)/a*100;return(0,o.Y)(c.Box,{mt:24,h:4,sx:e=>({backgroundColor:e.colors.neutral[1],borderRadius:0,marginLeft:r,marginRight:r}),children:(0,o.Y)(c.Box,{h:"100%",sx:e=>({width:"".concat(i,"%"),backgroundColor:e.colors.neutral[4],borderRadius:0,transition:"width .2s ease"})})})},SeeMoreBtnWrapper=e=>{let{onClick:t,children:a,wrapperClassName:n="flex justify-center md:justify-start",color:r}=e,{primaryColor:i}=(0,l.useContext)(nM),s=(0,C.a)();return(0,o.Y)("div",{className:n,children:(0,o.Y)(w.Button,{variant:"secondary",className:"w-full sm:w-auto",fullWidth:s,rightIcon:(0,o.Y)(ex.A,{color:"currentColor",size:18}),onClick:t,color:null!=r?r:i,children:a})})};var nz=a("HG5m");let toVideoItemData=(e,t)=>({...e,image:e.image,imageMedium:e.image,imageThumbnail:e.image,url:e.url,title:e.title,type:t?nz.V.SHORTS:nz.V.VIDEO}),useVideoLibraryLoadMore=e=>{let{totalItems:t,initialVisible:a,loadMoreStep:n,resetKey:r,desktopOnly:o=!0}=e,i=(0,C.a)(),s=(0,l.useMemo)(()=>Math.min(a,t),[a,t]),[d,c]=(0,l.useState)(s);(0,l.useEffect)(()=>{if(o&&i){c(t);return}c(s)},[o,i,t,s,r]);let m=(0,l.useCallback)(()=>{c(e=>Math.min(e+n,t))},[n,t]),u=t>a&&d({url:e.urlVideo,title:e.videoTitle||""}),useVideoLibraryRows=()=>{let{loading:e,videoData:t,videoList:a}=(0,l.useContext)(nM);return(0,l.useMemo)(()=>e&&0===t.length&&(null==a?void 0:a.length)?a.map(spotlightToVideoItemDataStub):t,[e,t,a])};var nW=a("E+gi");let VideoItemWrapper=e=>{let{loading:t}=(0,l.useContext)(nM);return(0,o.Y)(nW.V,{...e,loading:t})},FeatureShorts=e=>{let{styles:t,...a}=e,{applyCarousel:n,loading:r,primaryColor:i}=(0,l.useContext)(nM),s=useVideoLibraryRows(),d=(0,C.a)(),{formatMessage:m}=(0,k.A)(),[u,g]=(0,l.useState)(0),{classes:p}=n_(void 0,{name:"ShortReelList",styles:t}),h=(0,l.useMemo)(()=>s.map(e=>e.url).join("\x00"),[s]),f=(0,l.useMemo)(()=>s.map(e=>e.image?"1":"0").join(""),[s]),v="feature-shorts-carousel-".concat(r?"loading":"loaded","-").concat(s.length,"-").concat(h,"-").concat(f),{visibleCount:x,loadMore:b,showSeeMore:y}=useVideoLibraryLoadMore({totalItems:s.length,initialVisible:12,loadMoreStep:12,resetKey:h,desktopOnly:!0}),S=s.slice(0,x),T=y&&(0,o.Y)(SeeMoreBtnWrapper,{onClick:b,children:m({id:"videoLibrary.featureShorts.seeMore",defaultMessage:"Xem th\xeam"})}),D=!d&&!r&&s.length>6,shortsRootSx=e=>({marginTop:(0,c.rem)(-16),[e.fn.largerThan("sm")]:{marginTop:0}});return n?(0,o.Y)(c.Box,{className:"flex flex-col gap-6",sx:shortsRootSx,children:(0,o.FD)(c.Box,{className:p.root,...a,children:[(0,o.Y)(w.Carousel,{slideSize:"16.67%",slideGap:8,breakpoints:[{maxWidth:"sm",slideSize:"16.67%",slideGap:8}],withControls:D,withIndicators:!1,loop:!0,align:"start",onSlideChange:g,styles:e=>({indicators:{bottom:"auto",top:"calc(100% + 30px - 8px)"},indicator:{width:"8px",height:"8px",opacity:1,backgroundColor:e.colors.neutral[5],"&[data-active]":{backgroundColor:e.colors.blue[7]},".mantine-Carousel-control[data-inactive]":{opacity:0,cursor:"default"}},control:{width:40,height:40,opacity:1,borderColor:i,transition:"all .2s ease",svg:{width:"18px !important",height:"18px !important",color:i},"&:hover":{backgroundColor:i,svg:{color:"#fff"}}},controls:{padding:0,marginLeft:-60,marginRight:-60,top:"50%",transform:"translateY(-50%)"},viewport:{[e.fn.smallerThan("sm")]:{paddingLeft:8,paddingRight:8}}}),children:s.map((e,t)=>(0,o.Y)(w.Carousel.Slide,{children:(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,!0)})},"".concat(e.url,"-").concat(t)))},v),(0,o.Y)(CarouselProgress,{currentSlide:u,totalSlides:s.length,show:d})]})}):(0,o.FD)(c.Box,{className:"flex flex-col gap-6",sx:shortsRootSx,children:[(0,o.Y)(c.SimpleGrid,{spacing:8,verticalSpacing:24,cols:d?2:6,children:S.map((e,t)=>(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,!0)},"".concat(e.url,"-").concat(t)))}),T]})};var nH=a("yUew"),nO=a("4wSK"),nG=(0,c.createStyles)((e,t)=>{let{bgColor:a,hasOtherList:n}=t;return{root:{backgroundColor:a||e.colors.neutral[0],padding:"".concat((0,c.rem)(24)," 0"),[e.fn.largerThan("sm")]:{padding:"".concat((0,c.rem)(80)," 0")}},heading:{},playerListing:{gap:24,[e.fn.smallerThan("sm")]:{flexDirection:"column",gap:8}},heroVideo:{[e.fn.largerThan("sm")]:{width:n?"65%":"100%"}},otherListDesktop:{position:"relative",display:"flex",[e.fn.smallerThan("sm")]:{gap:8,".video-item-skeleton":{width:"45%",display:"none","&:nth-child(1),&:nth-child(2)":{display:"flex"}}},[e.fn.largerThan("sm")]:{width:"35%",flexDirection:"column",gap:24}},otherListMobile:{},videoItemSkeleton:{}}});let getTotalVideoNumber=e=>{let{totalVideos:t,applyCarousel:a,visibleCount:n,currentSlide:r,itemsPerSlide:o}=e;return t?a?Math.min((r+1)*Math.max(1,o),t):Math.min(n,t):0},renderTotalVideoText=(e,t,a)=>e({id:"common.currentOnTotalVideo",defaultMessage:"Total video {number}/{count}"},{number:t,count:a}),renderVideoTotalText=(e,t)=>{let{applyCarousel:a,showLoadMore:n,totalVideos:r,number:o,itemsPerSlide:i}=t,l=a&&"number"==typeof i&&1>=Math.ceil(r/Math.max(1,i));return(a||n)&&!l?renderTotalVideoText(e,o,r):e({id:"common.currentTotalVideo",defaultMessage:"Total video {count}"},{count:r})};var nV=a("G64l");let VideoItem=e=>{let{title:t,image:a,active:n,url:r,indexNumber:i,showIndex:l,...s}=e,{formatMessage:m}=(0,k.A)();return(0,o.Y)(c.Box,{...s,children:(0,o.FD)(c.Flex,{className:"pointer-event-child-none","data-event-category":"Service Connection","data-event-action":"Video List Click","data-event-label":r,gap:(0,c.rem)(8),align:"center",sx:e=>({[e.fn.smallerThan("sm")]:{flexDirection:"column",alignItems:"stretch"}}),children:[l&&(0,o.Y)(c.Box,{children:(0,o.Y)(w.Text,{sx:{width:16},size:"s4",weight:"semiBold",children:i})}),(0,o.FD)(c.Box,{sx:e=>({position:"relative",[e.fn.largerThan("sm")]:{width:(0,c.rem)(120)}}),children:[(0,o.Y)(c.AspectRatio,{ratio:120/68,children:(0,o.Y)("img",{loading:"lazy",src:a,alt:t,onError:e=>{e.currentTarget.src="".concat(I.nS,"/default-image.jpg")}})}),(0,o.Y)(c.Flex,{align:"center",justify:"center",sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:n?"rgba(0, 0, 0, .5)":"transparent",transition:"all .2s ease"},children:n?(0,o.Y)(w.Text,{size:"s4",weight:"semiBold",color:"#fff",children:m({id:"common.playing",defaultMessage:"Playing ..."})}):(0,o.Y)("img",{src:d.C.getAssetPath("play-circle-bg.svg"),alt:"play",loading:"lazy"})})]}),(0,o.Y)(c.Box,{sx:e=>({[e.fn.largerThan("sm")]:{width:"calc(100% - 128px)"}}),children:(0,o.Y)(w.Text,{size:"s3",weight:"semiBold",color:n?"blue.6":void 0,sx:e=>({display:"-webkit-box","-webkit-line-clamp":"2","-webkit-box-orient":"vertical",overflow:"hidden",[e.fn.largerThan("sm")]:{fontSize:(0,c.rem)(14)}}),children:t})})]})})},VideoItemSkeleton=()=>(0,o.FD)(c.Flex,{align:"center",gap:8,className:"video-item-skeleton",sx:e=>({[e.fn.smallerThan("sm")]:{flexDirection:"column"}}),children:[(0,o.Y)(c.Box,{sx:e=>({flexShrink:0,width:"100%",[e.fn.largerThan("sm")]:{width:120}}),children:(0,o.Y)(c.AspectRatio,{ratio:16/9,children:(0,o.Y)(c.Skeleton,{})})}),(0,o.FD)(c.Stack,{spacing:4,w:"100%",children:[(0,o.Y)(c.Skeleton,{width:"100%",height:12}),(0,o.Y)(c.Skeleton,{width:"100%",height:12}),(0,o.Y)(c.Skeleton,{width:"70%",height:12})]})]}),FeatureVideos=e=>{let{styles:t}=e,{autoplay:a,videoList:n,loading:r,backgroundColor:i,applyShortVideo:s,applyCarousel:d,primaryColor:m}=(0,l.useContext)(nM),u=useVideoLibraryRows(),{formatMessage:g}=(0,k.A)(),p=u.length>1,{classes:h}=nG({bgColor:i,hasOtherList:p},{name:"VideoLibrary",styles:t}),[f,v]=(0,l.useState)([]),[x,b]=(0,l.useState)(null),[y,S]=(0,l.useState)(a),[T,D]=(0,l.useState)(1),[Y,I]=(0,l.useState)(0),B=(0,C.a)(),N=(0,c.useMantineTheme)(),{ref:F,entry:E}=(0,nO.v)({threshold:1});(0,l.useEffect)(()=>{b((null==u?void 0:u[0])?{title:n[0].videoTitle,url:n[0].urlVideo}:null),v(u)},[u,n]),(0,l.useEffect)(()=>{if(E&&y){var e,t,a;null==E||null===(a=E.target)||void 0===a||null===(t=a.querySelector("iframe"))||void 0===t||null===(e=t.contentWindow)||void 0===e||e.postMessage('{"event":"command","func":"'.concat(E.isIntersecting?"playVideo":"pauseVideo",'","args":""}'),"*")}},[E]);let A={slidesToScroll:1,slideSize:"45%",slideGap:(0,c.rem)(8),withIndicators:!1,withControls:!1,align:"start",loop:!0,styles:()=>({indicators:{bottom:"auto",top:"calc(100% + 30px - 8px)"},indicator:{width:"8px",height:"8px",opacity:1,backgroundColor:N.colors.neutral[5],"&[data-active]":{backgroundColor:N.colors.blue[7]},".mantine-Carousel-control[data-inactive]":{opacity:0,cursor:"default"}}})},R=f.length>1,L=f.length>1&&(0,o.Y)(w.Text,{size:"s4",children:renderVideoTotalText(g,{applyCarousel:!1,showLoadMore:!1,totalVideos:f.length,number:getTotalVideoNumber({totalVideos:f.length,applyCarousel:!1,visibleCount:T,currentSlide:0,itemsPerSlide:1}),itemsPerSlide:1})});if(0===u.length)return null;if(s){let e=u.map(e=>e.url).join("\x00"),t=u.map(e=>e.image?"1":"0").join(""),a="feature-videos-short-carousel-".concat(r?"loading":"loaded","-").concat(u.length,"-").concat(e,"-").concat(t),n=!B&&!r&&u.length>6;return d?(0,o.Y)(c.Box,{sx:{paddingBottom:(0,c.rem)(30)},children:(0,o.Y)(w.Carousel,{slideSize:"16.67%",slideGap:8,breakpoints:[{maxWidth:"sm",slideSize:"16.67%",slideGap:8}],withControls:n,withIndicators:!1,loop:!0,align:"start",styles:e=>({indicators:{bottom:"auto",top:"calc(100% + 30px - 8px)"},indicator:{width:"8px",height:"8px",opacity:1,backgroundColor:e.colors.neutral[5],"&[data-active]":{backgroundColor:e.colors.blue[7]},".mantine-Carousel-control[data-inactive]":{opacity:0,cursor:"default"}},control:{width:40,height:40,opacity:1,borderColor:m,transition:"all .2s ease",svg:{width:"18px !important",height:"18px !important",color:m},"&:hover":{backgroundColor:m,svg:{color:"#fff"}}},controls:{padding:0,marginLeft:-60,marginRight:-60,top:"50%",transform:"translateY(-50%)"},viewport:{[e.fn.smallerThan("sm")]:{paddingLeft:8,paddingRight:8}}}),children:u.map((e,t)=>(0,o.Y)(w.Carousel.Slide,{children:(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,!0)})},"".concat(e.url,"-").concat(t)))},a)}):(0,o.Y)(c.SimpleGrid,{spacing:8,verticalSpacing:24,cols:B?2:6,children:u.map((e,t)=>(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,!0)},"".concat(e.url,"-").concat(t)))})}let P=(0,o.FD)(c.Flex,{className:h.playerListing,children:[(0,o.Y)(c.Box,{className:h.heroVideo,children:(0,o.Y)(c.AspectRatio,{ratio:16/9,children:(0,o.Y)(c.Skeleton,{})})}),p&&(0,o.Y)(c.Box,{className:h.otherListDesktop,children:[,,,,].fill("").map((e,t)=>(0,o.Y)(VideoItemSkeleton,{},String(t)))})]}),M=f.length>0?(0,o.FD)(c.Flex,{className:h.playerListing,ref:F,children:[x&&(0,o.FD)(c.Stack,{className:h.heroVideo,spacing:(0,c.rem)(16),children:[(0,o.Y)(nH.S,{url:x.url||"",autoPlay:y},x.url),!R&&(0,o.Y)(Z.H,{tag:"h3",children:x.title})]}),R&&(B?(0,o.FD)(c.Box,{sx:{paddingBottom:(0,c.rem)(30)},children:[(0,o.Y)(w.Carousel,{...A,onSlideChange:I,children:f.map((e,t)=>(0,o.Y)(w.Carousel.Slide,{children:(0,o.Y)(VideoItem,{title:e.title,url:e.url,image:e.image,active:e.url===(null==x?void 0:x.url),onClick:()=>{S(!0),b(e)},sx:{cursor:"pointer"}})},String(t)))}),(0,o.Y)(CarouselProgress,{currentSlide:Y,totalSlides:f.length,show:B})]}):(0,o.FD)(c.Box,{className:h.otherListDesktop,children:[L,(0,o.Y)(c.Box,{sx:e=>({[e.fn.largerThan("sm")]:{position:"absolute",top:(0,c.rem)(30),left:0,right:0,bottom:0}}),children:(0,o.Y)(c.ScrollArea,{h:"100%",type:"always",offsetScrollbars:!0,scrollbarSize:8,children:(0,o.Y)(c.Flex,{sx:{flexDirection:"column",gap:(0,c.rem)(24)},children:f.map((e,t)=>(0,o.Y)(VideoItem,{indexNumber:t+1,showIndex:!B,title:e.title,url:e.url,image:e.image,active:e.url===(null==x?void 0:x.url),onClick:()=>{D(t+1),S(!0),b(e)},sx:{cursor:"pointer"}},String(t)))})})})]}))]}):null;return r?P:M};var nj=(0,c.createStyles)((e,t)=>{let{bgColor:a}=t;return{root:{backgroundColor:a||e.colors.neutral[0],padding:"".concat((0,c.rem)(24)," 0"),".mantine-VideoItem__VideoItem-title,.mantine-VideoItem__ShortsItem-title":{[e.fn.largerThan("sm")]:{fontSize:(0,c.rem)(14)}},[e.fn.largerThan("sm")]:{padding:"".concat((0,c.rem)(80)," 0")}},heading:{}}});let videoLibraryGapClass=e=>e?"gap-y-4 md:gap-y-6 gap-x-2":"gap-6",videoLibraryGapRem=e=>(0,c.rem)(24),VideoLibraryIcon=e=>{let{src:t,alt:a="",isNestle:n}=e;return(0,o.Y)("div",{className:(0,c.clsx)("flex h-16 w-full items-center md:h-20 md:justify-start",n?"justify-center":"justify-start"),children:(0,o.Y)("img",{src:t,alt:a,className:(0,c.clsx)("h-full max-h-16 w-full object-contain md:max-h-20 md:object-left",n?"object-center":"object-left"),loading:"lazy"})})},VideoLibraryIconAbove=e=>{let{icon:t,alt:a,isNestle:n,children:r}=e;return t||r?(0,o.FD)("div",{className:"flex flex-col gap-6 md:gap-10",children:[t&&(0,o.Y)(VideoLibraryIcon,{src:t,alt:a,isNestle:n}),r]}):null},VideoLibrarySectionHeader=e=>{let{icon:t,title:a,description:n,isNestle:r,className:i,iconAlt:l=""}=e;return t||a||n?(0,o.FD)("div",{className:(0,c.clsx)("flex flex-col gap-2",i),children:[(0,o.Y)(VideoLibraryIconAbove,{icon:t,alt:l,isNestle:r,children:a}),n&&(0,o.Y)(w.Text,{size:"p3",c:"gray.6",children:n})]}):null},WrapperSection=e=>{let{styles:t,className:a,children:n,...r}=e,{applyH1:i,title:s,description:d,backgroundColor:m,applyShortVideo:u,icon:g,isNestle:p}=(0,l.useContext)(nM),{classes:h,cx:f}=nj({bgColor:m},{name:"VideoLibrary",styles:t});return(0,o.Y)(c.Box,{...r,className:f(a,h.root),children:(0,o.Y)(v.m,{children:(0,o.FD)(c.Stack,{spacing:8,sx:e=>({gap:videoLibraryGapRem(u),[e.fn.largerThan("sm")]:{gap:(0,c.rem)(40)}}),children:[(0,o.Y)(VideoLibrarySectionHeader,{icon:g,iconAlt:s,isNestle:p,description:d,title:s?(0,o.Y)(w.Text,{size:"h2",as:i?"h1":"h2",className:h.heading,children:s}):void 0}),n]})})})},FeatureLayout=()=>{let{applyShortVideo:e,videoList:t}=(0,l.useContext)(nM);return 0===t.length?null:(0,o.Y)(WrapperSection,{children:e?(0,o.Y)(FeatureShorts,{}):(0,o.Y)(FeatureVideos,{})})},GridLayout=()=>{let{applyShortVideo:e,applyCarousel:t,loading:a,primaryColor:n}=(0,l.useContext)(nM),r=useVideoLibraryRows(),i=(0,C.a)(),s=!t&&i?4:t?r.length:e?12:8,d=!t&&i?4:t?r.length:e?12:8,{formatMessage:m}=(0,k.A)(),[u,g]=(0,l.useState)(0),p=(0,l.useMemo)(()=>r.map(e=>e.url).join("\x00"),[r]),h=(0,l.useMemo)(()=>r.map(e=>e.image?"1":"0").join(""),[r]),f="grid-carousel-".concat(e?"short":"long","-").concat(a?"loading":"loaded","-").concat(r.length,"-").concat(p,"-").concat(h),{visibleCount:v,loadMore:x,showSeeMore:b}=useVideoLibraryLoadMore({totalItems:r.length,initialVisible:s,loadMoreStep:d,resetKey:p,desktopOnly:!1});if(!r.length)return null;let y=r.slice(0,v),S=videoLibraryGapClass(e),T=b&&(0,o.Y)(SeeMoreBtnWrapper,{onClick:x,children:m({id:"videoLibrary.grid.seeMore",defaultMessage:"Xem th\xeam"})});if(t&&e){let e=i?y.reduce((e,t,a,n)=>(a%2==0&&e.push(n.slice(a,a+2)),e),[]):y.map(e=>[e]),t=!i&&!a&&e.length>6;return(0,o.FD)(WrapperSection,{children:[(0,o.FD)(c.Box,{sx:e=>({[e.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16}}),children:[(0,o.Y)(w.Carousel,{slideSize:"16.67%",slideGap:8,breakpoints:[{maxWidth:"sm",slideSize:e.length<=1?"100%":"45%",slideGap:8}],withControls:t,withIndicators:!1,loop:!0,align:"start",onSlideChange:g,styles:e=>({indicators:{bottom:"auto",top:"calc(100% + 30px - 8px)"},indicator:{width:"8px",height:"8px",opacity:1,backgroundColor:e.colors.neutral[5],"&[data-active]":{backgroundColor:e.colors.blue[7]},".mantine-Carousel-control[data-inactive]":{opacity:0,cursor:"default"}},control:{width:40,height:40,opacity:1,borderColor:n,transition:"all .2s ease",svg:{width:"18px !important",height:"18px !important",color:n},"&:hover":{backgroundColor:n,svg:{color:"#fff"}}},controls:{padding:0,marginLeft:-60,marginRight:-60,top:"50%",transform:"translateY(-50%)"},viewport:{[e.fn.smallerThan("sm")]:{paddingLeft:16,paddingRight:16}}}),children:e.map((e,t)=>(0,o.Y)(w.Carousel.Slide,{children:(0,o.Y)("div",{className:(0,c.clsx)("grid grid-cols-1",S),children:e.map((e,a)=>(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,!0)},"".concat(e.url,"-").concat(t,"-").concat(a)))})},String(t)))},f),(0,o.Y)(CarouselProgress,{currentSlide:u,totalSlides:e.length,show:i,sideSpacing:16})]}),T]})}if(t&&!e){let e=y.length<=1?"100%":"85%",t=!i&&!a&&y.length>4;return(0,o.FD)(WrapperSection,{children:[(0,o.FD)(c.Box,{sx:e=>({[e.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16}}),children:[(0,o.Y)(w.Carousel,{slideSize:"25%",slideGap:24,breakpoints:[{maxWidth:"sm",slideSize:e,slideGap:16}],withControls:t,withIndicators:!1,loop:!0,align:"start",onSlideChange:g,styles:e=>({indicators:{bottom:"auto",top:"calc(100% + 30px - 8px)"},indicator:{width:"8px",height:"8px",opacity:1,backgroundColor:e.colors.neutral[5],"&[data-active]":{backgroundColor:e.colors.blue[7]},".mantine-Carousel-control[data-inactive]":{opacity:0,cursor:"default"}},control:{width:40,height:40,opacity:1,borderColor:n,transition:"all .2s ease",svg:{width:"18px !important",height:"18px !important",color:n},"&:hover":{backgroundColor:n,svg:{color:"#fff"}}},controls:{padding:0,marginLeft:-60,marginRight:-60,top:"50%",transform:"translateY(-50%)"},viewport:{[e.fn.smallerThan("sm")]:{paddingLeft:16,paddingRight:16}}}),children:y.map((e,t)=>(0,o.Y)(w.Carousel.Slide,{children:(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,!1)})},"".concat(e.url,"-").concat(t)))},f),(0,o.Y)(CarouselProgress,{currentSlide:u,totalSlides:y.length,show:i,sideSpacing:16})]}),T]})}return(0,o.FD)(WrapperSection,{children:[(0,o.Y)("div",{className:(0,c.clsx)(e?"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-6":"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",S),children:y.map((t,a)=>(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(t,e)},"".concat(t.url,"-").concat(a)))}),T]})},ListLayout=()=>{let{applyCarousel:e,loading:t,adUnitPath:a,primaryColor:n}=(0,l.useContext)(nM),r=useVideoLibraryRows(),i=(0,C.a)(),s=!!a,d=e?r.length:i?6:s?6:12,m=e?r.length:i?6:s?6:12,{formatMessage:u}=(0,k.A)(),[g,p]=(0,l.useState)(0),h=i?4:6,f=(0,l.useMemo)(()=>r.map(e=>e.url).join("\x00"),[r]),v=(0,l.useMemo)(()=>r.map(e=>"".concat(e.url,"|").concat(e.image?"1":"0","|").concat(e.title)).join("\x00"),[r]),[x,b]=(0,l.useState)(()=>Math.min(d,r.length));(0,l.useEffect)(()=>{b(Math.min(d,r.length))},[f,r.length,d]),(0,l.useEffect)(()=>{p(0)},[v,h]);let y=(0,l.useCallback)(()=>{b(e=>Math.min(e+m,r.length))},[m,r.length]);if(!r.length)return null;let S=r.slice(0,x),T=!e&&r.length>d&&x({".video-info":{justifyContent:"center"},".mantine-VideoItem__VideoItem-inner":{gap:8},".mantine-VideoItem__VideoItem-thumb":{width:120},".mantine-VideoItem__VideoItem-overlay":{svg:{width:32,height:32}},[e.fn.smallerThan("sm")]:{marginLeft:0,marginRight:0}})};if(e){let e=function(e,t){let a=[];for(let n=0;n1:e.length>2),carouselStyles=e=>{var t,a;let r=e.colors,o=null!==(a=null===(t=r.neutral)||void 0===t?void 0:t[5])&&void 0!==a?a:e.colors.gray[5];return{indicators:{bottom:"auto",top:"calc(100% + 30px - 8px)"},indicator:{width:"8px",height:"8px",opacity:1,backgroundColor:o,"&[data-active]":{backgroundColor:e.colors.blue[7]},".mantine-Carousel-control[data-inactive]":{opacity:0,cursor:"default"}},control:{width:40,height:40,opacity:1,borderColor:n,transition:"all .2s ease",svg:{width:"18px !important",height:"18px !important",color:n},"&:hover":{backgroundColor:n,svg:{color:"#fff"}}},controls:{padding:0,marginLeft:-60,marginRight:-60,top:"50%",transform:"translateY(-50%)"},viewport:{[e.fn.smallerThan("sm")]:{paddingLeft:16,paddingRight:16}}}};return(0,o.FD)(WrapperSection,{...N,children:[s?(0,o.FD)("div",{className:(0,c.clsx)("grid grid-cols-1 lg:grid-cols-[1fr_300px]",D),children:[(0,o.FD)(c.Box,{sx:e=>({[e.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16}}),children:[(0,o.Y)(w.Carousel,{slideSize:"100%",slideGap:24,breakpoints:[{maxWidth:"sm",slideSize:r,slideGap:24}],withControls:l,withIndicators:!1,loop:!0,align:"start",onSlideChange:p,styles:carouselStyles,children:e.map((e,t)=>(0,o.Y)(w.Carousel.Slide,{children:(0,o.Y)("div",{className:(0,c.clsx)("grid grid-cols-1",D),children:e.map((e,a)=>(0,o.Y)(VideoItemWrapper,{...Y,data:toVideoItemData(e,!1)},"".concat(e.url,"-").concat(t,"-").concat(a)))})},String(t)))}),(0,o.Y)(CarouselProgress,{currentSlide:g,totalSlides:e.length,show:i,sideSpacing:16})]}),B&&I,(0,o.Y)(e4.A,{adUnitPath:a,size:[[300,250]],divId:"article-top-banner-desktop",pos:["TopBanner"]})]}):(0,o.FD)(c.Box,{sx:e=>({[e.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16}}),children:[(0,o.Y)(w.Carousel,{slideSize:"50%",slideGap:24,breakpoints:[{maxWidth:"sm",slideSize:r,slideGap:24}],withControls:l,withIndicators:!1,loop:!0,align:"start",onSlideChange:p,styles:carouselStyles,children:e.map((e,t)=>(0,o.Y)(w.Carousel.Slide,{children:(0,o.Y)("div",{className:(0,c.clsx)("grid grid-cols-1",D),children:e.map((e,a)=>(0,o.Y)(VideoItemWrapper,{...Y,data:toVideoItemData(e,!1)},"".concat(e.url,"-").concat(t,"-").concat(a)))})},String(t)))}),(0,o.Y)(CarouselProgress,{currentSlide:g,totalSlides:e.length,show:i,sideSpacing:16})]}),!B&&I]})}return(0,o.FD)(WrapperSection,{...N,children:[s?(0,o.FD)("div",{className:(0,c.clsx)("grid grid-cols-1 lg:grid-cols-[1fr_300px]",D),children:[(0,o.Y)("div",{className:(0,c.clsx)("grid grid-cols-1",D),children:S.map((e,t)=>(0,o.Y)(VideoItemWrapper,{...Y,data:toVideoItemData(e,!1)},"".concat(e.url,"-").concat(t)))}),B&&I,(0,o.Y)(e4.A,{adUnitPath:a,size:[[300,250]],divId:"article-top-banner-desktop",pos:["TopBanner"]})]}):(0,o.Y)("div",{className:(0,c.clsx)("grid grid-cols-1 sm:grid-cols-2",D),children:S.map((e,t)=>(0,o.Y)(VideoItemWrapper,{...Y,data:toVideoItemData(e,!1)},"".concat(e.url,"-").concat(t)))}),!B&&I]})};function SplitGridLayout_chunkVideos(e,t){let a=[];for(let n=0;n{let{title:e,description:t,applyH1:a,backgroundColor:n,applyShortVideo:r,applyCarousel:i,loading:s,primaryColor:d,icon:m,isNestle:u}=(0,l.useContext)(nM),g=useVideoLibraryRows(),p=(0,C.a)(),h=p?i?g.length:4:i?g.length:r?9:12,f=p?i?g.length:4:i?g.length:r?12:8,{formatMessage:x}=(0,k.A)(),[b,y]=(0,l.useState)(0),S=(0,l.useMemo)(()=>g.map(e=>e.url).join("\x00"),[g]),T=(0,l.useMemo)(()=>g.map(e=>e.image?"1":"0").join(""),[g]),D="split-grid-carousel-".concat(r?"short":"long","-").concat(s?"loading":"loaded","-").concat(g.length,"-").concat(S,"-").concat(T),{visibleCount:Y,loadMore:I,showSeeMore:B}=useVideoLibraryLoadMore({totalItems:g.length,initialVisible:h,loadMoreStep:f,resetKey:S,desktopOnly:!1});if(!g.length)return null;let N=a?"h1":"h2",F=(0,c.clsx)("text-[32px] leading-[42px] md:text-[40px] md:leading-[52px]"),splitGridHeaderBlock=a=>(0,o.Y)(VideoLibrarySectionHeader,{icon:m,iconAlt:e,isNestle:u,description:t,className:a,title:e?(0,o.Y)("div",{className:"flex flex-col gap-2 md:flex-row md:items-center md:justify-between",children:(0,o.Y)(w.Text,{as:N,size:"h2",weight:"semiBold",variant:"primary",className:F,children:e})}):void 0}),E=g.slice(0,Y),A=E.slice(0,4),R=E.slice(4),L=E.slice(0,3),P=E.slice(3),M=videoLibraryGapClass(r);if(i){let carouselCommonStyles=e=>({indicators:{bottom:"auto",top:"calc(100% + 30px - 8px)"},indicator:{width:"8px",height:"8px",opacity:1,backgroundColor:e.colors.neutral[5],"&[data-active]":{backgroundColor:e.colors.blue[7]},".mantine-Carousel-control[data-inactive]":{opacity:0,cursor:"default"}},control:{width:40,height:40,opacity:1,borderColor:d,transition:"all .2s ease",svg:{width:"18px !important",height:"18px !important",color:d},"&:hover":{backgroundColor:d,svg:{color:"#fff"}}},controls:{padding:0,marginLeft:-60,marginRight:-60,top:"50%",transform:"translateY(-50%)"},viewport:{[e.fn.smallerThan("sm")]:{paddingLeft:16,paddingRight:16}}}),e=!p&&!s&&E.length>3,t=!p&&!s&&SplitGridLayout_chunkVideos(E,4).length>1,carouselWrapperSx=e=>({[e.fn.smallerThan("sm")]:{marginLeft:-16,marginRight:-16},".mantine-VideoItem__VideoItem-title,.mantine-VideoItem__ShortsItem-title":{[e.fn.largerThan("sm")]:{fontSize:(0,c.rem)(14)}}});return(0,o.Y)(c.Box,{className:"py-6 md:py-20",style:{backgroundColor:n||"#f5f5f5"},sx:e=>({".mantine-VideoItem__VideoItem-title,.mantine-VideoItem__ShortsItem-title":{[e.fn.largerThan("sm")]:{fontSize:(0,c.rem)(14)}}}),children:(0,o.Y)(v.m,{children:(0,o.FD)("div",{className:(0,c.clsx)("grid grid-cols-1 lg:grid-cols-2","gap-y-6 lg:gap-x-10"),children:[splitGridHeaderBlock("lg:pr-10"),r?(0,o.FD)(c.Box,{sx:carouselWrapperSx,children:[(0,o.Y)(w.Carousel,{slideSize:"33.33%",slideGap:8,breakpoints:[{maxWidth:"sm",slideSize:"45%",slideGap:8}],withControls:e,withIndicators:!1,loop:!0,align:"start",onSlideChange:y,styles:carouselCommonStyles,children:(p?SplitGridLayout_chunkVideos(E,2):E.map(e=>[e])).map((e,t)=>(0,o.Y)(w.Carousel.Slide,{children:(0,o.Y)("div",{className:(0,c.clsx)("grid grid-cols-1",M),children:e.map((e,a)=>(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,!0)},"".concat(e.url,"-").concat(t,"-").concat(a)))})},String(t)))},D),(0,o.Y)(CarouselProgress,{currentSlide:b,totalSlides:p?SplitGridLayout_chunkVideos(E,2).length:E.length,show:p,sideSpacing:16})]}):(0,o.Y)(c.Box,{sx:carouselWrapperSx,children:(()=>{let e=E.length<=1?"100%":"85%";return(0,o.FD)(o.FK,{children:[(0,o.Y)(w.Carousel,{slideSize:"100%",slideGap:16,breakpoints:[{maxWidth:"sm",slideSize:e,slideGap:16}],withControls:t,withIndicators:!1,loop:!0,align:"start",onSlideChange:y,styles:carouselCommonStyles,children:(p?E.map(e=>[e]):SplitGridLayout_chunkVideos(E,4)).map((e,t)=>(0,o.Y)(w.Carousel.Slide,{children:(0,o.Y)("div",{className:(0,c.clsx)(p?"grid grid-cols-1 gap-4":"grid grid-cols-2 grid-rows-2",!p&&M),children:e.map((e,a)=>(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,!1)},"".concat(e.url,"-").concat(t,"-").concat(a)))})},String(t)))},D),(0,o.Y)(CarouselProgress,{currentSlide:b,totalSlides:p?E.length:SplitGridLayout_chunkVideos(E,4).length,show:p,sideSpacing:16})]})})()})]})})})}let _=splitGridHeaderBlock("lg:col-span-3");return p&&!i?(0,o.Y)("section",{className:"py-6 md:py-20",style:{backgroundColor:n||"#f5f5f5"},children:(0,o.Y)(v.m,{children:(0,o.FD)("div",{className:(0,c.clsx)("flex flex-col",M),children:[_,(0,o.Y)("div",{className:(0,c.clsx)(r?"grid grid-cols-2":"grid grid-cols-1",M),children:E.map((e,t)=>(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,r)},"".concat(e.url,"-").concat(t)))}),B&&(0,o.Y)(SeeMoreBtnWrapper,{onClick:I,children:x({id:"videoLibrary.splitGrid.seeMore",defaultMessage:"Xem th\xeam"})})]})})}):(0,o.Y)(c.Box,{className:"py-6 md:py-20",style:{backgroundColor:n||"#f5f5f5"},sx:e=>({".mantine-VideoItem__VideoItem-title,.mantine-VideoItem__ShortsItem-title":{[e.fn.largerThan("sm")]:{fontSize:(0,c.rem)(14)}}}),children:(0,o.Y)(v.m,{children:(0,o.FD)("div",{className:(0,c.clsx)("flex flex-col",M),children:[r?(0,o.FD)(o.FK,{children:[(0,o.FD)("div",{className:(0,c.clsx)("grid grid-cols-1 gap-y-4 md:gap-y-6 lg:grid-cols-6 lg:gap-x-10"),children:[_,(0,o.Y)("div",{className:(0,c.clsx)("grid grid-cols-1 sm:grid-cols-2","gap-y-4 md:gap-y-6 gap-x-2","lg:col-span-3 lg:grid-cols-3"),children:L.map((e,t)=>(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,r)},"".concat(e.url,"-").concat(t)))})]}),P.length>0&&(0,o.Y)("div",{className:(0,c.clsx)("grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-6",M),children:P.map((e,t)=>(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,r)},"".concat(e.url,"-").concat(t+3)))})]}):(0,o.FD)(o.FK,{children:[(0,o.FD)("div",{className:(0,c.clsx)("grid grid-cols-1 gap-y-6 lg:grid-cols-2 lg:gap-x-10"),children:[splitGridHeaderBlock(),(0,o.Y)("div",{className:(0,c.clsx)("grid grid-cols-1 sm:grid-cols-2",M),children:A.map((e,t)=>(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,r)},"".concat(e.url,"-").concat(t)))})]}),R.length>0&&(0,o.Y)("div",{className:(0,c.clsx)("grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",M),children:R.map((e,t)=>(0,o.Y)(VideoItemWrapper,{data:toVideoItemData(e,r)},"".concat(e.url,"-").concat(t+4)))})]}),B&&(0,o.Y)(SeeMoreBtnWrapper,{onClick:I,children:x({id:"videoLibrary.splitGrid.seeMore",defaultMessage:"Xem th\xeam"})})]})})})},VideoLibrary=e=>{let{sessionProps:t,autoPlay:a=!1,applyH1:n,adUnitPath:r,primaryColor:i,isNestle:s}=e,{title:d,description:c,videoLayout:m,videoList:u,applyShortVideo:g,applyCarousel:p,backgroundColor:h,icon:f}=t,[v,x]=(0,l.useState)(!0),[b,y]=(0,l.useState)(u.map(e=>({title:e.videoTitle,url:e.urlVideo}))),C=(0,l.useCallback)(async()=>{try{x(!0);let e=await (0,nV.M)(u);y(e||[])}catch(e){console.log(e),y([])}finally{x(!1)}},[u]);return(0,l.useEffect)(()=>{u.length>0&&C()},[u.length,C]),(0,o.Y)(nM.Provider,{value:{applyH1:n,title:d,description:c,autoplay:a,videoList:u,videoData:b,applyShortVideo:g,applyCarousel:p,backgroundColor:h,loading:v,adUnitPath:r,primaryColor:i,icon:f,isNestle:s},children:m===tN.sp.Feature?(0,o.Y)(FeatureLayout,{}):m===tN.sp.SplitVideoGrid?(0,o.Y)(SplitGridLayout,{}):m===tN.sp.Grid?(0,o.Y)(GridLayout,{}):m===tN.sp.List?(0,o.Y)(ListLayout,{}):null})};var nU=a("NwNR"),nK=a("LN2W"),nq=a("qwwa"),nQ=a("BlBm"),nX=a("LkQj"),nJ=a("Imrq"),nZ=a("qeL+"),n$=a("VBYX"),n0=a("rxll"),n1=a("AuMj"),n2=a("U6DU"),n4=a("/zZM"),n8=a.n(n4);let Breadcrumb=e=>{var t;let{spotlight:a}=e,{asPath:n,locale:r}=(0,Y.$)(),{formatMessage:i}=(0,k.A)(),s=(0,C.a)(),d=(0,U.m)(),m=(0,A.L)(()=>p(!1)),u=(0,c.useMantineTheme)(),[g,p]=(0,l.useState)(!1),h=n.startsWith("/spotlight/")?"/spotlight/":"/",f=((null==a?void 0:a.listGroup)||[]).map(e=>({label:e.name,icon:e.icon,value:e.groupId,url:"".concat(h).concat(a.postName,"/").concat(e.groupId)})),v=(null===(t=f.filter(e=>e.value===a.groupIdActive))||void 0===t?void 0:t[0])||{};return a.listGroup.length>1?(0,o.FD)(c.Box,{ref:m,sx:e=>({position:"relative",img:{width:(0,c.rem)(24)},userSelect:"none",cursor:"pointer",[e.fn.smallerThan("sm")]:{marginLeft:(0,c.rem)(-16),marginRight:(0,c.rem)(-16),paddingLeft:(0,c.rem)(48),paddingRight:(0,c.rem)(40),paddingTop:(0,c.rem)(10),paddingBottom:(0,c.rem)(10)},[e.fn.largerThan("sm")]:{display:"inline-block",paddingLeft:(0,c.rem)(32),paddingRight:(0,c.rem)(24),paddingTop:(0,c.rem)(16),paddingBottom:(0,c.rem)(16)}}),"data-event-category":"Service Connection","data-event-action":"Curated for Audience Type Click","data-event-label":d,className:"pointer-event-child-none",onClick:()=>p(!g),children:[(0,o.Y)(c.Flex,{align:"center",sx:e=>({position:"absolute",top:0,left:0,bottom:0,[e.fn.smallerThan("sm")]:{left:(0,c.rem)(16)}}),children:(0,o.Y)("img",{src:"".concat(v.icon,"?w=80&q=90"),style:{borderRadius:"inherit"},alt:"",loading:"lazy"})}),(0,o.Y)(c.Flex,{align:"center",sx:{position:"absolute",top:0,right:0,bottom:0,[u.fn.smallerThan("sm")]:{right:(0,c.rem)(16)}},children:(0,o.Y)(icons_ArrowDown,{size:20,color:u.colors.gray[6]})}),(0,o.FD)(c.Box,{sx:e=>({[e.fn.smallerThan("sm")]:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),children:[(0,o.Y)(w.Text,{size:"p1",as:"span",children:i({id:"carePath.audienceBreadcrumb.label",defaultMessage:"Curated for"})}),(0,o.FD)(w.Text,{size:"s2",as:"span",sx:e=>({marginLeft:(0,c.rem)(8),[e.fn.largerThan("sm")]:{position:"relative"}}),children:[(null==v?void 0:v.label)||i({id:"carePath.audienceBreadcrumb.defaultLabel"}),(0,o.Y)(c.Box,{sx:e=>({display:g?"block":"none",position:"absolute",left:0,top:"100%",whiteSpace:"nowrap",background:"#fff",border:"1px solid ".concat(e.colors.gray[1]),zIndex:1,padding:(0,c.rem)(2),boxShadow:"1px 1px 4px 1px rgba(0,0,0,0.05)","*":{pointerEvents:"auto"},[e.fn.smallerThan("sm")]:{width:"100%"},[e.fn.largerThan("sm")]:{borderRadius:(0,c.rem)(4),top:"calc(100% + 8px)"}}),children:(0,o.Y)(c.Stack,{spacing:0,children:f.filter(e=>e.value!==a.groupIdActive).map((e,t)=>(0,o.Y)(n8(),{prefetch:!1,href:e.url,passHref:!0,legacyBehavior:!0,children:(0,o.FD)(c.Box,{"data-event-category":"Service Connection","data-event-action":"Curated for ".concat(e.label," Click"),"data-event-label":"https://".concat(e3.y[r]).concat(e.url),component:"a",sx:e=>({display:"flex",alignItems:"center",gap:(0,c.rem)(8),padding:"".concat((0,c.rem)(8)," ").concat((0,c.rem)(16)),cursor:"pointer","&:hover":{background:e.colors.gray[1]},img:{maxWidth:(0,c.rem)(24),maxHeight:(0,c.rem)(24)},"*":{pointerEvents:"none"}}),onClick:()=>{p(!1)},children:[(0,o.Y)("img",{src:"".concat(e.icon,"?w=80&q=90"),style:{borderRadius:"inherit"},alt:"",loading:"lazy"}),(0,o.Y)(w.Text,{size:s?"p1":"p3",children:e.label})]},String(t))},String(t)))})})]})]})]}):null};var n3=(0,c.createStyles)(e=>({layout:{display:"grid",gridTemplateColumns:"1fr",gap:(0,c.rem)(24),alignItems:"start",[e.fn.largerThan("sm")]:{gridTemplateColumns:"minmax(280px, 1fr) minmax(0, 2fr)",gap:(0,c.rem)(48)}},layoutFull:{[e.fn.largerThan("sm")]:{gridTemplateColumns:"1fr"}},header:{display:"flex",flexDirection:"column",gap:(0,c.rem)(8)},headerTop:{display:"flex",flexDirection:"column",gap:(0,c.rem)(24),[e.fn.smallerThan("sm")]:{flexDirection:"row",alignItems:"flex-start",gap:(0,c.rem)(16)}},icon:{width:(0,c.rem)(80),height:(0,c.rem)(80),flexShrink:0,img:{display:"block",width:"100%",height:"100%",objectFit:"contain"},[e.fn.smallerThan("sm")]:{width:(0,c.rem)(48),height:(0,c.rem)(48)}},titleWrapper:{display:"flex",alignItems:"center",minHeight:(0,c.rem)(80),[e.fn.smallerThan("sm")]:{minHeight:(0,c.rem)(48)}},accordionCol:{minWidth:0,width:"100%"}}));let hasHtml=e=>/<[a-z][\s\S]*>/i.test(e),FaqsSectionHeader=e=>{let{title:t,description:a,icon:n,applyH1:r,className:i,...l}=e,{classes:s,cx:d}=n3(void 0,{name:"CarePathFaqs__Header"}),m=(0,C.a)();if(!t&&!a&&!n)return null;let u={size:m?"p2":"p3",color:"gray.6"},g=!!("string"==typeof n&&n.length>0||t);return(0,o.FD)(c.Box,{className:d(s.header,i),...l,children:[g?(0,o.FD)(c.Box,{className:s.headerTop,children:["string"==typeof n&&n.length>0?(0,o.Y)(c.Box,{className:s.icon,children:(0,o.Y)("img",{src:n,alt:t||"",loading:"lazy"})}):null,t?(0,o.Y)(c.Box,{className:s.titleWrapper,children:(0,o.Y)(w.Text,{size:m?"h3":"h2",as:r?"h1":"h2",weight:"semiBold",variant:"primary",children:t})}):null]}):null,a?(0,o.Y)(c.Box,{sx:e=>({[e.fn.largerThan("sm")]:{maxWidth:(0,c.rem)(360)}}),children:hasHtml(a)?(0,o.Y)(ez.f2,{content:a,...u}):(0,o.Y)(w.Text,{...u,children:a})}):null]})};var n6=(0,c.createStyles)(function(e){let{indicatorActiveColor:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{root:{width:"100%"},carouselIndicators:{position:"static",marginTop:(0,c.rem)(24),gap:(0,c.rem)(8),justifyContent:"center"},carouselIndicator:{width:(0,c.rem)(8),height:(0,c.rem)(8),minWidth:(0,c.rem)(8),borderRadius:"50%",backgroundColor:e.colors.neutral[2],opacity:1,transition:"background-color 200ms ease","&[data-active]":{backgroundColor:t||e.colors.blue[5]}},carouselProgressRoot:{marginTop:(0,c.rem)(24),height:(0,c.rem)(4),borderRadius:(0,c.rem)(4),backgroundColor:"rgba(27, 50, 80, 0.1)"},carouselProgressBar:{backgroundColor:t||e.fn.primaryColor(),borderRadius:(0,c.rem)(4)},outerItem:{border:0,backgroundColor:"transparent","&:not(:first-of-type)":{marginTop:(0,c.rem)(8)}},outerControl:{padding:"".concat((0,c.rem)(12)," 0"),borderTop:0,borderBottom:"1px solid ".concat(e.colors.neutral[1]),"&:hover":{backgroundColor:"transparent"},'&[data-active="true"]':{borderBottom:0,".mantine-Accordion-label p":{fontWeight:w.FontWeight.semiBold}}},outerLabel:{padding:0},outerChevron:{marginRight:(0,c.rem)(12),width:(0,c.rem)(28)},outerContent:{padding:0},innerPanel:{overflow:"hidden",[e.fn.smallerThan("sm")]:{display:"flex",flexDirection:"column",gap:(0,c.rem)(8),padding:0,border:0,backgroundColor:"transparent",overflow:"visible"}},innerItem:{border:0,borderRadius:8,backgroundColor:e.white,overflow:"hidden","&:not(:first-of-type)":{marginTop:(0,c.rem)(8)},"&:last-of-type":{borderBottom:0}},innerControl:{padding:"".concat((0,c.rem)(16)," ").concat((0,c.rem)(16)),"&:hover":{backgroundColor:e.white},'&[data-active="true"]':{".mantine-Accordion-label p":{fontWeight:w.FontWeight.semiBold}}},innerChevron:{"&[data-rotate]":{transform:"none"},"& [data-minus-icon]":{display:"none"},"&[data-rotate] [data-plus-icon]":{display:"none"},"&[data-rotate] [data-minus-icon]":{display:"block"}},innerLabel:{padding:0},innerContent:{padding:"0 ".concat((0,c.rem)(16)," ").concat((0,c.rem)(16))},innerAnswer:{a:{color:e.fn.primaryColor()}}}}),n5=a("kd6S");let PlusMinusChevron=e=>{let{style:t,size:a=20,color:n="#111111",...r}=e,i={size:a,color:n,...r};return(0,o.FD)(o.FK,{children:[(0,o.Y)(tY.A,{...i,style:t,"data-plus-icon":!0}),(0,o.Y)(n5.A,{...i,style:t,"data-minus-icon":!0})]})},ChevronUpDown=e=>{let{"data-rotate":t,style:a,size:n=20,color:r="#111111",...i}=e;return(0,o.Y)(aU.A,{size:n,color:r,...i,style:{...a,transform:t?"rotate(180deg)":void 0,transition:"transform 200ms ease"}})},InnerFaqAccordion=e=>{let{faqs:t,defaultActiveItem:a="0"}=e,{classes:n}=n6({},{name:"CarePathFaqs__Inner"}),[r,i]=(0,l.useState)(a),s=(0,U.m)();return t.length?(0,o.Y)(w.TemplateProvider,{variant:w.CustomStylesType.LEADGEN,children:(0,o.Y)(c.Box,{className:n.innerPanel,children:(0,o.Y)(c.Accordion,{value:r,onChange:i,chevron:(0,o.Y)(PlusMinusChevron,{size:24,color:"#595959"}),classNames:{item:n.innerItem,control:n.innerControl,chevron:n.innerChevron,label:n.innerLabel,content:n.innerContent},children:t.map((e,t)=>{let a=String(t);return(0,o.FD)(c.Accordion.Item,{value:a,children:[(0,o.Y)(c.Accordion.Control,{"data-event-category":"Service Connection","data-event-action":r===a?"FAQ section - Action Collapsing":"FAQ section - Action Expanding","data-event-label":"".concat(e.question,"^").concat(s),className:"pointer-event-child-none",children:(0,o.Y)(w.Text,{size:"p2",weight:"semiBold",variant:"primary",children:e.question})}),(0,o.Y)(c.Accordion.Panel,{children:(0,o.Y)(ez.f2,{className:n.innerAnswer,content:e.answer,size:"p2",variant:"secondary"})})]},t)})})})}):null},KeyPillarsFaqs=e=>{let{listing:t,applyCarousel:a}=e,{activeTheme:n}=(0,l.useContext)(eU.d),r=(0,C.a)(),i=(0,U.m)(),[s,d]=(0,l.useState)(null),[m,u]=(0,l.useState)(0),[g,p]=(0,l.useState)(0),[h,f]=(0,l.useState)("group-0"),{classes:v}=n6({indicatorActiveColor:null==n?void 0:n.primary},{name:"CarePathFaqs__KeyPillars"}),x=["primary","secondary","tertiary","quaternary"];if((0,l.useEffect)(()=>{if(!a||!s)return;let handleSelect=()=>{u(e=>e+1)};return s.on("select",handleSelect),()=>{s.off("select",handleSelect)}},[a,s]),(0,l.useEffect)(()=>{if(!a||!s)return;let updateScrollProgress=()=>{let e=Math.max(0,Math.min(1,s.scrollProgress()));p(100*e)};return s.on("scroll",updateScrollProgress),s.on("reInit",updateScrollProgress),updateScrollProgress(),()=>{s.off("scroll",updateScrollProgress),s.off("reInit",updateScrollProgress)}},[a,s]),!t.length)return null;if(a){let e=t.length>1;return(0,o.FD)(c.Box,{className:v.root,children:[(0,o.Y)(w.Carousel,{slideSize:"100%",slideGap:24,align:"start",loop:!1,draggable:e,withControls:!1,withIndicators:e&&!r,getEmblaApi:d,classNames:{indicators:v.carouselIndicators,indicator:v.carouselIndicator},children:t.map((e,t)=>{let a=x[t%x.length],r=null==n?void 0:n[a];return(0,o.Y)(w.Carousel.Slide,{children:(0,o.FD)(c.Box,{children:[(0,o.Y)(w.Text,{size:"p2",weight:"semiBold",variant:"primary",style:r?{color:r}:void 0,children:e.keyPillars.name}),(0,o.Y)(c.Box,{mt:12,children:(0,o.Y)(InnerFaqAccordion,{faqs:e.faqs,defaultActiveItem:null},"accordion-".concat(t,"-").concat(m))})]})},t)})}),e&&r?(0,o.Y)(c.Progress,{classNames:{root:v.carouselProgressRoot,bar:v.carouselProgressBar},value:g,size:"xs"}):null]})}return(0,o.Y)(c.Box,{className:v.root,children:(0,o.Y)(c.Accordion,{value:h,onChange:f,chevron:(0,o.Y)(ChevronUpDown,{size:28,color:"#404040"}),classNames:{item:v.outerItem,control:v.outerControl,chevron:v.outerChevron,label:v.outerLabel,content:v.outerContent},children:t.map((e,t)=>{let a="group-".concat(t),r=e.keyPillars.name,l=x[t%x.length],s=null==n?void 0:n[l];return(0,o.FD)(c.Accordion.Item,{value:a,children:[(0,o.Y)(c.Accordion.Control,{"data-event-category":"Service Connection","data-event-action":h===a?"FAQ section - Key pillar - Action Collapsing":"FAQ section - Key pillar - Action Expanding","data-event-label":"".concat(r,"^").concat(i),className:"pointer-event-child-none",children:(0,o.Y)(w.Text,{size:"p2",weight:"semiBold",variant:"primary",style:s?{color:s}:void 0,children:r})}),(0,o.Y)(c.Accordion.Panel,{children:(0,o.Y)(InnerFaqAccordion,{faqs:e.faqs})})]},t)})})})},CarePathFaqs=e=>{let{layoutKeyPillars:t,listing:a,faqs:n,applyCarousel:r,wrapperProps:i,applyH1:l,title:s,description:d,icon:m,backgroundColor:u}=e,g=(0,c.useMantineTheme)(),{classes:p,cx:h}=n3(void 0,{name:"CarePathFaqs"}),f=t?a.length>0:n.length>0;if(!f)return null;let v=s||(null==i?void 0:i.title),x=d||(null==i?void 0:i.description),b=m||(null==i?void 0:i.icon),y=(null==i?void 0:i.bgColor)||u;return(0,o.Y)(tn.A.Wrapper,{bgColor:y,defaultColor:g.colors.neutral[0],children:(0,o.FD)(c.Box,{className:h(p.layout,{[p.layoutFull]:!(v||x||b)}),children:[(0,o.Y)(FaqsSectionHeader,{title:v,description:x,icon:b,applyH1:l}),(0,o.Y)(c.Box,{className:p.accordionCol,children:t?(0,o.Y)(KeyPillarsFaqs,{listing:a,applyCarousel:r}):(0,o.Y)(InnerFaqAccordion,{faqs:n})})]})})};var n9=a("K7Hl"),n7=(0,c.createStyles)(()=>({root:{".wide-container":{width:"100%",maxWidth:1360,margin:"0 auto",padding:"0 16px"},".narrow-container":{width:"100%",maxWidth:1129,margin:"0 auto",padding:"0 16px"}},sectionList:{position:"relative"},body:{display:"flex",flexDirection:"column",gap:80},bg:{position:"absolute",zIndex:0,top:0},section:{},wrapper:{}}));let re="intro_banner_modal",IntroCarePathModal=e=>{let{onItemClick:t,hashToShow:a}=e,[n,{close:r,open:i}]=(0,ed.j)(!1),s=(0,U.m)(),m=(0,l.useCallback)(()=>{nl().set(re,"true"),a===encodeURIComponent("ปรึกษาคุณหมอ").toLowerCase()&&(window.history.replaceState({},"",window.location.pathname),t(a)),r()},[]);return(0,l.useEffect)(()=>{nl().get(re)||i()},[]),(0,o.Y)(w.Modal,{size:(0,c.rem)(648),opened:n,withCloseButton:!0,closeButtonProps:{"data-event-category":"Service Connection","data-event-action":"Pop Up - Close","data-event-label":s,sx:()=>({"&:focus-visible":{outline:"none"}})},overlayProps:{"data-event-category":"Service Connection","data-event-action":"Pop Up - Close","data-event-label":s},onClose:m,styles:{content:{position:"relative"},header:{position:"absolute",right:0,top:0,border:0,background:"transparent",padding:0,".mantine-CloseButton-root":{width:(0,c.rem)(30),height:(0,c.rem)(30),top:(0,c.rem)(5),right:(0,c.rem)(5)}},body:{padding:0}},children:(0,o.Y)(c.AspectRatio,{ratio:972/681,sx:{cursor:"pointer"},onClick:m,children:(0,o.Y)("img",{loading:"lazy",src:d.C.getAssetPath("carePath/modal-banner-th.jpg"),alt:"","data-event-category":"Service Connection","data-event-action":"Pop Up - Click to Image","data-event-label":s})})})};var rt=(0,l.forwardRef)((e,t)=>{let{isTypeForm:a,onOpen:n,children:r}=e,i=(0,C.a)(),[s,d]=(0,l.useState)(!1);return(0,l.useImperativeHandle)(t,()=>({open:()=>d(!0),close:()=>d(!1),isOpen:s})),(0,l.useEffect)(()=>{if(i){let e=document.querySelectorAll(".zalo-chat-widget"),t=document.querySelectorAll(".woot--bubble-holder");if(e)for(let t of e)t.style.display=s?"none":"block";if(t)for(let e of t)e.style.display=s?"none":"block"}s&&(null==n||n())},[s]),(0,o.Y)(w.Modal,{opened:s,onClose:()=>d(!1),centered:!0,fullScreen:i,zIndex:500,keepMounted:a,styles:e=>({content:{[e.fn.smallerThan("sm")]:{...a&&{borderRadius:0}},[e.fn.largerThan("sm")]:{borderRadius:(0,c.rem)(24),...a&&{"div, iframe":{borderRadius:(0,c.rem)(24)}}}},header:{position:"absolute",right:0,top:0,background:"transparent",border:0},body:{padding:0,borderRadius:"inherit",height:"100%",...a&&{div:{height:"100%",maxHeight:"none"},iframe:{borderRadius:"0 !important"},".tf-v1-widget-close":{display:"none"},[e.fn.largerThan("sm")]:{height:656,".si-inline-revamp-container":{padding:"40px 24px 24px"},".si-typeform":{height:"100% !important",maxHeight:"none !important"}},[e.fn.smallerThan("sm")]:{height:"100%",borderRadius:0}}},close:{...a&&{right:-11,top:-9,svg:{width:"".concat((0,c.rem)(32)," !important"),height:"".concat((0,c.rem)(32)," !important")}}}}),size:a?400:640,title:"",withCloseButton:a||!i,children:r})});let SectionWrapper=e=>{let{children:t,onInView:a,...n}=e,r=(0,l.useRef)(null),{ref:i,inView:s}=(0,eZ.Wx)({rootMargin:"-120px 0px 0px 0px"});return(0,l.useEffect)(()=>{null==a||a(s)},[s]),(0,o.Y)(c.Box,{...n,"data-in-view":s,ref:r,children:(0,o.Y)(c.Box,{ref:i,children:t})})};var ra=a("D5UJ"),rn=a("CWxQ"),rr=(0,c.createStyles)((e,t)=>{let{primaryColor:a=e.fn.primaryColor(),bodyColor:n,bodyBg:r,detectPage:o}=t,{isCarePath:i,isDan:l,isSimilac:s}=o,d=(0,tv.E2)(a,!0),m=(0,tv.wm)(d.r,d.g,d.b),u=(0,tv.sO)(m[0],m[1]+24,m[2]-4),g=i?"rgb(".concat(u[0],",").concat(u[1],",").concat(u[2],")"):a,p=i?(0,tv.sO)(m[0],m[1]+40,m[2]-4):(0,tv.sO)(m[0],m[1]+1,m[2]-4),h="rgb(".concat(p[0],",").concat(p[1],",").concat(p[2],")");return{root:{...n&&{backgroundColor:n},...r&&{backgroundImage:"url(".concat(r,")"),backgroundSize:"cover",backgroundPosition:"top left"},...a&&{'button[data-variant="primary"],button[data-primary-btn="true"]':{"&:not(:disabled)":{...l&&{color:"#001168",backgroundImage:"linear-gradient(90.02deg, #E3BE52 0.02%, #FCE7A3 29.55%, #EDC255 67.82%, #FADB7D 107.01%, #E5BA47 126.18%)"},backgroundColor:g,"&:hover":{backgroundColor:h,...l&&{color:"#001168",backgroundImage:"linear-gradient(90.02deg, #E3BE52 0.02%, #FCE7A3 29.55%, #EDC255 67.82%, #FADB7D 107.01%, #E5BA47 126.18%)"}}}}},[e.fn.smallerThan("sm")]:{"&.show-aside":{".carepath-bottom-ad":{bottom:(0,c.rem)(64)}}},...s&&{'[data-quo-si="true"] + [data-lead-si="true"]':{".mantine-ServiceConnections__SectionWrapper-Wrapper-root":{paddingTop:0,[e.fn.largerThan("sm")]:{marginTop:-40}}}}}}});let Wrapper=e=>{let{activeTheme:t,spotlight:a,children:n,detectPage:r,className:i,styles:s,classNames:d,...m}=e,{dispatch:u}=(0,l.useContext)(ti.B),{isRoche:g}=r,{classes:p,cx:h}=rr({primaryColor:t.primary||"",bodyColor:g?"#FBF0F3":void 0,detectPage:r},{name:"CarePathDefaultTemplate__Wrapper",styles:s,classNames:d});return(0,l.useEffect)(()=>{var e,t,n;return(null==a?void 0:null===(t=a.integrates3rdParty)||void 0===t?void 0:null===(e=t.zaloConfig)||void 0===e?void 0:e.oaid)&&u({type:rn.Q.SET_ZALO_CONFIG,payload:{oaid:a.integrates3rdParty.zaloConfig.oaid,message:"rất vui được hỗ trợ bạn."}}),(null==a?void 0:null===(n=a.integrates3rdParty)||void 0===n?void 0:n.chatwoodToken)&&u({type:rn.Q.SET_CHATWOOT_WEBSITE_TOKEN,payload:a.integrates3rdParty.chatwoodToken}),()=>{u({type:rn.Q.SET_ZALO_CONFIG,payload:null}),u({type:rn.Q.SET_CHATWOOT_WEBSITE_TOKEN,payload:null})}},[]),(0,o.Y)(o.FK,{children:(0,o.Y)(c.Box,{className:h(i,p.root),...m,children:(0,o.Y)(c.Stack,{sx:e=>({gap:0,'[data-none-bg-session="true"]':{padding:"".concat((0,c.rem)(40)," 0")},'[data-none-bg-session="true"] + [data-none-bg-session="true"]':{paddingTop:0},[e.fn.largerThan("sm")]:{'[data-none-bg-session="true"]':{padding:"".concat((0,c.rem)(80)," 0")}}}),children:n})})})};var ro=a("dsEF"),ri=a("yNk5");let rl=p()(()=>a.e(9317).then(a.bind(a,"fnIq")).then(e=>e.default),{loadableGenerated:{webpack:()=>["fnIq"]},ssr:!1}),rs=(0,l.forwardRef)(function(e,t){return(0,o.Y)(rl,{...e,stickyRef:t})}),rd=p()(()=>a.e(6514).then(a.bind(a,"qOlN")).then(e=>e.HpvBanner),{loadableGenerated:{webpack:()=>["qOlN"]},ssr:!1}),rc=p()(()=>a.e(215).then(a.bind(a,"zaIG")).then(e=>e.BackToTop),{loadableGenerated:{webpack:()=>["zaIG"]},ssr:!1}),rm=p()(()=>a.e(9032).then(a.bind(a,"bXFI")).then(e=>e.default),{loadableGenerated:{webpack:()=>["bXFI"]},ssr:!1}),ru=(0,l.forwardRef)(function(e,t){return(0,o.Y)(rm,{...e,popupRef:t})}),rg=p()(()=>a.e(3143).then(a.bind(a,"MD7a")).then(e=>e.default),{loadableGenerated:{webpack:()=>["MD7a"]},ssr:!1}),rp=(0,l.forwardRef)(function(e,t){return(0,o.Y)(rg,{...e,popupRef:t})}),CarePathDefaultTemplate=e=>{var t,a,n,r,s,m,g,p,S,w,T,k,B,N,F,E,A,R,L,P,M,_,z,W,H,O,G,V,j,K,q,Q,X,J,Z,$,ee;let et,ea,en,er;let{spotlight:eo,footerInfo:ei,dataNavMenuContent:el,hideSticky:es,stickyNav:ed,hasIntroCarepathModal:ec,isAppPage:em,styles:eu,classNames:eg,isInline:ep,...eh}=e,{locale:ef,query:ev,push:ex,pathname:eb,asPath:ey}=(0,Y.$)(),{classes:eC,cx:eS}=n7(void 0,{name:"CarePathDefaultTemplate",styles:eu,classNames:eg}),ew=(0,nZ.A)(null==eo?void 0:eo.keyID),{isNestle:eT,isCarePath:ek,isRoche:eD,isSoya:eY,isNan:eI,isTaganil:eB,isSimilac:eN,isTiki:eF,isVinamilk:eA,isConCung:eR,isPfizer:eL,isTetAnKhang2026:eM,isThObesity:e_,isColosBaby:ez}=ew,eW=eY?{primary:"#EC1B2E",secondary:"#F1AF55",tertiary:"#EC1B2E",quaternary:"#EC1B2E"}:null==eo?void 0:eo.colorPatterns,eH=(0,C.a)(),{originListSessions:eO,heroBanner:eG,listRiskscreener:eV,listClickable:eK,listDoctorEmbedSessions:eq,heading:eQ}=(0,l.useMemo)(()=>{let e="",t=eo.listSessions||[],a=[],n=[],r=[],o=[];return t.map(t=>{ag.qu.includes(null==t?void 0:t.sessionLayout)?a.push(t):(t.sessionLayout===tN.dF.EMBEDDING_RISKSCREENER?n.push(t):t.sessionLayout===tN.dF.CLICKABLE_BANNER?r.push(t):t.sessionLayout===tN.dF.EMBEDDING_DOCTORS&&o.push(t),(null==t?void 0:t.title)&&!e&&![tN.dF.EMBEDDING_RISKSCREENER,tN.dF.CLINIC_LOCATORS,tN.dF.LEADGEN,tN.dF.HERO_BANNER_FULLWIDTH].includes(t.sessionLayout)&&(e=t.sessionId))}),{originListSessions:t,heroBanner:null==a?void 0:a[0],listRiskscreener:n,listClickable:r,listDoctorEmbedSessions:o,heading:e}},[eo]),eX=(null==eG?void 0:eG.navigating)||[],eJ=(0,l.useMemo)(()=>{let e=[],t=eX.map(e=>e.idScroll);return eO.map((a,n)=>{(!eG||0!==n)&&(t.includes(a.idScroll)?e.push([a]):0===e.length?e.push([a]):e[e.length-1]&&e[e.length-1].push(a))}),e},[eO]),eZ=(0,l.useRef)(eO.slice(0,-1).map(e=>({idScroll:e.idScroll,loaded:e.sessionLayout!==tN.dF.HERO_BANNER_FULLWIDTH}))),e$=eq.length>0,e0=(0,l.useRef)({}),e1=(0,l.useRef)(""),e4=(0,l.useMemo)(()=>[tN.dF.ARTICLES,tN.dF.EMBEDDING_RISKSCREENER_MULTI,tN.dF.CUSTOMIZED_BLOCK],[]),e8=(0,ej.Z0)(eX,eW),e3=(0,l.useRef)(null),e6=(0,l.useRef)(null),e5=(0,l.useRef)(null),e9=(0,l.useRef)(null),e7=(0,l.useRef)(null),te=(0,l.useRef)(null),tt=(0,l.useRef)(null),ta=(0,l.useRef)([]),tn=(0,nZ.A)(null==eo?void 0:eo.keyID),tr=(0,n9.r)(tn),to=(0,l.useRef)(!1),ti=(0,l.useMemo)(()=>{let e=ro.GR.filter(e=>e.asPath.toLowerCase()===encodeURI(eo.permalink).toLowerCase());return e.length>0?e[0]:{mobileFormId:"",desktopFormId:""}},[]),tl=(0,U.m)(),ts=(0,n2.oq)({countryAdTag:(0,n2._3)(ef,{isMobile:eH}),contentAdTag:{result:"Spotlight",redundant:!0}}),leadgenStyles=e=>({...eN&&"/chien-binh-me-sinh-mo/me-mang-thai/"!==ey&&{root:{[e.fn.smallerThan("sm")]:{background:e.colors.neutral[0],".mantine-Form-bannerWrapper":{margin:0},".mantine-Form-formWrapper":{width:"100%"}},[e.fn.largerThan("sm")]:{".mantine-Form-formWrapper":{width:500}}},wrapper:{borderRadius:e.radius.lg,".mantine-Form-formRoot":{width:"100%"},[e.fn.largerThan("sm")]:{backgroundColor:"#fff",boxShadow:e.shadows.sm,borderRadius:e.radius.lg,".mantine-Form-formRoot":{width:"100%"},".mantine-Form-scrollAreaViewport":{paddingRight:20}}},formFrame:{[e.fn.largerThan("sm")]:{border:0,padding:0,margin:0}},container:{[e.fn.largerThan("sm")]:{justifyContent:"space-between",padding:"32px 0 32px 60px"}}},...eY&&{root:{'&[data-inline="true"]':{[e.fn.largerThan("sm")]:{paddingBottom:0}}},modalBody:{backgroundColor:e.colors.neutral[0]},bannerImg:{[e.fn.largerThan("sm")]:{maxWidth:(0,c.rem)(360)}},formFrame:{[e.fn.largerThan("sm")]:{backgroundColor:"transparent",borderColor:"transparent",padding:0,maxWidth:"none"}},container:{[e.fn.largerThan("sm")]:{justifyContent:"space-between",gap:100}}}}),td=(0,l.useCallback)(e=>eZ.current.findIndex(t=>t.idScroll===e),[eZ]),tc=(0,l.useCallback)(e=>{let{idScroll:t,loaded:a=!1}=e,n=td(t);if(n>-1){a&&(eZ.current[n].loaded=!0);let e=eZ.current.slice(0,n+1).filter(e=>!e.loaded);0===e.length&&(onItemClick(e1.current),e1.current="")}},[]);(0,l.useEffect)(()=>{let e=document.getElementsByTagName("body")[0];return e.classList.add("carepath-body"),eB&&e.classList.add("taganil-page"),()=>{e.classList.remove("carepath-body"),eB&&e.classList.remove("taganil-page")}},[eB]);let onItemClick=e=>{var t;null===(t=e6.current)||void 0===t||t.setCanScroll(!1),(0,ej.k5)({hash:e.includes("%")?e:encodeURIComponent(e),isMobile:eH,callback:()=>{var e;return null===(e=e6.current)||void 0===e?void 0:e.setCanScroll(!0)}})},tm={colorArr:e8,mappingIconList:tr},tu={onNavClick:(e,t)=>{var a,n,r;e.sessionLayout===tN.dF.TOP?window.scrollTo({top:0,behavior:"smooth"}):e.sessionLayout===tN.dF.LEADGEN?(null==t||t.preventDefault(),(null==e0?void 0:null===(a=e0.current)||void 0===a?void 0:a[e.idScroll])?e0.current[e.idScroll].openModal():onItemClick(e.idScroll)):e.sessionLayout===tN.dF.EMBEDDING_RISKSCREENER?(null==t||t.preventDefault(),null==te||null===(n=te.current)||void 0===n||n.open()):e.sessionLayout===tN.dF.SOYA_OPEN_CHAT?(null==t||t.preventDefault(),null==tt||null===(r=tt.current)||void 0===r||r.setShowWidget(!0)):e.url||(null==t||t.preventDefault(),onItemClick(e.idScroll))}},tg={mappingIconList:tr,dataActionBySession:ra.t,onItemClick,...tu},tp={Is_Sponsored:[1],Is_Expert:[(null==eo?void 0:null===(n=eo.expert)||void 0===n?void 0:null===(a=n.experts)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.id)?1:0],Is_Affiliate:[0],Brand:(null==eo?void 0:null===(r=eo.sponsor)||void 0===r?void 0:r.map(e=>u()(e.title||"")))||[]},th=(eo.sponsor||[]).length>0,tf=eo.listGroup.length>1,tv=!!eo.backgroundColor||!!eo.backgroundImage,tx=null==eG?void 0:null===(s=eG.sessionLayout)||void 0===s?void 0:s.includes(tN.dF.HERO_BANNER_FULLWIDTH),tb=tv&&!eM,tC=eo.positionY||"top",tS=tx&&((null!==($=null==eG?void 0:null===(m=eG.navigating)||void 0===m?void 0:m.length)&&void 0!==$?$:0)>0||(null!==(ee=null==eG?void 0:null===(p=eG.medicalFacts)||void 0===p?void 0:null===(g=p.listContent)||void 0===g?void 0:g.length)&&void 0!==ee?ee:0)>0),tw=tb&&!!eo.backgroundImage&&"top"===tC&&tS,tT=tb&&!!eo.backgroundImage&&!tw,getSessionBackgroundColor=(e,t)=>tb&&e!==tN.dF.EMBEDDING_RISKSCREENER?"transparent":t||"",tk=(0,n$.N)(eo.mastheadAdPlacement||{}),handleStopTrackingIdle=e=>{var t,a,n;e?(null==e9||null===(t=e9.current)||void 0===t||t.close(),null==e9||null===(a=e9.current)||void 0===a||a.stopTracking(!0)):null==e9||null===(n=e9.current)||void 0===n||n.stopTracking(!1)},tD=(0,o.Y)(rs,{ref:e5,listSessions:eO,navigating:eX,colorShade:eW,colorArr:eY?["#F1AF55","#EC1B2E","#EC1B2E","#EC1B2E"]:e8,activeColor:eW.primary,mappingIconList:tr,onItemClick,sponsoredBy:eo.sponsor,isAppPage:em,logo:null==eo?void 0:eo.logo,...tu,dataActionBySession:(()=>{let e={};return Object.keys(ra.t).map(t=>{e[t]="".concat(ra.t[t]," - Header Navigate")}),e})(),mappingIconList:tr,styles:()=>({wrapper:{pointerEvents:"auto"},sponsor:{...!tf&&{order:1}},navigator:{...!tf&&{order:2}},navigatorItem:{...eI&&{'&[data-is-selected="true"]':{backgroundColor:"#92682a"}}}}),children:ed});return(0,o.FD)(eU.d.Provider,{value:{colorArr:e8,navigating:eX,mappingIconList:tr,detectPage:ew,activeTheme:eW,keyID:(null==eo?void 0:eo.keyID)||""},children:[(0,o.Y)(nX.W,{servicePageTrackingParams:{pageId:eo.postName,audienceId:eo.groupIdActive||"",funnelId:eo.additionalSlugActive||""}}),(0,o.Y)(nJ.s,{title:null==eo?void 0:eo.postTitle,description:null==eo?void 0:eo.postTitle,image:I.El[ef].HOMEPAGE_IMAGE,isSponsored:eH&&(null==eo?void 0:eo.isSponsor),sponsoredType:"content",sponsoredBy:eH?null==eo?void 0:eo.sponsor:void 0,SEOData:{title:null==eo?void 0:eo.postTitle,description:null==eo?void 0:eo.postTitle,apiMetaData:null==eo?void 0:eo.metaTag,isIndexable:!0},type:"profile",footerInfo:ei,languageOptions:(null==eo?void 0:eo.translateOptions)||[],dataNavMenuContent:el,subHead:es?void 0:tD,isInline:ep,children:(0,o.FD)(n1.VD,{init:{currentArticle:eo},children:[!(null==eo?void 0:eo.disableAd)&&(0,o.Y)(x.w,{children:(0,o.Y)(nU.p3,{adUnitPath:ts,className:"spotlight-masthead ".concat(null==eo?void 0:eo.type,"-masthead"),hasPlaceholder:tk})}),(0,o.Y)(nQ.ae,{className:eS(eC.root,"service-connection-page"),style:{minHeight:(0,c.rem)(610),marginBottom:0},children:(0,o.Y)(Wrapper,{className:eC.wrapper,spotlight:eo,detectPage:tn,activeTheme:eW,...eh,sx:e=>({...tb&&{...eo.backgroundColor&&{background:eo.backgroundColor},[e.fn.smallerThan("sm")]:{'[data-none-bg-session="true"]':{padding:"20px 0"}},[e.fn.largerThan("sm")]:{...tT&&{background:["url(".concat(eo.backgroundImage,")"),eo.backgroundColor].filter(Boolean).join(", "),backgroundPosition:["".concat(eo.positionX||"center"," ").concat(tC),eo.backgroundColor&&"center center"].filter(Boolean).join(", "),backgroundRepeat:"no-repeat"},overflow:"hidden",'[data-none-bg-session="true"]':{padding:"40px 0"},".mantine-CarePathHeroBannerCustomLayout-navigatorWrapper":{paddingBottom:20}}},...tb&&{['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) [data-has-color="true"]')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-ServiceConnections__SectionWrapper-Wrapper-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-VideoLibrary-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-ClickableBanner-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-ClickableSingleBanner-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-MultiRiskScreenerEmbed-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-HealthToolEmbed-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-CustomizedBlock-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-TypeFormInlineInlineScreen-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-CtaBannerSection-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-ArticleCardList-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-ContentExpert-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-EmbedCommunityWithPosts-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-ServiceConnections__Quotations-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-PollEmbed-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-RatingReview-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-CarePathDoctorList-root')]:{backgroundColor:"transparent !important"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-LeadgenWithBanner-root')]:{backgroundColor:"transparent !important"},"& .mantine-ArticleCardList__Categories-Item-item":{backgroundColor:"#fff"},"& .mantine-CarePathHeroBannerCTALayout-root":{backgroundColor:"transparent !important"},"& #clinicLocator--content":{backgroundColor:"#fff"},"& #clinicLocator--content .g-map":{backgroundColor:"#fff"},['& [data-session-layout]:not([data-session-layout="'.concat(tN.dF.EMBEDDING_RISKSCREENER,'"]) .mantine-ServiceConnection__ClinicLocator-root')]:{backgroundColor:"transparent !important"}}}),styles:e=>({root:{...eI&&{background:"linear-gradient(180deg, #FBF8F4 20.19%, #EBDFCB 38.46%, #FBF9F4 63.94%, #FAF1D7 83.65%, #FBF9F4 100%)",[e.fn.largerThan("sm")]:{background:"linear-gradient(180deg, #FBF8F4 17.79%, #EBDFCB 35.58%, #FBF9F4 58.17%, #FAF1D7 78.85%, #FBF9F4 100%)"}},...eM&&{background:"radial-gradient(70.02% 70.02% at 48.33% 28.64%, rgba(255, 255, 230, 0.5) 0%, rgba(255, 238, 182, 0.5) 32.21%, rgba(246, 214, 178, 0.5) 74.22%, rgba(249, 233, 202, 0.5) 98.56%)",[e.fn.smallerThan("sm")]:{'[data-none-bg-session="true"]':{padding:"20px 0"}},[e.fn.largerThan("sm")]:{overflow:"hidden",'[data-none-bg-session="true"]':{padding:"40px 0"},".mantine-CarePathHeroBannerCustomLayout-navigatorWrapper":{paddingBottom:20}}},...ez&&{background:"linear-gradient(\n 180deg,\n #f7f7eb 2.88%,\n #f3f3d6 25%,\n #e6f0b1 50.96%,\n #f3f3d6 74.52%,\n #d3e2be 100%\n)\n",[e.fn.smallerThan("sm")]:{'[data-none-bg-session="true"]':{padding:"20px 0"}},[e.fn.largerThan("sm")]:{overflow:"hidden",'[data-none-bg-session="true"]':{padding:"40px 0"},".mantine-CarePathHeroBannerCustomLayout-navigatorWrapper":{paddingBottom:20}}},...ez&&{[e.fn.smallerThan("sm")]:{'[data-none-bg-session="true"]':{paddingTop:"0 !important"}}}}}),children:(0,o.FD)(e2,{className:eC.sectionList,ref:e6,disableScrollTo:!0,onVisible:e=>{var t,a;null==e5||null===(t=e5.current)||void 0===t||t.setSelectedSection(e);let n="",r=eX.findIndex(t=>t.idScroll===e&&(n=t.sessionLayout,!0));n===tN.dF.EMBEDDING_RISKSCREENER&&handleStopTrackingIdle(!0);let o=r===eX.length-1?null==eX?void 0:eX[0]:eX[r+1];null==e7||null===(a=e7.current)||void 0===a||a.setSuggestSection({hash:o.idScroll,cta:null==o?void 0:o.title,btnTracking:{dataEventCategory:"Service Connection",dataEventAction:"".concat(ra.t[o.sessionLayout]||""," - Intent popup"),dataEventLabel:"".concat(tl.split("#")[0],"#").concat(decodeURI(o.idScroll))}})},children:[eG&&(()=>{var e;let t=eG.sessionLayout,a=t.includes(tN.dF.HERO_BANNER_DEFAULT)&&eG.isCtaBanner,n=!eD&&!(ek||eN),r=n?Object.assign(e=>(0,o.Y)(aC.f,{...e,useBgColor:eY,styles:e=>({...eY&&{root:{'&[data-type="comming_soon"]':{position:"relative",cursor:"default","&:before":{content:'""',position:"absolute",backgroundSize:"contain",backgroundRepeat:"no-repeat",zIndex:1,[e.fn.largerThan("sm")]:{top:"-3%",left:"5%",width:"99%",height:"0",paddingBottom:"80%",backgroundImage:"url(".concat(d.C.getAssetPath("soya/comming-soon.png"),")")},[e.fn.smallerThan("sm")]:{top:(0,c.rem)(-5),left:(0,c.rem)(13),width:"65%",height:"0",paddingBottom:"34%",backgroundImage:"url(".concat(d.C.getAssetPath("soya/comming-soon-mobile.png"),")")}},p:{opacity:.5,filter:"blur(4px)",[e.fn.largerThan("sm")]:{filter:"blur(6px)"}},".img-wrapper":{opacity:.5}}}}})}),{displayName:"FlatIcon"}):eD?ImageIcon:ElegantUI;return(0,o.FD)(c.Box,{"data-id-scroll":"","data-section-id":t,sx:e=>({...a?{backgroundColor:tb?"transparent":e.colors.neutral[0]}:eM?{[e.fn.largerThan("sm")]:{position:"relative","& > div":{position:"relative",zIndex:1},"&:before":{content:'""',position:"absolute",left:-77,top:"78%",zIndex:0,width:288,height:0,paddingBottom:"284%",backgroundImage:"url(".concat(d.C.getAssetPath("tetAnKhang2026/left-side.png"),")"),backgroundSize:"contain",backgroundRepeat:"no-repeat"},"&:after":{content:'""',position:"absolute",right:-66,top:"100%",zIndex:0,width:397,height:0,paddingBottom:"284%",backgroundImage:"url(".concat(d.C.getAssetPath("tetAnKhang2026/right-side.png"),")"),backgroundSize:"contain",backgroundRepeat:"no-repeat"}}}:{}}),children:[(0,o.Y)(v.m,{children:(0,o.FD)(c.Box,{sx:e=>({[e.fn.largerThan("sm")]:{display:"flex",justifyContent:"space-between"}}),children:[tf?(0,o.Y)(Breadcrumb,{spotlight:eo}):eG.isCtaBanner?(0,o.Y)(c.Box,{sx:e=>({height:(0,c.rem)(20),[e.fn.largerThan("sm")]:{height:(0,c.rem)(40)}})}):null,th&&!eH&&(0,o.Y)(eP.StickySponsoredBy,{isCollapsed:!1,sponsoredType:"content",sponsoredBy:eo.sponsor,isMobile:eH,styles:e=>({root:{position:"relative",zIndex:1,backgroundColor:"transparent",border:0,[e.fn.largerThan("sm")]:{padding:0}},logoWrapper:{marginLeft:(0,c.rem)(12)},logo:{[e.fn.largerThan("sm")]:{height:(0,c.rem)(32)}},container:{[e.fn.largerThan("sm")]:{padding:0}}})})]})}),(0,o.Y)(c.Box,{ref:e3,"data-bg-session":!0,children:eG.sessionLayout===tN.dF.HERO_BANNER_APP?(0,o.Y)(AppIntroHeroBanner,{title:eG.title,banner:null==eG?void 0:null===(e=eG.banner)||void 0===e?void 0:e.desktop,headerDescription:eG.headerDescription,innerClass:"wide-container",descInnerClass:"narrow-container",logo:null==eo?void 0:eo.logo,onNavClick:tg.onNavClick}):(0,o.Y)(aa.H,{...tm,ratio:eH&&eF?1.875:void 0,onItemClick:onItemClick,hasSociaShare:null==eo?void 0:eo.hasSocialShare,layout:e=>a?(0,o.Y)(CtaBanner,{...e,mappingIconList:tr,listBanner:eG.listBanner,navigatorProps:{...tg,itemComponent:function(e){return(0,o.Y)(FullBg,{...e,useImgAsFullBg:eT||eI,showBrushPattern:!eH&&ek,...eT&&{isQuare:!1},styles:()=>({...eT&&{root:{...3===eX.length&&{"&:first-of-type":{width:"100%"}}},exploreLink:{color:"#FAEEC3"}}})})}},autoSlide:!!eG.autoSlideTiming,delayTime:eG.autoSlideTiming,styles:{...tb&&{root:{backgroundColor:"transparent"}}}}):t.includes(tN.dF.HERO_BANNER_FULLWIDTH)?(0,o.Y)(ab.u,{...e,flatIconDesktopLayout:ez?"vertical":void 0,ignoreThemeBackgroundNavigation:eo.ignoreThemeBackgroundNavigation||ez||eM,autoSlide:!!eG.autoSlideTiming,delayTime:eG.autoSlideTiming,hideDisclaimerOnMobile:n,navigatorBackgroundImage:tw?eo.backgroundImage:void 0,navigatorBackgroundPositionX:tw?eo.positionX:void 0,navigatorBackgroundPositionY:tw?tC:void 0,navigatorProps:{...tg,itemComponent:r},onBannerLoad:()=>e1.current&&tc({idScroll:eG.idScroll,loaded:!0}),styles:e=>({...eM&&{navigatorItem:{[e.fn.largerThan("sm")]:{flexDirection:"row",gap:16,padding:16,".mantine-CarePathHeroBannerNavigatorItemFlatIcon-title":{fontSize:(0,c.rem)(22),lineHeight:(0,c.rem)(32),letterSpacing:"-0.6px"}}}},...ez&&{gap:0,navigatorInner:{[e.fn.largerThan("sm")]:{paddingBottom:20}},navigatorItem:{gap:12,padding:12,borderRadius:16,".mantine-CarePathHeroBannerNavigatorItemFlatIcon-title":{color:"#000",fontWeight:600,fontSize:(0,c.rem)(15),lineHeight:(0,c.rem)(24),letterSpacing:"-0.4px"},[e.fn.largerThan("sm")]:{gap:20,padding:24,"&:first-child":{".mantine-CarePathHeroBannerNavigatorItemFlatIcon-title":{maxWidth:200}},".mantine-CarePathHeroBannerNavigatorItemFlatIcon-title":{fontSize:(0,c.rem)(17),lineHeight:(0,c.rem)(24)}}}},...tb&&{navigatorWrapper:{backgroundColor:"transparent"}},...eI&&{root:{[e.fn.smallerThan("sm")]:{".mantine-CarePathHeroBannerBannerItem-wrapper":{".mantine-AspectRatio-root":{"&:before":{paddingBottom:"75%"}}}}},navigatorWrapper:{backgroundColor:"transparent"},navigatorItem:{[e.fn.largerThan("sm")]:{img:{maxWidth:56,maxHeight:56}}}}})}):(0,o.Y)(DefaultBanner,{...e,navigatorProps:{...tg,itemComponent:eD?ImageIcon:ek?ElegantUI:aC.f}}),sessionProps:eG,styles:e=>({mainBannerCtaBtn:{[e.fn.smallerThan("sm")]:{...eD&&{paddingLeft:0,paddingRight:0}}},mainBannerCtaBtnRightIcon:{[e.fn.smallerThan("sm")]:{...eD&&{display:"none"}}},navigatorWrapper:{...(eY||tb)&&{backgroundColor:"transparent"}}})})})]},eG.sessionLayout)})(),(et=0,ea=0,en=0,er=0,eJ.map((e,t)=>{let a=e[0],n=null==a?void 0:a.idScroll;return(0,o.Y)(c.Box,{"data-bg-session":e4.includes(n),"data-id-scroll":n,"data-section-index":t,className:eC.section,sx:e=>({...eM&&{[e.fn.largerThan("sm")]:{position:"relative"}}}),children:e.map((e,a)=>{var n,r,l,s,m,u,g,p,v,x,b,y,C,S;let w=e.sessionLayout,T=w===tN.dF.RATING_REVIEW?e.collectionId:"";return(0,i.n)(c.Box,{id:e.hashtag||e.idScroll,...e.sessionLayout===tN.dF.CONTENT_BANNER&&{"data-vertical-layout":!0},key:"".concat(e.idScroll||e.hashtag||w,"-").concat(t,"-").concat(a,"-").concat(T),"data-session-layout":w,"data-hashtag":e.hashtag||e.idScroll,"data-none-bg-session":e4.includes(w),"data-section-sub-index":a,"data-gap":e4.includes(w)?0:eH?40:49,"data-section-id":e.hashtag||e.idScroll,sx:e=>({scrollMarginTop:56,[e.fn.largerThan("sm")]:{scrollMarginTop:120}}),...eN&&w===tN.dF.LEADGEN&&{"data-lead-si":"true"},...eN&&w===tN.dF.QUOTATION&&{"data-quo-si":"true"}},w.includes(tN.dF.EMBEDDING_DOCTORS)?(()=>{var t;let a=er++,n=getSessionBackgroundColor(w,(null===(t=(0,ra.N)(eD))||void 0===t?void 0:t[tN.dF.EMBEDDING_DOCTORS])||e.backgroundColor);return(0,o.Y)(eE,{ref:e=>{e&&(ta.current[a]=e)},defaultColor:eW.tertiary,hidePrice:ek||eB||I.zh.includes(ef),hideViewAll:ek&&"id-ID"!==ef,applyH1:e.sessionId===eQ,viewAllUrl:ek&&"id-ID"===ef?"doctors"===e.typeEmbedding?"https://".concat(D.domainLocales[ef],"/care/semua/dokter/spesialis/"):"top_service"===e.typeEmbedding||"specialties"===e.typeEmbedding?"https://".concat(D.domainLocales[ef],"/care/semua/rumah-sakit/spesialis/"):void 0:void 0,listingAll:e.doctors,filterColor:eD?"#00BEBF":void 0,hideBgPattern:eD||"transparent"===n,showConfirmCityPopup:eD,layoutConfig:eD?{1:"horizon",2:"horizon"}:void 0,campaign:e.campaign,sessionProps:{...e,backgroundColor:n},styles:{...eD&&{heading:{color:eW.primary},processBar:{background:eW.primary,opacity:.4},processRoot:{background:"#fff"},listing:{'&[data-slide-length="2"]':{flexDirection:"column"}}}}})})():w.includes(tN.dF.CLINIC_LOCATORS)?(0,o.Y)(SectionWrapper,{onInView:e=>{if(e&&!to.current){var t,a;null===(t=(a=window).gtag)||void 0===t||t.call(a,"event","visible",{event_category:"Service Connection",event_action:"Clinic Directory Click",event_label:tl,audience:eo.groupIdActive}),to.current=!0}},children:(0,o.Y)(ClinicLocator,{isMobile:eH,locale:ef,currentUrl:tl,title:e.title,specialties:e.specialties,defaultColor:(null==e8?void 0:e8[eX.findIndex(t=>t.idScroll===e.idScroll)])||eW.primary,infoPath:ek&&ef===tN.ne.Taiwan?"organization.name":void 0,funnelId:eo.additionalSlugActive,onGetBrowserLoc:e=>{e$&&e&&(async()=>{var t;let a=await (0,h.callApiNew)(f.PATHS.CARE.GET_CITY_ID_BY_LAT_LNG,{params:e},"care"),n=null==a?void 0:null===(t=a._data)||void 0===t?void 0:t.default;(null==n?void 0:n.id)&&ta.current.map(e=>{e.setSelectedFilterId(String(n.id))})})()}})}):w.includes(tN.dF.VIDEOS)||w.includes(tN.dF.VIDEO_SECTION)?(0,o.Y)(VideoLibrary,{isNestle:eT,idScroll:e.idScroll||"embed-video"+a,"data-id-scroll":eY?"aivideo":"",autoPlay:e.autoPlay,primaryColor:eW.primary,applyH1:!em&&e.sessionId===eQ,sessionProps:{...e,backgroundColor:getSessionBackgroundColor(w,(eD?null===(n=(0,ra.N)(eD))||void 0===n?void 0:n[tN.dF.VIDEOS]:eY||eI?"transparent":e.backgroundColor)||"")},adUnitPath:e.videoLayout!==tN.sp.List||eo.disableAd?void 0:0==en++?ts:void 0,styles:e=>({...eI&&{root:{[e.fn.largerThan("sm")]:{paddingTop:40,paddingBottom:40}},heading:{fontSize:(0,c.rem)(24),lineHeight:(0,c.rem)(32),[e.fn.largerThan("sm")]:{fontSize:(0,c.rem)(40),lineHeight:(0,c.rem)(52)}}}})}):w.includes(tN.dF.EMBEDDING_RISKSCREENER)?(0,o.Y)(c.Box,{children:(0,o.Y)(RiskScreenerEmbed,{data:{...e,backgroundColor:eT?"transparent":(null===(r=(0,ra.N)(eD))||void 0===r?void 0:r[tN.dF.EMBEDDING_RISKSCREENER])||e.backgroundColor},isFullContainer:!0,primaryColor:eW.primary,typeoformId:eH?ti.mobileFormId:ti.desktopFormId})}):w.includes(tN.dF.EMBEDDING_RISKSCREENER_MULTI)?(0,o.Y)(MultiRiskScreenerEmbed,{colorShade:eW,sessionProps:{...e,backgroundColor:getSessionBackgroundColor(w,(null===(l=(0,ra.N)(eD))||void 0===l?void 0:l[tN.dF.EMBEDDING_RISKSCREENER_MULTI])||e.backgroundColor)},applyH1:e.sessionId===eQ}):w.includes(tN.dF.ARTICLES)?(0,o.Y)(c.Box,{"data-is-article":!0,sx:e=>({...(eD||eY)&&{".card-item":{background:"transparent"}},...eY&&{backgroundColor:getSessionBackgroundColor(w,e.colors.neutral[0]),[e.fn.smallerThan("sm")]:{margin:"-40px 0",padding:"40px 0"},[e.fn.largerThan("sm")]:{margin:"-80px 0",padding:"80px 0"}}}),children:(0,o.Y)(ArticleCardList,{listCategories:e.listCategories,wrapperProps:{...e.wrapperProps,bgColor:getSessionBackgroundColor(w,null===(s=e.wrapperProps)||void 0===s?void 0:s.bgColor)},display:e.typeDisplay,articles:e.listArticles,listingByKeyPillar:e.listingByKeyPillar,readmoreArticles:e.readMoreArticles,adUnitPath:"advance"===e.typeDisplay||eo.disableAd?void 0:0==et++?ts:void 0,applyH1:e.sessionId===eQ,mobileLayoutStretch:eL,mobileCarouselLayoutForNormalStyle:e_,styles:e=>({...eD&&{processRoot:{background:"#fff",padding:0},processBar:{background:eW.primary,opacity:.4}},...eI&&{root:{[e.fn.smallerThan("sm")]:{h2:{fontSize:(0,c.rem)(24),lineHeight:(0,c.rem)(32)}},[e.fn.largerThan("sm")]:{paddingBottom:0}}},...eM&&{root:{".heading-title":{fontSize:(0,c.rem)(24),lineHeight:(0,c.rem)(32),letterSpacing:"-0.8px",color:"#262626"},[e.fn.largerThan("sm")]:{".heading-title":{fontSize:(0,c.rem)(32),lineHeight:(0,c.rem)(42),letterSpacing:"-1px"}}}}})})}):w.includes(tN.dF.CLICKABLE_BANNER)||w.includes(tN.dF.CHAT_WITH_EXPERT)?e.isSingleBanner?(0,o.Y)(ClickableSingleBanner,{data:e,onItemClick:onItemClick,"data-id-scroll":e.hashtag,applyH1:e.sessionId===eQ,styles:t=>({root:{backgroundColor:getSessionBackgroundColor(w,e.backgroundColor),...eI&&{backgroundColor:"transparent",[t.fn.largerThan("sm")]:{paddingTop:40,paddingBottom:40}}},icon:{...eI&&{[t.fn.smallerThan("sm")]:{width:32}}},heading:{...eI&&{[t.fn.smallerThan("sm")]:{fontSize:(0,c.rem)(24),lineHeight:(0,c.rem)(32)}}},disclaimerIcon:{path:{fill:eI?eW.quaternary:eW.primary}}})}):(0,o.Y)(nq.p,{requireLogin:e.requireLogin,applyCarousel:e.applyCarousel,embedChatwootClick:!!(w.includes(tN.dF.CHAT_WITH_EXPERT)||eD),bgColor:getSessionBackgroundColor(w,(null===(m=(0,ra.N)(eD))||void 0===m?void 0:m[tN.dF.CLICKABLE_BANNER])||e.backgroundColor),banner:{title:e.title,description:e.description,listing:e.listing,list_banners:[],icon:""},chatToken:e.token,avatarIcon:e.avatarIcon,bannerProps:{"data-event-category":"Service Connection","data-event-action":"Clickable Banner"},hasDisclaimer:ek&&!w.includes(tN.dF.CHAT_WITH_EXPERT),onItemClick:onItemClick,applyH1:e.sessionId===eQ,openAllAccordion:e.expandAllCategories,styles:t=>({...tb&&{root:{backgroundColor:"transparent"}},...eI&&{root:{backgroundColor:"transparent",h3:{fontSize:(0,c.rem)(24),lineHeight:(0,c.rem)(32)},[t.fn.largerThan("sm")]:{paddingTop:40,paddingBottom:40,h3:{fontSize:(0,c.rem)(40),lineHeight:(0,c.rem)(52)}}},bannerItemWrapper:{img:{[t.fn.smallerThan("sm")]:{maxWidth:"55% !important"},[t.fn.largerThan("sm")]:{maxHeight:"50vh",minHeight:400,maxWidth:"max-content",margin:"0 auto"}}}},...eR&&{root:{backgroundImage:"url(".concat(d.C.getAssetPath("concung/doctor-bg-m.jpg"),")"),backgroundSize:"cover",[t.fn.largerThan("sm")]:{backgroundImage:"url(".concat(d.C.getAssetPath("concung/doctor-bg.jpg"),")")}},bannerList:{[t.fn.smallerThan("sm")]:{flexDirection:"column",gap:0}},bannerItem:{width:"100%",[t.fn.largerThan("sm")]:{width:400}},heading:{background:"linear-gradient(180deg, #253B75 24.37%, #2089C8 61.44%, #4274B7 73.15%, #253B75 91.68%)","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}},...!!eo.integrates3rdParty.chatwoodToken&&{root:{...eD&&{[t.fn.largerThan("md")]:{paddingBottom:0,position:"relative",...0===ea&&{"&:before":{content:'""',position:"absolute",top:"9%",left:"4%",zIndex:0,width:(0,c.rem)(181),height:(0,c.rem)(216),backgroundImage:"url(".concat(d.C.getAssetPath("roche/cancer-bg1.png"),")")}},...ea++==eK.length-1&&{"&:after":{content:'""',position:"absolute",bottom:0,right:0,zIndex:0,width:(0,c.rem)(181),height:(0,c.rem)(216),backgroundImage:"url(".concat(d.C.getAssetPath("roche/cancer-bg2.png"),")")}}}}},inner:{position:"relative",zIndex:1}},header:{textAlign:w.includes(tN.dF.CHAT_WITH_EXPERT)?"center":(e.listing||[]).length>3?"left":"center"}})}):w.includes(tN.dF.COMMUNITY_WITH_POSTS)?e.typeEmbed===tN.Rp.MINIGAME?(0,o.Y)(EmbedPost,{...e,applyH1:e.sessionId===eQ}):(0,o.Y)(EmbedCommunityWithPosts,{...e,applyH1:e.sessionId===eQ}):w.includes(tN.dF.ECOMMERCE_PRODUCS)?(0,o.Y)(CarePathProductWidgets,{title:e.title,products:e.products,bgColor:getSessionBackgroundColor(w,eW.primary),applyH1:e.sessionId===eQ}):w.includes(tN.dF.LEADGEN)?(0,o.FD)(o.FK,{children:[(0,o.Y)(ak.A,{ref:t=>{e.isModal&&0===a&&(e0.current[e.idScroll]=t)},autoOpen:!eY,scrollable:!eY,isModal:e.isModal,desktopModalType:eY?"fullscreen":"normal",data:e,primaryColor:eW.primary,styles:leadgenStyles,onModalChange:handleStopTrackingIdle}),eY&&(0,o.Y)(ak.A,{data:e,isModal:!0,scrollable:!0,desktopModalType:eY?"fullscreen":"normal",modalBanner:(()=>{var e;let t=null===(e=eo.listSessions.filter(e=>e.sessionLayout===tN.dF.HERO_BANNER_FULLWIDTH).slice(-1))||void 0===e?void 0:e[0];return t?(0,o.Y)(aa.H,{colorArr:[],keepRatio:!1,layout:ab.u,sessionProps:t,mappingIconList:tr,bannerTracking:{"data-event-action":"Dynamic Banner Click"}}):void 0})(),modalProps:{zIndex:100},hashToOpenModal:n0.qg,primaryColor:eW.primary,onDone:()=>{var e;ex({pathname:eb,query:ev,hash:""},void 0,{scroll:!1}),null==tt||null===(e=tt.current)||void 0===e||e.resetChatId()},styles:leadgenStyles})]}):w.includes(tN.dF.HERO_BANNER_DEFAULT)||w.includes(tN.dF.HERO_BANNER_FULLWIDTH)?(0,o.Y)(aa.H,{...tm,keepRatio:!1,onBannerLoad:()=>e1.current&&tc({idScroll:e.idScroll,loaded:!0}),layout:w.includes(tN.dF.HERO_BANNER_FULLWIDTH)||w.includes(tN.dF.FOOTER_BANNER)?ab.u:DefaultBanner,sessionProps:e,bannerTracking:{"data-event-action":"Dynamic Banner Click"},"data-auto-slide":e.autoSlideTiming,autoSlide:!!e.autoSlideTiming,delayTime:e.autoSlideTiming}):w.includes(tN.dF.HEALTH_TOOL)?(0,o.Y)(HealthToolEmbed,{data:e,applyH1:e.sessionId===eQ,styles:e=>({...tb&&{root:{backgroundColor:"transparent"}},...eM&&{root:{backgroundColor:"transparent",position:"relative",paddingBottom:"0 !important",[e.fn.smallerThan("sm")]:{"&:after":{content:'""',display:"block",height:0,paddingBottom:"70.66%",backgroundImage:"url(".concat(d.C.getAssetPath("tetAnKhang2026/bottom-mobile.png"),")"),backgroundSize:"cover",marginTop:20}},[e.fn.largerThan("sm")]:{"&:after":{content:'""',display:"block",height:0,paddingBottom:"32.29%",backgroundImage:"url(".concat(d.C.getAssetPath("tetAnKhang2026/bottom-desktop.png"),")"),backgroundSize:"cover",marginTop:"-5%"}}}}})}):w.includes(tN.dF.CONTENT_BANNER)?(0,o.Y)(AppIntroCards,{data:e.listBanner,className:"wide-container",isSingleLayout:e.singleLayout,"data-vertical-layout":!e.singleLayout}):w.includes(tN.dF.HEALTH_TOOL_LIST)?(0,o.Y)(InfoCardWithSmallIconSection,{title:e.title,description:e.description,data:e.healthTools,innerClass:"wide-container"}):w.includes(tN.dF.VISION_SECTION)?(0,o.Y)(InfoGardientSection,{heading:e.title,description:e.description,image:e.image,innerClass:"narrow-container"}):w.includes(tN.dF.FOOTER_BANNER)?(0,o.Y)("div",{className:"wide-container",children:(0,o.Y)(AppFooterBanner,{banner:{desktop:null===(g=e.imageBanner)||void 0===g?void 0:null===(u=g[0])||void 0===u?void 0:u.desktopBanner,mobile:null===(v=e.imageBanner)||void 0===v?void 0:null===(p=v[0])||void 0===p?void 0:p.mobileBanner},url:null===(b=e.imageBanner)||void 0===b?void 0:null===(x=b[0])||void 0===x?void 0:x.linkTo})}):w.includes(tN.dF.QUOTATION)?(0,o.Y)(Quotations,{color:eW.primary,wrapperProps:{...e.wrapperProps,bgColor:getSessionBackgroundColor(w,null===(y=e.wrapperProps)||void 0===y?void 0:y.bgColor)},data:e.quotations}):w.includes(tN.dF.SCHEDULED_EVENT)?(0,o.Y)(ScheduleEvent,{...e,applyH1:e.sessionId===eQ}):w.includes(tN.dF.CONTENT_EXPERT)?(0,o.Y)(ContentExpert,{...e,applyH1:e.sessionId===eQ,wrapperPropsStyles:{styles:{...eA&&{header:{".title":{color:"#001AA9"},".description":{color:"#595959"}}}}}}):w.includes(tN.dF.CUSTOMIZED_BLOCK)?(0,o.Y)(CustomizedBlock,{data:{...e,backgroundColor:getSessionBackgroundColor(w,e.backgroundColor)}}):w.includes(tN.dF.CTA_BANNER)?(0,o.Y)(ty.Q,{data:e,ratio:eI?eH?1.496:1300/2880:void 0,styles:{root:{...(eI||tb)&&{backgroundColor:"transparent"}}}}):w.includes(tN.dF.TYPEFORM_INLINE)?(0,o.Y)(TypeFormInline,{data:{...e,backgroundColor:getSessionBackgroundColor(w,e.backgroundColor)}}):w.includes(tN.dF.FAQS)?(0,o.Y)(CarePathFaqs,{...e,backgroundColor:getSessionBackgroundColor(w,e.backgroundColor),wrapperProps:{...e.wrapperProps,bgColor:getSessionBackgroundColor(w,(null===(C=e.wrapperProps)||void 0===C?void 0:C.bgColor)||e.backgroundColor)},applyH1:e.sessionId===eQ}):w.includes(tN.dF.POLL)?(0,o.Y)(PollEmbed,{data:{...e,backgroundColor:getSessionBackgroundColor(w,e.backgroundColor)},initialData:e.pollData,spotlightId:String((null==eo?void 0:eo.id)||""),applyH1:e.sessionId===eQ,prefix:ra.t[tN.dF.POLL],eventCategory:"Service Connection"}):w.includes(tN.dF.RATING_REVIEW)?(0,o.Y)(RatingReview,{...e,initialData:e.reviewsData,wrapperProps:{...e.wrapperProps,bgColor:getSessionBackgroundColor(w,(null===(S=e.wrapperProps)||void 0===S?void 0:S.bgColor)||e.backgroundColor)},applyH1:e.sessionId===eQ},"rating-review-".concat(e.collectionId,"-").concat(a)):null)})},n)})),eL&&(0,o.Y)(v.m,{children:(0,o.Y)(c.Box,{sx:e=>({padding:"0 0 40px",[e.fn.largerThan("sm")]:{padding:"20px 0 80px"}}),children:(0,o.Y)(PfizerDisclaimer,{})})})]})})}),!(null==eo?void 0:eo.disableAd)&&(0,o.FD)(x.w,{children:[(0,o.Y)(b.FixedBottomAdBlock,{className:"carepath-bottom-ad",adUnitPath:ts,isMobile:eH,customTargetings:tp}),(0,o.Y)(nK.OutOfPageAd,{id:"div-gpt-out-of-page",adUnitPath:ts})]}),eV.length>0&&(0,o.Y)(rt,{ref:te,onOpen:()=>handleStopTrackingIdle(!0),isTypeForm:!!ti.mobileFormId,children:(0,o.Y)(RiskScreenerEmbed,{withoutSkeleton:!0,data:{...null==eV?void 0:eV[0],backgroundColor:(null===(S=(0,ra.N)(eD))||void 0===S?void 0:S[tN.dF.EMBEDDING_RISKSCREENER])||(null==eV?void 0:eV[0].backgroundColor)},isDisabledAnimationOnMobile:!0,handleOnCloseMobile:()=>{var e;return null==te?void 0:null===(e=te.current)||void 0===e?void 0:e.close()},primaryColor:eW.primary,typeoformId:ti.mobileFormId})}),eD&&(0,o.Y)(rd,{}),(null===(T=eo.intensivePopup)||void 0===T?void 0:null===(w=T.leavingPopup)||void 0===w?void 0:w.title)&&(null===(B=eo.intensivePopup)||void 0===B?void 0:null===(k=B.leavingPopup)||void 0===k?void 0:k.message)&&(0,o.Y)(rp,{ref:e7,backgroundColor:eo.intensivePopup.leavingPopup.backgroundColor,buttonColor:eo.intensivePopup.leavingPopup.buttonColor,titleColor:eo.intensivePopup.leavingPopup.titleColor,desktopImage:eo.intensivePopup.leavingPopup.desktopImage,mobileImage:eo.intensivePopup.leavingPopup.mobileImage,title:eo.intensivePopup.leavingPopup.title,message:eo.intensivePopup.leavingPopup.message,messageColor:eo.intensivePopup.leavingPopup.messageColor,ctaBtn:eo.intensivePopup.leavingPopup.ctaBtn,defaultSection:{hash:null==eX?void 0:null===(N=eX[0])||void 0===N?void 0:N.idScroll,cta:null==eX?void 0:null===(F=eX[0])||void 0===F?void 0:F.title,btnTracking:{dataEventCategory:"Service Connection",dataEventAction:"".concat(ra.t[null==eX?void 0:null===(E=eX[0])||void 0===E?void 0:E.sessionLayout]||""," - Intent popup"),dataEventLabel:"".concat(tl.split("#")[0],"#").concat(decodeURI(null==eX?void 0:null===(A=eX[0])||void 0===A?void 0:A.idScroll))}},onItemClick:onItemClick,onChange:handleStopTrackingIdle}),(0,o.Y)(ru,{ref:e9,title:null==eo?void 0:null===(L=eo.intensivePopup)||void 0===L?void 0:null===(R=L.idlePopup)||void 0===R?void 0:R.title,backgroundColor:null==eo?void 0:null===(M=eo.intensivePopup)||void 0===M?void 0:null===(P=M.idlePopup)||void 0===P?void 0:P.backgroundColor,buttonColor:null==eo?void 0:null===(z=eo.intensivePopup)||void 0===z?void 0:null===(_=z.idlePopup)||void 0===_?void 0:_.buttonColor,titleColor:null==eo?void 0:null===(H=eo.intensivePopup)||void 0===H?void 0:null===(W=H.idlePopup)||void 0===W?void 0:W.titleColor,desktopImage:null==eo?void 0:null===(G=eo.intensivePopup)||void 0===G?void 0:null===(O=G.idlePopup)||void 0===O?void 0:O.desktopImage,mobileImage:null==eo?void 0:null===(j=eo.intensivePopup)||void 0===j?void 0:null===(V=j.idlePopup)||void 0===V?void 0:V.mobileImage,ctaBtn1:null==eo?void 0:null===(q=eo.intensivePopup)||void 0===q?void 0:null===(K=q.idlePopup)||void 0===K?void 0:K.ctaBtn1,ctaBtn2:null==eo?void 0:null===(X=eo.intensivePopup)||void 0===X?void 0:null===(Q=X.idlePopup)||void 0===Q?void 0:Q.ctaBtn2,onItemClick:onItemClick,listItems:eX.filter(e=>e.sessionLayout!==tN.dF.CUSTOMIZED_NAVIGATOR).slice(0,2).map(e=>({title:e.title,hash:e.idScroll,btnTracking:{dataEventCategory:"Service Connection",dataEventAction:"".concat(ra.t[e.sessionLayout]||""," - Idle popup"),dataEventLabel:"".concat(tl.split("#")[0],"#").concat(e.idScroll)}}))}),ec&&"1"===ev.external&&eK.length>0&&(0,o.Y)(IntroCarePathModal,{onItemClick:onItemClick,hashToShow:(null==eK?void 0:null===(J=eK[0])||void 0===J?void 0:J.idScroll)||(null==eK?void 0:null===(Z=eK[0])||void 0===Z?void 0:Z.hashtag)||""}),eY&&"true"===ri.env.NEXT_PUBLIC_ENABLE_AI_CHAT&&(0,o.Y)(y.A,{ref:tt,name:"Hello Sehat Expert",avatar:d.C.getAssetPath("soya/ai_avatar.png"),starterAvatarSize:128,showHighlightMessage:!0,cookieId:n0.nH,isShortVer:eH,widgetModalProps:{zIndex:99},onClickHighlightMess:()=>ex({pathname:eb,query:ev,hash:n0.qg},void 0,{shallow:!0,scroll:!1})}),eB&&(0,o.Y)("a",{href:"https://hellobacsi.com/care/bac-si/thsbsnt-nguyen-hai-anh-13714/",target:"_blank",rel:"noopener noreferrer",className:"taganil-external-sticky","aria-label":"External link",children:(0,o.Y)("div",{className:"taganil-external-sticky__bg","aria-hidden":!0})}),(0,o.Y)(rc,{visible:eH})]})})]})}},D5UJ:function(e,t,a){"use strict";a.d(t,{N:function(){return getSpecifySessionBgByPath},t:function(){return r}});var n=a("iZSu");let r={[n.dF.ARTICLES]:"Read Related Articles",[n.dF.EMBEDDING_RISKSCREENER]:"Check Risk Screener",[n.dF.EMBEDDING_DOCTORS]:"Find a Doctor",[n.dF.CLINIC_LOCATORS]:"Find a Clinic",[n.dF.VIDEOS]:"Video Icon Click",[n.dF.CLICKABLE_BANNER]:"Dynamic CTA Click",[n.dF.EMBEDDING_RISKSCREENER_MULTI]:"Multi banner",[n.dF.COMMUNITY_WITH_POSTS]:"Together Embedded",[n.dF.ECOMMERCE_PRODUCS]:"Eshop Product Click",[n.dF.LEADGEN]:"Voucher Click",[n.dF.SOYA_EXTERNAL_LINK]:"Open Soya Page",[n.dF.CHAT_WITH_EXPERT]:"Chat with Doctor - Move to Middle Chat",[n.dF.SOYA_OPEN_CHAT]:"Ask the Expert - Start Chat",[n.dF.STATIC_BANNER]:"Custom Navigator",[n.dF.CUSTOMIZED_NAVIGATOR]:"Custom Navigator",[n.dF.CONTENT_EXPERT]:"Health Care Professional",[n.dF.HEALTH_TOOL]:"Health Tool Click",[n.dF.CUSTOMIZED_BLOCK]:"Customized Block",[n.dF.CTA_BANNER]:"CTA Banner",[n.dF.TYPEFORM_INLINE]:"Inline Typeform",[n.dF.FAQS]:"FAQ section",[n.dF.POLL]:"Carepath Poll",[n.dF.RATING_REVIEW]:"Rating & Review section"};function getSpecifySessionBgByPath(e){return e?{[n.dF.EMBEDDING_DOCTORS]:"transparent",[n.dF.EMBEDDING_RISKSCREENER]:"#00BEBF",[n.dF.CLICKABLE_BANNER]:"#E7FFFE",[n.dF.VIDEOS]:"#E7FFFE"}:null}},PDSQ:function(e,t,a){"use strict";a.d(t,{U:function(){return useAppContext}});var n=a("+OUp"),r=a("VnHZ");let useAppContext=()=>(0,n.useContext)(r.B)},XWlF:function(e,t,a){"use strict";a.d(t,{j:function(){return useDateUtils}});var n=a("+OUp"),r=a("EikE");let o={"vi-VN":()=>Promise.resolve().then(a.bind(a,"OT65")),"zh-SG":()=>a.e(5857).then(a.bind(a,"+RfR"))};function useDateUtils(e){let[t,a]=(0,n.useState)(r.A);return(0,n.useEffect)(()=>{var t;null===(t=o[e])||void 0===t||t.call(o).then(e=>{a(e.default)})},[e]),(0,n.useMemo)(()=>({localize:t.localize,locale:t}),[t.localize,t])}},ErZK:function(e,t,a){"use strict";a.d(t,{Ek:function(){return r},WJ:function(){return n},e7:function(){return o},jf:function(){return s},oP:function(){return d},tK:function(){return l},u0:function(){return i}});let n="temp_baby_growth",r="baby_growth_data",o="temp_baby_vaccination",i="baby_vaccination_data",l="inskin_ovulation",s="service_connection_page",d="snp-latest-access"},"6xjG":function(e,t,a){"use strict";a.d(t,{Jw:function(){return formatTimeDigitNumber},Q8:function(){return getCountdown}});var n=a("8BcA"),r=a.n(n),o=a("13Ln"),i=a.n(o);r().extend(i());let l={day:0,hour:0,minute:0,second:0,isEnd:!0};function getCountdown(e){let{starDate:t,endDate:a}=e;if(!a)return l;let n=a.diff(t,"second");if(n<=0)return l;let o=r().duration(n,"second");return{day:o.days(),hour:o.hours(),minute:o.minutes(),second:o.seconds(),isEnd:!1}}let formatTimeDigitNumber=e=>1===String(e).length?"0".concat(e):e},"6czb":function(e){e.exports={watermarkContainer:"PollWidget_watermarkContainer__hYFXF",flipCard:"PollWidget_flipCard__ikppG","card-inner":"PollWidget_card-inner__nLnh9",pollCard:"PollWidget_pollCard__SXidA"}}}]);