"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9715],{EoPH:function(e,t,a){a.d(t,{B:function(){return b},C:function(){return B},E:function(){return P},F:function(){return A},G:function(){return p},N:function(){return S},S:function(){return f},V:function(){return O},a:function(){return h},c:function(){return I},d:function(){return v},e:function(){return M},f:function(){return R},g:function(){return y},h:function(){return U},i:function(){return N}});var n,r,l,o,i,c,s,u,m,d,E,g,p,b,h,T,_,I,v,S,R,y,O,f,C=a("eosF");(n=p||(p={})).Boy="boy",n.Girl="girl",(r=b||(b={}))[r.Height=0]="Height",r[r.Weight=1]="Weight",r[r.Head=2]="Head",r[r.BMI=3]="BMI",(l=h||(h={}))[l.Weekly=0]="Weekly",l[l.Monthly=1]="Monthly",l[l.Yearly=2]="Yearly",(o=T||(T={}))[o.Height=0]="Height",o[o.Weight=1]="Weight",o[o.Head=2]="Head",o[o.BMI=3]="BMI",o[o.Record=4]="Record",(i=_||(_={}))[i.Phone=0]="Phone",i[i.OTP=1]="OTP",i[i.OTPEmail=2]="OTPEmail",i[i.PersonalInfo=3]="PersonalInfo",i[i.UpdatePassword=4]="UpdatePassword",i[i.Result=5]="Result",i[i.DynamicForm=6]="DynamicForm",(c=I||(I={}))[c.HEAD=0]="HEAD",c[c.TAIL=1]="TAIL",c[c.MIDDLE=2]="MIDDLE",c[c.CONNECT=3]="CONNECT",c[c.SSO=4]="SSO",c[c.MULTIPLE=5]="MULTIPLE",(s=v||(v={}))[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 M=[v.FINAL,v.FINAL_STANDARD,v.FINAL_THANK_YOU];(u=S||(S={})).BOT_TEXT="bot-text",u.BOT_IMAGE="bot-image",u.BOT_BACKGROUND_IMAGE="bot-background-image",u.BOT_BUTTON="bot-button",u.BOT_URL="bot-url",u.BOT_RECALCULATE="bot-recalculate",u.BOT_BOOKING="bot-booking",u.BOT_MAIN_TITLE="bot-main-title",u.BOT_MAIN_IMAGE="bot-main-image",u.BOT_MAIN_BODY="bot-main-body",u.BOT_MAIN_BUTTON="bot-main-button",u.BOT_SUB_TITLE="bot-sub-title",u.BOT_SUB_BODY="bot-sub-body",u.BOT_LANDING_PAGE_URL="bot-landing-page-url",u.BOT_LANDING_PAGE_BUTTON="bot-landing-page-button",u.BOT_RISK_SCREEN="bot-risk-screen",u.BOT_RELATED_ARTICLE="bot-related-article",u.THANK_YOU_IMAGE="thank-you-image",u.THANK_YOU_TITLE="thank-you-title",u.THANK_YOU_BODY="thank-you-body",u.TOTAL_LINE="total-line",u.BOT_SUBMISSION="bot-submission",u.BOT_EVENT_SUBMISSION="bot-event-submission",u.BOT_SUGGESTED_SERVICE="bot-suggested-service",u.SSO_INTENT="sso-intent",(m=R||(R={})).ACTION_CONDITION="action-condition",m.ACTION_INTERNAL="action-internal",m.ACTION_EXTERNAL="action-external",m.ACTION_SSO_REDIRECT="action-sso-redirect",m.ACTION_MULTIPLE_BUTTON="action-multiple-button",m.USER_CHOICE_TEXT="user-choice-text",m.USER_CHOICE_TEXT_BY_INPUT="user-choice-text-by-input",m.USER_CHOICE_NEXT="user-choice-next",m.USER_CHOICE_IMAGE="user-choice-image",m.USER_SUBMIT_TEXT="user-submit-text",m.USER_SUBMIT_NUMBER="user-submit-number",m.USER_SUBMIT_NAME="user-submit-name",m.USER_SUBMIT_PHONE="user-submit-phone",m.USER_SUBMIT_EMAIL="user-submit-email",m.USER_SUBMIT_DROPDOWN="user-submit-dropdown",m.USER_SUBMIT_DATE="user-submit-date",m.USER_SUBMIT_DOB="user-submit-dob",m.USER_SUBMIT_CONFIRM="user-submit-confirm",m.USER_SUBMIT_SEND="user-submit-send",m.USER_SUBMIT_RESEND="user-submit-resend",m.USER_SUBMIT_ADDRESS="user-submit-address",m.USER_SUBMIT_ADDRESS_PROVINCE="user-submit-address-province",m.USER_SUBMIT_ADDRESS_DISTRICT="user-submit-address-district",m.USER_SUBMIT_ADDRESS_COMMUNE="user-submit-address-commune",m.USER_SUBMIT_BMI="user-submit-bmi",m.USER_SUBMIT_BMI_HIDDEN="user-submit-bmi-hidden",m.USER_SUBMIT_TERMS="user-submit-terms",m.USER_SUBMIT_GENDER="user-submit-gender",m.USER_SUBMIT_OTP="user-submit-otp",m.USER_SUBMIT_WHATSAPP="user-submit-whatsapp",m.POLL_CHOICE="poll-choice",m.POLL_CHOICE_TEXT_BY_INPUT="poll-choice-text-by-input",m.POLL_CHOICE_IMAGE="poll-choice-image",m.POLL_BUTTON="poll-button",m.RATING_STAR="rating-star",m.RATING_DESCRIPTION="rating-description",m.RATING_BUTTON="rating-button",m.LIKE_CHOICE="like-choice",m.DISLIKE_CHOICE="dislike-choice",m.REVIEW_CHOICE="review-choice",m.REVIEW_DESCRIPTION="review-description",m.REVIEW_BUTTON="review-button",m.RESULT_BUTTON="result-button",m.POLL_RESULT="poll-result",m.USER_SUBMIT_GOOGLE_API_ADDRESS="user-submit-google-api-address";let A=[R.USER_SUBMIT_ADDRESS_PROVINCE,R.USER_SUBMIT_ADDRESS_DISTRICT,R.USER_SUBMIT_ADDRESS_COMMUNE,R.USER_SUBMIT_ADDRESS];(d=y||(y={}))[d.UNLIMITED=0]="UNLIMITED",d[d.EXACT_NUMBER=1]="EXACT_NUMBER",d[d.RANGE=2]="RANGE";let P={[R.USER_SUBMIT_EMAIL]:"email",[R.USER_SUBMIT_TEXT]:"text",[R.USER_SUBMIT_DROPDOWN]:"text",[R.USER_SUBMIT_NAME]:"name",[R.USER_SUBMIT_NUMBER]:"number",[R.USER_SUBMIT_ADDRESS]:"address",[R.USER_SUBMIT_PHONE]:"tel",[R.USER_SUBMIT_OTP]:"tel",[R.USER_SUBMIT_WHATSAPP]:"tel",[R.USER_SUBMIT_DATE]:"date",[R.USER_SUBMIT_CONFIRM]:"confirm",[R.USER_SUBMIT_SEND]:"submit",[R.USER_SUBMIT_TERMS]:"terms",[R.USER_SUBMIT_ADDRESS_PROVINCE]:"province",[R.USER_SUBMIT_ADDRESS_DISTRICT]:"district",[R.USER_SUBMIT_ADDRESS_COMMUNE]:"commune",[R.USER_SUBMIT_BMI]:"bmi",[R.USER_SUBMIT_GENDER]:"gender",[R.POLL_CHOICE]:"poll",[R.POLL_CHOICE_TEXT_BY_INPUT]:"poll",[R.POLL_CHOICE_IMAGE]:"poll",[R.RATING_STAR]:"rating",[R.RATING_DESCRIPTION]:"text",[R.LIKE_CHOICE]:"like",[R.DISLIKE_CHOICE]:"dislike",[R.REVIEW_CHOICE]:"review",[R.USER_SUBMIT_GOOGLE_API_ADDRESS]:"google-api-address",[R.USER_SUBMIT_DOB]:"dob"},U={FRU:"FRU",survey:"Survey",ristScreener:"risk_screener",voucherAcuvue:"ACUVUE"};(E=O||(O={})).VIDEO="video",E.SHORTS="short",E.PODCAST="podcast",E.LIVESTREAM="live-stream",(g=f||(f={})).Facebook="facebook",g.Zalo="zalo",g.Twitter="twitter",g.WhatsApp="whatsApp",g.Line="line",g.Instagram="instagram",g.LinkedIn="linkedin",g.Youtube="youtube",g.Tiktok="tiktok",g.Telegram="telegram",g.Viber="viber";let B={DD:{id:"common.day",defaultMessage:"Day"},MM:{id:"common.month",defaultMessage:"Month"},YYYY:{id:"common.year",defaultMessage:"Year"}};var N=Object.freeze({__proto__:null,get SocialType(){return f},COMMON_DATE_TRANSLATE_KEY:B,get Gender(){return p},get BabyGrowthChartType(){return b},get BabyGrowthChartDuration(){return h},get BabyGrowthResultTab(){return T},get LOCALE(){return C.L},get OnboardingStep(){return _},get NodePosition(){return I},get NodeType(){return v},NodeFinalTypes:M,get NodeIntentType(){return S},get NodeActionType(){return R},FULL_KEY_ADDRESS:A,get NodeMultipleOptions(){return y},ELEMENT_CONTROL_INPUT_TYPE:P,SubotType:U,get VideoType(){return O}})},rZW3:function(e,t,a){a.d(t,{O:function(){return OvulationForm}});var n,r,l=a("FRPj"),o=a("q1tI"),i=a("/npG"),c=a("mYVa"),s=a("iuhU"),u=a("8vDj"),m=a("cChf"),d=a("ZFu2"),E=a("q78k"),g=a("fdQd"),p=a("u7wK"),b=a("wp0n"),h=a("Gx+P"),T=a("7dxN"),_=a("sxbY"),I=a("Zge2");let AvoidPregnancy=e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,l._)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},n);return t?o.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),o.createElement("path",{d:"M16.5 27.133c1.298 0 2.596-.149 3.868-.447a9.15 9.15 0 0 0 6.818-6.818 16.94 16.94 0 0 0 0-7.736 9.15 9.15 0 0 0-6.818-6.818 16.94 16.94 0 0 0-7.736 0 9.15 9.15 0 0 0-6.818 6.818A17 17 0 0 0 5.367 16a.867.867 0 0 1-1.734 0c0-1.43.165-2.862.494-4.264a10.88 10.88 0 0 1 8.109-8.11 18.7 18.7 0 0 1 8.528 0 10.88 10.88 0 0 1 8.11 8.11 18.7 18.7 0 0 1 0 8.528 10.88 10.88 0 0 1-8.11 8.11 18.7 18.7 0 0 1-4.264.493.867.867 0 0 1 0-1.734",fill:"#3E3F58"}),o.createElement("path",{d:"M12.5 16a4 4 0 1 1 8 0 4 4 0 0 1-8 0",fill:"#fff"}),o.createElement("path",{d:"M11.633 16a4.867 4.867 0 1 1 9.734 0 4.867 4.867 0 0 1-9.734 0m4.867-3.133a3.133 3.133 0 1 0 0 6.266 3.133 3.133 0 0 0 0-6.266m-4 9.8a2.667 2.667 0 1 1-5.333 0 2.667 2.667 0 0 1 5.333 0",fill:"#3E3F58"}),o.createElement("path",{d:"M10.305 22.195c.26.26.26.683 0 .943l-1.91 1.91c-.36.36-.562.847-.562 1.355a3.25 3.25 0 0 1-1.796 2.907l-1.239.62a.667.667 0 1 1-.596-1.193l1.238-.62a1.92 1.92 0 0 0 1.06-1.714c0-.862.342-1.688.952-2.298l1.91-1.91c.26-.26.682-.26.943 0",fill:"#3E3F58"}),o.createElement("path",{d:"M3.874 4.788a1 1 0 0 1 1.414-1.414l23.099 23.098a1 1 0 1 1-1.415 1.415z",fill:"#E85388"})):o.createElement("svg",Object.assign({viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),o.createElement("g",{clipPath:"url(#clip0_1530_7251)"},o.createElement("path",{d:"M8.983 10.87a.23.23 0 0 1 .049-.16c.08-.114.156-.229.207-.36.1-.166.168-.348.233-.528.246-.668.397-1.36.508-2.062.036-.235.076-.471.09-.71.065-.511.101-1.024.095-1.541.004-.015.011-.03.011-.044a13 13 0 0 0-.089-1.62c-.023-.196-.093-.335-.298-.406-.293-.1-.48-.316-.568-.615a2.7 2.7 0 0 0-.217-.566c-.123-.222-.29-.391-.54-.47-.057-.018-.088-.016-.106.052q-.045.165-.073.336c-.005.044 0 .058.048.058q.122.005.244.017c.127.009.21.09.202.196-.011.111-.108.179-.239.166-.065-.007-.133-.009-.198-.016-.058-.008-.077.016-.067.072q.027.165.052.332c.006.043.031.053.07.053.078 0 .147-.03.218-.057.104-.042.2-.004.242.093.04.09.004.187-.093.235-.13.063-.27.113-.411.085a.23.23 0 0 0-.235.077c-.04-.084-.106-.146-.167-.211-.46-.475-.55-1.194-.235-1.82.18-.359.45-.627.828-.776A.4.4 0 0 0 8.69.595c.33-.317.734-.477 1.172-.55.641-.11 1.25-.024 1.819.3.41.233.728.566.942.983.131.253.188.535.246.814.16.762.233 1.538.293 2.313q.108 1.411.213 2.826c.055.712.13 1.422.24 2.128.066.428.175.846.26 1.27.097.479.039.941-.24 1.358a1.2 1.2 0 0 1-.517.428c-.163.05-.327.105-.491.155-.178.052-.302-.059-.268-.239a4.6 4.6 0 0 0 .077-.72 13.6 13.6 0 0 0-.133-2.225c-.03-.196-.055-.395-.087-.591-.07-.43-.151-.857-.257-1.28l-.015-.07a16 16 0 0 0-.282-1.03c-.012-.039-.025-.079-.076-.075-.038.003-.053.034-.058.07l-.146 1.105c-.05.219-.094.437-.158.652a5.5 5.5 0 0 1-.806 1.654l-.091.113c-.308.382-.654.719-1.094.95-.122.06-.177.048-.252-.063",fill:"#1B3250"}),o.createElement("path",{d:"M12.304 9.435c.1.737.154 1.477.133 2.224a4.6 4.6 0 0 1-.077.72c-.034.182.09.293.268.239q.246-.075.491-.155c.053.226.126.448.17.675q.09.452.129.912c.025.302.043.603.032.905q-.015.483-.065.964a14 14 0 0 1-.299 1.707c-.02.086-.045.17-.065.255-.02.09-.068.12-.16.12L8.789 18H7.781c-.111 0-.117-.011-.13-.124a3 3 0 0 0-.361-1.121c-.132-.235-.297-.448-.415-.692a3.14 3.14 0 0 1-.324-1.521c.233.07.418.001.571-.184q.236-.281.477-.559c.07-.08.136-.164.244-.193.315-.087.631-.166.94-.262.665-.207 1.324-.43 1.917-.804.251-.159.475-.344.595-.63.237-.564.415-1.147.592-1.733.085-.28.184-.55.417-.742",fill:"#2D87F3"}),o.createElement("path",{d:"M12.304 9.435c-.233.194-.33.462-.413.74-.177.585-.355 1.169-.592 1.733-.12.286-.344.471-.595.63-.593.375-1.254.597-1.916.804-.312.097-.628.177-.941.262-.11.031-.177.113-.244.193q-.24.277-.477.559c-.153.184-.34.253-.571.184a.87.87 0 0 1-.44-.54.64.64 0 0 1 .045-.503 1 1 0 0 0 .094-.31.47.47 0 0 1 .392-.405c.132-.03.269-.039.404-.053a.4.4 0 0 0 .114-.024c.115-.009.21-.069.31-.12.322-.167.646-.328.966-.497q.586-.308 1.192-.571a.78.78 0 0 0 .473-.524q.09-.305.177-.608c.047-.171.113-.337.14-.514a5.5 5.5 0 0 0 .806-1.654c.064-.215.108-.433.159-.652a.63.63 0 0 1 .342-.054c.08.013.156.036.237.054.105.423.187.85.256 1.28q.039.292.082.59m-4.19-5.947a.23.23 0 0 1 .235-.076c.142.025.282-.022.411-.086.097-.047.133-.143.093-.234-.042-.095-.138-.133-.242-.093-.071.027-.14.056-.218.056-.039 0-.062-.009-.07-.053q-.024-.165-.052-.33-.017-.082.067-.074c.066.008.133.01.198.017.131.013.228-.053.239-.166.01-.105-.073-.187-.202-.196-.082-.006-.162-.015-.244-.017-.046 0-.053-.014-.047-.058.016-.115.043-.224.072-.337.017-.067.05-.069.106-.05.25.078.417.247.54.469.1.178.16.371.217.566.087.298.273.515.568.615.206.07.275.21.298.406.066.539.091 1.08.09 1.62 0 .014-.008.029-.011.043-.272-.016-.525.075-.783.133a1.4 1.4 0 0 1-.513.031.5.5 0 0 1-.433-.36 2.3 2.3 0 0 1-.091-.46c.154-.024.309-.048.451-.124.1-.055.135-.148.09-.242a.18.18 0 0 0-.24-.084 1 1 0 0 1-.376.087 1.3 1.3 0 0 0-.326-.482c-.096-.093-.096-.215-.013-.319.06-.07.126-.134.186-.202",fill:"#FCCAAF"}),o.createElement("path",{d:"M10.069 7.052c-.013.239-.053.473-.09.71-.11.7-.261 1.394-.507 2.062-.066.18-.135.362-.233.528a.46.46 0 0 0-.235-.4c-.328-.21-.544-.508-.599-.898a.86.86 0 0 1 .242-.742c.237-.244.504-.459.761-.683.188-.162.37-.327.555-.493.033-.031.064-.064.106-.084m.349 2.818c-.025.176-.093.341-.14.513-.057.204-.119.404-.177.608a.78.78 0 0 1-.473.524q-.607.261-1.192.571c-.32.17-.646.33-.966.497-.099.051-.195.111-.31.12.066-.15.177-.266.277-.387.273-.334.615-.596.932-.881q.306-.28.611-.565c.077.11.13.124.251.06.439-.229.787-.567 1.094-.95z",fill:"#2D87F3"}),o.createElement("path",{d:"M8.271 4.49a1 1 0 0 0 .377-.088.183.183 0 0 1 .239.084c.047.095.01.187-.09.242-.14.076-.296.1-.45.124z",fill:"#FF6F4D"}),o.createElement("path",{d:"M11.96 7.563c-.079-.018-.157-.041-.237-.054a.65.65 0 0 0-.342.054l.146-1.104c.005-.037.02-.068.058-.071.05-.006.063.034.076.074q.159.511.282 1.03.01.036.017.071",fill:"#2D87F3"}),o.createElement("path",{d:"M9.834 1.004a7.996 7.996 0 1 0 0 15.992 7.996 7.996 0 0 0 0-15.992M9.465 2.26c1.606-.09 3.191.4 4.467 1.378a.282.282 0 0 1 .03.424l-9.066 9.066a.283.283 0 0 1-.424-.03A6.749 6.749 0 0 1 9.465 2.26m.369 13.49a6.72 6.72 0 0 1-4.016-1.325.284.284 0 0 1-.032-.426l9.046-9.047a.283.283 0 0 1 .427.032A6.75 6.75 0 0 1 9.834 15.75",fill:"#F44D2C"}),o.createElement("path",{d:"M10.159 5.509c.005.517 2.997-1.054 2.997-1.054s-.133-1.55-.293-2.313c-.058-.279-.114-.56-.245-.814a2.35 2.35 0 0 0-.943-.983c-.568-.324-1.178-.41-1.818-.3-.44.073-.843.233-1.173.55a.4.4 0 0 1-.147.085c-.379.15-.648.417-.828.776-.315.626-.224 1.345.235 1.82.062.065.127.127.167.21a.23.23 0 0 1 .235-.076c.142.028.282-.022.411-.085.097-.048.133-.144.093-.235-.042-.097-.138-.135-.242-.093-.071.027-.14.057-.218.057-.039 0-.064-.01-.07-.053q-.024-.165-.052-.332c-.01-.056.009-.08.067-.072.066.007.133.009.198.016.131.013.228-.055.239-.166.009-.105-.075-.187-.202-.196h-.007q-.118-.013-.237-.017c-.047 0-.053-.014-.047-.058.016-.114.043-.225.072-.336.019-.068.05-.07.106-.051.25.078.417.247.54.47.099.178.16.37.217.565.087.299.275.515.568.615.206.071.275.21.298.406.066.539.091 1.078.09 1.62z",fill:"#1B3250"}),o.createElement("path",{d:"M8.107 3.488a.23.23 0 0 1 .235-.076c.142.025.282-.022.411-.086.097-.047.133-.143.093-.234-.042-.095-.138-.133-.242-.093-.07.027-.14.056-.218.056-.038 0-.062-.009-.07-.053q-.024-.165-.052-.33-.017-.082.067-.074c.066.008.133.01.199.017.13.013.227-.053.238-.166.01-.105-.073-.187-.202-.196-.082-.006-.162-.015-.244-.017-.045 0-.053-.014-.047-.058.016-.115.043-.224.073-.337.016-.067.049-.069.105-.05.25.078.417.247.54.469.1.178.16.371.217.566.088.298.273.515.568.615.206.07.275.21.298.406.066.539.091 1.08.09 1.62 0 .014-.008.029-.011.043-.271-.016-.524.075-.783.133a1.4 1.4 0 0 1-.513.031.5.5 0 0 1-.433-.36 2.3 2.3 0 0 1-.091-.46c.154-.024.31-.048.451-.124.1-.055.135-.148.09-.242a.18.18 0 0 0-.24-.084 1 1 0 0 1-.376.087 1.3 1.3 0 0 0-.326-.482c-.096-.093-.096-.215-.012-.319.06-.07.125-.134.185-.202",fill:"#FCCAAF"}),o.createElement("path",{d:"M8.265 4.49a1 1 0 0 0 .376-.088.183.183 0 0 1 .239.084c.047.095.01.187-.09.242-.14.076-.296.1-.45.124z",fill:"#FF6F4D"})),o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_1530_7251"},o.createElement("path",{fill:"#fff",d:"M.834 0h18v18h-18z"}))))},TryConceive=e=>{var{isMarryBaby:t,size:a=24}=e,n=(0,l._)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},n);return t?o.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),o.createElement("path",{d:"M14.018 9.155c-1.422 1.066-1.777 1.777-1.067 2.843.57.853 2.133 2.488 3.2 3.554-.712 2.133-6.753 1.422-6.753 1.422l-.711 1.421-1.067 3.199c-1.066 0-3.198.142-3.198.71 0 .712 2.843 2.844 3.554 2.844.569 0 1.658-2.132 2.132-3.199 1.54 1.777 5.474 4.905 8.885 3.199 4.265-2.132 6.398-5.331 5.687-7.819-.274-.959-.284-1.495-.132-1.813a4.62 4.62 0 0 0 3.438-2.3c.715-1.108.78-2.417.397-3.652-.41-1.663-1.15-2.955-2.637-3.252-3.423-.685-6.397 1.016-6.397 4.62a4.6 4.6 0 0 0 .971 2.834c-1.184.316-2.414-.236-6.302-4.611",fill:"#fff"}),o.createElement("path",{d:"M29.3 10.825A5.235 5.235 0 0 0 24.077 5.6c-2.876 0-5.245 2.348-5.245 5.224 0 .36.275.634.634.634.36 0 .635-.275.635-.634 0-2.179 1.776-3.955 3.976-3.955s3.954 1.776 3.954 3.955a3.947 3.947 0 0 1-3.531 3.933.8.8 0 0 0-.381-.021c-.042.021-.085.021-.106.042a.64.64 0 0 0-.57.635c0 .254.147.465.359.57.105.487.148.995.148 1.502a7.175 7.175 0 0 1-7.17 7.17 7.22 7.22 0 0 1-5.773-2.898l-.02-.021c.507-.317 1.902-.17 2.41-.106a.637.637 0 0 0 .698-.57.637.637 0 0 0-.571-.699c-1.184-.148-3.384-.38-3.891 1.164-.064.19-.127.401-.19.592-.318.994-.74 2.347-1.27 2.58-.634.063-2.918-1.587-3.172-2.284.212-.275 1.248-.444 2.623 0 .169.063.36.042.507-.064s.275-.232.296-.423c.571-2.707.74-3.278.74-3.299v-.021c.212-.888.867-.973 2.538-.93 1.523.042 3.384.084 4.674-1.46a7.8 7.8 0 0 0 3.235.994h.043a.643.643 0 0 0 .634-.592c.021-.36-.232-.655-.57-.677-4.4-.36-6.028-4.652-6.091-4.842 0 0 0-.022-.022-.022-.274-.634-.063-1.036.19-1.163.17-.105.445-.105.614.17 1.248 2.008 2.432 3.32 3.574 4.018.021 0 .042.02.042.02.677.34 2.052.762 3.596-.295.296-.19.359-.592.169-.889-.19-.296-.592-.36-.889-.169-.951.635-1.776.487-2.305.233-.93-.571-1.988-1.777-3.108-3.574-.508-.783-1.48-1.036-2.284-.613-.762.401-1.312 1.438-.762 2.77.085.254.93 2.368 2.898 3.934a2.7 2.7 0 0 1-.614.486c-.02 0-.02 0-.042-.021-8.205-2.517-8.86-8.586-8.924-9.77a.61.61 0 0 0-.656-.614.63.63 0 0 0-.592.656c.042 1.226.655 7.084 7.74 10.172h-.508c-1.48-.042-3.34-.085-3.806 1.882-.021.106-.17.677-.613 2.707-1.587-.36-3.194-.127-3.574 1.036-.19.55.126 1.206.972 2.01.571.549 2.263 1.902 3.447 1.902.149 0 .297-.02.423-.063.952-.36 1.438-1.544 1.861-2.813a8.48 8.48 0 0 0 6.324 2.855c4.652 0 8.438-3.785 8.438-8.438 0-.507-.043-1.015-.148-1.522a5.264 5.264 0 0 0 4.23-5.16",fill:"#3E3F58"}),o.createElement("rect",{x:"23.005",y:"8.444",width:"1.942",height:"1.422",rx:".711",transform:"rotate(34.869 23.005 8.444)",fill:"#FB8C00"})):o.createElement("svg",Object.assign({viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),o.createElement("path",{d:"M13.996 8.62v3.221c1.054.035 1.682-.705 1.845-1.467.209-.977-.444-2.041-1.845-1.754",fill:"#FEAA96"}),o.createElement("path",{d:"M14.055 10.67a.21.21 0 0 1-.2-.277c.166-.508.594-.69.92-.644a.21.21 0 1 1-.059.418c-.163-.023-.37.079-.461.358a.21.21 0 0 1-.2.145",fill:"#FF886C"}),o.createElement("path",{d:"M2.16 10.374c.162.762.79 1.502 1.844 1.467V8.62c-1.4-.287-2.054.777-1.845 1.754",fill:"#FEAA96"}),o.createElement("path",{d:"M3.98 10.67a.21.21 0 0 1-.2-.145c-.093-.28-.299-.381-.462-.358a.21.21 0 0 1-.21-.102.21.21 0 0 1 .152-.316c.326-.046.753.136.92.644a.21.21 0 0 1-.2.277",fill:"#FF886C"}),o.createElement("path",{d:"M9 15.831c1.325 0 3.365-.561 4.534-2.292 1.057-1.563.436-4.144.462-5.169.053-2.079-1.447-4.78-4.996-4.78s-5.05 2.7-4.996 4.78c.026 1.025-.595 3.606.461 5.169 1.17 1.73 3.21 2.292 4.535 2.292",fill:"#FECCBF"}),o.createElement("path",{d:"M6.881 10.535a.56.56 0 1 0 0-1.121.56.56 0 0 0 0 1.121",fill:"#A35961"}),o.createElement("path",{d:"M7.114 9.777a.21.21 0 0 1-.188-.116c-.049-.097-.205-.122-.27-.129-.225-.022-.44.056-.477.104a.211.211 0 1 1-.347-.241c.149-.215.53-.306.831-.285.306.021.533.15.64.362a.21.21 0 0 1-.189.305",fill:"#8C2F39"}),o.createElement("path",{d:"M11.119 10.535a.56.56 0 1 0 0-1.121.56.56 0 0 0 0 1.121",fill:"#A35961"}),o.createElement("path",{d:"M9 13.329c.777 0 .994-.61 1.046-.92.031-.185-.132-.35-.34-.35H8.293c-.208 0-.371.165-.34.35.052.31.27.92 1.047.92",fill:"#D84023"}),o.createElement("path",{d:"M10.763 7.94a.2.2 0 0 1-.107-.03.33.33 0 0 0-.18-.029.21.21 0 1 1-.07-.416.74.74 0 0 1 .464.081.211.211 0 0 1-.107.393m-3.526 0a.21.21 0 0 1-.107-.393.74.74 0 0 1 .463-.08.211.211 0 1 1-.07.415.3.3 0 0 0-.18.029.2.2 0 0 1-.106.029",fill:"#FEAA96"}),o.createElement("path",{d:"M10.887 9.777a.21.21 0 0 1-.189-.305c.107-.212.334-.34.64-.362.3-.021.682.07.83.285a.211.211 0 0 1-.346.24c-.038-.048-.252-.125-.477-.103-.065.007-.221.032-.27.129a.21.21 0 0 1-.188.116",fill:"#8C2F39"}),o.createElement("path",{d:"M9.284 11.02a.21.21 0 0 1-.22-.15.07.07 0 0 0-.063-.05H9a.07.07 0 0 0-.064.05.21.21 0 0 1-.22.15.22.22 0 0 1-.192-.244c.018-.221.213-.379.476-.379.264 0 .458.158.476.38a.22.22 0 0 1-.192.244",fill:"#FEAA96"}),o.createElement("path",{d:"M9.55 12.06h-1.1l-.003.054a.552.552 0 1 0 1.102-.055m2.041-.774-.29.53a.1.1 0 0 1-.041.04l-.53.29a.1.1 0 0 0-.053.09.1.1 0 0 0 .053.09l.53.29q.026.015.04.04l.29.53a.103.103 0 0 0 .18 0l.29-.53a.1.1 0 0 1 .041-.04l.53-.29a.103.103 0 0 0 0-.18l-.53-.29a.1.1 0 0 1-.04-.04l-.29-.53a.1.1 0 0 0-.143-.039.1.1 0 0 0-.038.04",fill:"#fff"}),o.createElement("path",{d:"M11.055 2.193c-.147-.422-.524-.698-1.01-.738a.9.9 0 0 0-.535.154c-.206.155-.37.358-.478.592a.036.036 0 0 1-.066 0 1.55 1.55 0 0 0-.475-.592.9.9 0 0 0-.537-.154c-.485.04-.862.316-1.008.739a1.03 1.03 0 0 0 .259 1.09c.479.447 1.156.518 1.543.518h.502c.387 0 1.066-.07 1.545-.517a1.03 1.03 0 0 0 .26-1.092M8.79 3.243a.13.13 0 0 1-.134.135c-.316-.012-.821-.084-1.163-.402a.61.61 0 0 1-.148-.644.66.66 0 0 1 .438-.417c.242-.078.404-.006.456.033.446.33.539.932.551 1.295m1.718-.267c-.342.319-.847.39-1.163.402a.13.13 0 0 1-.135-.135c.013-.362.105-.964.551-1.295a.47.47 0 0 1 .25-.073c.318.027.554.193.645.457a.61.61 0 0 1-.149.644",fill:"#2D87F3"}),o.createElement("path",{d:"M8.998 3.338a.21.21 0 0 1 .122.383l-.04.028c-.16.118-.957.76-.991 1.758-.027.78.403 1.132.814 1.202.367.062.831-.096.985-.59a.415.415 0 0 0-.211-.52c-.136-.069-.32-.076-.425.064a.211.211 0 0 1-.337-.253c.215-.287.607-.363.954-.186a.836.836 0 0 1 .422 1.02 1.28 1.28 0 0 1-1.458.88c-.56-.095-1.202-.58-1.166-1.631.046-1.334 1.17-2.093 1.222-2.125a.2.2 0 0 1 .109-.03",fill:"#BA8288"}))},v=(0,o.createContext)({});var S=(0,i.k)(e=>({inputRightSection:{fontSize:(0,c.h)(13),lineHeight:(0,c.h)(24),color:e.colors.gray[4],justifyContent:"flex-end",paddingRight:8}}));let DefaultLayout=e=>{var t=(0,l._)(e,[]);let{t:a}=(0,h.u)(),{currentUrl:n,submitProps:r,form:i,calculatingMethods:c,isMobile:u}=(0,o.useContext)(v),{classes:m={}}=(0,o.useContext)(T.C),{classes:d}=S(void 0,{name:"OvulationTool__DefaultLayout"});return o.createElement(_.H,Object.assign({formLayout:"default"},t),o.createElement(_.H.FormRow,null,o.createElement(_.H.Control,null,o.createElement(_.H.ChipGroup,Object.assign({data:c,label:a("dueDatePage.calculationMethod"),isMobile:u},i.getInputProps("calculatorType"))))),o.createElement(_.H.FormRow,null,o.createElement(p.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},label:o.createElement(b.T,{size:"p2",weight:"semiBold"},` (${a("dueDatePage.lastPeriod.lastPeriodLabel")})`),maxDate:new Date},i.getInputProps("lastPeriodDate")))),o.createElement(_.H.FormRow,null,o.createElement(g.I.Number,Object.assign({label:o.createElement(b.T,{size:"p2",weight:"semiBold"},a("ovulationPage.cycleLength")),rightSection:a("ovulationPage.dayUnit"),min:21,max:45,defaultValue:1},i.getInputProps("cycleLength"),{classNames:{rightSection:d.inputRightSection}}))),o.createElement(_.H.FormRow,null,o.createElement(g.I.Number,Object.assign({label:o.createElement(b.T,{size:"p2",weight:"semiBold"},a("ovulationPage.periodDuration")),rightSection:a("ovulationPage.dayUnit"),min:1,max:15,defaultValue:1},i.getInputProps("periodLength"),{classNames:{rightSection:d.inputRightSection}}))),o.createElement(_.H.FormRow,{className:m.submitWrapper},o.createElement(_.H.Submit,Object.assign({type:"submit",className:(0,s.default)("due-date-calculate-button",m.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},r),a("dueDatePage.lastPeriod.calculate"))))},InlineLayout=e=>{var t=(0,l._)(e,[]);let{t:a}=(0,h.u)(),{currentUrl:n,submitProps:r,form:i,calculatingMethods:c}=(0,o.useContext)(v),{classes:u={}}=(0,o.useContext)(T.C);return o.createElement(_.H,Object.assign({formLayout:"inline"},t),o.createElement(_.H.FormRow,null,o.createElement(_.H.BorderInlineControl,{label:a("dueDatePage.calculationMethod"),direction:"column",width:"100%"},o.createElement(_.H.ChipGroup,Object.assign({data:c},i.getInputProps("calculatorType"))))),o.createElement(_.H.FormRow,null,o.createElement(_.H.BorderInlineControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel")},o.createElement(p.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date},i.getInputProps("lastPeriodDate"))))),o.createElement(_.H.FormRow,null,o.createElement(_.H.BorderInlineControl,{label:a("ovulationPage.cycleLength")+" "+a("ovulationPage.dayUnit")},o.createElement(g.I.Number,Object.assign({min:21,max:45,defaultValue:1},i.getInputProps("cycleLength"),{error:null}))),i.errors.cycleLength&&o.createElement(_.H.Error,null,i.errors.cycleLength)),o.createElement(_.H.FormRow,null,o.createElement(_.H.BorderInlineControl,{label:a("ovulationPage.periodDuration")+" "+a("ovulationPage.dayUnit")},o.createElement(g.I.Number,Object.assign({min:1,max:15,defaultValue:1},i.getInputProps("periodLength"),{error:null}))),i.errors.periodLength&&o.createElement(_.H.Error,null,i.errors.periodLength)),o.createElement(_.H.FormRow,{className:u.submitWrapper},o.createElement(_.H.Submit,Object.assign({type:"submit",className:(0,s.default)("due-date-calculate-button",u.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},r),a("dueDatePage.lastPeriod.calculate"))))},MbLayout=e=>{var t=(0,l._)(e,[]);let{t:a}=(0,h.u)(),{currentUrl:n,submitProps:r,form:i,calculatingMethods:c}=(0,o.useContext)(v);return o.createElement(_.H,Object.assign({formLayout:"inline"},t),o.createElement(_.H.Control,null,o.createElement(g.I.Wrapper,{label:o.createElement(b.T,{size:"p4",sx:{fontWeight:"normal"}},a("dueDatePage.calculationMethod"))},o.createElement(_.H.ChipGroup,Object.assign({data:c},i.getInputProps("calculatorType"))))),o.createElement(_.H.BorderBoxControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:o.createElement(I.Z,null)},o.createElement(p.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date,rightSection:null},i.getInputProps("lastPeriodDate")))),o.createElement(_.H.BorderBoxControl,{label:a("ovulationPage.cycleLength"),rightSection:a("ovulationPage.dayUnit")},o.createElement(g.I.Number,Object.assign({min:21,max:45,defaultValue:1},i.getInputProps("cycleLength")))),i.errors.cycleLength&&o.createElement(_.H.Error,null,i.errors.cycleLength),o.createElement(_.H.BorderBoxControl,{label:a("ovulationPage.periodDuration"),rightSection:a("ovulationPage.dayUnit")},o.createElement(g.I.Number,Object.assign({min:1,max:15,defaultValue:1},i.getInputProps("periodLength")))),i.errors.periodLength&&o.createElement(_.H.Error,null,i.errors.periodLength),o.createElement(_.H.Submit,Object.assign({type:"submit",className:"due-date-calculate-button",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:n},r),a("dueDatePage.lastPeriod.calculate")))};(n=r||(r={}))[n.trackPeriod=0]="trackPeriod",n[n.conceive=1]="conceive",n[n.avoidPregnancy=2]="avoidPregnancy";let OvulationForm=e=>{var{formLayout:t="default",submitProps:a,currentUrl:n,isMobile:i,onSubmit:c}=e,s=(0,l._)(e,["formLayout","submitProps","currentUrl","isMobile","onSubmit"]);let g=(0,u.rZ)(),{t:p}=(0,h.u)(),b="mb"===g.other.template,T=(0,m.c)({initialValues:{calculatorType:String(r.trackPeriod),periodLength:7,cycleLength:28,lastPeriodDate:new Date},validate:{periodLength:(0,d.U)(p("validation.error.requiredField")),cycleLength:(0,d.U)(p("validation.error.requiredField"))}}),_=Object.assign({onSubmit:T.onSubmit(c)},s),I=[{label:p("ovulationPage.trackPeriod"),value:r.trackPeriod,icon:o.createElement(E.L,null)},{label:p("ovulationPage.conceive"),value:r.conceive,icon:o.createElement(TryConceive,null)},{label:p("ovulationPage.avoidPregnancy"),value:r.avoidPregnancy,icon:o.createElement(AvoidPregnancy,null)}];return o.createElement(v.Provider,{value:{submitProps:a,currentUrl:n,form:T,isMobile:i,calculatingMethods:I}},"inline"===t?o.createElement(InlineLayout,Object.assign({},_)):b?o.createElement(MbLayout,Object.assign({formLayout:t},_)):o.createElement(DefaultLayout,Object.assign({},_)))}},icHx:function(e,t,a){a.d(t,{B:function(){return BlueWhiteLogin},N:function(){return NavigationProfileButton},U:function(){return UserPlain},a:function(){return y},b:function(){return NavigationProvider},u:function(){return useCSSFocusPopupHelper}});var n=a("FRPj"),r=a("q1tI"),l=a("Eq4O"),o=a("cBU0"),i=a("fdQd"),c=a("8wjV"),s=a("wp0n"),u=a("Gx+P"),m=a("nGnw"),d=a("iBNF"),E=a("rBCA"),g=a("uuQu"),p=a("gEnE"),b=a("xXM3"),h=a.n(b),T=a("LL/B"),_=a("VhOp"),I=a("n/N3"),v=a("xrdX"),S=a("QHxc"),R=a("hPj0");let BlueWhiteLogin=e=>r.createElement("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("rect",{y:"0.5",width:"31",height:"31",rx:"15.5",fill:"white"}),r.createElement("path",{d:"M15.4999 14.3797C16.9062 14.3797 18.0462 13.2397 18.0462 11.8334C18.0462 10.4271 16.9062 9.28711 15.4999 9.28711C14.0936 9.28711 12.9536 10.4271 12.9536 11.8334C12.9536 13.2397 14.0936 14.3797 15.4999 14.3797Z",stroke:"#2743AD",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M19.9092 22.0335C20.7055 21.7825 21.124 20.9029 20.786 20.1399C19.8879 18.1112 17.861 16.6946 15.4999 16.6946C13.1388 16.6946 11.112 18.1112 10.2138 20.1399C9.87585 20.9038 10.2944 21.7825 11.0907 22.0335C12.2249 22.3909 13.7258 22.7131 15.4999 22.7131C17.274 22.7131 18.7749 22.3909 19.9092 22.0335Z",stroke:"#2743AD",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),UserPlain=e=>r.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M9.99991 8.3797C11.4062 8.3797 12.5462 7.23969 12.5462 5.83341C12.5462 4.42712 11.4062 3.28711 9.99991 3.28711C8.59363 3.28711 7.45361 4.42712 7.45361 5.83341C7.45361 7.23969 8.59363 8.3797 9.99991 8.3797Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M14.4092 16.0335C15.2055 15.7825 15.624 14.9029 15.286 14.1399C14.3879 12.1112 12.361 10.6946 9.99992 10.6946C7.63881 10.6946 5.61196 12.1112 4.71381 14.1399C4.37585 14.9038 4.79436 15.7825 5.59066 16.0335C6.72492 16.3909 8.22584 16.7131 9.99992 16.7131C11.774 16.7131 13.2749 16.3909 14.4092 16.0335Z",stroke:"white",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),useNavConfig=({locale:e,projectType:t,siteType:a,enableBookingBtn:n})=>{let l=(0,r.useMemo)(()=>{let r="discover"===t||"together"===t||"marryBaby"===t||"profile"===t&&"marryBaby"===a,l="marryBaby"!==a&&"marryBaby"!==t&&T.C.includes(e),o=n&&"marryBaby"!==t&&"discover"===t&&"marryBaby"!==a&&T.d.includes(e),i="marryBaby"===t||T.c.includes(e),c="marryBaby"!==a&&T.E.includes(e),s="marryBaby"!==a&&T.E.includes(e),u=T.V.includes(e),m=T.H.includes(e),d=(0,I.g)(e,"marryBaby"===a),E=d;"undefined"!=typeof window&&(E.includes("//id.")&&(E=E.replace("id.","")),E.includes("//staging-id.")&&(E=E.replace("staging-id.","discover.")));let g=(0,I.a)(e,"marryBaby"===a),p={HOME_PAGE_URL:E,CARE_URL_FE:`${E}/care`,TOGETHER_URL_FE:`${E}/community`,VIDEO_URL_FE:`${E}/videos`,SSO_URL:g,TOGETHER_API:(0,I.b)(),DISCOVER_API:(0,I.c)(e)};return{enableSearchBar:r,enableNavCare:l,enableNavCareBooking:o,enableNavTogether:i,enableNavEcom:c,enableProfileEcom:s,enableNavVideo:u,enableProfileMyHealth:!0,enableNavDiscover:!0,enableNavHealthTools:!0,enableProfileMySaved:!0,statics:p,enableNavClinityDownload:m}},[]);return l},y=r.createContext({}),NavigationProvider=e=>{var{children:t}=e,a=(0,n._)(e,["children"]);let[l,o]=r.useState(()=>a.currentUrl||`https://${"marryBaby"===a.siteType?_.d[a.locale||"en-PH"]:v.v[a.locale||"en-PH"]}${"together"===a.projectType?"/community":"ecom"===a.projectType?"/ecom":"care"===a.projectType?"/care":""}/`);(0,r.useEffect)(()=>{let update=()=>{o(window.location.href)};return window.addEventListener("popstate",update),update(),()=>{window.removeEventListener("popstate",update)}},[]);let i=useNavConfig({locale:a.locale,projectType:a.projectType,siteType:a.siteType,enableBookingBtn:a.enableBookingBtn});return r.createElement(y.Provider,{value:Object.assign(Object.assign({},a),{customClasses:a.customClasses||{},configs:Object.assign(Object.assign({},i),a.configs),currentUrl:a.currentUrl||l})},t)},useCSSFocusPopupHelper=e=>{let{allowBgScroll:t}=e||{},a=(0,r.useRef)();return{containerRef:a,onContainerFocus:()=>{t||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{t||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},O=(0,p.Z)(E.Z.div` position: absolute; right: 0; transition: all 0.5s ease-in-out; overflow-y: auto; &[data-open='true'] { z-index: 200; top: 120%; opacity: 1; visibility: visible; } &[data-open='false'] { display: none; } .popup-content { z-index: 111; height: 100%; border: 1px solid #0000001a; border-radius: 16px; border-top-left-radius: 0; border-top-right-radius: 0; } /* min-height: 415px; */ ${g.M.mbUp} { width: 320px; } ${g.M.mbDown} { position: fixed; left: 0; width: 100%; padding-bottom: 70px; } `,"hhgcomp-navprofilebutton-popup"),f=(0,p.Z)(E.Z.div` position: fixed; z-index: 150; top: var(--header-bottom, 56px); left: 0; width: 100%; height: 100%; align-items: center; ${g.M.mbUp} { background-color: transparent; &[data-type='welcome'] { background: rgba(38, 38, 38, 0.3); } &[data-type='due-date'] { background: rgba(38, 38, 38, 0.3); } } ${g.M.mbDown} { background: rgba(38, 38, 38, 0.3); } &[data-type='welcome'] { top: 0; } &[data-open='false'] { display: none; } `,"hhgcomp-navprofilebutton-popupwrapper"),C=E.Z.div` width: 36px; height: 36px; cursor: pointer; img { border-radius: 50%; } .avatar { width: 36px; height: 36px; object-fit: cover; } .avatar-default { display: flex; align-items: center; justify-content: center; background-color: ${d.r.colors.secondaryBase}; border-radius: 50%; color: white; font-size: 20px; font-weight: bold; } `,M=E.Z.div` display: inline-flex; position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; cursor: pointer; .user-close-icon { display: none; } &:focus-within { .user-close-icon { display: block; } .user-avatar { display: none; } ${O.classSelector} { z-index: 200; top: 120%; opacity: 1; visibility: visible; display: initial; ${g.M.mbDown} { top: 100%; } } ${f.classSelector} { display: initial; } } `,A=E.Z.a` display: inline-flex; .login-btn[data-color='tertiary'][data-size='md'] { padding-left: 12px; padding-right: 12px; } .mobile-only { ${g.M.mbUp} { display: none; } } .login-btn { display: none; ${g.M.mbUp} { display: block; border: 1px solid ${d.r.colors.neutral100}; } } &[data-win-cash-back-theme='true'] { .login-btn { ${g.M.mbUp} { color: ${d.r.colors.white}; } } } `,ProfilePopup=({isOpen:e,userInfo:t,closePopup:a,siteType:n="helloSites",dispatchLogout:l})=>{let{customClasses:o={},configs:{enableProfileFindMyBooking:i}}=(0,r.useContext)(y);return r.createElement(O,{className:o.profilePopup,"data-open":e},r.createElement("div",{className:h()("popup-content",o.profilePopupContent)},r.createElement(S.l,{siteType:n,onLogout:()=>{l&&(l(),a())},userInfo:t,configs:{enableProfileFindMyBooking:i}})))},NavigationProfileButton=({userInfo:e,siteType:t,onLoginClick:a,currentUrl:E,isMinifyLogin:g,onLogout:p,style:b,isLoading:h,isMobile:T,className:_})=>{let{isWinCashBackTheme:I}=(0,r.useContext)(y),{t:v}=(0,u.u)(),[S,O]=(0,r.useState)(!1),f=(null==e?void 0:e.name)||(null==e?void 0:e.username),{containerRef:P,onContainerFocus:U,onContainerBlur:B,onButtonMouseDown:N,onClose:L}=useCSSFocusPopupHelper(),D=(0,r.useMemo)(()=>T&&"helloSites"===t,[T]);return h?D?r.createElement(o.S,null):r.createElement(c.B,{size:"sm",color:"transparent",loading:!0}):(null==e?void 0:e.id)?r.createElement(r.Fragment,null,r.createElement(M,{ref:P,style:b,tabIndex:0,onBlur:B,onFocus:()=>{var e;U();let t=null===(e=P.current)||void 0===e?void 0:e.querySelector("#navigation-v2 .hhgcomp-navprofilebutton-popup");if(t){let e=t.getBoundingClientRect(),a=e.top,n=`calc(100vh - ${a}px)`;t.setAttribute("style",`max-height: ${n};`)}},className:_},r.createElement("div",{onMouseDown:N},r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"user-close-icon"},r.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),r.createElement(i.A,{size:32,className:"user-avatar",src:null==e?void 0:e.avatar,color:"marryBaby"===t?d.r.mbColors.pink:d.r.colors.secondaryBase,placeholderText:f&&f.length?f[0].toUpperCase():"A"})),r.createElement(ProfilePopup,{dispatchLogout:()=>{L(),O(!0)},isOpen:!1,closePopup:L,siteType:t,userInfo:e})),r.createElement(R.F,{openLogoutPopup:S,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),O(!1)},siteType:t,onLogoutHandler:()=>(0,n.a)(void 0,void 0,void 0,function*(){O(!1),document.body.classList.toggle("noscroll",!1),yield p()})})):r.createElement(A,{style:Object.assign({textDecoration:"none"},b),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":E,"data-win-cash-back-theme":I,"data-site-type":t,onClick:a},g?r.createElement(C,null,r.createElement("img",{src:m.C.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):r.createElement(r.Fragment,null,"helloSites"===t&&(D?I?r.createElement(BlueWhiteLogin,{className:"mobile-only",style:{cursor:"pointer"}}):r.createElement("img",{className:"mobile-only",src:m.C.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24}}):r.createElement(c.B,{className:"mobile-only",size:"sm",leftIcon:r.createElement(l.Z,{color:"currentColor",isSolid:!0,size:22}),sx:{paddingLeft:"8px",paddingRight:"12px"},styles:{leftIcon:{marginRight:4}}},v("navigation.loginJoin"))),"marryBaby"===t&&r.createElement("div",{className:"mobile-only",style:{paddingLeft:16}},r.createElement(s.T,{size:"p3",color:d.r.mbColors.pink},v("navigation.loginJoin"))),"marryBaby"===t?r.createElement(c.B,{className:"login-btn",size:"md",leftIcon:r.createElement(l.Z,{color:"currentColor",isSolid:!0,size:22})},v("navigation.loginJoin")):r.createElement(c.B,{className:"login-btn",size:"md",leftIcon:I?r.createElement(UserPlain,null):r.createElement(l.Z,{color:"#595959",isSolid:!0,size:22}),variant:"ghost",color:"#262626"},v("navigation.loginJoin"))))}},bjYh:function(e,t,a){a.d(t,{T:function(){return ThrForm}});var n=a("FRPj"),r=a("q1tI"),l=a("cChf"),o=a("ZFu2"),i=a("1HUI"),c=a("Gx+P"),s=a("nGnw"),u=a("Aqof"),m=a("r0pl"),d=a("fdQd"),E=a("u7wK"),g=a("wp0n"),p=a("7dxN"),b=a("sxbY"),h=a("xrdX");let T=(0,r.createContext)({}),DefaultForm=e=>{var t,a=(0,n._)(e,[]);let{t:l,locale:o}=(0,c.u)(),{isAdult:i,activeValueNote:s,linkTool:u,form:_,submitProps:I}=(0,r.useContext)(T),{classes:v={}}=(0,r.useContext)(p.C);return r.createElement(b.H,Object.assign({formLayout:"default"},a),r.createElement(b.H.FormRow,null,r.createElement(m.G,Object.assign({},_.getInputProps("gender")))),r.createElement(b.H.FormRow,null,r.createElement(E.D,Object.assign({},_.getInputProps("age"),{placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},label:r.createElement(g.T,{size:"p2",weight:"semiBold"},l("targetHeartRate.ageInput")),maxDate:new Date}))),r.createElement(b.H.FormRow,null,r.createElement(d.I.Number,Object.assign({label:r.createElement(g.T,{size:"p2",weight:"semiBold"},l("targetHeartRate.heartRateInput")),placeholder:l("tools.inputPlaceholder",{content:"60"})},_.getInputProps("heartRate"),{min:40,max:200,styles:()=>({rightSection:{width:"auto"}})}))),i&&r.createElement(b.H.FormRow,null,r.createElement(d.S,Object.assign({label:r.createElement(g.T,{size:"p2",weight:"semiBold"},l("targetHeartRate.selectActive")),defaultValue:null===(t=null==s?void 0:s[0])||void 0===t?void 0:t.value,data:s.map(e=>({value:e.value,label:e.label})),styles:{item:{whiteSpace:"nowrap",padding:"10px 12px",fontSize:"14px"}},withinPortal:!0},_.getInputProps("activeValue")))),r.createElement(b.H.FormRow,{className:v.submitWrapper},r.createElement(b.H.Submit,Object.assign({className:v.submitBtn,type:"submit",dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${h.v[o]}/${u}`},I),l("bmi.submit"))))},InlineForm=e=>{var t,a=(0,n._)(e,[]);let{t:l,locale:o}=(0,c.u)(),{isAdult:i,activeValueNote:s,linkTool:u,form:g,submitProps:_}=(0,r.useContext)(T),{classes:I={}}=(0,r.useContext)(p.C);return r.createElement(b.H,Object.assign({formLayout:"inline"},a),r.createElement(b.H.FormRow,null,r.createElement(b.H.BorderInlineControl,{label:l("tools.selectGender"),width:"none"},r.createElement(m.G,Object.assign({type:"radio",hideLabel:!0,error:null},g.getInputProps("gender")))),g.errors.gender&&r.createElement(b.H.Error,null,g.errors.gender)),r.createElement(b.H.FormRow,null,r.createElement(b.H.BorderInlineControl,{label:l("targetHeartRate.ageInput")},r.createElement(E.D,Object.assign({},g.getInputProps("age"),{placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},error:null,maxDate:new Date}))),g.errors.age&&r.createElement(b.H.Error,null,g.errors.age)),r.createElement(b.H.FormRow,null,r.createElement(b.H.BorderInlineControl,{label:l("targetHeartRate.heartRateInput")},r.createElement(d.I.Number,Object.assign({placeholder:l("tools.inputPlaceholder",{content:"60"})},g.getInputProps("heartRate"),{error:null,min:40,max:200,rightSection:r.createElement(b.H.Unit,null,"bmp"),styles:()=>({rightSection:{width:"auto"}})}))),g.errors.heartRate&&r.createElement(b.H.Error,null,g.errors.heartRate)),i&&r.createElement(b.H.FormRow,null,r.createElement(b.H.BorderInlineControl,{label:l("targetHeartRate.selectActive")},r.createElement(d.S,Object.assign({defaultValue:null===(t=null==s?void 0:s[0])||void 0===t?void 0:t.value,data:s.map(e=>({value:e.value,label:e.label})),styles:{item:{whiteSpace:"nowrap",padding:"10px 12px",fontSize:"14px"}},withinPortal:!0},g.getInputProps("activeValue"))))),r.createElement(b.H.FormRow,{className:I.submitWrapper},r.createElement(b.H.Submit,Object.assign({className:I.submitBtn,type:"submit",dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${h.v[o]}/${u}`},_),l("bmi.submit"))))},ThrForm=e=>{var{formLayout:t,onSubmit:a,onError:m,submitProps:d}=e,E=(0,n._)(e,["formLayout","onSubmit","onError","submitProps"]);let{t:g,locale:p}=(0,c.u)(),b=(0,r.useRef)(40),{getHealthToolLink:h}=(0,i.u)(p),_=(0,l.c)({initialValues:{heartRate:60,activeValue:"low_intensity"},validate:{gender:(0,o.U)(g("validation.error.requiredField")),age:(0,o.U)(g("validation.error.requiredField")),heartRate:e=>Number(e)>=b.current&&200>=Number(e)?null:g("tools.heartRateRangeErr",{min:b.current,max:200})}}),I=(0,r.useMemo)(()=>h(u.H.THR),[h]),[v,S]=(0,r.useState)(!1),R=[{idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40},{idAge:1,minAge:18,maxAge:25,rangeMale:49,rangeFemale:54},{idAge:2,minAge:25,maxAge:35,rangeMale:49,rangeFemale:54},{idAge:3,minAge:35,maxAge:45,rangeMale:50,rangeFemale:54},{idAge:4,minAge:45,maxAge:55,rangeMale:50,rangeFemale:54},{idAge:5,minAge:55,maxAge:65,rangeMale:51,rangeFemale:54},{idAge:6,minAge:65,maxAge:120,rangeMale:50,rangeFemale:54}],y=[{value:"low_intensity",label:g("targetHeartRate.lowIntensity.title"),image:s.C.getAssetPath("/low.svg"),imageActive:s.C.getAssetPath("/low-active.svg"),content:g("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:g("targetHeartRate.moderateIntensity.title"),image:s.C.getAssetPath("/moderate.svg"),imageActive:s.C.getAssetPath("/moderate-active.svg"),content:g("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:g("targetHeartRate.aerobicZone.title"),image:s.C.getAssetPath("/aerobic.svg"),imageActive:s.C.getAssetPath("/aerobic-active.svg"),content:g("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:g("targetHeartRate.vigorousIntensity.title"),image:s.C.getAssetPath("/vigorous.svg"),imageActive:s.C.getAssetPath("/vigorous-active.svg"),content:g("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:g("targetHeartRate.maximumIntensity.title"),image:s.C.getAssetPath("/maximum.svg"),imageActive:s.C.getAssetPath("/maximum-active.svg"),content:g("targetHeartRate.maximumIntensity.note")}];(0,r.useEffect)(()=>{let e=_.getInputProps("age").value,t=_.getInputProps("gender").value;if(e instanceof Date){let a=(new Date().getTime()-e.getTime())/1e3;a>=567648e3?S(!0):S(!1);let n=R.find(e=>a>=31536e3*e.minAge&&a<31536e3*e.maxAge)||R[0];b.current="male"===t?n.rangeMale:n.rangeFemale}},[_]);let O=Object.assign(Object.assign({},E),{onSubmit:_.onSubmit(a,m)});return r.createElement(T.Provider,{value:{isAdult:v,activeValueNote:y,linkTool:I,form:_,submitProps:d}},"inline"===t?r.createElement(InlineForm,Object.assign({},O)):r.createElement(DefaultForm,Object.assign({},O)))}}}]);