(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[3094,4429],{xRYX:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bot/[slug]",function(){return i("ExQV")}])},"59Ys":function(e,t,i){"use strict";i.d(t,{o:function(){return clickAndOpenInNewTab}});let clickAndOpenInNewTab=e=>{let t=document.createElement("a");t.href=e,t.target="_blank",t.click()}},lNEE:function(e,t,i){"use strict";i.d(t,{f2:function(){return RichTextFormat},DK:function(){return hasRichTextContent}});var n=i("BGKE"),o=i("P+HS"),l=i("ns0B"),a=i.n(l),r=i("69Ac"),d=i("Wbba"),s=(0,i("vH4S").createStyles)(e=>({root:{whiteSpace:"normal","ol,ul":{marginLeft:30},ol:{listStyleType:"decimal"},ul:{listStyleType:"disc"},li:{margin:"10px 0"},a:{color:e.fn.primaryColor()},p:{marginTop:8,"&:first-child":{marginTop:0}},blockquote:{position:"relative",padding:24,"&::before":{position:"absolute",top:0,left:0,display:"block",width:16,height:16,content:"url(".concat(d.C.getAssetPath("/quote-left-small.svg"),")")},"&::after":{position:"absolute",bottom:0,right:0,display:"block",width:16,height:16,content:"url(".concat(d.C.getAssetPath("/quote-right-small.svg"),")")}}},rootWithLineClamp:{"& p":{marginTop:0,marginBottom:0}}}));let c=/<\/?[a-z][\s\S]*?>/i,hasRichTextContent=e=>{if(!(null==e?void 0:e.trim()))return!1;let t=e.replace(//gi," ").replace(/<[^>]+>/g,"").replace(/ /gi," ").trim();return t.length>0},prepareRichTextContent=e=>{if(!hasRichTextContent(e))return null;let t=e.trim();return c.test(t)?t:(0,r.jt)(t)},RichTextFormat=e=>{let{content:t,className:i,lineClamp:l,...r}=e,d=prepareRichTextContent(t),{classes:c,cx:u}=s(void 0,{name:"RichTextFormat"});if(!d)return null;if(void 0!==l&&l>0){let e=a()(d.replace(//gi," ").replace(/<\/?ul[^>]*>/gi,"").replace(/<\/?ol[^>]*>/gi,"").replace(/]*>/gi," • ").replace(/<\/li>/gi," ")).replace(/\s+/g," ").trim();return e?(0,n.Y)(o.Text,{...r,lineClamp:l,as:"div",className:u(i,c.root,c.rootWithLineClamp),children:e}):null}return(0,n.Y)(o.Text,{...r,as:"div",className:u(i,c.root),dangerouslySetInnerHTML:{__html:d}})}},mYBQ:function(e,t,i){"use strict";i.r(t),i.d(t,{NotificationsHandler:function(){return NotificationsHandler},showNotification:function(){return showNotification}});var n=i("BGKE");i("+OUp");var o=i("jj4h"),l=i("0Woy"),a=i("hvR8"),r=i.n(a),d=i("d30B"),s=i.n(d),c=i("X1xk"),u=i.n(c),m=i("l0B8"),p=i.n(m);function NotificationsHandler(){return(0,n.Y)(o.$,{position:"top-right",zIndex:2077,autoClose:5e3})}let showNotification=e=>{let{type:t,title:i,...o}=e,a={success:"green",danger:"red",warning:"yellow",info:"blue",firebase:"gray"},d={success:(0,n.Y)(u(),{width:20,height:20}),danger:(0,n.Y)(r(),{width:20,height:20}),warning:(0,n.Y)(p(),{width:20,height:20}),info:(0,n.Y)(s(),{width:20,height:20}),firebase:""},c=d[t];l.$e.show({title:(0,n.Y)("b",{children:i}),icon:c,withCloseButton:!0,closeButtonProps:{label:"Close alert"},...o,styles:e=>{let i=a[t]||"blue";return{root:{backgroundColor:e.colors[i][0],borderColor:e.colors[i][0],"&::before":{backgroundColor:e.white}},title:{color:e.colors[i][8]},description:{color:e.black},closeButton:{color:e.black,"&:hover":{backgroundColor:e.colors[i][0]}},icon:{backgroundColor:"transparent",padding:0}}}})}},mdEm:function(e,t,i){"use strict";i.d(t,{CD:function(){return s},Qh:function(){return getActivityLevelList},_8:function(){return getActivityLevelShortLabel},e4:function(){return l},vL:function(){return a},zY:function(){return d}});var n,o,l,a,r=i("Wbba");(n=l||(l={})).DUE_DATE="due-date-calculator",n.BMI="bmi",n.BMR="bmr",n.OVULATION="ovulation",n.IFRAME="IFRAME",n.PWG="pregnancy-weight-gain",n.THR="heart-rate",n.BABY_VACCINE="vaccination-tool",n.BABY_GROWTH="baby-growth-tracking",n.BABY_POOP="baby-poop-checking",n.AIR_POPULATION="air-population-tool";let d={DUE_DATE:"due-date-calculator",BMI:"bmi",BMR:"bmr",OVULATION:"ovulation",IFRAME:"IFRAME",PWG:"pregnancy-weight-gain",THR:"heart-rate",BABY_VACCINE:"vaccination-tool",BABY_GROWTH:"baby-growth-tracking",BABY_POOP:"baby-poop-checking"};(o=a||(a={})).LOW_INTENSITY="low_intensity",o.MODERATE_INTENSITY="moderate_intensity",o.AEROBIC_INTENSITY="aerobic_intensity",o.VIGOROUS_INTENSITY="vigorous_intensity",o.MAXIMUM_INTENSITY="maximum_intensity";let getActivityLevelShortLabel=(e,t)=>{let i={low_intensity:t({id:"activityLevel.noExerciseShort"}),moderate_intensity:t({id:"activityLevel.oneThreeDaysShort"}),aerobic_intensity:t({id:"activityLevel.threeFiveDaysShort"}),vigorous_intensity:t({id:"activityLevel.sixSevenDaysShort"}),maximum_intensity:t({id:"activityLevel.routineShort"})};return i[e]||""},getActivityLevelList=e=>[{label:e({id:"activityLevel.noExercise",defaultMessage:"Little to no exercise"}),value:"low_intensity",point:1.2},{label:e({id:"activityLevel.oneThreeDays",defaultMessage:"Light exercise 1–3 days a week"}),value:"moderate_intensity",point:1.375},{label:e({id:"activityLevel.threeFiveDays",defaultMessage:"Medium exercise 3–5 days a week"}),value:"aerobic_intensity",point:1.55},{label:e({id:"activityLevel.sixSevenDays",defaultMessage:"Hard exercise 6–7 days a week"}),value:"vigorous_intensity",point:1.725},{label:e({id:"activityLevel.routine",defaultMessage:"Challenging exercise routine"}),value:"maximum_intensity",point:1.9}];d.DUE_DATE,r.C.getAssetPath("health-tools/due-date-icon.svg");let s="additional_questions"},"PAs/":function(e,t,i){"use strict";var n,o,l,a,r,d,s,c,u,m;i.d(t,{Ch:function(){return n},RS:function(){return r},XG:function(){return l},Z6:function(){return o},rQ:function(){return a},sR:function(){return p},zc:function(){return g}}),(d=n||(n={}))[d.HEAD=0]="HEAD",d[d.TAIL=1]="TAIL",d[d.MIDDLE=2]="MIDDLE",d[d.CONNECT=3]="CONNECT",d[d.SSO=4]="SSO",d[d.MULTIPLE=5]="MULTIPLE",(s=o||(o={}))[s.UNDEFINED=-1]="UNDEFINED",s[s.TEXT=0]="TEXT",s[s.IMAGE=1]="IMAGE",s[s.FORM=2]="FORM",s[s.CONDITION=3]="CONDITION",s[s.POLL=4]="POLL",s[s.FINAL_STANDARD=5]="FINAL_STANDARD",s[s.FINAL=6]="FINAL",s[s.FINAL_THANK_YOU=7]="FINAL_THANK_YOU",s[s.RATING=8]="RATING",s[s.REACTION=9]="REACTION",s[s.REVIEW=10]="REVIEW",s[s.RESULT_POLL=11]="RESULT_POLL",s[s.RESULT_RATING=12]="RESULT_RATING",s[s.RESULT_REACTION=13]="RESULT_REACTION",s[s.OTP=14]="OTP";let p=[6,5,7];(c=l||(l={})).BOT_TEXT="bot-text",c.BOT_IMAGE="bot-image",c.BOT_BACKGROUND_IMAGE="bot-background-image",c.BOT_BUTTON="bot-button",c.BOT_URL="bot-url",c.BOT_RECALCULATE="bot-recalculate",c.BOT_BOOKING="bot-booking",c.BOT_MAIN_TITLE="bot-main-title",c.BOT_MAIN_IMAGE="bot-main-image",c.BOT_MAIN_BODY="bot-main-body",c.BOT_MAIN_BUTTON="bot-main-button",c.BOT_SUB_TITLE="bot-sub-title",c.BOT_SUB_BODY="bot-sub-body",c.BOT_LANDING_PAGE_URL="bot-landing-page-url",c.BOT_LANDING_PAGE_BUTTON="bot-landing-page-button",c.BOT_RISK_SCREEN="bot-risk-screen",c.BOT_RELATED_ARTICLE="bot-related-article",c.THANK_YOU_IMAGE="thank-you-image",c.THANK_YOU_TITLE="thank-you-title",c.THANK_YOU_BODY="thank-you-body",c.TOTAL_LINE="total-line",c.BOT_SUBMISSION="bot-submission",c.BOT_EVENT_SUBMISSION="bot-event-submission",c.BOT_SUGGESTED_SERVICE="bot-suggested-service",c.SSO_INTENT="sso-intent",(u=a||(a={})).ACTION_CONDITION="action-condition",u.ACTION_INTERNAL="action-internal",u.ACTION_EXTERNAL="action-external",u.ACTION_SSO_REDIRECT="action-sso-redirect",u.ACTION_MULTIPLE_BUTTON="action-multiple-button",u.USER_CHOICE_TEXT="user-choice-text",u.USER_CHOICE_TEXT_BY_INPUT="user-choice-text-by-input",u.USER_CHOICE_NEXT="user-choice-next",u.USER_CHOICE_IMAGE="user-choice-image",u.USER_SUBMIT_TEXT="user-submit-text",u.USER_SUBMIT_NUMBER="user-submit-number",u.USER_SUBMIT_NAME="user-submit-name",u.USER_SUBMIT_PHONE="user-submit-phone",u.USER_SUBMIT_EMAIL="user-submit-email",u.USER_SUBMIT_DROPDOWN="user-submit-dropdown",u.USER_SUBMIT_DATE="user-submit-date",u.USER_SUBMIT_CONFIRM="user-submit-confirm",u.USER_SUBMIT_SEND="user-submit-send",u.USER_SUBMIT_RESEND="user-submit-resend",u.USER_SUBMIT_ADDRESS="user-submit-address",u.USER_SUBMIT_ADDRESS_PROVINCE="user-submit-address-province",u.USER_SUBMIT_ADDRESS_DISTRICT="user-submit-address-district",u.USER_SUBMIT_ADDRESS_COMMUNE="user-submit-address-commune",u.USER_SUBMIT_BMI="user-submit-bmi",u.USER_SUBMIT_BMI_HIDDEN="user-submit-bmi-hidden",u.USER_SUBMIT_TERMS="user-submit-terms",u.USER_SUBMIT_GENDER="user-submit-gender",u.USER_SUBMIT_OTP="user-submit-otp",u.USER_SUBMIT_WHATSAPP="user-submit-whatsapp",u.POLL_CHOICE="poll-choice",u.POLL_CHOICE_TEXT_BY_INPUT="poll-choice-text-by-input",u.POLL_CHOICE_IMAGE="poll-choice-image",u.POLL_BUTTON="poll-button",u.RATING_STAR="rating-star",u.RATING_DESCRIPTION="rating-description",u.RATING_BUTTON="rating-button",u.LIKE_CHOICE="like-choice",u.DISLIKE_CHOICE="dislike-choice",u.REVIEW_CHOICE="review-choice",u.REVIEW_DESCRIPTION="review-description",u.REVIEW_BUTTON="review-button",u.RESULT_BUTTON="result-button",u.POLL_RESULT="poll-result",u.USER_SUBMIT_GOOGLE_API_ADDRESS="user-submit-google-api-address",(m=r||(r={}))[m.UNLIMITED=0]="UNLIMITED",m[m.EXACT_NUMBER=1]="EXACT_NUMBER",m[m.RANGE=2]="RANGE";let g={"user-submit-email":"email","user-submit-text":"text","user-submit-dropdown":"text","user-submit-name":"name","user-submit-number":"number","user-submit-address":"address","user-submit-phone":"tel","user-submit-otp":"tel","user-submit-whatsapp":"tel","user-submit-date":"date","user-submit-confirm":"confirm","user-submit-send":"submit","user-submit-terms":"terms","user-submit-address-province":"province","user-submit-address-district":"district","user-submit-address-commune":"commune","user-submit-bmi":"bmi","user-submit-gender":"gender","poll-choice":"poll","poll-choice-image":"poll","rating-star":"rating","rating-description":"text","like-choice":"like","dislike-choice":"dislike","review-choice":"review","user-submit-google-api-address":"google-api-address","user-choice-text-by-input":"text","poll-choice-text-by-input":"text"}},ExQV:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return t3},default:function(){return _slug_}});var n,o,l=i("BGKE"),a=i("+OUp"),r=i("99+y"),d=i("LSb+"),s=i("aVqH"),c=i("7/Cf"),u=i("bPK4"),m=i("johO"),p=i("SHon"),g=i("WkTD"),h=i("LN2W"),b=i("EE8p"),v=i("TSYQ"),_=i.n(v),f=i("p46w"),y=i.n(f),x=i("iCAz"),w=i("wA0V"),T=i("AG8C"),k=i("9brV"),E=i("PAs/"),S=i("VnHZ"),M=i("dnor"),I=i("rBCA"),N=i("CL9C"),C=i("iBNF");let Y="\n width: 100%;\n max-width: 600px;\n padding: 16px;\n margin-right: auto;\n margin-left: auto;\n ".concat(N.M.mbDown," {\n max-width: 100%;\n }\n");C.w.colors.gray200,C.w.borderRadius,C.w.borderRadius,C.w.colors.gray100,C.w.borderRadius,N.M.mbUp,N.M.mbDown,N.M.mbUp,N.M.mbDown,N.M.mbUp,N.M.mbDown,N.M.mbUp,N.M.mbDown,C.w.colors.gray400,C.w.colors.primaryBase,C.w.colors.primary100,C.w.colors.primaryBase,C.w.colors.neutral50,C.w.colors.primaryBase,C.w.colors.primaryBase,C.w.colors.neutral50,C.w.colors.primaryBase;let A=(0,I.A)("div",{target:"evmarvu4"})("position:relative;z-index:1;min-height:80vh;font-size:16px;line-height:24px;a{color:",C.w.colors.primaryBase,";text-decoration:none;transition:0.3s all ease;&:hover{color:",C.w.colors.primaryHover,";}}.title{",N.M.mbUp,"{font-size:22px;line-height:32px;margin-top:32px;margin-bottom:16px;}",N.M.mbDown,"{font-size:18px;line-height:26px;margin-top:24px;margin-bottom:16px;}}.lp_loading-container{position:absolute;z-index:12;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-color:rgba(255,255,255,0.4);opacity:0;pointer-events:none;transition:0.25s all linear;&.open{opacity:1;pointer-events:auto;transition:0.25s all linear;}.lp_loading-icon{}}.buttons-area{position:sticky;bottom:0;left:0;display:flex;width:100%;justify-content:center;border-top:4px solid #f7f9fc;background:#fff;&-container{width:100%;margin:0 auto;text-align:right;",N.M.mbUp,"{max-width:596px;padding:22px 14px;}",N.M.mbDown,"{max-width:100%;padding:16px;}h2{margin-bottom:20px;}}button{display:inline-block;svg{path{stroke:#fff !important;}}&.back-btn{svg{path{stroke:",C.w.colors.primaryBase," !important;}}&:hover{border-color:",C.w.colors.gray300,";background-color:",C.w.colors.gray300,";svg{path{stroke:#fff !important;}}}&:disabled{svg{path{stroke:#fff !important;}}}}&.next-btn{margin-left:10px;}}}.subot_landingpage_progress{position:absolute;top:-4px;left:0;right:0;}"),L=(0,I.A)("div",{target:"evmarvu5"})("position:absolute;z-index:12;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:0.25s linear all;&:before{position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;background-color:",C.w.colors.neutral50||"#F7F9FC",";content:'';}&.loading{opacity:1;pointer-events:auto;transition:0.25s linear all;}");var O=i("JOt+");let D=(0,a.createContext)({activeId:"",params:{},nodes:[],currentNode:void 0,trackingCommon:{},totalFlows:10}),subotLandingPageClick=async e=>{try{return await (0,s.px)((0,u.PU)(d.PATHS.SUBOT.POST_LANDING_PAGE_CLICK),"POST",{data:e})}catch(e){}},subotLandingPageImpress=async e=>{try{return await (0,s.px)((0,u.PU)(d.PATHS.SUBOT.POST_LANDING_PAGE_IMPRESSION),"POST",{data:e})}catch(e){}},subotLandingPageMessage=async e=>{try{return await (0,s.px)((0,u.PU)(d.PATHS.SUBOT.GET_LANDING_PAGE_NEXT_NODE),"POST",{data:e})}catch(e){}},sidisRiskScreenersId=async e=>{try{let t=await (0,O.callApiNew)(d.PATHS.SIDIS.GET_SIDIS_RISK_SCREENERS_ID,{params:{id:e}},"sidis_frontend");return t}catch(e){}};var P=i("dDsW"),B=i("mYBQ"),U=i("lpGY"),R=i("AeFk"),F=i("tuDO");let z=(0,I.A)(F.B,{target:"e77ede80"})("min-width:310px;svg{path{stroke:",C.w.colors.primaryBase||"#2685F1"," !important;}}&:hover{svg{path{stroke:#fff !important;}}}",N.M.mbDown,"{min-width:250px;}"),H=(0,I.A)("div",{target:"e77ede82"})("display:flex;flex-wrap:wrap;align-items:center;justify-content:center;margin-top:20px;.main-button-container{display:flex;width:100%;gap:10px;justify-content:space-between;flex-wrap:wrap;button{flex:1 1 auto;}}.booking-now,.recalculate{min-width:310px;",N.M.mbDown,"{min-width:250px;}}.booking-now{&[disabled]{pointer-events:none;}}.recalculate{svg{path{fill:none !important;stroke:currentColor !important;}}}&.two-buttons{gap:10px;.booking-now,.recalculate,.main-button{min-width:0;}",N.M.mbDown,"{flex-direction:column-reverse;.booking-now,.recalculate{width:100%;}}}"),G=(0,I.A)("div",{target:"e77ede83"})(),X=(0,I.A)("div",{target:"e77ede84"})("margin-top:16px;"),V=(0,I.A)("div",{target:"e77ede85"})(Y," min-height:80vh;padding-bottom:60px;&.landing-page-node-form-wrapper{max-width:700px;.landing-page-intent-image,.landing-page-intent-text{border:none;}}"),j=(0,I.A)("div",{target:"e77ede86"})(),K=(0,I.A)("div",{target:"e77ede87"})("font-weight:400;font-size:16px;line-height:24px;display:flex;align-items:center;color:#595959;font-style:italic;"),W=(0,I.A)(j,{target:"e77ede88"})("display:flex;min-height:80vh;align-items:center;justify-content:center;padding-top:5rem;padding-bottom:5rem;",V,"{max-width:480px;min-height:auto;padding:32px 20px;background-color:",C.w.colors.neutral100,";border-radius:",C.w.borderRadius,";text-align:center;.intent-list{align-items:center;}",X,"{margin-top:8px;}}"),Q=(0,R.i7)("from{opacity:0;transform:translate3d(0,20%,0);}to{opacity:1;transform:translate3d(0,0,0);}"),q=(0,R.i7)("from{opacity:0;transform:translate3d(-20%,0,0);}to{opacity:1;transform:translate3d(0,0,0);}"),J=(0,I.A)("div",{target:"e77ede89"})("padding-bottom:80px;line-height:24px;",N.M.mbDown,"{padding-bottom:0;}.lp-page-start{display:block;&.hide{display:none;}.lp-page-container{margin:0 auto;",N.M.mbDown,"{width:100%;}",N.M.mbUp,"{width:568px;}}.lp-page-descriptions{width:100%;background:url('",k.nS,"/bg-risk-screener-mobile.png') top\n center no-repeat;",N.M.mbDown,"{background:",e=>"url('".concat(e.$bg||"".concat(k.nS,"/bg-risk-screener-mobile.png"),"') top center no-repeat;"),";background-size:cover;padding:32px 16px;.lp-page-descriptions__image-banner{margin:0 -16px 24px -16px;}margin-bottom:32px;}",N.M.mbUp,"{background:",e=>"url('".concat(e.$bg||"".concat(k.nS,"/bg-risk-screener.jpg"),"') top center no-repeat;"),";background-size:cover;padding:66px 0;margin-bottom:48px;}&__container{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 auto;",N.M.mbDown,"{width:100%;}",N.M.mbUp,"{width:770px;}&__left{",N.M.mbDown,"{order:2;width:100%;}",N.M.mbUp,"{width:60%;order:1;}}&__right{text-align:center;img{display:inline-block;width:auto;max-width:100%;height:auto;animation-delay:0.8s;animation-duration:1s;animation-fill-mode:both;animation-name:",Q,";}",N.M.mbDown,"{width:100%;order:1;margin-bottom:20px;}",N.M.mbUp,"{width:35%;order:2;margin-bottom:0;}}}&__image-banner{margin-bottom:24px;text-align:center;img{display:inline-block;width:auto;max-width:100%;height:auto;}}h1{animation-duration:1s;animation-fill-mode:both;animation-name:",q,";color:",C.w.colors.indigo800,";font-weight:700;",N.M.mbDown,"{text-align:center;font-size:26px;line-height:34px;margin-bottom:20px;}",N.M.mbUp,"{text-align:left;font-size:40px;line-height:52px;margin-bottom:24px;}}&__list{li{display:flex;flex-wrap:wrap;align-items:flex-start;margin-bottom:16px;color:#404040;font-size:18px;line-height:31px;svg{width:8px;height:8px;margin-top:11px;margin-right:10px;}span{width:calc(100% - 18px);}&:last-child{margin-bottom:0;}",N.M.mbDown,"{font-size:16px;}",N.M.mbUp,"{font-size:18px;}}}&__button{",N.M.mbDown,"{text-align:center;}",N.M.mbUp,"{text-align:left;}button{display:inline-block;}}&__review{color:",C.w.colors.gray600,";font-size:11px;font-weight:normal;",N.M.mbDown,"{margin-bottom:20px;text-align:center;}",N.M.mbUp,"{margin-bottom:24px;text-align:left;}svg{margin-right:6px;vertical-align:middle;vertical-align:text-bottom;}.bold-text{font-weight:700;}.reviewer{text-decoration:underline;}a{color:",C.w.colors.gray600,";text-decoration:underline;}p{display:inline;}}}.lp-page-exclamation-title{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:16px;color:",C.w.colors.gray400,";font-size:14px;line-height:22px;svg{margin-right:10px;}}.lp-page-info{",N.M.mbDown,"{padding:0 16px;.lp-page-info__list{padding-left:0;}}",N.M.mbUp,"{padding-left:0;}&__list{padding-left:10px;}.lp-page-container{border-bottom:8px solid #f7f9fc;[data-expand] p{margin:12px 0;}",N.M.mbDown,"{padding-bottom:calc(32px - 1rem);}",N.M.mbUp,"{padding-bottom:calc(44px - 1rem);}}}.lp-page-disclaimer{",N.M.mbDown,"{padding:32px 16px;.lp-page-disclaimer__content{padding-left:0;}}",N.M.mbUp,"{padding:32px 0;}&__content{padding-left:25px;p{margin:12px 0;}}.lp-page-exclamation-title{margin-bottom:4px;}}.lp-page-description{margin-bottom:32px;",N.M.mbDown,"{padding:0 16px;}",N.M.mbUp,"{padding:0;}.lp-page-container{padding-bottom:40px;border-bottom:8px solid #f7f9fc;h1,h2,h3,h4,h5,h6{display:block;color:",C.w.colors.gray800,";",N.M.mbDown,"{font-size:18px;line-height:24px;margin-bottom:24px;}",N.M.mbUp,"{font-size:22px;line-height:28px;margin-bottom:28px;}}ul{padding:0;margin:0;list-style:none;li{position:relative;padding-left:26px;margin-bottom:16px;font-size:16px;line-height:24px;&:last-child{margin-bottom:0;}&:before{position:absolute;top:7px;left:5px;display:block;width:10px;height:10px;background:url('",k.Mp,"/rounded-list-icon.svg') center\n center no-repeat;background-size:contain;content:' ';}}}p{margin:12px 0;}}}}"),Z=(0,I.A)("div",{target:"e77ede810"})(".lp_review{display:flex;align-items:center;gap:4px;color:",C.w.colors.gray600,";font-size:14px;line-height:22px;letter-spacing:-0.2px;a{color:",C.w.colors.gray800,";}}.lp_title{color:",C.w.colors.gray800,";font-size:24px;font-weight:700;line-height:1.3;letter-spacing:-0.8px;",N.M.mbUp,"{font-size:32px;line-height:42px;letter-spacing:-1px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;}}.lp_container{display:flex;flex-wrap:wrap;",N.M.mbUp,"{gap:24px;flex-wrap:nowrap;width:100%;max-width:744px;margin-inline:auto;padding-block:69px;}}.lp_header{order:2;width:100%;display:flex;gap:16px;flex-direction:column;padding:24px 16px;animation-duration:1s;animation-fill-mode:both;animation-name:",q,";",N.M.mbUp,"{flex:1;min-width:0;order:1;padding:0;}}.next-btn{width:100%;",N.M.smbUp,"{width:auto;}}.lp_image{order:1;width:100%;background-image:",e=>{let{$bg:t}=e;return"url('".concat(t||"".concat(k.nS,"/bg-risk-screener-mobile.png"),"');")},";background-repeat:no-repeat;background-size:cover;background-position:center;padding-block:35px;animation-duration:1s;animation-fill-mode:both;animation-name:",Q,";",N.M.mbUp,"{background-image:none;width:auto;padding-block:0px;}}.lp_image_wrapper{width:96px;margin-inline:auto;",N.M.mbUp,"{width:168px;margin-inline:0;}}.lp_image_ratio{position:relative;padding-top:100%;width:100%;overflow:hidden;}.lp_image_img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;}",N.M.mbUp,"{background-image:",e=>{let{$bg:t}=e;return"url('".concat(t||"".concat(k.nS,"/bg-risk-screener.jpg"),"');")},";background-repeat:no-repeat;background-size:cover;background-position:top center;display:flex;align-items:center;min-height:392px;& + .lp-page-description{margin-top:24px;}}");var $=i("kn93"),ee=i("vH4S"),et=i("oOSY"),ei=i("oXFM"),en=i("Z6z+"),eo=i.n(en),el=i("PSBK"),ea=i.n(el),er=i("LHJM"),ed=i.n(er),es=i("/qnE"),ec=i.n(es);let eu=(0,I.A)("div",{target:"evfudjb0"})("display:flex;align-items:center;padding:16px 24px;border:1px solid\n ",e=>{let{active:t}=e;return t?C.w.colors.primaryBase||"#2685F1":C.w.colors.white||"#fff"},";background-color:",C.w.colors.neutral50||"#F7F9FC",";border-radius:",C.w.borderRadius,";cursor:pointer;transition:0.25s all linear;.label{flex:1;}.icon{position:relative;z-index:0;display:flex;width:24px;height:24px;align-items:center;justify-content:center;padding:1px;transition:0.2s linear all;.icon-checkbox{width:100%;height:100%;opacity:0;",e=>{let{active:t}=e;return t&&"opacity: 1"},";transition:0.25s all linear;}&:before{position:absolute;top:50%;left:50%;width:22px;height:22px;border:2px solid\n ",e=>{let{active:t}=e;return t?C.w.colors.primaryBase||"#2685F1":C.w.colors.gray600||"#595959"},";border-radius:50%;content:'';transform:translate(-50%,-50%);transition:0.25s all linear;}&:after{position:absolute;z-index:-1;top:50%;left:50%;width:10px;height:10px;background-color:",C.w.colors.primaryBase||"#2685F1",";border-radius:50%;content:'';opacity:0;",e=>{let{active:t}=e;return t&&"opacity: 1"},";transform:translate(-50%,-50%);transition:0.25s all linear;}}&:hover{border-color:",C.w.colors.primaryBase||"#2685F1",";.icon{&:before{border-color:",C.w.colors.primaryBase||"#2685F1",";transition:0.2s linear all;}}}",N.M.tdDown,"{padding:16px 20px;}"),em=(0,I.A)(eu,{target:"evfudjb1"})("position:relative;flex-wrap:wrap;padding:16px;.image-container{position:relative;overflow:hidden;width:100%;padding-top:67%;border-radius:10px;.image{position:absolute;top:50%;left:50%;width:100%;min-width:100%;height:auto;min-height:100%;transform:translate(-50%,-50%);}}.label{margin-top:8px;font-size:16px;line-height:1.5;}.icon{position:absolute;top:1.75rem;right:1.75rem;&:before{z-index:-1;background-color:#fff;}}",N.M.tdDown,"{padding:12px;.label{margin-top:12px;}.icon{top:1.3rem;right:1.3rem;}}",N.M.tdDown,"{padding:8px;.label{margin-top:8px;}.icon{top:0.9rem;right:0.9rem;}}"),ep=(0,I.A)("div",{target:"evfudjb2"})("position:relative;z-index:0;display:flex;overflow:hidden;align-items:center;padding:16px 20px;border-radius:",C.w.borderRadius,";.number{width:32px;margin-right:14px;font-weight:600;}.content{flex:1;}.icon{width:16px;margin-left:8px;}&:before{position:absolute;z-index:-1;top:0;right:",e=>{let{percent:t}=e;return t?"".concat(100-t,"%"):"100%"},";bottom:0;left:0;background-color:",e=>{let{is_chosen:t}=e;return t?C.w.colors.primary50||"#E3F2FF":C.w.colors.neutral100||"#E4E8EC"},";content:'';transition:0.3s all linear;}&:after{position:absolute;z-index:-2;top:0;right:0;bottom:0;left:0;background-color:",C.w.colors.neutral50||"#F7F9FC",";content:'';}",N.M.mbDown,"{padding:6px 16px;}"),eg=(0,I.A)("div",{target:"evfudjb3"})("display:flex;min-width:150px;align-items:center;justify-content:center;padding:10px 24px;border:1px solid ",C.w.colors.neutral100||"#E4E8EC",";background-color:#fff;border-radius:32px;color:",C.w.colors.gray600,";cursor:pointer;svg{margin-right:8px;path{fill:",C.w.colors.gray600,";}}",e=>{let{active:t}=e;return t&&"\n color: ".concat(C.w.colors.white,";\n background-color: ").concat(C.w.colors.primaryHover,";\n svg {\n stroke: transparent;\n path {\n fill: #fff;\n }\n }\n ")}),eh=(0,I.A)("div",{target:"evfudjb4"})("margin-top:20px;font-weight:600;"),eb=(0,I.A)("div",{target:"evfudjb5"})("width:",e=>{let{width:t}=e;return t||"100%"},";padding:4px;",N.M.mbDown,"{width:100%;&.review-choice{width:auto;}}"),ev=(0,I.A)("div",{target:"evfudjb6"})("display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;margin:-4px;"),SubotLandingPageUserChoiceText=e=>{let{active:t,action:i,onChange:n,htmlType:o,formSubmitMeta:r}=e,{formatMessage:d}=(0,P.A)(),s=(0,a.useRef)(null),{trackingCommon:c}=(0,a.useContext)(D),[u,m]=(0,a.useState)(""),p=(null==i?void 0:i.type)===E.rQ.POLL_CHOICE_TEXT_BY_INPUT,g=(null==i?void 0:i.type)===E.rQ.USER_CHOICE_TEXT_BY_INPUT||p,h=(null==i?void 0:i.type)===E.rQ.USER_CHOICE_NEXT;return(0,a.useEffect)(()=>{if(t){var e,i;m((null==r?void 0:null===(e=r.find(e=>e.key===b.KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD))||void 0===e?void 0:e.value)||""),null===(i=s.current)||void 0===i||i.focus()}},[t,r]),(0,l.FD)(l.FK,{children:[(null==i?void 0:i.label)&&(0,l.Y)(eb,{children:(0,l.FD)(eu,{active:!!t,onClick:()=>null==n?void 0:n(i),className:"pointer-event-child-none",...c,"data-response-id":i.id,"data-event-action":"Answer Click",children:[(0,l.Y)("div",{className:"label",children:h?(0,l.Y)(ei.o,{children:d({id:"riskScreener.next",defaultMessage:"Next"})}):(0,l.Y)(ei.o,{children:null==i?void 0:i.label})}),(0,l.Y)("div",{className:"icon",children:"checkbox"===o&&(0,l.Y)(eo(),{className:"icon-checkbox",viewBox:"0 0 22 22"})})]})}),g&&t&&(0,l.Y)(ee.Box,{px:"2px",style:{textAlign:"right",width:"100%"},children:(0,l.Y)(ee.Textarea,{ref:s,placeholder:null==i?void 0:i.label,value:u,onChange:e=>{m(e.target.value),g&&(null==n||n(i,[{key:b.KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD,control:"text",value:e.target.value,action_id:i.id}]))},maxLength:360})})]})},e_={[E.rQ.ACTION_SSO_REDIRECT]:e=>{let{action:t,onChange:i}=e,{trackingCommon:n}=(0,a.useContext)(D);return(0,l.Y)(l.FK,{children:(null==t?void 0:t.label)&&(0,l.Y)(eb,{width:"50%",style:{alignSelf:"center",textAlign:"center"},children:(0,l.Y)(F.B,{size:"md",isBlock:!0,onClick:()=>{i&&i(t)},...n,className:"pointer-event-child-none","data-event-action":"Login Click","data-response-id":t.id,children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})})})},[E.rQ.USER_CHOICE_TEXT]:SubotLandingPageUserChoiceText,[E.rQ.USER_CHOICE_TEXT_BY_INPUT]:SubotLandingPageUserChoiceText,[E.rQ.USER_CHOICE_NEXT]:SubotLandingPageUserChoiceText,[E.rQ.USER_CHOICE_IMAGE]:e=>{let{active:t,action:i,onChange:n,htmlType:o}=e,{trackingCommon:r}=(0,a.useContext)(D);return(0,l.Y)(l.FK,{children:(null==i?void 0:i.url)&&(0,l.Y)(eb,{width:"50%",children:(0,l.FD)(em,{active:!!t,onClick:()=>{n&&n(i)},...r,"data-response-id":i.id,className:"pointer-event-child-none",children:[(0,l.Y)("div",{className:"image-container ",children:(0,l.Y)("img",{loading:"lazy",src:null==i?void 0:i.url,alt:null==i?void 0:i.label,className:"image"})}),(null==i?void 0:i.label)&&(0,l.Y)("div",{className:"label",children:(0,l.Y)(ei.o,{children:null==i?void 0:i.label})}),(0,l.Y)("div",{className:"icon",children:"checkbox"===o&&(0,l.Y)(eo(),{className:"icon-checkbox",viewBox:"0 0 22 22"})})]})})})},[E.rQ.POLL_CHOICE]:e=>{let{action:t,active:i,node_type:n,htmlType:o,onChange:a}=e;return n===E.Z6.RESULT_POLL?(0,l.Y)(eb,{children:(0,l.FD)(ep,{percent:(null==t?void 0:t.percent)||0,is_chosen:null==t?void 0:t.is_chosen,children:[(0,l.FD)("div",{className:"number",children:[null==t?void 0:t.percent,"%"]}),(0,l.Y)("div",{className:"content",children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})}),(0,l.Y)("div",{className:"icon",children:(null==t?void 0:t.is_chosen)&&(0,l.Y)(ea(),{viewBox:"0 0 16 16"})})]})}):(0,l.Y)(SubotLandingPageUserChoiceText,{active:i,action:t,onChange:e=>{e&&a&&a({key:null==e?void 0:e.key,control:E.zc[null==e?void 0:e.type],value:"",action_id:null==e?void 0:e.id})},htmlType:o})},[E.rQ.POLL_CHOICE_IMAGE]:e=>{let{action:t,active:i,node_type:n,htmlType:o,onChange:a}=e;if(!(null==t?void 0:t.url))return null;let handleOnChange=e=>{e&&a&&a({key:null==e?void 0:e.key,control:E.zc[null==e?void 0:e.type],value:"",action_id:null==e?void 0:e.id})};return n===E.Z6.RESULT_POLL?(0,l.Y)(eb,{width:"50%",children:(0,l.FD)(em,{children:[(0,l.Y)("div",{className:"image-container",children:(0,l.Y)("img",{loading:"lazy",src:null==t?void 0:t.url,alt:null==t?void 0:t.label,className:"image"})}),(null==t?void 0:t.label)&&(0,l.Y)("div",{className:"label",children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})}),(0,l.Y)("div",{className:"icon",children:"checkbox"===o&&(0,l.Y)(eo(),{className:"icon-checkbox",viewBox:"0 0 22 22"})})]})}):(0,l.Y)(eb,{width:"50%",children:(0,l.FD)(em,{active:!!i,onClick:()=>handleOnChange(t),children:[(0,l.Y)("div",{className:"image-container",children:(0,l.Y)("img",{loading:"lazy",src:null==t?void 0:t.url,alt:null==t?void 0:t.label,className:"image"})}),(null==t?void 0:t.label)&&(0,l.Y)("div",{className:"label",children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})}),(0,l.Y)("div",{className:"icon",children:"checkbox"===o&&(0,l.Y)(eo(),{className:"icon-checkbox",viewBox:"0 0 22 22"})})]})})},[E.rQ.POLL_CHOICE_TEXT_BY_INPUT]:SubotLandingPageUserChoiceText,[E.rQ.RATING_STAR]:e=>{var t,i;let{action:n,value:o,onChange:a}=e;return(0,l.Y)(l.FK,{children:(null==n?void 0:n.label)&&(0,l.Y)(eb,{children:(0,l.Y)(et.A,{rating:parseInt(null==o?void 0:o.value)||0,changeRating:e=>{a&&a({key:null==n?void 0:n.key,control:E.zc[null==n?void 0:n.type],value:e.toString(),action_id:null==n?void 0:n.id})},starHoverColor:null===C.w||void 0===C.w?void 0:null===(t=C.w.colors)||void 0===t?void 0:t.yellow600,starRatedColor:null===C.w||void 0===C.w?void 0:null===(i=C.w.colors)||void 0===i?void 0:i.yellow600,starDimension:"48"})})})},[E.rQ.RATING_DESCRIPTION]:e=>{let{action:t,value:i,onChange:n}=e;return(0,l.Y)(l.FK,{children:(null==t?void 0:t.label)&&(0,l.Y)(eb,{children:(0,l.Y)($.T,{placeholder:null==t?void 0:t.label,value:i&&(null==i?void 0:i.value)?null==i?void 0:i.value:"",onChange:e=>{n&&n({key:null==t?void 0:t.key,control:E.zc[null==t?void 0:t.type],value:e.toString(),action_id:null==t?void 0:t.id})}})})})},[E.rQ.LIKE_CHOICE]:e=>{let{action:t,active:i,onChange:n}=e;return(0,l.Y)(l.FK,{children:(null==t?void 0:t.label)&&(0,l.Y)(eb,{width:"40%",children:(0,l.FD)(eg,{onClick:()=>{n&&n(t)},active:!!i,children:[(0,l.Y)(ec(),{viewBox:"0 0 24 24"}),(0,l.Y)("div",{className:"label",children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})]})})})},[E.rQ.DISLIKE_CHOICE]:e=>{let{action:t,active:i,onChange:n}=e;return(0,l.Y)(l.FK,{children:(null==t?void 0:t.label)&&(0,l.Y)(eb,{width:"40%",children:(0,l.FD)(eg,{onClick:()=>{n&&n(t)},active:!!i,children:[(0,l.Y)(ed(),{viewBox:"0 0 24 24"}),(0,l.Y)("div",{className:"label",children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})]})})})},[E.rQ.REVIEW_CHOICE]:e=>{let{action:t,active:i,onChange:n}=e;return(0,l.Y)(l.FK,{children:(null==t?void 0:t.label)&&(0,l.Y)(eb,{width:"40%",className:"review-choice",children:(0,l.Y)(eg,{onClick:()=>{n&&n({key:null==t?void 0:t.key,control:E.zc[null==t?void 0:t.type],value:"",action_id:null==t?void 0:t.id})},active:!!i,children:(0,l.Y)("div",{className:"label",children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})})})})},[E.rQ.REVIEW_DESCRIPTION]:e=>{let{action:t,value:i,onChange:n}=e;return(0,l.Y)(l.FK,{children:(null==t?void 0:t.label)&&(0,l.Y)(eb,{children:(0,l.Y)($.T,{placeholder:null==t?void 0:t.label,value:i&&(null==i?void 0:i.value)?null==i?void 0:i.value:"",onChange:e=>{n&&n({key:null==t?void 0:t.key,control:E.zc[null==t?void 0:t.type],value:e.toString(),action_id:null==t?void 0:t.id})}})})})},[E.rQ.RESULT_BUTTON]:e=>{let{action:t,onChange:i}=e;return(0,l.Y)(l.FK,{children:(null==t?void 0:t.label)&&(0,l.Y)(eb,{width:"50%",style:{alignSelf:"center",textAlign:"center"},children:(0,l.Y)(F.B,{size:"sm",color:"ghost",isBlock:!0,onClick:()=>{i&&i(t)},children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})})})},[E.rQ.POLL_RESULT]:e=>{let{action:t}=e;return(null==t?void 0:t.label)?(0,l.Y)(eb,{children:(0,l.Y)(eh,{children:t.label})}):null}};var subotLandingPage_subotLandingPageAction=e=>{let{actions:t,value:i,onChange:n,htmlType:o,node_type:a,formSubmitMeta:r}=e;return(0,l.Y)(l.FK,{children:!!(null==t?void 0:t.length)&&(0,l.Y)(ev,{children:t.map(e=>{let t=e_[null==e?void 0:e.type];return t&&(0,l.Y)(t,{action:e,active:null==i?void 0:i.includes(e.id),onChange:n,htmlType:o,node_type:a,formSubmitMeta:r},e.id)})})})},ef=i("os9y"),ey=i.n(ef),ex=i("pnd8"),ew=i.n(ex),subotLandingPageFooter=e=>{var t,i;let{onPrev:n,hidePrev:o,prevProps:r,prevText:d,onNext:s,hideNext:c,nextProps:u,nextText:m}=e,{trackingCommon:p,currentNode:g,params:h,nodes:b}=(0,a.useContext)(D),{formatMessage:v}=(0,P.A)(),{total_flows:_}=h,{id:f,type:y,_message:x}=g||{},{total_flows:w}=x||{},T=null==g?void 0:null===(t=g.actions)||void 0===t?void 0:t.find(e=>e.type===E.rQ.ACTION_MULTIPLE_BUTTON),{isShowProgress:k,progressValue:S}=(0,a.useMemo)(()=>{let e=w||_||0,t=b.findIndex(e=>e.id===f),i={isShowProgress:!!e,progressValue:0};if(-1!==t){let n=t+e;i.progressValue=t/n*100,(location.href.includes("localhost")||"undefined"!=typeof localStorage&&"true"===localStorage.getItem("hhg_debug"))&&(console.log("** {SUBOT} Current : ",t),console.log("** {SUBOT} Totals : ",n))}let n=[E.Z6.FINAL,E.Z6.FINAL_STANDARD,E.Z6.FINAL_THANK_YOU].some(e=>e===y);return n&&(i.progressValue=100),i},[_,w,f,y]);return(0,l.FD)("div",{className:"buttons-area",children:[k&&(0,l.Y)(ee.Progress,{value:S,size:4,className:"subot_landingpage_progress",styles:{root:{backgroundColor:C.w.colors.neutral100},bar:{backgroundColor:C.w.colors.green600}}}),(0,l.FD)("div",{className:"buttons-area-container",children:[!!o||(0,l.FD)(F.B,{color:"secondary",size:"md",onClick:n,className:"back-btn pointer-event-child-none",...r,...p,"data-event-action":"Back Click",children:[(0,l.Y)(ey(),{style:{marginRight:10}}),(0,l.Y)("span",{children:d||v({id:"riskScreener.back",defaultMessage:"Back"})})]}),!!c||(0,l.FD)(F.B,{color:"primary",size:"md",onClick:s,className:"next-btn pointer-event-child-none",...u,...p,"data-event-action":"Answer Click","data-response-id":(null==T?void 0:T.id)||(null==g?void 0:null===(i=g._message)||void 0===i?void 0:i.action_id),children:[(0,l.Y)("span",{children:m||v({id:"riskScreener.next",defaultMessage:"Next"})}),(0,l.Y)(ew(),{style:{marginLeft:10}})]})]})]})},eT=i("/zZM"),ek=i.n(eT),eE=i("lDcf"),eS=i.n(eE);let eM=(0,I.A)("div",{target:"e11x9ehm0"})("width:100%;margin-top:12px;color:",C.w.colors.gray800,";font-size:18px;font-weight:700;line-height:1.45;.number{margin-right:8px;float:left;}.label{}&:after{display:block;clear:both;content:'';}",N.M.mbDown,"{font-size:16px;}"),eI=(0,I.A)("div",{target:"e11x9ehm1"})("display:flex;flex-wrap:wrap;align-items:center;justify-content:center;"),eN=(0,I.A)("div",{target:"e11x9ehm2"})("overflow:hidden;padding:8px 16px;border:1px solid ",C.w.colors.gray300,";background-color:#fff;border-radius:",C.w.borderRadius,";color:",C.w.colors.gray800||"#262626",";",N.M.mbDown,"{padding:6px 12px;}"),eC=(0,I.A)(eN,{target:"e11x9ehm3"})("padding:0;line-height:1;.img{line-height:1;width:100%;}.label{padding:6px 12px;}"),eY=(0,I.A)(eC,{target:"e11x9ehm4"})("border:0;background-color:transparent;border-radius:0;"),eA=(0,I.A)(eN,{target:"e11x9ehm5"})("padding:8px;.feature-container{position:relative;display:block;overflow:hidden;padding-top:60%;border-radius:",C.w.borderRadius,";line-height:1;.feature{position:absolute;top:50%;left:50%;width:100%;height:100%;transform:translate(-50%,-50%);}}.intent-title{margin-top:10px;margin-bottom:0;color:",C.w.colors.gray800,";font-size:inherit;line-height:1.3;}"),eL=(0,I.A)("div",{target:"e11x9ehm6"})("display:flex;padding-top:10px;padding-bottom:10px;.icon{width:64px;height:64px;margin-right:16px;object-fit:contain;object-position:center;}.content{flex:1;.title{margin-top:0;margin-bottom:0;font-size:inherit;font-weight:700;line-height:1.4;}.description{color:",C.w.colors.gray700||"#404040",";font-size:inherit;line-height:1.4;}}",N.M.mbDown,"{.icon{width:47px;height:47px;margin-right:16px;}.content{.title{font-size:14px;}.description{font-size:14px;}}}"),eO=(0,I.A)("div",{target:"e11x9ehm7"})("width:",e=>{let{width:t}=e;return t||"100%"},";padding-top:4px;padding-bottom:4px;"),eD=(0,I.A)("div",{target:"e11x9ehm8"})("display:flex;flex-direction:column;flex-wrap:wrap;align-items:flex-start;justify-content:center;margin-top:-4px;margin-bottom:-4px;"),eP=(0,I.A)("div",{target:"e11x9ehm9"})("margin-top:24px;"),SubotLandingPageBotImage=e=>{let{intent:t}=e,i=(()=>{try{return!!JSON.parse((null==t?void 0:t.label)||"")}catch(e){return!1}})();return(0,l.Y)(l.FK,{children:(null==t?void 0:t.url)&&(0,l.Y)(eO,{children:(0,l.FD)(eC,{className:"landing-page-intent-image",children:[(0,l.Y)("img",{loading:"lazy",src:null==t?void 0:t.url,className:"img",alt:""}),!i&&(0,l.Y)("div",{className:"label",children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})]})})})},SubotLandingPageBotTitle=e=>{let{intent:t,indexNumber:i}=e,n=(0,a.useMemo)(()=>i<10?"0".concat(i):i,[]),o=![E.XG.SSO_INTENT].includes(null==t?void 0:t.type);return(null==t?void 0:t.type)===E.XG.BOT_IMAGE?(0,l.FD)(eI,{children:[(0,l.Y)(eM,{children:(0,l.FD)("div",{className:"number",children:[n,"."]})}),(0,l.Y)(SubotLandingPageBotImage,{intent:t})]}):(0,l.FD)(eM,{children:[(0,l.FD)("div",{className:"number",children:[n,"."]}),o&&(0,l.Y)("div",{className:"label",children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})]})},eB={[E.XG.BOT_TEXT]:e=>{let{intent:t}=e;return(null==t?void 0:t.label)?(0,l.Y)(eO,{children:(0,l.Y)(eN,{className:"landing-page-intent-text",children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})}):(0,l.Y)(l.FK,{})},[E.XG.BOT_IMAGE]:SubotLandingPageBotImage,[E.XG.BOT_BUTTON]:e=>{let{intent:t}=e,i=(0,r.useRouter)();return(null==t?void 0:t.label)?(0,l.Y)(eO,{width:"50%",style:{alignSelf:"center"},children:(0,l.Y)(F.B,{size:"md",isBlock:!0,onClick:()=>{(null==t?void 0:t.url)&&i.push(null==t?void 0:t.url)},children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})}):(0,l.Y)(l.FK,{})},[E.XG.BOT_URL]:e=>{let{intent:t}=e,i=(0,a.useMemo)(()=>{var e,i;return(null==t?void 0:null===(e=t.label)||void 0===e?void 0:e.includes("{"))&&(null==t?void 0:null===(i=t.label)||void 0===i?void 0:i.includes("}"))?JSON.parse(null==t?void 0:t.label):null},[]);return i?(0,l.Y)(l.FK,{children:i&&(0,l.Y)(eO,{width:"50%",children:(0,l.FD)(eA,{children:[(0,l.Y)(ek(),{prefetch:!1,href:null==i?void 0:i.url,className:"feature-container",children:(0,l.Y)("img",{loading:"lazy",src:null==i?void 0:i.thumbnail,className:"feature",alt:""})}),(0,l.Y)(ek(),{prefetch:!1,href:null==i?void 0:i.url,className:"title-container",children:(0,l.Y)("h4",{className:"intent-title",children:null==i?void 0:i.title})})]})})}):(0,l.Y)(l.FK,{})},[E.XG.BOT_RECALCULATE]:e=>{let{intent:t}=e,{onReset:i}=(0,a.useContext)(D);return(null==t?void 0:t.label)?(0,l.Y)(eO,{width:"50%",style:{alignSelf:"center"},children:(0,l.Y)(z,{size:"lg",color:"secondary",icon:(0,l.Y)(eS(),{}),onClick:()=>{i&&i()},className:"recalculate",children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})}):(0,l.Y)(l.FK,{})},[E.XG.THANK_YOU_IMAGE]:e=>{let{intent:t}=e;return(null==t?void 0:t.url)?(0,l.Y)(eO,{width:"50%",children:(0,l.Y)(eY,{children:(0,l.Y)("img",{loading:"lazy",src:null==t?void 0:t.url,className:"img",alt:""})})}):(0,l.Y)(l.FK,{})},[E.XG.THANK_YOU_TITLE]:e=>{let{intent:t}=e;return(null==t?void 0:t.label)?(0,l.Y)(eO,{children:(0,l.Y)(eM,{children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})}):(0,l.Y)(l.FK,{})},[E.XG.THANK_YOU_BODY]:e=>{let{intent:t}=e;return(null==t?void 0:t.label)?(0,l.Y)(eO,{children:(0,l.Y)("p",{children:(0,l.Y)(ei.o,{children:null==t?void 0:t.label})})}):(0,l.Y)(l.FK,{})},[E.XG.SSO_INTENT]:e=>{let{intent:t}=e,i=(null==t?void 0:t.label)?JSON.parse(null==t?void 0:t.label):null;return i&&i.title?(0,l.Y)(eO,{children:(0,l.FD)(eL,{children:[(0,l.Y)("img",{loading:"lazy",src:null==t?void 0:t.url,className:"icon",alt:""}),(0,l.FD)("div",{className:"content",children:[(0,l.Y)("h4",{className:"title",children:i.title}),(0,l.Y)("div",{className:"description",children:i.description})]})]})}):(0,l.Y)(l.FK,{})}};var subotLandingPage_subotLandingPageIntent=e=>{let{intents:t,indexNumber:i}=e;return(null==t?void 0:t.length)?(0,l.FD)(l.FK,{children:[(0,l.Y)(SubotLandingPageBotTitle,{intent:t[0],indexNumber:i}),(0,l.Y)(eP,{children:(0,l.Y)(eD,{children:t.slice(1).map(e=>{let t=eB[null==e?void 0:e.type];return t&&(0,l.Y)(t,{intent:e},e.id)})})})]}):(0,l.Y)(SubotLandingPageBotTitle,{indexNumber:i})},subotLandingPageIntentBottom=e=>{let{intents:t}=e;return(null==t?void 0:t.length)?(0,l.Y)(eP,{children:(0,l.Y)(eD,{children:t.map(e=>{let t=eB[null==e?void 0:e.type];return t&&(0,l.Y)(t,{intent:e},e.id)})})}):(0,l.Y)(l.FK,{})},subotLandingPageNode=e=>{var t,i;let{node:n,indexNumber:o}=e,{formatMessage:r}=(0,P.A)(),{params:d,onChange:s,onSubmit:c,onPrev:u,onNext:m,nodes:p,activeId:g}=(0,a.useContext)(D),[h,v]=(0,a.useState)({...d,...null==n?void 0:n._message,node_id:n.id}),handleOnChangeNormal=async e=>{let t={...d,...h,node_id:n.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key,...(0,b.getCurrentTotalDynamicScore)(p,g,e.id)};delete t.form_submit_meta;let i=await subotLandingPageMessage(t);if((null==i?void 0:i._status)===1){let{node:e,...n}=null==i?void 0:i._data,o={...e,_message:{...n,node_id:e.id}};c&&c(o,t)}},handleOnChange=async(e,t)=>{if(!e)return;let i=(null==e?void 0:e.type)===E.rQ.USER_CHOICE_TEXT_BY_INPUT||(null==e?void 0:e.type)===E.rQ.POLL_CHOICE_TEXT_BY_INPUT,n={...h,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key,form_submit_meta:t};if(i){v(n),null==s||s(n);return}delete n.form_submit_meta,v(n),null==s||s(n),handleOnChangeNormal(e)},_=(0,a.useMemo)(()=>({isDisabled:o<=1}),[o]),f=(0,a.useMemo)(()=>({isDisabled:!((null==h?void 0:h.action_id)&&(null==h?void 0:h.action_id)!=="")}),[null==h?void 0:h.action_id]),y=null==n?void 0:null===(t=n.intents)||void 0===t?void 0:t.find(e=>e.type===E.XG.BOT_SUBMISSION);return(0,a.useEffect)(()=>{y&&y.label&&(0,U.c)({risk_level:y.label})},[null==y?void 0:y.label]),(0,l.FD)(j,{children:[(0,l.FD)(V,{children:[(0,l.Y)(G,{children:(0,l.Y)(subotLandingPage_subotLandingPageIntent,{intents:(null==n?void 0:n.intents)||[],indexNumber:o})}),(0,l.Y)(X,{children:(0,l.Y)(subotLandingPage_subotLandingPageAction,{node_type:n.type,actions:(null==n?void 0:n.actions)||[],value:(null==h?void 0:h.action_id)?[null==h?void 0:h.action_id]:[],onChange:handleOnChange,formSubmitMeta:null==n?void 0:null===(i=n._message)||void 0===i?void 0:i.form_submit_meta})}),(0,l.Y)(G,{children:(0,l.Y)(subotLandingPageIntentBottom,{intents:(null==n?void 0:n.intents_bottom)||[]})})]}),(0,l.Y)(subotLandingPageFooter,{onPrev:()=>u&&u(),prevProps:_,onNext:()=>{let e=JSON.parse(JSON.stringify({...d,...null==n?void 0:n._message,...h}));if((null==h?void 0:h.action_id)&&(null==h?void 0:h.action_value)===b.KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD){null==m||m(e);return}(null==h?void 0:h.action_id)&&(null==h?void 0:h.action_value)?(delete e.form_submit_meta,null==m||m(e)):(0,B.showNotification)({title:"",message:r({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"})},nextProps:f})]})},eU=i("P+HS"),eR=i("59Ys"),eF=i("Ud3P");let ez=(0,I.A)("div",{target:"ed97ch20"})("margin-bottom:10px;",N.M.mbDown,"{max-width:160px;min-width:160px;margin-bottom:0;&:first-of-type:last-child{max-width:100%;}}&:last-child{margin-bottom:0;}.risk-screener-card{&__container{display:flex;align-items:center;justify-content:space-between;padding:16px;padding-right:38px;border:0.5px solid #e4e8ec;border-radius:",C.w.borderRadius,";",N.M.mbDown,"{cursor:pointer;display:block;padding-right:16px;height:100%;}strong{font-size:16px;width:calc(100% - 188px);",N.M.mbDown,"{width:100%;font-size:14px;margin-top:16px;display:block;}}a{display:block;width:120px;margin-left:auto;text-decoration:none;text-align:right;font-size:14px;color:",C.w.colors.primaryBase,";font-weight:700;svg{margin-left:7px;path{stroke:",C.w.colors.primaryBase,"!important;}}}}&__image{width:48px;height:48px;margin-right:20px;> img{object-fit:cover;object-position:center center;border-radius:",C.w.borderRadius,";width:100%;height:100%;}}}"),RiskScreenerCard=e=>{let{title:t,linkText:i,className:n,style:o,link:a,img:r,isMobile:d}=e;return(0,l.Y)(ez,{className:n,style:o,children:(0,l.FD)("div",{className:"risk-screener-card__container",onClick:()=>{d&&(0,eR.o)(a)},children:[(0,l.Y)("div",{className:"risk-screener-card__image",children:(0,l.Y)("img",{loading:"lazy",src:r||"".concat(k.nS,"/noImageSmall.png"),alt:""})}),(0,l.Y)("strong",{children:t}),!d&&(0,l.FD)("a",{href:a,target:"_blank",children:[i," ",(0,l.Y)(ew(),{})]})]})})},eH={},eG={osteoporosis_screener:"ScreenerBot/Osteoporosis"},eX={skrining_eksim:"bot/SkriningEksim"},eV={734:"bot/SensitiveSkinCare"},ej={"adult-vaccination-tool":"bot/AdultVaccinationTool","liver-cancer":"bot/LiverCancer","diabetes-management":"bot/DiabetesManagement","ovarian-cancer":"bot/OvarianCancer","lung-cancer":"bot/LungCancer","colorectal-cancer":"bot/ColorectalCancer","cervical-cancer":"bot/CervicalCancer","breast-cancer":"bot/BreastCancer","atrial-fibrillation":"bot/AtrialFibrillation",Alzheimer:"bot/Alzheimer",Cardiovascular:"bot/Cardiovascular",menopause:"bot/Menopause",asthma:"bot/Asthma",stroke:"bot/Stroke",prostate:"bot/Prostate",osteoporosis:"bot/Osteoporosis",ibs:"bot/IBS",glaucoma:"bot/Glaucoma",Erectile:"bot/Erectile","premature-ejaculation":"bot/PrematureEjaculation",Gastrointestinal:"bot/Gastrointestinal",COPD:"bot/COPD",prediabetic:"bot/Prediabetic","covid-19":"bot/Covid19","flu-assessment":"bot/FluAssessment"},getBotLocaleAdMappingFromSlug=(e,t)=>{let i=t.split("/").filter(Boolean).join("/");switch(e){case"vi-VN":return eH[i];case"id-ID":return eG[i];case"ms-MY":return eV[i];default:return null}},getForceBotLocaleAdMappingFromSlug=(e,t)=>{let i=t.split("/").filter(Boolean).join("/");switch(e){case"th-TH":return ej[i];case"id-ID":return eX[i];default:return null}};var eK=i("iZSu"),eW=i("6g+n"),eQ=i.n(eW),eq=i("U6DU");E.XG.BOT_RELATED_ARTICLE,E.XG.BOT_URL,E.XG.BOT_RISK_SCREEN,E.rQ.USER_CHOICE_IMAGE;let eJ=(0,I.A)(ei.o,{target:"ely8wcu0"})("\n ul,\n ul[type='circle'] {\n list-style-type: circle;\n }\n ul[type='disc'] {\n list-style-type: disc;\n }\n ul[type='square'] {\n list-style-type: square;\n }\n\n ol,\n ol[type='decimal'] {\n list-style-type: decimal;\n }\n ol[type='cjk-ideographic'] {\n list-style-type: cjk-ideographic;\n }\n ol[type='decimal-leading-zero'] {\n list-style-type: decimal-leading-zero;\n }\n ol[type='georgian'] {\n list-style-type: georgian;\n }\n ol[type='hebrew'] {\n list-style-type: hebrew;\n }\n ol[type='hiragana'] {\n list-style-type: hiragana;\n }\n ol[type='hiragana-iroha'] {\n list-style-type: hiragana-iroha;\n }\n ol[type='katakana'] {\n list-style-type: katakana;\n }\n ol[type='katakana-iroha'] {\n list-style-type: katakana-iroha;\n }\n ol[type='lower-alpha'] {\n list-style-type: lower-alpha;\n }\n ol[type='lower-greek'] {\n list-style-type: lower-greek;\n }\n ol[type='lower-latin'] {\n list-style-type: lower-latin;\n }\n ol[type='lower-roman'] {\n list-style-type: lower-roman;\n }\n ol[type='upper-alpha'] {\n list-style-type: upper-alpha;\n }\n ol[type='upper-greek'] {\n list-style-type: upper-greek;\n }\n ol[type='upper-latin'] {\n list-style-type: upper-latin;\n }\n ol[type='upper-roman'] {\n list-style-type: upper-roman;\n }\n ol[type='none'] {\n list-style-type: none;\n }\n ol[type='inherit'] {\n list-style-type: inherit;\n }\n");N.M.mbDown,N.M.mbUp,N.M.mbDown,k.nS,N.M.mbUp,k.nS,N.M.mbDown,N.M.mbUp,N.M.mbDown,N.M.mbUp,N.M.mbDown,N.M.mbUp,C.w.colors.indigo800,N.M.mbDown,N.M.mbUp,N.M.mbDown,N.M.mbUp,N.M.mbDown,N.M.mbUp,C.w.colors.gray600,N.M.mbDown,N.M.mbUp,C.w.colors.gray600,C.w.colors.gray400,N.M.mbDown,N.M.mbUp,N.M.mbDown,N.M.mbUp,N.M.mbDown,N.M.mbUp,N.M.mbDown,N.M.mbUp,C.w.colors.gray800,N.M.mbDown,N.M.mbUp,k.Mp,N.M.mbDown,N.M.mbUp;let eZ=(0,R.i7)("from{opacity:0;}to{opacity:1;}"),e$=(0,I.A)("div",{target:"ely8wcu4"})(N.M.mbUp,"{width:1135px;margin:0 auto;}@media (max-width:1200px){width:100%;}",N.M.mbDown,"{width:100%;margin:0 auto;}"),e0=(0,I.A)("div",{target:"ely8wcu5"})("display:flex;max-width:1055px;min-height:100vh;flex-wrap:wrap;justify-content:space-between;margin-right:auto;margin-left:auto;animation:1s ",eZ," ease both;line-height:24px;",N.M.mbDown,"{padding:20px 0;}",N.M.mbUp,"{padding:32px 0;}"),e1=(0,I.A)("div",{target:"ely8wcu6"})(N.M.mbUp,"{width:601px;padding:0;}.ad-block{margin-bottom:20px;}@media (max-width:1200px){width:65%;}",N.M.mbDown,"{width:100%;padding:0 16px;}h1,h2{margin-bottom:24px;color:",C.w.colors.gray800,";font-size:26px;text-align:center;}"),e2=(0,I.A)("div",{target:"ely8wcu7"})("h2{margin-bottom:16px;font-size:26px;font-weight:bold;line-height:34px;}.doctor-title .see-more{width:100%;}",N.M.mbUp,"{padding:0;width:342px;}@media (max-width:1200px){width:35%;}",N.M.mbDown,"{padding:40px 16px 70px 16px;width:100%;}"),e6=(0,I.A)("div",{target:"ely8wcu8"})("gap:16px;display:flex;flex-direction:column;",N.M.mbDown,"{padding:24px 16px;}",N.M.mbUp,"{padding:32px 24px;}margin-bottom:24px;background:#fff;background:#ffffff;border-radius:",C.w.borderRadius,";box-shadow:0px 4px 8px rgba(0,0,0,0.04),0px 0px 2px rgba(0,0,0,0.06),0px 0px 1px rgba(0,0,0,0.04);font-size:16px;h1,h2{line-height:36px;}img{width:100%;height:auto;display:block;}.disclaimer-title{margin-bottom:10px;svg{margin-right:5px;}}.disclaimer-content{padding-left:20px;}.button-group{display:flex;justify-content:center;margin-bottom:20px;}ol{padding:0 0 0 16px;margin:0 0 0 32px;}ul{padding:0;margin:0 0 0 32px;list-style:none;li{position:relative;display:block;padding-left:1em;line-height:24px;word-break:break-word;& + li{margin-top:4px;}&:before{position:absolute;top:0;left:0;flex:0 0 1em;color:",C.w.colors.primaryBase,";content:'•';font-size:16px;}}}&.sub-content{",eJ,"{ul{padding-left:0;list-style:none;li{position:relative;display:block;padding-left:24px;margin-bottom:16px;line-height:24px;&:last-child{margin-bottom:0;}&:before{position:absolute;top:-5px;left:8px;display:inline-block;width:2em;height:2em;margin-left:-1em;background:url('",k.nS,"/success.svg') center no-repeat;content:' ';}}}}}.main-button-container{display:flex;width:100%;gap:10px;justify-content:space-between;flex-wrap:wrap;button{flex:1 1 auto;}}"),e3=(0,I.A)("div",{target:"ely8wcu9"})("margin-top:50px;.screener-heading{display:flex;margin-bottom:20px;&::before{width:5px;margin-right:10px;background:",C.w.colors.primaryBase,";content:'';}p{line-height:26px;}}.screener-list-card{",N.M.mbDown,"{display:flex;overflow-x:auto;gap:8px;padding-bottom:10px;}}");C.w.borderRadius,C.w.colors.indigo800,C.w.colors.primaryBase;let e4=(0,I.A)("div",{target:"ely8wcu13"})("margin-top:16px;margin-bottom:16px;");var e8=i("YHQg"),e5=i("D7zM"),e7=i("/sjq"),e9=i("CWxQ"),te=i("/GlT");let tt=(0,I.A)("div",{target:"e16cnzyi0"})("background:#fff;.bot-related-article{.banner{width:140px;min-width:auto !important;height:100px !important;margin:0px 16px 0px 0px !important;}}.inner-content > .title{margin-top:0;a{color:inherit;}}.no-author-avt{.author > .avatar{display:none;}}.no-author-name{.author > .poster{display:none;}}.no-category-name{.inner-content > .label{display:none;}}"),ArticleCardWrapper=e=>{let{data:t,articleId:i,locale:n,isMobile:o,url:r}=e,{state:s,dispatch:c}=(0,a.useContext)(S.B),{userInfo:u}=s||{},{bookmarks:m=[]}=u||{},[p,g]=(0,a.useState)(!1),[h,b]=(0,a.useState)(-1!==m.indexOf(i)),getMetaData=(e,t)=>{if(t&&t.length>0){let i=t.filter(t=>t.key===e);if(i.length>0)return i[0].value}return""},v=n||"en-PH",bookmarkArticle=e=>{if(null==u?void 0:u.id)b(e=>!e),h?(async()=>{let t=await (0,O.callApiNew)(d.PATHS.SSO.DELETE_BOOKMARK,{method:"DELETE",data:{host_name:e7.domainLocales[v],post_ids:[e]}},"sso");(null==t?void 0:t._status)===1&&c({type:e9.Q.REMOVE_BOOKMARKS,payload:{bookmarks:[e],bookmarkId:e}})})():(async()=>{let t=await (0,O.callApiNew)(d.PATHS.SSO.CREATE_BOOKMARK,{method:"POST",data:{host_name:e7.domainLocales[v],post_ids:[e]}},"sso");(null==t?void 0:t._status)===1&&c({type:e9.Q.ADD_BOOKMARKS,payload:{bookmarks:[e],bookmarkId:e,isFirstTimeBookmark:null==t?void 0:t._data.first_time_bookmark}})})();else{let t=window.location.href,i=encodeURIComponent("".concat(t).concat(t.includes("?")?"&":"?","source=bookmark,").concat(e));k.dX?e5.u.getState().triggerLogin({source:"bookmark,".concat(e)}):window.location.href=k.a5?"".concat(k.a5,"?returnUrl=").concat(i):t}};(0,a.useEffect)(()=>{g(!0)},[]),(0,a.useEffect)(()=>{b(-1!==m.indexOf(i))},[m.length]);let f=getMetaData(k.yc.REVIEWED_AVATAR_THUMBNAIL,t.meta),y=getMetaData(k.yc.REVIEWED_DISPLAY_NAME,t.meta),x=getMetaData(k.yc.CATEGORY_NAME,t.meta);return(0,l.Y)(tt,{children:(0,l.Y)(e8.d,{className:_()("bot-related-article",{"no-author-avt":!f,"no-author-name":!y,"no-category-name":!x}),authorName:y,avatarImg:f?(0,l.Y)("img",{src:f,alt:getMetaData(k.yc.REVIEWED_DISPLAY_NAME,t.meta),loading:"lazy"}):(0,l.Y)(l.FK,{}),authorLink:getMetaData(k.yc.REVIEWED_URL,t.meta),banner:(0,l.Y)("img",{loading:"lazy",src:t.thumbnail,alt:t.title}),categoryName:x,categoryLink:getMetaData(k.yc.CATEGORY_URL,t.meta),direction:"horizontal",isMobile:o,section:"normal",size:"md",styleLabel:{color:getMetaData(k.yc.CATEGORY_TEXT_COLOR,t.meta)},articleLink:r,text:"",title:t.title,type:"author",uploadTime:(0,te.Yq)(getMetaData(k.yc.POST_MODIFIED,t.meta))||"",isBookmarkDisplayed:p,isBookmark:h,onBookmark:()=>bookmarkArticle(getMetaData(k.yc.POST_ID,t.meta))})})};var ti=i("UXeX"),tn=i("+YhV"),to=i("TOC3");let tl=(0,I.A)("div",{target:"e1rlm3zo0"})("margin-bottom:32px;",to.t,"{margin-bottom:24px;}"),ta=(0,I.A)("div",{target:"e1rlm3zo1"})("padding:24px;background-color:",C.w.colors.primary50,";.care-banner-img{max-width:100%;display:block;margin:auto;}button{margin-top:16px;}"),tr=k.p8?2569:1251;function CareBanner(e){let{title:t,bot_id:i}=e,{formatMessage:n}=(0,P.A)();return i===tr?(0,l.FD)(tl,{children:[t&&(0,l.Y)(to.t,{children:(0,l.Y)(tn.T,{type:"bold",size:"lg",color:"#284A75",children:t})}),(0,l.FD)(ta,{children:[(0,l.Y)("img",{src:"/images/subot/subot_care_banner.png",alt:"subot-care-banner",className:"care-banner-img",loading:"lazy"}),(0,l.Y)(tn.T,{type:"bold",size:"lg",color:"#284A75",children:n({id:"subotLandingPage.exploreHelloCare",defaultMessage:"Explore HelloCare"})}),(0,l.Y)(tn.T,{size:"p2",children:n({id:"subotLandingPage.exploreHelloCare.description",defaultMessage:"We recommend the best doctors for you"})}),(0,l.Y)(F.B,{size:"lg",isBlock:!0,onClick:e=>{e.preventDefault(),(0,eR.o)("/care/semua/dokter/?specialtyId=232")},dataEventCategory:"Care",dataEventAction:"In Subot Care Embedded",dataEventLabel:window.location.href,children:n({id:"careBooking.bookAnAppointment",defaultMessage:"Book an appointment"})})]})]}):null}function CareEmbeddedSubotLandingPage(e){let{specialtyId:t,specialtyLabel:i,serviceTypeId:n,serviceTypeLabel:o,isMobile:r,area:d="article",showCareBannerIfEmpty:s,isBotSubmissionLowRisk:c,locale:u,currentUrl:m}=e,{params:p}=(0,a.useContext)(D),[g,h]=(0,a.useState)({doctor:!1,service:!1,hospital:!1}),b=(0,a.useMemo)(()=>{if(!s)return!1;if(c)return!0;let e=g.doctor||!t,i=g.service||!n;return!!e&&!!i},[c,t,n,g.doctor,g.service]),v=(0,a.useCallback)((e,t)=>{h(i=>({...i,[t]:!((null==e?void 0:e.length)>0)}))},[]);return b?(0,l.Y)(CareBanner,{title:i,bot_id:null==p?void 0:p.bot_id}):c?null:(0,l.FD)(l.FK,{children:[t&&(0,l.Y)(ti.default,{isMobile:r,type:"doctor",dataId:t.toString(),dataTitle:i||"",dataDescription:"",scrollColumns:1,scrollWidth:270,isDotsShown:!1,area:d,onFetchCompleted:v,locale:u,currentUrl:m}),n&&(0,l.Y)(ti.default,{isMobile:r,type:"service",dataId:n.toString(),dataTitle:o||"",dataDescription:"",scrollColumns:1,scrollWidth:270,isDotsShown:!1,area:d,onFetchCompleted:v,locale:u,currentUrl:m})]})}var td=i("YRaK"),ts=i("K+xq"),tc=i("U+Ez"),tu=i("BYrS"),tm=i.n(tu),tp=i("Zzjc"),tg=i.n(tp);let th=(0,I.A)(ts.M,{target:"e1vyt80s0"})(".hhg-modal{text-align:center;}.check-icon{display:block;margin:0 auto;margin-bottom:15px;path{fill:",C.w.colors.green600,";}}.close-icon{display:block;margin-left:auto;cursor:pointer;}.description{margin-top:8px;}"),ModalLeadBookingSuccess=e=>{let{phone:t,isOpen:i,onClose:n}=e,{formatMessage:o}=(0,P.A)();return(0,l.FD)(th,{type:"confirm",isOpen:i,onClose:n,children:[(0,l.Y)(tm(),{className:"close-icon",onClick:n,viewBox:"0 0 24 24"}),(0,l.Y)(tg(),{width:"60",height:"60",viewBox:"0 0 16 16",className:"check-icon"}),(0,l.Y)(tc.H,{tag:"h3",children:o({id:"subot.landingPage.booking.successTitle",defaultMessage:"Appointment Confirmation!"})}),(0,l.Y)(tn.T,{size:"p1",className:"description",children:o({id:"subot.landingPage.booking.successDesc",defaultMessage:"We've got you confirmed for your appointment, we will contact you via {phoneNumber} within 24 hours"},{phoneNumber:t})})]})};var tb=i("Pn4S"),tv=i("bAY6"),t_=i("RB7Y"),tf=i("ysNr"),ty=i("8BcA"),tx=i.n(ty),tw=i("t6uU"),tT=i.n(tw),tk=i("/tE8");let tE=Object.keys(k.El).map(e=>"tl-PH"===e?"":e.split("-")[1]).filter(Boolean),tS="morning",tM="afternoon",tI="07:00 - 09:00",tN="12:00 - 15:00",tC={[tS]:[{label:tI},{label:"09:00 - 12:00"}],[tM]:[{label:tN},{label:"15:00 - 18:00"}]},tY={[tS]:0,[tM]:1},tA={name:{error:"",value:"",touched:!1},phone:{error:"",value:"",touched:!1},email:{error:"",value:"",touched:!1},city:{error:"",value:"",touched:!1},date:{error:"",value:null,touched:!1},type:{error:"",value:tS,touched:!0},range:{error:"",value:tI,touched:!0},checkedTerms:{error:"",value:!1,touched:!1}},localizedDateValue=e=>{if(!e)return"";try{return tx()(e,k.a7).format("dddd, DD/MM/YYYY")}catch(t){return e}},validate=(e,t)=>t?t instanceof Date||!0===t?"":"email"!==e||(0,tk.DT)(t)?"phone"!==e||(0,t_.g0)(t)?"":"Phone invalid":"Email invalid":"This field is required",reValidate=e=>{let t=Object.keys(e);return t.reduce((e,t)=>({...e,[t]:{value:e[t].value,error:validate(t,e[t].value),touched:!0}}),e)},isTouchedAll=e=>!Object.values(e).find(e=>!e.touched),isFormValid=e=>!Object.values(e).find(e=>e.error),tL=["vi-VN","id-ID","en-PH"],getCampaignCode=e=>k.p8?"en-PH"===e?"e5nb7qy8yatdbto":"id-ID"===e?"ojz2aw6dphhggy7":"vi-VN"===e?"scrqk7ub3mg2qwe":"":"dscyapohwxjmnl5",generateBody=e=>({data:{url:window.location.href,title_article:document.title||window.location.href,meta:[{key:"full-name",value:e.name.value,control:"text"},{key:"phone",value:e.phone.value,control:"tel"},{key:"email",value:e.email.value,control:"email"},{key:"city",value:e.city.value,control:"text"},{key:"appointment-date",value:e.date.value.toISOString(),control:"date"},{key:"appointment-hour",value:e.range.value,control:"text"},{key:"appointment-section",value:e.type.value,control:"text"}]}}),tO=(0,I.A)("div",{target:"e16gbnu70"})("flex:1;padding:16px;",N.M.mbUp,"{padding:24px;}"),tD=(0,I.A)("div",{target:"e16gbnu71"})("bottom:0;position:sticky;padding:16px;background-color:#fff;z-index:2;> button{width:100%;}",N.M.mbDown,"{border-top:1px solid ",C.w.colors.neutral100,";}",N.M.mbUp,"{padding:24px 40px;}"),tP=(0,I.A)(ts.M,{target:"e16gbnu72"})(N.M.mbDown,"{padding-top:64px;&[data-type='tail']{.hhg-modal{border-radius:6px 6px 0px 0px;}}}&[data-type='tail']{.hhg-modal{width:480px;max-width:100%;}}&.slideLeft{.hhg-modal{opacity:0;transform:translateX(100px);transition:all 0.3s ease-out;}&[data-open='true']{.hhg-modal{opacity:1;transform:translateX(0);}}}.hhg-modal__content{padding:0;display:flex;flex-direction:column;}"),tB=(0,I.A)("div",{target:"e16gbnu73"})("display:flex;padding:16px 16px 0 16px;position:sticky;background-color:#fff;z-index:2;top:0;",N.M.mbUp,"{padding:24px 10px 0 24px;}p{font-weight:600;letter-spacing:-0.4px;line-height:28px;}.close-icon{width:18px;min-width:18px;height:18px;cursor:pointer;}"),tU=(0,I.A)("div",{target:"e16gbnu74"})("min-height:26px;position:relative;& + &{margin-top:30px;}> p{margin-bottom:10px;}.step-number{position:absolute;display:block;width:32px;height:32px;left:-48px;top:-5px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;border:1px solid ",C.w.colors.neutral100,";z-index:1;background-color:white;",N.M.mbDown,"{display:none;}}[data-has-error='true'] > .phone-input{border-color:",C.w.colors.red600,";}.phone-input{width:100%;padding:12px 16px;border:solid 1px ",C.w.colors.neutral100,";border-radius:",C.w.borderRadius,";font-size:14px;line-height:1.2;:focus-within{border-color:",C.w.colors.primaryBase,";box-shadow:0px 0px 2px 2px ",C.w.colors.primary200,";}}.errorLabel{display:none !important;}"),tR=(0,I.A)("div",{target:"e16gbnu75"})(),tF=(0,I.A)("form",{target:"e16gbnu76"})("position:relative;padding-left:48px;&::before{content:'';height:100%;width:1px;border-left:1px dashed ",C.w.colors.neutral100,";position:absolute;left:16px;}",N.M.mbDown,"{padding-left:0;&::before{content:none;}}"),tz=(0,I.A)("div",{target:"e16gbnu77"})("padding:16px;background-color:",C.w.colors.neutral50,";border-radius:",C.w.borderRadius,";margin-top:15px;.pickerContainer >:not(:first-of-type){z-index:3;}input{background-color:#fff;}.errorLabel{display:none !important;}"),tH=(0,I.A)(tf.T,{target:"e16gbnu78"})("width:100%;margin-top:20px;border-bottom:0;& > li{width:50%;justify-content:center;&:not(:last-child){margin-right:0;}}"),tG=(0,I.A)("div",{target:"e16gbnu79"})("margin-top:24px;display:flex;margin-left:-4px;margin-right:-4px;"),tX=(0,I.A)("div",{target:"e16gbnu710"})("padding:0 4px;width:50%;> button{width:100%;}"),tV=(0,I.A)("div",{target:"e16gbnu711"})("display:flex;align-items:flex-start;margin-top:24px;.terms-of-service label{display:none;}.terms-of-service{top:0;position:relative;min-width:20px;}&[data-has-error='true']{input{border-color:",C.w.colors.red700,";}}.terms-content{cursor:pointer;padding-left:10px;label{display:block;font-size:14px;}a{text-decoration:none;}}"),useTranslationLeadForm=()=>{var e,t;let{formatMessage:i}=(0,P.A)(),{locale:n="en-PH"}=(0,T.$)(),o="/static".concat((null===(e=k.CS[n])||void 0===e?void 0:e.TERM_OF_USE)||"/"),r="/static".concat((null===(t=k.CS[n])||void 0===t?void 0:t.PRIVACY_POLICY)||"/"),d=(0,a.useMemo)(()=>({name:{label:i({id:"subot.landingPage.booking.name",defaultMessage:"Name"}),placeholder:i({id:"subot.landingPage.booking.placeholder.name",defaultMessage:"Enter your name"})},phone:{label:i({id:"subot.landingPage.booking.phoneNumber",defaultMessage:"Phone"}),placeholder:i({id:"subot.landingPage.booking.placeholder.phone",defaultMessage:"Enter your phone number"})},email:{label:i({id:"subot.landingPage.booking.email",defaultMessage:"Email"}),placeholder:i({id:"subot.landingPage.booking.placeholder.email",defaultMessage:"Enter your valid email address"})},city:{label:i({id:"subot.landingPage.booking.city",defaultMessage:"City of Vaccination"}),placeholder:i({id:"subot.landingPage.booking.placeholder.city",defaultMessage:"Enter your location"})},chooseAppointment:i({id:"subot.landingPage.booking.chooseAppointment",defaultMessage:"Choose an appointment"}),done:i({id:"subot.landingPage.booking.done",defaultMessage:"Done"}),agreeTerms:i({id:"subot.landingPage.booking.agreeTerms",defaultMessage:"I agree to Hellodoctor's Terms of Service and Privacy Policy"},{a:function(e){return(0,l.Y)("a",{href:o,target:"_blank",children:e})},b:function(e){return(0,l.Y)("a",{href:r,target:"_blank",children:e})}}),serverError:i({id:"notification.comment.somethingWrong",defaultMessage:"Something went wrong."}),titleModal:i({id:"subot.landingPage.booking.title",defaultMessage:"Please share your detail for the booking. Our representatives will call you back within 24 hours."})}),[i]);return{locale:n,formTranslations:d}},useTranslationBox=()=>{let{formatMessage:e}=(0,P.A)(),t=(0,a.useMemo)(()=>({morning:e({id:"subot.landingPage.booking.morning",defaultMessage:"Morning"}),afternoon:e({id:"subot.landingPage.booking.afternoon",defaultMessage:"Afternoon"}),datePlaceholder:e({id:"subot.landingPage.booking.placeholder.date",defaultMessage:"Enter the appointment date"})}),[]);return{appointmentBoxTrans:t}},AppointmentBox=e=>{let{range:t,onChange:i,error:n}=e,{locale:o="en-PH"}=(0,r.useRouter)(),[d,s]=(0,a.useState)(tY.morning),{appointmentBoxTrans:c}=useTranslationBox(),u=[{name:c.morning},{name:c.afternoon}],renderMapRangeTime=e=>{let n=t===e.label?"primary":"secondary";return(0,l.Y)(tX,{children:(0,l.Y)(F.B,{size:"md",color:n,onClick:()=>i("range",e.label),children:e.label})},e.label)};return(0,l.FD)(tz,{children:[(0,l.Y)(tf.D,{onChange:e=>i("date",e),locale:o,displayDateFormat:"yyyy-MM-dd",disabledDays:{before:tx()().add(1,"day").toDate()},customInput:e=>(0,l.Y)(tb.I,{size:"md",name:"date",value:localizedDateValue(e.value),onFocus:e.onFocus,onActionClick:e.onClick,placeholder:c.datePlaceholder,actionIcon:(0,l.Y)(tT(),{}),errorMessage:n})}),(0,l.Y)(tH,{initialTab:d,tabContent:u,onChange:e=>{s(e);let t=e===tY.morning,n=t?tS:tM,o=t?tI:tN;i("type",n),i("range",o)}}),(0,l.FD)(tG,{children:[d===tY.morning&&tC.morning.map(renderMapRangeTime),d===tY.afternoon&&tC.afternoon.map(renderMapRangeTime)]})]})},ModalLeadFormBooking=e=>{let{isShow:t,onClose:i,onPostSuccess:n}=e,o=(0,a.useRef)(null),{state:r}=(0,a.useContext)(S.B),{userInfo:c}=r,m=(0,a.useMemo)(()=>{if(c){let e=c.phone&&c.area_code?c.area_code+c.phone:"",t={...tA,name:{value:c.name||"",error:"",touched:!!c.name},email:{value:c.email||"",error:"",touched:!!c.email},phone:{value:e,error:"",touched:!!e}};return t}return tA},[c]),{locale:p,formTranslations:g}=useTranslationLeadForm(),[h,b]=(0,a.useState)(m),[v,_]=(0,a.useState)(!1),[f,y]=(0,a.useState)(!1),onChange=(e,t)=>{v||b(i=>({...i,[e]:{touched:!0,error:validate(e,t),value:t}}))},scrollToFirstError=()=>{if(!o.current)return;let e=o.current.querySelector('[data-has-error="true"]');e&&e.scrollIntoView({behavior:"smooth",block:"center"})};return(0,l.FD)(tP,{type:"tail",isOpen:t,onClose:i,animationType:"slideLeft",children:[(0,l.FD)(tB,{children:[(0,l.Y)(tn.T,{size:"p1",children:g.titleModal}),(0,l.Y)(tm(),{className:"close-icon",onClick:i,viewBox:"0 0 24 24"})]}),(0,l.Y)(tO,{ref:o,children:(0,l.FD)(tR,{children:[(0,l.FD)(tF,{onChange:e=>{e.target.name in h&&"phone"!==e.target.name&&"string"==typeof e.target.value&&onChange(e.target.name,e.target.value)},children:[(0,l.FD)(tU,{children:[(0,l.Y)("span",{className:"step-number",children:"1"}),(0,l.Y)(tn.T,{size:"c1",children:g.name.label}),(0,l.Y)(tb.I,{size:"md",name:"name",value:h.name.value,placeholder:g.name.placeholder,errorMessage:h.name.error})]}),(0,l.FD)(tU,{children:[(0,l.Y)("span",{className:"step-number",children:"2"}),(0,l.Y)(tn.T,{size:"c1",children:g.phone.label}),(0,l.Y)("div",{"data-has-error":!!h.phone.error,children:(0,l.Y)(t_.Ay,{value:h.phone.value,onChange:e=>{"string"==typeof e&&onChange("phone",e)},defaultCountry:p.split("-")[1]||"PH",initialValueFormat:p.split("-")[1]||"PH",className:"phone-input",addInternationalOption:!1,countries:tE,countryCallingCodeEditable:!1})})]}),(0,l.FD)(tU,{children:[(0,l.Y)("span",{className:"step-number",children:"3"}),(0,l.Y)(tn.T,{size:"c1",children:g.email.label}),(0,l.Y)(tb.I,{size:"md",name:"email",value:h.email.value,placeholder:g.email.placeholder,errorMessage:h.email.error})]}),(0,l.FD)(tU,{children:[(0,l.Y)("span",{className:"step-number",children:"4"}),(0,l.Y)(tn.T,{size:"c1",children:g.city.label}),(0,l.Y)(tb.I,{size:"md",name:"city",value:h.city.value,placeholder:g.city.placeholder,errorMessage:h.city.error})]}),(0,l.FD)(tU,{children:[(0,l.Y)("span",{className:"step-number",children:"5"}),(0,l.Y)(tn.T,{size:"c1",children:g.chooseAppointment})]})]}),(0,l.Y)(AppointmentBox,{type:h.type.value,date:h.date.value,error:h.date.error,range:h.range.value,onChange:onChange}),(0,l.FD)(tV,{"data-has-error":!!h.checkedTerms.error,children:[(0,l.Y)(tv.C,{label:"",name:"terms",value:"",checked:h.checkedTerms.value,onChange:(e,t)=>onChange("checkedTerms",t),className:"terms-of-service"}),(0,l.Y)(tn.T,{size:"c2",className:"terms-content",children:(0,l.Y)("label",{htmlFor:"terms-",children:g.agreeTerms})})]}),f&&(0,l.Y)(tn.T,{size:"c1",color:"#e64728","data-has-error":"true",children:(0,l.Y)("span",{"data-has-error":"true",children:g.serverError})})]})}),(0,l.Y)(tD,{children:(0,l.Y)(F.B,{size:"lg",color:"primary",onClick:()=>{if(v)return;let e=isTouchedAll(h),t=isFormValid(h);if(e||b(reValidate(h)),!e||!t){setTimeout(()=>scrollToFirstError(),300);return}let o=(0,u.WH)(d.PATHS.LEADGEN.POST_LEAD_LEAD,{campaignCode:getCampaignCode(p)}),l=generateBody(h);_(!0),y(!1),(0,s.$$)(o,"POST",l).then(e=>{if((null==e?void 0:e._status)===1){let e=h.phone.value;b(tA),i(),n(e)}else y(!0),setTimeout(()=>scrollToFirstError(),300);_(!1)})},isLoading:v,children:g.done})})]})};var subotLandingPageNode_SubotLandingPageNodeFinal=e=>{var t;let{node:i,isMobile:n,isFromMyHealth:o}=e,{nodes:r,onReset:c,params:m,trackingCommon:p}=(0,a.useContext)(D),g=r[0],{intents:h}=i,v=(null==g?void 0:g.landing_page_disclaimer)||"",_=(null==g?void 0:g.care_service_type_id)||"",f=(null==g?void 0:g.care_service_type_label)||"",y=(null==g?void 0:g.care_specialty_id)||"",x=(null==g?void 0:g.care_specialty_label)||"",k=(null==g?void 0:g.care_enable_default_banner)||!1,S={title:(null==g?void 0:g.affiliate_product_title)||"",product_skus:(null==g?void 0:g.affiliate_product_sku_list)||[],no_follow:!!(null==g?void 0:g.affiliate_product_no_follow),open_new_tab:!!(null==g?void 0:g.affiliate_product_open_new_tab),sponsored:!!(null==g?void 0:g.affiliate_product_sponsored),is_mobile:n},{locale:M,router:{query:I}}=(0,T.$)(),N=(0,w.m)(),[C,Y]=(0,a.useState)([]),[A,L]=(0,a.useState)([]),[O,B]=(0,a.useState)(!1),[R,F]=(0,a.useState)(!1),[z,G]=(0,a.useState)(""),{formatMessage:X}=(0,P.A)(),V=Array.isArray(I.slug)?I.slug[I.slug.length-1]:I.slug,j=getForceBotLocaleAdMappingFromSlug(M,V||""),K=(0,eq.oq)({countryAdTag:(0,eq._3)(M,{isMobile:n}),...j?{forceTag:j}:{contentAdTag:{result:getBotLocaleAdMappingFromSlug(M,V||"")||"bot/".concat((0,eq.iR)(V||"")),redundant:!1}}}),W=M!==eK.ne.Taiwan;if(g&&734===g.id){let e=(0,eq._3)(M,{isMobile:n}),t="".concat(e).concat(getBotLocaleAdMappingFromSlug(M,String(734))||"");K=(0,eq.oq)({countryAdTag:e,contentAdTag:{result:t,redundant:!1}})}let getUrlData=async e=>{let t="".concat((0,u.PU)(d.PATHS.SUBOT.FETCH_URL_DATA),"?url=").concat(e);try{let e=await (0,s.px)(t,"GET");return e}catch(e){console.log(e)}},getKeyFromJSONString=(e,t)=>{let i=JSON.parse(e);return i[t]},Q=(0,a.useCallback)(async e=>{let t=e&&e.length>0?e.filter(e=>e.type===E.XG.BOT_RISK_SCREEN&&e.url&&""!==e.url):[],i=[];for(let e of t)try{let t=await getUrlData(e.url);(null==t?void 0:t._data)&&i.push({...e,label:getKeyFromJSONString(e.label,"title"),info:t._data})}catch(e){}Y(i)},[]),q=(0,a.useCallback)(async e=>{let t=e.filter(e=>e.type===E.XG.BOT_RELATED_ARTICLE&&e.url&&""!==e.url),i=[];for(let e of t)try{let t=await getUrlData(e.url);(null==t?void 0:t._data)&&i.push({...e,...t._data})}catch(e){}L(i)},[]),J=(0,a.useMemo)(()=>{var e;if(tL.includes(M))return null==i?void 0:null===(e=i.intents)||void 0===e?void 0:e.find(e=>{let{type:t}=e;return t===E.XG.BOT_BOOKING})},[M]),getArticleId=e=>{if(e&&""!==e){let t=e.split("/"),i=t.pop();return i}return""};(0,a.useEffect)(()=>{Q(h||[]),q(h||[])},[h]);let Z=null==i?void 0:null===(t=i.intents)||void 0===t?void 0:t.find(e=>e.type===E.XG.BOT_SUBMISSION),$=(null==Z?void 0:Z.label)==="low-risk";(0,a.useEffect)(()=>{Z&&Z.label?(0,U.c)({risk_level:Z.label}):(0,U.c)()},[null==Z?void 0:Z.label]);let ee=(0,a.useMemo)(()=>{var e;return(null==i?void 0:null===(e=i.intents)||void 0===e?void 0:e.filter(e=>e.type===E.XG.BOT_SUGGESTED_SERVICE))||[]},[]);return(0,l.FD)(e$,{children:[(0,l.FD)(e0,{children:[(0,l.FD)(e1,{children:[(()=>{if(!h||!h.length)return;let isMainTitle=e=>e.type===E.XG.BOT_MAIN_TITLE&&e.label&&"Main title"!==e.label,isButton=e=>{let t=e.type===E.XG.BOT_MAIN_BUTTON||e.type===E.XG.BOT_BUTTON;return t&&e.label&&"Main button"!==e.label},isImage=e=>{let t=e.type===E.XG.BOT_MAIN_IMAGE||e.type===E.XG.BOT_IMAGE;return t&&e.url},isMainBody=e=>{let t=e.type===E.XG.BOT_MAIN_BODY||e.type===E.XG.BOT_TEXT;return t&&e.label&&"Main body"!==e.label},e=h.filter(e=>{let{type:t}=e,i=t===E.XG.BOT_RECALCULATE,n=t===E.XG.BOT_BOOKING;return!i&&!n}),t=e.filter(e=>{let{type:t,label:i}=e,n=t===E.XG.BOT_MAIN_BUTTON||t===E.XG.BOT_BUTTON;return n&&i&&"Main button"!==i}),i=h.find(e=>{let{type:t}=e;return t===E.XG.BOT_RECALCULATE}),renderMainButton=()=>(0,l.Y)("div",{className:"main-button-container",children:t.map((e,t)=>(0,l.Y)(eU.Button,{size:"lg",variant:"primary",onClick:()=>{var t;if(null===(t=e.url)||void 0===t?void 0:t.includes("{{.frisoRedirectUrl}}")){(0,b.handleFrisoRedirecition)(r);return}e.url&&(0,eR.o)(e.url)},className:"main-button pointer-event-child-none",...p,"data-event-action":"Click CTA","data-response-id":e.id,children:(0,l.Y)(eJ,{children:null==e?void 0:e.label})},t))}),n=!1;return(0,l.FD)(e6,{children:[e.map(e=>isImage(e)?(0,l.Y)("img",{src:e.url,alt:e.label,loading:"lazy"}):isMainTitle(e)?(0,l.Y)("h1",{children:(0,l.Y)(eJ,{children:(0,b.replaceTextWithVariables)(e.label||"",r)})}):!n&&isButton(e)?(n=!0,renderMainButton()):isMainBody(e)?(0,l.Y)(eJ,{children:(0,b.replaceTextWithVariables)(e.label||"",r)}):void 0),(0,l.FD)(H,{className:i&&J?"two-buttons":void 0,children:[i&&(0,l.FD)(eU.Button,{size:"lg",variant:"secondary",onClick:()=>c&&c(),className:"recalculate",children:[(0,l.Y)(eS(),{fill:"red"}),"\xa0",(0,l.Y)(eJ,{children:null==i?void 0:i.label})]}),J&&(0,l.Y)(eU.Button,{size:"lg",variant:"primary",className:"booking-now",disabled:!!z,onClick:()=>{z||B(!0)},dataEventCategory:"Leave Contact",dataEventAction:"Click",dataEventLabel:m.url,children:z?X({id:"subot.landingPage.booking.booked",defaultMessage:"Booked"}):J.label})]})]})})(),W&&n&&(0,l.Y)("div",{className:"ad-block",children:(0,l.Y)(eF.AdBlock,{adUnitPath:K,size:[300,250],divId:"div-gpt-ad-home-top-mobile-main",pos:["Banner1"]},"mobile")}),(()=>{var e,t;let i=(null==h?void 0:h.find(e=>e.type===E.XG.BOT_SUB_TITLE))||{label:""},n=(null==h?void 0:h.find(e=>e.type===E.XG.BOT_SUB_BODY))||{label:""},o=i&&n&&"Sub title"!==i.label&&"Sub body"!==n.label;return o&&(null===(e=i.label)||void 0===e?void 0:e.trim())&&(null===(t=n.label)||void 0===t?void 0:t.trim())?(0,l.FD)(e6,{className:"sub-content",children:[(0,l.Y)("h1",{children:i.label}),(0,l.Y)(eJ,{children:n.label})]}):null})(),W&&n&&(0,l.Y)("div",{className:"ad-block",children:(0,l.Y)(eF.AdBlock,{adUnitPath:K,size:[300,250],divId:"div-gpt-ad-home-top-mobile-sub",pos:["Banner2"]},"mobile")}),!!v&&(0,l.FD)(e6,{children:[(0,l.FD)("h3",{className:"disclaimer-title",children:[(0,l.Y)(eQ(),{}),X({id:"ovulationPage.disclaimer",defaultMessage:"Disclaimer"})]}),(0,l.Y)("div",{className:"disclaimer-content",children:v})]}),ee.length>0&&(0,l.Y)("div",{children:ee.map(e=>{let t=b.SubotInlineIntentBase[e.type||""];return t&&(0,l.Y)(t,{intent:e},e.id)})}),!!S.product_skus.length&&(0,l.Y)(e4,{children:(0,l.Y)(td.A,{...S})}),n&&(0,l.Y)(CareEmbeddedSubotLandingPage,{specialtyId:y,specialtyLabel:x,serviceTypeId:_,serviceTypeLabel:f,showCareBannerIfEmpty:k,isMobile:n,isBotSubmissionLowRisk:$,locale:M,currentUrl:N}),W&&n&&(0,l.Y)("div",{className:"ad-block",children:(0,l.Y)(eF.AdBlock,{adUnitPath:K,size:[300,250],divId:"div-gpt-ad-home-top-mobile-disclaimer",pos:["Banner3"]},"mobile")}),!!C.length&&(0,l.FD)(e3,{children:[(0,l.Y)("div",{className:"screener-heading",children:(0,l.Y)(eU.Text,{weight:"bold",size:"lg",color:"#284A75",children:X({id:"riskScreener.relatedRiskScreener",defaultMessage:"Related Risk Screener"})})}),(0,l.Y)("div",{className:"screener-list-card",children:C.map(e=>{var t;return(0,l.Y)(RiskScreenerCard,{title:e.label,link:e.url,img:(null==e?void 0:null===(t=e.info)||void 0===t?void 0:t.thumbnail)||"",linkText:X({id:"riskScreener.start",defaultMessage:"Start"}),isMobile:n},e.id)})})]}),(0,l.Y)("div",{className:"ad-block",children:W&&n&&(0,l.Y)("div",{className:"ad-block",children:(0,l.Y)(eF.AdBlock,{adUnitPath:K,size:[300,250],divId:"div-gpt-ad-home-top-mobile-suggest",pos:["Banner4"]},"mobile")})})]}),(0,l.FD)(e2,{children:[W&&(0,l.Y)(eF.AdBlock,{adUnitPath:K,size:[[300,250]],divId:"div-gpt-ad-home-topbanner",pos:["TopBanner"]}),!n&&(0,l.Y)(CareEmbeddedSubotLandingPage,{specialtyId:y,specialtyLabel:x,serviceTypeId:_,serviceTypeLabel:f,showCareBannerIfEmpty:k,isMobile:n,area:"sidebar",isBotSubmissionLowRisk:$,locale:M,currentUrl:N}),!o&&!!A.length&&(0,l.FD)(l.FK,{children:[(0,l.Y)("h2",{children:X({id:"dueDatePage.suggestedArticles",defaultMessage:"Suggested Articles"})}),A.map((e,t)=>(0,l.Y)(ArticleCardWrapper,{data:e,articleId:getArticleId(e.url)||"",locale:M,isMobile:!!n,url:e.url},t))]}),W&&!n&&(0,l.Y)(eF.AdBlock,{adUnitPath:K,size:[[300,250],[300,600]],divId:"div-gpt-ad-home-sidebar1",pos:["MidBanner1"],style:{margin:"1rem auto",maxWidth:"100%"}})]})]}),J&&(0,l.Y)(ModalLeadFormBooking,{isShow:O,onPostSuccess:e=>{G(e),F(!0)},onClose:()=>B(!1)}),J&&(0,l.Y)(ModalLeadBookingSuccess,{phone:z,isOpen:R,onClose:()=>F(!1)})]})},tj=i("VoJx"),tK=i.n(tj);let tW=tK()(()=>Promise.resolve().then(i.bind(i,"EE8p")).then(e=>e.UserInfoForm),{loadableGenerated:{webpack:()=>[null]},ssr:!1});var tQ=i("XNaN"),tq=i("PyNM"),tJ=i("ydk+");let tZ={TEXT:subotLandingPageNode,IMAGE:subotLandingPageNode,FORM:e=>{var t;let{node:i,indexNumber:n}=e,{locale:o}=(0,r.useRouter)(),{formatMessage:d}=(0,P.A)(),{params:s,onSubmit:c,onPrev:u,onNext:m,nodes:p,activeId:g,trackingCommon:h,currentNode:v}=(0,a.useContext)(D),[_,f]=(0,a.useState)((null==i?void 0:i._message)||{}),handleOnSubmit=async e=>{if((0,b.checkSyncDataOnFrisoCampaign)(p[0],null==e?void 0:e.form_submit_meta),e){let t={...s,...null==i?void 0:i._message,...e,node_id:i.id,...(0,b.getCurrentTotalDynamicScore)(p,g,e.action_id,e.form_submit_meta)};f(t);let n=await subotLandingPageMessage(t);if((null==n?void 0:n._status)===1){let{node:e,...i}=null==n?void 0:n._data,o={...e,_message:{...i,node_id:e.id}};c&&c(o,t)}}},y=(0,a.useMemo)(()=>({isDisabled:n<=1}),[n]),x=(0,a.useMemo)(()=>{var e;return{isDisabled:!(null==_?void 0:null===(e=_.form_submit_meta)||void 0===e?void 0:e.length)}},[null==_?void 0:_.form_submit_meta]);return(0,l.FD)(j,{children:[(0,l.FD)(V,{className:"landing-page-node-form-wrapper",children:[(0,l.Y)(G,{children:(0,l.Y)(subotLandingPage_subotLandingPageIntent,{intents:(null==i?void 0:i.intents)||[],indexNumber:n})}),(0,l.Y)(X,{children:(0,l.Y)(tW,{callBack:handleOnSubmit,actions:(null==i?void 0:i.actions)||[],formSubmitMeta:(null==i?void 0:null===(t=i._message)||void 0===t?void 0:t.form_submit_meta)||null,countryCode:o.split("-")[1]||"PH",trackingSubmitBtn:{...h,"data-event-action":"Submit"},botId:s.bot_id,nodeId:String(null==v?void 0:v.id)})}),(0,l.Y)(G,{children:(0,l.Y)(subotLandingPageIntentBottom,{intents:(null==i?void 0:i.intents_bottom)||[]})})]}),(0,l.Y)(subotLandingPageFooter,{onPrev:()=>u&&u(),prevProps:y,onNext:()=>{var e,t;(null==i?void 0:i._message)&&(null==i?void 0:null===(e=i._message)||void 0===e?void 0:e.form_submit_meta)&&(null==i?void 0:null===(t=i._message)||void 0===t?void 0:t.form_submit_meta.length)?m&&m({...s,..._,...null==i?void 0:i._message}):(0,B.showNotification)({title:"",message:d({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"})},nextProps:x})]})},CONDITION:subotLandingPageNode,POLL:e=>{var t;let{node:i,indexNumber:n}=e,{params:o,onChange:r,onPrev:d,onNext:s}=(0,a.useContext)(D),[c,u]=(0,a.useState)((null==i?void 0:i._message)||{}),m=(0,tJ.A)(),p=(0,tq.A)({node:i}),g=(0,a.useMemo)(()=>{var e;let t=null==i?void 0:null===(e=i.actions)||void 0===e?void 0:e.find(e=>{let{type:t}=e;return t==E.rQ.POLL_BUTTON});return t||null},[null==i?void 0:i.actions]),h=(0,a.useMemo)(()=>(null==c?void 0:c.form_submit_meta)?null==c?void 0:c.form_submit_meta.map(e=>{let{action_id:t}=e;return t}):[],[c,null==c?void 0:c.form_submit_meta]),b=(0,a.useMemo)(()=>({isDisabled:n<=1}),[n]),v=(0,a.useMemo)(()=>{var e;return{isDisabled:!(null==c?void 0:null===(e=c.form_submit_meta)||void 0===e?void 0:e.length)}},[null==c?void 0:c.form_submit_meta]);return(0,l.FD)(j,{children:[(0,l.FD)(V,{children:[(0,l.Y)(G,{children:(0,l.Y)(subotLandingPage_subotLandingPageIntent,{intents:(null==i?void 0:i.intents)||[],indexNumber:n})}),(0,l.Y)(K,{children:p}),(0,l.Y)(X,{children:(0,l.Y)(subotLandingPage_subotLandingPageAction,{node_type:i.type,actions:(null==i?void 0:i.actions)||[],htmlType:"checkbox",value:(null==c?void 0:null===(t=c.form_submit_meta)||void 0===t?void 0:t.map(e=>{let{action_id:t}=e;return t}))||[],onChange:(e,t)=>{var n,o,l,a,d,s,m;let p=JSON.parse(JSON.stringify({...c,node_id:i.id,action_id:null==g?void 0:g.id,action_value:null==g?void 0:g.key,form_submit_meta:[...(null==c?void 0:c.form_submit_meta)||[]]}));if((null==e?void 0:e.type)===E.rQ.POLL_CHOICE_TEXT_BY_INPUT){let i=null===(o=p.form_submit_meta)||void 0===o?void 0:o.some(t=>{let{action_id:i}=t;return i===e.id});i?p.form_submit_meta=void 0===t?null===(l=p.form_submit_meta)||void 0===l?void 0:l.filter(t=>{let{action_id:i}=t;return i!==e.id}):null===(a=p.form_submit_meta)||void 0===a?void 0:a.filter(t=>{let{action_id:i}=t;return i!==e.id}).concat(t):p.form_submit_meta=null===(d=p.form_submit_meta)||void 0===d?void 0:d.concat([{key:null==e?void 0:e.key,control:E.zc[null==e?void 0:e.type]||"text",value:"",action_id:null==e?void 0:e.id}]),u(p),null==r||r(p);return}let h=null===(n=p.form_submit_meta)||void 0===n?void 0:n.some(t=>{let{action_id:i}=t;return i===(null==e?void 0:e.action_id)});h?p.form_submit_meta=null===(s=p.form_submit_meta)||void 0===s?void 0:s.filter(t=>{let{action_id:i}=t;return i!==(null==e?void 0:e.action_id)}):p.form_submit_meta=null===(m=p.form_submit_meta)||void 0===m?void 0:m.concat([e]),u(p),null==r||r(p)}})}),(0,l.Y)(G,{children:(0,l.Y)(subotLandingPageIntentBottom,{intents:(null==i?void 0:i.intents_bottom)||[]})})]}),(0,l.Y)(subotLandingPageFooter,{onPrev:()=>d&&d(),prevProps:b,onNext:()=>{let e={};c.form_submit_meta&&c.form_submit_meta.length&&(e[i.id]=c.form_submit_meta.map(e=>e.action_id));let t={...c,current_polls:e};m.validateSelectActions(h,i,()=>{s&&s({...o,...null==i?void 0:i._message,...t})})},nextText:null==g?void 0:g.label,nextProps:v})]})},FINAL_STANDARD:subotLandingPageNode_SubotLandingPageNodeFinal,FINAL:subotLandingPageNode_SubotLandingPageNodeFinal,MULTIPLE:e=>{let{node:t,indexNumber:i}=e,{formatMessage:n}=(0,P.A)(),{params:o,onChange:r,onSubmit:d,onPrev:s}=(0,a.useContext)(D),[c,u]=(0,a.useState)((null==t?void 0:t._message)||{}),m=(0,a.useMemo)(()=>{var e;let i=null==t?void 0:null===(e=t.actions)||void 0===e?void 0:e.find(e=>{let{type:t}=e;return t==E.rQ.ACTION_MULTIPLE_BUTTON});return i||null},[null==t?void 0:t.actions]),p=(0,a.useMemo)(()=>(null==c?void 0:c.selected_actions)?Object.keys(null==c?void 0:c.selected_actions):[],[null==c?void 0:c.selected_actions]),validateSelectActions=(e,i)=>{let o=Object.keys(e);if(o.length){if((null==t?void 0:t.multi_select_option)===E.RS.RANGE&&o.length<(null==t?void 0:t.from)){(0,B.showNotification)({title:"",message:n({id:"multiSelectError.range",defaultMessage:"You must choose from {from} to {to} answers (Ex: You must choose from 3 to 5 answers)"},{from:t.from,to:t.to}),type:"warning"});return}if((null==t?void 0:t.multi_select_option)===E.RS.EXACT_NUMBER&&o.length!==(null==t?void 0:t.from)){(0,B.showNotification)({message:n({id:"multiSelectError.exactNumber",defaultMessage:"You must choose {from} answers."},{from:t.from}),type:"warning"});return}i()}else{(0,B.showNotification)({title:"",message:n({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"});return}},handleOnClick=async(e,t)=>{if(e){var i,n;let o=JSON.parse(JSON.stringify({...c,action_id:null==m?void 0:m.id,action_value:null==m?void 0:m.key,selected_actions:{...null==c?void 0:c.selected_actions}}));if((null==e?void 0:e.type)===E.rQ.POLL_CHOICE_TEXT_BY_INPUT||(null==e?void 0:e.type)===E.rQ.USER_CHOICE_TEXT_BY_INPUT){let i=(null==o?void 0:o.selected_actions)&&e.id in o.selected_actions;i?t?o.form_submit_meta=t:(delete o.form_submit_meta,null===(n=o.selected_actions)||void 0===n||delete n[e.id]):(null==e?void 0:e.id)&&(o.selected_actions={...o.selected_actions,[e.id]:e.key||""}),u(o),null==r||r(o);return}if(!(null===(i=o.selected_actions)||void 0===i?void 0:i[e.id])){(null==e?void 0:e.id)&&(o.selected_actions={...o.selected_actions,[e.id]:(null==e?void 0:e.key)||""}),r&&r(o),u(o);return}if(o.selected_actions[e.id]){delete o.selected_actions[e.id],r&&r({...o}),u(o);return}}},g=(0,a.useCallback)(()=>{validateSelectActions((null==c?void 0:c.selected_actions)||{},async()=>{let e={...o,...null==t?void 0:t._message,...c},i=await subotLandingPageMessage(e);if((null==i?void 0:i._status)===1){let{node:t,...n}=null==i?void 0:i._data,o={...t,_message:{...n,node_id:t.id}};d&&d(o,e)}})},[c,null==c?void 0:c.selected_actions]),h=(0,a.useMemo)(()=>({isDisabled:i<=1}),[i]),b=(0,a.useMemo)(()=>({isDisabled:!p.length}),[p]);return(0,l.FD)(j,{children:[(0,l.FD)(V,{children:[(0,l.Y)(G,{children:(0,l.Y)(subotLandingPage_subotLandingPageIntent,{intents:(null==t?void 0:t.intents)||[],indexNumber:i})}),(0,l.Y)(X,{children:(0,l.Y)(subotLandingPage_subotLandingPageAction,{value:p,formSubmitMeta:c.form_submit_meta,node_type:t.type,htmlType:"checkbox",actions:(null==t?void 0:t.actions)||[],onChange:handleOnClick})}),(0,l.Y)(G,{children:(0,l.Y)(subotLandingPageIntentBottom,{intents:(null==t?void 0:t.intents_bottom)||[]})})]}),(0,l.Y)(subotLandingPageFooter,{onPrev:()=>s&&s(),prevProps:h,onNext:g,nextText:(null==m?void 0:m.label)||"",nextProps:b})]})},SSO:e=>{let{node:t,indexNumber:i}=e,n=(0,a.useRef)(!1),{params:o,onPrev:r,userInfo:d}=(0,a.useContext)(D),{formatMessage:s}=(0,P.A)(),handleOnChange=e=>{if(e&&e.type===E.rQ.ACTION_SSO_REDIRECT){var i,n;let l={...t._message,...o,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key,mode:"landing_page"},a="",r="";Object.keys(l).forEach(e=>{"object"==typeof l[e]?a+="".concat(r).concat(e,"=").concat(JSON.stringify(l[e])):a+="".concat(r).concat(e,"=").concat(l[e]),r="&"});let d=null===(n=l.url)||void 0===n?void 0:n.slice(0,(null===(i=l.url)||void 0===i?void 0:i.indexOf("?"))+1||void 0),s=encodeURIComponent("".concat(d,"?").concat(a));k.dX?e5.u.getState().triggerLogin({source:"subot-landing_page",returnUrl:"".concat(d,"?").concat(a)}):window.location.href="/".concat(k.a5,"?returnUrl=").concat(s,"&source=subot-landing_page")}},c=(0,a.useMemo)(()=>({isDisabled:i<=1}),[i]);return(0,a.useEffect)(()=>{var e;let i=null==t?void 0:null===(e=t.actions)||void 0===e?void 0:e.find(e=>e.type===E.rQ.ACTION_SSO_REDIRECT);(null==d?void 0:d.id)&&i&&!n.current&&(n.current=!0,handleOnChange(i))},[null==d?void 0:d.id]),(0,l.FD)(j,{children:[(0,l.FD)(V,{children:[(0,l.Y)(G,{children:(0,l.Y)(subotLandingPage_subotLandingPageIntent,{intents:[...(null==t?void 0:t.intents)||[],...(0,M.D6)(s)],indexNumber:i})}),(0,l.Y)(X,{children:(0,l.Y)(subotLandingPage_subotLandingPageAction,{node_type:t.type,actions:(null==t?void 0:t.actions)||[],onChange:handleOnChange})}),(0,l.Y)(G,{children:(0,l.Y)(subotLandingPageIntentBottom,{intents:(null==t?void 0:t.intents_bottom)||[]})})]}),(0,l.Y)(subotLandingPageFooter,{onPrev:()=>r&&r(),prevProps:c,hideNext:!0})]})},FINAL_THANK_YOU:e=>{var t,i;let{node:n}=e,{params:o,onSubmit:r}=(0,a.useContext)(D),[d,s]=(0,a.useState)((null==n?void 0:n._message)||{}),handleOnChange=async e=>{if(e){s({...d,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key});let t={...o,...d,node_id:n.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key},i=await subotLandingPageMessage(t);if((null==i?void 0:i._status)===1){let{node:e,...n}=null==i?void 0:i._data,o={...e,_message:{...n,node_id:e.id}};r&&r(o,t)}}};return(0,l.Y)(W,{children:(0,l.FD)(V,{children:[!!(null===(t=n.intents)||void 0===t?void 0:t.length)&&(0,l.Y)(eD,{className:"intent-list",children:null===(i=n.intents)||void 0===i?void 0:i.map(e=>{let t=eB[null==e?void 0:e.type];return t&&(0,l.Y)(t,{intent:e},e.id)})}),(0,l.Y)(X,{children:(0,l.Y)(subotLandingPage_subotLandingPageAction,{node_type:n.type,actions:(null==n?void 0:n.actions)||[],value:(null==d?void 0:d.action_id)?[null==d?void 0:d.action_id]:[],onChange:handleOnChange})})]})})},RATING:e=>{var t;let{node:i,indexNumber:n}=e,{formatMessage:o}=(0,P.A)(),{params:r,onChange:d,onSubmit:s,onPrev:c,onNext:u}=(0,a.useContext)(D),[m,p]=(0,a.useState)((null==i?void 0:i._message)||{}),[g,h]=(0,a.useState)(!1),b=(0,a.useMemo)(()=>{var e;let t=null==i?void 0:null===(e=i.actions)||void 0===e?void 0:e.find(e=>{let{type:t}=e;return t===E.rQ.RATING_STAR});if(m.form_submit_meta&&t){let e=null==m?void 0:m.form_submit_meta.findIndex(e=>{let{action_id:i}=e;return i===(null==t?void 0:t.id)});if(-1!==e)return parseInt(null==m?void 0:m.form_submit_meta[e].value)}return 0},[null==m?void 0:m.form_submit_meta]),v=(0,a.useMemo)(()=>{var e;let t=null==i?void 0:null===(e=i.actions)||void 0===e?void 0:e.find(e=>{let{type:t}=e;return t==E.rQ.RATING_BUTTON});return t||null},[]),handleOnChange=async e=>{if(e){let t={...r,...m,node_id:i.id,action_id:null==v?void 0:v.id,action_value:null==v?void 0:v.key,form_submit_meta:(null==m?void 0:m.form_submit_meta)?[...null==m?void 0:m.form_submit_meta]:[]},n=[...null==t?void 0:t.form_submit_meta],o=n.findIndex(t=>{let{action_id:i}=t;return i===e.action_id});-1!==o?n[o]={...e}:n.push(e),t.form_submit_meta=[...n],p(t),h(!1),d&&d(t)}},handleOnNext=async()=>{var e;if(!(null==i?void 0:null===(e=i._message)||void 0===e?void 0:e.form_submit_meta)||0===b){(0,B.showNotification)({title:"",message:o({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"});return}if(g)u&&u({...r,...m,...null==i?void 0:i._message});else{let e={...r,...null==i?void 0:i._message,...m},t=await subotLandingPageMessage(e);if((null==t?void 0:t._status)===1){let{node:i,...n}=null==t?void 0:t._data,o={...i,_message:{...n,node_id:i.id}};s&&s(o,e),h(!0)}}},_=(0,a.useMemo)(()=>({isDisabled:n<=1}),[n]),f=(0,a.useMemo)(()=>({isDisabled:0===b}),[null==m?void 0:m.action_id]);return(0,l.FD)(j,{children:[(0,l.FD)(V,{children:[(0,l.Y)(G,{children:(0,l.Y)(subotLandingPage_subotLandingPageIntent,{intents:(null==i?void 0:i.intents)||[],indexNumber:n})}),(0,l.Y)(X,{children:!!(null==i?void 0:null===(t=i.actions)||void 0===t?void 0:t.length)&&(0,l.Y)(ev,{children:i.actions.map(e=>{let t=e_[null==e?void 0:e.type];return t&&(0,l.Y)(t,{action:e,onChange:handleOnChange,value:(null==m?void 0:m.form_submit_meta)?null==m?void 0:m.form_submit_meta.find(t=>{let{action_id:i}=t;return i===e.id}):{}},e.id)})})}),(0,l.Y)(G,{children:(0,l.Y)(subotLandingPageIntentBottom,{intents:(null==i?void 0:i.intents_bottom)||[]})})]}),(0,l.Y)(subotLandingPageFooter,{onPrev:()=>c&&c(),prevProps:_,onNext:handleOnNext,nextProps:f})]})},REACTION:subotLandingPageNode,REVIEW:e=>{let{node:t,indexNumber:i}=e,{formatMessage:n}=(0,P.A)(),{params:o,onChange:r,onSubmit:d,onPrev:s,onNext:c}=(0,a.useContext)(D),[u,m]=(0,a.useState)((null==t?void 0:t._message)||{}),[p,g]=(0,a.useState)(!1),h=(0,a.useMemo)(()=>{var e;return(null==t?void 0:null===(e=t.actions)||void 0===e?void 0:e.filter(e=>{let{type:t}=e;return t===E.rQ.REVIEW_CHOICE}))||[]},[null==t?void 0:t.actions]),b=(0,a.useMemo)(()=>{var e;return(null==t?void 0:null===(e=t.actions)||void 0===e?void 0:e.filter(e=>{let{type:t}=e;return t===E.rQ.REVIEW_DESCRIPTION}))||[]},[null==t?void 0:t.actions]),v=(0,a.useMemo)(()=>{var e;let i=null==t?void 0:null===(e=t.actions)||void 0===e?void 0:e.find(e=>{let{type:t}=e;return t==E.rQ.REVIEW_BUTTON});return i||null},[null==t?void 0:t.actions]),_=(0,a.useMemo)(()=>(null==u?void 0:u.form_submit_meta)?null==u?void 0:u.form_submit_meta.map(e=>{let{action_id:t}=e;return t}).filter(e=>!!(null==h?void 0:h.map(e=>{let{id:t}=e;return t}).includes(e))):[],[u,null==u?void 0:u.form_submit_meta]),handleOnChange=e=>{if(e){let i={...o,...u,node_id:t.id,action_id:null==v?void 0:v.id,action_value:null==v?void 0:v.key,form_submit_meta:(null==u?void 0:u.form_submit_meta)?[...null==u?void 0:u.form_submit_meta]:[]},n=[...null==i?void 0:i.form_submit_meta],l=n.findIndex(t=>{let{action_id:i}=t;return i===e.action_id});-1!==l?n[l]={...e}:n.push(e),i.form_submit_meta=[...n],m(i),g(!1),r&&r(i)}},handleOnNext=async()=>{if(!u.form_submit_meta||!_.length){(0,B.showNotification)({title:"",message:n({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"});return}if(p)c&&c({...o,...u,...null==t?void 0:t._message});else{let e={...o,...null==t?void 0:t._message,...u},i=await subotLandingPageMessage(e);if((null==i?void 0:i._status)===1){let{node:t,...n}=null==i?void 0:i._data,o={...t,_message:{...n,node_id:t.id}};d&&d(o,e),g(!0)}}},f=(0,a.useMemo)(()=>({isDisabled:i<=1}),[i]),y=(0,a.useMemo)(()=>({isDisabled:!((null==u?void 0:u.action_id)&&(null==u?void 0:u.action_id)!=="")}),[null==u?void 0:u.action_id]);return(0,l.FD)(j,{children:[(0,l.FD)(V,{children:[(0,l.Y)(G,{children:(0,l.Y)(subotLandingPage_subotLandingPageIntent,{intents:(null==t?void 0:t.intents)||[],indexNumber:i})}),(0,l.FD)(X,{children:[(0,l.Y)(subotLandingPage_subotLandingPageAction,{node_type:t.type,actions:h||[],value:_,onChange:e=>{if(e){let i={...o,...u,node_id:t.id,action_id:null==v?void 0:v.id,action_value:null==v?void 0:v.key,form_submit_meta:(null==u?void 0:u.form_submit_meta)?[...null==u?void 0:u.form_submit_meta]:[]},n=[...null==i?void 0:i.form_submit_meta],l=n.findIndex(t=>{let{action_id:i}=t;return i===e.action_id});-1!==l?n=[...n.slice(0,l),...n.slice(l+1)]:n.push(e),i.form_submit_meta=[...n],m(i),g(!1),r&&r(i)}}}),!!(null==b?void 0:b.length)&&(0,l.Y)(ev,{children:b.map(e=>{let t=e_[null==e?void 0:e.type];return t&&(0,l.Y)(t,{action:e,onChange:handleOnChange,value:(null==u?void 0:u.form_submit_meta)?null==u?void 0:u.form_submit_meta.find(t=>{let{action_id:i}=t;return i===e.id}):{}},e.id)})})]}),(0,l.Y)(G,{children:(0,l.Y)(subotLandingPageIntentBottom,{intents:(null==t?void 0:t.intents_bottom)||[]})})]}),(0,l.Y)(subotLandingPageFooter,{onPrev:()=>s&&s(),prevProps:f,onNext:handleOnNext,nextText:(null==v?void 0:v.label)||"",nextProps:y})]})},RESULT_POLL:e=>{var t;let{node:i,indexNumber:n}=e,{params:o,onChange:r}=(0,a.useContext)(D),[d,s]=(0,a.useState)((null==i?void 0:i._message)||{}),c=(0,a.useMemo)(()=>{var e;let t=null==i?void 0:null===(e=i.actions)||void 0===e?void 0:e.find(e=>{let{type:t}=e;return t==E.rQ.POLL_BUTTON});return t||null},[null==i?void 0:i.actions]);return(0,l.Y)(j,{children:(0,l.FD)(V,{children:[(0,l.Y)(G,{children:(0,l.Y)(subotLandingPage_subotLandingPageIntent,{intents:(null==i?void 0:i.intents)||[],indexNumber:n})}),(0,l.Y)(X,{children:(0,l.Y)(subotLandingPage_subotLandingPageAction,{node_type:i.type,actions:(null==i?void 0:i.actions)||[],htmlType:"checkbox",value:(null==d?void 0:null===(t=d.form_submit_meta)||void 0===t?void 0:t.map(e=>{let{action_id:t}=e;return t}))||[],onChange:e=>{if(e){let t={...o,...d,node_id:i.id,action_id:null==c?void 0:c.id,action_value:null==c?void 0:c.key,form_submit_meta:(null==d?void 0:d.form_submit_meta)?[...null==d?void 0:d.form_submit_meta]:[]},n=[...null==t?void 0:t.form_submit_meta],l=n.findIndex(t=>{let{action_id:i}=t;return i===e.action_id});-1!==l?n=[...n.slice(0,l),...n.slice(l+1)]:n.push(e),t.form_submit_meta=[...n],s(t),r&&r(t)}}})})]})})},OTP:e=>{let{node:t,indexNumber:i}=e,{params:n,onSubmit:o,onPrev:d}=(0,a.useContext)(D),{locale:s}=(0,r.useRouter)(),{formatMessage:c}=(0,P.A)(),[u,m]=(0,a.useState)((null==t?void 0:t._message)||{}),handleOnVerify=async(e,i)=>{var l;let a=null==t?void 0:null===(l=t.actions)||void 0===l?void 0:l.find(e=>{let{type:t}=e;return t===E.rQ.USER_SUBMIT_PHONE});if(e&&a){let l=[{key:String(a.key),control:E.zc[E.rQ.USER_SUBMIT_PHONE],value:i}];m({...u,form_submit_meta:l,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key});let r={...n,...u,form_submit_meta:l,node_id:t.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key},d=await subotLandingPageMessage(r);if((null==d?void 0:d._status)===1){let{node:e,...t}=null==d?void 0:d._data,i={...e,_message:{...t,node_id:e.id}};o&&o(i,r)}}},p=(0,a.useMemo)(()=>({isDisabled:i<=1}),[i]),g=(0,a.useMemo)(()=>({isDisabled:!((null==u?void 0:u.action_id)&&(null==u?void 0:u.action_id)!=="")}),[null==u?void 0:u.action_id]),[h,b]=(0,a.useMemo)(()=>{var e,i,n;let o=(null===(n=t._message)||void 0===n?void 0:null===(i=n.form_submit_meta)||void 0===i?void 0:null===(e=i.find(e=>e.control===E.zc[E.rQ.USER_SUBMIT_PHONE]))||void 0===e?void 0:e.value)||void 0;if(!o)return[];let l=(0,t_.lq)(o);return[null==l?void 0:l.nationalNumber,null==l?void 0:l.countryCallingCode]},[t._message]);return(0,l.FD)(j,{children:[(0,l.FD)(V,{children:[(0,l.Y)(G,{children:(0,l.Y)(subotLandingPage_subotLandingPageIntent,{intents:(null==t?void 0:t.intents)||[],indexNumber:i})}),(0,l.Y)(K,{children:c({id:"subot.otp.description",defaultMessage:"We will send you an one time password on this phone number"})}),(0,l.Y)(X,{children:(0,l.Y)(tQ.u,{phoneNumber:h,verified:!!h&&!!b,areaCode:b,callBack:handleOnVerify,actions:(null==t?void 0:t.actions)||[],countryCode:(null==s?void 0:s.split("-")[1])||"PH"})}),(0,l.Y)(G,{children:(0,l.Y)(subotLandingPageIntentBottom,{intents:(null==t?void 0:t.intents_bottom)||[]})})]}),(0,l.Y)(subotLandingPageFooter,{onPrev:()=>d&&d(),prevProps:p,nextProps:g})]})}};var t$=i("mg0C"),t0=i("a5L+"),t1=i("g3e0"),t2=i.n(t1);(n=o||(o={})).NAME="block_name",n.NUMBER="block_number",n.SUBMIT_FLAG="submit_flag";var subotLandingPage_SubotLandingPageNodeContainer=e=>{let{NodeComponent:t,node:i,indexNumber:n,isFromMyHealth:o,isMobile:d}=e,s=(0,r.useRouter)();return((0,a.useEffect)(()=>{let e={...s.query,block_number:n,block_name:(i.name||"").split(" ").filter(Boolean).join("-")};E.sR.includes(Number(i.type))&&(e.submit_flag=1),s.push({pathname:s.pathname,query:e},void 0,{shallow:!0})},[]),t&&i)?(0,l.Y)(t,{node:i,indexNumber:n,isFromMyHealth:o,isMobile:d}):null},subotLandingPageNodeStart=e=>{var t;let{node:i}=e,{onNext:n,trackingCommon:r}=(0,a.useContext)(D),{formatMessage:d,formatDate:s}=(0,P.A)(),[c,u]=(0,a.useState)(-1),{router:m}=(0,T.$)(),{landing_page_title:p,landing_page_reviewer:g,landing_page_review_date:h,landing_page_background:b,landing_page_background_mobile:v,landing_page_image:_,landing_page_image_mobile:f,landing_page_start_button:y}=i||{},x=(0,t0.a)(),{image:w,background:k}=(0,a.useMemo)(()=>x?{image:f,background:v}:{image:_,background:b},[x,b,v,_,f]),E=(0,l.FD)("div",{className:"lp_review",children:[(0,l.Y)(t2(),{}),h?(0,l.Y)(ei.o,{children:d({id:"toolPage.toolReviewer"},{expert_name:g,date:s(h||"",{month:"long",day:"2-digit",year:"numeric"})})}):(0,l.Y)(ei.o,{children:"".concat(d({id:"articleAuthor.title.medical"})," ").concat(g)})]}),S=(0,l.Y)(F.B,{color:"primary",size:"lg",onClick:()=>{n&&n()},className:"next-btn pointer-event-child-none",...r,"data-event-action":"Start",children:y||d({id:"riskScreener.start",defaultMessage:"Start"})});return(0,a.useEffect)(()=>{if(m.query[o.NAME]||m.query[o.NUMBER]||m.query[o.SUBMIT_FLAG]){let e={...m.query};delete e[o.NUMBER],delete e[o.NAME],delete e[o.SUBMIT_FLAG],m.replace({pathname:m.pathname,query:e},void 0,{shallow:!0})}},[]),(0,l.Y)(J,{$bg:k,children:(0,l.FD)("div",{className:"lp-page-start",children:[(0,l.Y)(Z,{$bg:k,children:(0,l.FD)("div",{className:"lp_container",children:[(0,l.FD)("div",{className:"lp_header",children:[(0,l.Y)("h1",{className:"lp_title",children:p}),g&&(0,l.Y)("div",{className:"lp_reviewer",children:E}),(0,l.Y)("div",{className:"lp_actions",children:S})]}),(0,l.Y)("div",{className:"lp_image",children:(0,l.Y)("div",{className:"lp_image_wrapper",children:(0,l.Y)("div",{className:"lp_image_ratio",children:(0,l.Y)("img",{loading:"lazy",src:w||"",alt:"",className:"lp_image_img"})})})})]})}),i.landing_page_description&&(0,l.Y)("div",{className:"lp-page-description",children:(0,l.Y)("div",{className:"lp-page-container",children:(0,l.Y)(ei.o,{children:i.landing_page_description})})}),!!(null===(t=i.landing_page_info)||void 0===t?void 0:t.length)&&(0,l.Y)("div",{className:"lp-page-info",children:(0,l.FD)("div",{className:"lp-page-container",children:[(0,l.FD)("h2",{className:"lp-page-exclamation-title",children:[(0,l.Y)(eQ(),{}),(0,l.Y)("span",{children:d({id:"dueDatePage.info",defaultMessage:"Info"})})]}),(0,l.Y)("div",{className:"lp-page-info__list",children:i.landing_page_info.map((e,t)=>(0,l.Y)(t$.W,{title:e.title,isExpand:c===t,onChange:e=>e?u(t):u(-1),content:(0,l.Y)(ei.o,{children:e.description}),iconPosition:"right",style:{marginBottom:"1rem"}},t))})]})}),i.landing_page_disclaimer&&(0,l.Y)("div",{className:"lp-page-disclaimer",children:(0,l.FD)("div",{className:"lp-page-container",children:[(0,l.FD)("h2",{className:"lp-page-exclamation-title",children:[(0,l.Y)(eQ(),{}),(0,l.Y)("span",{children:d({id:"ovulationPage.disclaimer",defaultMessage:"Disclaimer"})})]}),(0,l.Y)("div",{className:"lp-page-disclaimer__content",children:(0,l.Y)(ei.o,{children:i.landing_page_disclaimer})})]})})]})})},subotLandingPage=e=>{var t;let{url:i,isMobile:n,initNodes:o,initActiveId:r="",initParams:p,accountIdFromLogs:g,firstTotalFlows:h}=e,v=(0,w.m)(),[f,I]=(0,a.useState)(!!r),{locale:N,router:C}=(0,T.$)(),{state:{userInfo:Y}}=(0,a.useContext)(S.B),O=(0,a.useRef)(null),[P,B]=(0,a.useState)(!0),[U,R]=(0,a.useState)({activeId:"",params:{},nodes:o&&o.length?o:[]}),[F,z]=(0,a.useState)(!1);(0,a.useEffect)(()=>{!async function(){let e=U.nodes;if(f&&U.params.mode){let t="in_progress",i=e[e.length-1];(null==i?void 0:i.type)&&E.sR.includes(i.type)&&(t="complete");let n=U.nodes.slice(1),o={...U,nodes:n,tracking:{full_url:window.location.href},unifiedAnswers:(0,x.Rx)(n),voucherAnswers:(0,x.$Q)(n,e[0])},l={cookie_id:(0,c.dh)(),account_id:g||(0,c.VV)()||null,bot_id:U.params.bot_id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(o),status:t,type:U.params.mode,market:k.HL[N]};try{let e=await (0,s.px)((0,u.PU)(d.PATHS.SUBOT.POST_SUBOT_CREATE_LOG),"POST",{data:l});if(!e.data._data)throw Error()}catch(e){}}}()},[U.nodes,f]);let H=(0,a.useMemo)(()=>U.nodes.find(e=>e.id==U.activeId),[U.nodes,U.activeId]),G=(0,a.useMemo)(()=>({"data-event-category":"Subot","data-event-label":v,"data-bot-id":U.params.bot_id,"data-bot-type":"Landing Page","data-question-id":"string"==typeof(null==H?void 0:H.id)?null==H?void 0:H.id:null}),[H,v,U.params.bot_id]),X=(0,a.useCallback)(()=>{var e;let t=window.gaData,n=i||(0,u.oN)(N)+window.location.pathname,o={bot_id:U.nodes.length?U.nodes[0].id:"",account_id:(0,c.VV)()||null,action_id:"",action_value:"",cookie_id:(0,c.lT)(null===(e=C.query)||void 0===e?void 0:e.cookie_id),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:t?Object.keys(t)[0]:"",ga_client_id:y().get("_ga")||"",is_new:!1,mode:"landing-page",node_id:"",selected_actions:{},title_url:document.title||"",url:n.replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover."),window_id:(0,s.Q2)(),total_flows:h};return(0,M.sQ)(o,C.query)},[]),elementScrollIntoView=()=>{O.current&&O.current.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})},V=(0,a.useCallback)(function(e){let{event_action:t,response_id:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{window.gtag("event","interaction_click",{event:"interaction_click",...G,event_action:t||"Answer Click",response_id:(null==e?void 0:e.action_id)||i})}catch(e){}},[G]),onSubmit=async(e,t)=>{I(!0);let i=JSON.parse(JSON.stringify({...U,nodes:[...U.nodes]}));if(t&&(null==t?void 0:t.node_id)){let e=i.nodes.findIndex(e=>{let{id:i}=e;return i==t.node_id});-1!==e&&(i.nodes[e]._message={...i.nodes[e]._message,...t},i.nodes=[...i.nodes.slice(0,e+1)])}if(B(!0),e){var n;let t=i.nodes.findIndex(t=>{let{id:i}=t;return i==(null==e?void 0:e.id)});if(-1===t)i.nodes=[...i.nodes,{...e}];else{let n={...i.nodes[t],...e,_message:{...i.nodes[t]._message,...null==e?void 0:e._message}};i.nodes=[...i.nodes.slice(0,t),{...n},...i.nodes.slice(t+1)]}i.activeId=e.id,i.params.total_flows=null===(n=e._message)||void 0===n?void 0:n.total_flows}setTimeout(()=>{R(i),B(!1),elementScrollIntoView()},300)},j=(0,a.useCallback)(async e=>{if(e&&(null==e?void 0:e.node_id)){e.account_id=(null==Y?void 0:Y.id)||g||(0,c.VV)()||null;let t={...e,...(0,b.getCurrentTotalDynamicScore)(U.nodes,U.activeId,e.action_id)},i=await subotLandingPageMessage(t);if((null==i?void 0:i._status)===1){let{node:e,total_flows:n,...o}=null==i?void 0:i._data,l={...e,_message:{...o,total_flows:n,node_id:e.id}},a=U.nodes.findIndex(e=>{let{id:t}=e;return t===l.id});-1!==a?onSubmit(l):onSubmit(l,{...t});return}}let t=U.nodes.find(e=>{let{id:t}=e;return t==(null==U?void 0:U.activeId)});if(t&&!t.hasOwnProperty("type")&&(B(!0),U.nodes[0].id==(null==U?void 0:U.activeId))){var i,o,l,a,r,d,s,u;let e={cookie_id:null===(i=U.params)||void 0===i?void 0:i.cookie_id,window_id:null===(o=U.params)||void 0===o?void 0:o.window_id,bot_id:null===(l=U.params)||void 0===l?void 0:l.bot_id,title_url:null===(a=U.params)||void 0===a?void 0:a.title_url,url:null===(r=U.params)||void 0===r?void 0:r.url,gtm_id:null===(d=U.params)||void 0===d?void 0:d.gtm_id,ga_client_id:null===(s=U.params)||void 0===s?void 0:s.ga_client_id,device_id:n?2:1,account_id:(null===(u=U.params)||void 0===u?void 0:u.account_id)||(null==Y?void 0:Y.id)||null};subotLandingPageClick(e),setTimeout(()=>{R({...U,activeId:U.nodes[1].id.toString()}),B(!1),elementScrollIntoView(),I(!0)},250)}},[null==U?void 0:U.activeId]),checkFromMyHealth=e=>{var t;return void 0!==(null==e?void 0:e.source)&&((null==e?void 0:null===(t=e.source)||void 0===t?void 0:t.includes("my-health"))&&"string"==typeof(null==e?void 0:e.itemId)?null==e?void 0:e.itemId:void 0)},K=(0,a.useCallback)(async()=>{var e,t,i,n,o,l,a,d,s,c,u,m,g,h;let v=X(),_={...U,params:p?{...p,...v}:v},f=r||U.nodes[0].id.toString();B(!0);let x=checkFromMyHealth(C.query);if(x){let e=await sidisRiskScreenersId(x);(null==e?void 0:e._status)===1&&(f=null==e?void 0:null===(l=e._data)||void 0===l?void 0:null===(o=l.payload)||void 0===o?void 0:o.id,_.nodes=[..._.nodes],_.nodes[1]={...null==e?void 0:null===(a=e._data)||void 0===a?void 0:a.payload}),R({..._,activeId:f}),z(!0),B(!1);return}if(B(!0),(null===(e=_.params)||void 0===e?void 0:e.action_id)&&(null===(t=_.params)||void 0===t?void 0:t.action_id)!==""&&(null===(i=_.params)||void 0===i?void 0:i.action_value)&&(null===(n=_.params)||void 0===n?void 0:n.action_value)!==""){let e={..._.params,...(0,b.getCurrentTotalDynamicScore)(_.nodes,f,_.params.action_id)},t=await subotLandingPageMessage(e);(null==t?void 0:t._status)===1&&t._data&&(f=t._data.node.id,_.nodes=[..._.nodes],_.nodes[_.nodes.length-1]={...t._data.node,message:{...t._data}},setTimeout(()=>{let e={...C.query};["current_score","current_selected","current_polls","current_tags","current_keys","current_node_index","total_node","node_id","bot_id","account_id","action_id","action_value","cookie_id","form_submit_meta","gtm_id","ga_client_id","is_new","mode","selected_actions","title_url","url","window_id"].forEach(t=>delete e[t]),C.replace({pathname:C.pathname,query:e},void 0,{shallow:!0})},200))}else subotLandingPageImpress({cookie_id:null===(d=_.params)||void 0===d?void 0:d.cookie_id,window_id:null===(s=_.params)||void 0===s?void 0:s.window_id,bot_id:null===(c=_.params)||void 0===c?void 0:c.bot_id,url:null===(u=_.params)||void 0===u?void 0:u.url,ga_client_id:(null===(m=_.params)||void 0===m?void 0:m.ga_client_id)||y().get("_ga")||"",title_url:null===(g=_.params)||void 0===g?void 0:g.title_url,account_id:null===(h=_.params)||void 0===h?void 0:h.account_id}).then(e=>{(null==e?void 0:e._status)===1&&console.log("* Subot Landing Page Impress")});R({..._,activeId:f}),B(!1)},[]);return(0,a.useEffect)(()=>{y().get(k.pJ)?K():(0,M.jU)({condition:()=>!!y().get(k.pJ),finished:K})},[]),(0,a.useEffect)(()=>{if(!U.nodes.length||!U.activeId)return;let e=U.nodes.find(e=>e.id==U.activeId);e||R(e=>({...e,activeId:U.nodes[0].id+""}))},[U.activeId]),(0,l.Y)(D.Provider,{value:{...U,getParams:X,onChange:e=>{R(t=>{if(e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==(null==t?void 0:t.activeId)){let n=t.nodes.findIndex(e=>{let{id:i}=e;return i==(null==t?void 0:t.activeId)});if(-1!==n){var i;let o={...t.nodes[n],_message:{...null===(i=t.nodes[n])||void 0===i?void 0:i._message,...e}};t.nodes[n]=o}}return{...t}})},onSubmit,onPrev:()=>{var e;let t={...U},i=null===(e=t.nodes)||void 0===e?void 0:e.findIndex(e=>{let{id:i}=e;return i==t.activeId});if(i>1){let e=t.nodes[i-1];e&&(t.activeId=e.id.toString())}elementScrollIntoView(),R(t)},onNext:j,onReset:()=>{B(!0),I(!1),R(e=>(e.nodes=e.nodes.slice(0,2),e.nodes[1]={...e.nodes[1],_message:void 0},e.activeId=e.nodes[0].id.toString(),{...e})),setTimeout(()=>{B(!1),I(!0)},250),elementScrollIntoView()},trackingCommon:G,currentNode:H,onGaTracking:V,userInfo:Y},children:(0,l.FD)(A,{children:[(0,l.Y)("div",{ref:O,style:{position:"absolute",top:-150,pointerEvents:"none"}}),(0,l.FD)(L,{className:_()(P&&"loading"),children:[(0,l.Y)(m.R,{className:"lp_loading-icon"}),"Verifying..."]}),null===(t=U.nodes)||void 0===t?void 0:t.map((e,t)=>{if(e.id.toString()===(null==U?void 0:U.activeId)){if(!e.hasOwnProperty("type"))return(0,l.Y)(subotLandingPageNodeStart,{node:e},e.id);{let i;return i=(null==e?void 0:e.position)===E.Ch.SSO?tZ[E.Ch[null==e?void 0:e.position].valueOf()]:tZ[E.Z6[null==e?void 0:e.type].valueOf()],(null==e?void 0:e.is_multi_select)&&e.type!==E.Z6.POLL&&(i=tZ.MULTIPLE),i?(0,l.Y)(subotLandingPage_SubotLandingPageNodeContainer,{node:e,indexNumber:t,NodeComponent:i,isFromMyHealth:F,isMobile:n},e.id):null}}return null})]})})},t6=i("Imrq"),t3=!0,_slug_=e=>{var t;let{url:i,nodes:n,footerInfo:o,dataNavMenuContent:b,firstTotalFlows:v,sitewideBanner:_}=e,{locale:f,query:y}=(0,r.useRouter)(),{state:x}=(0,a.useContext)(S.B),{userInfo:w}=x||{},T=(0,t0.a)(),k=Array.isArray(y.slug)?y.slug.join("/"):y.slug,M=getForceBotLocaleAdMappingFromSlug(f,k||""),I=(0,eq.oq)({countryAdTag:(0,eq._3)(f,{isMobile:T}),...M?{forceTag:M}:{contentAdTag:{result:getBotLocaleAdMappingFromSlug(f,k||"")||"bot/".concat((0,eq.iR)(k||"")),redundant:!1}}});(0,a.useEffect)(()=>(document.body.classList.add("hhg-subot-landing-page"),()=>document.body.classList.remove("hhg-subot-landing-page")),[]);let[N,C]=(0,a.useState)(n),Y=N[0],O=(0,a.useMemo)(()=>{var e,t;return{title:(null==Y?void 0:null===(e=Y.landing_page_seo_title)||void 0===e?void 0:e.toString().replace(/,/g,"."))||"",description:(null==Y?void 0:null===(t=Y.landing_page_meta_description)||void 0===t?void 0:t.toString().replace(/,/g,"."))||"",image:(null==Y?void 0:Y.landing_page_icon)||(null==Y?void 0:Y.landing_page_image)||"",isIndexable:!0}},[N[0]]),[D,P]=(0,a.useState)();return(0,a.useEffect)(()=>{(async()=>{var e;let t=(0,c.VV)(document.cookie),i=(0,c.dh)(document.cookie),n="",o=null,l=0,a=i&&N[0].id?await (0,s.px)((0,u.PU)(d.PATHS.SUBOT.GET_SUBOT_LOG,{botId:N[0].id,cookieId:i,accountId:t}),"GET",{params:{type:"landing-page"}}):null;if(console.log("subotLogsRes",a),(null==a?void 0:a._data)&&(null===(e=a._data)||void 0===e?void 0:e.type)==="landing-page")try{let e=JSON.parse(a._data.data),t=e.nodes,i="in_progress"===a._data.status,r="complete"===a._data.status,d=t[t.length-1].type===E.Z6.FINAL_STANDARD,s=t[t.length-1].intents.find(e=>{let{type:t}=e;return t===E.XG.BOT_RECALCULATE});(i||r&&d&&s)&&(C(e=>[e[0],...t]),n=r?t[t.length-1].id:e.activeId,o=e.params),l=a._data.account_id||0}catch(e){}P({initActiveId:n,initParams:o,accountIdFromLogs:l})})()},[]),(0,l.FD)(t6.s,{title:(null==Y?void 0:Y.landing_page_seo_title)||"",description:(null==Y?void 0:Y.landing_page_meta_description)||"",SEOData:O,isSponsored:!!(null==Y?void 0:Y.landing_page_is_sponsored),sponsoredType:"content",sponsoredBy:(null==Y?void 0:Y.landing_page_client)||{},footerInfo:o,dataNavMenuContent:b,activeMenuService:"tools",sitewideBanner:_,children:[void 0!==w&&D?(0,l.Y)(subotLandingPage,{isMobile:T,url:i,initNodes:N,initActiveId:null==D?void 0:D.initActiveId,initParams:null==D?void 0:D.initParams,accountIdFromLogs:null==D?void 0:D.accountIdFromLogs,firstTotalFlows:(null==D?void 0:null===(t=D.initParams)||void 0===t?void 0:t.total_flows)||v}):(0,l.Y)(A,{children:(0,l.FD)(L,{className:"loading",children:[(0,l.Y)(m.R,{className:"lp_loading-icon"}),"Verifying..."]})}),(0,l.Y)(p.w,{children:(0,l.Y)(g.FixedBottomAdBlock,{divId:"div-gpt-ad-sticky",adUnitPath:I,isMobile:T})}),(0,l.Y)(h.OutOfPageAd,{id:"div-gpt-out-of-page",adUnitPath:I})]})}},"/GlT":function(e,t,i){"use strict";i.d(t,{$t:function(){return abbreviateNumber},Yq:function(){return formatDate},ik:function(){return formatGenderUrl},vc:function(){return formatGender}});let formatDate=e=>{if(!e)return"";let t=new Date(e),i=Math.floor((Date.now()-t.getTime())/1e3),n=[{label:"year",seconds:31536e3},{label:"month",seconds:2592e3},{label:"day",seconds:86400},{label:"hour",seconds:3600},{label:"min",seconds:60},{label:"second",seconds:0}].find(e=>e.seconds{let t=String(e);if(e>=1e3){let i;let n=Math.floor((""+e).length/3);for(let t=2;t>=1;t--){i=parseFloat((0!=n?e/Math.pow(1e3,n):e).toPrecision(t));let o=(i+"").replace(/[^a-zA-Z 0-9]+/g,"");if(o.length<=2)break}i&&i%1!=0&&(i=i.toFixed(1)),t=i+["","k","m","b","t"][n]}return t},formatGenderUrl=e=>"male"===e?"m":"f",formatGender=e=>"m"===e?"male":"female"},lpGY:function(e,t,i){"use strict";i.d(t,{D:function(){return trackCustomEvent},c:function(){return sendCompleteFlowEvent}});let n=0;function trackCustomEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=window.fbq;i?i("trackCustom",e,t):n<3?(setTimeout(()=>trackCustomEvent(e,t),1e3),n++):console.log("Unable to load Facebook Pixel")}function sendCompleteFlowEvent(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=window.location.search.includes("itemId"),i=window.location.search.includes("resultId");i||t||trackCustomEvent("CompleteFlow",{status:!0,...e})}},"69Ac":function(e,t,i){"use strict";i.d(t,{OF:function(){return cleanLink},fQ:function(){return normalizeText},jt:function(){return wrapPlainTextAsHtmlParagraph}}),i("/sjq");let escapeHtml=e=>e.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),wrapPlainTextAsHtmlParagraph=e=>"

".concat(escapeHtml(e.trim()),"

");function cleanLink(e){return e.split("?")[0].split("/").filter((e,t)=>0===t||!!e).join("/")+"/"}function normalizeText(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim()}},dnor:function(e,t,i){"use strict";i.d(t,{D6:function(){return ssoIntents},jU:function(){return checkUntilFinished},sQ:function(){return overrideParamsByQuery}});var n=i("Q6jF"),o=i("PAs/");let l=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],a=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...l],overrideParamsByQuery=(e,t)=>{let i=Object.keys(t);return i.map(i=>{let n=t[i];if("source"===i){e.is_new="first_login"===n;return}if(a.includes(i)){if(l.includes(i)){try{e[i]=JSON.parse(n)}catch(e){}return}if("account_id"===i||"current_score"===i||"bot_id"===i){e[i]=parseInt(n);return}e[i]=n}}),e},ssoIntents=e=>[{id:(0,n.A)(),label:JSON.stringify({title:"",description:""}),type:o.XG.SSO_INTENT,url:""},{id:(0,n.A)(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:o.XG.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:(0,n.A)(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:o.XG.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:(0,n.A)(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:o.XG.SSO_INTENT,url:"/images/subot/shield.svg"}];function checkUntilFinished(e){let t=e.condition,i=e.finished,n=e.timeout||3e3,o=new Date().getTime(),l=setInterval(()=>{let e=new Date().getTime();(e-o>n||t())&&(clearInterval(l),i())},300)}},d30B:function(e,t,i){var n=i("+OUp");function Info(e){return n.createElement("svg",e,[n.createElement("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",fill:"#2D87F3",key:0}),n.createElement("path",{d:"M8 11V8",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1}),n.createElement("path",{d:"M8 5H8.01",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:2})])}Info.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=Info,Info.default=Info},BYrS:function(e,t,i){var n=i("+OUp");function Close(e){return n.createElement("svg",e,[n.createElement("path",{d:"M18 6L6 18",stroke:"#262626",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",key:0}),n.createElement("path",{d:"M6 6L18 18",stroke:"#262626",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",key:1})])}Close.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.exports=Close,Close.default=Close},hvR8:function(e,t,i){var n=i("+OUp");function Danger(e){return n.createElement("svg",e,[n.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"#262626",key:0}),n.createElement("path",{d:"M14.8286 9.17163L9.17176 14.8285",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1}),n.createElement("path",{d:"M9.17139 9.17163L14.8282 14.8285",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:2})])}Danger.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.exports=Danger,Danger.default=Danger},X1xk:function(e,t,i){var n=i("+OUp");function Success(e){return n.createElement("svg",e,[n.createElement("path",{d:"M10.0001 18.3334C14.6025 18.3334 18.3334 14.6024 18.3334 10C18.3334 5.39765 14.6025 1.66669 10.0001 1.66669C5.39771 1.66669 1.66675 5.39765 1.66675 10C1.66675 14.6024 5.39771 18.3334 10.0001 18.3334Z",fill:"#00B16A",key:0}),n.createElement("path",{d:"M13.8333 7.5L8.33325 12.5L5.83325 10.2273",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1})])}Success.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=Success,Success.default=Success},l0B8:function(e,t,i){var n=i("+OUp");function Warning(e){return n.createElement("svg",e,n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1.66666C5.4 1.66666 1.66667 5.39999 1.66667 9.99999C1.66667 14.6 5.4 18.3333 10 18.3333C14.6 18.3333 18.3333 14.6 18.3333 9.99999C18.3333 5.39999 14.6 1.66666 10 1.66666ZM10 10.8333C9.54167 10.8333 9.16667 10.4583 9.16667 9.99999V6.66666C9.16667 6.20832 9.54167 5.83332 10 5.83332C10.4583 5.83332 10.8333 6.20832 10.8333 6.66666V9.99999C10.8333 10.4583 10.4583 10.8333 10 10.8333ZM9.16667 12.5V14.1667H10.8333V12.5H9.16667Z",fill:"#FE921D"}))}Warning.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.exports=Warning,Warning.default=Warning},t6uU:function(e,t,i){var n=i("+OUp");function Calendar(e){return n.createElement("svg",e,[n.createElement("path",{d:"M12.6667 4H3.33333C2.59695 4 2 4.49746 2 5.11111V12.8889C2 13.5025 2.59695 14 3.33333 14H12.6667C13.403 14 14 13.5025 14 12.8889V5.11111C14 4.49746 13.403 4 12.6667 4Z",stroke:"#737373",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",key:0}),n.createElement("path",{d:"M10.6667 2V5.33333",stroke:"#737373",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",key:1}),n.createElement("path",{d:"M5.33325 2V5.33333",stroke:"#737373",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",key:2}),n.createElement("path",{d:"M2 8H14",stroke:"#737373",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",key:3})])}Calendar.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=Calendar,Calendar.default=Calendar},"6g+n":function(e,t,i){var n=i("+OUp");function Exclamation(e){return n.createElement("svg",e,[n.createElement("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",fill:"#2D87F3",key:0}),n.createElement("path",{d:"M8 11V8",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1}),n.createElement("path",{d:"M8 5H8.01",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:2})])}Exclamation.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=Exclamation,Exclamation.default=Exclamation},Zzjc:function(e,t,i){var n=i("+OUp");function TickRounded(e){return n.createElement("svg",e,[n.createElement("path",{d:"M8.00004 14.6666C11.6819 14.6666 14.6667 11.6818 14.6667 7.99992C14.6667 4.31802 11.6819 1.33325 8.00004 1.33325C4.31814 1.33325 1.33337 4.31802 1.33337 7.99992C1.33337 11.6818 4.31814 14.6666 8.00004 14.6666Z",fill:"#2D87F3",key:0}),n.createElement("path",{d:"M11.0665 6L6.6665 10L4.6665 8.18182",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",key:1})])}TickRounded.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.exports=TickRounded,TickRounded.default=TickRounded}},function(e){_N_E=Promise.all([e.f.consumes||function(e,t){},e.f.remotes||function(e,t){}].reduce(function(e,t){return t("4429",e),e},[])).then(function(){return e.X(0,[6444,5008,6132,3139,3734,6060,1813,3184,1809,1509,2277,8287,3430,2486,1891,2794,2808,8210,8e3,5e3,9862,5512,2213,3775,9144,9249,3231,9785,866,4660,4555,4164,2654,3028,7469,6983,3069,4039,9705,7379,7638,7037,636,8792],function(){return e(e.s="xRYX")})})}]);