1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8810],{16273:(e,s,t)=>{"use strict";t.d(s,{A:()=>b});var r=t(14232),a=t(24480),o=t(90458),n=t(25508),i=t(99220),c=t(29637),d=t(40014),l=t(58794),m=t(31462),p=t(19708),u=t(89099),g=t(77328),h=t.n(g),x=t(61586),f=t(17667),A=t(37876);let y=(0,i.n9)()(e=>({container:{display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(2,0),marginBottom:e.spacing(5),[e.breakpoints.up("sm")]:{padding:e.spacing(13,0)}},description:{width:380,maxWidth:"100%",margin:"auto",paddingTop:e.spacing(2),paddingLeft:e.spacing(3),paddingRight:e.spacing(3),"& > *":{display:"block"},[e.breakpoints.up(720)]:{display:"grid",justifyItems:"center"},textAlign:"center"},card:{height:"95%",width:600,border:`1px solid ${e.palette.gray.secondary}`,borderRadius:"12px",backgroundColor:e.palette.common.white,[e.breakpoints.down(720)]:{justifyItems:"center",width:"100%",marginBottom:e.spacing(5),borderRadius:0,border:"none"}},buttonSection:{display:"grid",justifyItems:"center"},button:{height:40,width:268,textTransform:"none"},textSection:{padding:e.spacing(3,8),textAlign:"center",backgroundColor:(0,n.X4)(e.palette.gray.D1D9E2,.15),opacity:"80%"},descriptionText:{fontSize:e.typography.body1.fontSize},mobileMessageText:{textAlign:"center",fontSize:e.typography.body1.fontSize,padding:e.spacing(1,3)},horizontalDivider:{border:`1px solid ${e.palette.gray.secondary}`,width:"100%"},firstText:{marginBottom:e.spacing(1),color:e.palette.primary.main},errorText:{color:e.palette.error.main},successText:{color:e.palette.success.main},defaultText:{color:e.palette.misc["236192"]}})),b=e=>{let{messageType:s,pageHeader:t,headerText:n,description:i,buttonText:g,onClickHandler:b,loading:w,subHeader:M,formFields:j,goToHomePage:S,mobileText:F=null,displaySkeleton:v}=e,{isLessThan720px:C}=(0,p.A)(),{classes:P}=y({isLessThan720px:C}),T=(0,l.tz)(),O=(0,u.useRouter)(),{collectVirtualPageviewEvent:N}=(0,f.A)(),E=T.formatMessage({defaultMessage:"{pageHeader}",id:"components.shared.molecules.MessageWrapper.1528485039"},{pageHeader:t});return((0,r.useEffect)(()=>{N({virtual_page:E})},[]),v)?(0,A.jsxs)(a.A,{className:P.container,"data-testid":"verify-email-skeleton",children:[(0,A.jsxs)(o.A,{className:P.card,children:[(0,A.jsx)(a.A,{className:P.textSection,children:(0,A.jsx)(x.A,{variant:"rectangular",width:450,height:"1rem"})}),(0,A.jsx)(m.A,{orientation:"horizontal",className:P.horizontalDivider}),(0,A.jsx)(a.A,{className:P.description,children:(0,A.jsx)(x.A,{variant:"rectangular",width:375,height:"1rem"})}),(0,A.jsx)(a.A,{className:P.buttonSection,sx:{mb:2,mt:2},children:(0,A.jsx)(x.A,{variant:"rectangular",width:375,height:"1rem"})})]}),(0,A.jsx)(a.A,{sx:{mt:2},children:(0,A.jsx)(x.A,{variant:"rectangular",width:250,height:"1rem"})})]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(h(),{children:(0,A.jsx)("title",{children:E})}),(0,A.jsxs)(a.A,{className:P.container,children:[(0,A.jsxs)(o.A,{className:P.card,children:[(0,A.jsxs)(a.A,{className:P.textSection,children:[(0,A.jsx)(d.A,{variant:"h2",component:"h1",className:"success"===s?P.successText:"error"===s?P.errorText:"default"===s?P.defaultText:P.firstText,"data-testid":`message-wrapper-${s}-header`,children:T.formatMessage({defaultMessage:"{headerText}",id:"components.shared.molecules.MessageWrapper.491865533",id:"components.shared.molecules.MessageWrapper.491865533",id:"components.shared.molecules.MessageWrapper.491865533",id:"components.shared.molecules.MessageWrapper.491865533",id:"components.shared.molecules.MessageWrapper.491865533",id:"components.shared.molecules.MessageWrapper.491865533"},{headerText:n})}),M&&(0,A.jsx)(a.A,{children:M})]}),(0,A.jsx)(m.A,{orientation:"horizontal",className:P.horizontalDivider}),i&&(0,A.jsx)(a.A,{className:P.description,"data-testid":`message-wrapper-${s}-desc`,children:(0,A.jsx)(d.A,{variant:"h5",className:P.descriptionText,children:T.formatMessage({defaultMessage:"{description}",id:"components.shared.molecules.MessageWrapper.1033553748",id:"components.shared.molecules.MessageWrapper.1033553748",id:"components.shared.molecules.MessageWrapper.1033553748",id:"components.shared.molecules.MessageWrapper.1033553748",id:"components.shared.molecules.MessageWrapper.1033553748",id:"components.shared.molecules.MessageWrapper.1033553748"},{description:i})})}),j,(0,A.jsx)(a.A,{className:P.buttonSection,sx:{mb:2,mt:2},children:(0,A.jsx)(c.A,{color:"primary",variant:"contained",className:P.button,type:"submit","data-testid":`message-wrapper-${s}-button`,onClick:b||(()=>{O.push("/")}),loading:w,buttonText:T.formatMessage({defaultMessage:"{buttonText}",id:"components.shared.molecules.MessageWrapper.2258218216",id:"components.shared.molecules.MessageWrapper.2258218216",id:"components.shared.molecules.MessageWrapper.2258218216",id:"components.shared.molecules.MessageWrapper.2258218216",id:"components.shared.molecules.MessageWrapper.2258218216",id:"components.shared.molecules.MessageWrapper.2258218216"},{buttonText:g})})})]}),S,F&&(0,A.jsx)(d.A,{className:P.mobileMessageText,children:F})]})]})}},29637:(e,s,t)=>{"use strict";t.d(s,{A:()=>g});var r=t(47175),a=t(1433),o=t(99220),n=t(24480),i=t(91341),c=t(5015),d=t(37876);let l=["loading","buttonText","pageTestId"];function m(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function p(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};
1s%2?m(Object(t),!0).forEach(function(s){(0,r.A)(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}let u=(0,o.n9)()(e=>({buttonSection:{display:"grid",justifyItems:"center",paddingTop:e.spacing(1)},button:{height:40,width:268,textTransform:"none"},buttonProgress:{position:"relative",bottom:e.spacing(4)}})),g=e=>{let{loading:s,buttonText:t,pageTestId:r}=e,o=(0,a.A)(e,l),{classes:m}=u();return(0,d.jsxs)(n.A,{className:m.buttonSection,sx:{mb:2},children:[(0,d.jsx)(i.A,p(p({color:"primary",variant:"contained",className:m.button,type:"submit","data-testid":`${r}-button`,disabled:!!s,"aria-label":t},o),{},{children:t})),s&&(0,d.jsx)(c.A,{size:24,className:m.buttonProgress,"data-testid":"circular-progress"})]})}},36605:(e,s,t)=>{"use strict";t.d(s,{n:()=>a});var r=t(66386);function a(e,s){let{register:t,handleSubmit:a,formState:{errors:o},setError:n,clearErrors:i,setValue:c,getValues:d,reset:l,control:m,trigger:p}=(0,r.mN)(e),u={};return s.forEach(e=>{let{name:s,options:r}=e;u[s]=t(s,r||{})}),{handleSubmit:a,errors:o,fields:u,setError:n,clearErrors:i,setValue:c,getValues:d,reset:l,control:m,trigger:p}}},61352:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>ee,default:()=>es});var r=t(58794),a=t(47175),o=t(14232),n=t(24480),i=t(90458),c=t(36605),d=t(40014),l=t(25508),m=t(99220),p=t(45105),u=t.n(p),g=t(37876);let h=()=>"function"==typeof window.turnstile?.render,x=e=>{let{siteKey:s,onToken:t,resetCount:r=0}=e,a=(0,o.useRef)(null),i=(0,o.useRef)(null),c=(0,o.useRef)(t),{0:d,1:l}=(0,o.useState)(h);return(0,o.useEffect)(()=>{c.current=t},[t]),(0,o.useEffect)(()=>{if(d)return;let e=0,s=setInterval(()=>{e+=1,h()?(clearInterval(s),l(!0)):e>=100&&clearInterval(s)},50);return()=>clearInterval(s)},[d]),(0,o.useEffect)(()=>{if(!s||!d)return;let e=!1;try{i.current=window.turnstile.render(a.current,{sitekey:s,theme:"light",callback:s=>{e||c.current(s)},"expired-callback":()=>{e||c.current("")},"error-callback":()=>{e||c.current("")}})}catch(s){e||c.current("")}return()=>{if(e=!0,null!=i.current){try{window.turnstile?.remove(i.current)}catch(e){}i.current=null}}},[s,d]),(0,o.useEffect)(()=>{if(r&&null!=i.current)try{window.turnstile?.reset(i.current)}catch(e){}},[r]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(n.A,{ref:a,"data-testid":"account-turnstile",sx:{display:"flex",justifyContent:"center"}}),(0,g.jsx)(u(),{src:"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",strategy:"afterInteractive"})]})};var f=t(29637),A=t(69364),y=t(59601),b=t(31462),w=t(6707),M=t(47404),j=t(41381),S=t(24648),F=t(92828),v=t(37277),C=t(15188),P=t(64269),T=t(5788),O=t(18708),N=t(56792),E=t(99476),z=t(89099),I=t(77328),k=t.n(I),L=t(33092),W=t(66386),D=t(61598),B=t(66260),R=t(45015),$=t(92712),_=t(90233),G=t(72226),K=t(17667),q=t(345),Z=t(12656),H=t(48080),U=t(37844);function V(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function Y(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?V(Object(t),!0).forEach(function(s){(0,a.A)(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}let J=(0,m.n9)()(e=>({container:{display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(2,0),marginBottom:e.spacing(5),[e.breakpoints.up("sm")]:{padding:e.spacing(6,0)}},cardContentSection:{width:268,margin:"auto",paddingTop:e.breakpoints.down(720)?e.spacing(3):e.spacing(6),paddingBottom:e.breakpoints.down(720)?e.spacing(3):e.spacing(15),paddingLeft:0,paddingRight:0,[e.breakpoints.up(720)]:{display:"grid",justifyItems:"center"}},card:{height:"95%",width:482,border:`1px solid ${e.palette.gray.secondary}`,borderRadius:"12px",backgroundColor:e.palette.common.white,[e.breakpoints.down(720)]:{display:"grid",justifyItems:"center",width:"100%",marginBottom:e.spacing(5),borderRadius:0,border:"none"}},buttonSection:{display:"grid",justifyItems:"center",paddingTop:e.spacing(1)},button:{height:40,width:268,textTransform:"none"},cardTitleSection:{padding:e.spacing(4),textAlign:"center",backgroundColor:(0,l.X4)(e.palette.gray.D1D9E2,.15),[e.breakpoints.down(720)]:{width:"100%"}},termsLabel:{fontSize:e.typography.body2.fontSize},signInLabel:{fontSize:e.typography.body1.fontSize,marginTop:e.spacing(4)},checkBox:{"& .MuiIconButton-root":{padding:0},alignItems:"flex-start",marginTop:e.spacing(-1)},horizontalDivider:{border:`1px solid ${e.palette.gray.secondary}`,width:"100%"},label:{display:"block",fontWeight:"bold",marginBottom:e.spacing(.5),lineHeight:"1.25rem"},inputTextField:{width:268,"& input":{height:e.spacing(2.5),padding:e.spacing(1.5)},"& .MuiFormHelperText-root":{margin:e.spacing(.25,0,0,0),lineHeight:"1rem"},"& fieldset.MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.palette.gray.secondary}`},"& .Mui-disabled":{backgroundColor:(0,l.X4)(e.palette.gray.D1D9E2,.15),padding:0,"& fieldset.MuiOutlinedInput-notchedOutline":{border:"none"}},"& p.Mui-disabled":{backgroundColor:"inherit"},"& input#eidm-emailid":{padding:e.spacing(1.5),borderRadius:e.shape.borderRadius}},inputFieldContainer:{marginBottom:e.spacing(2)},errorBorder:{"& .MuiInputBase-root":{border:`2px solid ${e.palette.error.main}`}},contentSection:{display:"inline-flex",width:268},firstText:{color:e.palette.primary.main,fontSize:e.typography.h2.fontSize},secondaryText:{marginTop:e.spacing(1),color:e.palette.text.primary},errorMessage:{color:e.palette.error.main,fontSize:e.typography.caption.fontSize},successMessage:{color:e.palette.success.main,fontSize:e.typography.caption.fontSize},countryError:{"& .MuiOutlinedInput-notchedOutline":{border:`2px solid ${e.palette.error.main}`}},passwordCriteriaSection:{border:`1px solid ${e.palette.gray.D1D9E2}`,backgroundColor:(0,l.X4)(e.palette.gray.D1D9E2,.15),fontSize:e.typography.caption.fontSize,marginTop:e.spacing(1),paddingTop:e.spacing(1),paddingRight:e.spacing(2),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),borderRadius:e.shape.borderRadius},listType:{listStyleType:"none",marginLeft:e.spacing(-1.5),fontSize:e.typography.caption.fontSize},discListType:{color:"inherit",listStyleType:"disc",fontSize:e.typography.caption.fontSize},passwordError:{color:e.palette.error.main},passwordSuccess:{color:e.palette.text.primary},successIcon:{color:e.palette.success.main},errorIcon:{color:e.palette.error.main},iconSize:{fontSize:e.typography.h2.fontSize},criteriaText:{display:"flex"},message:{paddingLeft:e.spacing(.5)},errorNotification:{marginBottom:e.spacing(2)},buttonProgress:{position:"relative",bottom:"32px"},selectWidth:{width:268,padding:e.spacing(2.75,0)},srOnly:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:0}}
1)),X=e=>{let s,t,a,{siteKey:l="",disableTurnstile:m=!1,createAccountToken:p="",formId:u="",emailLookupUrl:h="",onSubmitUrl:I="",onSuccessRoute:V="",termsConditionsLink:X=""}=e,{classes:Q,cx:ee}=J(),es=(0,r.tz)(),et=(0,A.Ym)(),er=(0,z.useRouter)(),{countryList:ea}=(()=>{let e=(0,r.tz)(),s={type:"region"},{country:t}=(0,A.mf)(),a=["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","CV","KH","CM","CA","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CW","CY","CZ","DK","DJ","DM","DO","TP","EC","EG","SV","GQ","ER","EE","SZ","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MK","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RW","BL","KN","LC","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SR","SJ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"];return{defaultKey:t||"Select",countryList:(0,o.useMemo)(()=>a?.map((t,r)=>({key:t,value:e.formatDisplayName(t,s)})),[])}})(),[eo]=(0,L.lT)(["wc_lang","wc_location"]),en=eo?.wc_lang&&eo?.wc_location?`${eo?.wc_lang}-${eo?.wc_location?.shortCountry}`:"",ei=eo?.wc_location||"",{0:ec,1:ed}=(0,o.useState)(!1),{0:el,1:em}=(0,o.useState)([]),{0:ep,1:eu}=(0,o.useState)(!1),{0:eg,1:eh}=(0,o.useState)(!1),{state:ex}=(0,B.u)({actions:{updateAction:R.E}}),ef=["zh-cn","zh-tw","pseudo"].includes(et)?"en":et,eA=`https://policies.oclc.org/${ef}/privacy/privacy-statement.html`,{country:ey}=(0,A.mf)(),eb=(0,A.EM)(),{collectVirtualPageviewEvent:ew}=(0,K.A)(),eM=(0,o.useRef)(!1),ej={email:"",password:"",confirmPassword:"",showPassword:!1,showConfirmPassword:!1,country:ei?.shortCountry||"Select",originalCountry:ei?.shortCountry||ey,language:en||eb,acceptTerms:!1,showPasswordSuccess:!1,showConfirmPasswordSuccess:!1};(0,o.useEffect)(()=>{eM.current||(eM.current=!0)},[]),(0,o.useEffect)(()=>{e$("email",eR("email")||ex?.ldapEmail)},[ex.ldapEmail]);let{0:eS,1:eF}=(0,o.useState)(""),{0:ev,1:eC}=(0,o.useState)(!1),{0:eP,1:eT}=(0,o.useState)(0),eO=(0,o.useCallback)(e=>{eF(e||""),e&&eC(!1)},[]),eN=(0,o.useCallback)(()=>{eF(""),eT(e=>e+1)}
1,[]),{0:eE,1:ez}=(0,o.useState)(ej),{0:eI,1:ek}=(0,o.useState)(""),eL=[{name:"email",options:{required:es.formatMessage({defaultMessage:"Required field",id:"components.shared.organisms.AccountForm.index.2369435044"}),pattern:{value:G.s.email,message:es.formatMessage({defaultMessage:"Enter a valid email address",id:"components.shared.organisms.AccountForm.index.1479782176"})},validate:{IsExistingEmail:e=>!el.some(s=>s.toLowerCase()===e.toLowerCase())||es.formatMessage({defaultMessage:"Email address already in use",id:"components.shared.organisms.AccountForm.index.3756192732"})}}},{name:"password",options:{validate:{required:e=>!!e||es.formatMessage({defaultMessage:"Required field",id:"components.shared.organisms.AccountForm.index.2369435044"}),invalidPassword:e=>eV(e)||es.formatMessage({defaultMessage:"Password requirements not met",id:"components.shared.organisms.AccountForm.index.2557501713"})}}},{name:"confirmPassword",options:{validate:{required:e=>!!e||es.formatMessage({defaultMessage:"Required field",id:"components.shared.organisms.AccountForm.index.2369435044"}),passwordNotMatched:e=>eR("password")&&e===eR("password")||es.formatMessage({defaultMessage:"Password does not match",id:"components.shared.organisms.AccountForm.index.2603474562"})}}},{name:"country",options:{validate:{required:e=>"Select"!==e&&""!==e||es.formatMessage({defaultMessage:"Required field",id:"components.shared.organisms.AccountForm.index.2369435044"})}}},{name:"acceptTerms",options:{validate:{required:e=>!!e||es.formatMessage({defaultMessage:"Required field",id:"components.shared.organisms.AccountForm.index.2369435044"})}}}],{handleSubmit:eW,errors:eD,fields:eB,getValues:eR,setValue:e$,control:e_,trigger:eG}=(0,c.n)({defaultValues:ej,mode:"onBlur",reValidateMode:"onChange",shouldFocusError:!0},eL),eK=(0,o.useCallback)(async e=>{ed(!0);try{let s;if("create-account"===u)if((s=await (0,D.t)(I,{method:"POST",data:{email:eR("email"),password:eR("password"),country:eR("country"),originalCountry:ej.originalCountry,language:ej.language,active:!1,turnstileToken:e,createAccountToken:p}})).ok){eu(!1);let e=er?.query?.mobile;er.push({pathname:V,query:e&&"mobile=true"})}else if(ed(!1),eZ(),eN(),422===s.status){let e=await s.json().catch(()=>null),t=e?.message==="Unable to process this request"||e?.message==="Security check failed";eu(!!t||e3)}else eu(!0)}catch(e){ed(!1),eZ(),eN(),eu(!0),console.error(e?.message||"error")}},[]),eq=(0,o.useCallback)(async e=>{ed(!0);try{(await (0,D.t)(`${h}?email=${eR("email")}`)).json().then(s=>{s?.email?(em([...el,s.email]),eZ(),eN(),ed(!1)):eK(e)}).catch(()=>{eZ(),eN(),eu(!0),ed(!1)})}catch{ed(!1),eZ(),eN(),eu(!0)}},[el,eK]),eZ=()=>{e$("password",""),e$("confirmPassword",""),e1("")};(0,o.useEffect)(()=>{el?.length&&eG("email")},[el]);let eH=()=>{ez(Y(Y({},eE),{},{showPassword:!eE.showPassword,showConfirmPassword:!eE.showConfirmPassword}))},eU=e=>{e.preventDefault()},eV=e=>{let s=e&&eY(e)||{};return!Object?.keys(s)?.some(e=>s[e])},eY=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s={alphaNumericError:!1,invalidSplCharError:!1,passwordLengthError:!1},t=e.match(/[;:'.]/);return/\W|\d/.test(e)||(s.alphaNumericError=!0),t&&t.length>0&&(s.invalidSplCharError=!0),e.length<9&&(s.passwordLengthError=!0),s},eJ=es.formatMessage({defaultMessage:"Must be at least 9 characters",id:"components.shared.organisms.AccountForm.index.3998542212"}),eX=es.formatMessage({defaultMessage:"Must contain at least one numeric or special character (e.g. 1, %, *, $ and so on",id:"components.shared.organisms.AccountForm.index.3065088665"}),eQ=es.formatMessage({defaultMessage:"Do not use semicolons(;), colons(:), apostrophes(') or periods(.)",id:"components.shared.organisms.AccountForm.index.2257237055"}),e0=function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],e)?(0,g.jsx)("span",{"aria-live":"assertive",className:Q.errorMessage,children:e}):"review"!==u?(0,g.jsx)($.A,{size:16,axis:"vertical"}):void 0},e1=e=>{let s=eY(e),t=s.alphaNumericError,r=s.passwordLengthError,a=s.invalidSplCharError,o=(0,g.jsx)(E.A,{className:ee(Q.iconSize,Q.errorIcon),"aria-label":"Error","aria-hidden":"false"}),i=(0,g.jsx)(N.A,{className:ee(Q.iconSize,Q.successIcon),"aria-label":"Success","aria-hidden":"false"}),c=r?o:i,d=t?o:i,l=a?o:i;return e$("password",e),ek((0,g.jsx)(n.A,{id:"password-requirements",className:Q.passwordCriteriaSection,children:(0,g.jsxs)(q.A,{sx:{"& .MuiListItem-root":{py:.5,px:0,alignItems:"flex-start"},"& .MuiListItemIcon-root":{minWidth:"32px"}},children:[(0,g.jsxs)(Z.Ay,{id:"character-minimum",children:[(0,g.jsx)(H.A,{children:c}),(0,g.jsx)(U.A,{primary:eJ,slotProps:{primary:{variant:"caption"}}})]}),(0,g.jsxs)(Z.Ay,{id:"character-requirement",children:[(0,g.jsx)(H.A,{children:d}),(0,g.jsx)(U.A,{primary:eX,slotProps:{primary:{variant:"caption"}}})]}),(0,g.jsxs)(Z.Ay,{id:"character-not-use",children:[(0,g.jsx)(H.A,{children:l}),(0,g.jsx)(U.A,{primary:eQ,slotProps:{primary:{variant:"caption"}}})]})]})})),!0},e2=es.formatMessage({defaultMessage:"Unable to process your request. Please try again.",id:"components.shared.organisms.AccountForm.index.91912734"}),e3=es.formatMessage({defaultMessage:"We couldn't use this email address. Please try a different one.",id:"c
1omponents.shared.organisms.AccountForm.index.793660202"}),e4=es.formatMessage({defaultMessage:"Email address",id:"components.shared.organisms.AccountForm.index.1766832403"}),e5=es.formatMessage({defaultMessage:"Password",id:"components.shared.organisms.AccountForm.index.2237029987"}),e6=es.formatMessage({defaultMessage:"Confirm password",id:"components.shared.organisms.AccountForm.index.4056924605"}),e7=es.formatMessage({defaultMessage:"Select Country/Region",id:"components.shared.organisms.AccountForm.index.2043550961"}),e8=es.formatMessage({defaultMessage:"Please complete the security check to continue.",id:"components.shared.organisms.AccountForm.index.4154670424"}),e9=es.formatMessage({defaultMessage:"I agree to the <a>OCLC Terms of Service</a> and <b>Privacy Policy</b> and confirm that I am at least 16 years old.",id:"components.shared.organisms.AccountForm.index.247217929"},{a:e=>(0,g.jsx)(S.A,{"data-testid":`${u}-terms-link`,href:X,children:e}),b:e=>(0,g.jsx)(S.A,{"data-testid":`${u}-privacy-policy-link`,href:eA,children:e})}),se=es.formatMessage({defaultMessage:"You must accept OCLC Terms of Service and Privacy Policy",id:"components.shared.organisms.AccountForm.index.2575337659"}),ss=`${(e=>{if("create-account"===e)return es.formatMessage({defaultMessage:"Create Account",id:"components.shared.organisms.AccountForm.index.56258780"})})(u)}
1 | ${es.formatMessage({defaultMessage:"WorldCat.org",id:"components.shared.organisms.AccountForm.index.3624456636"})}`,st=es.formatMessage({defaultMessage:"Create an account on WorldCat.org to favorite libraries, create lists, and connect to libraries.",id:"components.shared.organisms.AccountForm.index.2239425822"}),sr=(0,_.p)().cmsLogoPath.url;return(0,o.useEffect)(()=>{ew({virtual_page:ss})},[ss]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(k(),{children:[(0,g.jsx)("title",{children:ss}),(0,g.jsx)("meta",{name:"description",content:st}),(0,g.jsx)("meta",{name:"facebook-domain-verification",content:"ct6p8jbb66z6nu28qz4817jrz0ed1a"}),(0,g.jsx)("meta",{property:"og:url",content:"https://search.worldcat.org/create-account"}),(0,g.jsx)("meta",{property:"og:type",content:"website"}),(0,g.jsx)("meta",{property:"og:title",content:ss}),(0,g.jsx)("meta",{property:"og:description",content:st}),(0,g.jsx)("meta",{property:"og:image",content:sr})]}),(0,g.jsx)("form",{id:`${u}-form`,"data-testid":`${u}-form`,onSubmit:eW(()=>{if(eu(!1),!eD.length){if(!m&&!eS)return void eC(!0);eC(!1),eq(eS)}}),className:Q.form,children:(0,g.jsx)(n.A,{role:"main",className:Q.container,children:(0,g.jsxs)(i.A,{className:Q.card,children:[(0,g.jsx)(n.A,{className:Q.cardTitleSection,children:(0,g.jsx)(d.A,{variant:"h1",className:Q.firstText,"data-testid":`${u}-header`,children:(e=>{if("create-account"===e)return es.formatMessage({defaultMessage:"Create a WorldCat.org Account",id:"components.shared.organisms.AccountForm.index.2476618347"})})(u)})}),(0,g.jsx)(b.A,{orientation:"horizontal",className:Q.horizontalDivider}),(0,g.jsxs)(n.A,{className:Q.cardContentSection,children:[ep&&(0,g.jsx)(n.A,{className:Q.errorNotification,children:(0,g.jsx)(T.A,{open:!0,style:{width:"100%"},level:"page",variant:"error",role:"alert","aria-label":"string"==typeof ep?ep:e2,children:"string"==typeof ep?ep:e2})}),(0,g.jsxs)(n.A,{sx:{mb:2},children:[(0,g.jsx)(w.A,{htmlFor:`${u}-email-address`,className:Q.label,children:e4}),(0,g.jsx)(O.A,Y(Y({variant:"outlined"},eB?.email),{},{size:"medium",fullWidth:!0,className:Q.inputTextField,disabled:"create-account"!==u,placeholder:"create-account"!==u?ex.ldapEmail:"",error:!!eD?.email?.message,role:"alert",autoComplete:"username",helperText:e0(eD?.email?.message,"eidm-emailid"),slotProps:{htmlInput:{id:"eidm-emailid","data-testid":"eidm-emailid","aria-label":e4}}}))]}),(0,g.jsxs)(n.A,{sx:{mb:2},children:[(0,g.jsx)(w.A,{htmlFor:`${u}-password`,className:Q.label,children:e5}),(0,g.jsx)(O.A,Y(Y({},eB?.password),{},{size:"medium",variant:"outlined",fullWidth:!0,className:Q.inputTextField,onChange:e=>{e1(e.target.value),eG("password")},onBlur:()=>{ez(Y(Y({},eE),{},{showPasswordSuccess:!1})),eG("password")},onFocus:()=>{eh(!0),e1(eR("password")||""),ez(Y(Y({},eE),{},{showPasswordSuccess:!0}))},autoComplete:"new-password",error:!!eD?.password?.message,type:eE.showPassword?"text":"password",slotProps:{input:{id:`${u}-password`,"data-testid":`${u}-password`,"aria-describedby":"password-status-separator character-minimum character-requirement character-not-use",endAdornment:(0,g.jsx)(C.A,{position:"end",children:(0,g.jsx)(P.A,{"aria-label":es.formatMessage({defaultMessage:"toggle password visibility",id:"components.shared.organisms.AccountForm.index.3842191456",id:"components.shared.organisms.AccountForm.index.3842191456",id:"components.shared.organisms.AccountForm.index.3842191456",id:"components.shared.organisms.AccountForm.index.3842191456",id:"components.shared.organisms.AccountForm.index.3842191456",id:"components.shared.organisms.AccountForm.index.3842191456",id:"components.shared.organisms.AccountForm.index.3842191456",id:"components.shared.organisms.AccountForm.index.3842191456",id:"components.shared.organisms.AccountForm.index.3842191456",id:"components.shared.organisms.AccountForm.index.3842191456"}),onClick:eH,onMouseDown:eU,edge:"end",size:"large",children:eE.showPassword?(0,g.jsx)(v.A,{}):(0,g.jsx)(F.A,{})})})}}})),(0,g.jsx)("span",{id:"password-status-separator",className:Q.srOnly,children:". "}),eg&&eI,(0,g.jsx)("p",{className:Q.srOnly,"aria-live":"polite","aria-atomic":!0,children:(s=3-Object.values(eY(eR("password")||"")).filter(
1Boolean).length,es.formatMessage({defaultMessage:"{metCount} of {total} requirements met",id:"components.shared.organisms.AccountForm.index.427921459",id:"components.shared.organisms.AccountForm.index.427921459",id:"components.shared.organisms.AccountForm.index.427921459",id:"components.shared.organisms.AccountForm.index.427921459",id:"components.shared.organisms.AccountForm.index.427921459",id:"components.shared.organisms.AccountForm.index.427921459",id:"components.shared.organisms.AccountForm.index.427921459",id:"components.shared.organisms.AccountForm.index.427921459"},{metCount:s,total:3}))})]}),(0,g.jsxs)(n.A,{sx:{mb:2},children:[(0,g.jsx)(w.A,{htmlFor:`${u}-confirm-password`,className:Q.label,children:e6}),(0,g.jsx)(O.A,Y(Y({},eB?.confirmPassword),{},{onChange:e=>{e$("confirmPassword",e.target.value),eG("confirmPassword")},onBlur:()=>{ez(Y(Y({},eE),{},{showConfirmPasswordSuccess:!1})),eG("confirmPassword")},autoComplete:"new-password",onFocus:()=>{ez(Y(Y({},eE),{},{showConfirmPasswordSuccess:!0}))},size:"medium",variant:"outlined",fullWidth:!0,error:!!eD?.confirmPassword?.message,className:Q.inputTextField,slotProps:{input:{id:`${u}-confirm-password`,"data-testid":`${u}-confirm-password`,endAdornment:(0,g.jsx)(C.A,{position:"end",children:(0,g.jsx)(P.A,{"aria-label":es.formatMessage({defaultMessage:"toggle confirm password visibility",id:"components.shared.organisms.AccountForm.index.2381870771",id:"components.shared.organisms.AccountForm.index.2381870771",id:"components.shared.organisms.AccountForm.index.2381870771",id:"components.shared.organisms.AccountForm.index.2381870771",id:"components.shared.organisms.AccountForm.index.2381870771",id:"components.shared.organisms.AccountForm.index.2381870771",id:"components.shared.organisms.AccountForm.index.2381870771",id:"components.shared.organisms.AccountForm.index.2381870771",id:"components.shared.organisms.AccountForm.index.2381870771",id:"components.shared.organisms.AccountForm.index.2381870771"}),onClick:eH,onMouseDown:eU,edge:"end",size:"large",children:eE.showConfirmPassword?(0,g.jsx)(v.A,{}):(0,g.jsx)(F.A,{})})})}},type:eE.showConfirmPassword?"text":"password",helperText:(t=eR("password"),a=eR("confirmPassword"),eE.showConfirmPasswordSuccess&&t&&a&&t===a?(0,g.jsx)("span",{className:Q.successMessage,children:es.formatMessage({defaultMessage:"Passwords match",id:"components.shared.organisms.AccountForm.index.2062298093",id:"components.shared.organisms.AccountForm.index.2062298093"})}):eD?.confirmPassword?.message?e0(eD?.confirmPassword?.message):(0,g.jsx)($.A,{size:16,axis:"vertical"}))}))]}),(0,g.jsxs)(n.A,{sx:{mb:2},children:[(0,g.jsx)(w.A,{htmlFor:`${u}-country-select`,className:Q.label,children:es.formatMessage({defaultMessage:"Country/Region",id:"components.shared.organisms.AccountForm.index.3001600093",id:"components.shared.organisms.AccountForm.index.3001600093",id:"components.shared.organisms.AccountForm.index.3001600093",id:"components.shared.organisms.AccountForm.index.3001600093",id:"components.shared.organisms.AccountForm.index.3001600093",id:"components.shared.organisms.AccountForm.index.3001600093",id:"components.shared.organisms.AccountForm.index.3001600093",id:"components.shared.organisms.AccountForm.index.3001600093"})}),(0,g.jsx)(n.A,{id:`${u}-country-select-box`,sx:{display:"flex"},children:(0,g.jsx)(W.xI,{name:"country",control:e_,rules:{validate:e=>void 0!==e&&"Select"!==e&&""!==e},defaultValue:ej?.country,render:e=>{let{field:{onChange:s,value:t="defaultValues?.country",name:r}}=e;return(0,g.jsxs)(M.A,{onChange:e=>{s(e),eG("country")},onBlur:()=>eG("country"),id:`${u}-country-select`,"data-testid":`${u}-country-select`,variant:"normal",style:{width:268},value:eM.current?t:"Select",selectProps:{"aria-label":e7},labelInfo:e7,className:ee(Q.selectWidth,eD?.country?Q.countryError:""),children:[(0,g.jsx)(j.A,{value:"Select",children:e7},"Select"),ea.map(e=>(0,g.jsx)(j.A,{value:e.key,id:e.key,children:e.value},e.key))]})}})}),eD?.country?(0,g.jsx)("span",{"aria-live":"assertive",className:Q.errorMessage,children:es.formatMessage({defaultMessage:"Required field",id:"components.shared.organisms.AccountForm.index.2369435044",id:"c
1omponents.shared.organisms.AccountForm.index.2369435044",id:"components.shared.organisms.AccountForm.index.2369435044",id:"components.shared.organisms.AccountForm.index.2369435044",id:"components.shared.organisms.AccountForm.index.2369435044",id:"components.shared.organisms.AccountForm.index.2369435044",id:"components.shared.organisms.AccountForm.index.2369435044",id:"components.shared.organisms.AccountForm.index.2369435044"})}):(0,g.jsx)($.A,{size:20,axis:"vertical"})]}),(0,g.jsxs)(n.A,{sx:{mb:2},children:[(0,g.jsxs)(n.A,{className:Q.contentSection,children:[(0,g.jsx)(W.xI,{control:e_,name:"acceptTerms",render:e=>{let{field:{onChange:s,onBlur:t,value:r=!1}}=e;return(0,g.jsx)(y.A,{"data-testid":`${u}-terms-checkbox`,onBlur:t,onChange:s,checked:r,slotProps:{input:{"aria-label":es.formatMessage({defaultMessage:"I agree to the OCLC Terms of Service and Privacy Policy and confirm that I am at least 16 years old.",id:"components.shared.organisms.AccountForm.index.2384170656",id:"components.shared.organisms.AccountForm.index.2384170656",id:"components.shared.organisms.AccountForm.index.2384170656",id:"components.shared.organisms.AccountForm.index.2384170656",id:"components.shared.organisms.AccountForm.index.2384170656",id:"components.shared.organisms.AccountForm.index.2384170656",id:"components.shared.organisms.AccountForm.index.2384170656",id:"components.shared.organisms.AccountForm.index.2384170656",id:"components.shared.organisms.AccountForm.index.2384170656",id:"components.shared.organisms.AccountForm.index.2384170656"})}}})}}),(0,g.jsx)(w.A,{htmlFor:"terms-and-conditions",className:Q.termsLabel,children:e9})]}),eD.acceptTerms?.message?(0,g.jsx)(T.A,{open:!0,level:"inline",variant:"error",style:{alignItems:"flex-start",fontSize:12,marginTop:12},children:se}):""]}),(0,g.jsx)(f.A,{pageTestId:`${u}`,loading:ec,buttonText:(e=>{if("create-account"===e)return es.formatMessage({defaultMessage:"Create WorldCat.org Account",id:"components.shared.organisms.AccountForm.index.1432796864"})})(u)}),er?.query?.mobile&&(0,g.jsx)(n.A,{className:Q.signInLabel,children:(0,g.jsx)(S.A,{"data-testid":"mobile-signin-email",href:"wcmobile://sign-in",children:es.formatMessage({defaultMessage:"Already have an account? Sign in here",id:"components.shared.organisms.AccountForm.index.172540341",id:"components.shared.organisms.AccountForm.index.172540341",id:"components.shared.organisms.AccountForm.index.172540341",id:"components.shared.organisms.AccountForm.index.172540341",id:"components.shared.organisms.AccountForm.index.172540341",id:"components.shared.organisms.AccountForm.index.172540341",id:"components.shared.organisms.AccountForm.index.172540341",id:"components.shared.organisms.AccountForm.index.172540341"})})}),!m&&(0,g.jsxs)(n.A,{sx:{mb:1},children:[(0,g.jsx)(x,{siteKey:l,onToken:eO,resetCount:eP}),ev?(0,g.jsx)(T.A,{open:!0,level:"inline",variant:"error",role:"alert",style:{alignItems:"flex-start",fontSize:12},children:e8}):""]})]})]})})})]})};var Q=t(16273),ee=!0;let es=e=>{let{siteKey:s,termsConditionsLink:t,disableCreateAccount:a,disableTurnstile:o,createAccountToken:i}=e,c=(0,r.tz)();return a?(0,g.jsx)(Q.A,{messageType:"error",pageHeader:c.formatMessage({defaultMessage:"Create Account",id:"pages.create-account.index.56258780",id:"pages.create-account.index.56258780"}),headerText:c.formatMessage({defaultMessage:"Account creation unavailable",id:"pages.create-account.index.1713973735",id:"pages.create-account.index.1713973735"}),description:c.formatMessage({defaultMessage:"Sorry, you cannot create an account right now. Please contact OCLC.",id:"pages.create-account.index.723573131",id:"pages.create-account.index.723573131"}),buttonText:c.formatMessage({defaultMessage:"Go to WorldCat.org",id:"pages.create-account.index.2301807897",id:"pages.create-account.index.2301807897"}),formFields:(0,g.jsx)(n.A,{sx:{textAlign:"center",mt:2,mb:2},children:(0,g.jsx)(S.A,{"data-testid":"create-account-disabled-contact-us-link",href:"https://help.oclc.org/Librarian_Toolbox/Contact_OCLC_Support/Contact_OCLC_Support_in_your_region",children:c.formatMessage({defaultMessage:"Contact Us",i
1d:"pages.create-account.index.280775478",id:"pages.create-account.index.280775478",id:"pages.create-account.index.280775478",id:"pages.create-account.index.280775478"})})})}):(0,g.jsx)(X,{siteKey:s,disableTurnstile:o,createAccountToken:i,termsConditionsLink:t,formId:"create-account",emailLookupUrl:"/api/email-lookup",onSubmitUrl:"/api/create-account",onSuccessRoute:"/create-account/success"})}},72226:(e,s,t)=>{"use strict";t.d(s,{s:()=>r});let r=Object.freeze({email:/^(?=.{5,256}$)(?=[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]{1,64}@)([a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z])?)$/})},90233:(e,s,t)=>{"use strict";t.d(s,{p:()=>a});var r=t(14232);let a=()=>{let e=(0,r.useMemo)(()=>({url:"https://www.datocms-assets.com/29926/1667936507-logo-worldcat-3840x2160.png"}),[]);return{cmsLogoPath:e,cmsIconPath:(0,r.useMemo)(()=>({url:"https://www.datocms-assets.com/29926/1700599761-thumbnail.jpg"}),[]),noResultsPath:(0,r.useMemo)(()=>({url:"https://www.datocms-assets.com/29926/1699999451-no-results.svg"}),[])}}},92712:(e,s,t)=>{"use strict";t.d(s,{A:()=>l});var r=t(47175),a=t(1433);t(14232);var o=t(9841),n=t(37876);let i=["size","axis","style"];function c(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,r)}return t}function d(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?c(Object(t),!0).forEach(function(s){(0,r.A)(e,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}let l=e=>{let{size:s,axis:t,style:r={}}=e,c=(0,a.A)(e,i),l="vertical"===t?"100%":s,m="horizontal"===t?1:s;return(0,n.jsx)("span",d({style:d(d({display:"block",width:l,minWidth:l,height:m,minHeight:m},r),{},{backgroundColor:o.A.palette.common.white})},c))}},94569:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/create-account",function(){return t(61352)}])}},e=>{e.O(0,[8513,6386,5105,8637,828,8052,1598,636,6593,8792],()=>e(e.s=94569)),_N_E=e.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.