"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4125],{mtmQ:function(e,t,a){a.d(t,{I:function(){return Indicator}});var l=a("mHfz"),r=a("q1tI"),n=a("QJsO"),o=a("iBNF");let Indicator=e=>{var{styles:t,color:a=o.r.colors.red700}=e,i=(0,l._)(e,["styles","color"]);return r.createElement(n.z,Object.assign({inline:!0,position:"top-end",offset:4,styles:Object.assign({processing:{animationDirection:"alternate"}},t),color:a},i))}},K478:function(e,t,a){a.d(t,{B:function(){return BookingSearchBarV3},T:function(){return TextDivider}});var l,r,n,o,i=a("q1tI"),c=a("6mQP"),s=a("0D4Z"),d=a("iuhU"),u=a("Eso5"),p=a("aDCK"),h=a("mYVa"),m=a("vaps"),g=a("8vDj"),b=a("OAL+"),f=a("SPK5"),C=a("TIp3"),E=a("CmzK"),y=a("NEaA"),x=a("rlLN"),v=a("Iblh"),w=a("+QmK"),S=a("12AD"),P=a("GXD3"),D=a("sEfC"),L=a.n(D),I=a("zN3i"),k=a("rBCA"),F=a("iBNF"),M=a("HkQG"),O=a("sdp3"),j=a("HKYo"),$=a("l1rA"),H=a("mHfz"),B=a("A24R"),_=a("hI2/"),R=a("d5Ap"),N=a("OFra");let T=k.Z.div``,z=k.Z.div` background-color: ${F.r.colors.neutral50}; padding-bottom: 1px; ${M.M.mbDown} { padding: 0; } `,A=(0,k.Z)(O.C)` padding: 0 16px; ${M.M.mbDown} { padding: 0; } `,Z=k.Z.div` padding: 24px 56px; border-radius: 16px; background-color: ${F.r.colors.white}; box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.04), 0px 0px 2px 0px rgba(0, 0, 0, 0.06), 0px 4px 8px 0px rgba(0, 0, 0, 0.04); ${M.M.mbDown} { padding: 16px; border-radius: 0; } .flex-search-input { flex-direction: row; ${M.M.mbDown} { flex-direction: column; } } `,q={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2,"th-TH":2},V={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",focusedSpecialty:"none",searchLocationKeywords:"",searchSpecialtyKeywords:"",searchKeywords:"",selectedLocation:null,selectedSpecialty:null,defaultCity:null,initialCities:[],cities:[],searchResults:{},initialSearchResults:{},isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN",allSpecialties:[],popularKeys:[]};function resetSearchLocationKeywords(e){let{selectedLocation:t,searchLocationKeywords:a}=e;return t&&a!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function reducer(e,t){var a,l;switch(e.isDebug&&console.log("bookingSearchBarV3",{action:t,state:e}),t.type){case n.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case n.ClickOutsideInputLocation:if("location"!==e.focused)return e;return resetSearchLocationKeywords(Object.assign(Object.assign({},e),{focused:"none"}));case n.ClickOutsideInputSpecialty:if("specialty"!==e.focused)return e;return resetSearchLocationKeywords(Object.assign(Object.assign({},e),{focused:"none"}));case n.ClickOutsideInputSearch:if("search"!==e.focused)return e;return Object.assign(Object.assign({},e),{focused:"none"});case n.ClickOutsideInputSearchSpecialty:if("search"!==e.focusedSpecialty)return e;return Object.assign(Object.assign({},e),{focusedSpecialty:"none"});case n.FocusInputLocation:{let t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(a=e.selectedLocation)||void 0===a?void 0:a.id)===I.a&&(t.searchLocationKeywords=""),t}case n.FocusInputSpecialty:{let t=Object.assign(Object.assign({},e),{focused:"specialty"});return(null===(l=e.selectedLocation)||void 0===l?void 0:l.id)===I.a&&(t.searchLocationKeywords=""),t}case n.FocusInputSearch:let r=Object.assign(Object.assign({},e),{focused:"search"});if(e.isMobile)return resetSearchLocationKeywords(r);return r;case n.FocusInputSearchSpecialty:{let t=Object.assign(Object.assign({},e),{focusedSpecialty:"search"});return t}case n.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case n.ChangeInputSearch:{let a=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:a,isLoadingSearchResults:a.trim().length>q[e.locale]})}case n.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case n.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case n.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case n.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name,searchResults:{}});case n.SelectSpecialty:return Object.assign(Object.assign({},e),{focused:"none",selectedSpecialty:t.payload,searchResults:{}});case n.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case n.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case n.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case n.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case n.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case n.FetchSearchResultsComplete:{let a=Object.assign(Object.assign({},e),{searchResults:Object.assign(Object.assign({},e.searchResults),{[t.payload.key]:t.payload.searches})});return a}case n.FetchCitiesByGeoIpComplete:{let{cities:a}=t.payload,{default:l}=t.payload;a=a.filter(e=>e.id!==l.id),l&&a.unshift(l),e.initialSelectedCity&&!a.find(t=>t.id===e.initialSelectedCity.id)&&a.unshift(e.initialSelectedCity);let r=Object.assign(Object.assign({},e),{defaultCity:l,initialCities:a,cities:a});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(r.selectedLocation=l,r.searchLocationKeywords=l.name),r}case n.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case n.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case n.DisplayInitialSearchResults:{let t=e.searchKeywords.trim(),a=q[e.locale],l=t.length>0&&t.length<=a;return Object.assign(Object.assign({},e),{searchResults:l?{}:e.initialSearchResults,isLoadingSearchResults:!1})}case n.UpdateInitialSearchResults:return Object.assign(Object.assign({},e),{initialSearchResults:Object.assign(Object.assign({},e.initialSearchResults),{[t.payload.key]:t.payload.searches})});case n.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case n.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case n.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case n.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case n.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case n.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});case n.FetchAllSpecialties:return Object.assign(Object.assign({},e),{allSpecialties:t.payload});case n.FetchPopularKeys:return Object.assign(Object.assign({},e),{popularKeys:t.payload});default:return e}}(l=n||(n={})).NavigateTo="navigate to url",l.ClickOutsideInputLocation="click outside input location",l.ClickOutsideInputSearch="click outside input search",l.ClickOutsideInputSearchSpecialty="click outside input search specialty",l.ClickOutsideInputSpecialty="click outside input specialty",l.SelectCurrentLocation="select current location",l.FocusInputLocation="focus input location",l.FocusInputSearch="focus input search",l.FocusInputSearchSpecialty="focus input search specialty",l.ChangeInputLocation="change input location",l.ChangeInputSearch="change input search",l.ClearInputLocation="clear input location",l.ClearInputSearch="clear input search",l.SelectLocation="select location",l.SelectSpecialty="select specialty",l.FetchCitiesStart="fetch cities start",l.FetchCitiesFinish="fetch cities finish",l.FetchSearchResultsStart="fetch search results start",l.FetchSearchResultsComplete="fetch search results complete",l.FetchSearchResultsFinish="fetch search results finish",l.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",l.FetchCitiesByKeywordComplete="fetch cities by keyword finish",l.DisplayInitialCities="display initial cities",l.DisplayInitialSearchResults="display initial search results",l.UpdateInitialSearchResults="update initial search results",l.GrantGeoLocationPermission="grant geolocation permission",l.DenyGeoLocationPermission="deny geolocation permission",l.OpenMobileModal="open mobile modal",l.CloseMobileModal="close mobile modal",l.UpdateInitialSearchValue="update initial search value",l.SelectSearchResult="select search result",l.SetInputSearchPlaceholder="set input search placeholder",l.FocusInputSpecialty="focus input specialty",l.FetchAllSpecialties="fetch all specialty",l.FetchPopularKeys="fetch popular key by type";let U=k.Z.div` flex: 1; position: relative; ${M.M.mbDown} { width: 100%; } `,K=k.Z.div` background: #f7f9fc; border-radius: 12px; height: 48px; display: flex; align-items: center; padding: 4px 12px 4px 4px; gap: 16px; ${M.M.mbDown} { height: 48px; width: 100%; } `,G=k.Z.div` display: flex; align-items: center; flex-shrink: 0; color: #8c8c8c; svg { width: 18px; height: 18px; } `,Y=k.Z.div` position: absolute; top: calc(100% + 2px); width: 100%; border-radius: 4px; background: ${F.r.colors.white}; box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1); z-index: 10; ${M.M.mbDown} { width: calc(100% + 64px); left: -32px; } `,W=k.Z.div``;k.Z.div` display: flex; justify-content: space-between; align-item: center; padding: 9px 14px 9px 22px; background: #f7f9fc; .title { color: ${F.r.colors.gray800}; font-size: 14px; font-weight: 600; line-height: 22px; } .btn-see-all { color: ${F.r.colors.blue600}; font-size: 14px; line-height: 22px; cursor: pointer; } `;let Q=k.Z.div` padding: 10px 16px; max-height: 400px; overflow: auto; `,X=k.Z.div` display: flex; gap: 12px; align-items: center; cursor: pointer; ${M.M.mbUp} { &:hover { background-color: ${F.r.colors.blue50}; } } .image-item { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; img { object-fit: contain; width: 100%; height: 100%; border-radius: 50%; } } .infor { overflow: hidden; padding: 12px 0; flex: 1; border-bottom: 1px solid ${F.r.colors.neutral100}; .title { color: ${F.r.colors.gray800}; font-size: 16px; font-weight: 600; line-height: 24px; } .description { overflow: hidden; color: ${F.r.colors.gray600}; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 18px; display: flex; gap: 8px; align-items: center; margin-top: 5px; svg { flex: 0 0 16px; } .sub-description { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; } } } &.last-item { .infor { border-bottom: none; } } `;k.Z.div` padding: 0 16px 16px; .search-detail-btn { color: ${F.r.colors.blue600}; font-size: 14px; line-height: 22px; cursor: pointer; } `;let SearchResult=({state:e,type:t,results:a,isLoading:l,typeInformation:r,dispatch:o})=>{let{t:c}=(0,P.u)(),{selectedLocation:u}=e,p=(0,i.useMemo)(()=>r[t].slug,[r,t]),handleOnClick=e=>{let a="";switch(t){case"service":a=`/${u.slug}/${p}/${e.slug}`;break;case"doctor":case"hospital":a=`/${p}/${e.slug}-${e.id}`}a&&o({type:n.NavigateTo,payload:a})};return null===a?null:i.createElement(W,null,i.createElement(Q,{className:"search-results__body"},l&&i.createElement("div",{className:"skeleton-result"},[,,,].fill(void 0).map((e,a)=>i.createElement(X,{key:t+"loading"+a,className:2===a?"last-item":""},i.createElement("div",{className:"image-item"},i.createElement(s.O,{height:48,circle:!0,mb:"xl",animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(s.O,{height:8,mt:10,radius:"xl",animate:!0})),i.createElement("div",{className:"description"},i.createElement("div",{className:"sub-description"},i.createElement(s.O,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!l&&a&&a.length>0&&i.createElement(i.Fragment,null,a.map((e,l)=>{var n,o;let c=a.length>4&&3===l||a.length<=4&&l===a.length-1,s="";return("hospital"===t&&(s=(null==e?void 0:e.address)||""),"doctor"===t&&(s=(null===(n=null==e?void 0:e.specialties)||void 0===n?void 0:n.join(", "))||""),"service"===t&&(s=(null===(o=null==e?void 0:e.hospital_branch)||void 0===o?void 0:o.name)||""),l>=4)?i.createElement(i.Fragment,null):i.createElement(X,{key:e.id,className:(0,d.default)(c?"last-item":"","result-item"),onClick:()=>handleOnClick(e)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.logo||e.avatar,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name),i.createElement("div",{className:"description"},r[t].icon,i.createElement("div",{className:"sub-description"},s))))})),!l&&(null==a?void 0:a.length)===0&&i.createElement(j.T,{size:"sm",color:F.r.colors.gray400,className:"noresult-block"},c("booking.searchBar.noResults"))))},SearchResultContent=({state:e,type:t,isLoading:a,clientSlug:l,typeInformation:r,dispatch:n})=>{var o;return"search"!==e.focused?null:i.createElement(SearchResult,{type:t,state:e,results:(null===(o=e.searchResults)||void 0===o?void 0:o[t])||null,location:e.selectedLocation.name,dispatch:n,isLoading:a,typeInformation:r,clientSlug:l})},J=k.Z.div` position: relative; flex-shrink: 0; ${M.M.mbDown} { width: 100%; display: flex; flex-direction: column; gap: 12px; } &.compact { ${M.M.mbDown} { width: auto; display: block; } } `,ee=k.Z.div` position: absolute; top: calc(100% + 4px); left: 0; min-width: 264px; background: white; border-radius: 12px; box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.04), 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 10px 16px 0px rgba(0, 0, 0, 0.04); z-index: 10; overflow: hidden; &.mobile { min-width: 280px; } `,et=k.Z.div` cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 12px; outline: none; .image-item { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; img { width: 100%; height: 100%; object-fit: contain; } svg { width: 24px; height: 24px; } } .item-label { font-size: 15px; font-weight: 400; line-height: 24px; letter-spacing: -0.3px; color: ${F.r.colors.gray800}; } &:hover { background-color: ${F.r.colors.neutral50}; } &.selected { background-color: ${F.r.colors.neutral50}; } &:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; } `,DoctorIcon=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M8.983 14.333q-1.666 0-2.833-1.166Q4.983 12 4.983 10.333v-.366a3.48 3.48 0 0 1-2.258-1.2 3.57 3.57 0 0 1-.909-2.434V3.1a.58.58 0 0 1 .175-.425.58.58 0 0 1 .425-.175h1.4v-.167a.486.486 0 0 1 .5-.5q.217 0 .36.142a.5.5 0 0 1 .14.358v1.334a.485.485 0 0 1-.5.5.484.484 0 0 1-.5-.5V3.5h-1v2.833q0 1.1.784 1.884Q4.383 9 5.483 9t1.883-.783.784-1.884V3.5h-1v.167a.485.485 0 0 1-.5.5.484.484 0 0 1-.5-.5V2.333a.486.486 0 0 1 .5-.5q.217 0 .358.142a.5.5 0 0 1 .142.358V2.5h1.4a.58.58 0 0 1 .425.175.58.58 0 0 1 .175.425v3.233q0 1.4-.908 2.434a3.5 3.5 0 0 1-2.259 1.2v.366q0 1.25.875 2.126a2.9 2.9 0 0 0 2.125.874q1.25 0 2.125-.874a2.9 2.9 0 0 0 .875-2.126V9.25a1.74 1.74 0 0 1-.858-.609 1.6 1.6 0 0 1-.342-1.008q0-.716.5-1.216t1.2-.5q.716 0 1.217.5.5.5.5 1.216 0 .567-.342 1.008t-.875.609v1.083q0 1.667-1.167 2.834-1.166 1.166-2.833 1.166m3.5-6q.3 0 .509-.208a.67.67 0 0 0 .208-.492q0-.3-.208-.508a.7.7 0 0 0-.509-.208q-.3 0-.5.208a.7.7 0 0 0-.2.508q0 .284.2.492t.5.208",fill:"#595959"})),ServiceIcon=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M6.868 9.265v.974q0 .405.284.69.284.283.69.283t.69-.284.284-.69v-.973h.973q.405 0 .69-.284a.94.94 0 0 0 .284-.689.94.94 0 0 0-.284-.69.94.94 0 0 0-.69-.284h-.973v-.974a.94.94 0 0 0-.284-.69.94.94 0 0 0-.69-.284.94.94 0 0 0-.689.284.94.94 0 0 0-.285.69v.974h-.973a.94.94 0 0 0-.69.283.94.94 0 0 0-.284.69q0 .405.284.69.285.284.69.284zm-3.46 4.868q-.581 0-.994-.413A1.36 1.36 0 0 1 2 12.725v-6.65a1.4 1.4 0 0 1 .563-1.127l4.434-3.333q.369-.282.844-.282.474 0 .846.282l4.434 3.333q.264.193.413.493.15.3.15.633v6.651q0 .58-.414.995a1.36 1.36 0 0 1-.994.413zm0-1.168h8.868q.105 0 .172-.068a.23.23 0 0 0 .068-.172v-6.65a.2.2 0 0 0-.027-.11.3.3 0 0 0-.07-.085L7.983 2.554a.2.2 0 0 0-.142-.052.2.2 0 0 0-.142.052L3.266 5.88a.3.3 0 0 0-.071.086.2.2 0 0 0-.027.108v6.651q0 .105.068.172a.23.23 0 0 0 .172.068",fill:"#595959"})),HospitalIcon=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M8 8q.55 0 .941-.392.393-.391.392-.941 0-.55-.392-.942A1.28 1.28 0 0 0 8 5.333q-.55 0-.942.392a1.28 1.28 0 0 0-.391.942q0 .55.391.941Q7.45 8 8 8m0 4.9q2.032-1.866 3.017-3.392Q12 7.983 12 6.8q0-1.817-1.158-2.975Q9.682 2.667 8 2.667T5.158 3.825Q4 4.983 4 6.8q0 1.184.983 2.708Q5.966 11.034 8 12.9m0 1.517a.8.8 0 0 1-.5-.183q-2.433-2.151-3.633-3.992T2.667 6.8q0-2.5 1.608-3.983Q5.883 1.332 8 1.333q2.116 0 3.725 1.484T13.333 6.8q0 1.6-1.2 3.442-1.2 1.841-3.633 3.991a.8.8 0 0 1-.5.184",fill:"#8C8C8C"})),SpecialtyIcon=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.createElement("path",{d:"M3.833.5a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667M10.5.5c-.92 0-1.667.746-1.667 1.667V5.5c0 .92.746 1.667 1.667 1.667h3.333c.921 0 1.667-.746 1.667-1.667V2.167C15.5 1.246 14.754.5 13.833.5zM3.833 8.833a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667m8.334 0a3.333 3.333 0 1 0 0 6.667 3.333 3.333 0 0 0 0-6.667",fill:"#9AA2AC"})),SearchSpecialty=({state:e,isMobile:t,onSpecialtyClick:a,dispatch:l,isCompact:r=!1})=>{let{t:o,locale:s}=(0,P.u)(),d=(0,i.useRef)(null),g=(0,i.useRef)(null),b=(0,i.useMemo)(()=>I.L[s],[s]),[f,C]=(0,i.useState)(""),[E,{close:y,toggle:x}]=(0,v.q)(!1);(0,S.a)(d,()=>{y(),C(""),l({type:n.ClickOutsideInputSpecialty})});let w=(0,i.useMemo)(()=>[{name:o("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:b.SPECIALTIES},...e.allSpecialties],[e.allSpecialties,o,b.SPECIALTIES]),D=(0,i.useMemo)(()=>f.trim()?w.filter(e=>e.name.toLowerCase().includes(f.toLowerCase().trim())):w,[w,f]),L=(0,i.useMemo)(()=>e.selectedSpecialty?e.selectedSpecialty.name:"",[e.selectedSpecialty]),k=(0,i.useCallback)(e=>{a({id:e.id,name:e.name,slug:e.slug,thumbnail:e.thumbnail||"",total_doctor:0}),y(),C("")},[a,y]),M=(0,i.useCallback)(()=>{x(),E&&C("")},[x,E]);return i.createElement(J,{ref:d,className:r?"compact":""},i.createElement(u.x,{onClick:M,className:E?"dropdown-trigger-open":"",sx:{cursor:"pointer",position:"relative",width:r?t?96:160:"100%",flexShrink:0}},i.createElement(p.I,{readOnly:!0,value:L,placeholder:o("booking.searchPopup.specialties"),rightSection:i.createElement($.C,{style:{width:20,height:20}}),styles:Object.assign({input:{cursor:"pointer",outline:"none","&:focus":{outline:"none"},"&:not(.mantine-Textarea-input)":{height:r?40:t?40:46,fontSize:r?(0,h.h)(14):t?(0,h.h)(14):(0,h.h)(16),paddingLeft:r?12:16,paddingRight:30,background:r?"white":"transparent",border:r?`1px solid ${F.r.colors.gray200}`:"none",borderRadius:8,letterSpacing:"-0.2px",color:F.r.colors.gray800,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}},rightSection:{width:30,pointerEvents:"none"}},!r&&{wrapper:{position:"relative","&:after":{content:'""',width:"1px",height:"20px",backgroundColor:F.r.colors.neutral100,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"}}})})),E&&i.createElement(ee,{className:t?"mobile":""},i.createElement(u.x,{sx:{padding:"12px 12px 8px"}},i.createElement(p.I,{ref:g,icon:i.createElement(c.Z,{size:18,color:F.r.colors.gray300}),placeholder:o("booking.searchBar.placeholder.specialty"),value:f,onChange:e=>C(e.target.value),size:"md",styles:{input:{height:40,fontSize:(0,h.h)(15),paddingLeft:36,"&::placeholder":{color:F.r.colors.gray400}},icon:{width:36}}})),i.createElement(m.x.Autosize,{mah:300},0===D.length?i.createElement(u.x,{sx:{padding:"12px 16px",color:F.r.colors.gray400,fontSize:14}},o("common.noResult")):D.map(t=>{var a,l;return i.createElement(et,{key:t.id,tabIndex:0,role:"option","aria-selected":(null===(a=e.selectedSpecialty)||void 0===a?void 0:a.id)===t.id,className:(null===(l=e.selectedSpecialty)||void 0===l?void 0:l.id)===t.id?"selected":"",onClick:()=>k(t),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),k(t))}},i.createElement("div",{className:"image-item"},t.thumbnail?i.createElement("img",{src:t.thumbnail,alt:t.name}):i.createElement(SpecialtyIcon,null)),i.createElement("span",{className:"item-label"},t.name))}))))},ea=(0,i.forwardRef)(({state:e,type:t,isMobile:a,isLoading:l,initalSearchValue:r,typeInformation:o,debouncedFetchSearchResults:s,trackingAttributes:d,hideSpecialtySelection:u=!1,clientSlug:m="",onSearch:g,onFocusInput:b,onEnterSearch:f,dispatch:C,onlyShowSearchBox:E,onChangeSpecialty:y},x)=>{let{t:v}=(0,P.u)(),w=(0,i.useRef)(null),D=(0,i.useRef)(null);(0,i.useImperativeHandle)(x,()=>({focus:()=>{var e;null===(e=D.current)||void 0===e||e.focus()}}));let L=(0,i.useMemo)(()=>d?{"data-event-category":d.dataEventCategory,"data-event-action":d.dataEventAction,"data-event-label":d.dataEventLabel}:{},[d]),I=(0,i.useMemo)(()=>"doctor"===t?v("booking.searchBar.placeholder.doctor"):"service"===t?v("booking.searchBar.placeholder.service"):"hospital"===t?v("booking.searchBar.placeholder.hospital"):"specialty"===t?v("booking.searchBar.placeholder.specialty"):"",[t,v]),k="specialty"!==t&&"service"!==t&&!u&&!E,M=(0,i.useMemo)(()=>({input:{border:"none",background:"transparent",height:"100%",fontSize:(0,h.h)(16),color:F.r.colors.gray800,padding:"0","&::placeholder":{color:F.r.colors.gray400},"&:focus":{outline:"none",boxShadow:"none"},[a?"@media (max-width: 767px)":""]:a?{fontSize:(0,h.h)(16)}:{}},wrapper:{flex:1}}),[a]);(0,S.a)(w,()=>{a||C({type:n.ClickOutsideInputSearch})});let O=(0,i.useCallback)(function(a){C({type:n.ChangeInputSearch,payload:a}),"function"!=typeof g&&(a.trim().length>q[e.locale]||r||0===a.trim().length)&&s(a.trim(),e,t,m)},[C,e,t,r,s,m,g]),j=(0,i.useCallback)(function(e){var t;C({type:n.SelectSpecialty,payload:e}),null==y||y(e),a||null===(t=D.current)||void 0===t||t.focus()},[C,y]),$=(0,i.useCallback)(e=>{"Enter"===e.key&&(e.stopPropagation(),e.preventDefault(),f&&f())},[f]);return i.createElement(U,{ref:w},i.createElement(K,null,k&&i.createElement(SearchSpecialty,{state:e,isMobile:a,dispatch:C,debouncedFetchSearchResults:s,onSpecialtyClick:j,isCompact:!0}),i.createElement(G,null,i.createElement(c.Z,null)),i.createElement(p.I,Object.assign({ref:D,variant:"unstyled",size:a?"md":"lg",placeholder:I,styles:M,value:e.searchKeywords,name:"search-results",autoComplete:"off",onFocus:()=>{C({type:n.FocusInputSearch}),null==b||b()},onChange:e=>{O(e.target.value)},onKeyDown:$},L))),!a&&"specialty"!==t&&i.createElement(Y,null,i.createElement(SearchResultContent,{type:t,state:e,dispatch:C,isLoading:l,typeInformation:o,clientSlug:m})))});ea.displayName="SearchInputs";let ModalSearchResult=e=>{var{searchInputEle:t,closeModal:a,children:l}=e,r=(0,H._)(e,["searchInputEle","closeModal","children"]);let n=(0,g.rZ)();return i.createElement(_.M,Object.assign({},r,{zIndex:310,fullScreen:!0,styles:{content:{borderRadius:0,height:"100%",".search-results__body":{padding:0},".result-item":{paddingLeft:16,paddingRight:16},".noresult-block":{padding:16},".skeleton-result":{padding:16}},header:{display:"none"}}}),i.createElement(b.K,{spacing:16,sx:{paddingTop:16}},i.createElement(f.k,{align:"center",gap:12},i.createElement(B.Z,{size:28,onClick:a,color:n.fn.primaryColor()}),i.createElement(u.x,{sx:{width:"100%"}},t)),l))},el=k.Z.div` position: relative; width: 240px; flex-shrink: 0; ${M.M.mbDown} { width: 100%; } `;k.Z.div` position: absolute; top: calc(100% + 2px); width: 100%; border-radius: 4px; background: ${F.r.colors.white}; box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1); z-index: 10; ${M.M.mbDown} { width: calc(100% + 64px); left: -32px; } `;let er=k.Z.div` position: relative; cursor: pointer; padding: 12px 18px; display: flex; align-items: center; gap: 14px; overflow: hidden; & + li::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background-color: ${F.r.colors.neutral100}; } &:not([data-is-denied='true']):hover { background-color: ${F.r.colors.neutral50}; } &:last-child:hover { border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; } &:first-child:hover { border-top-right-radius: 6px; border-top-left-radius: 6px; } &[data-is-denied='true'] { cursor: not-allowed; } `,en=(0,k.Z)(w.P)` width: 12px; height: 18px; flex: 0 0 12px; `,eo=(0,i.forwardRef)((e,t)=>{var{label:a,value:l}=e,r=(0,H._)(e,["label","value"]);return i.createElement("div",Object.assign({ref:t},r),i.createElement(er,{key:l,role:"button",tabIndex:0,"aria-label":`Select ${a} as location`,className:"location-item"},i.createElement(en,{color:F.r.colors.neutral400}),i.createElement(C.x,{size:"md"},a)))}),SearchLocation=({state:e,debouncedFetchCitiesByKeyword:t,selectedLocation:a,trackingAttributes:l,onLocationClick:r,dispatch:o})=>{var c;let{t:s,locale:d}=(0,P.u)(),u=(0,i.useRef)(null),p=(0,i.useMemo)(()=>{var t;return[{name:s("booking.searchBar.allLocations"),id:I.I,slug:null===(t=I.L[d])||void 0===t?void 0:t.ALL},...e.cities]},[e.cities,s,d]),m=(0,i.useMemo)(()=>l?{"data-event-category":l.dataEventCategory,"data-event-action":l.dataEventAction,"data-event-label":l.dataEventLabel}:{},[l]),g=(0,i.useCallback)(function(a){o({type:n.ChangeInputLocation,payload:a}),a.trim().length>q[e.locale]?t(a.trim()):(t.cancel(),o({type:n.DisplayInitialCities}))},[t,o,e.locale]);(0,S.a)(u,()=>{o({type:n.ClickOutsideInputLocation})});let b=null!==(c=null==a?void 0:a.id)&&void 0!==c?c:null,f=null===b?void 0:String(b);return i.createElement(el,{ref:u},i.createElement(E.Ph,Object.assign({key:null!=f?f:"no-selected-location",defaultValue:f,placeholder:s("booking.searchBar.allLocations"),searchable:!0,onSearchChange:e=>{g(e)},onFocus:()=>{o({type:n.DisplayInitialCities})},onDropdownClose:()=>{t.cancel(),o({type:n.DisplayInitialCities})},nothingFound:s("common.noResult"),maxDropdownHeight:340,dropdownPosition:"bottom",icon:i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.99908 10.8332C11.2264 10.8332 12.2213 9.83764 12.2213 8.61097C12.2213 7.3843 11.2264 6.38875 9.99908 6.38875C8.77174 6.38875 7.77686 7.3843 7.77686 8.61097C7.77686 9.83764 8.77174 10.8332 9.99908 10.8332Z",stroke:"#111111",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M9.99919 18.0554C11.7584 17.4999 16.6659 13.611 16.6659 8.61097C16.6659 4.93097 13.6811 1.94431 9.99919 1.94431C6.3173 1.94431 3.33252 4.93097 3.33252 8.61097C3.33252 13.611 8.23996 17.4999 9.99919 18.0554Z",stroke:"#111111",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),rightSection:i.createElement($.C,{style:{width:20,height:20}})},m,{styles:()=>({item:{padding:0,"&[data-selected]":{"&, &:hover":{backgroundColor:"#F7F9FC",color:"inherit"},".location-item":{"&::after":{content:w.i,top:"50%",right:19,position:"absolute",transform:"translateY(-50%)"}}},"&[data-hovered]":{backgroundColor:"transparent"}},root:{width:"100%"},wrapper:{width:"100%"},input:{"&:not(.mantine-Textarea-input)":{height:48,fontSize:(0,h.h)(15),fontWeight:400,letterSpacing:"-0.3px",color:F.r.colors.gray1000,paddingLeft:44,paddingRight:40,background:"white",border:`1px solid ${F.r.colors.gray200}`,borderRadius:12}},icon:{width:44,paddingLeft:12},rightSection:{width:40,paddingRight:12},itemsWrapper:{padding:0},dropdown:{left:"0 !important",border:0,marginTop:4,borderRadius:12,overflow:"hidden",boxShadow:"0px 0px 1px 0px rgba(0, 0, 0, 0.04), 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 10px 16px 0px rgba(0, 0, 0, 0.04)","& ::-webkit-scrollbar":{width:"6px",height:"6px"}}}),itemComponent:eo,filter:()=>!0,onChange:e=>{if(null==e)return;let a=p.find(t=>String(t.id)===e);a&&(r(a),t.cancel(),o({type:n.DisplayInitialCities}),setTimeout(()=>{var e,t;null===(t=null===(e=u.current)||void 0===e?void 0:e.querySelector("input"))||void 0===t||t.blur()},0))},data:p.map(e=>({value:String(e.id),label:e.name,city:e}))})))},ei=k.Z.div` display: flex; flex-wrap: wrap; row-gap: 8px; column-gap: 20px; ${M.M.mbDown} { margin-top: 12px; } `,ec=k.Z.div` display: flex; align-items: center; border-radius: 8px; border: 1px solid ${F.r.colors.neutral100}; background: ${F.r.colors.white}; padding: 8px 12px 8px 8px; flex: 0 0 calc(33.3% - 13px); gap: 12px; cursor: pointer; &:hover { background: ${F.r.colors.blue50}; } ${M.M.tdDown} { flex: 0 0 calc(50% - 10px); } ${M.M.mbDown} { flex: 0 0 100%; border: none; } .image-item { display: flex; align-items: center; width: 40px; height: 40px; img { width: 100%; object-fit: cover; } } .infor { flex: 1; .title { color: ${F.r.colors.gray800}; font-size: 14px; font-style: normal; font-weight: 400; line-height: 22px; } .description { color: ${F.r.colors.gray600}; font-size: 12px; font-weight: 400; line-height: 18px; } } `,es=(0,k.Z)(y.i)` margin: 24px 0 !important; `,ed=k.Z.div` display: flex; justify-content: center; margin-top: 24px; .show-more { border-radius: 4px; border: 1px solid ${F.r.colors.neutral200}; padding: 12px 16px; cursor: pointer; display: inline-block; color: ${F.r.colors.gray800}; font-size: 16px; font-weight: 600; line-height: 24px; ${M.M.mbDown} { width: 100%; text-align: center; } } `,SearchResultSpecialties=({state:e,isMobile:t,specialties:a,isLoading:l,dispatch:r})=>{let{t:o,locale:c}=(0,P.u)(),{selectedLocation:d}=e,u=(0,i.useMemo)(()=>I.L[c],[c]),handleOnClick=e=>{let t="";e===I.S?(t=`/${d.slug}/${u.HOSPITAL}/${I.C.GSK}/`,r({type:n.ClickOutsideInputSearchSpecialty})):t=`/${d.slug}/${u.DOCTOR}/${e}`,r({type:n.NavigateTo,payload:t})},p=(0,i.useMemo)(()=>a.length>=9||e.searchKeywords.trim().length<=q[e.locale],[e.searchKeywords,a]);return i.createElement(i.Fragment,null,!t&&i.createElement(es,{color:"#E4E8EC"}),i.createElement(ei,null,a.length>0&&!l&&i.createElement(i.Fragment,null,a.map((e,t)=>t>=9?i.createElement(i.Fragment,null):i.createElement(ec,{key:e.id,onClick:()=>handleOnClick(e.slug)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name))))),0===a.length&&!l&&i.createElement(j.T,{size:"sm",color:F.r.colors.gray400},o("booking.searchBar.noResults")),l&&Array(6).fill(void 0).map((e,t)=>i.createElement(ec,{key:"loading"+t},i.createElement("div",{className:"image-item"},i.createElement(s.O,{height:40,animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(s.O,{height:20,radius:"sm",animate:!0})))))),p&&i.createElement(ed,null,i.createElement("div",{className:"show-more",onClick:()=>{let e=`/${u.SPECIALTIES}`;r({type:n.NavigateTo,payload:e})}},o("home.seeAll"))))},eu=k.Z.div` display: flex; gap: 5px; margin-top: 16px; flex-wrap: wrap; `,ep=k.Z.div` color: ${F.r.colors.gray600}; font-size: 14px; font-weight: 600; line-height: 22px; padding: 4px 12px; background: ${F.r.colors.white}; border-radius: 32px; cursor: pointer; border: 1px solid ${F.r.colors.white}; margin-bottom: 5px; border-color: ${F.r.colors.neutral100}; background: #f7f9fc; &.view-all { border-radius: 32px; border-color: ${F.r.colors.blue50}; background: ${F.r.colors.blue50}; color: ${F.r.colors.blue600}; &:hover { border-color: ${F.r.colors.blue50}; background: ${F.r.colors.blue50}; color: ${F.r.colors.blue600}; } } &:hover { border-color: ${F.r.colors.neutral100}; background: #f7f9fc; } `,eh=k.Z.div` color: ${F.r.colors.gray600}; font-size: 14px; font-weight: 600; line-height: 22px; padding: 4px 0; background: ${F.r.colors.white}; border-radius: 32px; border: 1px solid ${F.r.colors.white}; margin-bottom: 5px; margin-right: 7px; `,SearchTag=({state:e,type:t,typeInformation:a,dispatch:l})=>{let{t:r}=(0,P.u)(),{selectedLocation:o}=e,c=(0,i.useMemo)(()=>a[t].slug,[a,t]),handleClickKeyword=e=>{e.url&&(window.location.href=e.url)};return i.createElement(eu,null,i.createElement(eh,null,r("booking.searchBar.popularKey")),e.popularKeys.map(e=>i.createElement(ep,{key:e.id,onClick:()=>handleClickKeyword(e)},e.keyword)),i.createElement(ep,{className:"view-all",onClick:()=>{let e=`/${o.slug}/${c}`;e&&l({type:n.NavigateTo,payload:e})}},r("booking.searchBar.viewAll")))},em=k.Z.div` background: rgba(255, 255, 255, 0.64); backdrop-filter: blur(12px); border-bottom: 1px solid ${F.r.colors.neutral100}; `,eg=(0,k.Z)(O.C)` padding: 0 16px; `,TabSearch=({currentTab:e,hideTabBookingSearch:t=[],hideSpecialtyTab:a,isMobile:l,setCurrentTab:r})=>{let{t:n}=(0,P.u)(),o=(0,i.useMemo)(()=>({root:{overflowY:l?"hidden":"initial",overflowX:l?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:l?"12px 16px 12px 16px":"15px 40px 15px 40px",borderTop:"2px solid transparent",borderBottom:"none",margin:0,borderRadius:0,position:"relative",width:"auto",'&[data-active="true"]':{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:after":{display:"none"},"&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:hover":{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:after":{content:'""',width:"1px",height:"24px",backgroundColor:"#E4E8EC",position:"absolute",right:"-1px"}},tabLabel:{color:"#595959",fontSize:l?"14px":"16px",fontWeight:600,lineHeight:l?"22px":"24px"}}),[l]),c=(0,i.useMemo)(()=>[{value:"hospital",label:n("booking.searchPopup.hospitals")},{value:"doctor",label:n("booking.searchPopup.doctors")},{value:"service",label:n("booking.searchPopup.services")},...a?[]:[{value:"specialty",label:n("booking.searchPopup.specialties")}]],[a]),s=(0,i.useMemo)(()=>c.filter(e=>!t.includes(e.value))||[],[t,c]);return i.createElement(em,{className:"booking-search-tab"},i.createElement(eg,null,i.createElement(x.m,{value:e,onTabChange:e=>{r(e)},styles:o},i.createElement(x.m.List,null,s.map(e=>i.createElement(x.m.Tab,{value:e.value,key:e.value},e.label))))))};(r=o||(o={})).doctor="doctor",r.service="hospital_service",r.hospital="hospital_branch";let ignoreCacarSpecialty=e=>e.filter(e=>"string"==typeof e?"cacar-api"!==e:(null==e?void 0:e.id)!==232),BookingSearchBarV3=({isMobile:e,careApiDomain:t,geoLocationPermission:a,geoLocationCoordinates:l,initialSelectedCity:r,initialSearchValue:s="",initTypeSearch:d="hospital",initSpecialty:p,careFrontDomain:h="/care",isDebug:m=!1,gaTrackingSearchBar:g,gaTrackingLocationSearch:b,autoCompleteDisabled:C=!1,inputSearchPlaceholder:E="",hideTabBookingSearch:y=[],hideSpecialtySelection:x=!1,hideSpecialtyTab:D=!1,hidePopularSearchKeys:k=!1,clientSlug:F="",triggerSearchWhenChangeFilter:M,routerPush:O,onGeoLocationPermissionChange:j,onChangeLocation:$})=>{var H;let{locale:B,t:_}=(0,P.u)(),U=(0,i.useRef)(null),K=(0,i.useRef)(null),G=(0,i.useRef)(null),Y=(0,i.useRef)(null),[W,Q]=(0,i.useState)(d),{geoLocationPermission:X,geoLocationCoordinates:J}=(0,w.u)(),[ee,et]=(0,i.useReducer)(reducer,V,t=>Object.assign(Object.assign({},t),{isDebug:m,isMobile:e,geoLocationPermission:a||X||"unset",geoLocationCoordinates:l||J||null,searchKeywords:s,initialSelectedCity:r||null,selectedLocation:r||t.selectedLocation||null,searchLocationKeywords:(null==r?void 0:r.name)||t.searchLocationKeywords,autoCompleteDisabled:C,inputSearchPlaceholder:E,locale:B})),{navigateTo:el,focusedSpecialty:er,searchKeywords:en,geoLocationPermission:eo,selectedLocation:ei,initialSelectedCity:ec,searchResults:es,isLoadingSearchResults:ed}=ee,{fetchCitiesByLocation:eu,fetchCitiesByKeyword:ep,fetchSearchResults:eh,fetchAllSpecialties:em,fetchPopularKeys:eg}=function({dispatch:e,careApiDomain:t,locale:a="vi-VN",client:l=""}){let r=(0,i.useCallback)(function(l,r={}){let o=`${t}${l}`;return e({type:n.FetchCitiesStart}),fetch((0,w.h)(o,r,a),{method:"GET"}).then(e=>e.json()).then(e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e))).finally(()=>e({type:n.FetchCitiesFinish}))},[a]),c=(0,i.useCallback)(function({coordinates:t}){let o={},i={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===a&&(i.noPaging=1);let c=[r(R.P.GET_CITY_BY_IP,Object.assign(Object.assign(Object.assign({},o),i),{hospitalActive:1,client:I.C.MSD===l?"":l}))];return"zh-TW"===a?c.push(r(R.P.GET_CITIES_LIST,{noPaging:1,hospitalActive:1,client:I.C.MSD===l?"":l})):c.push(r(R.P.GET_CITIES_LIST,{noPaging:1,hospitalActive:1})),Promise.all(c).then(([t,a])=>{let l=Object.assign({},t);if(a){let e=l.cities.map(e=>e.id);l.cities=l.cities.concat(a.cities.filter(t=>!e.includes(t.id)))}e({type:n.FetchCitiesByGeoIpComplete,payload:l})}).catch(e=>console.error("error loading cities by location",e))},[a,t,e]),s=(0,i.useCallback)(function(t){return r(R.P.GET_CITIES_LIST,{keyword:t,client:l}).then(t=>{e({type:n.FetchCitiesByKeywordComplete,payload:t.cities})}).catch(e=>console.error("error loading cities by keyword",e))},[a,t,e]),d=(0,i.useCallback)(function(r,o,i,c,s){let d="specialty"===i?`${t}${R.P.GET_SEARCH_SPECIALTY}`:`${t}${R.P.GET_SEARCH_V2}`;e({type:n.FetchSearchResultsStart});let{selectedLocation:u,geoLocationCoordinates:p,selectedSpecialty:h}=o,m="";if(!u){e({type:n.FetchSearchResultsFinish});return}m=u.id===I.I?"":u.id;let g=(null==p?void 0:p.lat)||"",b=(null==p?void 0:p.lng)||"",f=(null==h?void 0:h.id)>0?null==h?void 0:h.id:"",C=r.trim().length>q[a]?r.trim():"";return fetch((0,w.h)(d,Object.assign({domain:t,searchType:i||"global",keyword:C,city:m===I.a?"":m,lat:g,lng:b,specialty_id:f,client_slug:I.C.MSD===c?"":c,msd:I.C.MSD===l?1:""},"doctor"===i&&{skipBooking:1}),a),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then(e=>e.json()).then(e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e)).then(t=>{let a=[];"specialty"!==i&&(a="doctor"===i?t.searches.map(e=>Object.assign(Object.assign({},e),{specialties:ignoreCacarSpecialty((null==e?void 0:e.specialties)||[])})):t.searches),"specialty"===i&&(a=C?ignoreCacarSpecialty((null==t?void 0:t.specialties)||[]):ignoreCacarSpecialty((null==t?void 0:t.default)||[])),e({type:n.FetchSearchResultsComplete,payload:{key:i,searches:a||[]}}),s&&e({type:n.UpdateInitialSearchResults,payload:{key:i,searches:a||[]}})}).catch(e=>{console.log("error loading search results",{url:d,error:e})}).finally(()=>e({type:n.FetchSearchResultsFinish}))},[a,t,e]),u=(0,i.useCallback)(function(){let r=`${t}${R.P.GET_SEARCH_SPECIALTY}`;return fetch((0,w.h)(r,{domain:t,searchType:"",msd:I.C.MSD===l?1:""},a),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then(e=>e.json()).then(e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e)).then(t=>{e({type:n.FetchAllSpecialties,payload:ignoreCacarSpecialty(t.specialties||[])})}).catch(e=>{console.log("error loading search results",{url:r,error:e})})},[a,t,e]),p=(0,i.useCallback)(function(l){let r=`${t}${R.P.GET_SEARCH_POPULAR_KEY}`;return fetch((0,w.h)(r,{domain:t,searchType:o[l],sort_by:"display_order",sort_order:"asc"},a)).then(e=>e.json()).then(e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e)).then(t=>{e({type:n.FetchPopularKeys,payload:t.popular_searches||[]})}).catch(e=>{console.log("error loading search results",{url:r,error:e})})},[a,t,e]);return{fetchCitiesByLocation:c,fetchCitiesByKeyword:s,fetchSearchResults:d,fetchAllSpecialties:u,fetchPopularKeys:p}}({dispatch:et,locale:B,careApiDomain:t,client:F}),eb=(0,i.useMemo)(()=>I.L[B],[B]),[ef,{close:eC,open:eE}]=(0,v.q)(!1),ey=(0,i.useMemo)(()=>Object.assign({doctor:{name:_("booking.searchPopup.doctors"),icon:i.createElement(DoctorIcon,null),slug:eb.DOCTOR},service:{name:_("booking.searchPopup.services"),icon:i.createElement(ServiceIcon,null),slug:eb.SERVICE},hospital:{name:_("booking.searchPopup.hospitals"),icon:i.createElement(HospitalIcon,null),slug:eb.HOSPITAL}},!D&&{specialty:{name:_("booking.searchPopup.specialties"),icon:i.createElement(SpecialtyIcon,null),slug:eb.SPECIALTIES}}),[W]),ex=(0,i.useMemo)(()=>L()(ep,400),[ep]),ev=(0,i.useMemo)(()=>L()(eh,400),[eh]),ew=(0,i.useCallback)(function({locationSlug:e,specialtyId:t}={}){var a;eC();let l="",{slug:r}=ey[W],o="",i=I.M[B][F],c=t||(null===(a=ee.selectedSpecialty)||void 0===a?void 0:a.id)||-1,s=e||(null==ei?void 0:ei.slug)||"";("doctor"===W||"hospital"===W)&&c>0&&(o=`&specialtyId=${c}`),l="specialty"===W?`/${r}`:`/${s}/${r}`,i&&(l+=`/${i}`),(l+=`?q=${en}${o}`)&&et({type:n.NavigateTo,payload:l})},[F,eC,W,et,B,en,null==ei?void 0:ei.slug,null===(H=ee.selectedSpecialty)||void 0===H?void 0:H.id,ey]),eS=(0,i.useCallback)(function(e){M&&ew({locationSlug:e.slug}),et({type:n.SelectLocation,payload:e}),$&&$(e)},[et,e,$,ew,M]);(0,S.a)(Y,()=>{e||et({type:n.ClickOutsideInputSearchSpecialty})}),(0,i.useEffect)(()=>{var t;"denied"===eo||ec||et({type:n.SelectLocation,payload:{name:_("booking.searchBar.allLocations"),id:I.I,slug:null===(t=I.L[B])||void 0===t?void 0:t.ALL}}),j&&j(eo,ee.geoLocationCoordinates),e&&"granted"===eo&&ei&&et({type:n.FocusInputSearch}),eu({coordinates:ee.geoLocationCoordinates})},[eo]),(0,i.useEffect)(()=>{var e;let t=p||{name:_("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:eb.SPECIALTIES};if(p){(null===(e=ee.selectedSpecialty)||void 0===e?void 0:e.id)!==p.id&&et({type:n.SelectSpecialty,payload:p});return}ee.selectedSpecialty&&ee.selectedSpecialty.id===t.id||et({type:n.SelectSpecialty,payload:t})},[p,eb.SPECIALTIES,_]),(0,i.useEffect)(()=>{em()},[]),(0,i.useEffect)(()=>{eg(W)},[W]),(0,i.useEffect)(()=>{el&&(O?O(el):window.location.href=`${h}${el}`)},[el]),(0,i.useEffect)(()=>{eh(ee.searchKeywords,ee,W,F,!0)},[W]),(0,i.useEffect)(()=>{if(ef&&e){let e=setTimeout(()=>{var e;null===(e=G.current)||void 0===e||e.focus()},150);return()=>clearTimeout(e)}},[ef,e]);let eP={type:W,isMobile:e,state:ee,dispatch:et,debouncedFetchSearchResults:ev,initalSearchValue:s,onEnterSearch:ew,typeInformation:ey,trackingAttributes:g,isLoading:ed,hideSpecialtySelection:x||D,clientSlug:F,triggerSearchWhenChangeFilter:M,onChangeSpecialty:e=>M&&ew({specialtyId:e.id})};return i.createElement(i.Fragment,null,i.createElement(T,{ref:U},i.createElement(TabSearch,{currentTab:W,setCurrentTab:Q,isMobile:e,hideTabBookingSearch:y,hideSpecialtyTab:D}),i.createElement(z,{className:"booking-search-container"},i.createElement(A,null,i.createElement(Z,{className:"booking-search-content"},i.createElement("div",{ref:Y},i.createElement(f.k,{gap:"12px",align:"center",className:"flex-search-input"},i.createElement(ea,Object.assign({},eP,{ref:K,onFocusInput:()=>e&&eE()})),"specialty"!==W&&i.createElement(SearchLocation,{state:ee,isMobile:e,dispatch:et,debouncedFetchCitiesByKeyword:ex,selectedLocation:ei,onLocationClick:eS,trackingAttributes:b}),!e&&i.createElement(N.B,{size:"lg",variant:"primary",onClick:()=>ew(),styles:{root:{height:"48px",minWidth:"120px",borderRadius:"12px"}}},_("booking.searchBar.searchButton"))),!k&&"specialty"!==W&&ee.popularKeys.length>0&&i.createElement(SearchTag,{type:W,state:ee,typeInformation:ey,dispatch:et}),"specialty"===W&&"search"===er&&i.createElement(SearchResultSpecialties,{state:ee,isMobile:e,dispatch:et,specialties:(null==es?void 0:es.specialty)||[],isLoading:ed})))))),e&&i.createElement(ModalSearchResult,{keepMounted:!0,opened:ef,onClose:eC,closeModal:eC,searchInputEle:i.createElement(f.k,{align:"center",gap:8},i.createElement(ea,Object.assign({},eP,{onlyShowSearchBox:!0,ref:G})),i.createElement(N.B,{variant:"primary",leftIcon:i.createElement(c.Z,{size:20,color:"#fff"}),onClick:()=>ew(),styles:{root:{borderRadius:"12px"}}}))},i.createElement(u.x,{sx:{marginLeft:-16,marginRight:-16}},i.createElement(SearchResultContent,{type:W,state:ee,dispatch:et,isLoading:ed,typeInformation:ey,clientSlug:F}))))},eb=k.Z.div` background-color: var(--neutral50); padding: 12px 0; box-shadow: inset 0px 1px 0px #e4e8ec; > * { display: grid; grid-template-columns: 32px 1fr; align-content: center; p { font-weight: 600; } } .icon-wrapper { display: flex; align-items: center; } `,TextDivider=({children:e,icon:t,className:a,style:l})=>i.createElement(eb,{style:l,className:a},i.createElement(O.C,null,i.createElement("div",{className:"icon-wrapper"},t),i.createElement(j.T,{size:"c1",color:"var(--neutral800)"},e)))},EjKF:function(e,t,a){a.d(t,{M:function(){return Modal}});var l=a("q1tI"),r=a("iYPd"),n=a("i8i4"),o=a("rBCA"),i=a("HkQG"),c=a("gEnE"),s=a("iBNF");let d=(0,c.Z)(o.Z.div` position: relative; z-index: 200; background-color: ${s.r.colors.white}; border-radius: ${s.r.borderRadius}; box-shadow: 0px 8px 40px 0px #0000001a; &[data-site-type='marryBaby'] { border-radius: 16px; .hhg-modal__content { position: relative; z-index: 111; height: 100%; padding: 24px; } } .hhg-modal__content { position: relative; z-index: 111; height: 100%; padding: 16px; } .hhg-modal__video { position: relative; z-index: 111; height: 100%; background-color: none; box-shadow: none; } `,"hhgcomp-modal-modal"),u=o.Z.div` position: fixed; top: 0; left: 0; z-index: 201; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; visibility: hidden; opacity: 0; background-color: rgba(0, 0, 0, 0.6); transition: opacity 0.3s ease-in-out; .hhg-modal__close { position: absolute; top: 16px; right: 16px; cursor: pointer; img { width: 100%; height: 100%; border-radius: 50%; } } &[data-type='video'] { z-index: 1001; } &[data-open='true'] { opacity: 1; visibility: visible; } ${d.classSelector} { transition: transform 0.3s ease-in-out; } &.slideTop { ${d.classSelector} { transform: translate(0, -100vh); } &[data-open='true'] { ${d.classSelector} { transform: translate(0); } } } &.scaleUp { ${d.classSelector} { transform: scale(0.9); } &[data-open='true'] { ${d.classSelector} { transform: scale(1); } } } &[data-type='tail'] { justify-content: flex-end; ${d.classSelector} { width: 420px; height: 100%; border-radius: 0; overflow: hidden auto; } } &[data-type='form'] { ${d.classSelector} { width: 496px; height: 548px; max-height: 100%; overflow-y: auto; ${i.M.mbDown} { width: 340px; } } } &[data-type='video'] { ${d.classSelector} { height: 100%; max-height: 539px; ${i.M.mbDown} { height: 192px; width: 100%; height: 100%; border-radius: ${s.r.borderRadius}; max-height: 192px; } } } &[data-type='confirm'] { ${d.classSelector} { width: 100%; max-width: 407px; ${i.M.mbDown} { width: calc(100% - 32px); max-width: calc(100% - 32px); } } } `,p=o.Z.div` position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; align-items: center; &[data-open='false'] { display: none; } &[data-type='video'] { background-color: ${s.r.colors.secondaryDark}; } `,h="hhg-modals",getModalsRoot=()=>{let e=document.getElementById(h);return e||((e=document.createElement("div")).setAttribute("id",h),document.body.append(e)),e},cleanUpModalShow=()=>{let e=document.querySelectorAll('.hhg-modal[data-open="true"]');e.length<1&&document.body.classList.remove("hhc-modal-show")},cleanUpDisabledScroll=()=>{let e=document.querySelectorAll('.hhg-modal[data-open="true"]');e.length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},Modal=({type:e="lead",closeIcon:t,isOpen:a=!0,onClose:o,children:i,className:c="",animationType:s="scaleUp",isStaticBackdrop:h=!1,siteType:m})=>{let[g,b]=(0,l.useState)(!1),f=(0,l.useRef)(null),{width:C}=(0,r.u)();if(!f.current&&g&&(f.current=document.createElement("div")),(0,l.useEffect)(()=>(b(!0),()=>{b(!1),cleanUpModalShow(),cleanUpDisabledScroll()}),[]),(0,l.useEffect)(()=>{if(g){let e=getModalsRoot();return e.appendChild(f.current),()=>{e.removeChild(f.current)}}},[g]),(0,l.useEffect)(()=>{a?document.body.classList.add("hhc-modal-show"):cleanUpModalShow()},[a]),(0,l.useEffect)(()=>{a?(document.body.style.overflow="hidden",document.body.style.paddingRight=C+"px",document.body.classList.add("hhc-disabled-scroll")):cleanUpDisabledScroll()},[a,C]),!g)return null;let E=["hhg-modal__wrapper",c,s].filter(e=>e).join(" ");return(0,n.createPortal)(l.createElement(u,{className:E,"data-open":a,"data-type":e},!h&&l.createElement(p,{"data-open":a,onClick:o,"data-type":e}),!h&&"video"===e&&!!t&&l.createElement("div",{className:"hhg-modal__close",onClick:o},t),l.createElement(d,{className:"hhg-modal","data-open":a,"data-site-type":m},l.createElement("div",{className:"video"===e?"hhg-modal__video":"hhg-modal__content"},!!t&&"video"!==e&&l.createElement("div",{className:"hhg-modal__close",onClick:o},t),i))),f.current)}},jgim:function(e,t,a){a.d(t,{C:function(){return Checkbox},I:function(){return ImageWrapV2},P:function(){return Pagination},S:function(){return v},a:function(){return C},b:function(){return SearchInput},c:function(){return Search2}});var l=a("q1tI"),r=a("rBCA"),n=a("HkQG"),o=a("iBNF"),i=a("mHfz"),c=a("3Hk+"),s=a("xrdX"),d=a("GXD3"),u=a("erMh"),p=a("rWXb");let Search2=e=>l.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 25",fill:"none"},e),l.createElement("path",{d:"M11 18.957C14.866 18.957 18 15.823 18 11.957C18 8.09104 14.866 4.95703 11 4.95703C7.13401 4.95703 4 8.09104 4 11.957C4 15.823 7.13401 18.957 11 18.957Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M20 20.957L16 16.957",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h=r.Z.div` display: flex; cursor: pointer; &[data-theme='marryBaby'] { input { width: 20px; height: 20px; border: 1.3px solid ${o.r.mbColors.midGray}; border-radius: 9px; cursor: inherit; transition: border-color 0.4s, box-shadow 0.4s; &:hover, &:active { border-color: ${o.r.mbColors.cobalt}; box-shadow: 0 0 2px 2px ${o.r.mbColors.cobalt}; } &:focus-visible { border: 2px solid ${o.r.mbColors.cobalt}; } &:checked { border: 0; background: ${o.r.mbColors.cobalt} url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 4L3.45455 6L8 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") no-repeat center center; } } label { max-width: 15rem; margin-left: 8px; width: calc(100% - 24px); cursor: inherit; font-weight: 600; font-size: 12px; line-height: 20px; letter-spacing: -0.2px; color: ${o.r.mbColors.gray}; } } input { width: 20px; height: 20px; border: solid 1px ${o.r.colors.gray500}; border-radius: 2px; cursor: inherit; transition: border-color 0.4s, box-shadow 0.4s; &:hover, &:active { border-color: ${o.r.colors.primaryBase}; box-shadow: 0 0 2px 2px ${o.r.colors.primary200}; } &:focus-visible { border: 2px solid ${o.r.colors.primaryActive}; } &:checked { border: 0; background: ${o.r.colors.primaryBase} url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1L4.125 8L1 4.81819' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") no-repeat center center; } } label { max-width: 15rem; margin-left: 8px; font-weight: ${o.r.sizes.fwRegular}; width: calc(100% - 24px); cursor: inherit; ${n.M.mbDown} { font-size: 14px; line-height: 24px; } ${n.M.mbUp} { font-size: 16px; line-height: 22px; } } &[data-is-rectangle] > input { position: relative; width: unset; height: unset; padding: 5px 12px; border: 1px solid ${o.r.colors.neutral100}; border-radius: 32px; &::after { color: ${o.r.colors.gray800}; content: attr(data-label-text); font-size: 13px; } &:checked { border-color: ${o.r.colors.primary50}; &::after { color: ${o.r.colors.primaryBase}; } } &:checked { background: ${o.r.colors.primary50}; } } &[data-disabled] { color: ${o.r.colors.gray300}; cursor: not-allowed; input { border-color: ${o.r.colors.gray300}; &:hover { border-color: ${o.r.colors.gray300}; box-shadow: none; } } } `,Checkbox=({label:e,name:t,checked:a,className:r,isDisabled:n,onChange:o,value:i,isRectangle:c,inputDataTestId:s,siteType:d})=>l.createElement(h,{className:r,"data-disabled":n||void 0,"data-is-rectangle":c||void 0,"data-label-text":e,"data-theme":d},l.createElement("input",{type:"checkbox",checked:a,name:t,onChange:()=>o(i,!a),disabled:n,value:i,id:`${t}-${i}`,"data-label-text":e,"data-testid":s}),!c&&l.createElement("label",{htmlFor:`${t}-${i}`},e)),m=r.Z.div` display: flex; align-items: center; justify-content: space-between; user-select: none; li { transition: all 0.3s ease; } [data-page-active] { background: ${o.r.colors.primaryBase}; color: ${o.r.colors.white}; > a { color: ${o.r.colors.white}; } } `,g=r.Z.div` display: flex; width: 32px; height: 32px; box-sizing: border-box; align-items: center; justify-content: center; border: 1px solid ${o.r.colors.gray200}; margin: 0 2px; border-radius: 4px; color: ${o.r.colors.gray800}; cursor: pointer; font-size: 14px; font-weight: ${o.r.sizes.fwBold}; &[data-last-page] { border: none; background-color: ${o.r.colors.gray100}; cursor: not-allowed; pointer-events: none; svg { path { stroke: ${o.r.colors.gray300}; } } } `,b=r.Z.li` display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; margin: 0 2px; border-radius: 4px; color: ${o.r.colors.gray800}; cursor: pointer; font-size: 14px; font-weight: ${o.r.sizes.fwBold}; > a { color: ${o.r.colors.gray800}; text-decoration: unset; display: block; width: 100%; height: 100%; line-height: 32px; text-align: center; } `,RenderPagiWithDots=({pagesAmount:e,activePage:t,handlePageChange:a,handleClick:r,href:o,queryPageName:i="page"})=>{let c=[...Array(e)].map((e,t)=>t+1),[s,d]=(0,l.useState)(t<=4?c.slice(0,5):t>=c.length-3?c.slice(c.length-5,c.length):c.slice(t-2,t+1));return(0,l.useEffect)(()=>{t<=4?d(c.slice(0,5)):t>=c.length-3?d(c.slice(c.length-5,c.length)):d(c.slice(t-2,t+1))},[t]),l.createElement(l.Fragment,null,t>4&&l.createElement(l.Fragment,null,l.createElement(b,{onClick:()=>a(1)},o?l.createElement("a",{href:o,onClick:r},1):1),l.createElement(b,null,"...")),s.map(e=>l.createElement(b,{key:`pagination+${e}`,"data-page-active":e===t||void 0,onClick:()=>a(e)},o?l.createElement("a",{href:(0,n.f)(o,e,i),onClick:r},e):e)),ta(c.length)},o?l.createElement("a",{href:(0,n.f)(o,c.length,i),onClick:r},c.length):c.length)))},Pagination=({className:e,pagesAmount:t,currentPage:a,onChange:r,onClick:o,style:i,href:c,queryPageName:s="page"})=>{let d=[...Array(t)].map((e,t)=>t+1),[u,p]=(0,l.useState)(a),h=(0,l.useMemo)(()=>c&&c.endsWith("&page=")?c.replace("&page=",""):c,[c]),f=t-1,handlePageChange=e=>{e<=t&&e>0&&(p(e),r(e))},handleClick=e=>{o&&o(e)};return(0,l.useEffect)(()=>{p(a)},[a]),l.createElement(m,{className:e,style:i},l.createElement(g,{className:"prev-page",onClick:()=>handlePageChange(u-1),"data-last-page":1===u||void 0},h?l.createElement("a",{href:(0,n.f)(h,u,s),onClick:handleClick},l.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},l.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):l.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},l.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),d.length>8?l.createElement(RenderPagiWithDots,{pagesAmount:t,activePage:u,handlePageChange:handlePageChange,handleClick:handleClick,href:h,queryPageName:s}):d.map(e=>l.createElement(b,{key:`pagination+${e}`,"data-page-active":e===u||void 0,onClick:()=>handlePageChange(e)},h?l.createElement("a",{href:(0,n.f)(h,e,s),onClick:handleClick},e):e)),l.createElement(g,{className:"next-page",onClick:()=>handlePageChange(u+1),"data-last-page":u===f+1||void 0},h?l.createElement("a",{href:(0,n.f)(h,u,s),onClick:handleClick},l.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},l.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):l.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none"},l.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},f=r.Z.div` position: relative; width: 100%; &[data-has-error] { input { border-color: ${o.r.colors.red700}; } } input { width: 100%; padding: 12px 16px; border: solid 1px ${o.r.colors.gray200}; border-radius: ${o.r.borderRadius}; &:active, &:focus, .focused & { border-color: ${o.r.colors.primaryBase}; box-shadow: 0px 0px 2px 2px ${o.r.colors.primary200}; } &:disabled { background-color: ${o.r.colors.gray100}; cursor: not-allowed; } } &[data-has-action-icon] { input { padding: 12px 48px 12px 16px; } } &[data-has-display-icon] { input { padding: 12px 16px 12px 48px; } } &[data-has-action-icon][data-has-display-icon] { input { padding: 12px 48px; } } &[data-size='lg'] { input { font-size: 16px; font-weight: ${o.r.sizes.fwRegular}; ${n.M.mbDown} { font-size: 22px; line-height: 1.2; } ${n.M.mbUp} { font-size: 26px; line-height: 1.2; } } } &[data-size='md'] { input { font-weight: ${o.r.sizes.fwRegular}; ${n.M.mbDown} { font-size: 14px; line-height: 1.2; } ${n.M.mbUp} { font-size: 16px; line-height: 1.2; } } } &[data-size='sm'] { input { font-weight: ${o.r.sizes.fwRegular}; ${n.M.mbDown} { font-size: 13px; line-height: 1.5; } ${n.M.mbUp} { font-size: 13px; line-height: 1.5; } } } `,C=l.forwardRef((e,t)=>{var{name:a,errorMessage:r,autoComplete:n="off",defaultValue:o,actionIcon:s,displayIcon:d,isDeleteAction:u,onActionClick:p,label:h,placeholder:m,className:g,onChange:b,onKeyPress:C,isDisabled:E,CustomInput:y,size:x,style:v,autoFocus:w,type:S="text",isNumerousKeyboard:P=!1,onFocus:D,enterKeyHint:L,nativeOnChange:I}=e,k=(0,i._)(e,["name","errorMessage","autoComplete","defaultValue","actionIcon","displayIcon","isDeleteAction","onActionClick","label","placeholder","className","onChange","onKeyPress","isDisabled","CustomInput","size","style","autoFocus","type","isNumerousKeyboard","onFocus","enterKeyHint","nativeOnChange"]);let[F,M]=(0,l.useState)(o),handleOnChange=e=>{M(e),b(e)};return l.createElement(f,{"data-size":x,className:g,"data-has-action-icon":!!s||void 0,"data-has-display-icon":!!d||void 0,"data-has-error":r&&r.length>0||void 0,style:v},h&&l.createElement(c.L,{size:"label2",htmlFor:a,className:"inputLabel"},h),l.createElement("div",{style:{position:"relative"}},y||l.createElement("input",Object.assign({id:a,name:a,placeholder:m,onChange:null!=I?I:e=>handleOnChange(e.target.value),onKeyPress:C,type:S,"aria-label":S,disabled:E,value:F,autoComplete:n,ref:t,autoFocus:w,inputMode:P||"number"===S?"numeric":S,pattern:P?"[0-9]*":".*",onFocus:D,enterKeyHint:L},k)),d&&l.createElement(c.S,{className:"displayIcon"},d),s&&l.createElement(c.a,{className:"actionIcon",onClick:()=>{var e;u&&(M(""),null===(e=t.current)||void 0===e||e.focus()),p&&p()}},s)),r&&r.length>0&&l.createElement(c.b,{className:"errorLabel"},r))});C.displayName="PureInput";let E=[320,420,640,750,828,1080,1200,1440,1920,2048],defaultLoader=({src:e,width:t,quality:a,locale:l})=>{try{let r="undefined"!=typeof window?window.location.origin:s.v[l]?`https://${s.v[l]}`:"";if(!r)return e;let n=new URL(e,r);return n.searchParams.set("w",String(t)),n.searchParams.set("q",String(null!=a?a:75)),n.toString()}catch(t){return e}},ImageWrapV2=e=>{var{alt:t,backupSrc:a,src:r,placeholderSrc:n,style:o,ref:c,unoptimized:s=!1,quality:u,sizes:p,width:h}=e,m=(0,i._)(e,["alt","backupSrc","src","placeholderSrc","style","ref","unoptimized","quality","sizes","width"]);let[g,b]=(0,l.useState)(!1),{locale:f="vi-VN"}=(0,d.u)(),C=(0,l.useMemo)(()=>s?[]:function(e){if(e.sizes)return E;if(e.width){let t=Math.max(1,Math.round(e.width));return Array.from(new Set([t,Math.min(2*t,2048)])).sort((e,t)=>e-t)}return E}({sizes:p,width:h}),[p,h,s]),x=(0,l.useMemo)(()=>{if(!s)return C.map(e=>`${defaultLoader({src:r,width:e,quality:u,locale:f})} ${e}w`).join(", ")},[s,C,r,u]),v=(0,l.useMemo)(()=>{if(s)return r;let e=C.length?C[C.length-1]:null!=h?h:1920;return defaultLoader({src:r,width:e,quality:u,locale:f})},[s,C,r,u,h]);return l.createElement(y,Object.assign({loading:"lazy",alt:t,srcSet:x,onError:()=>!g&&b(!0),src:g?a||v:v||a,style:Object.assign(Object.assign({},n?{backgroundImage:`url(${n})`}:{}),o),"data-has-placeholder":!!n,sizes:p,ref:c},m))},y=r.Z.img` &[data-has-placeholder='true'] { background-position: center; background-repeat: no-repeat; background-size: cover; } `,x=(0,r.Z)(u.I)` box-shadow: 0px 0px 1px 0px #0000000a, 0px 2px 8px 0px #0000000a, 0px 10px 16px 0px #0000000a; border-radius: 0.75rem; overflow: hidden; input.mantine-Input-input { border: none; font-size: 0.8125rem; line-height: 1.25rem; } .close-icon-wrapper { display: none; background-color: ${o.r.colors.gray400}; border-radius: 100%; cursor: pointer; width: 20px; height: 20px; padding: 2px; svg { pointer-events: none; } &[data-is-disabled='true'] { opacity: 0.2; cursor: not-allowed; pointer-events: none; } } input.mantine-Input-input:focus ~ .mantine-Input-rightSection .close-icon-wrapper, input.mantine-Input-input:not(:placeholder-shown) ~ .mantine-Input-rightSection .close-icon-wrapper { display: flex; } `,v=(0,r.Z)(Search2)` color: ${o.r.colors.primaryBase}; width: 20px; height: 20px; `,SearchInput=e=>{let{loading:t,disabled:a,placeholder:r,value:n,onChange:o,icon:c=l.createElement(v,null),className:s,style:d,enableClear:u}=e,h=(0,i._)(e,["loading","disabled","placeholder","value","onChange","icon","className","style","enableClear"]);return l.createElement(x,Object.assign({disabled:t||a,size:"lg",value:n,onChangeRaw:e=>{o(e.currentTarget.value)},type:"text",placeholder:r,className:s,icon:c,style:d,rightSection:u?l.createElement("div",{className:"close-icon-wrapper",onClick:()=>{o("")},"data-is-disabled":!n},l.createElement(p.C,{fill:"white",width:"100%",height:"100%"})):void 0},h,{"data-event-label":n}))}},"2Y14":function(e,t,a){a.d(t,{B:function(){return BabyPoopForm}});var l=a("mHfz"),r=a("q1tI"),n=a("/npG"),o=a("mYVa"),i=a("Eso5"),c=a("iuhU"),s=a("HKYo"),d=a("OFra"),u=a("GXD3"),p=a("vffg"),h=a("BN2B"),m=(0,n.k)((e,{hasOnClickFn:t})=>({root:{position:"relative",display:"flex",flexDirection:"column",gap:(0,o.h)(16)},sponsorBox:{display:"flex",gap:(0,o.h)(12),alignItems:"center",backgroundColor:e.colors.neutral[0],border:`1px solid ${e.colors.neutral[1]}`,borderRadius:(0,o.h)(4),padding:"4px 12px",alignSelf:"flex-start"},sponsorLogo:{maxHeight:(0,o.h)(32)},btn:{minWidth:(0,o.h)(180),[e.fn.largerThan("sm")]:{alignSelf:"flex-end"},visibility:t?"visible":"hidden"}}));let BabyPoopForm=e=>{var{babyPoopPage:t,onClickFindOut:a,currentUrl:n,sponsorLogo:o,btnProps:g,styles:b,classNames:f}=e,C=(0,l._)(e,["babyPoopPage","onClickFindOut","currentUrl","sponsorLogo","btnProps","styles","classNames"]);let{t:E}=(0,u.u)(),{classes:y}=m({hasOnClickFn:!!a},{name:"BabyPoopForm",styles:b,classNames:f}),{classes:x={}}=(0,r.useContext)(p.C);return r.createElement(h.H.FormRow,null,r.createElement(i.x,Object.assign({className:y.root},C),o&&r.createElement(i.x,{className:y.sponsorBox},r.createElement(s.T,{size:"p4"},E("common.sponsoredBy")),r.createElement("img",{loading:"lazy",src:o,alt:"sponsor",className:y.sponsorLogo})),r.createElement(s.T,{size:"p3",as:"div",className:"description",dangerouslySetInnerHTML:{__html:t.description}}),r.createElement(d.B,Object.assign({className:(0,c.default)(y.btn,x.submitBtn),onClick:a,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:n},g),E("babyPoop.findOut"))))}},xM4c:function(e,t,a){a.d(t,{C:function(){return n},F:function(){return o},G:function(){return GlobalTextStyleNew},T:function(){return TemplateProvider},a:function(){return s},u:function(){return useTemplateVariant}});var l,r,n,o,i=a("mYVa"),c=a("q1tI");(l=n||(n={})).LEADGEN="leadgen",l.NONE="none",(r=o||(o={}))[r.regular=400]="regular",r[r.halfBold=500]="halfBold",r[r.semiBold=600]="semiBold",r[r.bold=700]="bold";let s={[n.NONE]:{fontSize:{base:[(0,i.h)(16),(0,i.h)(16)],lg:[(0,i.h)(18),(0,i.h)(16)],md:[(0,i.h)(18),(0,i.h)(16)],sm:[(0,i.h)(16),(0,i.h)(14)],xs:[(0,i.h)(14),(0,i.h)(12)],s1:[(0,i.h)(22),(0,i.h)(18)],s2:[(0,i.h)(18),(0,i.h)(16)],s3:[(0,i.h)(16),(0,i.h)(14)],s4:[(0,i.h)(14),(0,i.h)(12)],s5:[(0,i.h)(12),(0,i.h)(12)],p1:[(0,i.h)(18),(0,i.h)(16)],p2:[(0,i.h)(16),(0,i.h)(16)],p3:[(0,i.h)(16),(0,i.h)(14)],p4:[(0,i.h)(14),(0,i.h)(12)],p5:[(0,i.h)(12),(0,i.h)(12)],c1:[(0,i.h)(16),(0,i.h)(14)],c2:[(0,i.h)(14),(0,i.h)(12)],n1:[(0,i.h)(12),(0,i.h)(12)],label1:[(0,i.h)(14),(0,i.h)(14)],label2:[(0,i.h)(12),(0,i.h)(12)],h1:[(0,i.h)(40),(0,i.h)(26)],h2:[(0,i.h)(32),(0,i.h)(24)],h3:[(0,i.h)(26),(0,i.h)(20)],h4:[(0,i.h)(22),(0,i.h)(18)],h5:[(0,i.h)(18),(0,i.h)(16)],h5New:[(0,i.h)(20),(0,i.h)(18)],h6:[(0,i.h)(16),(0,i.h)(14)],title1:[(0,i.h)(17),(0,i.h)(17)],title2:[(0,i.h)(15),(0,i.h)(15)],body2:[(0,i.h)(15),(0,i.h)(15)]},lineHeight:{base:[(0,i.h)(24),(0,i.h)(24)],lg:[(0,i.h)(32),(0,i.h)(28)],md:[(0,i.h)(32),(0,i.h)(28)],sm:[(0,i.h)(24),(0,i.h)(22)],xs:[(0,i.h)(24),(0,i.h)(18)],s1:[(0,i.h)(32),(0,i.h)(26)],s2:[(0,i.h)(28),(0,i.h)(24)],s3:[(0,i.h)(24),(0,i.h)(24)],s4:[(0,i.h)(22),(0,i.h)(18)],s5:[(0,i.h)(18),(0,i.h)(18)],p1:[(0,i.h)(28),(0,i.h)(28)],p2:[(0,i.h)(24),(0,i.h)(24)],p3:[(0,i.h)(24),(0,i.h)(22)],p4:[(0,i.h)(22),(0,i.h)(18)],c1:[(0,i.h)(24),(0,i.h)(22)],c2:[(0,i.h)(22),(0,i.h)(18)],n1:[(0,i.h)(18),(0,i.h)(18)],label1:[(0,i.h)(22),(0,i.h)(22)],label2:[(0,i.h)(18),(0,i.h)(18)],h1:[(0,i.h)(52),(0,i.h)(34)],h2:[(0,i.h)(42),(0,i.h)(32)],h3:[(0,i.h)(36),(0,i.h)(26)],h4:[(0,i.h)(32),(0,i.h)(26)],h5:[(0,i.h)(28),(0,i.h)(24)],h5New:[(0,i.h)(28),(0,i.h)(24)],h6:[(0,i.h)(24),(0,i.h)(22)],title1:[(0,i.h)(24),(0,i.h)(24)],title2:[(0,i.h)(24),(0,i.h)(24)],body2:[(0,i.h)(24),(0,i.h)(24)]},letterSpacing:{lg:[-.2,0],md:[-.2,0],sm:[0,-.2],s1:[-.6,-.6],s2:[-.4,-.2],s3:[0,-.2],s4:[0,-.2],p1:[-.2,-.2],p2:[0,-.2],p3:[0,-.2],p4:[-.2,0],label1:[0,-.2],h1:[-1.2,-.9],h2:[-1,-.8],h3:[-.8,-.7],h4:[-.6,-.6],h5:[-.2,-.2],h5New:[-.4,-.4],h6:[0,-.2],title1:[-.4,-.4],title2:[-.3,-.3],body2:[-.3,-.3]},fontWeightBySize:{s1:o.semiBold,s2:o.semiBold,s3:o.semiBold,s4:o.semiBold,h1:o.bold,h2:o.bold,h3:o.bold,h4:o.bold,h5:o.bold,h5New:o.semiBold,h6:o.bold},fontWeight:o},[n.LEADGEN]:{fontSize:{base:[(0,i.h)(16),(0,i.h)(16)],lg:[(0,i.h)(18),(0,i.h)(16)],md:[(0,i.h)(18),(0,i.h)(16)],sm:[(0,i.h)(16),(0,i.h)(14)],xs:[(0,i.h)(14),(0,i.h)(12)],s1:[(0,i.h)(22),(0,i.h)(18)],s2:[(0,i.h)(18),(0,i.h)(16)],s3:[(0,i.h)(16),(0,i.h)(14)],s4:[(0,i.h)(14),(0,i.h)(12)],s5:[(0,i.h)(12),(0,i.h)(12)],p1:[(0,i.h)(17),(0,i.h)(17)],p2:[(0,i.h)(15),(0,i.h)(15)],p3:[(0,i.h)(13),(0,i.h)(13)],p4:[(0,i.h)(14),(0,i.h)(12)],p5:[(0,i.h)(12),(0,i.h)(12)],c1:[(0,i.h)(12),(0,i.h)(12)],c2:[(0,i.h)(11),(0,i.h)(11)],n1:[(0,i.h)(12),(0,i.h)(12)],label1:[(0,i.h)(14),(0,i.h)(14)],label2:[(0,i.h)(12),(0,i.h)(12)],h1:[(0,i.h)(40),(0,i.h)(26)],h2:[(0,i.h)(32),(0,i.h)(24)],h3:[(0,i.h)(26),(0,i.h)(22)],h4:[(0,i.h)(22),(0,i.h)(20)],h5:[(0,i.h)(18),(0,i.h)(16)],h5New:[(0,i.h)(20),(0,i.h)(18)],h6:[(0,i.h)(16),(0,i.h)(14)],title1:[(0,i.h)(17),(0,i.h)(17)],title2:[(0,i.h)(15),(0,i.h)(15)],body2:[(0,i.h)(15),(0,i.h)(15)],overline:[(0,i.h)(11),(0,i.h)(11)],subText:[(0,i.h)(10),(0,i.h)(10)]},lineHeight:{base:[(0,i.h)(24),(0,i.h)(24)],lg:[(0,i.h)(32),(0,i.h)(28)],md:[(0,i.h)(32),(0,i.h)(28)],sm:[(0,i.h)(24),(0,i.h)(22)],xs:[(0,i.h)(24),(0,i.h)(18)],s1:[(0,i.h)(32),(0,i.h)(26)],s2:[(0,i.h)(28),(0,i.h)(24)],s3:[(0,i.h)(24),(0,i.h)(24)],s4:[(0,i.h)(22),(0,i.h)(18)],s5:[(0,i.h)(18),(0,i.h)(18)],p1:[(0,i.h)(28),(0,i.h)(28)],p2:[(0,i.h)(24),(0,i.h)(24)],p3:[(0,i.h)(20),(0,i.h)(20)],p4:[(0,i.h)(22),(0,i.h)(18)],c1:[(0,i.h)(16),(0,i.h)(16)],c2:[(0,i.h)(22),(0,i.h)(18)],n1:[(0,i.h)(18),(0,i.h)(18)],label1:[(0,i.h)(22),(0,i.h)(22)],label2:[(0,i.h)(18),(0,i.h)(18)],h1:[(0,i.h)(48),(0,i.h)(34)],h2:[(0,i.h)(40),(0,i.h)(32)],h3:[(0,i.h)(32),(0,i.h)(32)],h4:[(0,i.h)(32),(0,i.h)(28)],h5:[(0,i.h)(28),(0,i.h)(24)],h5New:[(0,i.h)(28),(0,i.h)(24)],h6:[(0,i.h)(24),(0,i.h)(22)],title1:[(0,i.h)(24),(0,i.h)(24)],title2:[(0,i.h)(24),(0,i.h)(24)],body2:[(0,i.h)(24),(0,i.h)(24)],overline:[(0,i.h)(12),(0,i.h)(12)],subText:[(0,i.h)(12),(0,i.h)(12)]},letterSpacing:{lg:[-.2,0],md:[-.2,0],sm:[0,-.2],s1:[-.6,-.6],s2:[-.4,-.2],s3:[0,-.2],s4:[0,-.2],p1:[-.4,-.4],p2:[-.3,-.3],p3:[-.3,-.3],p4:[-.2,0],c1:[-.2,-.2],c2:[-.2,-.2],label1:[0,-.2],h1:[-1.2,-.9],h2:[-1,-.8],h3:[-.6,-.6],h4:[-.6,-.4],h5:[-.2,-.2],h5New:[-.4,-.4],h6:[0,-.2],n1:[-.2,-.2],title1:[-.4,-.4],title2:[-.3,-.3],body2:[-.3,-.3],overline:[-.2,-.2],subText:[-.2,-.2]},fontWeightBySize:{s1:o.semiBold,s2:o.semiBold,s3:o.semiBold,s4:o.semiBold,h1:o.bold,h2:o.bold,h3:o.bold,h4:o.bold,h5:o.bold,h5New:o.semiBold,h6:o.bold},fontWeight:o}},GlobalTextStyleNew=e=>({[n.LEADGEN]:{h1:{fontSize:(0,i.h)(40),lineHeight:(0,i.h)(48),letterSpacing:"-1.2px",[e.fn.smallerThan("sm")]:{fontSize:(0,i.h)(26),lineHeight:(0,i.h)(32),letterSpacing:"-0.6px"}},h2:{fontSize:(0,i.h)(32),lineHeight:(0,i.h)(40),letterSpacing:"-1px",[e.fn.smallerThan("sm")]:{fontSize:(0,i.h)(20),lineHeight:(0,i.h)(28),letterSpacing:"-0.4px"}},h3:{fontSize:(0,i.h)(26),lineHeight:(0,i.h)(32),letterSpacing:"-0.6px",[e.fn.smallerThan("sm")]:{fontSize:(0,i.h)(20),lineHeight:(0,i.h)(28),letterSpacing:"-0.4px"}},p1:{fontSize:(0,i.h)(17),lineHeight:(0,i.h)(28),letterSpacing:"-0.4px"},p2:{fontSize:(0,i.h)(15),lineHeight:(0,i.h)(24),letterSpacing:"-0.3px"}}}),d=(0,c.createContext)(n.NONE),TemplateProvider=({variant:e=n.NONE,children:t})=>c.createElement(d.Provider,{value:e},t),useTemplateVariant=()=>(0,c.useContext)(d)},sdp3:function(e,t,a){a.d(t,{C:function(){return Container}});var l=a("q1tI");let Container=({children:e,className:t,style:a,type:r})=>l.createElement("div",{className:`d76E4SH ${t||""}`,style:a,"data-type":r},e)},bHfH:function(e,t,a){a.d(t,{D:function(){return DueDateForm},a:function(){return j}});var l,r,n,o,i=a("mHfz"),c=a("q1tI"),s=a("8vDj"),d=a("iuhU"),u=a("DA0W"),p=a("SPK5"),h=a("FQtM"),m=a("Eso5"),g=a("25AQ"),b=a("vu21"),f=a("tiO5"),C=a("cChf"),E=a("ZFu2"),y=a("Wgwc"),x=a.n(y),v=a("erMh"),w=a("yEeW"),S=a("HKYo"),P=a("GXD3"),D=a("BN2B"),L=a("fkrl"),I=a("vffg"),k=a("F1xy"),F=a("iBNF");(l=n||(n={}))[l.lastPeriod=0]="lastPeriod",l[l.conception=1]="conception",l[l.IVF=2]="IVF",l[l.IUI=3]="IUI",l[l.ultrasound=4]="ultrasound";let M={[String(n.lastPeriod)]:{value:String(n.lastPeriod),icon:b.L,label:"dueDatePage.lastPeriod"},[String(n.IVF)]:{value:String(n.IVF),icon:e=>{var{isMarryBaby:t,size:a=24}=e,l=(0,i._)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},l);return t?c.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),c.createElement("path",{d:"M15.804 28.278a3.16 3.16 0 0 1-3.18-3.208l.128-20.306 6.405.008-.128 20.307c-.012 1.757-1.452 3.191-3.225 3.2",fill:"#fff"}),c.createElement("path",{d:"m12.72 10.266-.116 14.788c-.011 1.757 1.423 3.197 3.18 3.208 1.774-.008 3.214-1.442 3.225-3.2V10.267",fill:"#FFEAF1"}),c.createElement("circle",{cx:"14.662",cy:"19.027",transform:"rotate(-49.83 14.662 19.027)",fill:"#3E3F58",r:"1.012"}),c.createElement("circle",{cx:"16.326",cy:"13.426",r:"1.012",transform:"rotate(-49.83 16.326 13.426)",fill:"#3E3F58"}),c.createElement("path",{d:"m14.662 19.026.087 1.022a.98.98 0 0 0 .344.667.98.98 0 0 1 .32.98l-.123.51m1.036-8.779.087 1.022a.98.98 0 0 0 .344.666.98.98 0 0 1 .32.98l-.123.511",stroke:"#3E3F58"}),c.createElement("path",{d:"M18.833 27.597a3.94 3.94 0 0 1-3.02 1.408 4 4 0 0 1-2.795-1.148 3.98 3.98 0 0 1-1.14-2.795l.108-20.553c0-.426.344-.756.753-.738.426 0 .757.345.738.754l-.108 20.553c.002.656.248 1.256.697 1.733a2.42 2.42 0 0 0 1.727.706 2.483 2.483 0 0 0 2.47-2.462l.109-20.553c0-.426.344-.757.753-.738.426 0 .757.344.738.754l-.108 20.553a3.85 3.85 0 0 1-.922 2.526",fill:"#202135"}),c.createElement("path",{d:"M20.753 4.975a.75.75 0 0 1-.58.262l-8.714-.027a.727.727 0 0 1-.738-.754c0-.425.344-.756.754-.737l8.713.026c.426 0 .756.344.738.754a.66.66 0 0 1-.173.476",fill:"#202135"})):c.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),c.createElement("path",{d:"M13.064 5.794a17.8 17.8 0 0 1 3.34-4.638l4.26 2.881a17.8 17.8 0 0 0-3.272 4.507l-1.08 2.12a.65.65 0 0 0 .124.76 7.9 7.9 0 0 1 2.296 4.81c.027.265-1.141 5.997-9.376 5.573-1.587-.082-5.724-1.269-6.12-2.86a8 8 0 0 1-.233-2.161c.124-4.165 3.718-7.648 7.884-7.647h.098a.65.65 0 0 0 .59-.36z",fill:"#BCDEFF"}),c.createElement("path",{d:"M20.75 3.234 16.696.496a.886.886 0 1 0-.992 1.469l4.056 2.738a.886.886 0 0 0 .992-1.469",fill:"#E3F2FF"}),c.createElement("path",{d:"M18.771 17.024a7.87 7.87 0 0 1-2.7 5.944A4.2 4.2 0 0 1 13.301 24H8.473a4.2 4.2 0 0 1-2.769-1.03 7.9 7.9 0 0 1-2.468-4.023c.924.468 2.191.805 3.922.805 1.142 0 2.01-.346 2.775-.834q.323-.21.629-.446c1.973-1.516 3.524-3.668 8.17-2.238q.04.39.04.79",fill:"#2D87F3"}),c.createElement("path",{d:"M11.858 15.5c-1.78.348-3.096-1.608-2.134-3.121a2.06 2.06 0 0 1 1.529-.944q.303-.03.588.025a.27.27 0 0 0 .268-.107c.282-.373.737-.573 1.2-.639.224-.031.374-.24.379-.44.021-.794.657-1.311 1.288-1.234.183.022.223.27.058.35l-.012.006a.9.9 0 0 0-.28.196c-.213.263-.187.407-.153.6.03.167.066.37-.04.715a1.45 1.45 0 0 1-.504.7c-.255.19-.445.23-.592.263-.088.019-.16.034-.223.076a.27.27 0 0 0-.07.379c.184.27.306.587.344.934a2.063 2.063 0 0 1-1.646 2.24",fill:"#fff"}),c.createElement("ellipse",{cx:"10",cy:"20.5",rx:"3",ry:"2.5",fill:"#FF6F4D"}))},label:"dueDatePage.ivf"},[String(n.conception)]:{value:String(n.conception),icon:e=>{var{isMarryBaby:t,size:a=24}=e,l=(0,i._)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},l);return t?c.createElement("svg",Object.assign({viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),c.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 1 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"}),c.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.266",fill:"#E85388"}),c.createElement("path",{d:"M9.834 25.333a2.667 2.667 0 1 0-2.298-1.312l-.084.084a3.25 3.25 0 0 0-.952 2.298c0 .726-.41 1.39-1.06 1.715l-1.238.619a.667.667 0 0 0 .596 1.193l1.24-.62a3.25 3.25 0 0 0 1.796-2.907c0-.508.202-.995.561-1.355l.084-.084c.397.235.86.37 1.355.37",fill:"#3E3F58"})):c.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),c.createElement("circle",{cx:"9",cy:"6.75",fill:"#91CAFF",r:"6.75"}),c.createElement("circle",{cx:"9",cy:"6.75",fill:"#2D87F3",r:"5.4"}),c.createElement("path",{d:"M1.789 12.2a.245.245 0 0 1-.02-.489c.073-.006 1.795-.167 1.761-1.605-.013-.587.15-1.057.485-1.397.524-.53 1.273-.528 1.305-.527a.245.245 0 0 1-.002.49h-.002c-.011 0-.582.004-.955.385-.236.24-.351.59-.34 1.038.018.793-.367 1.41-1.114 1.787a3.3 3.3 0 0 1-1.118.319M.75 17.774a.245.245 0 0 1 .226-.263c.073-.006 1.786-.162 1.749-1.593-.016-.586.146-1.055.48-1.392.521-.528 1.27-.524 1.3-.523a.245.245 0 0 1-.006.49c-.015 0-.58.004-.949.38q-.352.362-.335 1.033c.02.791-.362 1.406-1.106 1.78a3.3 3.3 0 0 1-1.095.313.245.245 0 0 1-.263-.225",fill:"#D2D6DC"}),c.createElement("path",{d:"M8.659 5.035c-.562-.561-1.956-.078-2.699.665-.407.407-.635.91-.665 1.373v.124l1.145 1.16.181.042c.464-.03.966-.258 1.373-.665.743-.743 1.226-2.137.665-2.699",fill:"#E3F2FF"}),c.createElement("path",{d:"m5.295 7.073-.292.75a.55.55 0 0 0 .124.589l.155.155a.55.55 0 0 0 .589.124l.75-.292z",fill:"#91CAFF"}),c.createElement("path",{d:"M8.098 11.358a.87.87 0 0 0-.233-.523c-.562-.562-1.956-.079-2.699.664-.407.408-.635.91-.665 1.373v.125l1.146 1.16.18.042c.464-.03.966-.258 1.374-.666.566-.566.98-1.51.897-2.175",fill:"#E3F2FF"}),c.createElement("path",{d:"m4.5 12.872-.29.75a.55.55 0 0 0 .123.589l.156.155a.55.55 0 0 0 .588.124l.75-.292z",fill:"#91CAFF"}))},label:"dueDatePage.conceptionDate"},[String(n.IUI)]:{value:String(n.IUI),icon:e=>{var{isMarryBaby:t,size:a=24}=e,l=(0,i._)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},l);return c.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),c.createElement("ellipse",{cx:"10",cy:"7.5",rx:"7.5",ry:"7.5",fill:"#91CAFF"}),c.createElement("ellipse",{cx:"10",cy:"7.5",rx:"6",ry:"6",fill:"#2D87F3"}),c.createElement("path",{d:"M1.98877 13.5566C1.8483 13.5566 1.72914 13.4487 1.71769 13.3062C1.7056 13.1563 1.81732 13.025 1.9672 13.013C2.04819 13.0061 3.96085 12.8267 3.92397 11.2296C3.90887 10.5766 4.09013 10.0544 4.46266 9.6775C5.04496 9.08834 5.87737 9.09055 5.91289 9.09138C6.06324 9.09309 6.18376 9.21636 6.18204 9.36675C6.18033 9.51603 6.05877 9.63593 5.90985 9.63593C5.9091 9.63593 5.90835 9.63593 5.9076 9.63593C5.8958 9.63593 5.26174 9.64041 4.84671 10.0637C4.58418 10.3314 4.4569 10.7194 4.46838 11.2171C4.48874 12.0983 4.06094 12.7846 3.23124 13.202C2.63342 13.5027 2.03606 13.5537 2.01095 13.5558C2.00351 13.5563 1.99611 13.5566 1.98877 13.5566Z",fill:"#D2D6DC"}),c.createElement("path",{d:"M0.834813 19.7487C0.823187 19.5988 0.935297 19.4678 1.08522 19.4562C1.16581 19.4496 3.06971 19.2768 3.02807 17.6868C3.011 17.0352 3.1904 16.5146 3.56121 16.1394C4.14076 15.5531 4.97192 15.5577 5.00687 15.5587C5.15722 15.5608 5.27734 15.6845 5.27516 15.8349C5.27301 15.9849 5.15117 16.106 4.99993 16.1032C4.99989 16.1032 4.99982 16.1032 4.99975 16.1032C4.98315 16.1032 4.35528 16.1074 3.9453 16.5255C3.68491 16.791 3.55946 17.177 3.57245 17.6725C3.59545 18.552 3.17051 19.2358 2.34353 19.6499C1.74807 19.948 1.15233 19.9971 1.12728 19.9991C0.976577 20.0107 0.846367 19.898 0.834813 19.7487Z",fill:"#D2D6DC"}),c.createElement("path",{d:"M9.62226 5.59508C8.99818 4.971 7.44969 5.50769 6.62421 6.33313C6.1713 6.78604 5.91828 7.34408 5.88477 7.85874V7.99721L7.15753 9.28601L7.35857 9.33258C7.87323 9.29906 8.43127 9.04605 8.88418 8.59314C9.70966 7.76766 10.2463 6.21916 9.62226 5.59508Z",fill:"#E3F2FF"}),c.createElement("path",{d:"M5.88516 7.85889L5.5611 8.69259C5.47325 8.91856 5.52723 9.17508 5.69865 9.3465L5.87139 9.51925C5.95823 9.60609 6.06693 9.66256 6.18243 9.68584C6.29486 9.70856 6.4137 9.70005 6.52509 9.65676L7.3588 9.3327L5.88516 7.85889Z",fill:"#91CAFF"}),c.createElement("path",{d:"M8.99894 12.6201C8.97018 12.3889 8.88805 12.1875 8.73945 12.0389C8.11537 11.4149 6.56687 11.9515 5.7414 12.777C5.28849 13.2299 5.03547 13.7879 5.00195 14.3026V14.4411L6.27493 15.7298L6.47597 15.7764C6.99063 15.7429 7.54867 15.4898 8.00158 15.0369C8.63034 14.4081 9.09073 13.3598 8.99894 12.6201Z",fill:"#E3F2FF"}),c.createElement("path",{d:"M5.00235 14.3027L4.67829 15.1364C4.59043 15.3624 4.64441 15.6189 4.81583 15.7904L4.98858 15.9631C5.07542 16.0499 5.18412 16.1064 5.29962 16.1297C5.41205 16.1524 5.53089 16.1439 5.64228 16.1006L6.47598 15.7766L5.00235 14.3027Z",fill:"#91CAFF"}))},label:"dueDatePage.IUI"},[String(n.ultrasound)]:{value:String(n.ultrasound),icon:e=>{var{isMarryBaby:t,size:a=24}=e,l=(0,i._)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},l);return c.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),c.createElement("g",{clipPath:"url(#clip0_5646_32454)"},c.createElement("path",{d:"M17.278 1.47119H2.7207C2.03035 1.47119 1.4707 2.03084 1.4707 2.72119V17.2785C1.4707 17.9689 2.03035 18.5285 2.7207 18.5285H17.278C17.9684 18.5285 18.528 17.9689 18.528 17.2785V2.72119C18.528 2.03084 17.9684 1.47119 17.278 1.47119Z",fill:"#65B5FF"}),c.createElement("path",{d:"M11.23 9.94794C12.1285 10.4395 11.7085 11.7187 10.9077 11.7734C10.1386 11.8261 9.79346 11.6067 9.12721 11.1589C8.74409 10.9014 8.11299 9.67872 7.93815 9.36872C7.74008 9.01332 7.58143 8.63733 7.46503 8.24747C7.31862 7.75122 7.71315 7.30122 8.03987 7.31731C8.09475 7.32086 8.14794 7.33765 8.19491 7.36625C8.24188 7.39485 8.28122 7.43441 8.30956 7.48153C8.3227 7.49619 8.33867 7.50803 8.3565 7.51636C8.37433 7.52469 8.39367 7.52933 8.41334 7.53C8.43301 7.53067 8.45261 7.52736 8.47097 7.52027C8.48933 7.51317 8.50607 7.50244 8.52018 7.48872C8.55856 7.44827 8.60864 7.42084 8.66339 7.41028C8.71814 7.39972 8.77482 7.40655 8.82549 7.42981C9.03081 7.56731 8.99503 7.80294 9.13081 8.11544C9.34088 8.4938 9.61306 8.83417 9.93596 9.12231C10.3217 9.44809 10.5785 9.59138 11.23 9.94794Z",fill:"#2B62CD"}),c.createElement("path",{d:"M19.5332 1.54781C19.5129 1.54783 19.4928 1.54386 19.4741 1.53611C19.4553 1.52836 19.4383 1.51699 19.424 1.50265C19.4096 1.48832 19.3982 1.47129 19.3904 1.45255C19.3827 1.43381 19.3787 1.41372 19.3787 1.39344V0.932812C19.3784 0.850311 19.3455 0.771271 19.2872 0.712933C19.2288 0.654596 19.1498 0.621695 19.0673 0.621406H18.6066C18.5665 0.62013 18.5285 0.603298 18.5006 0.574472C18.4726 0.545646 18.457 0.507087 18.457 0.466953C18.457 0.42682 18.4726 0.38826 18.5006 0.359434C18.5285 0.330608 18.5665 0.313776 18.6066 0.3125H19.0673C19.2317 0.312707 19.3894 0.378127 19.5057 0.494414C19.622 0.6107 19.6874 0.768359 19.6876 0.932812V1.39344C19.6876 1.43438 19.6713 1.47365 19.6424 1.5026C19.6134 1.53155 19.5742 1.54781 19.5332 1.54781Z",fill:"#2D87F3"}),c.createElement("path",{d:"M0.689531 1.54789C0.648588 1.54789 0.609323 1.53163 0.580372 1.50268C0.551421 1.47372 0.535156 1.43446 0.535156 1.39352V0.932891C0.535363 0.768356 0.600848 0.610626 0.717236 0.494326C0.833623 0.378027 0.991403 0.312661 1.15594 0.312578H1.61641C1.6371 0.31192 1.65772 0.315428 1.67703 0.322893C1.69635 0.330359 1.71397 0.34163 1.72884 0.356038C1.74371 0.370445 1.75554 0.387695 1.76361 0.406762C1.77169 0.425829 1.77585 0.446324 1.77585 0.467031C1.77585 0.487738 1.77169 0.508234 1.76361 0.527301C1.75554 0.546368 1.74371 0.563618 1.72884 0.578025C1.71397 0.592432 1.69635 0.603703 1.67703 0.611169C1.65772 0.618635 1.6371 0.622143 1.61641 0.621484H1.15594C1.07325 0.621484 0.993926 0.654258 0.935352 0.712626C0.876779 0.770995 0.843727 0.8502 0.843437 0.932891V1.39352C0.843438 1.43438 0.827238 1.47357 0.798388 1.50251C0.769538 1.53145 0.730393 1.54777 0.689531 1.54789Z",fill:"#2D87F3"}),c.createElement("path",{d:"M19.0673 19.4648H18.6066C18.5665 19.4636 18.5285 19.4467 18.5006 19.4179C18.4726 19.3891 18.457 19.3505 18.457 19.3104C18.457 19.2702 18.4726 19.2317 18.5006 19.2029C18.5285 19.174 18.5665 19.1572 18.6066 19.1559H19.0673C19.1498 19.1556 19.2288 19.1227 19.2872 19.0644C19.3455 19.0061 19.3784 18.927 19.3787 18.8445V18.3841C19.378 18.3634 19.3815 18.3427 19.389 18.3234C19.3965 18.3041 19.4077 18.2865 19.4221 18.2716C19.4365 18.2567 19.4538 18.2449 19.4729 18.2368C19.4919 18.2288 19.5124 18.2246 19.5331 18.2246C19.5538 18.2246 19.5743 18.2288 19.5934 18.2368C19.6125 18.2449 19.6297 18.2567 19.6441 18.2716C19.6585 18.2865 19.6698 18.3041 19.6773 18.3234C19.6847 18.3427 19.6882 18.3634 19.6876 18.3841V18.8441C19.6875 19.0086 19.6221 19.1664 19.5058 19.2828C19.3895 19.3991 19.2318 19.4646 19.0673 19.4648Z",fill:"#2D87F3"}),c.createElement("path",{d:"M1.40625 19.6875H0.940156C0.773755 19.6873 0.614228 19.6211 0.496565 19.5034C0.378901 19.3858 0.312707 19.2262 0.3125 19.0598V18.5938C0.3125 18.5523 0.328962 18.5126 0.358265 18.4833C0.387567 18.454 0.42731 18.4375 0.46875 18.4375C0.51019 18.4375 0.549933 18.454 0.579235 18.4833C0.608538 18.5126 0.625 18.5523 0.625 18.5938V19.0595C0.624979 19.1009 0.633115 19.1419 0.648942 19.1802C0.664769 19.2185 0.687977 19.2532 0.717242 19.2825C0.746507 19.3118 0.781256 19.3351 0.819503 19.3509C0.857751 19.3668 0.898749 19.375 0.940156 19.375H1.40625C1.44769 19.375 1.48743 19.3915 1.51674 19.4208C1.54604 19.4501 1.5625 19.4898 1.5625 19.5312C1.5625 19.5727 1.54604 19.6124 1.51674 19.6417C1.48743 19.671 1.44769 19.6875 1.40625 19.6875Z",fill:"#2D87F3"}),c.createElement("path",{d:"M3.95953 2.8125H2.65625C2.61481 2.8125 2.57507 2.79604 2.54576 2.76674C2.51646 2.73743 2.5 2.69769 2.5 2.65625C2.5 2.61481 2.51646 2.57507 2.54576 2.54576C2.57507 2.51646 2.61481 2.5 2.65625 2.5H3.95953C4.00097 2.5 4.04071 2.51646 4.07002 2.54576C4.09932 2.57507 4.11578 2.61481 4.11578 2.65625C4.11578 2.69769 4.09932 2.73743 4.07002 2.76674C4.04071 2.79604 4.00097 2.8125 3.95953 2.8125Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.3443 14.9688H16.7285C16.6871 14.9688 16.6473 14.9523 16.618 14.923C16.5887 14.8937 16.5723 14.8539 16.5723 14.8125C16.5723 14.7711 16.5887 14.7313 16.618 14.702C16.6473 14.6727 16.6871 14.6562 16.7285 14.6562H17.3443C17.3857 14.6562 17.4255 14.6727 17.4548 14.702C17.4841 14.7313 17.5005 14.7711 17.5005 14.8125C17.5005 14.8539 17.4841 14.8937 17.4548 14.923C17.4255 14.9523 17.3857 14.9688 17.3443 14.9688Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.3443 16.3027H16.7285C16.6871 16.3027 16.6473 16.2863 16.618 16.257C16.5887 16.2277 16.5723 16.1879 16.5723 16.1465C16.5723 16.105 16.5887 16.0653 16.618 16.036C16.6473 16.0067 16.6871 15.9902 16.7285 15.9902H17.3443C17.3857 15.9902 17.4255 16.0067 17.4548 16.036C17.4841 16.0653 17.5005 16.105 17.5005 16.1465C17.5005 16.1879 17.4841 16.2277 17.4548 16.257C17.4255 16.2863 17.3857 16.3027 17.3443 16.3027Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.3443 13.6499H16.7285C16.6871 13.6499 16.6473 13.6334 16.618 13.6041C16.5887 13.5748 16.5723 13.5351 16.5723 13.4937C16.5723 13.4522 16.5887 13.4125 16.618 13.3832C16.6473 13.3539 16.6871 13.3374 16.7285 13.3374H17.3443C17.3857 13.3374 17.4255 13.3539 17.4548 13.3832C17.4841 13.4125 17.5005 13.4522 17.5005 13.4937C17.5005 13.5351 17.4841 13.5748 17.4548 13.6041C17.4255 13.6334 17.3857 13.6499 17.3443 13.6499Z",fill:"#2D87F3"}),c.createElement("path",{d:"M4.99063 3.84375H2.65625C2.61481 3.84375 2.57507 3.82729 2.54576 3.79799C2.51646 3.76868 2.5 3.72894 2.5 3.6875C2.5 3.64606 2.51646 3.60632 2.54576 3.57701C2.57507 3.54771 2.61481 3.53125 2.65625 3.53125H4.99063C5.03207 3.53125 5.07181 3.54771 5.10111 3.57701C5.13041 3.60632 5.14687 3.64606 5.14687 3.6875C5.14687 3.72894 5.13041 3.76868 5.10111 3.79799C5.07181 3.82729 5.03207 3.84375 4.99063 3.84375Z",fill:"#2D87F3"}),c.createElement("path",{d:"M4.99063 4.875H2.65625C2.61481 4.875 2.57507 4.85854 2.54576 4.82924C2.51646 4.79993 2.5 4.76019 2.5 4.71875C2.5 4.67731 2.51646 4.63757 2.54576 4.60826C2.57507 4.57896 2.61481 4.5625 2.65625 4.5625H4.99063C5.03207 4.5625 5.07181 4.57896 5.10111 4.60826C5.13041 4.63757 5.14687 4.67731 5.14687 4.71875C5.14687 4.76019 5.13041 4.79993 5.10111 4.82924C5.07181 4.85854 5.03207 4.875 4.99063 4.875Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.3443 12.3843H16.7285C16.6871 12.3843 16.6473 12.3678 16.618 12.3385C16.5887 12.3092 16.5723 12.2695 16.5723 12.228C16.5723 12.1866 16.5887 12.1468 16.618 12.1175C16.6473 12.0882 16.6871 12.0718 16.7285 12.0718H17.3443C17.3857 12.0718 17.4255 12.0882 17.4548 12.1175C17.4841 12.1468 17.5005 12.1866 17.5005 12.228C17.5005 12.2695 17.4841 12.3092 17.4548 12.3385C17.4255 12.3678 17.3857 12.3843 17.3443 12.3843Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.3443 17.6562H16.7285C16.6871 17.6562 16.6473 17.6398 16.618 17.6105C16.5887 17.5812 16.5723 17.5414 16.5723 17.5C16.5723 17.4586 16.5887 17.4188 16.618 17.3895C16.6473 17.3602 16.6871 17.3438 16.7285 17.3438H17.3443C17.3857 17.3438 17.4255 17.3602 17.4548 17.3895C17.4841 17.4188 17.5005 17.4586 17.5005 17.5C17.5005 17.5414 17.4841 17.5812 17.4548 17.6105C17.4255 17.6398 17.3857 17.6562 17.3443 17.6562Z",fill:"#2D87F3"}),c.createElement("path",{d:"M17.0352 17.6563C16.9937 17.6563 16.954 17.6398 16.9247 17.6105C16.8954 17.5812 16.8789 17.5415 16.8789 17.5001V12.228C16.8789 12.1866 16.8954 12.1468 16.9247 12.1175C16.954 12.0882 16.9937 12.0718 17.0352 12.0718C17.0766 12.0718 17.1163 12.0882 17.1456 12.1175C17.1749 12.1468 17.1914 12.1866 17.1914 12.228V17.5001C17.1914 17.5415 17.1749 17.5812 17.1456 17.6105C17.1163 17.6398 17.0766 17.6563 17.0352 17.6563Z",fill:"#2D87F3"}),c.createElement("path",{d:"M8.60596 12.3197C8.54189 12.4053 8.46174 12.4775 8.37002 12.5324C8.13096 12.6807 7.05018 13.0533 5.9919 12.0152C5.72695 11.7747 5.47994 11.5151 5.25284 11.2385C5.07471 11.0041 4.83877 10.959 4.57627 10.5683C4.34659 10.2262 4.36846 9.61991 4.57627 9.35412C4.84502 9.01194 5.32627 8.84022 5.62627 9.49631C5.76534 9.80256 6.47002 10.476 7.0294 10.6262C7.09603 10.6424 7.16404 10.6523 7.23252 10.6558C7.85752 10.6952 8.57627 11.1307 8.74659 11.6512C8.77467 11.766 8.77661 11.8857 8.75227 12.0014C8.72793 12.1172 8.67794 12.2259 8.60596 12.3197Z",fill:"#2B62CD"}),c.createElement("path",{d:"M17.8215 7.60137C17.3465 10.2436 15.2621 10.3982 14.3965 11.2482C13.9965 11.642 14.0606 11.7092 13.9965 12.7201C13.9231 13.8951 13.2621 16.1139 11.0356 16.7654C8.77777 17.4279 6.96371 16.5029 6.00121 14.6982C5.14339 13.0904 4.21527 13.6154 3.00121 13.1811C2.42152 12.9717 2.00433 12.4811 2.01996 11.9748C2.03871 11.3217 2.40902 10.8404 3.37777 11.3217C4.04964 11.6545 4.69496 11.5936 5.30433 11.5201C5.63507 11.4688 5.96971 11.4468 6.30433 11.4545C6.96796 11.5169 7.60602 11.7417 8.16214 12.1092C8.31527 12.2061 8.42621 12.2889 8.48402 12.3342C8.0626 11.9665 7.71478 11.5222 7.45902 11.0248C7.44183 10.9936 7.2848 10.655 7.25589 10.592C6.96136 9.95137 7.39027 9.35606 7.83714 9.35606C7.87141 9.35549 7.9056 9.3597 7.93871 9.36855C8.05114 9.39698 8.14976 9.46457 8.21683 9.55918C8.23545 9.57848 8.25784 9.59375 8.28261 9.60403C8.30738 9.61431 8.334 9.61939 8.36082 9.61895C8.38763 9.61851 8.41407 9.61256 8.43849 9.60147C8.46291 9.59038 8.48479 9.57439 8.50277 9.55449C8.54371 9.50394 8.60167 9.47004 8.66579 9.45911C8.72992 9.44818 8.79583 9.46098 8.85121 9.49512C9.13871 9.66699 8.98871 10.0232 9.19808 10.4342C9.42152 10.8732 10.109 11.3389 10.634 11.2389C11.0293 11.1623 11.8606 10.6811 10.634 10.167C9.94808 9.88105 9.86683 9.48418 9.93558 9.12168C9.96058 8.99356 10.1621 8.41543 10.1653 8.39356C10.1996 8.1248 9.64652 7.69668 10.1653 7.31699C10.4215 7.12949 10.459 6.88262 10.5075 6.56855C10.7934 4.6998 12.02 3.47168 13.9825 3.47168C16.5262 3.47168 18.1418 5.82793 17.8215 7.60137Z",fill:"#2D87F3"}),c.createElement("path",{d:"M11.0678 7.4316C11.006 7.43496 10.9443 7.42333 10.888 7.3977C10.8317 7.37207 10.7824 7.33321 10.7443 7.28441C10.7305 7.26814 10.7201 7.24921 10.7139 7.22877C10.7076 7.20833 10.7056 7.18683 10.708 7.16559C10.7104 7.14436 10.7171 7.12384 10.7278 7.1053C10.7384 7.08677 10.7527 7.07062 10.7699 7.05784C10.787 7.04507 10.8066 7.03594 10.8274 7.03103C10.8482 7.02613 10.8698 7.02553 10.8908 7.0293C10.9118 7.03306 10.9319 7.0411 10.9497 7.05292C10.9675 7.06474 10.9827 7.08009 10.9943 7.09801C11.0256 7.1391 11.159 7.11504 11.2378 7.0802C11.2756 7.06321 11.3186 7.06193 11.3573 7.07666C11.3961 7.09138 11.4274 7.1209 11.4444 7.15871C11.4614 7.19653 11.4627 7.23954 11.4479 7.27829C11.4332 7.31705 11.4037 7.34836 11.3659 7.36535C11.272 7.40738 11.1706 7.42991 11.0678 7.4316Z",fill:"#2B62CD"}),c.createElement("path",{d:"M11.548 13.1983C11.5518 13.2185 11.5515 13.2392 11.5471 13.2592C11.5428 13.2792 11.5345 13.2981 11.5227 13.3149C11.5109 13.3316 11.4958 13.3458 11.4785 13.3567C11.4611 13.3675 11.4417 13.3748 11.4215 13.378C11.2165 13.4117 11.0089 13.4279 10.8012 13.4265C10.5169 13.4214 10.2349 13.3757 9.96367 13.2905C9.44418 13.1038 8.96486 12.8201 8.55117 12.4546C7.77477 11.8262 7.66367 11.4171 7.45898 11.0249C7.74314 11.4988 8.12768 11.9047 8.58555 12.214C9.03605 12.5485 9.53089 12.8188 10.0559 13.0171C10.4848 13.1224 10.9305 13.141 11.3668 13.0718C11.387 13.0677 11.4079 13.0678 11.4281 13.0721C11.4483 13.0763 11.4675 13.0846 11.4844 13.0964C11.5014 13.1082 11.5157 13.1233 11.5267 13.1409C11.5376 13.1584 11.5449 13.1779 11.548 13.1983Z",fill:"#2B62CD"}),c.createElement("path",{d:"M10.5484 8.85297C10.511 8.86675 10.4712 8.87312 10.4313 8.87172C10.2958 8.86506 10.164 8.82594 10.0469 8.75766C10.0858 8.62969 10.1177 8.54703 10.1419 8.46875C10.2299 8.5323 10.3369 8.56419 10.4453 8.55922C10.464 8.55169 10.4839 8.54798 10.504 8.54833C10.5241 8.54867 10.5439 8.55306 10.5623 8.56122C10.5807 8.56939 10.5972 8.58116 10.6109 8.59585C10.6247 8.61054 10.6353 8.62784 10.6422 8.64672C10.6561 8.68656 10.6541 8.73021 10.6366 8.76862C10.6192 8.80703 10.5876 8.83724 10.5484 8.85297Z",fill:"#2B62CD"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_5646_32454"},c.createElement("rect",{width:"20",height:"20",fill:"white"}))))},label:"dueDatePage.ultrasound"}},O=[String(n.lastPeriod),String(n.IVF),String(n.conception)],j={[f.L.Cambodia]:O,[f.L.Singapore]:O,[f.L.India]:O,[f.L.Indonesia]:[String(n.lastPeriod),String(n.IUI),String(n.IVF),String(n.ultrasound)],[f.L.Malaysia]:O,[f.L.Myanmar]:O,[f.L.PhilippinesEnglish]:O,[f.L.PhilippinesTagalog]:O,[f.L.Taiwan]:O,[f.L.Thailand]:O,[f.L.Vietnam]:[String(n.lastPeriod),String(n.IVF),String(n.IUI),String(n.ultrasound)]},$="yyyy-MM-dd",getDueDateLastPeriod=(e,t)=>({otherInfo:{method:n.lastPeriod+1,first_day:(0,g.Z)(e,$),measurement_date:null,insemination_date:null,cycle_length_days:t,conception_date:null,ivf_transfer_date:null,days_transfer:null}}),getDueDateConception=e=>({otherInfo:{method:n.conception+1,conception_date:(0,g.Z)(e,$),measurement_date:null,insemination_date:null,first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}),getDueDateIVF=(e,t)=>({otherInfo:{method:n.IVF+1,ivf_transfer_date:(0,g.Z)(e,$),measurement_date:null,insemination_date:null,days_transfer:t,conception_date:null,first_day:null,cycle_length_days:null}}),getDueDateIUI=e=>({otherInfo:{method:n.conception+1,insemination_date:(0,g.Z)(e,$),measurement_date:null,conception_date:null,first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}),getDueDateUltrasound=(e,t)=>{let[a,l]=t.split("|"),[r,o]=[Number(a),Number(l)];return{otherInfo:{method:n.conception+1,measurement_date:(0,g.Z)(e,$),conception_date:null,insemination_date:null,crl_value:r,msd_value:o,first_day:null,cycle_length_days:null,ivf_transfer_date:null,days_transfer:null}}},H=(0,c.createContext)({}),B=(0,c.createContext)({}),DefaultLayout$4=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(B);return c.createElement(D.H.FormRow,null,c.createElement(w.D,Object.assign({label:c.createElement(S.T,{size:"p2",weight:"semiBold"},e("dueDatePage.lastPeriod.lastPeriodLabel"))},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date})))},InlineLayout$4=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(B);return c.createElement(D.H.FormRow,null,c.createElement(D.H.BorderInlineControl,{width:300,label:e("dueDatePage.lastPeriod.lastPeriodLabel")},c.createElement(w.D,Object.assign({},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date,error:null}))),t.errors.lastPeriodDate&&c.createElement(D.H.Error,null,t.errors.lastPeriodDate))},MbLayout$4=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(B);return c.createElement(D.H.BorderBoxControl,{label:e("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:c.createElement(L.Z,null)},c.createElement(w.D,Object.assign({},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},rightSection:null,maxDate:new Date})))},ConceptionForm=({})=>{let{classes:e={}}=(0,c.useContext)(I.C),{formLayout:t,onSubmit:a,currentUrl:l,submitProps:r}=(0,c.useContext)(H),o=(0,s.rZ)(),{t:i}=(0,P.u)(),u=(0,C.c)({initialValues:{lastPeriodDate:new Date}}),p={onSubmit:u.onSubmit(e=>{let{lastPeriodDate:t}=e,l=`${k.Q.type}=${n.conception}&${k.Q.startDate}=${x()(t).format(k.A)}&${k.Q.additional}= `;a(getDueDateConception(t),l)})};return c.createElement(B.Provider,{value:{form:u}},c.createElement(D.H,Object.assign({formLayout:t},p),"inline"===t?c.createElement(InlineLayout$4,null):"mb"===o.other.template?c.createElement(MbLayout$4,null):c.createElement(DefaultLayout$4,null),c.createElement(D.H.FormRow,{className:e.submitWrapper},c.createElement(D.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,className:(0,d.default)("due-date-calculate-button",e.submitBtn),type:"submit"},r),i("dueDatePage.lastPeriod.calculate")))))},_=(0,c.createContext)({}),DefaultLayout$3=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(_);return c.createElement(D.H.FormRow,null,c.createElement(w.D,Object.assign({label:c.createElement(S.T,{size:"p2",weight:"semiBold"},e("dueDatePage.date_of_IUI_procedure"))},t.getInputProps("dateOfIUIProcedure"),{popoverProps:{withinPortal:!0},maxDate:new Date})))},InlineLayout$3=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(_);return c.createElement(D.H.FormRow,null,c.createElement(D.H.BorderInlineControl,{width:300,label:e("dueDatePage.date_of_IUI_procedure")},c.createElement(w.D,Object.assign({},t.getInputProps("dateOfIUIProcedure"),{popoverProps:{withinPortal:!0},maxDate:new Date,error:null}))))},MbLayout$3=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(_);return c.createElement(D.H.BorderBoxControl,{label:e("dueDatePage.date_of_IUI_procedure"),rightSection:c.createElement(L.Z,null)},c.createElement(w.D,Object.assign({},t.getInputProps("dateOfIUIProcedure"),{popoverProps:{withinPortal:!0},rightSection:null,maxDate:new Date})))},IUIForm=({})=>{let{formLayout:e,onSubmit:t,currentUrl:a,submitProps:l}=(0,c.useContext)(H),{classes:r={}}=(0,c.useContext)(I.C),o=(0,s.rZ)(),{t:i}=(0,P.u)(),u=(0,C.c)({initialValues:{dateOfIUIProcedure:new Date}}),p={onSubmit:u.onSubmit(e=>{let{dateOfIUIProcedure:a}=e,l=`${k.Q.type}=${n.IUI}&${k.Q.startDate}=${x()(a).format(k.A)}&${k.Q.additional}= `;t(getDueDateIUI(a),l)})};return c.createElement(_.Provider,{value:{form:u}},c.createElement(D.H,Object.assign({formLayout:e},p),"inline"===e?c.createElement(InlineLayout$3,null):"mb"===o.other.template?c.createElement(MbLayout$3,null):c.createElement(DefaultLayout$3,null),c.createElement(D.H.FormRow,{className:r.submitWrapper},c.createElement(D.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:a,className:(0,d.default)("due-date-calculate-button",r.submitBtn),type:"submit"},l),i("dueDatePage.lastPeriod.calculate")))))},R=(0,c.createContext)({}),DefaultLayout$2=()=>{let{t:e}=(0,P.u)(),{form:t,transferDateOptions:a}=(0,c.useContext)(R);return c.createElement(c.Fragment,null,c.createElement(D.H.FormRow,null,c.createElement(w.D,Object.assign({label:c.createElement(S.T,{size:"p2",weight:"semiBold"},e("dueDatePage.ivf.transferDate"))},t.getInputProps("IVFDate"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),c.createElement(D.H.FormRow,null,c.createElement(v.R.Group,Object.assign({},t.getInputProps("dayTransfer")),c.createElement(u.Z,null,a.map((e,t)=>c.createElement(v.R,{key:t,value:e.value,label:e.label}))))))},InlineLayout$2=()=>{let{t:e}=(0,P.u)(),{form:t,transferDateOptions:a}=(0,c.useContext)(R);return c.createElement(c.Fragment,null,c.createElement(D.H.FormRow,null,c.createElement(D.H.BorderInlineControl,{width:300,label:e("dueDatePage.ivf.transferDate")},c.createElement(w.D,Object.assign({},t.getInputProps("IVFDate"),{popoverProps:{withinPortal:!0},maxDate:new Date})))),c.createElement(D.H.FormRow,null,c.createElement(D.H.BorderInlineControl,{width:"none"},c.createElement(v.R.Group,Object.assign({},t.getInputProps("dayTransfer")),c.createElement(u.Z,null,a.map((e,t)=>c.createElement(v.R,{key:t,value:e.value,label:e.label})))))))},MbLayout$2=()=>{let{t:e}=(0,P.u)(),{form:t,transferDateOptions:a}=(0,c.useContext)(R);return c.createElement(c.Fragment,null,c.createElement(D.H.BorderBoxControl,{label:e("dueDatePage.ivf.transferDate"),rightSection:c.createElement(L.Z,null)},c.createElement(w.D,Object.assign({},t.getInputProps("IVFDate"),{popoverProps:{withinPortal:!0},maxDate:new Date,rightSection:null}))),c.createElement(v.R.Group,Object.assign({},t.getInputProps("dayTransfer")),c.createElement(u.Z,null,a.map((e,t)=>c.createElement(v.R,{key:t,value:e.value,label:e.label})))))},IVFForm=({})=>{var e;let{classes:t={}}=(0,c.useContext)(I.C),{formLayout:a,onSubmit:l,currentUrl:r,submitProps:o}=(0,c.useContext)(H),{t:i}=(0,P.u)(),u=(0,s.rZ)(),p=[{value:"3",label:i("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:i("dueDatePage.ivf.transferDateRadio",{number:5})}],h=(0,C.c)({initialValues:{IVFDate:new Date,dayTransfer:null===(e=null==p?void 0:p[0])||void 0===e?void 0:e.value}}),m={onSubmit:h.onSubmit(e=>{let{IVFDate:t}=e,a=Number(e.dayTransfer),r=`${k.Q.type}=${n.IVF}&${k.Q.startDate}=${x()(t).format(k.A)}&${k.Q.additional}=${a}`;l(getDueDateIVF(t,Number(a)),r)})};return c.createElement(R.Provider,{value:{form:h,transferDateOptions:p}},c.createElement(D.H,Object.assign({formLayout:a},m),"inline"===a?c.createElement(InlineLayout$2,null):"mb"===u.other.template?c.createElement(MbLayout$2,null):c.createElement(DefaultLayout$2,null),c.createElement(D.H.FormRow,{className:t.submitWrapper},c.createElement(D.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:r,className:(0,d.default)("due-date-calculate-button",t.submitBtn),type:"submit"},o),i("dueDatePage.lastPeriod.calculate")))))},N=(0,c.createContext)({}),DefaultLayout$1=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(N),a=(0,c.useMemo)(()=>[...Array(21)].map((t,a)=>({label:e("dueDatePage.daysText",{number:a+20}),value:`${a+20}`})),[]);return c.createElement(c.Fragment,null,c.createElement(D.H.FormRow,null,c.createElement(w.D,Object.assign({label:c.createElement(S.T,{size:"p2",weight:"semiBold"},e("dueDatePage.lastPeriod.lastPeriodLabel"))},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),c.createElement(D.H.FormRow,null,c.createElement(v.I.Wrapper,{label:c.createElement(S.T,{size:"p2",weight:"semiBold"},e("dueDatePage.lastPeriod.periodLengthLabel"))},c.createElement(v.S,Object.assign({placeholder:e("tools.inputPlaceholder",{content:e("dueDatePage.daysText",{number:30})}),data:a,withinPortal:!0},t.getInputProps("periodLength"))))))},InlineLayout$1=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(N),a=(0,c.useMemo)(()=>[...Array(21)].map((t,a)=>({label:e("dueDatePage.daysText",{number:a+20}),value:`${a+20}`})),[]);return c.createElement(c.Fragment,null,c.createElement(D.H.FormRow,null,c.createElement(D.H.BorderInlineControl,{label:e("dueDatePage.lastPeriod.lastPeriodLabel"),width:300},c.createElement(w.D,Object.assign({},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date})))),c.createElement(D.H.FormRow,null,c.createElement(D.H.BorderInlineControl,{label:e("dueDatePage.lastPeriod.periodLengthLabel"),width:300},c.createElement(v.S,Object.assign({placeholder:e("tools.inputPlaceholder",{content:e("dueDatePage.daysText",{number:30})}),data:a},t.getInputProps("periodLength"),{error:null,withinPortal:!0})))),t.errors.periodLength&&c.createElement(D.H.FormRow,null,c.createElement(D.H.Error,null,t.errors.periodLength)))},MbLayout$1=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(N);return c.createElement(c.Fragment,null,c.createElement(D.H.BorderBoxControl,{label:e("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:c.createElement(L.Z,null)},c.createElement(w.D,Object.assign({rightSection:null},t.getInputProps("lastPeriodDate"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),c.createElement(D.H.BorderBoxControl,{label:e("dueDatePage.lastPeriod.periodLengthLabel"),rightSection:e("ovulationPage.dayUnit")},c.createElement(v.I.Number,Object.assign({min:20,max:40,placeholder:e("tools.inputPlaceholder",{content:"30"})},t.getInputProps("periodLength")))),t.errors.periodLength&&c.createElement(D.H.Error,null,t.errors.periodLength))},LastPeriodForm=({})=>{let{formLayout:e,onSubmit:t,currentUrl:a,submitProps:l}=(0,c.useContext)(H),{classes:r={}}=(0,c.useContext)(I.C),{t:o}=(0,P.u)(),i=(0,s.rZ)(),u="mb"===i.other.template,p=(0,C.c)({initialValues:{lastPeriodDate:new Date},validate:{periodLength:(0,E.U)(o("validation.error.requiredField"))}}),h={onSubmit:p.onSubmit(e=>{let{periodLength:a,lastPeriodDate:l}=e,r=`${k.Q.type}=${n.lastPeriod}&${k.Q.startDate}=${x()(l).format(k.A)}&${k.Q.additional}=${a}`;t(getDueDateLastPeriod(l,a),r)})};return c.createElement(N.Provider,{value:{form:p}},c.createElement(D.H,Object.assign({formLayout:e},h),"inline"===e?c.createElement(InlineLayout$1,null):u?c.createElement(MbLayout$1,null):c.createElement(DefaultLayout$1,null),c.createElement(D.H.FormRow,{className:r.submitWrapper},c.createElement(D.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:a,className:(0,d.default)("due-date-calculate-button",r.submitBtn),type:"submit"},l),o("dueDatePage.lastPeriod.calculate")))))},T=(0,c.createContext)({}),Info=e=>{var{isMarryBaby:t,size:a=24}=e,l=(0,i._)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},l);return c.createElement("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00065 1.3335C4.32065 1.3335 1.33398 4.32016 1.33398 8.00016C1.33398 11.6802 4.32065 14.6668 8.00065 14.6668C11.6807 14.6668 14.6673 11.6802 14.6673 8.00016C14.6673 4.32016 11.6807 1.3335 8.00065 1.3335ZM8.00065 11.3335C7.63398 11.3335 7.33398 11.0335 7.33398 10.6668V8.00016C7.33398 7.6335 7.63398 7.3335 8.00065 7.3335C8.36732 7.3335 8.66732 7.6335 8.66732 8.00016V10.6668C8.66732 11.0335 8.36732 11.3335 8.00065 11.3335ZM7.33398 6.00016H8.66732V4.66683H7.33398V6.00016Z",fill:"#2D87F3"}))},DefaultLayout=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(T),a=c.createElement(S.T,{size:"p4",color:F.r.colors.gray400},"mm"),l=t.getInputProps("ultrasoundCRL"),r=t.getInputProps("ultrasoundMSD");return c.createElement(c.Fragment,null,c.createElement(D.H.FormRow,null,c.createElement(w.D,Object.assign({label:c.createElement(S.T,{size:"p2",weight:"semiBold"},e("dueDatePage.date_of_ultrasound"))},t.getInputProps("dateOfUltrasound"),{popoverProps:{withinPortal:!0},maxDate:new Date}))),c.createElement(D.H.FormRow,null,c.createElement(p.k,{align:"center",gap:4,mb:4},c.createElement(S.T,{size:"p2",weight:"semiBold"},e("dueDatePage.validation.one_is_required")),c.createElement(h.u,{withinPortal:!0,withArrow:!0,width:300,multiline:!0,label:e("dueDatePage.ultrasound.tooltip")},c.createElement(p.k,null,c.createElement(Info,{size:16})))),c.createElement(p.k,{gap:8},c.createElement(v.I,Object.assign({placeholder:"CRL",sx:{flex:1},rightSection:a,type:"number",min:0,step:.01},l,{errorProps:{sx:{display:"none"}}})),c.createElement(v.I,Object.assign({placeholder:"MSD",sx:{flex:1},rightSection:a,type:"number",min:0,step:.01},r,{errorProps:{sx:{display:"none"}}}))),(t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)&&c.createElement(S.T,{size:"p4",color:F.r.colors.red500},t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)))},InlineLayout=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(T),a=c.createElement(S.T,{size:"p4",color:F.r.colors.gray400},"mm"),l=t.getInputProps("ultrasoundCRL"),r=t.getInputProps("ultrasoundMSD");return c.createElement(c.Fragment,null,c.createElement(D.H.FormRow,null,c.createElement(D.H.BorderInlineControl,{width:300,label:e("dueDatePage.date_of_ultrasound")},c.createElement(w.D,Object.assign({},t.getInputProps("dateOfUltrasound"),{popoverProps:{withinPortal:!0},maxDate:new Date,error:null})))),c.createElement(D.H.FormRow,null,c.createElement(D.H.BorderInlineControl,{width:300,label:c.createElement(p.k,{align:"center",gap:4},c.createElement("span",null,e("dueDatePage.validation.one_is_required")),c.createElement(h.u,{withinPortal:!0,withArrow:!0,width:300,multiline:!0,label:e("dueDatePage.ultrasound.tooltip")},c.createElement(p.k,null,c.createElement(Info,{size:16}))))},c.createElement(m.x,null,c.createElement(p.k,{gap:8},c.createElement(v.I,Object.assign({placeholder:"CRL",sx:{flex:1},rightSection:a,type:"number",min:0,step:.01},l,{errorProps:{sx:{display:"none"}}})),c.createElement(v.I,Object.assign({placeholder:"MSD",sx:{flex:1},rightSection:a,type:"number",min:0,step:.01},r,{errorProps:{sx:{display:"none"}}}))))),(t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)&&c.createElement(D.H.Error,null,t.errors.ultrasoundCRL||t.errors.ultrasoundMSD)))},MbLayout=()=>{let{t:e}=(0,P.u)(),{form:t}=(0,c.useContext)(T);return c.createElement(D.H.BorderBoxControl,{label:e("dueDatePage.date_of_ultrasound"),rightSection:c.createElement(L.Z,null)},c.createElement(w.D,Object.assign({},t.getInputProps("dateOfUltrasound"),{popoverProps:{withinPortal:!0},rightSection:null,maxDate:new Date})))},UltrasoundForm=({})=>{let{classes:e={}}=(0,c.useContext)(I.C),{formLayout:t,onSubmit:a,currentUrl:l,submitProps:r}=(0,c.useContext)(H),o=(0,s.rZ)(),{t:i}=(0,P.u)(),u=(0,C.c)({initialValues:{dateOfUltrasound:new Date},validate:e=>{let t=Number(e.ultrasoundCRL),a=Number(e.ultrasoundMSD);if(!t&&!a)return{ultrasoundCRL:i("dueDatePage.validation.record_not_valid")};let l=t>=5&&t<=101,r=a>0&&a<=13;return l||r?{}:t&&!l?{ultrasoundCRL:i("dueDatePage.validation.record_not_valid")}:a&&!r?{ultrasoundMSD:i("dueDatePage.validation.crl")}:void 0}}),p={onSubmit:u.onSubmit(e=>{let{dateOfUltrasound:t,ultrasoundCRL:l,ultrasoundMSD:r}=e,o=`${l}|${r}`,i=`${k.Q.type}=${n.ultrasound}&${k.Q.startDate}=${x()(t).format(k.A)}&${k.Q.additional}=${o}`;a(getDueDateUltrasound(t,o),i)})};return c.createElement(T.Provider,{value:{form:u}},c.createElement(D.H,Object.assign({formLayout:t},p),"inline"===t?c.createElement(InlineLayout,null):"mb"===o.other.template?c.createElement(MbLayout,null):c.createElement(DefaultLayout,null),c.createElement(D.H.FormRow,{className:e.submitWrapper},c.createElement(D.H.Submit,Object.assign({dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:l,className:(0,d.default)("due-date-calculate-button",e.submitBtn),type:"submit"},r),i("dueDatePage.lastPeriod.calculate")))))},FormSwitcher=()=>{let{calculatorType:e}=(0,c.useContext)(H);switch(e){case n.lastPeriod:return c.createElement(LastPeriodForm,null);case n.conception:return c.createElement(ConceptionForm,null);case n.IVF:return c.createElement(IVFForm,null);case n.IUI:return c.createElement(IUIForm,null);case n.ultrasound:return c.createElement(UltrasoundForm,null);default:return null}};(r=o||(o={}))[r.trackPeriod=0]="trackPeriod",r[r.conceive=1]="conceive",r[r.avoidPregnancy=2]="avoidPregnancy";let z=(0,c.forwardRef)((e,t)=>{var{label:a,icon:l}=e,r=(0,i._)(e,["label","icon"]);return c.createElement(m.x,Object.assign({ref:t,sx:{gap:"1rem",display:"flex",padding:"5px 6px",alignItems:"center","&[data-selected]":{backgroundColor:F.r.colors.gray100},"&[data-selected]:hover":{backgroundColor:F.r.colors.gray100},"&[data-hovered]":{backgroundColor:F.r.colors.gray100}},className:""},r),l,c.createElement(S.T,{size:"p4"},a))}),DueDateForm=e=>{var{locale:t,formLayout:a="default",submitProps:l,currentUrl:r,isMobile:o,onSubmit:s}=e,d=(0,i._)(e,["locale","formLayout","submitProps","currentUrl","isMobile","onSubmit"]);let{t:u}=(0,P.u)(),[p,h]=(0,c.useState)(n.lastPeriod),m=(0,c.useMemo)(()=>(null==j?void 0:j[t].map(e=>{let t=M[e],a=t.icon;return Object.assign(Object.assign({},t),{label:u(t.label),icon:c.createElement(a,{size:20})})}))||[],[t,u]),g=(0,c.useMemo)(()=>m.find(e=>e.value===String(p)),[p,m]);return c.createElement(H.Provider,{value:{calculatingMethods:m,submitProps:l,currentUrl:r,isMobile:o,formLayout:a,onSubmit:s,calculatorType:p,setCalculatorType:h}},c.createElement(D.H,Object.assign({component:"div",formLayout:a},d),"default"===a?c.createElement(D.H.FormRow,null,c.createElement(D.H.Control,null,c.createElement(v.S,{label:c.createElement(S.T,{size:"p2",weight:"semiBold"},u("dueDatePage.calculationMethod")),value:String(p),data:m,itemComponent:z,onChange:e=>h(Number(e)),icon:null==g?void 0:g.icon}))):c.createElement(D.H.FormRow,null,c.createElement(D.H.BorderInlineControl,{label:c.createElement(S.T,{size:"p2",weight:"semiBold"},u("dueDatePage.calculationMethod")),width:300},c.createElement(v.S,{value:String(p),data:m,itemComponent:z,onChange:e=>h(Number(e))}))),c.createElement(FormSwitcher,null)))}},"gb+m":function(e,t,a){a.d(t,{T:function(){return Text}});var l=a("mHfz"),r=a("q1tI"),n=a("HKYo");let Text=e=>{var{size:t="base",type:a="regular"}=e,o=(0,l._)(e,["size","type"]);return r.createElement(n.T,Object.assign({size:t,weight:"caption"===a?"bold":a,"data-size":t,"data-type":a,"data-word-wrap":o.wordWrap,"data-is-uppercase":o.isUppercase},o))}},yqjd:function(e,t,a){a.d(t,{B:function(){return BabyVaccineForm}});var l,r,n=a("mHfz"),o=a("q1tI"),i=a("iuhU"),c=a("8vDj"),s=a("cChf"),d=a("ZFu2"),u=a("yEeW"),p=a("HKYo"),h=a("GXD3"),m=a("vffg"),g=a("BN2B"),b=a("40rS"),f=a("fkrl");let C=(0,o.createContext)({}),DefaultLayout=e=>{var t=(0,n._)(e,[]);let{t:a}=(0,h.u)(),{currentUrl:l,submitProps:r,form:c}=(0,o.useContext)(C),{classes:s={}}=(0,o.useContext)(m.C);return o.createElement(g.H,Object.assign({formLayout:"default"},t),o.createElement(g.H.FormRow,null,o.createElement(b.G,Object.assign({isBaby:!0},c.getInputProps("gender")))),o.createElement(g.H.FormRow,null,o.createElement(u.D,Object.assign({label:o.createElement(p.T,{size:"p2",weight:"semiBold"},a("babyGrowth.input.birthday")),placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date},c.getInputProps("age")))),o.createElement(g.H.FormRow,{className:s.submitWrapper},o.createElement(g.H.Submit,Object.assign({type:"submit",className:(0,i.default)("due-date-calculate-button",s.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Vaccination Tool",dataEventLabel:l},r),a("dueDatePage.lastPeriod.calculate"))))},InlineLayout=e=>{var t=(0,n._)(e,[]);let{t:a}=(0,h.u)(),{currentUrl:l,submitProps:r,form:c}=(0,o.useContext)(C),{classes:s={}}=(0,o.useContext)(m.C);return o.createElement(g.H,Object.assign({formLayout:"inline"},t),o.createElement(g.H.FormRow,null,o.createElement(g.H.BorderInlineControl,{label:a("tools.selectBabyGender"),width:"none"},o.createElement(b.G,Object.assign({isBaby:!0,hideLabel:!0,type:"radio"},c.getInputProps("gender")))),c.errors.gender&&o.createElement(g.H.Error,null,c.errors.gender)),o.createElement(g.H.FormRow,null,o.createElement(g.H.BorderInlineControl,{label:a("babyGrowth.input.birthday")},o.createElement(u.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date},c.getInputProps("age"),{error:null}))),c.errors.age&&o.createElement(g.H.Error,null,c.errors.age)),o.createElement(g.H.FormRow,{className:s.submitWrapper},o.createElement(g.H.Submit,Object.assign({type:"submit",className:(0,i.default)("due-date-calculate-button",s.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Vaccination Tool",dataEventLabel:l},r),a("dueDatePage.lastPeriod.calculate"))))},MbLayout=e=>{var t=(0,n._)(e,[]);let{t:a}=(0,h.u)(),{currentUrl:l,submitProps:r,form:i}=(0,o.useContext)(C);return o.createElement(g.H,Object.assign({formLayout:"default"},t),o.createElement(g.H.Control,null,o.createElement(b.G,Object.assign({isBaby:!0},i.getInputProps("gender"),{error:null}))),i.errors.gender&&o.createElement(g.H.Error,null,i.errors.gender),o.createElement(g.H.FormRow,null,o.createElement(g.H.BorderBoxControl,{label:a("babyGrowth.input.birthday"),rightSection:o.createElement(f.Z,null)},o.createElement(u.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date,rightSection:null},i.getInputProps("age"),{error:null}))),i.errors.age&&o.createElement(g.H.Error,null,i.errors.age)),o.createElement(g.H.Submit,Object.assign({type:"submit",className:"due-date-calculate-button",dataEventCategory:"Health Tool",dataEventAction:"Vaccination Tool",dataEventLabel:l},r),a("dueDatePage.lastPeriod.calculate")))};(l=r||(r={}))[l.trackPeriod=0]="trackPeriod",l[l.conceive=1]="conceive",l[l.avoidPregnancy=2]="avoidPregnancy";let BabyVaccineForm=e=>{var{formLayout:t="default",submitProps:a,currentUrl:l,onSubmit:r}=e,i=(0,n._)(e,["formLayout","submitProps","currentUrl","onSubmit"]);let{t:u}=(0,h.u)(),p=(0,c.rZ)(),m="mb"===p.other.template,g=(0,s.c)({validate:{gender:(0,d.U)(u("validation.error.requiredField")),age:(0,d.U)(u("validation.error.requiredField"))}}),b=Object.assign({onSubmit:g.onSubmit(r)},i);return o.createElement(C.Provider,{value:{submitProps:a,currentUrl:l,form:g}},"inline"===t?o.createElement(InlineLayout,Object.assign({},b)):m?o.createElement(MbLayout,Object.assign({formLayout:t},b)):o.createElement(DefaultLayout,Object.assign({},b)))}},"Q+e3":function(e,t,a){a.d(t,{O:function(){return OvulationForm}});var l,r,n=a("mHfz"),o=a("q1tI"),i=a("/npG"),c=a("mYVa"),s=a("iuhU"),d=a("8vDj"),u=a("cChf"),p=a("ZFu2"),h=a("vu21"),m=a("erMh"),g=a("yEeW"),b=a("HKYo"),f=a("GXD3"),C=a("vffg"),E=a("BN2B"),y=a("fkrl");let AvoidPregnancy=e=>{var{isMarryBaby:t,size:a=24}=e,l=(0,n._)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},l);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,l=(0,n._)(e,["isMarryBaby","size"]);let r=Object.assign({width:a,height:a},l);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"}))},x=(0,o.createContext)({});var v=(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,n._)(e,[]);let{t:a}=(0,f.u)(),{currentUrl:l,submitProps:r,form:i,calculatingMethods:c,isMobile:d}=(0,o.useContext)(x),{classes:u={}}=(0,o.useContext)(C.C),{classes:p}=v(void 0,{name:"OvulationTool__DefaultLayout"});return o.createElement(E.H,Object.assign({formLayout:"default"},t),o.createElement(E.H.FormRow,null,o.createElement(E.H.Control,null,o.createElement(E.H.ChipGroup,Object.assign({data:c,label:a("dueDatePage.calculationMethod"),isMobile:d},i.getInputProps("calculatorType"))))),o.createElement(E.H.FormRow,null,o.createElement(g.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(E.H.FormRow,null,o.createElement(m.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:p.inputRightSection}}))),o.createElement(E.H.FormRow,null,o.createElement(m.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:p.inputRightSection}}))),o.createElement(E.H.FormRow,{className:u.submitWrapper},o.createElement(E.H.Submit,Object.assign({type:"submit",className:(0,s.default)("due-date-calculate-button",u.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:l},r),a("dueDatePage.lastPeriod.calculate"))))},InlineLayout=e=>{var t=(0,n._)(e,[]);let{t:a}=(0,f.u)(),{currentUrl:l,submitProps:r,form:i,calculatingMethods:c}=(0,o.useContext)(x),{classes:d={}}=(0,o.useContext)(C.C);return o.createElement(E.H,Object.assign({formLayout:"inline"},t),o.createElement(E.H.FormRow,null,o.createElement(E.H.BorderInlineControl,{label:a("dueDatePage.calculationMethod"),direction:"column",width:"100%"},o.createElement(E.H.ChipGroup,Object.assign({data:c},i.getInputProps("calculatorType"))))),o.createElement(E.H.FormRow,null,o.createElement(E.H.BorderInlineControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel")},o.createElement(g.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date},i.getInputProps("lastPeriodDate"))))),o.createElement(E.H.FormRow,null,o.createElement(E.H.BorderInlineControl,{label:a("ovulationPage.cycleLength")+" "+a("ovulationPage.dayUnit")},o.createElement(m.I.Number,Object.assign({min:21,max:45,defaultValue:1},i.getInputProps("cycleLength"),{error:null}))),i.errors.cycleLength&&o.createElement(E.H.Error,null,i.errors.cycleLength)),o.createElement(E.H.FormRow,null,o.createElement(E.H.BorderInlineControl,{label:a("ovulationPage.periodDuration")+" "+a("ovulationPage.dayUnit")},o.createElement(m.I.Number,Object.assign({min:1,max:15,defaultValue:1},i.getInputProps("periodLength"),{error:null}))),i.errors.periodLength&&o.createElement(E.H.Error,null,i.errors.periodLength)),o.createElement(E.H.FormRow,{className:d.submitWrapper},o.createElement(E.H.Submit,Object.assign({type:"submit",className:(0,s.default)("due-date-calculate-button",d.submitBtn),dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:l},r),a("dueDatePage.lastPeriod.calculate"))))},MbLayout=e=>{var t=(0,n._)(e,[]);let{t:a}=(0,f.u)(),{currentUrl:l,submitProps:r,form:i,calculatingMethods:c}=(0,o.useContext)(x);return o.createElement(E.H,Object.assign({formLayout:"inline"},t),o.createElement(E.H.Control,null,o.createElement(m.I.Wrapper,{label:o.createElement(b.T,{size:"p4",sx:{fontWeight:"normal"}},a("dueDatePage.calculationMethod"))},o.createElement(E.H.ChipGroup,Object.assign({data:c},i.getInputProps("calculatorType"))))),o.createElement(E.H.BorderBoxControl,{label:a("dueDatePage.lastPeriod.lastPeriodLabel"),rightSection:o.createElement(y.Z,null)},o.createElement(g.D,Object.assign({placeholder:"DD/MM/YYYY",popoverProps:{withinPortal:!0},maxDate:new Date,rightSection:null},i.getInputProps("lastPeriodDate")))),o.createElement(E.H.BorderBoxControl,{label:a("ovulationPage.cycleLength"),rightSection:a("ovulationPage.dayUnit")},o.createElement(m.I.Number,Object.assign({min:21,max:45,defaultValue:1},i.getInputProps("cycleLength")))),i.errors.cycleLength&&o.createElement(E.H.Error,null,i.errors.cycleLength),o.createElement(E.H.BorderBoxControl,{label:a("ovulationPage.periodDuration"),rightSection:a("ovulationPage.dayUnit")},o.createElement(m.I.Number,Object.assign({min:1,max:15,defaultValue:1},i.getInputProps("periodLength")))),i.errors.periodLength&&o.createElement(E.H.Error,null,i.errors.periodLength),o.createElement(E.H.Submit,Object.assign({type:"submit",className:"due-date-calculate-button",dataEventCategory:"Health Tool",dataEventAction:"Ovulation",dataEventLabel:l},r),a("dueDatePage.lastPeriod.calculate")))};(l=r||(r={}))[l.trackPeriod=0]="trackPeriod",l[l.conceive=1]="conceive",l[l.avoidPregnancy=2]="avoidPregnancy";let OvulationForm=e=>{var{formLayout:t="default",submitProps:a,currentUrl:l,isMobile:i,onSubmit:c}=e,s=(0,n._)(e,["formLayout","submitProps","currentUrl","isMobile","onSubmit"]);let m=(0,d.rZ)(),{t:g}=(0,f.u)(),b="mb"===m.other.template,C=(0,u.c)({initialValues:{calculatorType:String(r.trackPeriod),periodLength:7,cycleLength:28,lastPeriodDate:new Date},validate:{periodLength:(0,p.U)(g("validation.error.requiredField")),cycleLength:(0,p.U)(g("validation.error.requiredField"))}}),E=Object.assign({onSubmit:C.onSubmit(c)},s),y=[{label:g("ovulationPage.trackPeriod"),value:r.trackPeriod,icon:o.createElement(h.L,null)},{label:g("ovulationPage.conceive"),value:r.conceive,icon:o.createElement(TryConceive,null)},{label:g("ovulationPage.avoidPregnancy"),value:r.avoidPregnancy,icon:o.createElement(AvoidPregnancy,null)}];return o.createElement(x.Provider,{value:{submitProps:a,currentUrl:l,form:C,isMobile:i,calculatingMethods:y}},"inline"===t?o.createElement(InlineLayout,Object.assign({},E)):b?o.createElement(MbLayout,Object.assign({formLayout:t},E)):o.createElement(DefaultLayout,Object.assign({},E)))}},"5/AT":function(e,t,a){a.d(t,{C:function(){return CartCareButton},S:function(){return ShoppingCartCare}});var l=a("q1tI"),r=a("xXM3"),n=a.n(r),o=a("rBCA"),i=a("Eso5"),c=a("iBNF"),s=a("HkQG"),d=a("GXD3"),u=a("HKYo");let ShoppingCartCare=e=>l.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none"},e),l.createElement("path",{d:"M1.94434 1.94434L3.44545 2.31989C3.88211 2.42878 4.20989 2.791 4.27545 3.23656L5.55656 11.9454",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M16.9444 14.7218H4.99997C4.23331 14.7218 3.61108 14.0996 3.61108 13.3329C3.61108 12.5662 4.23331 11.944 4.99997 11.944H14.4766C14.9544 11.944 15.38 11.6385 15.5311 11.184L17.0122 6.73957C17.2522 6.01957 16.7166 5.27734 15.9578 5.27734H4.57553",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M4.16648 18.8891C4.93354 18.8891 5.55537 18.2673 5.55537 17.5002C5.55537 16.7332 4.93354 16.1113 4.16648 16.1113C3.39941 16.1113 2.77759 16.7332 2.77759 17.5002C2.77759 18.2673 3.39941 18.8891 4.16648 18.8891Z",fill:"currentColor"}),l.createElement("path",{d:"M15.8332 18.8891C16.6003 18.8891 17.2221 18.2673 17.2221 17.5002C17.2221 16.7332 16.6003 16.1113 15.8332 16.1113C15.0662 16.1113 14.4443 16.7332 14.4443 17.5002C14.4443 18.2673 15.0662 18.8891 15.8332 18.8891Z",fill:"currentColor"})),p=(0,o.Z)(i.x)` display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #ffffff33; position: relative; flex-shrink: 0; cursor: pointer; /* Desktop: Square layout */ border-radius: 28px; max-height: 40px; padding: 9px 1rem; background-color: inherit; white-space: nowrap; .cart-care-icon { width: 20px; height: 20px; color: ${c.r.colors.white}; flex-shrink: 0; } .cart-care-button-text { display: block; font-size: 14px; font-weight: 500; line-height: 22px; } /* Mobile: Circle layout */ ${s.M.mbDown} { border-radius: 100%; aspect-ratio: 1/1; width: 32px; height: 32px; padding: auto; background-color: ${c.r.colors.white}; max-height: none; padding: 0; .cart-care-icon { width: 20px; height: 20px; color: ${c.r.colors.blue900}; flex-shrink: 0; } .cart-care-button-text { display: none; } } `,h=(0,o.Z)(i.x)` min-width: 20px; min-height: 20px; aspect-ratio: 1/1; border-radius: 100%; background-color: ${c.r.colors.red500}; color: ${c.r.colors.white}; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: absolute; top: -4px; right: -4px; ${s.M.mbDown} { top: -8px; right: -8px; } `,CartCareButton=e=>{let{count:t=0,href:a,classes:r,boxProps:o,anchorProps:i,tracking:s}=e,{t:m}=(0,d.u)();return l.createElement("a",Object.assign({className:n()("cart-care-button"),href:a,"data-testid":"cart-care-button","data-event-category":"Hamburger Navigation","data-event-action":"Cart Click","data-event-label":a},s,i),l.createElement(p,Object.assign({className:n()("cart-care-button-box",null==r?void 0:r.box)},o),l.createElement(ShoppingCartCare,{className:"cart-care-icon"}),l.createElement(u.T,{size:"label1",color:c.r.colors.white,fw:500,className:"cart-care-button-text"},m("navigation.button.cartCareService")),t>0&&l.createElement(h,{className:n()("cart-care-button-count-box",null==r?void 0:r.count)},l.createElement(u.T,{size:t>99?"label2":"c1",color:c.r.colors.white,fw:600,className:"cart-care-button-count-text"},t>99?"99+":t))))}},BwS1:function(e,t,a){a.d(t,{L:function(){return Loading}});var l=a("q1tI"),r=a("GXD3"),n=a("w3RM");let Loading=({className:e,size:t="md"})=>{let{t:a}=(0,r.u)();return l.createElement("div",{className:`PD6nRZX ${e}`},l.createElement(n.B,{size:t,color:"transparent",isLoading:!0},a("loading")))}}}]);