PageSourceSearch

https://www.meetic.it/reg/_next/static/chunks/7081-d6fd967e8b661f47.js

js meetic.it collected 2026-10-02 06:33:46 UTC 257,004 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7081],{471:(e,t,o)=>{o.d(t,{C:()=>j});var n=o(49724),r=o(127),i=o.n(r),s=o(55784),a=o(38071),l=o(54411),c=o(10313),d=o(31525),u=o(7613),p=o(53269),f=o(64685),m=o(43353),g=o(90150),h=o(75038);function b(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function y(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?b(Object(o),!0).forEach(function(t){(0,n.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var v=(0,f.I4)(i())(function(e){var t=e.isDesktop,o=e.siteCode,n=e.theme;return o===d.Lo.STIR?{position:"absolute",left:t?void 0:0,right:t?"72px":0,top:t?"72px":void 0,bottom:t?void 0:"12px",marginLeft:t?void 0:"auto",marginRight:t?void 0:"auto",textAlign:t?void 0:"center"}:{position:"absolute",right:t?n.space.medium:n.space.small,top:t?n.space.xxlarge:n.space.medium}}),w=(0,f.I4)(s.Ay)(function(e){var t=e.siteCode,o=e.theme,r=t===d.Lo.STIR,i=t===d.Lo.MEETIC;return(0,n.A)((0,n.A)((0,n.A)({color:r?o.palette.gray_100:o.palette.core3_100,fontSize:r||i?o.fontSizes.small:o.fontSizes.medium,fontWeight:r||i?o.weights.semibold:o.weights.bold},"&:hover:not(:focus), &:focus:hover",{backgroundColor:"transparent",textDecoration:r?"none":"underline ".concat(o.palette.core3_100)}),"&:focus, &:focus-visible",{backgroundColor:"transparent",boxShadow:"none"}),"&:active",{backgroundColor:"transparent",color:r?o.palette.gray_100:o.palette.core3_100})}),x=(0,f.I4)("div")(function(e){return{width:"100%",maxWidth:500,margin:e.hasMargin?"auto":void 0}}),O=(0,c.YK)({skipText:{id:"components/flows/collins/layout/RegistrationLayout:skipText",description:"skip",defaultMessage:"Skip"}});let j=function(e){var t=e.alignContentTop,o=e.children,n=e.currentStep,r=e.customLogoRenderer,s=e.layout,c=void 0===s?p.BX.Mobile:s,f=e.hasKeyboard,b=e.noPadding,j=e.steps,S=e.showBackButton,A=e.showProgressBar,C=e.showSkipButton,P=e.onBackClick,k=e.onSkipClick,T=e.skipAnimationOnSteps,M=e.showSensitiveDataDisclaimer,D=void 0!==M&&M,E=(0,m.SF)(),B=E.siteCode,_=E.site,L=(0,a.useTheme)(),I=_.isMeetic||_.isOurtimeEU,N=_.isMeetic?"xxlarge":"large",R=B===d.Lo.NORTH_AMERICA,U=(I||R)&&n===j-1,F=c===p.BX.Desktop,z=T&&T.length>0&&void 0!==T.find(function(e){return e===n})||!1,H=F||!I&&!R||!U,G=H&&D&&L.branding.sensitiveDataUrl,W=t?{}:{display:H?"flex":"block",flexDirection:"column",height:F?"100%":void 0,justifyContent:F?void 0:f?"flex-start":"flex-end",alignItems:"center",paddingBottom:"50px",flex:G?1:void 0};return(0,h.jsxs)(u.Wg,{siteCode:B,children:[r,(void 0===A||A)&&(0,h.jsx)(u.z2,{progress:100/j*++n,isDesktop:F,site:_}),S&&P&&(0,h.jsx)(u.oq,{onClick:P}),C&&(0,h.jsx)(v,{siteCode:B,isDesktop:F,children:(0,h.jsx)(w,{onClick:k,minimal:!0,siteCode:B,children:(0,h.jsx)(l.A,y({},O.skipText))})}),(0,h.jsxs)(i(),y(y({},W),{},{padding:b?void 0:"".concat(N),children:[(0,h.jsx)(x,{hasMargin:F&&!I,children:z?o:(0,h.jsx)(u.X5,{step:n,hasHorizationalFade:F,children:o})}),D&&L.branding.sensitiveDataUrl&&(0,h.jsx)(i(),{display:"flex",flexDirection:"column",flex:F?void 0:1,justifyContent:"flex-end",children:(0,h.jsx)(g.i,{helpArticleUrl:L.branding.sensitiveDataUrl})})]}))]})}},3539:(e,t,o)=>{o.d(t,{o:()=>r,y:()=>i});var n=o(10313),r=function(e){return e[e.Landing=1]="Landing",e[e.MoreOptions=2]="MoreOptions",e[e.FollowUp=3]="FollowUp",e}({}),i=(0,n.YK)({1:{id:"components/flows/collins/constants/self-gender:1",description:"Man gender choice",defaultMessage:"Man"},2:{id:"components/flows/collins/constants/self-gender:2",description:"Woman gender choice",defaultMessage:"Woman"},1077:{id:"components/flows/collins/constants/self-gender:1077",description:"Agender gender choice",defaultMessage:"Agender"},1078:{id:"components/flows/collins/constants/self-gender:1078",description:"Androgynous gender choice",defaultMessage:"Androgynous"},1079:{id:"components/flows/collins/constants/self-gender:1079",description:"Bigender gender choice",defaultMessage:"Bigender"}
1,1080:{id:"components/flows/collins/constants/self-gender:1080",description:"Demiman gender choice",defaultMessage:"Demiman"},1081:{id:"components/flows/collins/constants/self-gender:1081",description:"Demiwoman gender choice",defaultMessage:"Demiwoman"},1082:{id:"components/flows/collins/constants/self-gender:1082",description:"Gender Fluid gender choice",defaultMessage:"Gender Fluid"},1083:{id:"components/flows/collins/constants/self-gender:1083",description:"GenderNonconforming gender choice",defaultMessage:"Gender Nonconforming"},1084:{id:"components/flows/collins/constants/self-gender:1084",description:"Gender Questioning gender choice",defaultMessage:"Gender Questioning"},1085:{id:"components/flows/collins/constants/self-gender:1085",description:"Gender Variant gender choice",defaultMessage:"Gender Variant"},1086:{id:"components/flows/collins/constants/self-gender:1086",description:"Genderqueer gender choice",defaultMessage:"Genderqueer"},1087:{id:"components/flows/collins/constants/self-gender:1087",description:"Intersex gender choice",defaultMessage:"Intersex"},1088:{id:"components/flows/collins/constants/self-gender:1088",description:"Neutrois gender choice",defaultMessage:"Neutrois"},1089:{id:"components/flows/collins/constants/self-gender:1089",description:"Nonbinary gender choice",defaultMessage:"Nonbinary"},1090:{id:"components/flows/collins/constants/self-gender:1090",description:"Other gender choice",defaultMessage:"Other"},1091:{id:"components/flows/collins/constants/self-gender:1091",description:"Pangender gender choice",defaultMessage:"Pangender"},1092:{id:"components/flows/collins/constants/self-gender:1092",description:"Polygender gender choice",defaultMessage:"Polygender"},1093:{id:"components/flows/collins/constants/self-gender:1093",description:"Two Spirit gender choice",defaultMessage:"Two Spirit"},1094:{id:"components/flows/collins/constants/self-gender:1094",description:"Trans Man gender choice",defaultMessage:"Trans Man"},1095:{id:"components/flows/collins/constants/self-gender:1095",description:"Trans Person gender choice",defaultMessage:"Trans Person"},1096:{id:"components/flows/collins/constants/self-gender:1096",description:"Trans Woman gender choice",defaultMessage:"Trans Woman"},1097:{id:"components/flows/collins/constants/self-gender:1097",description:"Transfeminine gender choice",defaultMessage:"Transfeminine"},1098:{id:"components/flows/collins/constants/self-gender:1098",description:"Transgender gender choice",defaultMessage:"Transgender"},1099:{id:"components/flows/collins/constants/self-gender:1099",description:"Transgender Man gender choice",defaultMessage:"Transgender Man"},1100:{id:"components/flows/collins/constants/self-gender:1100",description:"Transgender Person gender choice",defaultMessage:"Transgender Person"},1101:{id:"components/flows/collins/constants/self-gender:1101",description:"Transgender Woman gender choice",defaultMessage:"Transgender Woman"},1102:{id:"components/flows/collins/constants/self-gender:1102",description:"Transmasculine gender choice",defaultMessage:"Transmasculine"},1103:{id:"components/flows/collins/constants/self-gender:1103",description:"Transsexual gender choice",defaultMessage:"Transsexual"},1104:{id:"components/flows/collins/constants/self-gender:1104",description:"Transsexual Man gender choice",defaultMessage:"Transsexual Man"},1105:{id:"components/flows/collins/constants/self-gender:1105",description:"Transsexual Woman gender choice",defaultMessage:"Transsexual Woman"}})},7378:(e,t,o)=>{o.d(t,{C:()=>n.A});var n=o(27459)},7613:(e,t,o)=>{o.d(t,{Je:()=>g,X5:()=>w,oq:()=>P,Wg:()=>k.A,Sc:()=>M,vD:()=>z,ji:()=>G,pd:()=>Z,l0:()=>eI,m_:()=>en,_U:()=>es,fh:()=>ed,z2:()=>eg,aU:()=>eb,l6:()=>ex,ew:()=>eP,dO:()=>eE,jL:()=>eD,VC:()=>eL});var n=o(64685),r=o(14579),i=o(49724),s=o(2923),a=o(55784),l=(0,n.I4)(a.Ay)(function(e){var t=e.theme,o=e.height,n=e.width,r=e.marginBottom,a=e.isOurTime;return(0,i.A)((0,i.A)((0,i.A)((0,i.A)({backgroundColor:t.palette.core3_100,borderColor:"transparent",border:0,borderRadius:t.radii.round,color:void 0!==a&&a?t.tokens.colorLegacyGray0:t.palette.core5_100,fontWeight:400,height:o,marginBottom:r||t.space.smedium,width:null!=n?n:"fit-content"},"&:hover",{backgroundColor:(0,s.transparentize)(.5,t.palette.core3_100)}),":focus",{backgroundColor:(0,s.transparentize)(.1,t.palette.core3_100),boxShadow:"0 0 0 2pt ".concat(t.palette.core5_100,", 
10 0 0 4pt ").concat((0,s.transparentize)(.1,t.palette.core3_100))}),":active",{backgroundColor:t.palette.core1_100,boxShadow:"none"}),"&:disabled",(0,i.A)({backgroundColor:(0,s.transparentize)(.8,t.palette.core3_100)},"&:hover",{backgroundColor:(0,s.transparentize)(.8,t.palette.core3_100)}))}),c=(0,n.I4)(a.Ay)(function(e){var t=e.theme,o=e.size;return(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({alignItems:"center",background:t.palette.core1_100,border:"none",borderRadius:t.radii.roundCorner1x,boxSizing:"border-box",cursor:"pointer",display:"flex",fontFamily:"BeausiteClassicWeb-SemiBold",fontSize:"16px",fontWeight:t.weights.bold,height:"48px",justifyItems:"center",lineHeight:"24px",marginBottom:t.space.smedium,outline:0,padding:"12px 24px",position:"relative",textAlign:"left",width:"fit-content"},"span",{fontWeight:t.weights.bold}),":hover",{background:t.palette.core1_100,boxShadow:"none"}),":focus, :active",{background:t.palette.core1_100,boxShadow:"none"}),"&:disabled",(0,i.A)({background:t.palette.core1_75_opaque},":hover",{background:t.palette.core1_75_opaque})),"size",o)}),d=(0,n.I4)(a.Ay)(function(e){var t,o,n,r,s=e.theme,a=e.size,l=e.disabled;return(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({alignItems:"center",background:null==(t=s.registrationComponents)?void 0:t.advanceButton.backgroundColor,border:"none",borderRadius:s.radii.round,boxSizing:"border-box",cursor:"pointer",fontSize:"16px",fontWeight:s.weights.bold,height:"48px",lineHeight:"24px",marginBottom:s.space.smedium,outline:0,padding:"12px 24px",pointerEvents:l?"none":void 0,width:"100%"},"span",{fontWeight:s.weights.bold}),":hover",{background:null==(o=s.registrationComponents)?void 0:o.advanceButton.backgroundColor,boxShadow:"none"}),":focus, :active",{background:null==(n=s.registrationComponents)?void 0:n.advanceButton.backgroundColor,boxShadow:"none"}),"&:disabled",(0,i.A)({background:"transparent",border:"1px solid ".concat(null==(r=s.registrationComponents)?void 0:r.advanceButton.disabledBorderColor)},":hover",{background:"transparent"})),"size",a)}),u=o(43353),p=(0,n.I4)(a.Ay)(function(e){return{height:48,width:e.width}}),f=o(75038),m=(0,n.I4)(r.Ay)(function(e){var t=e.disabled,o=e.theme,n=o.registrationComponents?o.registrationComponents.advanceButton.fontColor:o.palette.core5_100,r=o.registrationComponents?o.registrationComponents.advanceButton.disabledFontColor:o.palette.core5_100;return{color:t?r:n,fontWeight:o.weights.regular}});let g=function(e){var t=e.children,o=e.disabled,n=e.onClick,r=e.onMouseDown,i=e.type,s=void 0===i?"submit":i,a=e.width,g=e.size,h=void 0===g?"xlarge":g,b=e.height,y=e.marginBottom,v=(0,u.SF)().site,w=function(e){n&&n(e)};return v.isMeeticCoreHostname||v.isMeeticSeniorHostname?(0,f.jsx)(p,{width:a,type:s,size:"xlarge",onClick:w,disabled:!!o&&o,"data-testid":e["data-testid"]||"advance",children:t}):v.isAffinitySwipeBrand?(0,f.jsx)(d,{type:s,ghost:!0,size:h,onClick:w,disabled:!!o&&o,"data-testid":e["data-testid"]||"advance",onMouseDown:r,children:(0,f.jsx)(m,{disabled:o,as:"span",typography:"standardBody",children:t})}):v.isStir?(0,f.jsx)(c,{type:s,ghost:!0,size:h,onClick:w,disabled:!!o&&o,"data-testid":e["data-testid"]||"advance",onMouseDown:r,children:(0,f.jsx)(m,{as:"span",color:"core3_100",typography:"standardBody",children:t})}):(0,f.jsx)(l,{isOurTime:v.isOurTime,fullWidth:!0,type:s,ghost:!0,size:h,onClick:w,disabled:!!o&&o,"data-testid":e["data-testid"]||"advance",width:a||void 0,height:void 0===b?48:b,marginBottom:void 0===y?"smedium":y,children:(0,f.jsx)(m,{as:"span",color:"core3_100",typography:"standardBody",children:t})})};var h=o(76430),b=o(69334),y=o(26861),v=o(49836);let w=function(e){var t=e.children,o=e.step,n=e.hasHorizationalFade,r=void 0!==n&&n,i=(0,v.A)().nonce,s=(0,h.useRef)(null);return(0,f.jsxs)(h.Fragment,{children:[(0,f.jsx)(b.A,{mode:"out-in",children:(0,f.jsx)(y.A,{appear:!0,in:!0,nodeRef:s,timeout:{appear:400,enter:400,exit:400},classNames:"animation",children:(0,f.jsx)("main",{ref:s,className:"animation-container",children:t})},"step-".concat(o))}),(0,f.jsx)("style",{nonce:i,children:"\n        .animation-appear .animate-question {\n          opacity: 0;\n          transform: ".concat(r?"translateX(100%)":"translateY(100%)",";\n        }\n\n        .animation-appear-active .animate-question {\n          opacity: 1;\n          transform: ").concat(r?"translateX(0%)":"translateY(0%)",";\n        }\n\n        .animation-appear-active .animate-question {\n          transition-timing-function: ease-out;\n          transition: ").concat(r?"opacity 350ms, transform 350ms":"opacity 400ms, transform 400ms",";\n        }\n\n        .animation-appear .animate-answer {\n          opacity: 0;\n          transform: ").concat(r?"translateX(300px)":"translateY(100%)",";\n        }\n\n        .animation-appear-active .animate-answer {\n          opacity: 1;\n          transform: ").concat(r?"translateX(0%)":"translateY(0%)",";\n        }\n\n        .animation-appear-active .animate-answer {\n          transition-timing-function: ease-out;\n          transition: opacity 400ms, transform 400ms;\n        }\n\n        .animation-enter .animate-question {\n          opacity: 0;\n          transform: ").concat(r?"translateX(100%)":"translateY(100%)",";\n        }\n\n        .animation-enter-active .animate-question {\n          opacity: 1;\n          transform: ").concat(r?"translateX(0%)":"translateY(0%)",";\n        }\n\n        .animation-exit .animate-question {\n          opacity: 1;\n          transform: ").concat(r?"translateX(0%)":"translateY(0%)",";\n        }\n\n        .animation-exit-active .animate-question {\n          opacity: ").concat(r?"1":"0",";\n          transform: ").concat(r?"translateX(0%)":"translateY(-300px)",";\n        }\n\n        .animation-exit-active .animate-question {\n          transition-timing-function: ease-in;\n          transition: opacity 500ms, transform 500ms;\n        }\n\n        .animation-enter-active .animate-question {\n          transition-timing-function: ease-out;\n          transition: ").concat(r?"opacity 350ms, transform 350ms":"opacity 400ms, transform 400ms",";\n        }\n\n        .animation-enter .animate-answer {\n          opacity: 0;\n          transform: ").concat(r?"translateX(300px)":"translateY(100%)",";\n        }\n\n        .animation-enter-active .animate-answer {\n          opacity: 1;\n          transform: ").concat(r?"translateX(0%)":"translateY(0%)",";\n        }\n\n        .animation-exit-active .animate-answer {\n          transition-timing-function: ease-in;\n          transition: opacity 500ms, transform 500ms;\n        }\n\n        .animation-enter-active .animate-answer {\n          transition-timing-function: ease-out;\n          transition: opacity 400ms, transform 400ms;\n        }\n      ")})]})};var x=o(25936),O=o(10313),j=(0,n.i7)({from:{opacity:0}
1,to:{opacity:1}}),S=(0,n.I4)("div")(function(e){return{display:"flex",alignItems:"center",height:"60px",paddingLeft:e.theme.space.xsmall,animation:"".concat(j," 250ms ease-out 400ms both")}}),A=(0,n.I4)(a.Ay)(function(e){var t=e.theme;return(0,i.A)((0,i.A)((0,i.A)({display:"flex",alignItems:"center",justifyContent:"center",width:"36px",height:"36px",minWidth:"unset",padding:0,color:t.palette.gray_100,backgroundColor:"transparent"},"&:hover:not(:focus), &:focus:hover",{backgroundColor:"transparent"}),"&:focus, &:focus-visible",{backgroundColor:"transparent",boxShadow:"none"}),"&:active",{backgroundColor:"transparent",boxShadow:"none"})}),C=(0,O.YK)({backLabel:{id:"components/flows/collins/components/BackButton:backLabel",description:"Accessible label for the registration back navigation button",defaultMessage:"Back"}});let P=function(e){var t=e.onClick,o=(0,x.A)();return(0,f.jsx)(S,{children:(0,f.jsx)(A,{minimal:!0,onClick:t,"aria-label":o.formatMessage(C.backLabel),"data-testid":"registration-back-button",children:(0,f.jsx)("svg",{width:"10",height:"18",viewBox:"0 0 10 18",fill:"none","aria-hidden":"true",focusable:"false",children:(0,f.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.44955 0L10 1.65145L3.1009 9L10 16.3485L8.44955 18L0 9L8.44955 0Z",fill:"currentColor"})})})})};var k=o(45723),T=o(63661);let M=(0,n.I4)(T.Ay)(function(e){var t=e.checked,o=e.theme,n=(0,u.SF)().site,r=n.isMeeticCoreHostname||n.isMeeticSeniorHostname,a=o.palette.core3_100;return r?{marginBottom:o.space.small,alignItems:"flex-start","span:first-of-type":{borderRadius:o.radii.roundCorner1x}}:(0,i.A)((0,i.A)((0,i.A)({color:a,marginBottom:o.space.small,alignItems:"flex-start","span:first-of-type":{background:t?a:o.palette.transparent,borderRadius:o.radii.roundCorner1x,borderColor:(0,s.transparentize)(.75,a)}},":hover, :focus",{"span:first-of-type":{borderColor:a,boxShadow:"0 0 0px 4px ".concat((0,s.transparentize)(.8,a))}}),"input:focus + span",{borderColor:a,boxShadow:"0 0 0px 4px ".concat((0,s.transparentize)(.8,a))}),"input:focus ~ span, input:hover ~ span",{color:"".concat(a," !important")})});var D=o(18157),E=o(127),B=o.n(E),_=(0,n.I4)(a.Ay)(function(e){var t=e.isSelected,o=e.theme,n=e.isOurTime;return(0,i.A)((0,i.A)((0,i.A)((0,i.A)({backgroundColor:t?o.palette.core3_10_opaque:"transparent",borderRadius:o.radii.round,borderColor:n?o.palette.gray_25:o.palette.core3_25_opaque,fontWeight:400,height:"40px",marginBottom:o.space.smedium,padding:"8px 16px",margin:"4px",width:"fit-content",transition:"background-color .5s, border .5s, color .5s"},"> span, span:nth-of-type(2)",{color:o.palette.core3_100}),"&:hover, :active, :focus",(0,i.A)({backgroundColor:t?o.palette.core3_10_opaque:"transparent",boxShadow:"none"},"span, span:nth-of-type(2)",{color:o.palette.core3_100})),"&:hover, :focus",{backgroundColor:o.palette.core3_10_opaque}),":active",(0,i.A)({background:o.palette.core3_100,transition:"all 60ms ease",transform:"scale(.97)"},"span, span:nth-of-type(2)",{color:o.palette.gray_0}))}),L=(0,n.I4)(a.Ay)(function(e){var t,o,n,r,s,a,l,c,d,u,p,f=e.isSelected,m=e.theme;return(0,i.A)((0,i.A)((0,i.A)((0,i.A)({backgroundColor:f?null==(t=m.registrationComponents)?void 0:t.optionButton.backgroundColor:"transparent",borderRadius:m.radii.round,border:f?"":"1px solid",borderColor:f?null==(o=m.registrationComponents)?void 0:o.optionButton.selectedBorderColor:null==(n=m.registrationComponents)?void 0:n.optionButton.borderColor,fontWeight:400,height:"40px",marginBottom:m.space.smedium,padding:"8px 16px",margin:"4px",width:"fit-content",transition:"background-color .5s, border .5s, color .5s"},"> span, span:nth-of-type(2)",{color:f?null==(r=m.registrationComponents)?void 0:r.optionButton.selectedFontColor:null==(s=m.registrationComponents)?void 0:s.optionButton.fontColor}),"&:hover, :active, :focus",(0,i.A)({color:null==(a=m.registrationComponents)?void 0:a.optionButton.selectedFontColor,backgroundColor:null==(l=m.registrationComponents)?void 0:l.optionButton.backgroundColor,borderColor:null==(c=m.registrationComponents)?void 0:c.optionButton.selectedBorderColor,boxShadow:"none"},"span, span:nth-of-type(2)",{color:null==(d=m.registrationComponents)?void 0:d.optionButton.selectedFontColor})),"&:hover, :focus",{backgroundColor:null==(u=m.registrationComponents)?void 0:u.optionButton.backgroundColor}),":active",(0,i.A)({background:null==(p=m.registrationComponents)?void 0:p.optionButton.backgroundColor,transition:"all 60ms ease",transform:"scale(.97)"},"span, span:nth-of-type(2)",{color:m.palette.gray_0}))}),I=(0,n.I4)("button")(function(e){var t=e.isSelected,o=e.theme,n=e.size;return(0,i.A)((0,i.A)((0,i.A)((0,i.A)({background:"linear-gradient(\n      260.21deg,\n      ".concat(o.palette.core1_100," -20.44%,\n      ").concat(o.palette.core1_100," 123.11%\n  )"),backgroundColor:"transparent",backgroundPosition:"right",backgroundRepeat:"no-repeat",backgroundSize:t?"100% 100%":"
10% 100%",border:"1px solid ".concat(t?"transparent":o.palette.gray_25_opaque),borderRadius:"8px",boxShadow:"none",boxSizing:"border-box",color:t?o.palette.core5_100:o.palette.gray_100,cursor:"pointer",fontSize:"12px",fontWeight:o.weights.semibold,height:"40px",margin:"4px",outline:0,padding:"8px 16px",position:"relative",textAlign:"left",transitionDuration:"0.15s",transitionProperty:"background-size"},"span",{fontSize:"12px",fontWeight:o.weights.semibold,color:t?o.palette.core5_100:o.palette.gray_100}),":hover",(0,i.A)({backgroundColor:o.palette.core5_10_opaque,border:"1px solid ".concat(o.palette.gray_10_opaque),boxShadow:"none"},"span",{fontWeight:o.weights.bold,color:t?o.palette.core5_100:o.palette.gray_100})),":active",(0,i.A)({backgroundSize:"100% 100%",border:"1px solid transparent",boxShadow:"none",color:o.palette.core5_100},"span",{color:o.palette.core5_100})),"size",n)}),N=(0,n.I4)(B())(function(e){var t=e.hasGradientButtonOption,o=e.theme;return(0,i.A)((0,i.A)({margin:t?"0px 20px":"0px 32px",paddingTop:o.space.xsmall,height:"100%",overflowY:"auto",scrollbarWidth:"none"},"&::-webkit-scrollbar",{display:"none"}),"position","relative")}),R=(0,n.I4)(B())(function(e){var t=e.theme;return{borderBottom:"1px solid ".concat(t.palette.core3_25_opaque),height:"230px",marginBottom:"25px",position:"relative",textAlign:"center"}}),U=(0,n.I4)(r.Ay)(function(e){var t=e.theme;return{color:e.isOurTime?t.tokens.colorOnSurfaceVariant:t.palette.core3_100}}),F=function(e){var t=e.children,o=e.hasGradientButtonOption,n=e.hasRegistrationTheme,i=e.onClick,s=e.selected,a=(0,u.SF)().site;return n?(0,f.jsx)(L,{ghost:!0,"aria-checked":s,isSelected:s,onClick:i,role:"checkbox",children:(0,f.jsx)(r.Ay,{typography:"smallBody",bold:!1,children:t})}):o?(0,f.jsx)(I,{"aria-checked":s,isSelected:s,onClick:i,role:"checkbox",type:"button",children:(0,f.jsx)(r.Ay,{typography:"smallBody",bold:!1,children:t})}):(0,f.jsx)(_,{ghost:!0,"aria-checked":s,isSelected:s,onClick:i,role:"checkbox",isOurTime:a.isOurTime,children:(0,f.jsx)(U,{typography:"smallBody",bold:!1,isOurTime:a.isOurTime,children:t})})};let z=function(e){var t=e.availableSelections,o=e.hasGradientButtonOption,n=e.hasRegistrationTheme,r=e.maxSelections,i=e.onSelect,s=(0,h.useState)([]),a=s[0],l=s[1],c=function(e){var t=(0,D.A)(a);if(!(a.indexOf(e)>-1)){if(t.length>=r)if(t[t.length-1]===e)return;else t.pop(),t.push(e);else t.push(e);l(t),i(t)}},d=t.map(function(e,t){var r=a.findIndex(function(t){return t===e.value})>-1;return(0,f.jsx)(F,{"aria-checked":r,onClick:function(){return c(e.value)},selected:r,hasGradientButtonOption:o,hasRegistrationTheme:n,children:e.label},t)});return(0,f.jsx)(R,{children:(0,f.jsx)(N,{hasGradientButtonOption:o,children:d})})};var H=o(32719);let G=function(e){var t=e.children,o=e.defaultValue,n=e.error,r=e.id,i=e.name,s=e.onSelect,a=e.placeholder;return(0,f.jsx)(W,{defaultValue:o,error:n,id:r,name:i,onSelect:function(e){return s({value:Number(e.value)})},placeholder:a,variant:"variant2",children:t})};var W=(0,n.I4)(H.A)({borderBottomStyle:"solid"}),V=o(99186),q=o(11429);function Y(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function K(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(o),!0).forEach(function(t){(0,i.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Y(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var X=(0,n.I4)(V.default)(function(e){var t,o,n,r,s,a,l,c,d,u,p=e.site,f=e.theme,m=p.isMeetic||p.isOurtimeEU||p.isOurTime||p.isEven,g=p.isOurTime?f.palette.core1_75_opaque:void 0,h="1px solid ".concat(f.palette.dark);return p.isAffinitySwipeBrand&&f.registrationComponents&&(g=null==(d=f.registrationComponents)?void 0:d.input.placeholderFontColor,h=null==(u=f.registrationComponents)?void 0:u.input.borderColor),(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({backgroundColor:"transparent",borderBottom:h,fontFamily:p.isJapan||p.isMeeticCoreHostname?f.font.body:f.font.heading,fontSize:f.fontSizes.medium,color:null!=(t=f.registrationComponents)&&t.input?null==(o=f.registrationComponents)?void 0:o.input.fontColor:p.isOurTime?f.tokens.colorOnSurface:f.palette.gray_100,paddingLeft:f.space.none,paddingBottom:f.space.xsmall,paddingRight:m?f.space.xxxlarge:f.space.none},":hover, :-internal-autofill-selected, :-webkit-autofill",{"-webkit-transition-delay":"9999s","-webkit-box-shadow":"0 0 0 50px transparent inset",borderBottom:null!=(n=f.registrationComponents)&&n.input?null==(r=f.registrationComponents)?void 0:r.input.borderColor:void 0}),":focus",{borderBottom:null!=(s=f.registrationComponents)&&s.input?null==(a=f.registrationComponents)?void 0:a.input.borderColor:void 0}),":hover:focus",{background:null!=(l=null==(c=f.registrationComponents)?void 0:c.input.backgroundHoverFocus)?l:"transparent"}),"::-webkit-input-placeholder",{color:g,opacity:"40%"}),"::-moz-placeholder",{color:g,opacity:"40%"}),":-ms-input-placeholder",{color:g,opacity:"40%"}),":-moz-placeholder",{color:g,opacity:"40%"})}),J=(0,n.I4)(V.default)(function(e){var t=e.theme;return(0,i.A)((0,i.A)({backgroundColor:"transparent",borderBottom:"1px solid ".concat(t.palette.gray_100),fontFamily:t.font.body,fontSize:t.fontSizes.xlarge,color:t.palette.gray_100,paddingLeft:t.space.none,paddingBottom:t.space.xsmall,lineHeight:"24px"},"&:hover, :focus, :hover:focus, :-internal-autofill-selected, :-webkit-autofill, :-webkit-autofill:focus",{backgroundColor:"transparent",WebkitBackgroun
1dClip:"text"}),"::-ms-reveal, input::-ms-clear",{display:"none"})});let Z=function(e){var t,o,i,s,a,l=e.autoFocus,c=e.className,d=e.customValue,p=e.disabled,m=e.errorText,g=e.hasError,b=e.id,y=e.inputMode,v=e.maxLength,w=e.onBlur,x=e.onChange,O=e.onFocus,j=e.placeholder,S=e.register,A=e.readOnly,C=e.type,P=e.value,k=(0,u.SF)().site,T=(0,n.DP)(),M=function(e){x&&x(e),null!=S&&S.onChange&&S.onChange(e)},D=function(e){w&&w(e),null!=S&&S.onBlur&&S.onBlur(e)};return(0,f.jsxs)(h.Fragment,{children:[k.isStir?(0,f.jsx)(J,K(K({autoFocus:l,className:c,disabled:p,hasError:g,id:b,maxLength:v,onFocus:O,placeholder:j,type:C,variant:"variant1",readOnly:A},S),{},{innerRef:null==S?void 0:S.ref,onChange:M,onBlur:D,site:k,"data-testid":e["data-testid"],inputMode:y})):(0,f.jsx)(X,K(K({autoFocus:l,className:c,disabled:p,hasError:g,id:b,maxLength:v,onFocus:O,placeholder:j,type:C,variant:"variant1",readOnly:A},S),{},{innerRef:null==S?void 0:S.ref,onChange:M,onBlur:D,site:k,"data-testid":e["data-testid"],inputMode:y,value:null!=d?d:P})),g&&(0,f.jsxs)(B(),{paddingTop:+!k.isAffinitySwipeBrand,display:"flex",backgroundColor:null==(t=T.registrationComponents)?void 0:t.input.errorBackground,justifyContent:"space-between",marginTop:k.isAffinitySwipeBrand?2:void 0,children:[(0,f.jsx)(r.Ay,{color:null!=(o=T.registrationComponents)&&o.input.errorFontColor?null==(i=T.registrationComponents)?void 0:i.input.errorFontColor:"error",typography:"meta","data-testid":"input:error",id:"".concat((null==S?void 0:S.name)||"input",":error"),children:m}),k.isAffinitySwipeBrand&&(0,f.jsx)(q.default,{"aria-hidden":!0,name:"alert",color:null!=(s=T.registrationComponents)&&s.input.errorIconColor?null==(a=T.registrationComponents)?void 0:a.input.errorIconColor:"error",size:4})]})]})};var $=o(49517),Q=o(62798),ee=o(27299),et=(0,n.I4)(a.Ay)(function(e){var t,o,n,r,a,l,c,d,u,p=e.isSelected,f=e.theme,m=e.size;return(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({outline:"none",background:p?null==(t=f.registrationComponents)?void 0:t.optionButton.backgroundColor:"transparent",borderRadius:f.radii.round,borderColor:p?null==(o=f.registrationComponents)?void 0:o.optionButton.selectedBorderColor:null==(n=f.registrationComponents)?void 0:n.optionButton.borderColor,fontSize:"16px",fontWeight:400,height:48,marginBottom:f.space.smedium,paddingLeft:50,paddingRight:50,width:"100%",transitionDuration:"0.2s",transitionProperty:"color, background-color, text-shadow, border-color",boxShadow:"none"},"> span, span:nth-of-type(2)",{color:p?null==(r=f.registrationComponents)?void 0:r.optionButton.selectedFontColor:null==(a=f.registrationComponents)?void 0:a.optionButton.fontColor}),"&:hover",(0,i.A)({background:p?null==(l=f.registrationComponents)?void 0:l.optionButton.backgroundColor:"transparent",borderColor:null==(c=f.registrationComponents)?void 0:c.optionButton.selectedBorderColor},"span, span:nth-of-type(2)",{color:p?f.palette.core5_100:f.palette.core1_100})),":active",(0,i.A)({backgroundColor:null==(d=f.registrationComponents)?void 0:d.optionButton.backgroundColor,boxShadow:"none"},"span, span:nth-of-type(2)",{color:f.palette.core5_100})),":focus",(0,i.A)((0,i.A)((0,i.A)({boxShadow:"0 0 0 4px ".concat(f.palette.core4_50,", 0 0 0 8px ").concat((0,s.transparentize)(.75,f.palette.core4_100))},"> span, span:nth-of-type(2)",{color:f.palette.core3_100}),"backgroundColor","transparent"),"&:focus:not(:focus-visible)",(0,i.A)({boxShadow:"none",backgroundColor:null==(u=f.registrationComponents)?void 0:u.optionButton.backgroundColor},"span, span:nth-of-type(2)",{color:f.palette.core5_100}))),"size",m)}),eo=["disabled","onClick","children","isSelected","fullWidthOnSmallScreen"];let en=function(e){var t=e.disabled,o=e.onClick,n=e.children,i=e.isSelected,s=e.fullWidthOnSmallScreen,a=(0,$.A)(e,eo),l=(0,u.SF)().site;return l.isAffinitySwipeBrand?(0,f.jsx)(et,{ghost:!0,size:"xlarge",onClick:o,disabled:t,isSelected:i,"data-testid":a["data-testid"],children:(0,f.jsx)(r.Ay,{typography:"standardBody",bold:!1,children:n})}):l.isStir?(0,f.jsx)(ee.A,{ghost:!0,size:"xlarge",onClick:o,disabled:t,isSelected:i,"data-testid":a["data-testid"],children:(0,f.jsx)(r.Ay,{typography:"standardBody",bold:!1,children:n})}):(0,f.jsx)(Q.A,{ghost:!0,size:"xlarge","data-testid":a["data-testid"],onClick:o,disabled:t,isSelected:i,fullWidthOnSmallScreen:void 0!==s&&s,children:(0,f.jsx)(r.Ay,{typography:"standardBody",bold:!1,children:n})})};var er=o(58089),ei=o(53269);function es(e){var t=e.errors,o=e.consentErrors,n=(0,u.SF)(),r=n.site,i=n.layout,s=r.isMeetic||r.isOurtimeEU,a=Array.isArray(t)?t:[t],l=a.length?a:void 0===o?[]:o;return 0===l.length?null:(0,f.jsx)(ea,{isCentered:s&&i===ei.BX.Desktop,children:l.map(function(e,t){return s?(0,f.jsx)(er.default,{className:"error",fontSize:"xxsmall",children:e},t):(0,f.jsx)("li",{className:"error",children:e},t)})})}var ea=n.I4.ul(function(e){var t=e.theme,o=e.isCentered;return{margin:0,padding:0,listStyleType:"none",color:t.palette.functional2_100,display:"flex",flexDirection:"column",alignItems:o?"center":"flex-start",ga
1p:"4px"}}),el=o(63772),ec=o(31525);let ed=function(e){var t=e.id,o=e.onInputBlur,r=e.onInputFocus,s=e.onSelectedPostalCodeChange,a=e.onPostalCodeChange,l=e.placeholderText,c=e.suggestedPostalCodes,d=e.defaultSelectedText,p=(0,x.A)(),m=(0,u.SF)(),g=m.siteCode,b=m.urlCode,y=g===ec.Lo.STIR,v=g===ec.Lo.OUR_TIME,w=(0,n.c7)(g,b),O=(0,h.useRef)(null),j=function(e){a&&a(e)},S=function(e){if(s&&e){s(e.toString());var t=O.current;t&&setTimeout(function(){t.toggleDropdown(!1)},100)}},A=v?w.palette.core1_75_opaque:void 0;return(0,f.jsx)(n.Z2,{children:function(e){var n=e.css;return(0,f.jsx)(el.Ay,{autofocus:!0,"data-testid":"postalcode",defaultSelectedText:d,buttonAriaLabelClear:"clear",buttonAriaLabelDownArrow:"arrow down",buttonAriaLabelUpArrow:"arrow up",filter:!0,id:t,onInputFocus:r,onInputBlur:o,onResetInput:function(){return j("")},onInputChange:function(e){return j(e)},name:"postalcode",noResult:p.formatMessage(eu.noSuggestionsText),onSelect:function(e){S(null==e?void 0:e.value)},placeholder:l,ref:O,minSearchLength:2,dropdownClassName:n({boxShadow:"0 3px 6px rgb(0 0 0 / 16%), 0 3px 6px rgb(0 0 0 / 23%)",maxHeight:"300px",overflow:"auto"}),inputClassName:n(y?(0,i.A)((0,i.A)({backgroundColor:"transparent",border:"none",borderBottom:"1px solid ".concat(w.palette.gray_100),borderRadius:"0px",color:w.palette.gray_100,fontFamily:w.font.body,fontSize:w.fontSizes.xlarge,lineHeight:"24px",paddingBottom:w.space.xsmall,paddingLeft:w.space.none},":focus",{borderBottom:"1px solid #A590F9"}),":hover",{background:"transparent"}):(0,i.A)({backgroundColor:"transparent",border:"none",borderBottom:"1px solid ".concat(w.palette.dark),borderRadius:0,color:w.palette.core3_100,fontFamily:w.font.heading,fontSize:w.fontSizes.medium,marginTop:w.space.smedium,MozAppearance:"none",paddingBottom:w.space.xsmall,paddingLeft:w.space.none,paddingTop:0,WebkitAppearance:"none"},"::placeholder",{color:A})),children:c&&c.map(function(e,t){return(0,f.jsx)(el.Ay.Option,{value:e.value,children:e.label},"".concat(e.value).concat(t))})})}})};var eu=(0,O.YK)({noSuggestionsText:{id:"components/flows/collins/components/PostalCodeInput/PostalCodeInput:noSuggestionsText",description:"placeholder for suggestions dropdown nothing found",defaultMessage:"(Nothing Found)"}}),ep=n.I4.div(function(e){var t=e.site,o=e.theme,n=e.width,r=t.isMeeticCoreHostname||t.isMeeticSeniorHostname,i=t.isStir||r?o.palette.core1_100:"linear-gradient(90deg, ".concat(o.palette.core3_100," 0%, ").concat(o.palette.core1_100," 100%)");return o.registrationComponents&&(i=o.registrationComponents.progressBar.backgroundColor),{background:i,height:"4px",lineHeight:"4px",textAlign:"right",textIndent:"0.25rem",textShadow:"1px 1px 0 rgba(hsl(180deg, 2%, 16%)), 0.5",transition:"width .2s ease-in-out",verticalAlign:"middle",whiteSpace:"nowrap",width:n}}),ef=(0,n.I4)(B())(function(e){var t=e.site,o=e.isDesktop,n=e.theme,r=t.isStir;return{borderBottom:"1px solid ".concat((0,s.transparentize)(.9,n.palette.dark)),position:"relative",top:r?"36px":o?"20px":void 0,marginBottom:o||r?"40px":void 0,width:"100%"}}),em=function(e){var t=e.children,o=e.isDesktop,n=e.site;return(0,f.jsx)(ef,{site:n,isDesktop:o,children:t})};let eg=function(e){var t=e.isDesktop,o=e.progress,n=e.site;return(0,f.jsx)(em,{site:n,isDesktop:t,children:(0,f.jsx)(ep,{site:n,width:"".concat(o,"%"),role:"progressbar","aria-valuenow":Math.floor(o),"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":"Profile Completion","aria-live":"polite",tabIndex:0})})};var eh=o(25527);let eb=function(){var e=(0,u.SF)().urlCode;return(0,f.jsx)(B(),{backgroundColor:e===ec.cc.PAR_PERFEITO?"gray_0":"core3_100",borderRadius:"round",center:!0,height:"64px",width:"64px",children:(0,f.jsx)(eh.Ay,{size:"abbreviated",color:e===ec.cc.PAR_PERFEITO?"core3_100":"core5_100",height:"40",width:"40"})})};function ey(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function ev(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?ey(Object(o),!0).forEach(function(t){(0,i.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ey(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var ew=(0,n.I4)("select")(function(e){var t=e.siteCode,o=e.theme;return{backgroundColor:"transparent",border:"none",borderBottom:"1px solid ".concat(o.palette.dark),borderRadius:0,fontFamily:t===ec.Lo.JAPAN?o.font.body:o.font.heading,fontSize:o.fontSizes.large,marginTop:o.space.smedium,paddingLeft:o.space.none,paddingBottom:o.space.xsmall,color:o.palette.core3_100,WebkitAppearance:"none",MozAppearance:"none"}});let ex=function(e){var t=e.selectedValue,o=e.disabled,n=e.name,r=e.register,i=e.siteCode,s=e.values,a=e.onChange,l=(0,x.A)(),c=l.formatMessage(ev({},eO.basicLabelCountry));switch(n){case"stateCode":c=i===ec.Lo.ENGLISH_SPEAKING_INTERNATIONAL?l.formatMessage(ev({},eO.basicLabelRegion)):l.formatMessage(ev({},eO.basicLabelState));break;case"cityCode":c=l.formatMessage(ev({},eO.basicLabelCity))}return(0,f.jsxs)(ew,ev(ev({disabled:o,id:n,name:n,siteCode:i||1,value:t},r),{},{onChange:function(e){a(e),r&&r.onChange&&r.onChange(e)},children:[(0,f.jsx)("option",{value:-1,children:c},-1),s&&s.map(function(e,t){var o=e.name,n=e.code;return(0,f.jsx)("option",{value:n,children:o},t)})]}))};var eO=(0,O.YK)({basicLabelCountry:{id:"components/flows/collins/components/Select/select:basicLabelCountry",description:"Country placeholder text",defaultMessage:"Country"},basicLabelState:{id:"components/flows/collins/components/Select/select:basicLabelState",description:"State placeholder text",defaultMessage:"State"},basicLabelCity:{id:"components/flows/collins/components/Select/select:basicLabelCity",description:"City placeholder text",defaultMessage:"City"},basicLabelRegion:{id:"components/flows/collins/components/Select/select:basicLabelRegion",description:"Region placeholder text",defaultMessage:"Region"}}),ej=o(22561),eS=o(44712),eA=(0,n.I4)(B())(function(e){var t=e.height,o=e.theme,n=e.width,r=e.isOurTime?o.tokens.colorOnSurface:o.palette.core3_100;return{alignItems:"center",borderBottom:"1px solid ".concat((0,s.transparentize)(.75,r)),borderTop:"1px solid ".concat((0,s.transparentize)(.75,r)),display:"flex",flexDirection:"column",height:t||"200px",overflow:"auto",width:n||"100%"}}),eC=(0,n.I4)(ej.Ay)(function(e){var t=e.checked,o=e.theme,n=e.isOurTime,r=o.tokens.colorOnSurface,a=n?r:o.palette.core3_100;return(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},"input",{visibility:"hidden"}),"span:first-of-type",{visibility:"hidden",width:"0px",height:"0px"}),"span:nth-of-type(2)",{color:t?a:(0,s.transparentize)(.75,a),fontSize:o.fontSizes.small,fontWeight:400}),"span:nth-of-type(2):hover, :focus",{color:a})});let eP=function(e){var t=e.defaultSelected,o=e.height,n=e.name,r=e.onChange,i=e.options,s=e.width,a=(0,eS.S)().site,l=(0,h.useCallback)(function(e,t){r(e,parseInt(t,10))},[r]);return!i||i.length<=0?null:(0,f.jsx)(eA,{width:s,height:o,isOurTime:a.isOurTime,children:(0,f.jsx)(ej.Ay.Group,{name:n||"",defaultSelected:String(t),onChange:l,children:i.length>0&&i.map(function(e){return(0,f.jsx)(eC,{isOurTime:a.isOurTime,name:n,id:"radio-".concat(e.value),value:String(e.value),children:e.label},e.value)})})})};var ek=o(38071),eT=o(76364),eM=(0,n.I4)(eT.Ay)(function(e){return{color:e.theme.palette.core3_100,fontWeight:350}});let eD=function(e){var t=e.children;return(0,f.jsx)(eM,{typography:"heading7",priority:1,color:"core3_100",children:t})},eE=function(e){var t=e.showLogo,o=e.title,n=e.subHeader,r=(0,u.SF)(),i=r.layout,s=r.site,a=r.urlCode,l=(0,ek.useTheme)(),c=l.branding,d=s.isOurTime,p=s.isStir,m=!d&&!p&&!ei._2.has(a),g=i===ei.BX.Mobile;if((s.isMeeticCoreHostname||s.isMeeticSeniorHostname)&&null!=l&&l.xcomponents){var h,b,y,v=null!=(b=null==(y=l.xcomponents)?void 0:y.abbreviatedLogo)?b:l.xcomponents.logo,w=s.isMeeticSeniorHostname?40:void 0;h=(0,f.jsx)("img",{src:v.url(),alt:c.siteName,width:s.isMeeticCoreHostname?64:void 0,height:w})}else{var x=40;p?x=67:d&&(x=60),h=m?(0,f.jsx)(eb,{}):(0,f.jsx)(eh.Ay,{height:x,width:p||d?void 0:208,color:p?"core3_100":void 0})}return(0,f.jsxs)("div",{className:"animate-question",children:[t&&h,g&&(0,f.jsx)(eD,{children:n}),(0,f.jsx)(eL,{children:o})]})};function eB(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}var e_=(0,n.I4)(eT.Ay)(function(e){var t,o=e.theme,n=(0,u.SF)().site,r=n.isStir?o.palette.gray_100:o.palette.core3_100,s={};return n.isAffinitySwipeBrand&&o.registrationComponents&&(r=null==(t=o.registrationComponents)?void 0:t.stepHeaderTitle.fontColor,s=(0,i.A)({},"@media only screen and (min-width: 768px)",{textAlign:"center"})),function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?eB(Object(o),!0).forEach(function(t){(0,i.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):eB(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({color:n.isOurTime?o.tokens.colorOnSurface:r,fontFamily:n.isStir?o.font.heading:void 0,fontWeight:n.isStir?o.weights.bold:o.weights.semibold},s)});let eL=function(e){var t=e.children;return(0,f.jsx)(e_,{typography:"heading3",priority:1,color:"core3_100",children:t})},eI=(0,n.I4)(r.Ay)(function(e){var t,o=e.theme,n=e.site,r=n&&n.isStir?o.palette.gray_100:o.palette.core3_100;return n&&n.isAffinitySwipeBrand&&o.registrationComponents?r=null==(t=o.registrationComponents)?void 0:t.textColor:n&&n.isOurTime&&(r=o.tokens.colorOnSurfaceVariant),{color:r}});o(59412)},12865:(e,t,o)=>{o.d(t,{Oi:()=>n.Oi,vy:()=>r,d8:()=>n.d8,J0:()=>n.J0,_l:()=>n._l,Eh:()=>n.Eh,vV:()=>n.vV,qo:()=>n.qo}),o(98386);var n=o(90071);function r(e){var t;if((t=String(e))&&/^[0-9]{5}$/.test(t)){var o=Number(e);return o>=60001&&o<=62999||o>=7001&&o<=8989||o>=6001&&o<=6389||o>=6401&&o<=6928||o>=84e3&&o<=84799}return!1}},16205:(e,t,o)=>{o.d(t,{M2:()=>ei,_o:()=>nX,PH:()=>eP,i5:()=>eB,nx:()=>nQ,_K:()=>eZ,_:()=>nF,kt:()=>e2,WW:()=>nV,_V:()=>to,go:()=>ou,yx:()=>ny,h8:()=>tR,t_:()=>nB,eZ:()=>nA,oD:()=>tE,lU:()=>oy,rS:()=>er,S2:()=>eC,v3:()=>eE,TO:()=>eJ,t$:()=>e1,Bg:()=>te,Zt:()=>od,AP:()=>tN,rI:()=>tD});var n,r,i,s=o(76430),a=o(43353),l=o(49724),c=o(54411),d=o(10313),u=o(38071),p=o(127),f=o.n(p),m=o(14579),g=o(7613),h=o(25936),b=o(75038);function y(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function v(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?y(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}let w=function(e){var t=e.hasError,o=e.onSelect,n=e.selectedDay,r=e.selectedMonth,i=e.selectedYear,a=e.setHasDayError,l=e.showDateUnit,c=e.submittedBirthday,d=e.width,p=(0,h.A)(),m=p.formatMessage(v({},x.dayPlaceholderText)),y=p.formatMessage(v({},x.dayUnit)),w=c||1;(0,s.useEffect)(function(){o({value:w})},[]);var O=31;return(0,s.useEffect)(function(){n&&(n>O?a(!0):a(!1))},[O,n,r,a]),(0,b.jsx)(f(),{width:d,marginRight:u.constants.SPACE.SMALL,children:(0,b.jsx)(g.ji,{defaultValue:String(w),error:t,id:"birthday",name:"birthday",placeholder:m,onSelect:o,children:function(){var e=[];e.push((0,b.jsx)("option",{id:String(0),disabled:!0,children:m},-1)),r&&[4,6,9,11].includes(r)&&(O=30),2===r&&(O=i&&i%4==0?29:28);for(var t=1;t<=O;t++){var o=String(t)+(l&&y);e.push((0,b.jsx)("option",{id:String(t),value:t,defaultValue:String(w),children:o},t))}return e}()})})};var x=(0,d.YK)({dayPlaceholderText:{id:"components/flows/collins/steps/Birthday/BirthdayDropdownStep/BirthdateDropdowns/BirthDayDropdown/BirthDayDropdown:dayPlaceholderText",description:"day placeholder for input",defaultMessage:"DD"},dayUnit:{id:"components/flows/collins/steps/Birthday/BirthdayDropdownStep/BirthdateDropdowns/BirthDayDropdown/BirthDayDropdown:dayUnit",description:"day unit",defaultMessage:"D"}});function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function j(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?O(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):O(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}let S=function(e){var t=e.showDateUnit,o=e.onSelect,n=e.submittedBirthmonth,r=e.width,i=(0,h.A)(),a=i.formatMessage(j({},A.monthPlaceholderText)),l=i.formatMessage(j({},A.monthUnit)),c=n||1;return(0,s.useEffect)(function(){o({value:c})},[]),(0,b.jsx)(f(),{width:r,marginRight:u.constants.SPACE.SMALL,children:(0,b.jsx)(g.ji,{defaultValue:String(c),id:"birthmonth",name:"birthmonth",placeholder:a,onSelect:o,children:function(){var e=[];e.push((0,b.jsx)("option",{id:String(0),disabled:!0,children:a},-1));for(var o=1;o<=12;o++){var n=String(o)+(t&&l);e.push((0,b.jsx)("option",{id:String(o),value:o,defaultValue:String(c),children:n},o))}return e}()})})};var A=(0,d.YK)({monthPlaceholderText:{id:"components/flows/collins/steps/Birthday/BirthdayDropdownStep/BirthdateDropdowns/BirthMonthDropdown/BirthMonthDropdown:monthPlaceholderText",description:"month placeholder for input",defaultMessage:"MM"},monthUnit:{id:"components/flows/collins/steps/Birthday/BirthdayDropdownStep/BirthdateDropdowns/BirthMonthDropdown/BirthMonthDropdown:monthUnit",description:"month unit",defaultMessage:"M"}});function C(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function P(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?C(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):C(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var k=new Date().getFullYear();let T=function(e){var t=e.showDateUnit,o=e.onSelect,n=e.submittedBirthyear,r=e.width,i=(0,h.A)(),a=i.formatMessage(P({},M.yearPlaceholderText)),l=i.formatMessage(P({},M.yearUnit)),c=n||1980;return(0,s.useEffect)(function(){o({value:c})},[]),(0,b.jsx)(f(),{width:r,marginRight:u.constants.SPACE.SMALL,children:(0,b.jsx)(g.ji,{defaultValue:String(c),id:"birthyear",name:"birthyear",placeholder:a,onSelect:o,children:function(){var e=[];e.push((0,b.jsx)("option",{id:String(0),disabled:!0,children:a},-1));for(var o=k;o>=1930;o--){var n=String(o)+(t&&l);e.push((0,b.jsx)("option",{id:String(o),value:o,defaultValue:c,children:n},o))}return e}()})})};var M=(0,d.YK)({yearPlaceholderText:{id:"components/flows/collins/steps/Birthday/BirthdayDropdownStep/BirthdateDropdowns/BirthYearDropdown/BirthYearDropdown:yearPlaceholderText",description:"year placeholder for input",defaultMessage:"YYYY"},yearUnit:{id:"components/flows/collins/steps/Birthday/BirthdayDropdownStep/BirthdateDropdowns/BirthYearDropdown/BirthYearDropdown:yearUnit",description:"year unit",defaultMessage:"Y"}});function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function E(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?D(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):D(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var B=u.constants.SPACE;let _=function(e){var t=e.errors,o=e.hasWelcomeHeader,n=e.isSubmitting,r=e.onHasKeyboard,i=e.onSubmit,l=e.selectedBirthdate,d=e.setValue,u=e.showAdvanceButton,p=e.showDateUnit,h=e.step,y=(0,a.Ww)().stepCount,v=(0,a.RR)({onSubmit:i,step:h,stepCount:y}).handleOnSubmit,x=void 0!==t,O=null==t?void 0:t.message,j=(0,s.use
1State)(void 0),A=j[0],C=j[1],P=(0,s.useState)(void 0),k=P[0],M=P[1],D=(0,s.useState)(void 0),_=D[0],I=D[1],N=(0,s.useState)(!1),R=N[0],U=N[1],F=(0,s.useState)(!1),z=F[0],H=F[1];return(0,s.useEffect)(function(){r&&r(!0)},[r]),(0,s.useEffect)(function(){d&&A&&k&&_&&(H(!0),d("birthDate",{day:_,month:k,year:A}))},[A,k,_,d]),(0,b.jsx)("form",{onSubmit:v,children:(0,b.jsxs)(f(),{paddingBottom:"80px",children:[(0,b.jsx)(g.dO,{showLogo:!0,title:o?(0,b.jsx)(c.A,E({},L.welcomeTitle)):(0,b.jsx)(c.A,E({},L.standardTitle))}),(0,b.jsxs)("div",{className:"animate-answer",children:[(0,b.jsxs)(f(),{display:"flex",flexDirection:"row",children:[(0,b.jsx)(T,{onSelect:function(e){e&&C(Number(e.value))},showDateUnit:p,submittedBirthyear:l&&l.year,width:120}),(0,b.jsx)(S,{onSelect:function(e){e&&M(Number(e.value))},showDateUnit:p,submittedBirthmonth:l&&l.month,width:120}),(0,b.jsx)(w,{hasError:R,onSelect:function(e){e&&I(Number(e.value))},selectedDay:_,selectedMonth:k,selectedYear:A,setHasDayError:U,showDateUnit:p,submittedBirthday:l&&l.day,width:120})]}),R&&(0,b.jsx)(f(),{paddingTop:"xsmall",children:(0,b.jsx)(m.Ay,{color:"error",typography:"meta",children:(0,b.jsx)(c.A,E({},L.errorStateText))})}),x&&(0,b.jsx)(f(),{paddingTop:"xsmall",children:(0,b.jsx)(m.Ay,{color:"error",typography:"meta",children:O})}),u&&(0,b.jsx)(f(),{paddingTop:B.LARGE,display:"flex",justifyContent:"flex-end",children:(0,b.jsx)(g.Je,{disabled:!z||R||n,children:(0,b.jsx)(c.A,E({},L.advanceBtnText))})})]})]})})};var L=(0,d.YK)({advanceBtnText:{id:"components/flows/collins/steps/Birthday/BirthdayDropdownStep/BirthdayDropdownStep:advanceBtnText",description:"Continue",defaultMessage:"That's it"},welcomeTitle:{id:"components/flows/collins/steps/Birthday/BirthdayDropdownStep/BirthdayDropdownStep:welcomeTitle",description:"Introduction for step as the first step in the registration flow",defaultMessage:"Hi, let's get started."},standardTitle:{id:"components/flows/collins/steps/Birthday/BirthdayDropdownStep/BirthdayDropdownStep:standardTitle",description:"Introduction for step",defaultMessage:"Got it."},subTitle:{id:"components/flows/collins/steps/Birthday/BirthdayDropdownStep/BirthdayDropdownStep:subTitle",description:"Ask user for birth date",defaultMessage:"When’s your birthday?"},errorStateText:{id:"components/flows/collins/steps/Birthday/BirthdayDropdownStep/BirthdayDropdownStep:errorStateText",description:"Invalid day selected error text",defaultMessage:"Please select a valid day"}}),I=o(25020),N=o(40192),R=o.n(N),U=o(60565),F=o(31525),z=o(53269),H=o(63053),G=o(84306),W=o(33410),V=o(4108),q=o(98386);function Y(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function K(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Y(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}let X=function(e){var t,o,n,r,i=e.currentBirthdateValues,l=e.errors,d=e.hasServerSideBirthdateValidation,u=void 0!==d&&d,p=e.hasWelcomeHeader,m=e.isSubmitting,y=e.onBlur,v=e.onHasKeyboard,w=e.onIsUnderAge,x=e.onSubmit,O=e.setValue,j=e.showAdvanceButton,S=e.showLogo,A=e.step,C=e.trigger,P=(0,h.A)(),k=(0,a.SF)(),T=k.siteCode,M=k.layout,D=k.site,E=(0,(0,G.Xw)().isInTest)(H.H.SHARED.loginUxEnhancements),B=(0,a.Ww)().stepCount,_=(0,a.RR)({onSubmit:x,step:A,stepCount:B}
1).handleOnSubmit,L=(0,s.useState)(!1),N=L[0],Y=L[1],X=(0,s.useState)(void 0===S||S),Z=X[0],$=X[1],Q=(0,s.useState)(null),ee=Q[0],et=Q[1],eo=void 0!==l,en=null==l?void 0:l.message,er=(0,q.UZ)(String(ee),T).validAge,ei=function(e){v&&v(e)},es=function(){y&&eo&&er&&y(),N||ei(!1),D.isStir&&M===z.BX.Mobile&&$(!0)},ea=(t=(0,I.A)(R().mark(function e(t){var o;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.A.postValidateAge({birthDate:t});case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),el=(o=(0,I.A)(R().mark(function e(t){var o,n,r,i;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.preventDefault(),document&&document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),!(u&&ee)){e.next=11;break}return e.next=5,ea(ee);case 5:n=(o=e.sent).data,r=o.error,null!=n&&n.success?_(t):(i=r&&r.key.toLowerCase(),r&&(i===V.D.under_age||i===V.D.prev_under_age_violation)&&w(!0)),e.next=12;break;case 11:_(t);case 12:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)}),ec=function(e){switch(e){case F.Lo.MEETIC:case F.Lo.OURTIME_EU:case F.Lo.ENGLISH_SPEAKING_INTERNATIONAL:return["d","m","Y"];case F.Lo.JAPAN:return["Y","m","d"];default:return["m","d","Y"]}},ed=function(e){return(e<10?"0":"")+e},eu=function(e){switch(T){case F.Lo.MEETIC:case F.Lo.OURTIME_EU:case F.Lo.ENGLISH_SPEAKING_INTERNATIONAL:return"".concat(ed(e.day),"/").concat(ed(e.month),"/").concat(e.year);case F.Lo.JAPAN:return"".concat(e.year,"/").concat(ed(e.month),"/").concat(ed(e.day),"/");default:return"".concat(ed(e.month),"/").concat(ed(e.day),"/").concat(e.year)}},ep=function(e,t){var o={day:null,month:null,year:null};if(!e)return new Date;var n=e.split("/");switch(t){case F.Lo.MEETIC:case F.Lo.OURTIME_EU:case F.Lo.ENGLISH_SPEAKING_INTERNATIONAL:o.day=parseInt(n[0]),o.month=parseInt(n[1]),o.year=parseInt(n[2]);break;case F.Lo.JAPAN:o.day=parseInt(n[2]),o.month=parseInt(n[1]),o.year=parseInt(n[0]);break;default:o.day=parseInt(n[1]),o.month=parseInt(n[0]),o.year=parseInt(n[2])}return new Date(o.year,o.month-1,o.day)},ef=(n=(0,I.A)(R().mark(function e(t){var o,n,r,i,s,a;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!(o=t.target.value)||o&&o.length<=0)||!O){e.next=9;break}if(Y(!1),O("birthDate",void 0),!C){e.next=8;break}return e.next=8,C("birthDate");case 8:return e.abrupt("return");case 9:if(10===o.length?(r=!isNaN((n=ep(o,T)).getTime()),n&&r&&(i=n.getDate(),s=n.getMonth()+1,a=n.getFullYear(),O&&O("birthDate",{day:i,month:s,year:a}),Y(!0),et(n))):Y(!1),!C){e.next=13;break}return e.next=13,C("birthDate");case 13:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),em=E?T:null;(0,s.useEffect)(function(){var e=ec(T),t=new U.A(".birth-date-step-input",{date:!0,datePattern:e,onValueChanged:ef});return i&&t.setRawValue(eu(i)),function(){return t.destroy()}},[em]),(0,s.useEffect)(function(){i&&(et(new Date(Number(null==i?void 0:i.year),Number(null==i?void 0:i.month)-1,Number(null==i?void 0:i.day))),Y(!0),es())},[]);var eg=D.isAffinitySwipeBrand?J.affinityStandardFullTitle:J.standardFullTitle,eh=D.isAffinitySwipeBrand?J.affinityAdvanceBtnText:J.advanceBtnText;return(0,b.jsx)("form",{onSubmit:el,children:(0,b.jsxs)(f(),{paddingBottom:"80px",children:[(0,b.jsx)(g.dO,{showLogo:Z,title:p?(0,b.jsx)(c.A,K(K({},J.welcomeFullTitle),{},{values:{break:(0,b.jsx)("br",{})}})):(0,b.jsx)(c.A,K(K({},eg),{},{values:{break:(0,b.jsx)("br",{})}}))}),(0,b.jsxs)("div",{className:"animate-answer",children:[(0,b.jsx)(f(),{display:"flex",flexDirection:"column",width:"100%",children:(0,b.jsx)(g.pd,{autoFocus:!0,className:"birth-date-step-input",errorText:en,hasError:eo,onBlur:es,onFocus:function(){D.isStir&&M===z.BX.Mobile&&$(!1),ei(!0)},placeholder:(r={d:P.formatMessage(K({},J.dayPlaceholderText)),m:P.formatMessage(K({},J.monthPlaceholderText)),Y:P.formatMessage(K({},J.yearPlaceholderText))},ec(T).map(function(e){return r[e]}).join("/")),readOnly:m,type:"text",width:"100%",inputMode:"numeric","data-testid":"birthday"})}),j&&(0,b.jsx)(f(),{paddingTop:"large",display:"flex",justifyContent:"flex-end",children:(0,b.jsx)(g.Je,{disabled:!N||m||eo,onMouseDown:function(e){return e.preventDefault()},children:(0,b.jsx)(c.A,K({},eh))})})]})]})})};var J=(0,d.YK)({welcomeTitle:{id:"components/flows/collins/steps/Birthday/BirthdayInputStep/BirthdayInputStep:welcomeTitle",description:"Introduction for step as the first step in the registration flow",defaultMessage:"Hi, let's get started."},standardTitle:{id:"components/flows/collins/steps/Birthday/BirthdayInputStep/BirthdayInputStep:standardTitle",description:"Introduction for step",defaultMessage:"Got it."},subTitle:{id:"components/flows/collins/steps/Birthday/BirthdayInputStep/BirthdayInputStep:subTitle",description:"Ask user for birth date",defaultMessage:"When’s your birthday?"},standardFullTitle:{id:"components/flows/collins/steps/Birthday/BirthdayInputStep/BirthdayInputStep:standardFullTitle",description:"Ask user for birth date",defaultMessage:"Got it.{break}When’s your birthday?"},affinityStandardFullTitle:{id:"components/flows/collins/steps/Birthday/BirthdayInputStep/BirthdayInputStep:affinityStandardFullTitle",description:"Ask user for birth date",defaultMessage:"My birthday is"},welcomeFullTitle:{id:"components/flows/collins/steps/Birthday/BirthdayInputStep/BirthdayInputStep:welcomeFullTitle",description:"Welcome message and asking user for birth date",defaultMessage:"Hi, let's get started.{break}When’s your birthday?"},advanceBtnText:{id:"components/flows/collins/steps/Birthday/BirthdayInputStep/BirthdayInputStep:advanceBtnText",description:"Continue",defaultMessage:"That's it"},affinityAdvanceBtnText:{id:"components/flows/collins/steps/Birthday/BirthdayInputStep/BirthdayInputStep:affinityAdvanceBtnText",description:"Continue",defaultMessage:"Continue"},dayPlaceholderText:{id:"components/flows/collins/steps/Birthday/BirthdayInputStep/BirthdayInputStep:dayPlaceholderText",description:"input placeholder text for day",defaultMessage:"DD"},monthPlaceholderText:{id:"components/flows/collins/steps/Birthday/BirthdayInputStep/BirthdayInputStep:monthPlaceholderText",description:"input placeholder text for month",defaultMessage:"MM"},yearPlaceholderText:{id:"components/flows/collins/steps/Birthday/BirthdayInputStep/BirthdayInputStep:yearPlaceholderText",description:"input placeholder text for year",defaultMessage:"YYYY"}}),Z=o(64685);function $(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Q(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?$(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):$(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var ee=(0,Z.I4)("a")(function(e){var t,o,n=e.theme;return{color:null!=(t=n.steps)&&t.birthdate.linkColor?null==(o=n.steps)?void 0:o.birthdate.linkColor:n.palette.core1_100}});let et=function(e){var t=e.isDesktop,o=e.showLogo,n=e.site,r=(0,Z.DP)(),i=r.branding,s=i.siteName,a=i.customerCareEmail,l=r.steps,d=n.isMeetic||n.isOurtimeEU,u=a||"resolutions@support.".concat(s.toLocaleLowerCase(),".com"),p=a?(0,b.jsx)(ee,{href:"mailto:".concat(u),children:u}):(0,b.jsx)("span",{children:u});return n.isAffinitySwipeBrand?(0,b.jsxs)(f(),{display:"flex",flexDirection:"column",margin:"0 auto",textAlign:t?"center":void 0,children:[(0,b.jsx)(g.dO,{showLogo:o,title:(0,b.jsx)(c.A,Q(Q({},eo.underAgeHeader),{},{values:{brandName:s}}))}),(0,b.jsx)(m.Ay,{typography:"standardBody",color:null==l?void 0:l.birthdate.textColor,children:(0,b.jsx)(c.A,Q(Q({},eo.underAgeText),{},{values:{emailAddress:p}}))})]}):d?(0,b.jsxs)(f(),{bottom:o?"none":void 0,top:o?void 0:"none",display:"flex",flexDirection:"column",margin:"0 auto 150px",padding:"0 32px 9px 12px",position:t?"relative":"absolute",children:[(0,b.jsx)(g.dO,{showLogo:o,title:(0,b.jsx)(c.A,Q(Q({},eo.underAgeHeader),{},{values:{brandName:s}}))}),(0,b.jsx)(m.Ay,{typography:"standardBody",children:(0,b.jsx)(c.A,Q({},eo.underAgeTextEu))})]}):(0,b.jsxs)(f(),{bottom:o?"none":void 0,top:o?void 0:"none",display:"flex",flexDirection:"column",margin:"0 auto 150px",padding:"0 32px 9px 12px",position:t?"relative":"absolute",children:[(0,b.jsx)(g.dO,{showLogo:o,title:(0,b.jsx)(c.A,Q(Q({},eo.underAgeHeader),{},{values:{brandName:s}}))}),(0,b.jsx)(m.Ay,{typography:"standardBody",children:(0,b.jsx)(c.A,Q(Q({},eo.underAgeText),{},{values:{emailAddress:p}}))})]})};var eo=(0,d.YK)({underAgeHeader:{id:"components/flows/collins/steps/Birthday/BirthdayUnderAgeError/BirthdayUnderAgeError:underAgeHeader",description:"Header text for site is under age error",defaultMessage:"Sorry! {brandName} is only for adults."},underAgeText:{id:"components/flows/collins/steps/Birthday/BirthdayUnderAgeError/BirthdayUnderAgeError:underAgeText",description:"Body text for site under age error",defaultMessage:"You must be at least 18 to use our site. If you believe you have received this message in error, please contact Customer Care at {emailAddress}"},underAgeTextEu:{id:"components/flows/collins/steps/Birthday/BirthdayUnderAgeError/BirthdayUnderAgeError:underAgeTextEu",description:"Body text for site under age error for European countries",defaultMessage:"You must be at least 18 to use our site."}}),en=o(95626),er=["birthDate"];let ei=function(e){var t=e.currentBirthdateValues,o=e.errors,n=e.hasServerSideBirthdateValidation,r=e.hasWelcomeHeader,i=e.isDesktop,l=e.isSubmitting,c=e.onBlur,d=e.onHasKeyboard,u=e.onSubmit,p=e.selectedBirthdate,f=e.setValue,m=e.showAdvanceButton,g=e.showLogo,h=void 0===g||g,y=e.step,v=e.trigger,w=(0,a.SF)().site,x=(0,a.Ww)(),O=x.flowType,j=x.fireGtmEvents,S=x.gtmData,A=(0,s.useState)(!1),C=A[0],P=A[1],k=w.isJapan,T=w.isJapan;return((0,G.Wl)("/registration/".concat(O,"/birthDate")),(0,s.useEffect)(function(){j&&en.A.setBirthdayInformation(y,S||{})},[j,y,S]),C)?(0,b.jsx)(et,{site:w,isDesktop:i,showLogo:h}):k?(0,b.jsx)(_,{errors:o,hasWelcomeHeader:r,isSubmitting:l,onHasKeyboard:d,onSubmit:u,selectedBirthdate:p,setValue:f,showAdvanceButton:m,showDateUnit:T,step:y}):(0,b.jsx)(X,{currentBirthdateValues:t,errors:o,hasServerSideBirthdateValidation:void 0!==n&&n,hasWelcomeHeader:r,isSubmitting:l,onBlur:c,onHasKeyboard:d,onIsUnderAge:function(e){P(e)},onSubmit:u,setValue:f,showAdvanceButton:m,step:y,trigger:v,showLogo:h})};
1var es=function(e){return{name:e,onChange:function(){return Promise.resolve()},onBlur:function(){return Promise.resolve()},ref:function(e){}}},ea=o(27459),el=(0,Z.I4)("a")(function(e){var t,o,n=e.theme;return{color:null!=(t=null==(o=n.steps)||null==(o=o.email)?void 0:o.linkColor)?t:n.palette.core1_100}});function ec(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function ed(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ec(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}let eu=function(){var e=(0,s.useContext)(ea.F),t=e.layout,o=e.siteCode,n=(0,Z.DP)(),r=t===z.BX.Desktop?(0,b.jsx)(c.A,ed({},ep.clickingText)):(0,b.jsx)(c.A,ed({},ep.tappingText));switch(o){case F.Lo.OUR_TIME:return(0,b.jsx)(c.A,ed(ed({},ep.legalTextOT),{},{values:{brandName:n.branding.siteName,cookiePolicy:(0,b.jsx)(el,{href:n.branding.cookiePolicyUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.cookiePolicyCTAText))}),privacyPolicy:(0,b.jsx)(el,{href:n.branding.privacyPolicyUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.privacyPolicyCTAText))}),tapOrClickText:r,terms:(0,b.jsx)(el,{href:n.branding.termsOfUseUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.termsOfUseCTAText))})}}));case F.Lo.BLK:case F.Lo.CHISPA:case F.Lo.UPWARD:return(0,b.jsx)(c.A,ed(ed({},ep.legalTextAffinitySwipe),{},{values:{brandName:n.branding.siteName,cookiePolicy:(0,b.jsx)(el,{href:n.branding.cookiePolicyUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.cookiePolicyCTAText))}),privacyPolicy:(0,b.jsx)(el,{href:n.branding.privacyPolicyUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.privacyPolicyCTAText))}),tapOrClickText:r,terms:(0,b.jsx)(el,{href:n.branding.termsOfUseUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.termsOfUseCTAText))})}}));case F.Lo.BLACK_PEOPLE_MEET:case F.Lo.BIG_BEAUTIFUL_PEOPLE:case F.Lo.STIR:return(0,b.jsx)(c.A,ed(ed({},ep.legalText),{},{values:{brandName:n.branding.siteName,cookiePolicy:(0,b.jsx)(el,{href:n.branding.cookiePolicyUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.cookiePolicyCTAText))}),privacyPolicy:(0,b.jsx)(el,{href:n.branding.privacyPolicyUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.privacyPolicyCTAText))}),tapOrClickText:r,terms:(0,b.jsx)(el,{href:n.branding.termsOfUseUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.termsOfUseCTAText))})}}));default:return(0,b.jsx)(m.Ay,{typography:"meta",color:"core3_100",children:(0,b.jsx)(c.A,ed(ed({},ep.legalText),{},{values:{brandName:n.branding.siteName,cookiePolicy:(0,b.jsx)("a",{href:n.branding.cookiePolicyUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.cookiePolicyCTAText))}),privacyPolicy:(0,b.jsx)("a",{href:n.branding.privacyPolicyUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.privacyPolicyCTAText))}),tapOrClickText:r,terms:(0,b.jsx)("a",{href:n.branding.termsOfUseUrl,target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,ed({},ep.termsOfUseCTAText))})}}))})}};var ep=(0,d.YK)({legalText:{id:"components/flows/collins/steps/Email/LegalTextEmail/LegalTextEmail:legalText",description:"legal text, do not translate anything in {}",defaultMessage:"By {tapOrClickText} “That's the one”, you agree to our {terms}. Learn how we process your data in our {privacyPolicy} and {cookiePolicy}. You also agree to receive emails from {brandName} and understand you are free to withdraw consent to receive emails at any time."},legalTextAffinitySwipe:{id:"components/flows/collins/steps/Email/LegalTextEmail/LegalTextEmail:legalTextAffinitySwipe",description:"legal text, do not translate anything in {}",defaultMessage:"By {tapOrClickText} “Continue”, you agree to our {terms}. Learn how we process your data in our {privacyPolicy} and {cookiePolicy}
1. You also agree to receive emails from {brandName} and understand you are free to withdraw consent to receive emails at any time."},legalTextOT:{id:"components/flows/collins/steps/Email/LegalTextEmail/LegalTextEmail:legalTextOT",description:"ourtime privacy policy text",defaultMessage:'By {tapOrClickText} "That\'s the one", you agree to our {terms}. Learn how we process your data in our {privacyPolicy} and {cookiePolicy}. You also agree to receive emails from {brandName} and understand you are free to withdraw consent at any time. Your profile will be displayed on {brandName} and on Match who are part of the {brandName} community.'},termsOfUseCTAText:{id:"components/flows/collins/steps/Email/LegalTextEmail/LegalTextEmail:termsOfUseCTAText",description:"Do not translate <Link></Link>. Terms CTA",defaultMessage:"Terms"},privacyPolicyCTAText:{id:"components/flows/collins/steps/Email/LegalTextEmail/LegalTextEmail:privacyPolicyCTAText",description:"Do not translate <Link></Link>. Privacy Policy CTA",defaultMessage:"Privacy Policy"},cookiePolicyCTAText:{id:"components/flows/collins/steps/Email/LegalTextEmail/LegalTextEmail:cookiePolicyCTAText",description:"Do not translate <Link></Link>. Cookie Policy CTA",defaultMessage:"Cookie Policy"},clickingText:{id:"components/flows/collins/steps/Email/LegalTextEmail/LegalTextEmail:clickingText",description:"clicking text",defaultMessage:"clicking"},tappingText:{id:"components/flows/collins/steps/Email/LegalTextEmail/LegalTextEmail:tappingText",description:"tapping text",defaultMessage:"tapping"}}),ef=(0,Z.I4)("button")(function(e){var t=e.theme;return{display:"inline-flex",alignItems:"center",background:"transparent",border:"1px solid ".concat(t.palette.core1_25),borderRadius:t.radii.round,color:t.palette.core1_100,cursor:"pointer",fontFamily:t.font.body,fontSize:t.fontSizes.small,padding:"".concat(t.space.xsmall,"px ").concat(t.space.smedium,"px")}});let em=function(e){var t=e.suggestedEmail,o=e.onAccept,n=(0,h.A)();return(0,b.jsxs)(f(),{role:"status",paddingTop:"xsmall",children:[(0,b.jsx)(m.Ay,{typography:"meta",color:"link",as:"div",children:n.formatMessage(eg.didYouMeanToTypeThis)}),(0,b.jsx)(f(),{paddingTop:"xsmall",children:(0,b.jsx)(ef,{type:"button","data-testid":"button:emailtyposuggestion","aria-label":n.formatMessage(eg.useSuggestedEmail,{email:t}),onClick:function(){return o(t)},children:t})})]})};var eg=(0,d.YK)({didYouMeanToTypeThis:{id:"components/flows/collins/steps/Email/EmailTypoSuggestion:didYouMeanToTypeThis",description:"Prompt shown above a suggested correction for a mistyped email address domain",defaultMessage:"Did you mean to type this?"},useSuggestedEmail:{id:"components/flows/collins/steps/Email/EmailTypoSuggestion:useSuggestedEmail",description:"Accessible label for the chip that applies the suggested email address",defaultMessage:"Use {email}"}}),eh=o(18911),eb=/^[\w!#$%&'*+/=?^`{|}~-]+(?:\.[\w!#$%&'*+/=?^`{|}~-]+)*$/,ey=Object.entries({"gmail.com":["gnail.com","gmai.com","gmial.com","gmail.co","gmail.con","gmail.cm","gmail.om","gmailcom","gmal.com","gmali.com","gmaill.com","gmaul.com","gmeil.com","ggmail.com","gmail.clm","gmail.vom","gmail.xom","gmail.ocm","gmailc.om"],"yahoo.com":["yaho.com","yahho.com","yhoo.com","yahoo.co","yahoo.con","yahoo.cm","yaoo.com","yahooo.com","yhaoo.com","ayhoo.com","yahoo.vom","yahoo.ocm","yahooc.om"],"hotmail.com":["hotnail.com","hotmai.com","hotmial.com","hotmail.co","hotmail.con","hotmal.com","hormail.com","hotmil.com","hotmaill.com","hotmail.cm","hotmail.vom","hotmail.ocm","hotmailc.om"],"outlook.com":["outlok.com","otlook.com","outlook.co","outlook.con","outloo.com","putlook.com","oulook.com","outllok.com","outlook.cm","outlook.ocm","outlookc.om"],"icloud.com":["iclod.com","iclouf.com","icloud.co","icloud.con","icluod.com","iclou.com","iclould.com","icoud.com","icloud.cm","icloud.ocm"],"aol.com":["ao.com","aol.co","aol.con","alo.com","aol.cm","aol.ocm","aoll.com"],"live.com":["lve.com","live.co","live.con","liv.com","live.cm","live.ocm"],"msn.com":["msn.co","msn.con","msn.cm","mns.com","msn.ocm"],"protonmail.com":["protomail.com","protonmai.com","protonmail.co","protonmail.con","protonmial.com"],"me.com":["ne.com","me.co","me.con"],"mac.com":["maq.com","mac.co","mac.con"],"xfinity.com":["xfinty.com","xfinify.com","xfinity.co","xfinity.con"],"comcast.net":["comast.net","comcst.net","comcast.ne","comcastmet","comcast.ent","comcast.nte","comcat.net"],"att.net":["attn.net","att.et","at.net"],"sbcglobal.net":["sbcglbal.net","sbcglobal.ne","sbcgobal.net","sbcglobalmet"],"bellsouth.net"
1:["belsouth.net","bellsouuth.net","bellsouth.ne","bellsouthmet"],"verizon.net":["verizon.ne","verzion.net","verzon.net","verizonet"],"cox.net":["cix.net","cox.ne","coxmet","cxo.net"],"charter.net":["charer.net","chartter.net","charter.ne","chartet.net"],"optonline.net":["optonine.net","optonline.ne","optoline.net","optonlne.net"],"frontiernet.net":["frontiernett.net","frontiernet.ne"],"earthlink.net":["eathlink.net","earthlnk.net","earthlink.ne","earthlinknet"],"centurylink.net":["centurylnk.net","centurylink.ne","centrylink.net"],"rr.com":["rr.co","rr.con","rrr.com"],"rogers.com":["rogers.co","rogers.con","rogres.com","rodgers.com"],"shaw.ca":["shw.ca","shawc.ca","shaw.co"],"telus.net":["telus.ne","telusmet","telsu.net"],"btinternet.com":["btinternat.com","btinternet.co","btinternet.con","btinernet.com"],"virginmedia.com":["virginmeida.com","virginmedia.co","virginmedia.con","virignmedia.com"],"sky.com":["skyy.com","sky.co","sky.con"],"gmx.com":["gxm.com","gmx.co","gmx.con"],"mail.com":["maol.com","mail.co","mail.con","mali.com"],"yahoo.co.uk":["yahoo.couk","yahoo.co.ku","yaho.co.uk"],"hotmail.co.uk":["hotmail.couk","hotmail.co.ku"],"hotmail.fr":["hotmail.ffr","hotmail.rf"],"outlook.fr":["outlook.rf","outlok.fr"],"orange.fr":["orange.f","orage.fr","oranger.fr","ornage.fr"],"free.fr":["fre.fr","free.f","freee.fr"],"wanadoo.fr":["wanadoo.f","wanadooo.fr","wandoo.fr","wanadou.fr"],"sfr.fr":["sfr.f","srf.fr"],"laposte.net":["laposte.ne","laposte.nte","lapost.net"],"gmx.de":["gmx.d","gmx.ed","gmax.de"],"web.de":["web.d","web.ed","wed.de"]}).reduce(function(e,t){var o=(0,eh.A)(t,2),n=o[0];return o[1].forEach(function(t){e[t]=n}),e},{}),ev=o(6257);function ew(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}var ex={DETECTED:"EmailDomainTypoDetected",SUGGEST_IMPRESSION:"EmailDomainTypoSuggestImpression",SUGGEST_TAPPED:"EmailDomainTypoSuggestTapped",FINAL_RESULT:"EmailDomainTypoFinalResult"},eO={ACCEPTED:"accepted",REJECTED:"rejected",OTHER:"other"},ej=function(e,t){return(0,ev.K5)({sourceName:e,metaData:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ew(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ew(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({surface:"signup"},t)})};function eS(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function eA(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?eS(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):eS(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var eC=["email"];let eP=function(e){var t,o=e.currentValue,n=e.errors,r=e.hasLegalCheckBox,i=void 0===r||r,l=e.isPrefilledFromLogin,d=e.isSubmitting,u=e.onHasKeyboard,p=e.onBlur,y=e.onSubmit,v=e.register,w=void 0===v?es:v,x=e.setValue,O=e.showAdvanceButton,j=e.showLogo,S=e.step,A=(0,h.A)(),C=(0,a.SF)().site,P=(0,a.Ww)(),k=P.flowType,T=P.stepCount,M=P.fireGtmEvents,D=P.gtmData,E=(0,Z.DP)(),B=(0,a.RR)({onSubmit:y,step:S,stepCount:T}
1).handleOnSubmit,_=(0,G.Xw)().isInTest,L=(0,s.useState)(!1),I=L[0],N=L[1],R=(0,s.useState)(!1),U=R[0],F=R[1],z=(0,s.useState)(),W=z[0],V=z[1],q=(0,s.useRef)(new Set),Y=(0,s.useRef)(void 0),K=(0,s.useRef)(void 0),X=C.isMeetic||C.isOurtimeEU,J=_(H.H.SHARED.loginUxEnhancements);(0,s.useEffect)(function(){W&&ej(ex.SUGGEST_IMPRESSION)},[W]);var $=void 0!==(null==n?void 0:n.message),Q=null==n?void 0:n.message,ee=C.isAffinitySwipeBrand?A.formatMessage(ek.emailInputPlaceholderTextAffinitySwipe):A.formatMessage(ek.emailInputPlaceholderText),et=C.isJapan,eo=C.isAffinitySwipeBrand?ek.advanceBtnContinueText:ek.advanceBtnText,er=C.isAffinitySwipeBrand?ek.affinityEmailStepTitle:void 0!==l&&l?ek.confirmEmailStepTitle:ek.emailStepTitle,ei=function(e){u&&u(e)},ea=function(e){if(J&&e){var t=e.target.value.trim();K.current=t;var n=function(e){var t=e.trim(),o=t.lastIndexOf("@");if(!(o<1)&&t.indexOf("@")===o){var n=t.slice(0,o),r=ey[t.slice(o+1).toLowerCase()];if(r&&eb.test(n))return"".concat(n,"@").concat(r)}}(t);n&&!q.current.has(t)&&(q.current.add(t),V(n),Y.current={originalEmail:t,suggestedEmail:n},ej(ex.DETECTED))}p&&!$&&p(),o||ei(!1)};return(0,G.Wl)("/registration/".concat(k,"/email")),(0,s.useEffect)(function(){o&&ea()},[]),(0,s.useEffect)(function(){M&&en.A.setEmailInformation(S,D||{})},[M,D,S]),(0,b.jsx)("form",{onSubmit:function(e){if(Y.current){var t,n,r,i;ej(ex.FINAL_RESULT,{typoDecision:(r=(null!=(t=null!=(n=K.current)?n:o)?t:"").trim(),i=Y.current.originalEmail,r===Y.current.suggestedEmail?eO.ACCEPTED:r===i?eO.REJECTED:eO.OTHER)})}B(e)},children:(0,b.jsxs)(f(),{paddingBottom:"80px",children:[(0,b.jsx)(g.dO,{showLogo:void 0===j||j,title:(0,b.jsx)(c.A,eA(eA({},er),{},{values:{break:(0,b.jsx)("br",{})}}))}),(0,b.jsxs)(f(),{className:"animate-answer",display:"flex",flexDirection:"column",width:"100%",children:[(0,b.jsx)(g.pd,{autoFocus:!0,errorText:Q,formNoValidate:!0,hasError:$,onBlur:ea,onChange:function(e){K.current=e.target.value.trim(),V(void 0)},onFocus:function(){return ei(!0)},placeholder:ee,readOnly:d,register:w("email",{required:!0}),width:"100%"}),W&&(0,b.jsx)(em,{suggestedEmail:W,onAccept:function(e){ej(ex.SUGGEST_TAPPED),null==x||x("email",e,{shouldValidate:!0,shouldDirty:!0}),K.current=e,V(void 0)}}),(0,b.jsxs)(f(),{paddingTop:"small",children:[et&&(0,b.jsx)(g.Sc,{value:"isUserSingleChecked",checked:I,onChange:function(e){N(e.target.checked)},id:"is-single-checkbox",disabled:d,children:(0,b.jsx)(m.Ay,{typography:"meta",as:"div","data-testid":"text:sigledisclosure",children:(0,b.jsx)(c.A,eA({},ek.singleDisclosureText))})}),i&&(0,b.jsx)(g.Sc,{value:"isAcceptLegalChecked",checked:U,onChange:function(e){F(e.target.checked)},id:"accept-legal-checkbox",disabled:d,children:(0,b.jsx)(m.Ay,{typography:"meta",as:"div","data-testid":"text:legal",children:(0,b.jsx)(c.A,eA(eA({},ek.acceptLegalText),{},{values:{termsLink:(0,b.jsx)("a",{href:E.branding.termsOfUseUrl,"data-testid":"link:terms",target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,eA({},ek.termsOfUseCTAText))}),privacyPolicyLink:(0,b.jsx)("a",{href:E.branding.privacyPolicyUrl,"data-testid":"link:privacy",target:"_blank",rel:"noopener",children:(0,b.jsx)(c.A,eA({},ek.privacyPolicyCTAText))})}}))})}),!X&&(0,b.jsx)(g.l0,{site:C,typography:C.isOurTime?void 0:"meta",style:C.isOurTime?eA({},E.tokens.typographyBodyXsmallRegular):void 0,as:C.isStir?"b":"span",bold:C.isStir||C.isAffinitySwipeBrand,children:(0,b.jsx)(eu,{})})]}),O&&(0,b.jsx)(f(),{paddingTop:"large",display:"flex",justifyContent:"flex-end",children:(0,b.jsx)(g.Je,{disabled:(t=!1,!!d||!!$||!o||!!o&&o.length<=0||(!C.isStir&&(et&&(t=!I),i&&(t=!U)),t)),children:(0,b.jsx)(c.A,eA({},eo))})})]})]})})};var ek=(0,d.YK)({emailStepTitle:{id:"components/flows/collins/steps/Email/Email:emailStepTitle",description:"Asking user for email",defaultMessage:"Almost done.{break}What's your email?"},affinityEmailStepTitle:{id:"components/flows/collins/steps/Email/Email:affinityEmailStepTitle",description:"Asking user for email",defaultMessage:"My email is"},confirmEmailStepTitle:{id:"components/flows/collins/steps/Email/Email:confirmEmailStepTitle",description:"Asking the user to confirm the email carried over from the sign in page, where it was already entered",defaultMessage:"Almost done.{break}Is this the right email?"},singleDisclosureText:{id:"components/flows/collins/steps/Email/Email:singleDisclosureText",description:"User is single",defaultMessage:"I am single"},acceptLegalText:{id:"components/flows/collins/steps/Email/Email:acceptLegalText",description:"User accepts legal terms",defaultMessage:"I accept the {termsLink} and {privacyPolicyLink}"},termsOfUseCTAText:{id:"components/flows/collins/steps/Email/Email:termsOfUseCTAText",description:"Do not translate <Link></Link>. Terms CTA",defaultMessage:"Terms"},privacyPolicyCTAText:{id:"components/flows/collins/steps/Email/Email:privacyPolicyCTAText",description:"Do not translate <Link></Link>. Privacy Policy CTA",defaultMessage:"Privacy Policy"},advanceBtnText:{id:"components/flows/collins/steps/Email/Email:advanceBtnText",description:"Continue",defaultMessage:"That's the one"},advanceBtnContinueText:{id:"components/flows/collins/steps/Email/Email:advanceBtnContinueText",description:"Continue",defaultMessage:"Continue"},emailInputPlaceholderText:{id:"components/flows/collins/steps/Email/Email:emailInputPlaceholderText",description:"email input placeholder",defaultMessage:"Email"}
1,emailInputPlaceholderTextAffinitySwipe:{id:"components/flows/collins/steps/Email/Email:emailInputPlaceholderTextAffinitySwipe",description:"email input placeholder",defaultMessage:"[email protected]"}}),eT=o(21306);function eM(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function eD(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?eM(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):eM(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var eE=["genderSeek"];let eB=function(e){var t=e.currentValue,o=e.errors,n=e.isSubmitting,r=e.onSubmit,i=e.setValue,l=e.showLogo,d=e.step,u=(0,a.SF)(),p=u.site,m=u.siteCode,h=(0,a.Ww)(),y=h.flowType,v=h.stepCount,w=h.fireGtmEvents,x=h.gtmData,O=(0,a.RR)({onSubmit:r,step:d,stepCount:v}
1).handleOnSubmit,j=(0,s.useState)({everyone:!!t&&parseInt(t)===eT.cxZ.Everyone,female:!!t&&parseInt(t)===eT.cxZ.Female,male:!!t&&parseInt(t)===eT.cxZ.Male}),S=j[0],A=j[1],C=p.isAffinitySwipeBrand,P=function(e){i&&i("genderSeek",eT.cxZ.Male),A({female:!1,male:!0,everyone:!1}),O(e)},k=function(e){i&&i("genderSeek",eT.cxZ.Female),A({female:!0,male:!1,everyone:!1}),O(e)},T=function(e){i&&i("genderSeek",eT.cxZ.Everyone),A({female:!1,male:!1,everyone:!0}),O(e)};(0,G.Wl)("/registration/".concat(y,"/genderSeek")),(0,s.useEffect)(function(){w&&en.A.setGenderSeekInformation(d,x||{})},[w,d,x]);var M=p.isAffinitySwipeBrand?e_.affinityGenderSeekTitle:e_.genderSeekTitle,D=p.isAffinitySwipeBrand?e_.affinityEveryoneBtnLabel:e_.everyoneBtnLabel,E=p.isAffinitySwipeBrand?e_.affinityManBtnLabel:e_.menBtnLabel,B=p.isAffinitySwipeBrand?e_.affinityWomanBtnLabel:e_.womenBtnLabel,_=m!==F.Lo.UPWARD;return(0,b.jsxs)(s.Fragment,{children:[(0,b.jsx)(g.dO,{showLogo:void 0===l||l,title:(0,b.jsx)(c.A,eD(eD({},M),{},{values:{break:(0,b.jsx)("br",{})}}))}),(0,b.jsxs)("div",{className:"animate-answer",children:[(0,b.jsxs)(f(),{display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-end",children:[(0,b.jsx)(g.m_,{disabled:n,isSelected:S.male,onClick:function(e){return P(e)},"data-testid":"gender:seek:male",children:(0,b.jsx)(c.A,eD({},E))}),(0,b.jsx)(g.m_,{disabled:n,isSelected:S.female,onClick:function(e){return k(e)},"data-testid":"gender:seek:female",children:(0,b.jsx)(c.A,eD({},B))}),_&&(0,b.jsx)(g.m_,{disabled:n,isSelected:S.everyone,onClick:function(e){return T(e)},"data-testid":"gender:seek:everyone",children:(0,b.jsx)(c.A,eD({},D))})]}),(0,b.jsx)("br",{}),null==o?void 0:o.message]}),C&&(0,b.jsx)(f(),{marginTop:5,width:"100%",center:!0,children:(0,b.jsx)(g.l0,{site:p,typography:"meta",as:"b",bold:!0,children:(0,b.jsx)(c.A,eD({},e_.backgroundCheckDisclaimer))})})]})};var e_=(0,d.YK)({genderSeekTitle:{id:"components/flows/collins/steps/SeekGender/SeekGender:genderSeekTitle",description:"Gender Seek question - who to look for",defaultMessage:"Who can we help you meet?"},affinityGenderSeekTitle:{id:"components/flows/collins/steps/SeekGender/SeekGender:affinityGenderSeekTitle",description:"Affinity Gender Seek question - seeking",defaultMessage:"Seeking a"},menBtnLabel:{id:"components/flows/collins/steps/SeekGender/SeekGender:menBtnLabel",description:"Men",defaultMessage:"Men"},womenBtnLabel:{id:"components/flows/collins/steps/SeekGender/SeekGender:womenBtnLabel",description:"Women",defaultMessage:"Women"},affinityManBtnLabel:{id:"components/flows/collins/steps/SeekGender/SeekGender:affinityManBtnLabel",description:"Man",defaultMessage:"Man"},affinityWomanBtnLabel:{id:"components/flows/collins/steps/SeekGender/SeekGender:affinityWomanBtnLabel",description:"Woman",defaultMessage:"Woman"},everyoneBtnLabel:{id:"components/flows/collins/steps/SeekGender/SeekGender:everyoneBtnLabel",description:"Everyone",defaultMessage:"Everyone"},affinityEveryoneBtnLabel:{id:"components/flows/collins/steps/SeekGender/SeekGender:affinityEveryoneBtnLabel",description:"Anyone",defaultMessage:"Anyone"},backgroundCheckDisclaimer:{id:"components/flows/collins/steps/SeekGender/SeekGender:backgroundCheckDisclaimer",description:"disclaimer there are no background checks",defaultMessage:"NO CRIMINAL BACKGROUND CHECKS ARE CONDUCTED"}}),eL=o(10039),eI=o(18339),eN=function(e){var t=e.countries,o=e.selectedValue,n=e.isDisabled,r=e.register,i=e.onSelectedCountryChange,s=t.map(function(e){var t=e.countryCode;return{name:e.name,code:t}});return(0,b.jsx)(g.l6,{selectedValue:o,disabled:n,name:"countryCode",register:r,values:s,onChange:function(e){var t=parseInt(e.target.value);i&&i(t)}})},eR=function(e){var t=e.isDisabled,o=e.register,n=e.selectedValue,r=e.states,i=e.onSelectedStateChange,s=(0,a.SF)().siteCode,l=r.map(function(e){var t=e.stateCode;return{name:e.stateName,code:t}});return(0,b.jsx)(g.l6,{selectedValue:n,disabled:t,name:"stateCode",register:o,values:l,siteCode:s,onChange:function(e){var t=parseInt(e.target.value);i&&i(t)}})},eU=function(e){var t=e.cities,o=e.isDisabled,n=e.register,r=e.selectedValue,i=e.onSelectedCityChange,s=t&&t.map(function(e){var t=e.cityCode;return{name:e.cityName,code:t}});
1return(0,b.jsx)(g.l6,{selectedValue:r,disabled:o,name:"cityCode",register:n,values:s,onChange:function(e){var t=parseInt(e.target.value);i&&i(t)}})};let eF=function(e){var t,o=e.currentValues,n=e.defaultCountryCode,r=e.register,i=void 0===r?es:r,s=e.setValue,a=(0,G.zy)({currentValues:o,defaultCountryCode:n}),l=a.cities,c=a.citiesLoading,d=a.countries,u=a.countriesLoading,p=a.countryHasStates,f=a.displayCitiesWithStates,m=a.states,g=a.statesLoading,h=null!=(t=o.countryCode)?t:n,y=o.stateCode,v=o.cityCode,w=function(e){var t;return null==(t=d.find(function(t){return t.countryCode===e}))?void 0:t.hasStates},x=function(e){s&&s("cityCode",e)};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(eN,{countries:d,selectedValue:h,isDisabled:u,register:i("countryCode",{valueAsNumber:!0}),onSelectedCountryChange:function(e){if(e!==h&&s){var t=w(e);s("countryCode",e),s("stateCode",(0,eL.mN)(t)),s("cityCode",(0,eL.qS)())}}}),p?(0,b.jsx)(eR,{isDisabled:g,register:i("stateCode",{valueAsNumber:!0}),selectedValue:y,states:m,onSelectedStateChange:function(e){e!==y&&s&&(s("stateCode",e),s("cityCode",(0,eL.qS)()))}}):(0,b.jsx)(eU,{cities:l,isDisabled:c,register:i("cityCode",{valueAsNumber:!0}),selectedValue:v,onSelectedCityChange:x}),f&&(0,b.jsx)(eU,{cities:l,isDisabled:c,register:i("cityCode",{valueAsNumber:!0}),selectedValue:v,onSelectedCityChange:x})]})};var ez=o(63772);let eH=function(e){var t=e.id,o=e.defaultSelectedText,n=e.onInputBlur,r=e.onInputFocus,i=e.onLocationChange,a=e.onSelectedLocationChange,l=e.placeholderText,c=e.locationSuggestions,d=(0,h.A)(),p=(0,u.useTheme)(),f=(0,s.useRef)(null),m=function(e){i&&i(e)},g=function(e){if(a&&e){a(e);var t=f.current;t&&setTimeout(function(){t.toggleDropdown(!1)},100)}};return(0,b.jsx)(Z.Z2,{children:function(e){var i=e.css;return(0,b.jsx)(ez.Ay,{autofocus:!0,"data-testid":"postalcode",defaultSelectedText:o,buttonAriaLabelClear:"clear",buttonAriaLabelDownArrow:"arrow down",buttonAriaLabelUpArrow:"arrow up",filter:!1,id:t,onInputFocus:r,onInputBlur:n,onResetInput:function(){return m("")},onInputChange:function(e){return m(e)},name:"postalcode",noResult:d.formatMessage(eG.noSuggestionsText),onSelect:function(e){return g(null==e?void 0:e.itemData)},placeholder:l,ref:f,minSearchLength:2,dropdownClassName:i({boxShadow:"0 3px 6px rgb(0 0 0 / 16%), 0 3px 6px rgb(0 0 0 / 23%)",maxHeight:"300px",overflow:"auto"}),inputClassName:i({backgroundColor:"transparent",border:"none",borderBottom:"1px solid ".concat(p.palette.dark),borderRadius:0,color:p.palette.core3_100,fontFamily:p.font.heading,fontSize:p.fontSizes.large,marginTop:p.space.smedium,MozAppearance:"none",paddingBottom:p.space.xsmall,paddingLeft:p.space.none,paddingTop:0,WebkitAppearance:"none"}),children:c&&c.map(function(e){return(0,b.jsx)(ez.Ay.Option,{itemData:e.value,value:e.value.cityCode,children:e.label},e.value.cityCode)})})}})};var eG=(0,d.YK)({noSuggestionsText:{id:"components/flows/collins/steps/Location/LocationTypeAheadInput/LocationTypeAheadInput:noSuggestionsText",description:"placeholder for suggestions not found",defaultMessage:"(Nothing Found)"}}),eW=o(90274),eV=o.n(eW),eq=function(e){return(!e?[]:e.data).map(function(e){var t=e.cityName,o=e.stateName,n=e.countryName;return{label:t&&o?"".concat(t,", ").concat(o):t?"".concat(t,", ").concat(n):o?"".concat(o,", ").concat(n):n||"",value:{cityName:e.cityName,cityCode:e.cityCode,stateName:e.stateName,stateCode:e.stateCode,countryName:e.countryName,countryCode:e.countryCode}}})};let eY=function(e){var t,o,n,r,i,a,l,c,d,u=e.defaultCountryCode,p=e.defaultSelectedText,f=e.locale,m=e.onInputBlur,g=e.onInputFocus,h=e.onSelectedLocationChange,y=e.placeholderText,v=(o=(t={defaultCountryCode:u,locale:f,siteCode:e.siteCode}).defaultCountryCode,n=t.locale,r=t.siteCode,a=(i=(0,s.useState)())[0],l=i[1],c=(0,s.useRef)(0),d=(0,s.useMemo)(function(){var e;return eV()((e=(0,I.A)(R().mark(function e(t){var i,s;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!t||t.length<2)){e.next=4;break}return c.current+=1,l(void 0),e.abrupt("return");case 4:return i=c.current+1,c.current=i,e.next=8,W.A.getLocationSuggestions({query:t,countryCode:o,cultureCode:n||"en-US",siteCode:r});case 8:if(s=e.sent.data,c.current===i){e.next=12;break}return e.abrupt("return");case 12:l(s?eq(s):void 0);case 13:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)}),250)},[o,n,r]),(0,s.useEffect)(function(){return function(){d.cancel()}},[d]),{handleLocationChange:d,locationSuggestions:a}),w=v.handleLocationChange,x=v.locationSuggestions;return(0,b.jsx)(eH,{id:"collins-regflow-location-select",defaultSelectedText:p,onInputBlur:m,onInputFocus:g,placeholderText:y,onSelectedLocationChange:h,onLocationChange:w,locationSuggestions:x})};function eK(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function eX(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?eK(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):eK(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var eJ=["countryCode","cityCode"];let eZ=function(e){var t,o,n=e.currentValues,r=e.defaultCountryCode,i=e.errors,l=e.hasTypeAhead,d=e.isSubmitting,u=e.onBlur,p=e.onHasKeyboard,m=e.onSubmit,y=e.register,v=e.setValue,w=e.showAdvanceButton,x=e.step,O=(0,h.A)(),j=(0,a.SF)(),S=j.locale,A=j.siteCode,C=(0,a.Ww)(),P=C.flowType,k=C.stepCount,T=(0,a.RR)({onSubmit:m,step:x,stepCount:k}).handleOnSubmit,M=function(e){p&&p(e)},D=function(e){var t=e.cityName,o=e.stateName,n=e.countryName;return t&&o?"".concat(t,", ").concat(o):t?"".concat(t,", ").concat(n):o?"".concat(o,", ").concat(n):n||""},E=(t=(0,I.A)(R().mark(function e(t){return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:v&&(v("cityCode",t.cityCode),v("countryCode",t.countryCode),v("stateCode",t.stateCode)),(0,eI.PY)(D(t));case 2:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)});(0,G.Wl)("/registration/".concat(P,"/location"));var B=null!=(o=(0,eI.cl)())?o:void 0;return(0,b.jsxs)(s.Fragment,{children:[(0,b.jsx)(g.dO,{showLogo:!0,title:(0,b.jsx)(c.A,eX(eX({},e$.locationStepTitle),{},{values:{break:(0,b.jsx)("br",{})}}))}),(0,b.jsxs)(f(),{display:"flex",flexDirection:"column",width:"100%",className:"animate-answer",children:[l?(0,b.jsx)(eY,{defaultCountryCode:r,defaultSelectedText:B,locale:S,onInputBlur:function(e){u&&u(),e||M(!1)},onInputFocus:function(){M(!0)},onSelectedLocationChange:E,placeholderText:O.formatMessage(e$.locationPlaceholder),siteCode:A}):(0,b.jsx)(eF,{currentValues:n,defaultCountryCode:r,register:void 0===y?es:y,setValue:v}),null==i?void 0:i.message,w&&(0,b.jsx)(f(),{paddingTop:"large",display:"flex",justifyContent:"flex-end",children:(0,b.jsx)(g.Je,{onClick:T,disabled:l?!(0,eL.d8)(n.cityCode):!!(!(0,eL.d8)(n.cityCode)||d),children:(0,b.jsx)(c.A,eX({},e$.advanceBtnText))})})]})]})};var e$=(0,d.YK)({locationStepTitle:{id:"components/flows/collins/steps/Location/Location:locationStepTitle",description:"Asking user for zipcode",defaultMessage:"Let’s find members in your area."},advanceBtnText:{id:"components/flows/collins/steps/Location/Location:advanceBtnText",description:"Continue",defaultMessage:"That's it"},locationPlaceholder:{id:"components/flows/collins/steps/Location/Location:locationPlaceholder",description:"Placeholder for location text",defaultMessage:"Enter your city"}});function eQ(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function e0(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?eQ(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):eQ(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var e1=["firstName"];let e2=function(e){var t=e.currentValue,o=e.errors,n=e.isSubmitting,r=e.onHasKeyboard,i=e.onBlur,l=e.onSubmit,d=e.register,p=void 0===d?es:d,m=e.showAdvanceButton,y=e.showLogo,v=e.step,w=(0,h.A)(),x=(0,u.useTheme)().tokens,O=(0,a.SF)().site,j=(0,a.Ww)(),S=j.flowType,A=j.stepCount,C=j.fireGtmEvents,P=j.gtmData,k=(0,a.RR)({onSubmit:l,step:v,stepCount:A}).handleOnSubmit,T=O.isMeetic||O.isOurtimeEU||O.isNorthAmerica||O.isOurTime,M=void 0!==o,D=null==o?void 0:o.message,E=w.formatMessage(e5.namePlaceholderText),B=w.formatMessage(e5.firstNameText),_=p("firstName"),L=!O.isStir&&!O.isAffinitySwipeBrand&&!O.isMeeticCoreHostname&&!O.isMeeticSeniorHostname,I=function(e){r&&r(e)};(0,G.Wl)("/registration/".concat(S,"/name")),(0,s.useEffect)(function(){t&&(i&&i(),I(!1))},[]),(0,s.useEffect)(function(){C&&en.A.setNameInformation(v,P||{})},[C,v,P]);var N=O.isAffinitySwipeBrand?e5.affinityNameStepTitle:e5.nameStepTitle,R=O.isAffinitySwipeBrand?e5.affinityNameHelpText:T?e5.euNameHelpText:e5.nameHelpText,U=O.isAffinitySwipeBrand?e5.affinityAdvanceBtnText:e5.advanceBtnText;return(0,b.jsx)("form",{onSubmit:k,children:(0,b.jsxs)(f(),{paddingBottom:"80px",children:[(0,b.jsx)(g.dO,{showLogo:void 0===y||y,title:(0,b.jsx)(c.A,e0(e0({},N),{},{values:{mentionFirstName:L?"".concat(B," "):""}}))}),(0,b.jsxs)(f(),{display:"flex",flexDirection:"column",width:"100%",className:"animate-answer",children:[(0,b.jsx)(g.pd,{autoFocus:!0,errorText:D,hasError:M,id:"first-name",onBlur:function(){i&&i(),t||I(!1)},onFocus:function(){return I(!0)},placeholder:E,readOnly:n,register:_,type:"text",width:"100%"}),(0,b.jsx)(f(),{paddingTop:"small",children:(0,b.jsx)(g.l0,{typography:O.isOurTime?void 0:"meta",style:e0({},x.typographyBodyXsmallRegular),site:O,bold:O.isStir,as:O.isStir?"b":"span",children:(0,b.jsx)(c.A,e0({},R))})}),m&&(0,b.jsx)(f(),{paddingTop:"large",display:"flex",justifyContent:"flex-end",children:(0,b.jsx)(g.Je,{disabled:!t||n||M,children:(0,b.jsx)(c.A,e0({},U))})})]})]})})};var e5=(0,d.YK)({nameStepTitle:{id:"components/flows/collins/steps/Name/Name:nameStepTitle",description:"Asking user for name",defaultMessage:"What's your {mentionFirstName}name?"},affinityNameStepTitle:{id:"components/flows/collins/steps/Name/Name:affinityNameStepTitle",description:"Asking user for name",defaultMessage:"My name is"},firstNameText:{id:"components/flows/collins/steps/Name/Name:firstNameText",description:"Text denoting that name is first name",defaultMessage:"first"},nameHelpText:{id:"components/flows/collins/steps/Name/Name:nameHelpText",description:"letters, hypthens, and apostophes only",defaultMessage:"You can use letters, hyphens & apostrophes."},affinityNameHelpText:{id:"components/flows/collins/steps/Name/Name:affinityNameHelpText",description:"letters, hypthens, and apostophes only",defaultMessage:"This is how your name will appear on your profile. You can only use letters, hyphens and apostrophes."},euNameHelpText:{id:"components/flows/collins/steps/Name/Name:euNameHelpText",description:"letters, hyphens, ap
1ostrophes, spaces",defaultMessage:"You can use letters, hyphens, apostrophes and spaces."},advanceBtnText:{id:"components/flows/collins/steps/Name/Name:advanceBtnText",description:"Continue",defaultMessage:"That's me"},affinityAdvanceBtnText:{id:"components/flows/collins/steps/Name/Name:affinityAdvanceBtnText",description:"Continue",defaultMessage:"Continue"},namePlaceholderText:{id:"components/flows/collins/steps/Name/Name:namePlaceholderText",description:"First name input placeholder",defaultMessage:"First name"}}),e4=o(88500),e3=o(11429),e6=o(90720),e8=o(12865);function e7(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function e9(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e7(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):e7(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var te=["password"],tt=function(e){var t=e.message,o=e.isRuleComplied,n=(0,a.SF)().site,r=(0,u.useTheme)().tokens,i=n.isStir||n.isOurTime,s=o?"functional1_75":n.isStir?"gray_100":"core3_100";return(0,b.jsxs)(f(),{display:"flex",alignItems:"center",children:[(0,b.jsx)(e4.A,{marginX:o?"none":"xsmall",children:(0,b.jsx)(e3.default,{name:o?"check":"active",color:o?"functional1_75":n.isOurTime?void 0:s,size:o?"xsmall":1})}),(0,b.jsx)(e4.A,{marginX:o?"small":"smedium",children:(0,b.jsx)(m.Ay,{style:n.isOurTime?{color:o?r.colorPositive:r.colorOnSurfaceVariant}:{},typography:"meta",bold:i,as:i?"b":"span",children:(0,b.jsx)(c.A,e9({},t))})})]})};let to=function(e){var t=e.currentValue,o=e.errors,n=e.isSubmitting,r=e.onBlur,i=e.onHasKeyboard,l=e.onSubmit,d=e.register,p=void 0===d?es:d,y=e.step,v=e.showAdvanceButton,w=e.showLogo,x=e.showPasswordToggle,O=(0,u.useTheme)().tokens,j=(0,G.Xw)().isInTest,S=(0,a.SF)().site,A=j(H.H.SHARED.newPasswordRules),C=(0,s.use
1State)(!1),P=C[0],k=C[1],T=(0,s.useState)(""),M=T[0],D=T[1],E=(0,s.useState)(!!A),B=E[0],_=E[1],L=(0,h.A)(),I=(0,a.Ww)(),N=I.flowType,R=I.stepCount,U=I.fireGtmEvents,F=I.gtmData,z=(0,a.RR)({onSubmit:l,step:y,stepCount:R}).handleOnSubmit,W=S.isStir,q=p("password"),Y=void 0!==o,K=null==o?void 0:o.message,X=L.formatMessage(tn.passwordInputPlaceholderText);(0,s.useEffect)(function(){A&&M&&_((0,e8._l)(M))},[M,A]);var J=function(e){if(0===M.length)return!1;switch(e){case V.D.password_minLength:return M.length>=e8.Oi;case V.D.password_uppercase:return(0,e8.Eh)(M);case V.D.password_lowercase:return(0,e8.d8)(M);case V.D.password_number:return(0,e8.J0)(M);case V.D.password_no_whitespace:return(0,e8.vV)(M)}},Z=function(e){i&&i(e)};return(0,G.Wl)("/registration/".concat(N,"/password")),(0,s.useEffect)(function(){U&&en.A.setPasswordInformation(y,F||{})},[U,y,F]),(0,b.jsx)("form",{onSubmit:z,children:(0,b.jsxs)(f(),{paddingBottom:"80px",children:[(0,b.jsx)(g.dO,{showLogo:void 0===w||w,title:(0,b.jsx)(c.A,e9({},tn.passwordStepTitle))}),(0,b.jsxs)(f(),{display:"flex",flexDirection:"column",width:"100%",className:"animate-answer",position:"relative",children:[(0,b.jsx)(g.pd,{autoFocus:!0,errorText:K,hasError:Y,maxLength:A?100:16,onBlur:function(){r&&!Y&&r(),t||Z(!1)},onFocus:function(){return Z(!0)},placeholder:X,readOnly:n,type:P?"text":"password",width:"100%","data-testid":"password",register:q,onChange:function(e){A&&D(e.target.value)}}),void 0!==x&&x&&(0,b.jsx)(e6.default,{onClick:function(e){e.preventDefault(),k(!P)},"data-testid":"show:password",style:{position:"absolute",right:0,top:"20px",width:"auto"},type:"button",children:(0,b.jsx)(m.Ay,{typography:"smallBody",children:P?(0,b.jsx)(c.A,e9({},tn.passwordInputHideText)):(0,b.jsx)(c.A,e9({},tn.passwordInputShowText))})}),(0,b.jsxs)(f(),{paddingTop:"small",children:[(0,b.jsx)(m.Ay,{typography:S.isOurTime?void 0:"meta",style:S.isOurTime?e9(e9({},O.typographyBodyXsmallRegular),{},{color:O.colorOnSurfaceVariant}):{color:W?"gray_100":"core3_100"},bold:W,as:W?"b":"span",children:A?(0,b.jsx)(c.A,e9({},tn.passwordRuleTitleText)):(0,b.jsx)(c.A,e9({},tn.passwordHelpText))}),A&&(0,b.jsxs)(f(),{marginLeft:"small",children:[(0,b.jsx)(tt,{message:tn.passwordRuleUpperCaseText,isRuleComplied:J(V.D.password_uppercase)}),(0,b.jsx)(tt,{message:tn.passwordRuleLowerCaseText,isRuleComplied:J(V.D.password_lowercase)}),(0,b.jsx)(tt,{message:tn.passwordRuleNumberText,isRuleComplied:J(V.D.password_number)}),(0,b.jsx)(tt,{message:tn.passwordRuleLengthText,isRuleComplied:J(V.D.password_minLength)}),(0,b.jsx)(tt,{message:tn.passwordRuleWhitespaceText,isRuleComplied:J(V.D.password_no_whitespace)})]})]}),v&&(0,b.jsx)(f(),{paddingTop:"large",display:"flex",justifyContent:"flex-end",children:(0,b.jsx)(g.Je,{type:"submit",disabled:!t||n||Y||A&&!B,children:(0,b.jsx)(c.A,e9({},tn.advanceBtnText))})})]})]})})};var tn=(0,d.YK)({passwordStepTitle:{id:"components/flows/collins/steps/Password/Password:passwordStepTitle",description:"Ask user to setup password",defaultMessage:"Now let’s get you set up with a password."},passwordHelpText:{id:"components/flows/collins/steps/Password/Password:passwordHelpText",description:"letters, numbers, and underscore only",defaultMessage:"You can use letters, numbers & underscores."},advanceBtnText:{id:"components/flows/collins/steps/Password/Password:advanceBtnText",description:"Continue",defaultMessage:"That's it"},passwordInputPlaceholderText:{id:"components/flows/collins/steps/Password/Password:passwordInputPlaceholderText",description:"password input placeholder",defaultMessage:"Password"},passwordInputShowText:{id:"components/flows/collins/steps/Password/Password:passwordInputShowText",description:"password show text",defaultMessage:"show"},passwordInputHideText:{id:"components/flows/collins/steps/Password/Password:passwordInputHideText",description:"password hide text",defaultMessage:"hide"},passwordRuleTitleText:{id:"components/flows/collins/steps/Password/Password:passwordRuleTitleText",description:"password new rules title",defaultMessage:"To make your account more secure, your password must contain:"},passwordRuleUpperCaseText:{id:"components/flows/collins/steps/Password/Password:passwordRuleUpperCaseText",description:"password uppercase rule",defaultMessage:"At least one upper case letter"},passwordRuleLowerCaseText:{id:"components/flows/collins/steps/Password/Password:passwordRuleLowerCaseText",description:"password lowercase rule",defaultMessage:"At least one lower case letter"},passwordRuleNumberText:{id:"components/flows/collins/steps/Password/Password:passwordRuleNumberText",description:"password number rule",defaultMessage:"At least one number "},passwordRuleLengthText:{id:"components/flows/collins/steps/Password/Password:passwordRuleLengthText",description:"password length rule",defaultMessage:"At least 8 characters"},passwordRuleWhitespaceText:{id:"components/flows/collins/steps/Password/Password:passwordRuleWhitespaceText",description:"password no whitespace rule",defaultMessage:"No spaces"}}
1),tr=o(44712);function ti(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function ts(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ti(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}let ta=function(e){var t=e.currentValue,o=e.isSubmitting,n=e.onFemaleClick,r=e.onMaleClick,i=e.onMoreClick,a=(0,tr.S)(),l=a.site,d=a.siteCode,u=(0,s.useState)({female:!!t&&parseInt(t)===eT.YT8.Female,male:!!t&&parseInt(t)===eT.YT8.Male,more:!1}),p=u[0],m=u[1],h=l.isAffinitySwipeBrand?tl.affinityMaleBtnLabel:tl.maleBtnLabel,y=l.isAffinitySwipeBrand?tl.affinityFemaleBtnLabel:tl.femaleBtnLabel,v=l.isAffinitySwipeBrand?tl.affinityMoreOptionsBtnLabel:tl.moreOptionsBtnLabel,w=d!==F.Lo.UPWARD&&!l.isMeetic&&!l.isOurtimeEU;return(0,b.jsxs)(f(),{display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-end",children:[(0,b.jsx)(g.m_,{onClick:function(e){m({female:!1,male:!0,more:!1}),r(e)},disabled:o,isSelected:p.male,"data-testid":"gender:self:male",children:(0,b.jsx)(c.A,ts({},h))}),(0,b.jsx)(g.m_,{onClick:function(e){m({female:!0,male:!1,more:!1}),n(e)},disabled:o,isSelected:p.female,"data-testid":"gender:self:female",children:(0,b.jsx)(c.A,ts({},y))}),w&&(0,b.jsx)(g.m_,{onClick:function(){m({female:!1,male:!1,more:!0}),i()},disabled:o,isSelected:p.more,"data-testid":"gender:self:more",children:(0,b.jsx)(c.A,ts({},v))})]})};var tl=(0,d.YK)({maleBtnLabel:{id:"components/flows/collins/steps/SelfGender/SelfGender:maleBtnLabel",description:"User is a man",defaultMessage:"I'm a man"},affinityMaleBtnLabel:{id:"components/flows/collins/steps/SelfGender/Layout/Landing/Landing:affinityMaleBtnLabel",description:"Affinity user is a man",defaultMessage:"Man"},femaleBtnLabel:{id:"components/flows/collins/steps/SelfGender/SelfGender:femaleBtnLabel",description:"User is a woman",defaultMessage:"I'm a woman"},affinityFemaleBtnLabel:{id:"components/flows/collins/steps/SelfGender/Layout/Landing/Landing:affinityFemaleBtnLabel",description:"Affinity user is a woman",defaultMessage:"Woman"},moreOptionsBtnLabel:{id:"components/flows/collins/steps/SelfGender/SelfGender:moreOptionsBtnLabel",description:"More gender options for the user",defaultMessage:"More options"},affinityMoreOptionsBtnLabel:{id:"components/flows/collins/steps/SelfGender/Layout/Landing/Landing:affinityMoreOptionsBtnLabel",description:"Affinity more gender options for the user",defaultMessage:"Let me be specific"}}),tc=o(76364),td=o(58089);function tu(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function tp(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tu(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var tf=(0,Z.I4)(f())(function(e){var t=e.theme,o=e.site;return(0,l.A)({borderBottom:"1px solid ".concat(o.isOurTime?t.tokens.colorOnSurface:"core3_100"),paddingBottom:"0px",marginBottom:"20%"},"@media (max-height: 600px)",{marginBottom:"10%"})}),tm=(0,Z.I4)("div")(function(e){return{display:"flex",flexDirection:"column",justifyContent:"space-between",maxHeight:"200px",marginBottom:e.theme.space.xlarge}}),tg=(0,Z.I4)("div")({alignItems:"flex-end",display:"inline-flex",flexDirection:"column",justifyContent:"flex-end",width:"100%",position:"relative",overflowY:"hidden"}),th=(0,Z.I4)("select")(function(e){var t,o,n,r,i=e.theme;return{height:"35px",border:"none",outline:"none",textAlign:"left",fontSize:"24px",boxSizing:"border-box",borderBottom:null!=(t=i.registrationComponents)&&t.input?null==(o=i.registrationComponents)?void 0:o.input.borderColor:"
11px solid #141651",margin:"0 auto",position:"relative",lineHeight:"24px",backgroundColor:"transparent",fontWeight:i.weights.semibold,color:null!=(n=i.registrationComponents)&&n.input?null==(r=i.registrationComponents)?void 0:r.input.fontColor:i.palette.light,zIndex:1,width:"100%",padding:0,"-webkit-appearance":"none"}}),tb=(0,Z.I4)(tc.Ay)({marginBottom:"0px",height:"30px"});let ty=(0,s.memo)(function(e){var t=e.currentGenderIdentity,o=e.genderOptions,n=e.isDesktop,r=e.isMoreOptionsAdvanceButtonDisabled,i=e.isSubmitting,l=e.onMoreOptionsSelectionChange,d=e.onMoreOptionsSelectFocus,u=e.onMoreOptionsSubmit,p=e.selectedOptionText,m=(0,a.SF)().site,h=(0,s.useRef)(null),y=(0,s.useState)(t?parseInt(t):void 0),v=y[0],w=y[1],x=function(e){w(e),l(e)},O=(0,s.useCallback)(function(e){"Enter"===e.key&&h.current&&h.current.dispatchEvent(new Event("submit",{bubbles:!0}))},[h]);(0,s.useEffect)(function(){return window.addEventListener("keydown",O),function(){window.removeEventListener("keydown",O)}},[O,n]),(0,s.useEffect)(function(){!n&&o.length>0&&l(o[0].value)},[]);var j=m.isAffinitySwipeBrand?tv.affinityAdvanceBtnText:tv.advanceBtnText;return(0,b.jsx)("form",{onSubmit:function(e){e.preventDefault(),u(e)},ref:h,children:n?(0,b.jsxs)(tm,{children:[(0,b.jsx)(g.vD,{availableSelections:o,maxSelections:1,onSelect:function(e){var t=Array.isArray(e)?e[0]:e;w(t),l(t)},hasGradientButtonOption:m.isStir,hasRegistrationTheme:m.isAffinitySwipeBrand}),(0,b.jsx)(f(),{display:"flex",justifyContent:"flex-end",children:v&&v>0&&(0,b.jsx)(g.Je,{disabled:r||i,children:(0,b.jsx)(c.A,tp({},j))})})]}):m.isStir||m.isAffinitySwipeBrand?(0,b.jsxs)(s.Fragment,{children:[(0,b.jsx)(th,{name:"gender-options-select-native",defaultValue:String(o[0].value),onClick:function(){return d(!0)},onBlur:function(){return d(!1)},value:v,onChange:function(e){x(Number(e.target.value))},children:o.map(function(e,t){return(0,b.jsx)("option",{value:e.value,children:e.label},"".concat(e.value).concat(t))})}),(0,b.jsx)(f(),{paddingTop:"large",display:"flex",justifyContent:"flex-end",children:(0,b.jsx)(g.Je,{disabled:r||i,children:(0,b.jsx)(c.A,tp({},j))})})]}):(0,b.jsxs)(tg,{children:[(0,b.jsx)(tf,{site:m,width:"100%",paddingBottom:"xlarge",children:(0,b.jsx)(tb,{typography:"heading4",priority:1,children:(0,b.jsx)(td.default,{fontSize:"medium",children:p})})}),(0,b.jsx)(f(),{width:"100%",children:(0,b.jsx)(g.ew,{defaultSelected:o[0].value,onChange:function(e,t){l(t)},options:o})}),(0,b.jsx)(f(),{paddingTop:"large",display:"flex",justifyContent:"flex-end",children:(0,b.jsx)(g.Je,{disabled:r||i,children:(0,b.jsx)(c.A,tp({},tv.advanceBtnText))})})]})})});var tv=(0,d.YK)({advanceBtnText:{id:"components/flows/collins/steps/SelfGender/Layout/MoreOptions/MoreOptions:advanceBtnText",description:"Continue",defaultMessage:"That's me"},affinityAdvanceBtnText:{id:"components/flows/collins/steps/SelfGender/Layout/MoreOptions/MoreOptions:affinityAdvanceBtnText",description:"Affinity Swipe Continue",defaultMessage:"Continue"}});function tw(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function tx(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tw(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tw(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}let tO=function(e){var t=e.currentSelfGenderValue,o=e.isSubmitting,n=e.onLookingForMenClick,r=e.onLookingForWomenClick,i=(0,s.useState)({lookingForMen:!!t&&parseInt(t)===eT.YT8.Male,lookingForWomen:!!t&&parseInt(t)===eT.YT8.Female}),a=i[0],l=i[1];return(0,b.jsxs)(f(),{display:"flex",flexDirection:"column",justifyContent:"flex-end",alignItems:"flex-end",children:[(0,b.jsx)(g.m_,{disabled:o,isSelected:a.lookingForMen,onClick:function(e){l({lookingForMen:!0,lookingForWomen:!1}),n(e)},"data-testid":"gender:show:male",children:(0,b.jsx)(c.A,tx({},tj.lookingForMenBtnLabel))}),(0,b.jsx)(g.m_,{disabled:o,isSelected:a.lookingForWomen,onClick:function(e){l({lookingForMen:!1,lookingForWomen:!0}),r(e)},"data-testid":"gender:show:female",children:(0,b.jsx)(c.A,tx({},tj.lookingForWomeBtnLabel))})]})};var tj=(0,d.YK)({lookingForMenBtnLabel:{id:"components/flows/collins/steps/SelfGender/Layout/FollowUp/FollowUp:lookingForMenBtnLabel",description:"User is looking for members looking for men",defaultMessage:"Members looking for men"},lookingForWomeBtnLabel:{id:"components/flows/collins/steps/SelfGender/Layout/FollowUp/FollowUp:lookingForWomeBtnLabel",description:"User is looking for members looking for women",defaultMessage:"Members looking for women"}}),tS=o(3539);let tA=function(e){var t=e.currentValue,o=e.currentGenderIdentity,n=e.genderOptions,r=e.isDesktop,i=e.isMoreOptionsAdvanceButtonDisabled,a=e.isSubmitting,l=e.onFemaleClick,c=e.onLookingForMenClick,d=e.onLookingForWomenClick,u=e.onMaleClick,p=e.onMoreClick,f=e.onMoreOptionsSelectionChange,m=e.onMoreOptionsSelectFocus,g=e.onMoreOptionsSubmit,h=e.selectedOptionText,y=e.setValue,v=e.siteCode,w=e.view;return(0,b.jsxs)(s.Fragment,{children:[w===tS.o.Landing&&(0,b.jsx)(ta,{currentValue:t,isSubmitting:a,onFemaleClick:l,onMaleClick:u,onMoreClick:p}),w===tS.o.MoreOptions&&(0,b.jsx)(ty,{currentGenderIdentity:o,genderOptions:n,isMoreOptionsAdvanceButtonDisabled:i,isSubmitting:a,onMoreOptionsSelectionChange:f,onMoreOptionsSelectFocus:m,onMoreOptionsSubmit:g,selectedOptionText:h,setValue:y,isDesktop:r,siteCode:v}),w===tS.o.FollowUp&&(0,b.jsx)(tO,{currentSelfGenderValue:t,isSubmitting:a,onLookingForMenClick:c,onLookingForWomenClick:d})]})};var tC=o(67987),tP=o(16461),tk=o(54223);function tT(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function tM(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?tT(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tT(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var tD=["selfGender"];let tE=function(e){var t=e.currentGenderIdentity,o=e.currentValue,n=e.errors,r=e.isSubmitting,i=e.onHasKeyboard,l=e.onSubmit,c=e.overrideView,d=e.setValue,u=e.showLogo,p=e.step,f=(0,h.A)(),m=(0,a.SF)(),y=m.siteCode,v=m.urlCode,w=m.layout,x=m.site,O=(0,a.Ww)(),j=O.flowType,S=O.stepCount,A=O.fireGtmEvents,C=O.gtmData,P=(0,a.RR)({onSubmit:l,step:p,stepCount:S}).handleOnSubmit,k=(0,s.useState)(tS.o.Landing),T=k[0],M=k[1],D=(0,s.useState)([]),E=D[0],B=D[1],_=(0,s.useState)(!1),L=_[0],I=_[1],N=(0,s.useState)(w!==z.BX.Desktop),R=N[0],U=N[1],H=(0,s.useState)(!0),W=H[0],V=H[1],q=(0,s.useState)(""),Y=q[0],K=q[1],X=w===z.BX.Desktop,J=x.isAffinitySwipeBrand?tB.affinitySelfGenderTitle:tB.selfGenderTitle,Z=f.formatMessage(T===tS.o.Landing||T===tS.o.MoreOptions?J:tB.selfGenderFollowUpTitle,{break:(0,b.jsx)("br",{})}),$=(0,s.useCallback)(function(){for(var e,t=[],o=[{value:eT.YT8.Male,name:f.formatMessage(tM({},tS.y[eT.YT8.Male])),label:f.formatMessage(tM({},tS.y[eT.YT8.Male]))},{value:eT.YT8.Female,name:f.formatMessage(tM({},tS.y[eT.YT8.Female])),label:f.formatMessage(tM({},tS.y[eT.YT8.Female]))}],n={value:eT.gOz.Other,name:f.formatMessage(tM({},tS.y[eT.gOz.Other])),label:f.formatMessage(tM({},tS.y[eT.gOz.Other]))},r=0,i=Object.entries(eT.gOz);r<i.length;r++){var s=(0,eh.A)(i[r],1)[0];Number.isNaN(Number(s))||parseInt(s)===eT.gOz.Other||t.push({value:parseInt(s),name:f.formatMessage(tM({},tS.y[parseInt(s)])),label:f.formatMessage(tM({},tS.y[parseInt(s)]))})}switch(y){case F.Lo.JAPAN:t=t.filter(function(e){return tC.Az.includes(e.value)});break;case F.Lo.ENGLISH_SPEAKING_INTERNATIONAL:v===F.cc.MATCH_AU?t=t.filter(function(e){return tP.Az.includes(e.value)}):v===F.cc.MATCH_NZ&&(t=t.filter(function(e){return tk.Az.includes(e.value)}))}t.sort(function(e,t){return e.label.localeCompare(t.label)}),(e=t).unshift.apply(e,o),t.push(n),B(t)},[f,y,v]),Q=(0,s.useCallback)(function(e){var t;d&&([eT.YT8.Female,eT.YT8.Male].includes(e)?(d("selfGender",e),I(!1)):(d("genderIdentity",e),I(!0))),V(!(e&&e>0)),K((null==(t=E.find(function(t){return t.value===e}))?void 0:t.label)||"")},[E,d]),ee=function(e){i&&(i(e),U(!(!X&&e)))};return(0,s.useEffect)(function(){$()},[$]),(0,G.Wl)("/registration/".concat(j,"/selfGender")),(0,s.useEffect)(function(){A&&en.A.setSelfGenderInformation(p,C||{})},[A,C,p]),(0,s.useEffect)(function(){c&&M(c)},[c]),(0,s.useEffect)(function(){t&&!L&&(I(!0),M(tS.o.MoreOptions))},[t]),(0,b.jsxs)(s.Fragment,{children:[(0,b.jsx)(g.dO,{showLogo:(void 0===u||u)&&(T!==tS.o.MoreOptions||T===tS.o.MoreOptions&&R),title:Z}),(0,b.jsxs)("div",{className:"animate-answer",children:[(0,b.jsx)(tA,{currentValue:o,currentGenderIdentity:t,genderOptions:E,isDesktop:X,isMoreOptionsAdvanceButtonDisabled:W,isSubmitting:r,onFemaleClick:function(e){d&&d("selfGender",eT.YT8.Female),P(e)},onLookingForMenClick:function(e){d&&d("selfGender",eT.YT8.Male),P(e)},onLookingForWomenClick:function(e){d&&d("selfGender",eT.YT8.Female),P(e)},onMaleClick:function(e){d&&d("selfGender",eT.YT8.Male),P(e)},onMoreClick:function(){M(tS.o.MoreOptions)},onMoreOptionsSelectionChange:Q,onMoreOptionsSelectFocus:function(e){ee(e)},onMoreOptionsSubmit:function(e){e&&e.preventDefault&&e.preventDefault(),L?M(tS.o.FollowUp):P(e)},selectedOptionText:Y,setValue:d,siteCode:y,view:T}),(0,b.jsx)("br",{}),null==n?void 0:n.message,Array.isArray(n)&&(null==n?void 0:n.map(function(e){return e}))]})]})};var tB=(0,d.YK)({selfGenderTitle:{id:"components/flows/collins/steps/SelfGender/SelfGenderContainer:selfGenderTitle",description:"Getting started text. Asking the user for which self gender",defaultMessage:"Hi, let's get started.{break}Which best describes you?"},affinitySelfGenderTitle:{id:"components/flows/collins/steps/SelfGender/SelfGenderContainer:affinitySelfGenderTitle",description:"Heading text for Affinity Self Gender question",defaultMessage:"I am a"},selfGenderFollowUpTitle:{id:"components/flows/collins/steps/SelfGender/SelfGenderContainer:selfGenderFollowUpTitle",description:"Self Gender Follow Up question - who to show the user to",defaultMessage:"Who would you like to be shown to?"}}),t_=o(60517);function tL(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function tI(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?tL(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tL(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var tN=["postalCode"];let tR=function(e){var t,o,n,r,i,l,d=e.canShowBgCheckDisclaimer,u=e.currentCityCode,p=e.currentValue,y=e.errors,v=e.hasSuggestedPostalCodeInput,w=void 0===v||v,x=e.isSubmitting,O=e.onHasKeyboard,j=e.onBlur,S=e.onSubmit,A=e.register,C=void 0===A?es:A,P=e.setValue,k=e.showAdvanceButton,T=e.showLogo,M=e.step,D=e.trigger,E=e.isDesktop,B=(0,h.A)(),_=(0,s.useState)(),L=_[0],N=_[1],U=(0,s.useState)(void 0===T||T),F=U[0],H=U[1],V=(0,s.useState)((0,eL.d8)(u)),q=V[0],Y=V[1],K=(0,s.useState)(!1),X=K[0],J=K[1],Z=(0,s.useState)(""),$=Z[0],Q=Z[1],ee=(0,a.SF)(),et=ee.defaultCountryCode,eo=ee.layout,er=ee.locale,ei=ee.site,ea=(0,a.Ww)(),el=ea.flowType,ec=ea.stepCount,ed=ea.fireGtmEvents,eu=ea.gtmData,ep=(0,a.RR)({onSubmit:S,step:M,stepCount:ec}).handleOnSubmit,ef=C("postalCode",{required:!0}),em=void 0!==y,eg=null==y?void 0:y.message,eh=ei.isBBP||ei.isBPM||ei.isOurTime,eb=ei.isStir||ei.isAffinitySwipeBrand,ey=d&&(0,e8.vy)(p),ev=!ei.isAffinitySwipeBrand||ei.isAffinitySwipeBrand&&E,ew=function(e){return e&&"string"==typeof e?e.split("-")[0]:e},ex=function(e){O&&O(e)},eO=function(e){return!e||e&&e.status===t_.e.Failure?[]:e.data},ej=(t=(0,I.A)(R().mark(function e(){var t,o,n;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.A.getLocations({postalCode:p||""});case 2:return o=(t=e.sent.data).success,n=t.location,e.abrupt("return",{success:o,location:n});case 7:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),eS=(o=(0,I.A)(R().mark(function e(t){var o,n,r;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.preventDefault(),w){e.next=13;break}return e.next=4,ej();case 4:n=(o=e.sent).success,r=o.location,J(!n),Q(p||""),n&&P&&(P("cityCode",null==r?void 0:r.cityCode),P("stateCode",null==r?void 0:r.stateCode),P("countryCode",null==r?void 0:r.countryCode)),n&&ep(t),e.next=14;break;case 13:ep(t);case 14:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)}),eA=function(e){j&&j(),eb||e||ex(!1),ei.isStir&&eo===z.BX.Mobile&&H(!0)},eC=eV()((n=(0,I.A)(R().mark(function e(t){var o,n,r;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Y(!1),(0,eI.PY)(""),P&&(P("postalCode",t),P("cityCode",0)),!D){e.next=6;break}return e.next=6,D("postalCode");case 6:if(!(t&&t.length>=2)){e.next=15;break}return o=ew(t),e.next=10,W.A.getZipCodeSuggestions({query:o,countryCode:et,cultureCode:er||"en-US"});case 10:(n=e.sent.data)&&(r=eO(n),r&&r.length>0&&N(r.map(function(e){return{label:"".concat(e.zipCodes[0]," - ").concat(e.cityName,", ").concat(e.shortStateName),value:e.zipCodes[0]}}))),e.next=16;break;case 15:N(void 0);case 16:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),0,{leading:!0,trailing:!0}),eP=(r=(0,I.A)(R().mark(function e(t){var o,n,r,i,s,a;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=null==L||null==(o=L.find(function(e){return e.value===t}))?void 0:o.label,P&&(P("postalCode",t),Y(!0)),(0,eI.PY)(null!=n?n:t),r=ew(t),e.next=6,W.A.getZipCodeSuggestions({query:r,countryCode:et,cultureCode:er||"pt-BR"});case 6:(i=e.sent.data)&&(s=eO(i)).length>0&&(a=s[0],P&&(P("cityCode",a.cityCode),P("stateCode",a.stateCode),P("countryCode",a.countryCode)));case 9:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)});(0,G.Wl)("/registration/".concat(el,"/location")),(0,s.useEffect)(function(){X&&p!=$&&J(!1)},[X,p,$]),(0,s.useEffect)(function(){p&&(eA(),ex(!1))},[]),(0,s.useEffect)(function(){ed&&en.A.setPostalCodeInformation(M,eu||{})},[ed,M,eu]);var ek=ei.isAffinitySwipeBrand?tU.affinityAdvanceBtnText:tU.advanceBtnText,eT=null!=(l=(0,eI.cl)())?l:void 0;return(0,b.jsxs)("form",{onSubmit:eS,children:[(0,b.jsx)(g.dO,{showLogo:F,title:(0,b.jsx)(c.A,tI(tI({},tU.postalCodeStepTitle),{},{values:{break:ev?(0,b.jsx)("br",{}):(0,b.jsx)("span",{children:"\xa0"}),zipOrPostal:eb?B.formatMessage(tU.zipCodeText):B.formatMessage(tU.postalCodeText)}}))}),(0,b.jsxs)(f(),{display:"flex",flexDirection:"column",width:"100%",className:"animate-answer",children:[w?(0,b.jsx)(g.fh,{id:"collins-regflow-postalcode-select",defaultSelectedText:eT,maxLength:5,onInputBlur:eA,onInputFocus:function(){eo!==z.BX.Mobile||eh||H(!1),ex(!0)},onSelectedPostalCodeChange:eP,onPostalCodeChange:eC,placeholderText:eb?B.formatMessage(tU.zipOrPostalCodePlaceholder):B.formatMessage(tU.postalCodePlaceholder),suggestedPostalCodes:L}):(0,b.jsx)(g.pd,{autoFocus:!0,hasError:em||X,errorText:X&&eb?B.formatMessage(tU.postalCodeServerErrorText):X?B.formatMessage(tU.postalCodeInputErrorText):eg,id:"postal-code-input",onBlur:function(){j&&j(),p||ex(!1),ei.isStir&&eo===z.BX.Mobile&&H(!0)},onFocus:function(){return ex(!0)},placeholder:eb?B.formatMessage(tU.zipOrPostalCodePlaceholder):B.formatMessage(tU.postalCodeInputPlaceholder),readOnly:x,register:ef,type:"text",width:"100%","data-testid":"postalcode"}),ey&&(0,b.jsx)(f(),{marginTop:"smedium",children:(0,b.jsx)(m.Ay,{as:"span",bold:!0,typography:"meta",children:(0,b.jsx)(c.A,tI({},tU.backgroundCheckDisclaimerText))})}),k&&(0,b.jsx)(f(),{paddingTop:"large",display:"flex",justifyContent:"flex-end",children:(0,b.jsx)(g.Je,{disabled:(i=q||(0,eL.d8)(u),!p||x||em||w&&!i||X),children:(0,b.jsx)(c.A,tI({},ek))})})]})]})};var tU=(0,d.YK)({postalCodeStepTitle:{id:"components/flows/collins/steps/PostalCode/PostalCode:postalCodeStepTitle",description:"Asking user for zip/postal code",defaultMessage:"Let's find members in your area.{break}What's your {zipOrPostal}?"},zipCodeText:{id:"components/flows/collins/steps/PostalCode/PostalCode:zipCodeText",description:"zipCode",defaultMessage:"zip code"},postalCodeText:{id:"components/flows/collins/steps/PostalCode/PostalCode:postalCodeText",description:"Continue",defaultMessage:"postal code"},advanceBtnText:{id:"components/flows/collins/steps/PostalCode/PostalCode:advanceBtnText",description:"Continue",defaultMessage:"That's it"},affinityAdvanceBtnText:{id:"components/flows/collins/steps/PostalCode/PostalCode:affinityAdvanceBtnText",description:"Continue",defaultMessage:"Continue"},backgroundCheckDisclaimerText:{id:"components/flows/collins/steps/PostalCode/PostalCode:backgroundCheckDisclaimerText",description:"Disclaimer text if user in IL/NJ/CT",defaultMessage:"NO CRIMINAL BACKGROUND CHECKS ARE CONDUCTED"},postalCodePlaceholder:{id:"components/flows/collins/steps/PostalCode/PostalCode:postalCodePlaceholder",description:"Placeholder for postal code text",defaultMessage:"Enter your postal code"},zipOrPostalCodePlaceholder:{id:"components/flows/collins/steps/PostalCode/PostalCode:zipOrPostalCodePlaceholder",description:"Placeholder for zip/postal code text",defaultMessage:"Zip or postal code"},postalCodeServerErrorText:{id:"components/flows/collins/steps/PostalCode/PostalCode:postalCodeServerErrorText",description:"Error message when the api cannot find the location from users postal code",defaultMessage:"No location found. Please try again."},postalCodeInputPlaceholder:{id:"components/flows/collins/steps/PostalCode/PostalCode:postalCodeInputPlaceholder",description:"Placeholder for postal code text used on the input-only box",defaultMessage:"Example: 75231"},postalCodeInputErrorText:{id:"components/flows/collins/steps/PostalCode/PostalCode:postalCodeInputErrorText",description:"error text when a zip code is not found",defaultMessage:"Please enter a valid zip/postal code."}}),tF=function(e){return e&&e.replace(/\D/g,"")},tz={AUTH_TWO_FACTOR_VALIDATE_INVALIDCODE:"AUTH_TWO_FACTOR_VALIDATE_INVALIDCODE"}
1,tH=(0,d.YK)({0:{id:"components/flows/collins/steps/PhoneNumber/consants:3",description:"default generic error in case something happens",defaultMessage:"Something went wrong. Please try again later or contact customer service."},3:{id:"components/flows/collins/steps/PhoneNumber/consants:3",description:"error for phone already existing",defaultMessage:"Oops! This phone number already exists."}});function tG(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function tW(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tG(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tG(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var tV={countryCode:"US",countryCallingCode:"1"},tq=(0,d.YK)({generalOutageError:{id:"components/flows/collins/steps/PhoneNumber/hooks/usePhoneNumber:generalOutageError",description:"Generic API outage error.",defaultMessage:"SMS login is currently unavailable. Please contact customer care."}}),tY=o(43054);function tK(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function tX(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tK(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tK(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var tJ=(0,Z.i7)({to:{transform:"rotate(360deg)"}}),tZ=(0,Z.I4)(f())(function(){return{animation:tJ+" 1000ms linear infinite"}}),t$=(0,Z.I4)(f())(function(e){var t,o,n,r,i=e.theme;return(0,l.A)((0,l.A)((0,l.A)({borderRadius:i.radii.round,border:"5px solid",borderColor:null==(t=i.steps)?void 0:t.phoneAuth.loadingColor},"div",{backgroundColor:null==(o=i.steps)?void 0:o.phoneAuth.loadingColor,width:25,height:25,borderRadius:i.radii.round}),"svg",{stroke:null==(n=i.steps)?void 0:n.phoneAuth.loadingColor}),"path",{stroke:null==(r=i.steps)?void 0:r.phoneAuth.loadingColor})});function tQ(e){var t,o,n=e.flowType,r=e.onPostPhoneNumber,i=e.setView,a=(0,Z.DP)(),l=(0,s.useState)(!1),d=l[0],u=l[1];return((0,s.useEffect)(function(){setTimeout(function(){u(!0)},2e3),setTimeout(function(){r(),i("enter-code")},3e3)},[r,i]),(0,G.Wl)("/registration/".concat(n,"/phone-number/resend-code/view")),d)?(0,b.jsxs)(f(),{width:"100%",center:!0,flexDirection:"column",children:[(0,b.jsx)(tc.Ay,{color:null==(o=a.steps)?void 0:o.phoneAuth.fontColor,priority:1,typography:"heading4",children:(0,b.jsx)(c.A,tX({},t0.codeIsSent))}),(0,b.jsx)(f(),{marginTop:12,children:(0,b.jsx)(tY.default,{indicator:(0,b.jsx)(t$,{width:105,height:105,center:!0,children:(0,b.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"101",height:"102",viewBox:"0 0 101 102",fill:"none",children:(0,b.jsx)("path",{d:"M71.3346 36.332L40.0846 65.4987L29.668 55.082",stroke:"#285B69",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})})})})})]}):(0,b.jsxs)(f(),{width:"100%",center:!0,flexDirection:"column",children:[(0,b.jsx)(tc.Ay,{color:null==(t=a.steps)?void 0:t.phoneAuth.fontColor,priority:1,typography:"heading4",children:(0,b.jsx)(c.A,tX({},t0.verifying))}),(0,b.jsx)(f(),{marginTop:12,children:(0,b.jsx)(tY.default,{indicator:(0,b.jsx)(tZ,{children:(0,b.jsx)(t$,{width:105,height:105,children:(0,b.jsx)("div",{})})})})})]})}var t0=(0,d.YK)({verifying:{id:"components/flows/collins/steps/PhoneNumber/views/resend-code/ResendCode:verifying",description:"title for resending code",defaultMessage:"Resending code..."},codeIsSent:{id:"components/flows/collins/steps/PhoneNumber/views/resend-code/ResendCode:codeIsSent",description:"title for resending code",defaultMessage:"Code was sent!"}}),t1=o(55784),t2=o(4967);function t5(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function t4(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?t5(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t5(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var t3=function(e){var t=function(){return null};return t4(t4({},e),{},{onClick:function(t){e.onClick&&e.onClick(t)},onChange:t,onBlur:t,onFocus:function(t){e.onFocus&&e.onFocus(t)},onKeyDown:function(t){e.onKeyDown&&e.onKeyDown(t)}})},t6=(n={},(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)(n,"AR","/reg/_next/static/assets/AR-bd1e1de64f035d24a27cff03a450a2aa.png"),"BL","/reg/_next/static/assets/BL-86889d7c9cde3ff4feff24f8bf940f7d.png"),"BO","/reg/_next/static/assets/BO-57f4769ce73cdffa35576d15c55dc000.png"),"BR","/reg/_next/static/assets/BR-e26854e067d5b925f28a739f3097b9f5.png"),"BZ","/reg/_next/static/assets/BZ-68b3b6fe83239966afba37321b350e8f.png"),"CA","/reg/_next/static/assets/CA-9ccdeb1a8441cb356b4077b59eae465d.png"),"CL","/reg/_next/static/assets/CL-a56741807547aefc6ad21cbee5af20a6.png"),"CO","/reg/_next/static/assets/CO-28ee4228ceff364270193db1a4143e49.png"),"CR","/reg/_next/static/assets/CR-e705985228e9fab3bae39c27885dadbb.png"),"CU","/reg/_next/static/assets/CU-93fc805151d71c907a3df74b2c398c3a.png"),(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)(n,"DO","/reg/_next/static/assets/DO-c142f1be574e387c6263a68918dc7c33.png"),"EC","/reg/_next/static/assets/EC-c07226bf99eb2b4e7856b3939aaf48eb.png"),"ES","/reg/_next/static/assets/ES-8db5049788c05858a88f193395211852.png"),"GF","/reg/_next/static/assets/GF-cadb172ff72987ff5ed8ce40252640fc.png"),"GP","/reg/_next/static/assets/GP-1e2c093552fadbbba1028d851df993b7.png"),"GT","/reg/_next/static/assets/GT-450d0396e85135701603652d3e3e58e5.png"),"HK","/reg/_next/static/assets/HK-e3c6adfe951220ee765e68b498daac6f.png"),"HN","/reg/_next/static/assets/HN-c448d47f9d638bf273472f7a8e3bb08b.png"),"HT","/reg/_next/static/assets/HT-fdd42011fcbc0695ecc0e42e7d3bfec0.png"),"MF","/reg/_next/static/assets/MF-3a1dbb53425c3cc74e7a1eddc844e1eb.png"),(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)(n,"MQ","/reg/_next/static/assets/MQ-36199c18f73defa75f83246d18651e21.png"),"MY","/reg/_next/static/assets/MY-cc5a25ac4cc67d22891eb2aaaf026b9c.png"),"MX","/reg/_next/static/assets/MX-93e9ab108a41df34d8f191f5d612729b.png"),"NI","/reg/_next/static/assets/NI-0a2c98894c39fc627783cf5cec2009ee.png"),"PA","/reg/_next/static/assets/PA-c35d173933e8b9078c6149480a35150a.png"),"PE","/reg/_next/static/assets/PE-974bb34a3381b71f780f540acdb89a38.png"),"PH","/reg/_next/static/assets/PH-a2a1a5476bfd5528c23f1c1bad5dd79f.png"),"PR","/reg/_next/static/assets/PR-46a3414a6ab5100a4a4d82e9802b4347.png"),"PY","/reg/_next/static/assets/PY-1980c0891abdfa3048414fae99595f2f.png"),"SG","/reg/_next/static/assets/SG-9a51b087000ee2a487efbd0d5a6a0ed0.png"),(0,l.A)((0,l.A)((0,l.A)((0,l.A)(n,"SV","/reg/_next/static/assets/SV-2f4eff0fe6bf48db967f8e35ca2c41a5.png"),"US","/reg/_next/static/assets/US-b599e9882a73b27fa72b373061fe7918.png"),"UY","/reg/_next/static/assets/UY-149e89f66226040cbb73b9602f2dd81e.png"),"VE","/reg/_next/static/assets/VE-1f9df6e5d2a5b04758334bb67f647913.png")),t8=function(e){return t6[e]};function t7(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function t9(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?t7(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t7(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var oe=(0,Z.I4)(t1.Ay)(function(e){var t,o=e.theme;return(0,l.A)({padding:0,borderRadius:o.radii.corner,borderBottom:"1px solid ".concat(null==(t=o.steps)?void 0:t.phoneAuth.borderColor)},":focus",{boxShadow:"none",backgroundColor:o.palette.gray_75_opaque})});function ot(e){var t,o,n=e.countryCallingCode,r=e.currentValue,i=e.flowType,a=e.formattedPhoneNumber,d=e.isSubmitting,u=e.isValidPhoneNumber,p=e.onBlur,y=e.onHasKeyboard,v=e.onPhoneNumberChange,w=e.onPostPhoneNumber,x=e.onValidatePhoneNumber,O=e.phoneCountryCodes,j=e.register,S=void 0===j?es:j,A=e.selectedPhoneCountryCode,C=e.onSelectCountryCode,P=e.errorMessage,k=e.isDesktop,T=(0,h.A)(),M=(0,Z.DP)(),D=!!P;(0,G.Wl)("/registration/".concat(i,"/phone-number/phone-auth/view"));var E=function(e){y&&y(e)},B=T.formatMessage(oo.phoneNumberPlaceholder),_=S("phoneNumber",{required:!0});return(0,b.jsxs)(s.Fragment,{children:[(0,b.jsx)(g.dO,{showLogo:!1,title:(0,b.jsx)(c.A,t9(t9({},oo.phoneStepTitle),{},{values:{break:k?(0,b.jsx)("span",{children:"\xa0"}):(0,b.jsx)("br",{})}}))}),(0,b.jsxs)(f(),{paddingTop:"large",display:"flex",flexDirection:"column",justifyContent:"flex-end",children:[(0,b.jsxs)(f(),{display:"flex",children:[(0,b.jsx)(f(),{marginRight:4,children:(0,b.jsx)(ez.Ay,{id:"phoneCountryCode",inputClassName:(0,Z.AH)({position:"relative",top:15,minWidth:"auto"}),dropdownClassName:(0,Z.AH)((0,l.A)((0,l.A)({border:"0px",boxShadow:"none",width:"auto",position:"relative",top:M.space[3]},"li",{padding:0,justifyContent:"center"}),"span",{display:"none"})),buttonAriaLabelClear:"clear",buttonAriaLabelDownArrow:"arrow down",buttonAriaLabelUpArrow:"arrow up",name:"phoneCountryCode","data-testid":"phoneCountryCode",noIcon:!0,onSelect:function(e){e&&C(null==e?void 0:e.value)},buildInputElement:function(e){var t,o,r=t3(e),i=t8(A);return(0,b.jsxs)(oe,t9(t9({},r),{},{color:null==(t=M.steps)?void 0:t.phoneAuth.fontColor,minimal:!0,children:[(0,b.jsx)("img",{height:32,width:32,src:i}),(0,b.jsx)(m.Ay,{children:n&&"+".concat(n)}),(0,b.jsx)(f(),{marginLeft:2,children:(0,b.jsx)(e3.default,{name:"triangle_down",size:3,color:null==(o=M.steps)?void 0:o.phoneAuth.fontColor})})]}))},isCombobox:!0,children:O&&O.map(function(e,t){return(0,b.jsxs)(ez.Ay.Option,{value:e.iso2Code,children:[(0,b.jsx)(t2.default,{children:e.countryName}),(0,b.jsx)("img",{alt:e.countryName,src:t8(e.iso2Code)})]},t)})})}),(0,b.jsxs)(f(),{width:"100%",children:[(0,b.jsx)(g.pd,{autoFocus:!0,errorText:P,hasError:D,onBlur:function(){p&&!D&&p(),r||E(!1)},onChange:v,onFocus:function(){return E(!0)},placeholder:B,readOnly:d,register:_,type:"text",inputMode:"tel",customValue:a,"data-testid":"phoneNumber",className:(0,Z.AH)({borderBottom:"1px solid ".concat(null==(t=M.steps)?void 0:t.phoneAuth.borderColor),width:"100%"})}),(0,b.jsx)(f(),{marginTop:3,marginBottom:18,children:(0,b.jsx)(m.Ay,{color:null==(o=M.steps)?void 0:o.phoneAuth.disclaimerFontColor,typography:"meta",children:(0,b.jsx)(c.A,t9({},oo.ratesDisclaimer))})})]})]}),(0,b.jsx)(g.Je,{disabled:!!d||!!D||!u,onClick:function(){x().then(function(e){e&&w()})},type:"button",children:(0,b.jsx)(c.A,t9({},oo.advanceBtnContinueText))})]})]})}
1var oo=(0,d.YK)({phoneStepTitle:{id:"components/flows/collins/steps/PhoneNumber/views/phone-number-auth/PhoneNumberAuth:phoneStepTitle",description:"Ask user to setup password",defaultMessage:"My {break}mobile number is"},advanceBtnContinueText:{id:"components/flows/collins/steps/PhoneNumber/views/phone-number-auth/PhoneNumberAuth:advanceBtnContinueText",description:"Continue",defaultMessage:"Continue"},phoneNumberPlaceholder:{id:"components/flows/collins/steps/PhoneNumber/views/phone-number-auth/PhoneNumberAuth:phoneNumberPlaceholder",description:"placeholder for phone number input",defaultMessage:"Mobile Number"},ratesDisclaimer:{id:"components/flows/collins/steps/PhoneNumber/views/phone-number-auth/PhoneNumberAuth:ratesDisclaimer",description:"disclaimer that message and data rates may apply",defaultMessage:"Message and data rates may apply"}});function on(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function or(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?on(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):on(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var oi=(0,d.YK)({invalidValidationCodeError:{id:"components/flows/collins/steps/PhoneNumber/hooks/usePhoneValidationCode:invalidPhoneNumberError",description:"invalid validation code",defaultMessage:"The authentication code you entered isn't valid."}});function os(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function oa(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?os(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):os(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function ol(e){var t,o,n,r,i,l,d,u,p,m,y,v,w,x,O,j,S,A,C=e.authToken,P=e.countryCallingCode,k=e.formattedPhoneNumber,T=e.isSubmitting,M=e.onBlur,D=e.currentValue,E=e.onHasKeyboard,B=e.validationCodeLength,_=e.onPostPhoneNumber,L=e.onSubmit,N=e.step,U=e.setView,F=e.stepCount,z=e.flowType,H=e.setValue,V=(0,s.useState)(""),q=V[0],Y=V[1],K=(0,Z.DP)(),X=(0,h.A)(),J=(0,a.RR)({onSubmit:L,step:N,stepCount:F}).handleOnSubmit;(0,G.Wl)("/registration/".concat(z,"/phone-number/enter-code/view"));var $=(o=(t={countryCallingCode:P,formattedPhoneNumber:k,validationCodeLength:B,validationCode:q,setValidationCode:Y,authToken:C,onPostPhoneNumber:_,onSubmit:J,setView:U,flowType:z,setValue:H}).countryCallingCode,n=t.formattedPhoneNumber,r=t.validationCodeLength,i=t.authToken,l=t.validationCode,d=t.onSubmit,u=t.setView,p=t.setValue,m=t.flowType,y=t.setValidationCode,v=(0,h.A)(),x=(w=(0,s.useState)())[0],O=w[1],j=(0,G.z1)().logToActivityEvent,{validationCodeError:x,handleSubmitCode:(S=(0,I.A)(R().mark(function e(){var t,r,s,a,c;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n&&n.replace(/\D/g,""),e.next=3,W.A.putAuthPhoneNumber({phoneNumber:t||"",countryCode:o,code:l||"",authToken:i});case 3:s=(r=e.sent).data,(a=r.error)&&(j("/registration/".concat(m,"/phone-number/enter-code/submit/errors")),c=a.message,a.key===tz.AUTH_TWO_FACTOR_VALIDATE_INVALIDCODE&&(c=v.formatMessage(oi.invalidValidationCodeError)),O(or(or({},a),{},{message:c}))),s&&s.success&&(p&&p("phoneAuthToken",s.token),j("/registration/".concat(m,"/phone-number/enter-code/submit/success")),d());case 8:case"end":return e.stop()}},e)})),function(){return S.apply(this,arguments)}),handleResendCode:function(){j("/registration/".concat(m,"/phone-number/enter-code/resend-code/tap-resend-code")),u("resend-code")},handleCodeInputChange:function(e){var t=e.target.value;t.replace(/\D/g,"").substring(0,r),y(t.replace(/\D/g,"")),O(void 0)}}),Q=$.handleResendCode,ee=$.handleSubmitCode,et=$.validationCodeError,eo=$.handleCodeInputChange,en=null==et?void 0:et.message,er=!!en,ei=function(e){E&&E(e)},es=X.formatMessage(oc.placeholder);return(0,b.jsxs)(s.Fragment,{children:[(0,b.jsx)(g.dO,{showLogo:!1,title:(0,b.jsx)(c.A,oa({},oc.enterCodeTitle))}),(0,b.jsxs)(f(),{paddingTop:"large",display:"flex",flexDirection:"column",justifyContent:"flex-end",children:[(0,b.jsx)(g.pd,{autoFocus:!0,errorText:en,formNoValidate:!0,hasError:er,onBlur:function(){M&&!er&&M(),D||ei(!1)},onChange:eo,onFocus:function(){return ei(!0)},readOnly:T,type:"text",width:"100%",value:q,maxLength:B,placeholder:es,inputMode:"numeric","data-testid":"validation-code"}),(0,b.jsxs)(f(),{marginTop:18,children:[(0,b.jsx)(g.Je,{disabled:!!er||!B||!q||!!q&&q.length!==B,onClick:ee,type:"button",children:(0,b.jsx)(c.A,oa({},oc.advanceBtnContinueText))}),(0,b.jsx)(f(),{marginTop:4,center:!0,children:(0,b.jsx)(t1.Ay,{"data-testid":"resendCode",size:"large",color:null==(A=K.steps)?void 0:A.phoneAuth.fontColor,onClick:Q,minimal:!0,children:(0,b.jsx)(c.A,oa({},oc.resendCode))})})]})]})]})}var oc=(0,d.YK)({advanceBtnContinueText:{id:"components/flows/collins/steps/PhoneNumber/views/validation-code/ValidationCode:advanceBtnContinueText",description:"Continue",defaultMessage:"Continue"},enterCodeTitle:{id:"components/flows/collins/steps/PhoneNumber/views/validation-code/ValidationCode:enterCodeTitle",description:"enter code title",defaultMessage:"Enter your co
1de"},resendCode:{id:"components/flows/collins/steps/PhoneNumber/views/validation-code/ValidationCode:resendCode",description:"cta to resend verification code",defaultMessage:"I didn’t get a code"},placeholder:{id:"components/flows/collins/steps/PhoneNumber/views/validation-code/ValidationCode:placeholder",description:"placeholder text for input",defaultMessage:"Code"}}),od=["phoneNumber"];function ou(e){var t,o,n,r,i,l,c,d,u,p,f,m,g,y,v,w,x,O,j,S,A,C,P,k,T,M,D,E,B,_,L,N,U,F,z,H,q,Y,K,X,J,Z,$=e.onSubmit,Q=e.onHasKeyboard,ee=e.onBlur,et=e.step,eo=e.isSubmitting,en=e.currentValue,er=e.register,ei=e.setValue,ea=e.trigger,el=e.isDesktop,ec={view:(t=(0,s.useState)("phone-auth"))[0],setView:t[1]},ed=ec.view,eu=ec.setView,ep=(0,a.Ww)(),ef=ep.flowType,em=ep.stepCount,eg=(n=(o={setView:eu,setValue:ei,trigger:ea,flowType:ef}).setView,r=o.setValue,i=o.trigger,l=o.flowType,m=(d=(c=(0,s.useState)())[0],u=c[1],p=(0,I.A)(R().mark(function e(){var t;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.A.getPhoneCountryCodes();case 2:return t=e.sent.data,e.abrupt("return",t);case 5:case"end":return e.stop()}},e)})),f=function(){return p.apply(this,arguments)},(0,s.useEffect)(function(){f().then(function(e){u(null==e?void 0:e.items)})},[]),{phoneCountryCodes:d}).phoneCountryCodes,y=(g=(0,s.useState)())[0],v=g[1],x=(w=(0,s.useState)(tV.countryCode))[0],O=w[1],S=(j=(0,s.useState)(tV.countryCallingCode))[0],A=j[1],P=(C=(0,s.useState)(""))[0],k=C[1],M=(T=(0,s.useState)(0))[0],D=T[1],B=(E=(0,s.useState)(""))[0],_=E[1],N=(L=(0,s.useState)(!1))[0],U=L[1],F=(0,G.z1)().logToActivityEvent,z=(0,h.A)(),(0,s.useEffect)(function(){m&&(O(m[0].iso2Code),A("".concat(m[0].phoneCountryCode)))},[m]),H=(0,I.A)(R().mark(function e(t,o){return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=9;break}if(r("phoneNumber",t),r("phoneCountryCode",o),!i){e.next=8;break}return e.next=6,i("phoneNumber");case 6:return e.next=8,i("phoneCountryCode");case 8:return e.abrupt("return");case 9:case"end":return e.stop()}},e)})),q=function(e,t){return H.apply(this,arguments)},Y=(0,I.A)(R().mark(function e(){var t,o,r,i;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=tF(B),e.next=3,W.A.postAuthPhoneNumber({phoneNumber:t,countryCode:S});case 3:(r=(o=e.sent).data,i=o.error)&&(v(i.message.includes("SMS login currently unavailable.")?tW(tW({},i),{},{message:z.formatMessage(tq.generalOutageError)}):i),F("/registration/".concat(l,"/phone-number/submit/errors")));r&&r.success&&(k(r.token),D(r.verificationCodeLength),n("enter-code"),q(t,S),F("/registration/".concat(l,"/phone-number/submit/success")));case 8:case"end":return e.stop()}},e)})),K=function(){return Y.apply(this,arguments)},X=(0,I.A)(R().mark(function e(){var t,o,n,r,i,s;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=!0,o=tF(B),e.next=4,W.A.postValidatePhoneNumber({phoneNumber:o,phoneCountryCode:S});case 4:return r=(n=e.sent).data,(i=n.error)&&(v(i),F("/registration/".concat(l,"/phone-number/submit/errors")),t=!1),r&&r.success&&!r.isValid&&(s=tH[r.errorCodes[0]]||tH[0],v({key:V.D.phone_number_validation_error,message:z.formatMessage(s),isVisibleToUser:!0}),F("/registration/".concat(l,"/phone-number/submit/errors")),t=!1),e.abrupt("return",t);case 10:case"end":return e.stop()}},e)})),J=function(){return X.apply(this,arguments)},{authToken:P,codeLength:M,countryCallingCode:S,formattedPhoneNumber:B,handlePhoneNumberChange:(Z=(0,I.A)(R().mark(function e(t){var o;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:_(function(e,t){var o;return"US"!==t&&"CA"!==t?e:(o=e.replace(/\D/g,"")).length<=3?o:o.length<=6?"(".concat(o.slice(0,3),") ").concat(o.slice(3)):"(".concat(o.slice(0,3),") ").concat(o.slice(3,6),"-").concat(o.slice(6))}(o=tF(t.target.value).replace(/\D/g,"").substring(0,10),x)),U(o.length>=10),v(void 0);case 7:case"end":return e.stop()}},e)})),function(e){return Z.apply(this,arguments)}),handlePostPhoneNumber:K,handleValidatePhoneNumber:J,isValidPhoneNumber:N,phoneCountryCodes:m,phoneNumberError:y,selectedPhoneCountryCode:x,handleChangePhoneCountryCode:function(e){if(O(e),m){var t;A(((null==(t=m.find(function(t){return t.iso2Code===e}))?void 0:t.phoneCountryCode)||0).toString())}F("/registration/".concat(l,"/phone-number/phone-auth/changeCountryCode"))}}),eh=eg.authToken,eb=eg.codeLength,ey=eg.countryCallingCode,ev=eg.formattedPhoneNumber,ew=eg.handlePhoneNumberChange,ex=eg.handlePostPhoneNumber,eO=eg.handleValidatePhoneNumber,ej=eg.isValidPhoneNumber,eS=eg.ph
1oneCountryCodes,eA=eg.phoneNumberError,eC=eg.selectedPhoneCountryCode,eP=eg.handleChangePhoneCountryCode;if("enter-code"===ed)return(0,b.jsx)(ol,{isSubmitting:eo,authToken:eh,countryCallingCode:ey,formattedPhoneNumber:ev,validationCodeLength:eb,onPostPhoneNumber:ex,onSubmit:$,step:et,setView:eu,stepCount:em,flowType:ef,setValue:ei});if("resend-code"===ed)return(0,b.jsx)(tQ,{onPostPhoneNumber:ex,setView:eu,flowType:ef});var ek=null==eA?void 0:eA.message;return(0,b.jsx)(ot,{countryCallingCode:ey,currentValue:en,formattedPhoneNumber:ev,errorMessage:ek,isSubmitting:eo,isValidPhoneNumber:ej,onBlur:ee,onSubmit:$,onHasKeyboard:Q,onPhoneNumberChange:ew,onPostPhoneNumber:ex,onValidatePhoneNumber:eO,phoneCountryCodes:eS||[],register:void 0===er?es:er,selectedPhoneCountryCode:eC,onSelectCountryCode:eP,flowType:ef,isDesktop:el})}var op=o(18157),of=o(62798);function om(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function og(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?om(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):om(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var oh=(0,Z.I4)(f())(function(e){var t=e.theme,o=e.isMobile,n=e.isAffinitySwipe,r=e.isOurTime,i=o?"fit-content":void 0;return(n||r)&&(i="100%"),{display:"flex",width:i,flexWrap:"wrap",justifyContent:"right",position:"relative",alignSelf:o?"center":"flex-end",flexDirection:o?"column":void 0,gap:"0px ".concat(t.space.small,"px")}}),ob=(0,Z.I4)(f())(function(e){return{display:"flex",flexDirection:"column",justifyContent:"end",marginTop:e.theme.space.small}});let oy=function(e){var t,o,n,r,i,l,d,u,p,y,v,w,x,O=e.onSubmit,j=e.isInMarketingSurveyTest,S=e.isMobile,A=e.isSubmitting,C=e.onHasKeyboard,P=e.onOtherClick,k=e.forceInputOnOther,T=void 0!==k&&k,M=e.randomizeAnswers,D=e.showLogo,E=(0,h.A)(),B=(0,a.SF)().site,_=(0,a.Ww)(),L=_.flowType,N=_.stepCount,U=_.step,F=(0,s.useState)(!1),z=F[0],H=F[1],V=(0,s.useState)(T),q=V[0],Y=V[1],K=E.formatMessage(ov.surveyPlaceholderText),X=(0,Z.DP)(),J=X.branding.siteName,$=B.isMeetic,Q=(0,s.useRef)(""),ee=(0,s.useState)(),et=ee[0],eo=ee[1],en=(n=void 0===(o=(t={isInMarketingSurveyTest:j,randomizeAnswers:void 0===M||M}).randomizeAnswers)||o,i=void 0!==(r=t.isInMarketingSurveyTest)&&r,d=(l=(0,s.useState)())[0],u=l[1],y=(p=(0,s.useState)([]))[0],v=p[1],w=(0,I.A)(R().mark(function e(){var t;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.A.getRegistrationSurveyConfig({});case 2:return t=e.sent.data,e.abrupt("return",t);case 5:case"end":return e.stop()}},e)})),x=function(){return w.apply(this,arguments)},(0,s.useEffect)(function(){x().then(function(e){u(null==e?void 0:e.items)})},[]),(0,s.useEffect)(function(){var e=[],t=[];if(d&&(null==d?void 0:d.map(function(e){var o=e.answerId,n=e.answer,r=e.isTextInput;return t.push(e.answerId),{answerId:o,answer:n,isTextInput:r}})).map(function(t){e.push({value:t.answerId,name:t.answer,label:t.answer})}),i&&(e=e.filter(function(e){return(null==e?void 0:e.value)!==eT.GSq.Everyone_knows_match})),n){var o=e.find(function(e){return(null==e?void 0:e.value)===eT.GSq.Other}),r=e.filter(function(e){return(null==e?void 0:e.value)!==eT.GSq.Other}).map(function(e){return{value:e,sort:Math.random()}}).sort(function(e,t){return e.sort-t.sort}).map(function(e){return e.value});v([].concat((0,op.A)(r),[o]))}else v(e)},[i,n,d]),{surveyOptions:y}).surveyOptions;(0,G.Wl)("/registration/".concat(L,"/survey")),(0,s.useEffect)(function(){null!=et&&et.answerId&&(et.answerId===eT.GSq.Other?(H(!0),P&&(B.isStir||B.isBBP||B.isBPM||B.isOurTime||B.isAffinitySwipeBrand)&&P()):O(U,N,et))},[et]);var er=(0,s.useCallback)(function(e){var t;Q.current=null!=(t=e.currentTarget.value)?t:"",T&&Y(0===e.currentTarget.value.length)},[T]),ei=function(e,t){e.preventDefault(),eo({answerId:t,answerIndex:en.findIndex(function(e){return e&&e.value==t})+1,mostInfluential:!1})},es=function(e){C&&C(e)},ea=B.isAffinitySwipeBrand?ov.affinityAdvanceBtnText:ov.advanceBtnText,el=!B.isAffinitySwipeBrand&&!B.isMeetic&&!B.isOurtimeEU;return(0,b.jsxs)("form",{children:[(0,b.jsx)(g.dO,{showLogo:void 0===D||D,subHeader:el&&(0,b.jsx)(c.A,og({},ov.subTitleHasABeginningText)),title:(0,b.jsx)(c.A,og(og({},ov.surveyStepTitle),{},{values:{siteName:J}}))}),(0,b.jsx)(f(),{display:"flex",flexDirection:"column",width:"100%",className:"animate-answer",children:(0,b.jsx)(ob,{children:z?(0,b.jsxs)(s.Fragment,{children:[(0,b.jsx)(g.pd,{autoFocus:!0,id:"survey-other-text",onFocus:function(){return es(!0)},placeholder:K,readOnly:A,type:"text",width:"100%",maxLength:50,variant:"variant1",onChange:er}),(0,b.jsxs)(f(),{paddingTop:"large",display:"flex",right:"none",left:"none",flexDirection:$&&!S?"row-reverse":"column",justifyContent:$&&!S?"space-between":"flex-start",alignItems:$&&S?"center":"flex-end",position:$&&S?"absolute":"relative",bottom:$&&S?"medium":"none",children:[(0,b.jsx)(g.Je,{disabled:q,type:"submit",onClick:function(e){e.preventDefault();var t=og({},et);t&&(t.textAnswer=Q.current,O(U,N,t))},width:$&&S?"calc(100% - ".concat(X.space.large,"px)"):"fit-content",marginBottom:$&&!S?"none":"smedium",children:(0,b.jsx)(c.A,og({},ea))}),($||B.isOurtimeEU)&&(0,b.jsx)(e6.default,{onClick:function(){H(!1),eo(null)},marginTop:S?X.space.xsmall:"none",width:"fit-content",alignSelf:"center",hoverStyles:{background:"transparent"},children:(0,b.jsx)(m.Ay,{color:"core3_100",bold:!0,typography:"standardBody",as:"span",children:(0,b.jsx)(c.A,og({},ov.previousBtnText))})})]})]}):(0,b.jsx)(oh,{isAffinitySwipe:B.isAffinitySwipeBrand,isMobile:S,isOurTime:B.isOurTime,children:en.map(function(e,t){return e?B.isAffinitySwipeBrand?(0,b.jsx)(g.m_,{onClick:function(t){return ei(t,e.value)},isSelected:(null==et?void 0:et.answerId)==e.value,disabled:A,fullWidthOnSmallScreen:B.isMeetic||B.isNorthAmerica||B.isOurTime,"data-testid":"survey-option-".concat(e.label.replace(/\s+/g,"")),children:e.label},t):(0,b.jsx)(of.A,{fontWeight:400,width:"auto",size:"xlarge",onClick:function(t){return ei(t,e.value)},isSelected:(null==et?void 0:et.answerId)==e.value,disabled:A,"data-testid":"survey-option-".concat(e.label.replace(/\s+/g,"")),children:e.label},t):null})})})})]})};var ov=(0,d.YK)({surveyStepTitle:{id:"components/flows/collins/steps/Survey/Survey:surveyStepTitle",description:"Surveying user where they heard about site",defaultMessage:"How did you hear about {siteName}?"},affinityAdvanceBtnText:{id:"components/flows/collins/steps/Survey/Survey:affinityAdvanceBtnText",description:"Continue",defaultMessage:"Continue"},advanceBtnText:{id:"components/flows/collins/steps/Survey/Survey:advanceBtnText",description:"That's it",defaultMessage:"That's it"},previousBtnText:{id:"components/flows/collins/steps/Survey/Survey:previousBtnText",description:"Telling the user that he can go back to the option list",defaultMessage:"Previous"},surveyPlaceholderText:{id:"components/flows/collins/steps/Survey/Survey:surveyPlaceholderText",description:"Tell us more...",defaultMessage:"Tell us more..."},subTitleHasABeginningText:{id:"components/flows/collins/steps/Survey/Survey:subTitleHasABeginningText",description:"Everyone's story has a beginning.",defaultMessage:"Everyone's story has a beginning."}});function ow(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function ox(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?ow(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ow(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function oO(e){var t,o=e.showLogo,n=e.siteCode,r=(0,Z.DP)(),i=(0,h.A)();return(0,b.jsxs)(s.Fragment,{children:[(0,b.jsx)(g.dO,{showLogo:o,title:(0,b.jsx)(c.A,ox({},oj.headingMultiPhoto))}),(0,b.jsx)(f(),{marginBottom:10,children:(0,b.jsx)(m.Ay,{typography:"smallBody",color:null==(t=r.steps)?void 0:t.photoUpload.foregroundColor,children:function(){var e=i.formatMessage(ox({},oj.subtext));switch(n){case F.Lo.UPWARD:case F.Lo.BLK:case F.Lo.CHISPA:e=i.formatMessage(ox({},oj.subtextAlt))}return e}()})})]})}var oj=(0,d.YK)({headingMultiPhoto:{id:"components/flows/collins/steps/PhotoUpload/photo-upload-header/PhotoUploadHeader:headingMultiPhoto",description:"add photos",defaultMessage:"Add photos"},subtext:{id:"components/flows/collins/steps/PhotoUpload/photo-upload-header/PhotoUploadHeader:subtext",description:"add photos subtext",defaultMessage:"1 photo is required. But profiles with 2 or more photos get 2X more matches. You can change these later."},subtextAlt:{id:"components/flows/collins/steps/PhotoUpload/photo-upload-header/PhotoUploadHeader:subtextAlt",description:"add photos subtext",defaultMessage:"1 photo is required. You can add more photos or change this photo later."}}),oS=(0,Z.I4)("ul")(function(e){var t=e.numPhotos;return(0,l.A)({width:"100%",display:"grid",gridTemplateColumns:"repeat(".concat(t,", 1fr)"),gridTemplateRows:"repeat(2, ".concat(92,"px)"),gridGap:"14px",paddingInlineStart:0},"li div",{height:"100%",width:"100%"})}),oA=o(49517);function oC(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function oP(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?oC(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):oC(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var ok=(0,Z.I4)("li")(function(e){var t=e.isPrimaryPosition,o=void 0!==t&&t,n=e.border,r=e.theme;return(0,l.A)({height:"100%",position:"relative",gridColumn:o?"1 / 3":void 0,gridRow:o?"1 / 3":void 0,listStyleType:"none",border:n},"&:active::after",{backgroundColor:r.palette.light,opacity:.25,content:'" "',display:"block",width:"100%",height:"100%",position:"absolute",bottom:0,top:0,left:0,pointerEvents:"none"})});function oT(e){var t,o=(0,Z.DP)(),n=e.isPrimaryPosition?"2px":"1px";return(0,b.jsx)(ok,oP(oP({border:"".concat(n," solid ").concat(null==(t=o.steps)?void 0:t.photoUpload.borderColor)},e),{},{children:e.children}))}var oM=o(42156),oD=o(72),oE={"image/jpeg":[],"image/jpg":[],"image/gif":[],"image/png":[],"image/bmp":[]},oB=function(e){return e[e.Unknown=0]="Unknown",e[e.Duplicate=1]="Duplicate",e[e.AtMaxAllowed=2]="AtMaxAllowed",e[e.FailedFetchUrl=3]="FailedFetchUrl",e[e.FailedAddCaption=4]="FailedAddCaption",e[e.SizeInvalid=5]="SizeInvalid",e[e.TypeInvalid=6]="TypeInvalid",e[e.NoPhotos=7]="NoPhotos",e[e.FacebookDuplicate=8]="FacebookDuplicate",e}({}),o_=o(72885),oL=o.n(o_),oI=function(e){return new Promise(function(t,o){try{var n=function(o){var n=new FileReader;n.onload=function(e){var n,r=null==(n=e.target)?void 0:n.result,i=new Image;i.onload=function(){var e=i.width,n=i.height,r=document.createElement("canvas"),s=r.getContext("2d");if(o>4&&o<9?(r.width=n,r.height=e):(r.width=e,r.height=n),s){switch(o){case 2:s.transform(-1,0,0,1,e,0);break;case 3:s.transform(-1,0,0,-1,e,n);break;case 4:s.transform(1,0,0,-1,0,n);break;case 5:s.transform(0,1,1,0,0,0);break;case 6:s.transform(0,1,-1,0,n,0);break;case 7:s.transform(0,-1,-1,0,n,e);break;case 8:s.transform(0,-1,1,0,0,e)}s.drawImage(i,0,0)}t(r.toDataURL("image/jpeg",1)),r=null},i.src=r&&r.toString()||""},n.readAsDataURL(e)},r=new FileReader;r.onload=function(e){var t,o=null==(t=e.target)?void 0:t.result;if(!o||!(o instanceof ArrayBuffer))return n(-2);var r=new DataView(o);if(65496!==r.getUint16(0,!1))return n(-2);for(var i=r.byteLength,s=2;s<i;){var a=r.getUint16(s,!1);if(s+=2,65505===a){if(0x45786966!==r.getUint32(s+=2,!1))return n(-1);var l=18761===r.getUint16(s+=6,!1);s+=r.getUint32(s+4,l);var c=r.getUint16(s,l);s+=2;for(var d=0;d<c;d++)if(274===r.getUint16(s+12*d,l))return n(r.getUint16(s+12*d+8,l))}else if((65280&a)!=65280)break;else s+=r.getUint16(s,!1)}return n(-1)},r.readAsArrayBuffer(e)}catch(e){o(e)}})},oN=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3;return new Promise(function(n,i){r||(r=oL()({features:["js","wasm"]}));var s,a=new Image,l=(s=(0,I.A)(R().mark(function s(){var l,c,d,u;return R().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(s.prev=0,l=a.height,c=a.width,!(l<t&&c<o)){s.next=6;break}return n(e),s.abrupt("return");case 6:return d=document.createElement("canvas"),(u=l/c)>1&&l>t?c=(l=t)/u:u<=1&&c>o&&(l=(c=o)*u),d.height=l,d.width=c,s.next=13,r.resize(a,d,{unsharpAmount:80,unsharpRadius:.6,unsharpThreshold:2});case 13:d?(n(d.toDataURL("image/jpeg",1)),d=null):i(Error("error creating canvas")),s.next=19;break;case 16:s.prev=16,s.t0=s.catch(0),i(s.t0);case 19:case"end":return s.stop()}},s,null,[[0,16]])})),function(){return s.apply(this,arguments)});a.crossOrigin="anonymous",a.onload=l,a.onerror=function(){i(Error("error loading image"))},a.src=e})},oR=function(e){return new Promise(function(t,o){var n=new FileReader;n.onloadend=function(){t(n.result)},n.onerror=function(){o()},n.readAsDataURL(e)})},oU=function(e,t){var o;return e.map((o=(0,I.A)(R().mark(function e(o){var n;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n="",!t){e.next=13;break}return e.prev=3,e.next=6,oI(o);case 6:n=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:e.next=16;break;case 13:return e.next=15,oR(o);case 15:n=e.sent;case 16:return o.fileName=o.name,o.dataUrl=n,e.abrupt("return",o);case 21:return e.prev=21,e.t1=e.catch(0),e.abrupt("return",o);case 24:case"end":return e.stop()}},e,null,[[0,21],[3,9]])})),function(e){return o.apply(this,arguments)}))};let oF=function(e){var t,o=e.enablePreview,n=e.fixOrientation,r=e.maxPhotoSizeBytes,i=e.minPhotoSizeBytes,a=e.onErrorDroppedFiles,l=e.onFileErrors,c=e.onSuccessDroppedFiles,d=e.preHandleDroppedFilesCallback,u=e.readFileAsBase64Url,p=(0,s.useCallback)(function(e,t){a(e.map(function(e){return e.size<i||e.size>
1r?e.errorType=oB.SizeInvalid:e.errorType=oB.TypeInvalid,e}),t)},[r,i,a]),f=(0,s.useCallback)((t=(0,I.A)(R().mark(function e(t){var o;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t,!u){e.next=5;break}return e.next=4,Promise.all(oU(t,n));case 4:o=e.sent;case 5:c(o);case 6:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),[n,c,u]);return{onDrop:(0,s.useCallback)(function(e,t){var n,r=t.map(function(e){return e.file}),i=(n=[],t.forEach(function(e){var t=e.errors;n.push.apply(n,(0,op.A)(t))}),n);d&&d(e,r),o&&function(e){try{e.forEach(function(e){Object.assign(e,{preview:URL.createObjectURL(e)})})}catch(e){}}(e),t&&t.length>0&&(p(r,e.length>0),i&&l(i)),e&&e.length>0&&f(e)},[o,f,p,l,d])}};var oz=["acceptedFiles","open"];function oH(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function oG(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?oH(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):oH(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}let oW=function(e){var t=e.acceptedFileTypes,o=e.disabled,n=e.enablePreview,r=e.fixOrientation,i=e.maxPhotoSizeBytes,a=void 0===i?0xa00000:i,l=e.minPhotoSizeBytes,c=void 0===l?1e3:l,d=e.maxFiles,u=e.onDrop,p=e.onErrorDroppedFiles,f=e.onFileErrors,m=e.onSuccessDroppedFiles,g=e.preHandleDroppedFilesCallback,h=e.preventDropOnDocument,b=e.readFileAsBase64Url,y=oF({enablePreview:void 0!==n&&n,fixOrientation:void 0!==r&&r,maxPhotoSizeBytes:a,minPhotoSizeBytes:c,onErrorDroppedFiles:p,onFileErrors:f,onSuccessDroppedFiles:m,preHandleDroppedFilesCallback:g,readFileAsBase64Url:void 0===b||b}).onDrop,v=(0,oD.VB)({accept:void 0===t?oE:t,disabled:void 0!==o&&o,maxFiles:d,maxSize:a,minSize:c,noClick:!0,onDrop:y,preventDropOnDocument:void 0!==h&&h}),w=v.acceptedFiles,x=v.open,O=(0,oA.A)(v,oz),j=(0,s.useCallback)(function(){x&&x(),u()},[u,x]);return oG(oG({acceptedFiles:w},O),{},{onClick:j})};var oV=["isPrimaryPosition","position"];function oq(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function oY(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?oq(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):oq(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function oK(e){var t,o,n,r=e.isPrimaryPosition,i=e.position,s=(0,oA.A)(e,oV),a=(0,Z.DP)(),l=oW(oY(oY({},s),{},{disabled:!1})),d=l.getRootProps,u=l.getInputProps,p=l.onClick,g=oY(oY({},d()),{},{onClick:void 0});return(0,b.jsx)(oT,{isPrimaryPosition:r,children:(0,b.jsxs)(oM.default,oY(oY({},g),{},{id:r?"file-upload":void 0,htmlFor:"photo-to-upload-".concat(i),children:[(0,b.jsx)("input",oY(oY({},u()),{},{name:r?"file-upload":void 0,id:"photo-to-upload-".concat(i),onClick:p})),r?(0,b.jsxs)(f(),{display:"flex",flexDirection:"column",center:!0,children:[(0,b.jsx)(e3.default,{size:10,color:null==(t=a.steps)?void 0:t.photoUpload.foregroundColor,name:"photo"}),(0,b.jsx)(m.Ay,{as:"b",bold:!0,typography:"legal",color:null==(o=a.steps)?void 0:o.photoUpload.foregroundColor,children:(0,b.jsx)(c.A,oY({},oX.addAFrontFacingPhoto))})]}):(0,b.jsxs)(f(),{center:!0,children:[(0,b.jsx)(t2.default,{children:(0,b.jsx)(c.A,oY({},oX.addAFrontFacingPhoto))}),(0,b.jsx)(e3.default,{size:5,color:null==(n=a.steps)?void 0:n.photoUpload.foregroundColor,name:"plus"})]})]}))})}var oX=(0,d.YK)({addAFrontFacingPhoto:{id:"components/flows/collins/steps/PhotoUpload/photo-add/PhotoAdd:addAFrontFacingPhoto",description:"add multiple photos",defaultMessage:"Add a front-facing photo"}}),oJ=["file"];function oZ(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function o$(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?oZ(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):oZ(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var oQ=function(e){var t=3;switch(e){case F.Lo.UPWARD:case F.Lo.BLK:case F.Lo.CHISPA:t=1}return t},o0=function(e,t){var o=Array(oQ(t)).fill(null),n=oQ(t);if(!e)return(0,op.A)(o);var r=[].concat((0,op.A)(e),(0,op.A)(o)).slice(0,n);return(0,op.A)(r)},o1=function(e){var t=e.file,o=(0,oA.A)(e,oJ);return o$(o$({},o),{},{caption:o.caption||"",fileName:t.fileName?t.fileName:"",data:t.dataUrl||"",photoImageSource:o.photoImageSource?o.photoImageSource:1})};let o2=function(e){var t=e.flowType,o=e.onUploadPhotoData,n=e.photosData,r=e.siteCode,i=(0,G.z1)().logToActivityEvent,a=oQ(r),l=(0,s.useState)(),c=l[0],d=l[1],u=(0,s.useState)(function(){return!n||n.length>=1}),p=u[0],f=u[1],m=(0,s.useState)(o0(n,r)),g=m[0],h=m[1];(0,s.useEffect)(function(){n&&(h(o0(n,r)),f(n.length>=1))},[n]);var b=function(e){i("/registration/".concat(t,"/photo-upload/add-photo-success")),o(e.map(function(e){return o1(e)}))};return{maxPhotosToShow:a,onErrorDroppedFiles:function(e){e.length>3||(e.forEach(function(e){e.errorType===oB.SizeInvalid?i("/registration/".concat(t,"/photo-upload/error/invalid-size")):e.errorType===oB.TypeInvalid?i("/registration/".concat(t,"/photo-upload/error/invalid-file-type")):i("/registration/".concat(t,"/photo-upload/error/unknown"))}),d({errorHeading:o5.errorSomePhotosNotUpload,errorMessage:o5.bothFileSizeAndTypeError}))},onFileErrors:function(e){e[0].code===oD.O4.TooManyFiles&&(i("/registration/".concat(t,"/photo-upload/error/too-many-files")),d({errorHeading:o5.errorTooManyFiles,errorMessage:o5.tooManyFilesError}))},onMultiPhotoUpload:b,onSuccessDroppedFiles:function(e){e.length>0&&b(e.map(function(e){return{caption:"",file:e,isPrimary:!1,photoImageSource:1}}))},onResetErrors:function(){d(void 0)},photos:g,photoUploadError:!1,photoUploadErrorMessage:null,photoUploadLoading:!1,hasMinimumUploads:p,error:c}};var o5=(0,d.YK)({errorSomePhotosNotUpload:{id:"components/flows/collins/steps/PhotoUpload/hooks/usePhotoUploadLayout/usePhotoUploadLayout:errorHeading",description:"photo upload failure message",defaultMessage:"Some photos didn't upload."},bothFileSizeAndTypeError:{id:"components/flows/collins/steps/PhotoUpload/hooks/usePhotoUploadLayout/usePhotoUploadLayout:bothFileSizeAndTypeError",description:"error messaging when there are photos with wrong size and wrong type",defaultMessage:"Check that all photos are between 1KB and 10MB and are a common image type (gif/jpg/png)."},errorTooManyFiles:{id:"components/flows/collins/steps/PhotoUpload/hooks/usePhotoUploadLayout/usePhotoUploadLayout:errorHeading",description:"photo upload that no files uploaded",defaultMessage:"Too many photos selected."},tooManyFilesError:{id:"components/flows/collins/steps/PhotoUpload/hooks/usePhotoUploadLayout/usePhotoUploadLayout:tooManyFilesError",description:"error messaging when there are too many files selected",defaultMessage:"Please select up to three photos."}});function o4(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function o3(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o4(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o4(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var o6=function(){var e=(0,I.A)(R().mark(function e(){var t;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.A.getUserPhotos();case 2:return t=e.sent.data,e.abrupt("return",t);case 5:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),o8=function(){var e=(0,I.A)(R().mark(function e(t){var o;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.A.postUserPhotos(t);case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),o7=function(){var e=(0,I.A)(R().mark(function e(t){var o;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.A.removeUserPhoto(t);case 2:return o=e.sent.data,e.abrupt("return",o);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),o9=o(97927),ne=o(62679);function nt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}let no=function(e){var t=e.isPrimaryPosition,o=e.photoUri,n=e.onRemoveEditedPhoto;return(0,b.jsxs)(oT,{isPrimaryPosition:t,children:[(0,b.jsx)(ne.Ay,{src:o,imageFit:"cover",height:"100%",width:"100%"}),(0,b.jsxs)(nr,{onClick:n,shape:"circle",color:"core1_100",children:[(0,b.jsx)(t2.default,{children:(0,b.jsx)(c.A,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?nt(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nt(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},nn.deletePhoto))}),(0,b.jsx)(e3.default,{"aria-hidden":!0,size:3,color:"light",name:"close"})]})]})};var nn=(0,d.YK)({deletePhoto:{id:"components/flows/collins/steps/PhotoUpload/photo-image/PhotoImage:deletePhoto",description:"delete this photo button",defaultMessage:"Delete this photo"}}),nr=(0,Z.I4)(t1.Ay)(i||(i=(0,o9.A)(["\n  position: absolute;\n  padding: 0;\n  height: 24px;\n  width: 24px;\n  right: -6px;\n  top: -6px;\n"]))),ni=o(32721),ns=o(21427),na=function(e){for(var t=[],o=0;o<e;o++)t.push({isUploading:!0,dataUrl:""});return t};function nl(e){var t=e.total,o=e.completed,n=o.length,r=(0,s.useMemo)(function(){var e=[];return n&&n>0&&o.map(function(t){e.push({isUploading:!1,dataUrl:t.dataUrl})}),[].concat(e,(0,op.A)(na(t))).slice(0,t)},[o,n,t]);return(0,b.jsx)(f(),{display:"flex",flexDirection:"row",marginBottom:4,justifyContent:"center",alignItems:"flex-end",children:r.map(function(e,t){var o=e.isUploading?64:76;return(0,b.jsx)(f(),{center:!0,marginX:2,height:o,width:o,backgroundColor:"gray_5_opaque",children:e.isUploading?(0,b.jsx)(tY.default,{size:"xxsmall"}):(0,b.jsx)(ne.Ay,{src:e.dataUrl,imageFit:"cover",height:"100%",width:"100%"})},t)})})}var nc=o(59412);function nd(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nu(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nd(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nd(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function np(e){var t=e.apiError,o=e.error,n=e.onCloseModal,r=e.totalPhotoUploads,i=e.totalUploadsComplete,l=e.uploadingPhotos,d=(0,G.z1)().logToActivityEvent,u=(0,a.Ww)().flowType,p=(0,s.useState)(!0),g=p[0],h=p[1];return(0,G.Wl)("/registration/".concat(u,"/photo-upload/upload-modal/view")),(0,b.jsx)(nf,{"aria-describedby":"photo-uploading-modal-body","aria-labelledby":"photo-uploading-modal",isOpen:g,onClose:function(){d("/registration/".concat(u,"/photo-upload/upload-modal/close")),h(!1),n&&n()},hasOverlay:!0,preventOverlayClose:!0,triggerElementRef:{current:document.body},hasCloseButton:!1,closeButtonLabel:"",children:(0,b.jsxs)(f(),{textAlign:"center",children:[r>1?(0,b.jsxs)("div",{children:[(0,b.jsx)(tc.Ay,{priority:1,typography:"smallBody",children:i>0?(0,b.jsx)(c.A,nu({values:{total:r,completed:i}},nm.multiUploadHeading)):(0,b.jsx)(c.A,nu({},nm.noUploadsCompletedHeading))}),(0,b.jsx)(f(),{marginTop:4,children:(0,b.jsx)(nl,{total:r,completed:l})}),(0,b.jsx)(f(),{marginTop:3,marginBottom:6,children:(0,b.jsx)(m.Ay,{typography:"smallBody",children:(0,b.jsx)(c.A,nu(nu({},nm.uploadCopy),{},{values:{br:(0,b.jsx)("br",{})}}))})})]}):(0,b.jsxs)("div",{children:[(0,b.jsx)(tY.default,{}),(0,b.jsx)(tc.Ay,{bold:!0,priority:1,typography:"heading3",children:(0,b.jsx)(c.A,nu({},nm.uploadHeading))}),(0,b.jsx)(f(),{marginTop:3,marginBottom:6,children:(0,b.jsx)(m.Ay,{typography:"smallBody",children:(0,b.jsx)(c.A,nu(nu({},nm.uploadCopy),{},{values:{br:(0,b.jsx)("br",{})}}))})})]}),o&&(0,b.jsx)(f(),{marginBottom:6,children:(0,b.jsx)(nc.x,{heading:o.errorHeading,message:o.errorMessage})}),t&&(0,b.jsx)(f(),{marginBottom:6,children:(0,b.jsx)(nc.x,{apiError:t})})]})})}var nf=(0,Z.I4)(ns.Ay)(function(){return{width:"100%",maxWidth:327}}),nm=(0,d.YK)({multiUploadHeading:{id:"components/flows/collins/steps/PhotoUpload/photo-upload-progress-modal/PhotoUploadProgressModal:multiUploadHeading",description:"title heading for multiple photo loading modal",defaultMessage:"Uploaded {completed} of {total}"},noUploadsCompletedHeading:{id:"components/flows/collins/steps/PhotoUpload/photo-upload-progress-modal/PhotoUploadProgressModal:noUploadsCompletedHeading",description:"title heading for multiple photo loading modal",defaultMessage:"Uploading photos..."},uploadHeading:{id:"components/flows/collins/steps/PhotoUpload/photo-upload-progress-modal/PhotoUploadProgressModal:uploadHeading",description:"title heading for loading modal",defaultMessage:"Photo uploading..."},uploadCopy:{id:"components/flows/collins/steps/PhotoUpload/photo-upload-progress-modal/PhotoUploadProgressModal:uploadCopy",description:"body copy for loading modal",defaultMessage:"Times will vary based on{br}your network connection."},uploadSkipUploading:{id:"components/flows/collins/steps/PhotoUpload/photo-upload-progress-modal/PhotoUploadProgressModal:uploadSkipUploading",description:"skip cta for loading modal",defaultMessage:"Skip for now"}});function ng(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nh(e){var t=e.apiError,o=e.isSubmitting,n=e.isUploading,r=e.onDeletePhoto,i=e.onSubmit,s=e.onUploadPhotoData,d=e.photosData,u=e.siteCode,p=e.totalPhotoUploads,m=e.totalUploadsComplete,h=e.uploadingPhotos,y=(0,G.z1)().logToActivityEvent,v=(0,a.Ww)().flowType,w=o2
1({apiError:t,onUploadPhotoData:s,photosData:d,flowType:v,siteCode:u}),x=w.error,O=w.hasMinimumUploads,j=w.maxPhotosToShow,S=w.onErrorDroppedFiles,A=w.onFileErrors,C=w.onResetErrors,P=w.onSuccessDroppedFiles,k=w.photos;return(0,b.jsxs)(ni.FocusTrapProvider,{children:[(0,b.jsx)(oS,{numPhotos:j,children:null==k?void 0:k.map(function(e,t){var o=0===t;return e?(0,b.jsx)(no,{isPrimaryPosition:o,onRemoveEditedPhoto:function(){C(),r(e.id)},photoUri:e.uri},t):(0,b.jsx)(oK,{position:t,acceptedFileTypes:oE,maxPhotoSize:0xa00000,minPhotoSize:1e3,isPrimaryPosition:o,onDrop:function(){C(),y("/registration/".concat(v,"/photo-upload/add"))},onErrorDroppedFiles:S,onSuccessDroppedFiles:P,onFileErrors:A,maxFiles:3},t)})}),!n&&x&&(0,b.jsx)(f(),{marginTop:3,children:(0,b.jsx)(nc.x,{heading:x.errorHeading,message:x.errorMessage})}),!n&&t&&(0,b.jsx)(f(),{marginTop:3,children:(0,b.jsx)(nc.x,{apiError:t})}),(0,b.jsx)(f(),{marginTop:14,children:(0,b.jsx)(g.Je,{disabled:!!o||!O||!!n,onClick:i,type:"button",children:(0,b.jsx)(c.A,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ng(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ng(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},nb.advanceBtnContinueText))})}),n&&(0,b.jsx)(np,{totalPhotoUploads:p,totalUploadsComplete:m,uploadingPhotos:h,error:x,apiError:t,onCloseModal:C})]})}var nb=(0,d.YK)({advanceBtnContinueText:{id:"components/flows/collins/steps/PhotoUpload/photo-upload-layout/PhotoUploadLayout:advanceBtnContinueText",description:"add multiple photos",defaultMessage:"Continue"}});function ny(e){var t,o,n,r,i,l,c,d,u,p,f,m,g,h,y,v,w,x,O,j,S,A,C,P,k=e.onSubmit,T=e.showLogo,M=e.isSubmitting,D=(0,a.Ww)(),E=D.stepCount,B=D.step,_=D.flowType,L=(0,a.SF)().siteCode,N=(o=(t=(0,s.useState)())[0],n=t[1],r=(0,a.Ww)().flowType,l=(i=(0,s.useState)(null))[0],c=i[1],u=(d=(0,s.useState)(0))[0],p=d[1],m=(f=(0,s.useState)(!1))[0],g=f[1],y=(h=(0,s.useState)(0))[0],v=h[1],w=(0,s.useRef)([]),x=(0,G.z1)().logToActivityEvent,(0,s.useEffect)(function(){j()},[]),O=(0,I.A)(R().mark(function e(){return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o6().then(function(e){e&&n([].concat((0,op.A)(e.photos),(0,op.A)(e.pendingPhotos)))});case 1:case"end":return e.stop()}},e)})),j=function(){return O.apply(this,arguments)},S=function(e,t){e===t&&j().then(function(){g(!1),v(0),w.current=[],x("/registration/".concat(r,"/photo-upload/upload-modal/close"))})},A=(0,I.A)(R().mark(function e(t){var o;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=0,g(!0),c(null),p(t.length),t.forEach(function(e){oN(e.data||"").then(function(n){o8([o3(o3({},e),{},{data:n.split(",")[1]})]).then(function(n){var r;if(v(o+=1),null!=n&&null!=(r=n.data)&&r.success){var i={dataUrl:e.data||""};w.current.push(i)}else c(n.error);S(o,t.length)})})});case 5:case"end":return e.stop()}},e)})),C=function(e){return A.apply(this,arguments)},{apiError:l,isUploading:m,onDeletePhoto:(P=(0,I.A)(R().mark(function e(t){return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o7(t).then(function(e){null!=e&&e.success&&j()});case 1:case"end":return e.stop()}},e)})),function(e){return P.apply(this,arguments)}),onUploadPhotoData:C,photosData:o,totalPhotoUploads:u,totalUploadsCompleted:y,uploadingPhotos:w.current}),U=N.apiError,F=N.photosData,z=N.onUploadPhotoData,H=N.onDeletePhoto,W=N.isUploading,V=N.uploadingPhotos,q=N.totalPhotoUploads,Y=N.totalUploadsCompleted;return(0,G.Wl)("/registration/".concat(_,"/photo-upload/view")),(0,b.jsxs)(s.Fragment,{children:[(0,b.jsx)(oO,{showLogo:void 0!==T&&T,siteCode:L}),(0,b.jsx)(nh,{apiError:U,isSubmitting:M,isUploading:W,onDeletePhoto:H,onSubmit:function(){k(B,E,null)},onUploadPhotoData:z,photosData:F,totalPhotoUploads:q,totalUploadsComplete:Y,uploadingPhotos:V,siteCode:L})]})}var nv=o(93522);function nw(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}var nx=function(){var e=(0,I.A)(R().mark(function e(t){var o;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.A.getSelfEssayById({attributeType:t});case 2:return o=e.sent,e.abrupt("return",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?nw(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nw(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},o));case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),nO=function(){var e=(0,I.A)(R().mark(function e(t){var o;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.A.postSelfEssay(t);case 2:return o=e.sent,e.abrupt("return",{data:o.data,error:o.error});case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();function nj(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nS(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nj(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nj(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nA(e){var t,o,n,r,i,d,u,p,y,v,w,x,O,j,S=e.attributeId,A=e.isSubmitting,C=e.optional,P=e.showLogo,k=e.step,T=e.onSubmit,M=(0,h.A)(),D=(0,a.Ww)(),E=D.stepCount,B=D.flowType,_=(0,a.RR)({onSubmit:T,step:k,stepCount:E}
1).handleOnSubmit,L=(0,s.useState)(!0),I=L[0],N=L[1],R=(0,Z.DP)(),U=(o=(t={attributeId:S,flowType:B}).attributeId,n=t.flowType,i=(r=(0,s.useState)())[0],d=r[1],p=(u=(0,s.useState)())[0],y=u[1],v=(0,G.z1)().logToActivityEvent,(0,s.useEffect)(function(){w()},[]),w=function(){nx(o).then(function(e){var t=e.error,o=e.data;t?y(t.message):null!=o&&o.items&&o.items.length>0&&(d(o.items[0].text),y(void 0))})},{essay:i,essayError:p,setEssay:d,handleFetchSelfEssay:w,handleUpdateSelfEssay:function(){i&&(y(void 0),nO({text:i,attributeType:o}).then(function(){v("/registration/".concat(n,"/selfEssay/submit"))}))}}),F=U.essay,z=U.essayError,H=U.handleUpdateSelfEssay,W=U.setEssay,V=(null==F?void 0:F.length)||0;return(0,G.Wl)("/registration/".concat(B,"/selfEssay")),(0,s.useEffect)(function(){((null==F?void 0:F.length)||0)>=1?N(!1):N(!0)},[F,I]),(0,b.jsxs)(f(),{children:[(0,b.jsx)(g.dO,{showLogo:void 0===P||P,title:(0,b.jsx)(c.A,nS({},nC.title))}),(0,b.jsx)(m.Ay,{typography:"smallBody",color:null==(x=R.steps)?void 0:x.selfEssay.textColor,children:(0,b.jsx)(c.A,nS({},nC.info))}),(0,b.jsxs)(f(),{marginTop:4,center:!0,children:[(0,b.jsx)(nv.Ay,{autoFocus:!0,autoResize:!0,name:"self-essay","data-uia":"textarea:selfEssay","data-testid":"textarea:selfEssay",placeholder:M.formatMessage(nS({},nC.placeholder)),width:"100%",minHeight:75,maxHeight:300,onChange:function(e){W(e.target.value)},maxLength:500,value:F,className:(0,Z.AH)((0,l.A)({},":hover:focus",{background:R.palette.light}))}),z&&(0,b.jsx)(f(),{marginTop:3,children:(0,b.jsx)(nc.x,{apiError:z})})]}),(0,b.jsx)(f(),{textAlign:"right",paddingRight:2,children:(0,b.jsxs)(m.Ay,{typography:"meta",color:I?"functional3_100":null==(O=R.steps)?void 0:O.selfEssay.textColor,children:[V,"/",500]})}),(0,b.jsxs)(f(),{height:125,display:"flex",flexDirection:"column",justifyContent:"space-between",marginTop:14,children:[(0,b.jsx)(g.Je,{disabled:!!A||!!I,onClick:function(){H(),_()},type:"button",children:(0,b.jsx)(c.A,nS({},nC.advanceBtnContinueText))}),(void 0===C||C)&&(0,b.jsx)(t1.Ay,{size:"large",onClick:_,minimal:!0,fullWidth:!1,color:null==(j=R.steps)?void 0:j.selfEssay.textColor,children:(0,b.jsx)(c.A,nS({},nC.skip))})]})]})}var nC=(0,d.YK)({title:{id:"components/flows/collins/steps/SelfEssay/SelfEssay:title",description:"title of About Me page",defaultMessage:"About me"},advanceBtnContinueText:{id:"components/flows/collins/steps/SelfEssay/SelfEssay:advanceBtnContinueText",description:"save essay and continue",defaultMessage:"Continue"},skip:{id:"components/flows/collins/steps/SelfEssay/SelfEssay:skip",description:"skip adding self essay",defaultMessage:"skip"},placeholder:{id:"components/flows/collins/steps/SelfEssay/SelfEssay:placeholder",description:"placeholder for text input",defaultMessage:"A little bit about you..."},info:{id:"components/flows/collins/steps/SelfEssay/SelfEssay:info",description:"info for About me page",defaultMessage:"Stand out from the crowd with a bio. Tell others a little bit about yourself and show off your personality!"}}),nP=o(61083),nk=function(){var e=(0,I.A)(R().mark(function e(t){var o;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.A.getSelfAttributeByid(t);case 2:return o=e.sent.data,e.abrupt("return",o);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),nT=function(){var e=(0,I.A)(R().mark(function e(t){var o;return R().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.A.postSelfAttribute(t);case 2:return o=e.sent.data,e.abrupt("return",o);case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();function nM(e){var t=e.attributeId,o=(0,s.useState)([]),n=o[0],r=o[1],i=(0,s.useState)(!0),a=i[0],l=i[1];(0,s.useEffect)(function(){c()},[]);var c=function(){l(!0),nk(t).then(function(e){if(l(!1),null!=e&&e.items&&e.items.length>0){var o=e.items.find(function(e){return e.attributeType===t});r((null==o?void 0:o.answerIds)||[])}})};return{currentAnswers:n,setCurrentAnswers:r,handleFetchProfileAttribute:c,handleUpdateProfileAttribute:function(e){nT({answerIds:e,attributeType:t})},isLoading:a}}function nD(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}var nE=(0,Z.I4)(f())(function(e){return{background:e.theme.background,position:"sticky"}});function nB(e){var t=e.attributeId,o=e.answerIds,n=e.showLogo,r=e.onSubmit,i=e.step,s=e.tracking,c=(0,a.Ww)().stepCount,d=(0,G.z1)().logToActivityEvent,u=nM({attributeId:t}),p=u.currentAnswers,f=u.setCurrentAnswers,m=u.handleUpdateProfileAttribute,y=(0,h.A)(),v=(0,a.RR)({onSubmit:r,step:i,stepCount:c}).handleOnSubmit;(0,G.Wl)("".concat(s,"/view"));var w=(0,nP.s7)(o),x=y.formatMessage(nP.PX[t]);return(0,b.jsxs)("div",{children:[(0,b.jsx)(nE,{position:"absolute",top:"none",children:(0,b.jsx)(g.dO,{showLogo:void 0===n||n,title:x})}),o.map(function(e){var t=w.find(function(t){return(null==t?void 0:t.attrId)===e}),o=y.formatMessage(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?nD(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nD(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},t)),n=!!p.find(function(t){return t===e});return(0,b.jsx)(g.m_,{"data-testid":"selfAttribute:show:".concat(o.toLowerCase()),disabled:!1,isSelected:n,onClick:function(){f([e]),m([e]),v(),d("".concat(s,"/answer"))},children:o},e)})]})}var n_=o(63661);function nL(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nI(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nL(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nL(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nN=(0,Z.I4)(f())(function(e){var t=e.theme;return{background:t.background,position:"sticky",zIndex:t.zIndex.overlay}}),nR=(0,Z.I4)(n_.Ay)(function(e){var t,o,n=e.checked,r=e.disabled,i=e.theme,s=n?null==(t=i.registrationComponents)?void 0:t.optionButton.selectedBorderColor:null==(o=i.registrationComponents)?void 0:o.optionButton.borderColor;return r&&(s=i.palette.gray_25_opaque),(0,l.A)((0,l.A)((0,l.A)({"span:first-of-type":{display:"none"},borderRadius:i.radii.round,border:"1px solid",borderColor:s,backgroundColor:n?i.palette.core1_100:i.background,color:n?"".concat(i.palette.light," !important"):"".concat(i.palette.dark," !important"),fontSize:"16px",fontWeight:400,height:48,marginBottom:i.space.smedium,paddingTop:0,paddingBottom:0,paddingLeft:50,paddingRight:50,textAlign:"center",transitionDuration:"0.2s",transitionProperty:"color, background-color, text-shadow, border-color",boxShadow:"none"},":hover, :focus",{"span:first-of-type":{color:"".concat(i.palette.dark," !important")}}),"input:focus + span",{}),"input:focus ~ span, input:hover ~ span",{color:n?"".concat(i.palette.light," !important"):"".concat(i.palette.dark," !important")})}),nU=(0,Z.I4)(f())(function(){return{height:"100%"}});function nF(e){var t,o=e.attributeId,n=e.answerIds,r=e.showLogo,i=e.onSubmit,d=e.step,p=e.tracking,y=(0,u.useTheme)(),v=(0,a.Ww)().stepCount,w=(0,G.z1)().logToActivityEvent,x=nM({attributeId:o}),O=x.currentAnswers,j=x.setCurrentAnswers,S=x.handleUpdateProfileAttribute,A=x.isLoading,C=(0,h.A)(),P=(0,s.useState)(""),k=P[0],T=P[1],M=(0,s.useState)(),D=M[0],E=M[1],B=(0,a.RR)({onSubmit:i,step:d,stepCount:v}).handleOnSubmit,_=(0,nP.s7)(n),L=n_.Ay.Group,I=O.length>=2;(0,G.Wl)("".concat(p,"/view")),(0,s.useEffect)(function(){var e="";O.map(function(t,o){var n=_.find(function(e){return(null==e?void 0:e.attrId)===t});if(n){var r=C.formatMessage(nI({},n));0===o&&O.length>1?e=e+r+", ":e+=r,T(e)}}),0===O.length&&T("")},[_,O,C]),(0,s.useEffect)(function(){A||E(null==O?void 0:O.map(function(e){return e.toString()}))},[O,A]);var N=function(e){O.push(e),j(O.slice(-2))},R=function(e){j(O.filter(function(t){return t!==e}))},U=C.formatMessage(nP.PX[o]);return(0,b.jsxs)("div",{children:[(0,b.jsx)(nN,{top:"none",children:(0,b.jsx)(g.dO,{showLogo:void 0===r||r,title:(0,b.jsxs)(f(),{width:"100%",paddingTop:5,children:[U,(0,b.jsx)(g.pd,{readOnly:!0,type:"text",inputMode:"text",placeholder:"Roots","data-testid":"selfAttribute-roots",className:(0,Z.AH)((0,l.A)({borderBottom:"1px solid ".concat(null==(t=y.steps)?void 0:t.phoneAuth.borderColor),width:"100%"},":hover:focus",{background:y.background})),customValue:k}),(0,b.jsx)(f(),{paddingTop:1,children:(0,b.jsx)(m.Ay,{typography:"legal",style:{letterSpacing:.5},children:(0,b.jsx)(c.A,nI({},nz.metaText))})})]})})}),!A&&D&&(0,b.jsx)(nU,{paddingBottom:15,children:(0,b.jsx)(L,{name:"answerIds-group",defaultSelected:D,onChange:function(e){if("checked"in e.target&&"value"in e.target){var t=parseInt(e.target.value);e.target.checked?N(t):R(t)}},children:function(e){var t=e.register;return n.map(function(e){var o=_.find(function(t){return(null==t?void 0:t.attrId)===e}),n=C.formatMessage(nI({},o)),r=O.includes(e);return t((0,b.jsx)(nR,{id:"selfAttribute:show:".concat(n.toLowerCase()),"data-testid":"selfAttribute:show:".concat(n.toLowerCase()),disabled:I&&!r,value:e.toString(),children:n},e))})}})}),(0,b.jsx)(f(),{backgroundColor:"light",position:"sticky",bottom:"none",justifyContent:"flex-end",width:"100%",paddingY:4,children:(0,b.jsx)(g.Je,{disabled:function(){if(0===O.length)return!0}(),onClick:function(){S(O),w("".concat(p,"/answer")),B()},children:(0,b.jsx)(c.A,nI({},nz.affinityAdvanceBtnText))})})]})}var nz=(0,d.YK)({affinityAdvanceBtnText:{id:"components/flows/collins/steps/SelfAttribute/MultiSelectSelfAttribute/MultiSelectSelfAttribute:affinityAdvanceBtnText",description:"Continue",defaultMessage:"Continue"},metaText:{id:"components/flows/collins/steps/SelfAttribute/MultiSelectSelfAttribute/MultiSelectSelfAttribute:metaText",description:"meta text for the question",defaultMessage:"Select up to 2 Roots."}});function nH(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nG(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?nH(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nH(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nW=(0,Z.I4)(t1.Ay)(function(e){var t=e.theme;return{color:t.palette.core1_100,fontSize:t.fontSizes.small}});let nV=function(e){var t=e.onSubmit,o=e.handleSkipClick,n=(0,a.SF)().layout,r=(0,a.Ww)(),i=r.flowType,s=r.step,l=r.stepCount,d=(0,a.RR)({onSubmit:t,step:s,stepCount:l}).handleOnSubmit,u=(0,a.RR)({onSubmit:o,step:s,stepCount:l}).handleOnSubmit,p=n===z.BX.Desktop;return(0,G.Wl)("/registration/".concat(i,"/marketing-optins")),(0,b.jsx)("form",{onSubmit:d,children:(0,b.jsxs)(f(),{paddingBottom:p?"80px":"none",children:[(0,b.jsx)(g.dO,{showLogo:!0,title:(0,b.jsx)(c.A,nG({},nq.title))}),(0,b.jsx)(g.jL,{children:(0,b.jsx)(c.A,nG(nG({},nq.description),{},{values:{break:(0,b.jsx)("br",{})}}))}),(0,b.jsx)(f(),{display:"flex",flexDirection:"column",width:"100%",className:"animate-answer",children:(0,b.jsxs)(f(),{paddingTop:"large",display:"flex",flexDirection:"column",alignItems:"center",children:[(0,b.jsx)(g.Je,{width:p?"60%":"90%",disabled:!1,children:(0,b.jsx)(c.A,nG({},nq.acceptBtnText))}),(0,b.jsx)(f(),{marginTop:5,children:(0,b.jsx)(nW,{minimal:!0,disabled:!1,onClick:u,children:(0,b.jsx)(c.A,nG({},nq.declineBtnText))})})]})})]})})};var nq=(0,d.YK)({title:{id:"components/flows/collins/steps/Optins/Optins:title",description:"title of Events Optin page",defaultMessage:"How about helping you start a real story?"},description:{id:"components/flows/collins/steps/Optins/Optins:description",description:"describe what user signs in for",defaultMessage:"Receive offers and invitations to events near you to increase your chances of falling in love!{break}Interested?"},acceptBtnText:{id:"components/flows/collins/steps/Optins/Optins:acceptBtnText",description:"Accept",defaultMessage:"Accept"},declineBtnText:{id:"components/flows/collins/steps/Optins/Optins:declineBtnText",description:"Decline",defaultMessage:"Skip"}});function nY(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nK(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nY(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nY(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}let nX=function(e){var t=e.onSubmit,o=e.isSubmitting,n=e.postAccountError,r=e.isDesktop,i=(0,a.Ww)(),l=i.flowType,d=i.step,p=i.stepCount,h=(0,a.RR)({onSubmit:t,step:d,stepCount:p}).handleOnSubmit,y=(0,s.useState)(!1),v=y[0],w=y[1],x=(0,s.useState)(!1),O=x[0],j=x[1],S=(0,s.useState)(!1),A=S[0],C=S[1],P=(0,s.useState)(!1),k=P[0],T=P[1],M=(0,s.useState)([]),D=M[0],E=M[1],B=(0,u.useTheme)(),_=(0,s.useMemo)(function(){return v&&k},[v,k]);(0,s.useEffect)(function(){var e=(0,b.jsx)(c.A,nK(nK({},nJ.errorUserConsentUnchecked),{},{values:{brandName:B.branding.siteName}})),t=(0,b.jsx)(c.A,nK({},nJ.errorTermsAndConditionsUnchecked));A||O?A&&O?E([e,t]):A&&!O?E([e]):E([t]):E([])},[O,A]);var L=o||!_;return(0,G.Wl)("/registration/".concat(l,"/consent-optins")),(0,b.jsx)("form",{onSubmit:h,children:(0,b.jsxs)(f(),{display:"flex",flexDirection:"column",children:[(0,b.jsx)(g.dO,{showLogo:!0,title:(0,b.jsx)(c.A,nK({},nJ.title))}),(0,b.jsxs)(f(),{children:[(0,b.jsx)(g.Sc,{value:"isUserOfAge",checked:v,onChange:function(e){e.stopPropagation();var t=e.target.checked;w(t),j(!t)},id:"user-of-age",disabled:o,children:(0,b.jsx)(m.Ay,{typography:"smallBody",as:"div","data-testid":"text:termsAndConditions",children:(0,b.jsx)(c.A,nK(nK({},nJ.isOfAge),{},{values:{termsAndConditionsLink:(0,b.jsx)("a",{href:B.branding.termsOfUseUrl,target:"_blank",children:(0,b.jsx)(c.A,nK({},nJ.termsAndConditionsLink))}),privacyPolicyLink:(0,b.jsx)("a",{href:B.branding.privacyPolicyUrl,target:"_blank",children:(0,b.jsx)(c.A,nK({},nJ.privacyPolicyLink))}),cookiePolicyLink:(0,b.jsx)("a",{href:B.branding.cookiePolicyUrl,target:"_blank",children:(0,b.jsx)(c.A,nK({},nJ.cookiePolicyLink))}),rulesOnProfilesVisibilityLink:(0,b.jsx)("a",{href:B.branding.sharingLiquidityUrl,target:"_blank",children:(0,b.jsx)(c.A,nK({},nJ.rulesOnProfilesVisibilityLink))})}}))})}),(0,b.jsx)(g.Sc,{value:"hasDataConsent",checked:k,onChange:function(e){e.stopPropagation();var t=e.target.checked;T(t),C(!t)},id:"data-consent",disabled:o,children:(0,b.jsx)(m.Ay,{typography:"smallBody",as:"div","data-testid":"text:dataAndSafeMessageConsent",children:(0,b.jsx)(c.A,nK(nK({},nJ.dataAndSafeMessageConsent),{},{values:{sensitiveDataLink:(0,b.jsx)("a",{href:B.branding.sensitiveDataUrl,target:"_blank",children:(0,b.jsx)(c.A,nK({},nJ.sensitiveDataCTA))}),safeMessageFilterLink:(0,b.jsx)("a",{href:B.branding.safetyMonitoringUrl,target:"_blank",children:(0,b.jsx)(c.A,nK({},nJ.safeMessageFilterCTA))}),brandName:B.branding.siteName}}))})})]}),(0,b.jsx)(f(),{display:"flex",flexDirection:"column",alignSelf:"center",padding:+!r,paddingTop:8*!!r,children:(0,b.jsx)(g._U,{errors:n,consentErrors:D})}),(0,b.jsx)(f(),{display:"flex",flexDirection:"column",alignSelf:"center",paddingTop:r?8:1,width:r?"70%":"100%",children:(0,b.jsx)(g.Je,{disabled:L,width:"100%",children:(0,b.jsx)(c.A,nK({},nJ.createAccountCta))})})]})})};var nJ=(0,d.YK)({title:{id:"components/flows/collins/steps/Consents/ConsentsOptins:title",description:"title",defaultMessage:"Complete your registration."},isOfAge:{id:"components/flows/collins/steps/Consents/ConsentsOptins:isOfAge",description:"Asking user if is of age",defaultMessage:"I certify that I am over 18 and accept the {termsAndConditionsLink}. Learn about how we process your data in our {privacyPolicyLink}, {cookiePolicyLink} and our {rulesOnProfilesVisibilityLink}."},termsAndConditionsLink:{id:"components/flows/collins/steps/Consents/ConsentsOptins:termsAndConditionsLink",description:"terms and conditions cta text",defaultMessage:"Terms & Conditions"},privacyPolicyLink:{id:"components/flows/collins/steps/Consents/ConsentsOptins:privacyPolicyLink",description:"privacy policy cta text",defaultMessage:"Privacy Policy"},cookiePolicyLink:{id:"components/flows/collins/steps/Consents/ConsentsOptins:cookiePolicyLink",description:"cookie policy cta text",defaultMessage:"Cookie Policy"},rulesOnProfilesVisibilityLink:{id:"components/flows/collins/steps/Consents/ConsentsOptins:rulesOnProfilesVisibilityLink",description:"rules on profile visibility cta text",defaultMessage:"Rules on Profiles Visibility"},dataAndSafeMessageConsent:{id:"components/flows/collins/steps/Consents/ConsentsOptins:dataAndSafeMessageConsent",description:"Asking user for consent on sensitive data and use of safe message filter",defaultMessage:"I consent to the processing of my {sensitiveDataLink} and to the use of {safeMessageFilterLink} by {brandName} to provide me the service."},sensitiveDataCTA:{id:"components/flows/collins/steps/Consents/ConsentsOptins:sensitiveDataCTA",description:"sensitive data cta text",defaultMessage:"sensitive data"},safeMessageFilterCTA:{id:"components/flows/collins/steps/Consents/ConsentsOptins:safeMessageFilterCTA",description:"safe message filter cta text",defaultMessage:"Safe Message Filters"}
1,commercialOffers:{id:"components/flows/collins/steps/Consents/ConsentsOptins:commercialOffers",description:"user consent for commercial offers email",defaultMessage:"I would like to receive via email commercial offers relating to products or services provided by partners of {legalEntity}. {partnersLink} You may opt-out at any time in your settings."},partnersLink:{id:"components/flows/collins/steps/Consents/ConsentsOptins:partnersLink",description:"partners cta text",defaultMessage:"See our partners."},createAccountCta:{id:"components/flows/collins/steps/Consents/ConsentsOptins:createAccountCta",description:"create account cta text",defaultMessage:"Create my free account"},errorTermsAndConditionsUnchecked:{id:"components/flows/collins/steps/Consents/ConsentsOptins:errorTermsAndConditionsUnchecked",description:"terms and conditions unchecked",defaultMessage:"You must read and accept our terms and conditions to validate your registration."},errorUserConsentUnchecked:{id:"components/flows/collins/steps/Consents/ConsentsOptins:errorUserConsentUnchecked",description:"user concern unchecked",defaultMessage:"Without your consent, you cannot access the services of {brandName}."}});function nZ(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function n$(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nZ(Object(o),!0).forEach(function(t){(0,l.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nZ(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}let nQ=function(e){var t=e.isMobile,o=e.onSubmit,n=(0,h.A)(),r=(0,a.SF)().site,i=(0,Z.DP)(),l=(0,a.Ww)(),d=l.stepCount,u=l.step,p=function(e){o(u,d,e)};return(0,b.jsxs)(s.Fragment,{children:[(0,b.jsx)(g.dO,{showLogo:!0,title:n.formatMessage(n2.liquiditySharingHeader)}),(0,b.jsxs)(f(),{className:"animate-answer",display:"flex",flexDirection:"column",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(g.jL,{children:r.isOurtimeEU?(0,b.jsx)(c.A,n$({},n2.liquiditySharingBodyTextSenior)):(0,b.jsx)(c.A,n$({},n2.liquiditySharingBodyTextCore))}),(0,b.jsx)("a",{href:i.branding.sharingLiquidityUrl,target:"_blank",children:(0,b.jsx)(c.A,n$({},n2.helpCenterLinkEU))})]}),(0,b.jsxs)(f(),{paddingTop:"large",display:"flex",flexDirection:"column",alignItems:"center",marginTop:"xlarge",width:"100%",children:[(0,b.jsx)(n0,{onClick:function(){return p(!0)},size:"xlarge",isMobile:t,children:(0,b.jsx)(c.A,n$({},n2.optInTrueCtaText))}),(0,b.jsx)(f(),{marginTop:5,children:(0,b.jsx)(n1,{fullWidth:!0,minimal:!0,onClick:function(){return p(!1)},children:(0,b.jsx)(c.A,n$({},n2.optInFalseCtaText))})})]})]})]})};var n0=(0,Z.I4)(t1.Ay)(function(e){return{width:e.isMobile?"100%":"327px"}}),n1=(0,Z.I4)(t1.Ay)(function(e){var t=e.theme;return{color:t.palette.core1_100,fontSize:t.fontSizes.small}}),n2=(0,d.YK)({liquiditySharingHeader:{id:"components/flows/collins/steps/LiquiditySharing/LiquiditySharing:liquiditySharingHeader",description:"liquidity sharing header text",defaultMessage:"Increase your chances of finding that special someone"},liquiditySharingBodyTextCore:{id:"components/flows/collins/steps/LiquiditySharing/LiquiditySharing:liquiditySharingBodyTextCore",description:"liquidity sharing body text",defaultMessage:"Your profile will be visible to members of our dating services for the over 50s. Would you like to see more profiles and increase your chances of being contacted?"},liquiditySharingBodyTextSenior:{id:"components/flows/collins/steps/LiquiditySharing/LiquiditySharing:liquiditySharingBodyTextSenior",description:"liquidity sharing body text",defaultMessage:"Your profile will be visible to over 50s who are members of our general dating services. Would you like to see more profiles and increase your chances of being contacted?"},helpCenterLinkEU:{id:"components/flows/collins/steps/LiquiditySharing/LiquiditySharing:helpCenterLinkEU",description:"liquidity sharing more information link",defaultMessage:"More information"},optInTrueCtaText:{id:"components/flows/collins/steps/LiquiditySharing/LiquiditySharing:optInTrueCtaText",description:"liquidity sharing opt in cta text",defaultMessage:"Yes please"},optInFalseCtaText:{id:"components/flows/collins/steps/LiquiditySharing/LiquiditySharing:optInFalseCtaText",description:"liquidity sharing opt out cta text",defaultMessage:"No thanks"}}
1)},27299:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(49724);let r=(0,o(64685).I4)("button")(function(e){var t=e.isSelected,o=e.theme,r=e.size;return(0,n.A)((0,n.A)((0,n.A)((0,n.A)({alignItems:"center",background:"linear-gradient(\n        260.21deg,\n        ".concat(o.palette.core1_100," -20.44%,\n        ").concat(o.palette.core1_100," 123.11%\n    )"),backgroundPosition:"right",backgroundRepeat:"no-repeat",backgroundSize:t?"100% 100%":"0% 100%",border:"1px solid ".concat(t?"transparent":o.palette.gray_25_opaque),borderRadius:"8px",boxShadow:"none",boxSizing:"border-box",color:t?o.palette.core5_100:o.palette.gray_100,cursor:"pointer",display:"flex",fontFamily:o.font.body,fontSize:"16px",fontWeight:o.weights.bold,height:"48px",justifyItems:"center",lineHeight:"24px",marginBottom:"8px",outline:0,padding:"12px 16px",position:"relative",textAlign:"left",transitionDuration:"0.15s",transitionProperty:"background-size"},"span",{fontWeight:o.weights.bold,color:t?o.palette.core5_100:o.palette.gray_100}),":hover",(0,n.A)({backgroundColor:o.palette.core5_10_opaque,border:"1px solid ".concat(o.palette.gray_10_opaque),boxShadow:"none"},"span",{fontWeight:o.weights.bold,color:t?o.palette.core5_100:o.palette.gray_100})),":active",(0,n.A)({backgroundSize:"100% 100%",border:"1px solid transparent",boxShadow:"none",color:o.palette.core5_100},"span",{color:o.palette.core5_100})),"size",r)})},37421:(e,t,o)=>{o.d(t,{T:()=>r,y:()=>n});var n=function(e){return e.birthDate="birthDate",e.email="email",e.genderSeek="genderSeek",e.location="location",e.name="name",e.nextSteps="nextSteps",e.password="password",e.phoneNumber="phoneNumber",e.photoUpload="photoUpload",e.selfAttribute="selfAttribute",e.selfEssay="selfEssay",e.selfGender="selfGender",e.survey="survey",e.marketingOptins="marketingOptins",e.consentsOptins="consentsOptins",e.liquiditySharing="liquiditySharing",e}({}),r=function(e){return e.bannerId="bannerId",e.birthDate="birthDate",e.cityCode="cityCode",e.countryCode="countryCode",e.email="email",e.firstName="firstName",e.genderIdentity="genderIdentity",e.genderSeek="genderSeek",e.password="password",e.phoneNumber="phoneNumber",e.postalCode="postalCode",e.selfGender="selfGender",e.stateCode="stateCode",e.trackingId="trackingId",e}({})},45723:(e,t,o)=>{o.d(t,{A:()=>s});var n=o(31525),r=o(64685),i=o(75038);let s=function(e){var t=e.customBackground,o=e.noCover,s=e.siteCode,a=e.children,l=(0,r.DP)(),c={bottom:0,left:0,position:"fixed",right:0,top:0,transition:"background-image 0.5s ease-in-out",display:"flex",flexDirection:"column",overflowX:"auto"},d=function(e){var t,n=e.background;c.backgroundImage="url(".concat(n,")"),c.backgroundPosition=o?"center center":"center bottom",c.backgroundRepeat="no-repeat",c.backgroundSize=o?void 0:"cover",c.backgroundColor=null==(t=l.steps)?void 0:t.welcome.backgroundColor};switch(s){case n.Lo.BLACK_PEOPLE_MEET:case n.Lo.OUR_TIME:case n.Lo.STIR:case n.Lo.BLK:case n.Lo.CHISPA:case n.Lo.UPWARD:t?d({background:t}):c.background=l.background;break;default:d({background:"/reg/_next/static/assets/desktop-bg-light-db3324ef2d28edec58f1205bb31305c4.png"})}return(0,i.jsx)("div",{id:"background-wrapper",style:c,children:a})}},59412:(e,t,o)=>{o.d(t,{x:()=>p});var n=o(49724),r=o(127),i=o.n(r),s=o(82328),a=o(14579);o(76430);var l=o(54411),c=o(75038);function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function u(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?d(Object(o),!0).forEach(function(t){(0,n.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function p(e){var t=e.apiError,o=e.heading,n=e.message;return t?(0,c.jsx)(i(),{marginBottom:6,children:(0,c.jsx)(s.Ay,{bordered:!0,borderRadius:"roundCorner1x",type:"warning",children:(0,c.jsx)(a.Ay,{as:"b",typography:"smallBody",bold:!0,children:t})})}):(0,c.jsx)(i(),{marginBottom:6,children:(0,c.jsxs)(s.Ay,{bordered:!0,borderRadius:"roun
1dCorner1x",type:"warning",children:[(0,c.jsxs)(a.Ay,{as:"b",typography:"smallBody",bold:!0,children:[(0,c.jsx)(l.A,u({},o))," \xa0"]}),(0,c.jsx)(a.Ay,{typography:"smallBody",children:(0,c.jsx)(l.A,u({},n))})]})})}},60517:(e,t,o)=>{o.d(t,{e:()=>n});var n=function(e){return e[e.Success=0]="Success",e[e.Failure=1]="Failure",e}({})},61083:(e,t,o)=>{o.d(t,{PX:()=>l,eb:()=>a,nZ:()=>d,s7:()=>u});var n=o(49724),r=o(10313);function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function s(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach(function(t){(0,n.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var a={DENOMINATION:825,ROOTS:412},l=(0,r.YK)({825:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:825",description:"denomination profile attribute name: Denomination",defaultMessage:"My denomination"},412:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:412",description:"roots profile attribute name: Roots",defaultMessage:"My roots"}}),c=(0,r.YK)({2060:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2060",description:"denomination profile attribute: Anglican",defaultMessage:"Anglican"},2061:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2061",description:"denomination profile attribute: Baptist",defaultMessage:"Baptist"},2062:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2062",description:"denomination profile attribute: Catholic",defaultMessage:"Catholic"},2063:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2063",description:"denomination profile attribute: Church of Christ",defaultMessage:"Church of Christ"},2064:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2064",description:"denomination profile attribute: Episcopalian",defaultMessage:"Episcopalian"},2065:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2065",description:"denomination profile attribute: Evangelical",defaultMessage:"Evangelical"},2066:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2066",description:"denomination profile attribute: Lutheran",defaultMessage:"Lutheran"},2067:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2067",description:"denomination profile attribute: Methodist",defaultMessage:"Methodist"},2068:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2068",description:"denomination profile attribute: Nondenominational",defaultMessage:"Nondenominational"},2069:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2069",description:"denomination profile attribute: Orthodox",defaultMessage:"Orthodox"},2070:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2070",description:"denomination profile attribute: Pentecostal",defaultMessage:"Pentecostal"},2071:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2071",de
1scription:"denomination profile attribute: Presbyterian",defaultMessage:"Presbyterian"},2072:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2072",description:"denomination profile attribute: Nazarene",defaultMessage:"Nazarene"},2073:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2073",description:"denomination profile attribute: Not sure yet",defaultMessage:"Not sure yet"},2074:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:2074",description:"denomination profile attribute: Other",defaultMessage:"Other"},1522:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1522",description:"Roots profile attribute",defaultMessage:"Argentina"},1523:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1523",description:"Roots profile attribute",defaultMessage:"Belize"},1524:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1524",description:"Roots profile attribute",defaultMessage:"Bicultural"},1525:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1525",description:"Roots profile attribute",defaultMessage:"Bolivia"},1526:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1526",description:"Roots profile attribute",defaultMessage:"Brazil"},1527:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1527",description:"Roots profile attribute",defaultMessage:"Chile"},1528:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1528",description:"Roots profile attribute",defaultMessage:"Colombia"},1529:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1529",description:"Roots profile attribute",defaultMessage:"Costa Rica"},1530:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1530",description:"Roots profile attribute",defaultMessage:"Cuba"},1531:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1531",description:"Roots profile attribute",defaultMessage:"Dominican Republic"},1532:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1532",description:"Roots profile attribute",defaultMessage:"Ecuador"},1533:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1533",description:"Roots profile attribute",defaultMessage:"El Salvador"},1534:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1534",description:"Roots profile attribute",defaultMessage:"French Guiana"},1535:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1535",description:"Roots profile attribute",defaultMessage:"Guadeloupe"},1536:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1536",description:"Roots profile attribute",defaultMessage:"Guatemala"},1537:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1537",description:"Roots profile attribute",defaultMessage:"Haiti"},1538:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1538",description:"Roots profile attribute",defaultMessage:"Honduras"},1539:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1539",description:"Roots profile attribute",defaultMessage:"Martinique"},1540:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1540",description:"Roots profile attribute",defaultMessage:"Mexico"},1541:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1541",description:"Roots profile attribute",defaultMessage:"Nicaragua"},1542:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1542",description:"Roots profile attribute",defaultMessage:"Other"},1543:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1543",description:"Roots profile attribute",defaultMessage:"Panama"},1544:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1544",description:"Roots profile attribute",defaultMessage:"Paraguay"},1545:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1545",description:"Roots profile attribute",defaultMessage:"Peru"}
1,1546:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1546",description:"Roots profile attribute",defaultMessage:"Puerto Rico"},1547:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1547",description:"Roots profile attribute",defaultMessage:"Saint Martin"},1548:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1548",description:"Roots profile attribute",defaultMessage:"Santi Barthelemy"},1549:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1549",description:"Roots profile attribute",defaultMessage:"Spain"},1550:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1550",description:"Roots profile attribute",defaultMessage:"United States"},1551:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1551",description:"Roots profile attribute",defaultMessage:"Uruguay"},1552:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1552",description:"Roots profile attribute",defaultMessage:"Venezuela"},1553:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1553",description:"Roots profile attribute",defaultMessage:"Bangladesh"},1554:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1554",description:"Roots profile attribute",defaultMessage:"Cambodia"},1555:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1555",description:"Roots profile attribute",defaultMessage:"China"},1556:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1556",description:"Roots profile attribute",defaultMessage:"Hong Kong"},1557:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1557",description:"Roots profile attribute",defaultMessage:"India"},1558:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1558",description:"Roots profile attribute",defaultMessage:"Indonesia"},1559:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1522",description:"Roots profile attribute",defaultMessage:"Japan"},1560:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1560",description:"Roots profile attribute",defaultMessage:"Laos"},1561:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1561",description:"Roots profile attribute",defaultMessage:"Malaysia"},1562:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1562",description:"Roots profile attribute",defaultMessage:"Mongolia"},1563:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1563",description:"Roots profile attribute",defaultMessage:"Myanmar"},1564:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1564",description:"Roots profile attribute",defaultMessage:"Nepal"},1565:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1565",description:"Roots profile attribute",defaultMessage:"Pakistan"},1566:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1566",description:"Roots profile attribute",defaultMessage:"Philippines"},1567:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1567",description:"Roots profile attribute",defaultMessage:"Singapore"},1568:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1568",description:"Roots profile attribute",defaultMessage:"South Korea"},1569:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1569",description:"Roots profile attribute",defaultMessage:"Taiwan"},1570:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1570",description:"Roots profile attribute",defaultMessage:"Thailand"},1571:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1571",description:"Roots profile attribute",defaultMessage:"Tibet"},1572:{id:"components/flows/collins/steps/SelfAttribute/constants/attributes:1572",description:"Roots profile attribute",defaultMessage:"Vietnam"}}),d=(0,n.A)((0,n.A)({},a.DENOMINATION,{answers:[2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074]}),a.ROOTS,{answers:[1522,1523,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1524,1542]});function u(e){return e.map(function(e){var t=c[e];return t?s(s({},t),{},{attrId:e}):null}
1).filter(Boolean)}},62798:(e,t,o)=>{o.d(t,{A:()=>u});var n=o(49724),r=o(64685),i=o(55784),s=o(2923),a=o(31525),l=o(43353);function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach(function(t){(0,n.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}let u=(0,r.I4)(i.Ay)(function(e){var t=e.theme,o=e.fontWeight,r=e.height,i=e.isSelected,c=e.size,u=e.width,p=e.fullWidthOnSmallScreen,f=(0,l.SF)(),m=f.siteCode,g=f.site,h=m===a.Lo.OUR_TIME,b=m===a.Lo.STIR,y=g.isMeeticCoreHostname||g.isMeeticSeniorHostname?t.palette.ctaPrimary:t.palette.core3_100,v=t.tokens.colorOnSurface;return d(d((0,n.A)((0,n.A)((0,n.A)((0,n.A)({background:i?y:"transparent",borderRadius:b?"8px":t.radii.round,borderColor:h?(0,s.transparentize)(.75,t.palette.gray_100):(0,s.transparentize)(.75,i?y:t.palette.core3_100),fontSize:"16px",fontWeight:o||400,height:b?"48px":r,marginBottom:t.space.smedium,paddingLeft:"50px",paddingRight:"50px",width:u||"fit-content",transitionDuration:"0.2s",transitionProperty:"color, background-color, text-shadow, border-color",boxShadow:"none"},"> span, span:nth-of-type(2)",{color:i?t.palette.core5_100:h?v:t.palette.core3_100}),"&:hover",(0,n.A)({background:i?y:"transparent",borderColor:(0,s.transparentize)(.9,y)},"span, span:nth-of-type(2)",{color:i?t.palette.core5_100:h?v:t.palette.core3_100})),":active",(0,n.A)({backgroundColor:y,boxShadow:"none"},"span, span:nth-of-type(2)",{color:t.palette.core5_100})),":focus",(0,n.A)((0,n.A)((0,n.A)({boxShadow:"0 0 0 2px ".concat(t.palette.core4_50,", 0 0 0 4px ").concat((0,s.transparentize)(.75,y))},"> span, span:nth-of-type(2)",{color:h?v:t.palette.core3_100}),"backgroundColor","transparent"),"&:focus:not(:focus-visible)",(0,n.A)({boxShadow:"none",backgroundColor:y},"span, span:nth-of-type(2)",{color:t.palette.core5_100}))),void 0!==p&&p?(0,n.A)({},"@media only screen and (max-width: 430px)",{width:"100%"}):{}),{},{size:c})})},63053:(e,t,o)=>{o.d(t,{H:()=>r,N:()=>i});var n=o(49724),r={SHARED:{under30YearsComp:"corewebreg.under30years.comp",stirSeoLanding:"corewebreg.AbTestsLandings.1197",ourtimeSeoLanding:"corewebreg.ourtime.seolanding.717",matchSeoLanding:"corewebreg.AbTestsMatchUs.1198",matchLimitedMarketingSurvey:"coreweb.marketingsurvey.2627",upwardRateCardTest:"corewebreg.upward.976",photoUpload:"corewebreg.photoupload.1003",newPasswordRules:"corewebreg.passwordRules.1188",coregistration:"corewebreg.coregistration.1479",loginUxEnhancements:"coreweb.loginuxenhancements.37586",registrationBackButton:"coreweb.registrationbackbutton.3306"},DESKTOP:{},MOBILE:{stirIosRegLanding:"corewebreg.stir.mobile.iosregistration.368",regPageRefresh:"coreweb.regpage.2545"}},i=(0,n.A)({},r.SHARED.upwardRateCardTest,{ratecard:"ratecard",appdownload:"appdownload"})},63164:(e,t,o)=>{o.d(t,{A:()=>s});var n=o(49724);function r(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function i(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach(function(t){(0,n.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function s(e){var t=e.sequence,o=e.defaultValues,n=t.filter(function(e){if(!e.questions)return!0;var t,n,r=null==e||null==(t=e.questions)?void 0:t.filter(function(e){return o[e]});return(null==r?void 0:r.length)!==(null==e||null==(n=e.questions)?void 0:n.length)}).map(function(e){return e.friendlyName=e.friendlyName.toLocaleLowerCase(),e}),r={flow:n,sequence:t,friendlyNameToStep:function(e){if(e){var t=n.findIndex(function(t){return t.friendlyName==e.toLowerCase()});if(!(t<0))return t}},querystringToStep:function(e){if(!e)return 0;var t=Array.isArray(e)?e[0]:e,o=n.findIndex(function(e){return e.friendlyName==(null==t?void 0:t.toLowerCase())});return o<0?0:o}
1,getUrlObj:function(e){var t=e.pathname,o=e.query,r=e.step,s=e.stripSearch,a=/\[/.test(t)?t:"".concat(t,"/[step]"),l=s?{step:n[r].friendlyName}:i(i({},o),{},{step:n[r].friendlyName});return{pathname:a.toLowerCase(),query:l}},getInitialUrlObj:function(e){return r.getUrlObj(i(i({},e),{},{step:0}))}};return r}},78058:(e,t,o)=>{o.d(t,{P3:()=>O});var n=o(25020),r=o(49724),i=o(18911),s=o(40192),a=o.n(s),l=o(76430),c=o(55151),d=o.n(c),u=function(e){var t=e.globalName,o=void 0===t?"arkoseDetect":t,n=e.src,r=e.publicKey,s=e.language,a=e.shouldUseArkose,c=e.nonce,d=l.useState(null),u=(0,i.A)(d,2),m=u[0],g=u[1];return l.useEffect(function(){if(!a)return m&&(g(null),f(o)),function(){};m||(p({src:n||"https://match-api.arkoselabs.com/v2/".concat(r,"/api.js"),globalName:o,nonce:c}),window[o]=function(e){s&&e.setConfig({language:s}),g(e)})},[m,o,s,r,a,n]),m},p=function(e){var t=e.src,o=e.globalName,n=e.nonce;if(!("undefined"==typeof document||document.getElementById(o))){var r=document.body,i=document.createElement("script");i.src=t,i.id=o,i.type="text/javascript",i.defer=!0,i.async=!0,i.setAttribute("data-callback",o),n&&i.setAttribute("data-nonce",n),r.appendChild(i)}},f=function(e){var t=document.getElementById(e);t&&t.remove(),window[e]&&delete window[e]},m=o(74605),g="corewebreg.arkose.1047",h=function(){var e=(0,m.X)(),t=e.isInTest,o=e.abTests,n=void 0===o?[]:o,r=(null==n?void 0:n.find(function(e){return e.name===g}))===void 0,i=t(g);return{shouldUseArkose:r||i}}
1,b=o(33410),y=o(49836);function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function w(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?v(Object(o),!0).forEach(function(t){(0,r.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):v(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var x="ArkoseRegSubmit",O=function(e){var t=j(),o=l.useState(!1),n=(0,i.A)(o,2),r=n[0],s=n[1],a=t.shouldUseArkose,c=t.publicKey,d=(0,y.A)().nonce,p=u(w(w({},e),{},{publicKey:(null==e?void 0:e.publicKey)||c,shouldUseArkose:(null==e?void 0:e.shouldUseArkose)!==void 0?e.shouldUseArkose:a,nonce:(null==e?void 0:e.nonce)||d}));return l.useEffect(function(){p&&!r&&p.setConfig({onReady:function(){s(!0)}})},[p,r]),l.useMemo(function(){return{sdk:p,shouldUseArkose:a,isReady:r,runAsync:function(e){return S(p,e)},getTokenAsync:function(e){return A(p,t,r,e)},logErrorAsync:function(e,t){return b.A.logError(e,x,t)}}},[p,a,r,t])},j=function(){var e=d()().publicRuntimeConfig,t=h().shouldUseArkose,o=e.arkoseDefaultKey;return l.useMemo(function(){return{shouldUseArkose:t,publicKey:o}},[t,o])},S=function(){var e=(0,n.A)(a().mark(function e(t,o){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){null==t||t.setConfig({onCompleted:function(t){var o;e({response:t,sdkEvent:"onCompleted",token:(o=t.token,"".concat("a:").concat(o))})},onError:function(t){b.A.logError("Arkose error loading of the detection and/or enforcement",x,{sdkEvent:"onError",error:t.error,siteCode:o}),e({response:t,sdkEvent:"onError",token:null})},onFailed:function(t){e({response:t,sdkEvent:"onFailed",token:null})},onWarning:function(t){b.A.logError("Arkose warning generating image assets for the enforcement challenge",x,{sdkEvent:"onError",error:t.error,siteCode:o}),e({response:t,sdkEvent:"onWarning",token:null})}}),null==t||t.run()}));case 1:case"end":return e.stop()}},e)}));return function(t,o){return e.apply(this,arguments)}}(),A=function(){var e=(0,n.A)(a().mark(function e(t,o,n,r){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=3;break}return b.A.logError("Arkose not ready",x,{siteCode:r}),e.abrupt("return",null);case 3:if(!o.shouldUseArkose){e.next=5;break}return e.abrupt("return",S(t,r));case 5:return e.abrupt("return",null);case 6:case"end":return e.stop()}},e)}));return function(t,o,n,r){return e.apply(this,arguments)}}()},87965:(e,t,o)=>{o.d(t,{c:()=>n.A});var n=o(67880)},90071:(e,t,o)=>{o.d(t,{DT:()=>S,Eh:()=>P,Hf:()=>p,J0:()=>k,Oi:()=>u,Oj:()=>M,Ws:()=>O,_l:()=>T,d8:()=>C,dN:()=>d,eW:()=>E,m2:()=>c,qo:()=>D,u4:()=>j,vV:()=>A});var n=o(31525),r=o(98386),i=o(4108),s=o(10359),a=o(63053),l=/^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/,c=16,d=20,u=8,p=2,f=/(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.* ).{8,}$/,m=/^\S+$/,g=/[A-Z]/,h=/[a-z]/,b=/[0-9]/,y=/^[a-zA-Z]+[a-zA-Z'-]*$/,v=/^[a-zA-ZÀ-Öà-öÙ-Üù-ü\s'\-]*$/,w=/^[0-9]{5}$/,x=/^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ -]?\d[ABCEGHJ-NPRSTV-Z]\d$/i;function O(e){var t=e.birthDate,o=e.siteCode,s=new Map;if(!t)return s.set("required",i.D.birthdate_required),s;var a=(0,r.Gn)(t,o),l=a.validAge,c=a.validAlive,d=a.validDate;return(0,r.yl)(t)&&c&&d?o!==n.Lo.OURTIME_EU||l||s.set("pattern",i.D.under_50):s.set("pattern",i.D.birthdate_invalid),s}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new Map;return e?e.trim().length<2||e.trim().length>(t.hasCustomNameRules?d:c)?o.set("minLength",i.D.firstname_len_limit):t.allowAccentedChars?v.test(e)||o.set("pattern",i.D.firstname_invalid_char):y.test(e)||o.set("pattern",i.D.firstname_invalid_char):o.set("required",i.D.firstname_required),o}function S(e){var t=new Map;return e?(e.length>75&&t.set("maxLength",i.D.email_len_limit),l.test(e)||t.set("pattern",
1i.D.email_pattern)):t.set("required",i.D.email_required),t}function A(e){return m.test(e)}function C(e){return h.test(e)}function P(e){return g.test(e)}function k(e){return b.test(e)}function T(e){return f.test(e)}function M(e,t,o){var n=o&&(0,s.G)(o,a.H.SHARED.newPasswordRules),r=new Map;return e?e.length<(n?u:p)?r.set("minLength",i.D.password_minLength):e.length>100?r.set("maxLength",i.D.password_maxLength):t&&e.toLowerCase()===t.toLowerCase()&&r.set("rule",i.D.password_matches_firstName):r.set("required",i.D.password_required),r}function D(e,t,o){var n=new Map;return e?w.test(e.toString())||x.test(e.toString())||n.set("pattern",i.D.postalcode_pattern):n.set("required",i.D.postalcode_required),n}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e in t?t[e]:e}},90150:(e,t,o)=>{o.d(t,{i:()=>m});var n=o(49724),r=o(76430),i=o(14579),s=o(54411),a=o(10313),l=o(64685),c=o(43353),d=o(75038);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function p(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach(function(t){(0,n.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var f=(0,a.YK)({disclaimerText:{id:"components/flows/collins/components/SensitiveDataDisclaimer/SensitiveDataDisclaimer:disclaimerText",description:"disclaimer text",defaultMessage:"We use this to provide and personalize your experience."},learnMoreText:{id:"components/flows/collins/components/SensitiveDataDisclaimer/SensitiveDataDisclaimer:learnMoreText",description:"learn more text",defaultMessage:"Learn more."}});let m=function(e){var t=e.helpArticleUrl,o=(0,l.DP)(),n=(0,c.SF)().site;return(0,d.jsxs)(r.Fragment,{children:[(0,d.jsx)(i.Ay,{typography:"legal",as:"div",textAlign:"center",children:(0,d.jsx)(s.A,p({},f.disclaimerText))}),(0,d.jsx)(i.Ay,{typography:"legal",as:"div",textAlign:"center",children:(0,d.jsx)("a",{style:{fontWeight:"bold",color:n.isBPM||n.isNorthAmerica?o.palette.core1_100:o.palette.core3_100},href:t,target:"_blank",children:(0,d.jsx)(s.A,p({},f.learnMoreText))})})]})}},95032:(e,t,o)=>{o.d(t,{K:()=>C});var n=o(49724),r=o(4108),i=o(90071);function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function a(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach(function(t){(0,n.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function l(e,t,o){var n={type:"",types:void 0,message:void 0};return t.forEach(function(r,s){t.size>1?(n.types||(n.types={}),n.types[e]||(n.types[e]={}),n.types[e][s]=(0,i.eW)(r,o)):(n.type=s,n.message=(0,i.eW)(r,o))}),n}var c=o(25936),d=o(10313),u=o(31525),p=o(84306),f=o(76430),m=o(54411),g=o(75038);function h(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?h(Object(o),!0).forEach(function(t){(0,n.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var y=function(e){var t=e.urlCode,o=(0,c.A)(),n="https://www.meetic.fr/",r="Meetic ";switch(t){case u.cc.DISONSDEMAIN_FR:n="https://www.meetic.fr/",r="Meetic";break;case u.cc.OURTIME_ES:n="https://www.meetic.es/",r="Meetic";break;case u.cc.DISONSDEMAIN_BE:n="https://fr.meetic.be/",r="Meetic";break;case u.cc.OURTIME_IT:n="https://www.meetic.it/",r="Meetic";break;
1case u.cc.OURTIME_SE:n="https://se.match.com/",r="Match";break;case u.cc.OURTIME_GB:n="https://uk.match.com/",r="Match";break;case u.cc.ZWEISAM_AT:n="https://www.lovescout24.at/",r="LoveScout";break;case u.cc.ZWEISAM_DE:n="https://www.lovescout24.de/",r="LoveScout";break;case u.cc.ZWEISAM_CH:n="https://www.lovescout24.ch/",r="LoveScout";break;case u.cc.OURTIME_NL:n="https://www.lexa.nl/",r="Lexa";break;default:n="https://www.meetic.fr/",r="Meetic"}var i=o.formatMessage(v.under_50,{brand:r,link:(0,g.jsx)("a",{href:n,children:(0,g.jsx)(m.A,b(b({},v.continue_to),{},{values:{brand:r}}))})});return(0,g.jsx)(f.Fragment,{children:i})},v=(0,d.YK)({under_50:{id:"utilities/validations/react-hook-forms/under-50-error-text:under_50",description:"Generic error message",defaultMessage:"You must be over 50 years old to register. We invite you to register on {brand} to meet singles. {link}."},continue_to:{id:"utilities/validations/react-hook-forms/under-50-error-text:continue_to",description:"Continue to brand message",defaultMessage:"Continue to {brand}"}}),w=o(64685),x=o(43353),O=o(63053);function j(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function S(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?j(Object(o),!0).forEach(function(t){(0,n.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):j(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var A=(0,d.YK)({firstname_len_limit:{id:"utilities/validations/react-hook-forms/useResolver:firstname_len_limit",description:"Minimum/Maximum input requirements",defaultMessage:"Please enter a name between 2 & {maxLength} characters."},firstname_invalid_char:{id:"utilities/validations/react-hook-forms/useResolver:firstname_invalid_char",description:"FirstName special characters error text",defaultMessage:"Special characters are not allowed in your first name. Please re-enter using letters, hyphens or apostrophes."},firstname_len_limit_alt:{id:"utilities/validations/react-hook-forms/useResolver:firstname_len_limit_alt",description:"Minimum/Maximum input requirements",defaultMessage:"Please enter a first name."},firstname_invalid_char_alt:{id:"utilities/validations/react-hook-forms/useResolver:firstname_invalid_char_alt",description:"FirstName special characters error text",defaultMessage:"First names can only contain letters, apostrophes, and hyphens."},firstname_forbidden_words:{id:"utilities/validations/react-hook-forms/useResolver:firstname_forbidden_words",description:"FirstName forbidden words error text",defaultMessage:"Your first name contains a forbidden word."},firstname_start_lowercase:{id:"utilities/validations/react-hook-forms/useResolver:firstname_start_lowercase",description:"Name must begin with uppercase letter",defaultMessage:"Your first name must begin with an uppercase letter."},firstname_too_many_spaces:{id:"utilities/validations/react-hook-forms/useResolver:firstname_too_many_spaces",description:"Name must have maximum one space",defaultMessage:"Your first name contains too many spaces"},email_pattern:{id:"utilities/validations/react-hook-forms/useResolver:email_pattern",description:"Invalid email format",defaultMessage:"Please enter a valid email address."},email_required:{id:"utilities/validations/react-hook-forms/useResolver:email_required",description:"Email required warming text",defaultMessage:"Please enter an email address."},email_unavailable:{id:"utilities/validations/react-hook-forms/useResolver:email_unavailable",description:"Email unavailable",defaultMessage:"The email address you entered cannot be used to register. Please enter another email address."},birthdate_invalid:{id:"utilities/validations/react-hook-forms/useResolver:birthdate_invalid",description:"Birthdate invalid age error text",defaultMessage:"Please enter a valid birthdate."},birthdate_under_age:{id:"utilities/validations/react-hook-forms/useResolver:birthdate_under_age",description:"Underage error",defaultMessage:"Sorry! {brandName} is only for adults. You must be at least 18 to use our site. If you believe you have received this message in error, please contact <customerCareLink>here</customerCareLink>"},birthdate_under_age_eu:{id:"utilities/validations/react-hook-forms/useResolver:birthdate_under_age_eu",description:"Underage error for EU countries",defaultMessage:"Sorry! {brandName} is only for adults. You must be at least 18 to use our site."},birthdate_invalid_alt:{id:"utilities/validations/react-hook-forms/useResolver:birthdate_invalid_alt",description:"Birthdate invalid age error text - alternative",defaultMessage:"Please enter a valid date for your birthday."},birthdate_under_age_without_customer_support_info:{id:"utilities/validations/react-hook-forms/useResolver:birthdate_under_age_without_customer_support_info",description:"Underage error without customer support contact information",defaultMessage:"Please enter a valid birthdate."},zipcode_invalid:{id:"utilities/validations/react-hook-forms/useResolver:zipcode_invalid",description:"Post code format error message",defaultMessage:"Please enter a valid zip/postal code."},zipcode_required:{id:"utilities/validations/react-hook-forms/useResolver:zipcode_required",description:"error message for missing zip code input",defaultMessage:"Please enter a zip/postal code"},password_required:{id:"utilities/validations/react-hook-forms/useResolver:password_required",description:"Password required error text",defaultMessage:"Please enter a password."},password_minLength:{id:"utilities/validations/react-hook-forms/useResolver:password_minLength",description:"Password length error text",defaultMessage:"Please re-enter your password with at least {minLength} characters."},password_maxLength:{id:"utilities/validations/react-hook-forms/useResolver:password_maxLength",description:"Password length error text",defaultMessage:"Maximum of 100 characters allowed."},password_pattern:{id:"utilities/validations/react-hook-forms/useResolver:password_pattern",description:"Password format error text",defaultMessage:"Passwords can only contain letters, numbers and underscore."},password_matches_firstName:{id:"utilities/validations/react-hook-forms/useResolver:password_matches_firstName",description:"Password same as first name error text",defaultMessage:"Your password cannot be the same as your first name."},password_pattern_alt:{id:"utilities/validations/react-hook-forms/useResolver:password_pattern_alt",description:"Password format error text alternative",defaultMessage:"The password you entered is invali
1d. Remember to use only letters, numbers, and underscores in your password."},password_matches_firstName_alt:{id:"utilities/validations/react-hook-forms/useResolver:password_matches_firstName_alt",description:"Password same as first name error text alternative",defaultMessage:"Your password cannot be the same as your first name. Please enter a different password and re-submit your information."},generic_required:{id:"utilities/validations/react-hook-forms/useResolver:generic_required",description:"Required value error",defaultMessage:"This is required."},generic_error:{id:"utilities/validations/react-hook-forms/useResolver:generic_error",description:"Generic error message",defaultMessage:"Something went wrong. But it's not you, really... it's us. Please try again later."}});let C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,c.A)(),o=(0,x.SF)().site,s=(0,p.Xw)(),d=s.isInTest,f=s.abTests,m=e.messages,h=e.layout,b=e.siteCode,v=e.urlCode,j=(0,p.qZ)({layout:h,siteCode:b,urlCode:v}).customerCareEmailAddress,C=(0,w.c7)(b,v),P=o.isMeetic||o.isOurtimeEU,k=d(O.H.SHARED.newPasswordRules),T=o.isNorthAmerica||o.isOurTime,M=P||T,D=t.formatMessage(A.birthdate_under_age,{customerCareEmailAddress:j,brandName:C.branding.siteName,customerCareLink:function(e){var t=j.startsWith("http");return(0,g.jsx)("a",{href:t?j:"mailto:".concat(j),children:e})}}),E=t.formatMessage(A.password_pattern),B=t.formatMessage(A.password_matches_firstName),_=t.formatMessage(A.firstname_invalid_char),L=t.formatMessage(A.firstname_len_limit,{maxLength:M?i.dN:i.m2}),I=t.formatMessage(A.birthdate_invalid),N="";P&&(D=t.formatMessage(A.birthdate_under_age_eu,{brandName:C.branding.siteName})),b===u.Lo.STIR&&(E=t.formatMessage(A.password_pattern_alt),B=t.formatMessage(A.password_matches_firstName_alt),L=t.formatMessage(A.firstname_len_limit_alt),_=t.formatMessage(A.firstname_invalid_char_alt),I=t.formatMessage(A.birthdate_invalid_alt)),b===u.Lo.OURTIME_EU&&(N=(0,g.jsx)(y,{urlCode:v}));var R=S({birthdate_invalid:I,birthdate_required:I,under_age:D,under_50:N,email_pattern:t.formatMessage(A.email_pattern),email_required:t.formatMessage(A.email_required),email_unavailable:t.formatMessage(A.email_unavailable),firstname_invalid_char:_,firstname_len_limit:t.formatMessage(A.firstname_len_limit,{maxLength:M?i.dN:i.m2}),firstname_required:L,firstname_forbidden_words:t.formatMessage(A.firstname_forbidden_words),firstname_start_lowercase:t.formatMessage(A.firstname_start_lowercase),firstname_too_many_spaces:t.formatMessage(A.firstname_too_many_spaces),gender_required:t.formatMessage(A.generic_required),genderseek_required:t.formatMessage(A.generic_required),password_matches_firstName:B,password_maxLength:t.formatMessage(A.password_maxLength),password_minLength:t.formatMessage(A.password_minLength,{minLength:k?i.Oi:i.Hf}),password_pattern:E,password_required:t.formatMessage(A.password_required),postalcode_pattern:t.formatMessage(A.zipcode_invalid),postalcode_required:t.formatMessage(A.zipcode_required),generic_api_error:t.formatMessage(A.generic_error),generic_client_error:t.formatMessage(A.generic_error)},m);return e.messages=R,e.abTests=f,e.hasCustomNameRules=M,{genericApiError:R.generic_api_error,mapApiErrors:function(e){return e.reduce(function(e,t){var o=t.key.toLowerCase();return o===r.D.email_pattern?{type:"pattern",message:R.email_pattern}:o===r.D.password_minLength?{type:"minLength",message:R.password_minLength}:o===r.D.password_maxLength?{type:"maxLength",message:R.password_maxLength}:o in R?S(S({},e),{},{type:t.key,message:R[t.key]}):S(S({},e),{},{message:R.generic_api_error})},{type:"required",message:void 0})},postAccountErrors:function(e){return(null==e?void 0:e.length)===0?[]:e.map(function(e){return null!=e&&e.message?e.message:R[e.key]?R[e.key]:R.generic_api_error})},resolver:function(t,o,s){var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,s=o.messages,c=void 0===s?{}:s,d=o.abTests,u=o.siteCode,p=o.urlCode;return t.reduce(function(t,s){switch(s){case"firstName":var f=(0,i.u4)(e[s],o);if(f.size>0)return a(a({},t),{},(0,n.A)({},s,l(s,f,c)));return t;case"email":var m=(0,i.DT)(e[s]);if(m.size>0)return a(a({},t),{},(0,n.A)({},s,l(s,m,c)));return t;case"password":var g=(0,i.Oj)(e[s],e.firstName,d);if(g.size>0)return a(a({},t),{},(0,n.A)({},s,l(s,g,c)));return t;case"countryCode":if(!e.countryCode){var h=new Map().set("required",r.D.countrycode_required);return a(a({},t),{},(0,n.A)({},s,l(s,h,c)))}return t;case"stateCode":if(!e.stateCode){var b=new Map().set("required",r.D.statecode_required);return a(a({},t),{},(0,n.A)({},s,l(s,b,c)))}return t;case"cityCode":if(!e.cityCode){var y=new Map().set("required",r.D.citycode_required);return a(a({},t),{},(0,n.A)({},s,l(s,y,c)))}return t;case"selfGender":if(!e.selfGender){var v=new Map().set("required",r.D.gender_required);return a(a({},t),{},(0,n.A)({},s,l(s,v,c)))}return t;case"genderSeek":if(!e.genderSeek){var w=new Map().set("required",r.D.genderseek_required);return a(a({},t),{},(0,n.A)({},s,l(s,w,c)))}return t;case"postalCode":var x=(0,i.qo)(e[s],u,p);if(x.size>0)return a(a({},t),{},(0,n.A)({},s,l(s,x,c)));return t;case"birthDate":var O=(0,i.Ws)({birthDate:e[s],siteCode:u});if(O.size>0)return a(a({},t),{},(0,n.A)({},s,l(s,O,c)));return t;default:return t}},{})}(t,s.names||[],e);return{values:t,errors:c}}}}},95626:(e,t,o)=>{o.d(t,{A:()=>c});var n=o(3714),r=o(80758),i=o(49724);o(2272);var s=function(e){return function(t){for(var o,n,r=(o="[debug]",!function(){try{return!1}catch(e){return!1}}()?o:"\x1b[36m".concat(o,"\x1b[0m")),i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];
1(n=console).log.apply(n,["".concat(r," [").concat(e,"] - ").concat(t)].concat(s))}};function a(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function l(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach(function(t){(0,i.A)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}let c=new((0,r.A)(function e(){var t=this;(0,n.A)(this,e),(0,i.A)(this,"sessionInformation",{isCCPA:!1,desktopLanderFlow:!1}),(0,i.A)(this,"fireRegistration",function(){t.fireGoogleEvent("registration",{})}),(0,i.A)(this,"handleGoogleEventsFired",function(e,t){s("All triggers for this event complete "+e+" "+t)}),(0,i.A)(this,"fireGoogleEvent",function(e,o){var n=l(l({event:e},o),{},{eventCallback:function(o){t.handleGoogleEventsFired(o,e)}}),r=window;s("fireGoogleEvent sending an event "+{googleEventObject:n}),r.dataLayer=r.dataLayer||[],r.dataLayer.push(n)}),(0,i.A)(this,"updateGoogleDataLayerVariables",function(){var e=window,o={cpFields:t.sessionInformation.cpFields,cpNextFields:t.sessionInformation.cpNextFields,cpPrevFields:t.sessionInformation.cpPrevFields,cpStep:t.sessionInformation.cpStep,device:t.sessionInformation.device,event:t.sessionInformation.event,genderseek:t.sessionInformation.genderseek,isCCPA:t.sessionInformation.isCCPA,selfgender:t.sessionInformation.selfgender,isVariant:t.sessionInformation.isVariant};e.dataLayer=e.dataLayer||[],e.dataLayer.push(o)})},[{key:"setRegistrationProgressEvent",value:function(){this.setSessionInformation({event:"registrationProgress"})}},{key:"setDeviceInformation",value:function(e){this.setSessionInformation({device:e?"d":"m"})}},{key:"setAbTestVariantLandingInformation",value:function(e){var t=window;t.dataLayer=t.dataLayer||[],t.dataLayer.push({isAbTestVariant:e})}},{key:"setDesktopLandingPageInformation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isVariant;this.setSessionInformation({cpFields:"ggs | lage | uage | zip",cpNextFields:"dob",cpPrevFields:"none",cpStep:0,device:"d",desktopLanderFlow:!0,isVariant:t}),this.setRegistrationProgressEvent()}},{key:"setMobileLandingPageInformation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isVariant;this.setSessionInformation({cpPrevFields:"none",cpStep:0,device:"m",mobileLanderFlow:!0,isVariant:t}),this.setRegistrationProgressEvent()}},{key:"setSelfGenderInformation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,o=this.sessionInformation.mobileLanderFlow?"jump page":"none";t.postalCode&&(o="lage | uage | zip"),this.setSessionInformation({cpStep:e,cpFields:"gc",cpPrevFields:o,cpNextFields:"tr"}),this.setRegistrationProgressEvent()}},{key:"setGenderSeekInformation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this.setSessionInformation({cpStep:e,cpFields:"tr",cpPrevFields:"gc",cpNextFields:"dob",selfgender:t.selfGender}),this.setRegistrationProgressEvent()}},{key:"setBirthdayInformation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,o="tr",n="zip";t.postalCode&&(o="ggs | lage | uage | zip",n="firstname"),this.setSessionInformation({cpStep:e,cpFields:"dob",cpPrevFields:o,cpNextFields:n,selfgender:t.selfGender,genderseek:t.seekGender}),this.setRegistrationProgressEvent()}},{key:"setPostalCodeInformation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this.setSessionInformation({cpStep:e,cpFields:"zip",cpPrevFields:"dob",cpNextFields:"firstname",selfgender:t.selfGender,genderseek:t.seekGender}),this.setRegistrationProgressEvent()}},{key:"setNameInformation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this.setSessionInformation({cpStep:e,cpFields:"firstname",cpPrevFields:this.sessionInformation.desktopLanderFlow?"dob":"zip",cpNextFields:"email",selfgender:t.selfGender,genderseek:t.seekGender}),this.setRegistrationProgressEvent()}},{key:"setEmailInformation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this.setSessionInformation({cpStep:e,cpFields:"email",cpPrevFields:"firstname",cpNextFields:"password",selfgender:t.selfGender,genderseek:t.seekGender}),this.setRegistrationProgressEvent()}},{key:"setPasswordInformation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;this.setSessionInformation({cpStep:e,cpFields:"password",cpPrevFields:"email",cpNextFields:"none",selfgender:t.selfGender,genderseek:t.seekGender}),this.setRegistrationProgressEvent()}},{key:"setSessionInformation",value:function(e){this.sessionInformation=l(l({},this.sessionInformation),e),this.updateGoogleDataLayerVariables()}}
1]))},98386:(e,t,o)=>{o.d(t,{Gn:()=>d,UZ:()=>l,yl:()=>c});var n=o(31525),r=o(8947),i=o(92401),s=o(73032),a=o(30025);function l(e,t){var o=new Date(e),l=new Date("01/01/1900"),c=18;t===n.Lo.OURTIME_EU&&(c=50);var d=(0,r.A)(new Date,c);return{validDate:(0,i.A)(o),validAge:(0,s.A)(o,d),validAlive:(0,a.A)(o,l)&&!(0,a.A)(o,new Date)}}function c(e){var t=e.day,o=e.year,n=Number(e.month)-1,r=new Date(o,n,t);return r.getFullYear()==Number(o)&&r.getMonth()==n&&r.getDate()==Number(t)}function d(e,t){return"string"==typeof e?l(e,t):l(e?e.month+"/"+e.day+"/"+e.year:"",t)}},98489:(e,t,o)=>{o.d(t,{A:()=>c});var n=o(25020),r=o(40192),i=o.n(r),s=o(55151),a=o.n(s),l=function(e){var t=e.path,o=e.origin,n=e.basePath,r=e.affiliateHost,i=void 0===r?"":r,s=t.replace(void 0===n?"":n,"");return/^http/.test(t)?s:(/^\//.test(s)||(s="/".concat(s)),i)?"https://".concat(i).concat(s):"".concat(o).concat(s)};function c(){var e=a()().publicRuntimeConfig;return{push:function(t){var o=arguments;return(0,n.A)(i().mark(function n(){var r,s;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:r=(o.length>1&&void 0!==o[1]?o[1]:{}).origin,n.next=3;break;case 3:(s=l({path:t,origin:r||window.location.origin,basePath:e.basePath,affiliateHost:e.affiliateHost}))&&(window.location.href=s);case 5:case"end":return n.stop()}},n)}))()},toAbsoluteUrl:function(t){return l({path:t,origin:origin||window.location.origin,basePath:e.basePath,affiliateHost:e.affiliateHost})},toDesktopUrl:function(t){var o=l({path:t,origin:origin||window.location.origin,basePath:e.basePath,affiliateHost:e.affiliateHost});return o.startsWith("https://mobi.")?o.replace("mobi.",""):o}}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.