"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6962],{"DN/R":function(e,t,a){a.r(t),a.d(t,{CollapsibleFaqs:function(){return CollapsibleFaqs}});var n=a("BGKE"),o=a("q1tI"),i=a("MmHG"),r=a("93jb"),l=a("dDsW"),c=a("Q7Fe"),s=a("iv2E"),d=a("sJ9w"),h=a("P5LW"),u=a("rIrU"),m=a("rBCA"),g=a("iBNF"),p=a("uuQu");let b=(0,m.Z)("div",{target:"e16m9hch0"})("position:relative;display:flex;justify-content:space-between;padding:12px 16px;background-color:white;cursor:pointer;transition:background-color 300ms ease-out;&:hover{background-color:",g.r.colors.neutral50,";}.icon{width:10%;margin-top:4px;text-align:end;",p.M.mbUp,"{width:5%;}&[data-is-hidden='false']{img{transform:rotate(180deg);}}img{width:24px;height:24px;transition:transform 300ms ease-out;}}"),f=(0,m.Z)("div",{target:"e16m9hch1"})(".content-wrapper{padding:24px;background:",g.r.colors.neutral50,";border-radius:",g.r.borderRadius,";.learn-more{margin-top:10px;p{display:inline;}a{text-decoration:none;}}}"),v=(0,m.Z)("div",{target:"e16m9hch2"})("margin-block:16px;background-color:",g.r.colors.teal50,";padding:16px;.faq-title{margin-bottom:16px;font-size:20px;padding:16px 0 16px 20px;&:after{height:40px;top:50%;transform:translateY(-50%);}}"),CollapsibleFaqsCard=e=>{var t;let{postContent:a,onShowClick:r,isShowed:m}=e,g=(0,o.useRef)(null),{formatMessage:p}=(0,l.Z)();(0,d.b)(g,m);let{locale:v,router:{asPath:C}}=(0,h.h)();return(0,n.BX)(n.HY,{children:[(0,n.BX)(b,{onClick:()=>{void 0!==r&&r(m?"hide":"show")},children:[(0,n.tZ)(i.T,{size:"lg",type:"bold",className:"heading",children:a.title}),(0,n.tZ)("div",{className:"icon","data-is-hidden":!m,children:(0,n.tZ)("img",{loading:"lazy",src:"".concat(u.Nr,"/chevronDown.svg"),alt:"Icon Chevron","data-event-category":"FAQ","data-event-action":"Arrow Click","data-event-label":"https://".concat(s.domainLocales[v]).concat(u.sb).concat(C)})})]}),(0,n.tZ)(f,{ref:g,children:(0,n.BX)("div",{className:"content-wrapper",children:[(0,n.tZ)("div",{className:"content",children:(0,n.tZ)(c.G,{size:"c1",content:a.content})}),a.learnMore?(0,n.BX)("div",{className:"learn-more",children:[(0,n.tZ)(i.T,{size:"c1",type:"bold",children:"".concat(p({id:"categoryPage.faqs.learnMore",defaultMessage:"Learn More"}),": ")}),(0,n.tZ)("a",{href:a.learnMore.permalink,children:(0,n.tZ)(i.T,{size:"c1",color:"#2685f1",children:(0,n.tZ)("span",{"data-event-category":"FAQ","data-event-action":"Internal Link Click","data-event-label":"https://".concat(s.domainLocales[v]).concat(u.sb).concat(a.learnMore.permalink),dangerouslySetInnerHTML:{__html:null==a?void 0:null===(t=a.learnMore)||void 0===t?void 0:t.title}})})})]}):null]})})]})},CollapsibleFaqs=e=>{let{isMobile:t,posts:a,title:i}=e,{formatMessage:c}=(0,l.Z)(),[s,d]=(0,o.useState)(-1),handleShowFAQ=(e,t)=>{d("show"===e?t:-1)};return(0,n.BX)(v,{children:[(0,n.tZ)(r.a,{size:"lg",className:"faq-title",children:i||c({id:"categoryPage.faqs",defaultMessage:"FAQs"})}),(0,n.tZ)("div",{children:a.map((e,a)=>(0,n.tZ)(CollapsibleFaqsCard,{isMobile:t,postContent:e,onShowClick:e=>{handleShowFAQ(e,a)},isShowed:s===a},a))})]})}},"gMY+":function(e,t,a){a.d(t,{f:function(){return CommunityBanner}});var n=a("BGKE"),o=a("q1tI"),i=a("DEkF"),r=a("iBNF"),l=a("xNPh"),c=a("8wjV"),s=a("wp0n"),d=a("Eso5"),h=a("SPK5"),u=a("Wgwc"),m=a.n(u),g=a("dDsW"),p=a("09QT"),b=a("oQBk"),f=a("CJtR"),v=a("7mej"),C=a("hXNO"),x=a("P5LW"),y=a("rIrU"),w=a("rBCA"),Z=a("uuQu");let N=(0,w.Z)("div",{target:"ejjtm1q0"})("width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:24px;gap:16px;",Z.M.mbDown,"{padding:16px;}.community{width:100%;display:flex;align-items:flex-start;gap:24px;}background:",r.r.colors.primary50,";border-radius:",r.r.borderRadius,";.thumbnail-header{width:80px;background:transparent;/* White */\n border:4px solid #ffffff;border-radius:8px;",Z.M.mbDown,"{width:48px;}}.detail{width:100%;}.detail-general{min-height:50px;width:100%;display:flex;",Z.M.mbUp,"{justify-content:space-between;}}"),T=(0,w.Z)(h.k,{target:"ejjtm1q1"})("border-radius:8px;.thumbnail{display:block;min-width:48px;width:48px;height:48px;img{border-radius:8px;}}"),Desktop=e=>{let{topics:t,dueDate:a}=e,{formatMessage:d}=(0,g.Z)(),h=(0,o.useMemo)(()=>t[0],[t]),{locale:u}=(0,x.h)();(0,o.useEffect)(()=>{h.joined||((0,p.d)(b.y.TOGETHER.POST_TOGETHER_JOIN_TOPIC,{method:"POST",data:{ids:[h.id]}},"together"),h.joined=!0)},[h.joined]);let{countMembers:C,countPosts:w,community:Z}=h;return(0,n.BX)(N,{children:[(0,n.BX)("div",{className:"community",children:[(0,n.tZ)("div",{className:"thumbnail-header",children:(0,n.tZ)("a",{href:"/community/".concat(Z.slug,"/").concat(h.slug),"data-event-category":"Health Tool","data-event-action":"Together Topic Click","data-event-label":"".concat((0,f.UC)(u),"/community/").concat(Z.slug,"/").concat(h.slug),children:(0,n.tZ)("img",{loading:"lazy",className:"thumbnail",src:h.thumbnail||"".concat(y.Nr,"/pregnancy-community.svg"),alt:"thumbnail"})})}),(0,n.tZ)("div",{className:"detail",children:(0,n.BX)("div",{className:"detail-general",children:[(0,n.BX)("div",{children:[(0,n.tZ)("a",{href:"/community/".concat(Z.slug,"/").concat(h.slug),className:"pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Together Topic Click","data-event-label":"".concat((0,f.UC)(u),"/community/").concat(Z.slug,"/").concat(h.slug),children:(0,n.tZ)(i.H,{tag:"h4",fontWeight:"bold",color:r.r.colors.gray800,className:"grow",children:h.name})}),(0,n.tZ)(v.g,{postsCount:w,membersCount:C})]}),(0,n.tZ)("a",{href:"/community/".concat(Z.slug,"/").concat(h.slug),"data-event-category":"Health Tool","data-event-action":"Together Discussion Click","data-event-label":"".concat((0,f.UC)(u),"/community/").concat(Z.slug,"/").concat(h.slug),className:"pointer-event-child-none",children:(0,n.tZ)(c.B,{bg:"#e0f8ee",size:"md",leftIcon:(0,n.tZ)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,n.tZ)("path",{d:"M14.9852 4.49251C14.7904 4.49832 14.6054 4.57975 14.4696 4.71956L6.74988 12.4393L4.28015 9.96956C4.21104 9.89758 4.12827 9.84012 4.03667 9.80053C3.94508 9.76094 3.8465 9.74003 3.74672 9.73901C3.64694 9.73799 3.54796 9.7569 3.45558 9.79462C3.36319 9.83233 3.27926 9.8881 3.20871 9.95866C3.13815 10.0292 3.08238 10.1132 3.04466 10.2055C3.00694 10.2979 2.98804 10.3969 2.98905 10.4967C2.99007 10.5965 3.01098 10.695 3.05057 10.7866C3.09016 10.8782 3.14763 10.961 3.21961 11.0301L6.21961 14.0301C6.36026 14.1707 6.551 14.2497 6.74988 14.2497C6.94876 14.2497 7.1395 14.1707 7.28015 14.0301L15.5302 5.78011C15.6385 5.67476 15.7126 5.53913 15.7425 5.39099C15.7725 5.24285 15.757 5.08912 15.6981 4.94993C15.6392 4.81074 15.5396 4.69259 15.4124 4.61097C15.2852 4.52935 15.1363 4.48806 14.9852 4.49251Z",fill:"#008C50"})}),children:(0,n.tZ)(s.T,{c:"#008c50",children:d({id:"together.embed.topicCard.joinDiscussion",defaultMessage:"Join Discussion"})})})})]})})]}),(0,n.tZ)(s.T,{size:"p4",color:r.r.colors.gray800,children:d({id:"pregnancyTool.communityBanner.message",defaultMessage:"Looking for other moms who may give birth in ? Connect with parents-to-be and share your stories in the ."},{"due-date":function(){return(0,n.tZ)(s.T,{as:"span",size:"p4",color:r.r.colors.gray800,weight:"semiBold",children:m()(a).format(y.DH)})},member:function(){return C>=1e3?(0,n.tZ)(s.T,{as:"span",size:"p4",color:r.r.colors.gray800,weight:"semiBold",children:(0,l.a)(C)}):null},topicName:function(){return(0,n.tZ)(s.T,{as:"span",size:"p4",color:r.r.colors.gray800,weight:"semiBold",children:h.name})}})})]})},Mobile=e=>{let{topics:t,dueDate:a}=e,{formatMessage:h}=(0,g.Z)(),u=(0,o.useMemo)(()=>t[0],[t]),{locale:C}=(0,x.h)();(0,o.useEffect)(()=>{u.joined||((0,p.d)(b.y.TOGETHER.POST_TOGETHER_JOIN_TOPIC,{method:"POST",data:{ids:[u.id]}},"together"),u.joined=!0)},[u.joined]);let{countMembers:w,countPosts:Z,community:T}=u;return(0,n.BX)(N,{children:[(0,n.BX)("div",{className:"community",children:[(0,n.tZ)("div",{className:"thumbnail-header",children:(0,n.tZ)("a",{href:"/community/".concat(T.slug,"/").concat(u.slug),className:"pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Together Topic Click","data-event-label":"".concat((0,f.UC)(C),"/community/").concat(T.slug,"/").concat(u.slug),children:(0,n.tZ)("img",{loading:"lazy",className:"thumbnail",src:u.thumbnail||"".concat(y.Nr,"/pregnancy-community.svg"),alt:"thumbnail"})})}),(0,n.tZ)("div",{className:"detail",children:(0,n.tZ)("div",{className:"detail-general",children:(0,n.BX)("div",{children:[(0,n.tZ)("a",{href:"/community/".concat(T.slug,"/").concat(u.slug),className:"pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Together Topic Click","data-event-label":"".concat((0,f.UC)(C),"/community/").concat(T.slug,"/").concat(u.slug),children:(0,n.tZ)(i.H,{tag:"h4",fontWeight:"bold",color:r.r.colors.gray800,className:"grow",children:u.name})}),(0,n.tZ)(v.g,{postsCount:Z,membersCount:w})]})})})]}),(0,n.tZ)("div",{className:"detail-message",children:(0,n.tZ)(s.T,{size:"p4",color:r.r.colors.gray800,children:h({id:"pregnancyTool.communityBanner.message",defaultMessage:"Looking for other moms who may give birth in ? Connect with parents-to-be and share your stories in the ."},{"due-date":function(){return(0,n.tZ)(s.T,{as:"span",size:"p4",color:r.r.colors.gray800,weight:"semiBold",children:m()(a).format(y.DH)})},member:function(){return w>=1e3?(0,n.tZ)(s.T,{as:"span",size:"p4",color:r.r.colors.gray800,weight:"semiBold",children:(0,l.a)(w)}):null},topicName:function(){return(0,n.tZ)(s.T,{as:"span",size:"p4",color:r.r.colors.gray800,weight:"semiBold",children:u.name})}})})}),(0,n.tZ)(d.x,{w:"100%",children:(0,n.tZ)("a",{href:"/community/".concat(T.slug,"/").concat(u.slug),className:"pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Together Discussion Click","data-event-label":"".concat((0,f.UC)(C),"/community/").concat(T.slug,"/").concat(u.slug),children:(0,n.tZ)(c.B,{fullWidth:!0,size:"md",bg:"#e0f8ee",className:"ask",leftIcon:(0,n.tZ)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,n.tZ)("path",{d:"M14.9852 4.49251C14.7904 4.49832 14.6054 4.57975 14.4696 4.71956L6.74988 12.4393L4.28015 9.96956C4.21104 9.89758 4.12827 9.84012 4.03667 9.80053C3.94508 9.76094 3.8465 9.74003 3.74672 9.73901C3.64694 9.73799 3.54796 9.7569 3.45558 9.79462C3.36319 9.83233 3.27926 9.8881 3.20871 9.95866C3.13815 10.0292 3.08238 10.1132 3.04466 10.2055C3.00694 10.2979 2.98804 10.3969 2.98905 10.4967C2.99007 10.5965 3.01098 10.695 3.05057 10.7866C3.09016 10.8782 3.14763 10.961 3.21961 11.0301L6.21961 14.0301C6.36026 14.1707 6.551 14.2497 6.74988 14.2497C6.94876 14.2497 7.1395 14.1707 7.28015 14.0301L15.5302 5.78011C15.6385 5.67476 15.7126 5.53913 15.7425 5.39099C15.7725 5.24285 15.757 5.08912 15.6981 4.94993C15.6392 4.81074 15.5396 4.69259 15.4124 4.61097C15.2852 4.52935 15.1363 4.48806 14.9852 4.49251Z",fill:"#008C50"})}),children:(0,n.tZ)(s.T,{c:"#008c50",children:h({id:"together.embed.topicCard.joinDiscussion",defaultMessage:"Join Discussion"})})})})})]})},Revamp=e=>{let{topics:t,dueDate:a}=e,i=(0,C.d)(),{formatMessage:d}=(0,g.Z)(),u=(0,o.useMemo)(()=>t[0],[t]),{locale:w}=(0,x.h)();(0,o.useEffect)(()=>{u.joined||((0,p.d)(b.y.TOGETHER.POST_TOGETHER_JOIN_TOPIC,{method:"POST",data:{ids:[u.id]}},"together"),u.joined=!0)},[u.joined]);let{countMembers:Z,countPosts:N,community:k}=u;return(0,n.BX)(T,{p:16,gap:16,bg:r.r.colors.blue50,direction:"column",children:[(0,n.BX)(h.k,{gap:16,children:[(0,n.tZ)("a",{href:"/community/".concat(k.slug,"/").concat(u.slug),className:"thumbnail pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Together Topic Click","data-event-label":"".concat((0,f.UC)(w),"/community/").concat(k.slug,"/").concat(u.slug),children:(0,n.tZ)("img",{loading:"lazy",src:u.thumbnail||"".concat(y.Nr,"/pregnancy-community.svg"),alt:"thumbnail",width:48,height:48})}),(0,n.BX)(h.k,{gap:4,direction:"column",children:[(0,n.tZ)("a",{href:"/community/".concat(k.slug,"/").concat(u.slug),className:"pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Together Topic Click","data-event-label":"".concat((0,f.UC)(w),"/community/").concat(k.slug,"/").concat(u.slug),children:(0,n.tZ)(s.T,{size:i?"h4":"h5",as:"p",weight:"bold",color:r.r.colors.gray800,children:u.name})}),(0,n.tZ)(v.g,{postsCount:N,membersCount:Z,size:"small"})]})]}),(0,n.tZ)(s.T,{size:i?"p3":"p4",color:r.r.colors.gray800,children:d({id:"pregnancyTool.communityBanner.message",defaultMessage:"Looking for other moms who may give birth in ? Connect with parents-to-be and share your stories in the ."},{"due-date":function(){return(0,n.tZ)(s.T,{as:"span",size:i?"p3":"p4",color:r.r.colors.gray800,weight:"semiBold",children:m()(a).format(y.DH)})},member:function(){return Z>=1e3?(0,n.tZ)(s.T,{as:"span",size:i?"p3":"p4",color:r.r.colors.gray800,weight:"semiBold",children:(0,l.a)(Z)}):null},topicName:function(){return(0,n.tZ)(s.T,{as:"span",size:i?"p3":"p4",color:r.r.colors.gray800,weight:"semiBold",children:u.name})}})}),(0,n.tZ)("a",{href:"/community/".concat(k.slug,"/").concat(u.slug),className:"pointer-event-child-none","data-event-category":"Health Tool","data-event-action":"Due Date - Guide and Support - Join Community","data-event-label":"".concat((0,f.UC)(w),"/community/").concat(k.slug,"/").concat(u.slug),children:(0,n.tZ)(c.B,{fullWidth:!0,size:"md",variant:"secondary",leftIcon:(0,n.tZ)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,n.tZ)("path",{d:"M14.9852 4.49251C14.7904 4.49832 14.6054 4.57975 14.4696 4.71956L6.74988 12.4393L4.28015 9.96956C4.21104 9.89758 4.12827 9.84012 4.03667 9.80053C3.94508 9.76094 3.8465 9.74003 3.74672 9.73901C3.64694 9.73799 3.54796 9.7569 3.45558 9.79462C3.36319 9.83233 3.27926 9.8881 3.20871 9.95866C3.13815 10.0292 3.08238 10.1132 3.04466 10.2055C3.00694 10.2979 2.98804 10.3969 2.98905 10.4967C2.99007 10.5965 3.01098 10.695 3.05057 10.7866C3.09016 10.8782 3.14763 10.961 3.21961 11.0301L6.21961 14.0301C6.36026 14.1707 6.551 14.2497 6.74988 14.2497C6.94876 14.2497 7.1395 14.1707 7.28015 14.0301L15.5302 5.78011C15.6385 5.67476 15.7126 5.53913 15.7425 5.39099C15.7725 5.24285 15.757 5.08912 15.6981 4.94993C15.6392 4.81074 15.5396 4.69259 15.4124 4.61097C15.2852 4.52935 15.1363 4.48806 14.9852 4.49251Z",fill:r.r.colors.primaryBase})}),children:(0,n.tZ)(s.T,{c:r.r.colors.primaryBase,children:d({id:"together.embed.topicCard.joinDiscussion",defaultMessage:"Join Discussion"})})})})]})},CommunityBanner=e=>{let t=(0,C.d)();return e.isRevamp?(0,n.tZ)(Revamp,{...e}):t?(0,n.tZ)(Mobile,{...e}):(0,n.tZ)(Desktop,{...e})}},I1O0:function(e,t,a){a.r(t),a.d(t,{default:function(){return b}});var n=a("BGKE"),o=a("q1tI"),i=a("wp0n"),r=a("8wjV"),l=a("h8tX"),c=a("Eso5"),s=a("Iblh"),d=a("dDsW"),h=a("VDZw"),u=a("nGnw"),m=a("/npG"),g=a("mYVa"),p=(0,m.k)((e,t)=>{let{backgroundColor:a,desktopImage:n,mobileImage:o,buttonColor:i}=t;return{root:{backgroundColor:a||e.colors.blue[0],borderRadius:(0,g.h)(8),padding:(0,g.h)(16),[e.fn.largerThan("sm")]:{padding:(0,g.h)(40)}},modalBody:{backgroundColor:"transparent",padding:0},modalContent:{backgroundColor:"transparent",overflow:"hidden"},wrapper:{position:"relative",zIndex:1,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:16,width:"calc(100% - 120px)",borderRadius:(0,g.h)(8),minHeight:(0,g.h)(200),[e.fn.largerThan("sm")]:{maxWidth:(0,g.h)(344),minHeight:(0,g.h)(240)}},bg:{position:"absolute",bottom:0,right:0,zIndex:0,width:(0,g.h)(132),height:(0,g.h)(180),backgroundImage:"url(".concat(o||u.C.getAssetPath("sc-pages/doctor-mobile.png"),")"),backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"center right",[e.fn.largerThan("sm")]:{backgroundImage:"url(".concat(n||u.C.getAssetPath("sc-pages/doctor.png"),")"),right:(0,g.h)(40),width:(0,g.h)(320),height:(0,g.h)(320)}},info:{display:"flex",flexDirection:"column",gap:(0,g.h)(8)},heading:{textTransform:"uppercase"},content:{},exit:{position:"absolute",right:(0,g.h)(10),top:(0,g.h)(10),zIndex:1,backgroundColor:e.fn.lighten(i||e.fn.primaryColor(),.75),borderRadius:(0,g.h)(8),padding:"".concat((0,g.h)(5)," ").concat((0,g.h)(8))},exitText:{}}}),b=(0,o.forwardRef)((e,t)=>{let{title:a,message:u,messageColor:m,backgroundColor:g,buttonColor:b,titleColor:f,desktopImage:v,mobileImage:C,styles:x,className:y,classNames:w,onChange:Z,onItemClick:N,defaultSection:T,...k}=e,{formatMessage:B}=(0,d.Z)(),[M,z]=(0,o.useState)(""),[E,{open:L,close:D}]=(0,s.q)(!1),{classes:I,cx:X,theme:H}=p({backgroundColor:g,desktopImage:v,mobileImage:C,buttonColor:b},{name:"ConfirmLeavePage",styles:x,classNames:w}),[S,j]=(0,o.useState)(),R=(0,o.useCallback)(e=>{e.preventDefault();let t=e.target.closest("a");t&&(L(),z(t.getAttribute("href")),null==Z||Z(!0))},[]);(0,o.useImperativeHandle)(t,()=>({setSuggestSection:j})),(0,o.useEffect)(()=>(document.querySelectorAll('#navigation-v2 a:not([data-banner-navigate="true"]), footer a').forEach(e=>{e.addEventListener("click",R)}),()=>{document.querySelectorAll('#navigation-v2 a:not([data-banner-navigate="true"]), footer a').forEach(e=>e.removeEventListener("click",R))}),[]);let q=S||T;return(0,n.tZ)(n.HY,{children:(0,n.tZ)(l.u,{classNames:{body:I.modalBody,content:I.modalContent},opened:E,onClose:()=>{D(),null==Z||Z(!1)},centered:!0,zIndex:500,size:744,title:"",withCloseButton:!1,children:(0,n.BX)(c.x,{className:X(I.root,y),...k,children:[(0,n.BX)(c.x,{className:I.wrapper,children:[(0,n.BX)(c.x,{className:I.info,children:[(0,n.tZ)(i.T,{size:"h1",as:"h3",color:f||H.colors.blue[7],className:I.heading,children:a}),(0,n.tZ)(i.T,{className:I.content,size:"s1",color:m,children:u})]}),(0,n.tZ)(c.x,{children:(0,n.tZ)(r.B,{variant:"primary",color:b,...null==q?void 0:q.btnTracking,onClick:()=>{(null==q?void 0:q.hash)&&(null==N||N(q.hash)),D()},children:(null==q?void 0:q.cta)||""})})]}),(0,n.tZ)(c.x,{className:I.exit,component:"a",href:M,children:(0,n.BX)(i.T,{size:"s4",color:b||H.colors.blue[7],className:I.exitText,children:[(0,n.tZ)(c.x,{sx:{display:"inline-block",verticalAlign:"middle"},onClick:()=>{D()},children:B({id:"confirmLeavingPopup.exit",defaultMessage:"Exit"})})," ",(0,n.tZ)(h.Z,{size:18,color:"currentColor",style:{verticalAlign:"middle"}})]})}),(0,n.tZ)(c.x,{className:I.bg})]})})})})},UcrG:function(e,t,a){a.d(t,{W:function(){return CountDownTimer}});var n=a("BGKE"),o=a("q1tI"),i=a("wp0n"),r=a("Eso5"),l=a("nCpW"),c=a("Wgwc"),s=a.n(c),d=a("dDsW"),h=(0,a("/npG").k)((e,t)=>{let{isEnd:a,hasUnit:n}=t;return{root:{backgroundColor:a?e.colors.gray[1]:"#FAF4E6",display:"flex",alignItems:"center",borderRadius:8,justifyContent:"space-between",padding:4},heading:{flexGrow:1,textAlign:"center",textTransform:"uppercase",padding:"0 10px"},listing:{display:"flex",alignItems:"center",...n&&{marginBottom:10}},item:{position:"relative",width:35,height:32,borderRadius:4,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:a?"#BFBFBF":"#FDC42D"},divider:{"&:before":{content:'":"',display:"inline-block",marginLeft:4,marginRight:4},"&:first-child":{"&:before":{content:"none"}}},text:{fontWeight:600,textAlign:"center"},unit:{position:"absolute",left:0,right:0,top:"100%",textAlign:"center"}}});let formatNumber=e=>1===String(e).length?"0".concat(e):e,CountDownTimer=e=>{let{endDate:t,onEnd:a,label:c,hasUnit:u,styles:m,classNames:g,className:p}=e,{formatMessage:b}=(0,d.Z)(),[f,v]=(0,o.useState)(0),[C,x]=(0,o.useState)(!1),{classes:y,cx:w}=h({isEnd:C,hasUnit:u},{name:"CountDownTimer",styles:m,classNames:g}),Z=(0,l.Y)(()=>v(e=>e+1),1e3),N=(0,o.useMemo)(()=>{let e=s().duration(s()(t).diff(s()()));return 1>Math.round(e.asSeconds())?(x(!0),null==a||a(),Z.stop(),{day:0,hour:0,minute:0,second:0}):{day:Math.round(e.days()),hour:Math.round(e.hours()),minute:Math.round(e.minutes()),second:Math.round(e.seconds())}},[f]);return(0,o.useEffect)(()=>(Z.start(),Z.stop),[]),(0,n.BX)(r.x,{className:w(p,y.root),children:[(0,n.tZ)(i.T,{size:"s4",className:y.heading,children:C?b({id:"common.ended"}):c||b({id:"common.startIn"})}),(0,n.BX)(r.x,{className:y.listing,children:[(0,n.BX)(r.x,{className:y.item,children:[(0,n.tZ)("span",{className:y.text,children:formatNumber(N.day)}),u&&(0,n.tZ)("span",{className:y.unit,children:b({id:"common.day"})})]}),(0,n.tZ)(r.x,{className:y.divider}),(0,n.BX)(r.x,{className:y.item,children:[(0,n.tZ)("span",{className:y.text,children:formatNumber(N.hour)}),u&&(0,n.tZ)("span",{className:y.unit,children:b({id:"common.hour"})})]}),(0,n.tZ)(r.x,{className:y.divider}),(0,n.BX)(r.x,{className:y.item,children:[(0,n.tZ)("span",{className:y.text,children:formatNumber(N.minute)}),u&&(0,n.tZ)("span",{className:y.unit,children:b({id:"common.minute"})})]}),(0,n.tZ)(r.x,{className:y.divider}),(0,n.BX)(r.x,{className:y.item,children:[(0,n.tZ)("span",{className:y.text,children:formatNumber(N.second)}),u&&(0,n.tZ)("span",{className:y.unit,children:b({id:"common.second"})})]})]})]})}},YbGd:function(e,t,a){a.d(t,{s:function(){return DropdownSearch}});var n=a("BGKE"),o=a("q1tI"),i=a("rBCA"),r=a("rYNE"),l=a("iBNF");let c=(0,i.Z)("div",{target:"e84i48q0"})("position:relative;border:1px solid ",l.r.colors.gray200,";background-position:right 16px center;border-radius:",l.r.borderRadius,";&[data-has-icons='true']{border:none;img,svg{display:inline-block;max-width:16px;}span{display:inline-block;vertical-align:middle;}&:hover{box-shadow:none;}> div{position:relative;display:flex;width:100%;box-sizing:border-box;align-items:center;}> div::after{position:absolute;z-index:0;padding:8px 16px;}&[data-is-open='false']{> div::after{top:50%;right:0;width:52px;height:36px;background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.99968 11.7259L6.81551 8.54171C6.47051 8.19671 5.91051 8.19671 5.56551 8.54171C5.22051 8.88671 5.22051 9.44671 5.56551 9.79171L9.41051 13.6367C9.73635 13.9625 10.2638 13.9625 10.5888 13.6367L14.4338 9.79171C14.7788 9.44671 14.7788 8.88671 14.4338 8.54171C14.0888 8.19671 13.5288 8.19671 13.1838 8.54171L9.99968 11.7259Z' fill='%23595959'/%3E%3C/svg%3E%0A\");background-position:center;background-repeat:no-repeat;content:'';transform:translateY(-50%);}}&[data-is-open='true']{> div::after{top:50%;right:0;width:52px;height:36px;background-image:url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1.66675 10.0001C1.66675 5.39175 5.39175 1.66675 10.0001 1.66675C14.6084 1.66675 18.3334 5.39175 18.3334 10.0001C18.3334 14.6084 14.6084 18.3334 10.0001 18.3334C5.39175 18.3334 1.66675 14.6084 1.66675 10.0001ZM12.4084 13.5834C12.7334 13.9084 13.2584 13.9084 13.5834 13.5834C13.9001 13.2584 13.9001 12.7251 13.5834 12.4084L11.1751 10.0001L13.5834 7.59175C13.9084 7.26675 13.9084 6.74175 13.5834 6.41675C13.2584 6.09175 12.7334 6.09175 12.4084 6.41675L10.0001 8.82508L7.59175 6.41675C7.26675 6.09175 6.74175 6.09175 6.41675 6.41675C6.2607 6.57244 6.17301 6.78382 6.17301 7.00425C6.17301 7.22468 6.2607 7.43606 6.41675 7.59175L8.82508 10.0001L6.41675 12.4084C6.2607 12.5641 6.17301 12.7755 6.17301 12.9959C6.17301 13.2163 6.2607 13.4277 6.41675 13.5834C6.74175 13.9084 7.26675 13.9084 7.59175 13.5834L10.0001 11.1751L12.4084 13.5834Z' fill='%238C8C8C'/%3E%3C/svg%3E%0A\");background-position:center;background-repeat:no-repeat;content:'';transform:translateY(-50%);}}}&:hover{box-shadow:0 0 2px 2px ",l.r.colors.primary200,";}"),s=(0,i.Z)("div",{target:"e84i48q1"})("cursor:pointer;&[data-dropdown-open]{padding:11px 15px 11px 15px;border:1px solid ",l.r.colors.primaryBase,";border-radius:",l.r.borderRadius,";box-shadow:0 0 2px 2px ",l.r.colors.primary200,";}"),d=(0,i.Z)("ul",{target:"e84i48q2"})("position:absolute;z-index:100;top:100%;right:0;left:0;display:block;max-height:500px;margin-top:4px;background:",l.r.colors.white,";border-radius:",l.r.borderRadius,";box-shadow:-1px 1px 2px rgba(67,70,74,0.0001),-2px 2px 5px rgba(67,86,100,0.123689);cursor:pointer;overflow-y:auto;&[data-has-icons='true']{border:1px solid ",l.r.colors.gray200,";background:white;box-shadow:none;filter:drop-shadow(0px 10px 16px rgba(0,0,0,0.04));}"),h=(0,i.Z)("li",{target:"e84i48q3"})("display:flex;width:100%;align-items:center;justify-content:flex-start;padding:6px 18px 6px 16px;&:hover,:active{background:",l.r.colors.gray100,";}.dropdown-label{line-height:20px;}&[data-disabled='true']{cursor:not-allowed;color:#bfbfbf;& > *{pointer-events:none;}}"),u=(0,i.Z)("div",{target:"e84i48q4"})("width:24px;height:24px;flex-shrink:0;"),m=(0,i.Z)(r.a,{target:"e84i48q5"})("input[data-icon='true']{padding-right:36px;padding-left:48px;}.displayIcon{img{width:24px;max-width:unset;height:24px;}}"),DropdownSearch=e=>{let{className:t,style:a,id:i,placeholder:r,placeholderIcon:l,onChange:g,value:p,options:b,dropdownLabelTrackingAttributes:f,disabled:v,onSearchChange:C,useSearchFilter:x=!0,onFocus:y,hasIcons:w=!0,keepSearch:Z=!1,...N}=e,[T,k]=(0,o.useState)(""),[B,M]=(0,o.useState)(!1),z=(0,o.useRef)(null),filterOptions=(e,t)=>{let a="".concat(t).toLowerCase();return e.filter(e=>"".concat(e.value).toLowerCase().includes(a)||"".concat(e.label).toLowerCase().includes(a))},E=(0,o.useMemo)(()=>T&&x?filterOptions(b,T):p?b.filter(e=>e.value!==p.value):b,[T,b,p]);return(0,n.BX)(c,{className:t,"data-dropdown-open":B||void 0,id:i,"data-has-icons":!0,"data-is-open":B,ref:z,onBlur:function(e){(!e.relatedTarget||"id"in e.relatedTarget&&e.relatedTarget.id!==i)&&M(!1)},style:a,tabIndex:0,...N,children:[(0,n.tZ)(s,{onClick:e=>{var t,a;(null===(a=e.target)||void 0===a?void 0:null===(t=a.getAttribute)||void 0===t?void 0:t.call(a,"data-is-open"))==="true"&&(k(""),g(null,""),null==C||C("")),v||M(!0)},"data-is-open":B,...f,children:(0,n.tZ)(m,{"data-icon":w,name:"dropdown-input",displayIcon:l,size:"md",onChange:e=>{g(null,e),k(e),null==C||C(T)},placeholder:r,value:p&&p.value?"".concat(p.label):T,isDisabled:v,onFocus:()=>{null==y||y()},onBlur:()=>{Z||setTimeout(()=>{k("")},300)},...f})}),B&&E.length>0&&(0,n.tZ)(d,{onClick:e=>{var t,a;(null===(a=e.target)||void 0===a?void 0:null===(t=a.getAttribute)||void 0===t?void 0:t.call(a,"data-is-open"))==="true"&&(k(""),g(null,"")),v||M(!B)},className:"dropdown-option","data-has-icons":w,children:E.map(e=>(0,n.BX)(h,{"data-selected":p&&p.value===e.value||void 0,onClick:()=>{e.disabled||v||null==g||g(e,e.value)},"data-disabled":!!e.disabled&&e.disabled,children:[e.icon&&(0,n.tZ)(u,{className:"option-icon",children:e.icon}),(0,n.tZ)("div",{className:"dropdown-label",children:e.label})]},"".concat(i,"-").concat(e.value)))})]})}}}]);