@goodhood-web/nebenan-base 4.1.0-development.21 → 4.1.0-development.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -102,7 +102,7 @@ vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|
|
102
102
|
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|
103
103
|
and ensure you are accounting for this risk.
|
|
104
104
|
|
|
105
|
-
`)});const o=e.nonTextTags||["script","style","textarea","option"];let l,u;e.allowedAttributes&&(l={},u={},zo(e.allowedAttributes,function(D,L){l[L]=[];const R=[];D.forEach(function(I){typeof I=="string"&&I.indexOf("*")>=0?R.push(dp(I).replace(/\\\*/g,".*")):l[L].push(I)}),R.length&&(u[L]=new RegExp("^("+R.join("|")+")$"))}));const d={},c={},f={};zo(e.allowedClasses,function(D,L){if(l&&(Si(l,L)||(l[L]=[]),l[L].push("class")),d[L]=D,Array.isArray(D)){const R=[];d[L]=[],f[L]=[],D.forEach(function(I){typeof I=="string"&&I.indexOf("*")>=0?R.push(dp(I).replace(/\\\*/g,".*")):I instanceof RegExp?f[L].push(I):d[L].push(I)}),R.length&&(c[L]=new RegExp("^("+R.join("|")+")$"))}});const h={};let g;zo(e.transformTags,function(D,L){let R;typeof D=="function"?R=D:typeof D=="string"&&(R=$o.simpleTransform(D)),L==="*"?g=R:h[L]=R});let p,v,w,A,y,z,C=!1;B();const O=new wE.Parser({onopentag:function(D,L){if(e.enforceHtmlBoundary&&D==="html"&&B(),y){z++;return}const R=new a(D,L);v.push(R);let I=!1;const W=!!R.text;let H;if(Si(h,D)&&(H=h[D](D,L),R.attribs=L=H.attribs,H.text!==void 0&&(R.innerText=H.text),D!==H.tagName&&(R.name=D=H.tagName,A[p]=H.tagName)),g&&(H=g(D,L),R.attribs=L=H.attribs,D!==H.tagName&&(R.name=D=H.tagName,A[p]=H.tagName)),(!s(D)||e.disallowedTagsMode==="recursiveEscape"&&!CE(w)||e.nestingLimit!=null&&p>=e.nestingLimit)&&(I=!0,w[p]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(D)!==-1&&(y=!0,z=1),w[p]=!0),p++,I){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(R.innerText&&!W){const x=M(R.innerText);e.textFilter?i+=e.textFilter(x,D):i+=M(R.innerText),C=!0}return}r=i,i=""}i+="<"+D,D==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(R.innerText=""),(!l||Si(l,D)||l["*"])&&zo(L,function(x,Z){if(!OE.test(Z)){delete R.attribs[Z];return}if(x===""&&!e.allowedEmptyAttributes.includes(Z)&&(e.nonBooleanAttributes.includes(Z)||e.nonBooleanAttributes.includes("*"))){delete R.attribs[Z];return}let Y=!1;if(!l||Si(l,D)&&l[D].indexOf(Z)!==-1||l["*"]&&l["*"].indexOf(Z)!==-1||Si(u,D)&&u[D].test(Z)||u["*"]&&u["*"].test(Z))Y=!0;else if(l&&l[D]){for(const X of l[D])if(bE(X)&&X.name&&X.name===Z){Y=!0;let K="";if(X.multiple===!0){const $=x.split(" ");for(const q of $)X.values.indexOf(q)!==-1&&(K===""?K=q:K+=" "+q)}else X.values.indexOf(x)>=0&&(K=x);x=K}}if(Y){if(e.allowedSchemesAppliedToAttributes.indexOf(Z)!==-1&&S(D,x)){delete R.attribs[Z];return}if(D==="script"&&Z==="src"){let X=!0;try{const K=F(x);if(e.allowedScriptHostnames||e.allowedScriptDomains){const $=(e.allowedScriptHostnames||[]).find(function(_){return _===K.url.hostname}),q=(e.allowedScriptDomains||[]).find(function(_){return K.url.hostname===_||K.url.hostname.endsWith(`.${_}`)});X=$||q}}catch{X=!1}if(!X){delete R.attribs[Z];return}}if(D==="iframe"&&Z==="src"){let X=!0;try{const K=F(x);if(K.isRelativeUrl)X=Si(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const $=(e.allowedIframeHostnames||[]).find(function(_){return _===K.url.hostname}),q=(e.allowedIframeDomains||[]).find(function(_){return K.url.hostname===_||K.url.hostname.endsWith(`.${_}`)});X=$||q}}catch{X=!1}if(!X){delete R.attribs[Z];return}}if(Z==="srcset")try{let X=AE(x);if(X.forEach(function(K){S("srcset",K.url)&&(K.evil=!0)}),X=cp(X,function(K){return!K.evil}),X.length)x=zE(cp(X,function(K){return!K.evil})),R.attribs[Z]=x;else{delete R.attribs[Z];return}}catch{delete R.attribs[Z];return}if(Z==="class"){const X=d[D],K=d["*"],$=c[D],q=f[D],_=f["*"],ue=c["*"],se=[$,ue].concat(q,_).filter(function(ve){return ve});if(X&&K?x=N(x,fp(X,K),se):x=N(x,X||K,se),!x.length){delete R.attribs[Z];return}}if(Z==="style"){if(e.parseStyleAttributes)try{const X=kE(D+" {"+x+"}",{map:!1}),K=P(X,e.allowedStyles);if(x=j(K),x.length===0){delete R.attribs[Z];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+D+" {"+x+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete R.attribs[Z];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}i+=" "+Z,x&&x.length?i+='="'+M(x,!0)+'"':e.allowedEmptyAttributes.includes(Z)&&(i+='=""')}else delete R.attribs[Z]}),e.selfClosing.indexOf(D)!==-1?i+=" />":(i+=">",R.innerText&&!W&&!e.textFilter&&(i+=M(R.innerText),C=!0)),I&&(i=r+M(i),r="")},ontext:function(D){if(y)return;const L=v[v.length-1];let R;if(L&&(R=L.tag,D=L.innerText!==void 0?L.innerText:D),e.disallowedTagsMode==="completelyDiscard"&&!s(R))D="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(R==="script"||R==="style"))i+=D;else{const I=M(D,!1);e.textFilter&&!C?i+=e.textFilter(I,R):C||(i+=I)}if(v.length){const I=v[v.length-1];I.text+=D}},onclosetag:function(D,L){if(y)if(z--,!z)y=!1;else return;const R=v.pop();if(!R)return;if(R.tag!==D){v.push(R);return}y=e.enforceHtmlBoundary?D==="html":!1,p--;const I=w[p];if(I){if(delete w[p],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){R.updateParentNodeText();return}r=i,i=""}if(A[p]&&(D=A[p],delete A[p]),e.exclusiveFilter&&e.exclusiveFilter(R)){i=i.substr(0,R.tagPosition);return}if(R.updateParentNodeMediaChildren(),R.updateParentNodeText(),e.selfClosing.indexOf(D)!==-1||L&&!s(D)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){I&&(i=r,r="");return}i+="</"+D+">",I&&(i=r+M(i),r=""),C=!1}},e.parser);return O.write(n),O.end(),i;function B(){i="",p=0,v=[],w={},A={},y=!1,z=0}function M(D,L){return typeof D!="string"&&(D=D+""),e.parser.decodeEntities&&(D=D.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),L&&(D=D.replace(/"/g,"""))),D=D.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),L&&(D=D.replace(/"/g,""")),D}function S(D,L){for(L=L.replace(/[\x00-\x20]+/g,"");;){const W=L.indexOf("<!--");if(W===-1)break;const H=L.indexOf("-->",W+4);if(H===-1)break;L=L.substring(0,W)+L.substring(H+3)}const R=L.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!R)return L.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const I=R[1].toLowerCase();return Si(e.allowedSchemesByTag,D)?e.allowedSchemesByTag[D].indexOf(I)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(I)===-1}function F(D){if(D=D.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),D.startsWith("relative:"))throw new Error("relative: exploit attempt");let L="relative://relative-site";for(let W=0;W<100;W++)L+=`/${W}`;const R=new URL(D,L);return{isRelativeUrl:R&&R.hostname==="relative-site"&&R.protocol==="relative:",url:R}}function P(D,L){if(!L)return D;const R=D.nodes[0];let I;return L[R.selector]&&L["*"]?I=fp(L[R.selector],L["*"]):I=L[R.selector]||L["*"],I&&(D.nodes[0].nodes=R.nodes.reduce(T(I),[])),D}function j(D){return D.nodes[0].nodes.reduce(function(L,R){return L.push(`${R.prop}:${R.value}${R.important?" !important":""}`),L},[]).join(";")}function T(D){return function(L,R){return Si(D,R.prop)&&D[R.prop].some(function(W){return W.test(R.value)})&&L.push(R),L}}function N(D,L,R){return L?(D=D.split(/\s+/),D.filter(function(I){return L.indexOf(I)!==-1||R.some(function(W){return W.test(I)})}).join(" ")):D}}const BE={decodeEntities:!0};$o.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0};$o.simpleTransform=function(n,e,t){return t=t===void 0?!0:t,e=e||{},function(i,r){let a;if(t)for(a in e)r[a]=e[a];else r=e;return{tagName:n,attribs:r}}};const Lb=St(PE),ME="_markdown_1jzce_141",hp={markdown:ME,"markdown--external-links":"_markdown--external-links_1jzce_153"},SE={allowedAttributes:{a:["href","target"]},allowedTags:["a","strong"]};function EE({className:n,elementTag:e="span",inline:t=!1,isExternalLinksIcon:i,text:r}){const a=Lb(r,SE),s=e;return m.jsx(s,{className:ae(hp.markdown,{[hp["markdown--external-links"]]:i},n),dangerouslySetInnerHTML:{__html:t?Le.parseInline(a,{breaks:!0}):Le.parse(a,{breaks:!0})}})}const FE="_react-datepicker__day-names_1ftws_120",TE="_react-datepicker__week_1ftws_124",RE="_react-datepicker__day--outside-month_1ftws_131",jE="_react-datepicker_1ftws_120",DE="_typography-landing--claim_1ftws_141",IE="_typography-landing--claim-uppercase_1ftws_179",NE="_typography-landing--h1_1ftws_217",LE="_typography-landing--h1-uppercase_1ftws_255",HE="_typography-landing--h2_1ftws_293",ZE="_typography-landing--h3_1ftws_331",WE="_typography-landing--h4_1ftws_369",GE="_typography-landing--h5_1ftws_394",YE="_typography-landing--h6_1ftws_419",QE="_typography-landing--overline_1ftws_444",XE="_typography-landing--body-large_1ftws_481",KE="_typography-landing--body-large-semibold_1ftws_505",UE="_typography-landing--body_1ftws_481",VE="_typography-landing--body-semibold_1ftws_540",JE="_typography-landing--body-italic_1ftws_551",qE="_typography-landing--quote-large_1ftws_563",_E="_typography-landing--detail-small_1ftws_588",$E="_typography-landing--detail-small-bold_1ftws_599",eF="_typography-landing_1ftws_141",nF="_typography-product_1ftws_628",tF="_typography-product--h1_1ftws_639",iF="_typography-product--h2_1ftws_650",rF="_typography-product--h3_1ftws_661",aF="_typography-product--h4_1ftws_672",sF="_typography-product--h5_1ftws_683",oF="_typography-product--h6_1ftws_694",lF="_typography-product--h7_1ftws_705",uF="_typography-product--h8_1ftws_716",dF="_typography-product--body-large_1ftws_727",fF="_typography-product--body-regular_1ftws_749",cF="_typography-product--body-semibold_1ftws_771",hF="_typography-product--body-italic_1ftws_793",gF="_typography-product--body-text-link_1ftws_816",mF="_typography-product--detail-medium_1ftws_827",pF="_typography-product--detail-bold_1ftws_849",vF="_typography-product--detail-upper-case_1ftws_871",wF="_typography-product--detail-regular_1ftws_893",bF="_typography-product--detail-text-link_1ftws_915",gp={"react-datepicker__day-names":"_react-datepicker__day-names_1ftws_120",reactDatepickerDayNames:FE,"react-datepicker__week":"_react-datepicker__week_1ftws_124",reactDatepickerWeek:TE,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_1ftws_131",reactDatepickerDayOutsideMonth:RE,"react-datepicker":"_react-datepicker_1ftws_120",reactDatepicker:jE,"typography-landing--claim":"_typography-landing--claim_1ftws_141",typographyLandingClaim:DE,"typography-landing--claim-uppercase":"_typography-landing--claim-uppercase_1ftws_179",typographyLandingClaimUppercase:IE,"typography-landing--h1":"_typography-landing--h1_1ftws_217",typographyLandingH1:NE,"typography-landing--h1-uppercase":"_typography-landing--h1-uppercase_1ftws_255",typographyLandingH1Uppercase:LE,"typography-landing--h2":"_typography-landing--h2_1ftws_293",typographyLandingH2:HE,"typography-landing--h3":"_typography-landing--h3_1ftws_331",typographyLandingH3:ZE,"typography-landing--h4":"_typography-landing--h4_1ftws_369",typographyLandingH4:WE,"typography-landing--h5":"_typography-landing--h5_1ftws_394",typographyLandingH5:GE,"typography-landing--h6":"_typography-landing--h6_1ftws_419",typographyLandingH6:YE,"typography-landing--overline":"_typography-landing--overline_1ftws_444",typographyLandingOverline:QE,"typography-landing--body-large":"_typography-landing--body-large_1ftws_481",typographyLandingBodyLarge:XE,"typography-landing--body-large-semibold":"_typography-landing--body-large-semibold_1ftws_505",typographyLandingBodyLargeSemibold:KE,"typography-landing--body":"_typography-landing--body_1ftws_481",typographyLandingBody:UE,"typography-landing--body-semibold":"_typography-landing--body-semibold_1ftws_540",typographyLandingBodySemibold:VE,"typography-landing--body-italic":"_typography-landing--body-italic_1ftws_551",typographyLandingBodyItalic:JE,"typography-landing--quote-large":"_typography-landing--quote-large_1ftws_563",typographyLandingQuoteLarge:qE,"typography-landing--detail-small":"_typography-landing--detail-small_1ftws_588",typographyLandingDetailSmall:_E,"typography-landing--detail-small-bold":"_typography-landing--detail-small-bold_1ftws_599",typographyLandingDetailSmallBold:$E,"typography-landing":"_typography-landing_1ftws_141",typographyLanding:eF,"typography-product":"_typography-product_1ftws_628",typographyProduct:nF,"typography-product--h1":"_typography-product--h1_1ftws_639",typographyProductH1:tF,"typography-product--h2":"_typography-product--h2_1ftws_650",typographyProductH2:iF,"typography-product--h3":"_typography-product--h3_1ftws_661",typographyProductH3:rF,"typography-product--h4":"_typography-product--h4_1ftws_672",typographyProductH4:aF,"typography-product--h5":"_typography-product--h5_1ftws_683",typographyProductH5:sF,"typography-product--h6":"_typography-product--h6_1ftws_694",typographyProductH6:oF,"typography-product--h7":"_typography-product--h7_1ftws_705",typographyProductH7:lF,"typography-product--h8":"_typography-product--h8_1ftws_716",typographyProductH8:uF,"typography-product--body-large":"_typography-product--body-large_1ftws_727",typographyProductBodyLarge:dF,"typography-product--body-regular":"_typography-product--body-regular_1ftws_749",typographyProductBodyRegular:fF,"typography-product--body-semibold":"_typography-product--body-semibold_1ftws_771",typographyProductBodySemibold:cF,"typography-product--body-italic":"_typography-product--body-italic_1ftws_793",typographyProductBodyItalic:hF,"typography-product--body-text-link":"_typography-product--body-text-link_1ftws_816",typographyProductBodyTextLink:gF,"typography-product--detail-medium":"_typography-product--detail-medium_1ftws_827",typographyProductDetailMedium:mF,"typography-product--detail-bold":"_typography-product--detail-bold_1ftws_849",typographyProductDetailBold:pF,"typography-product--detail-upper-case":"_typography-product--detail-upper-case_1ftws_871",typographyProductDetailUpperCase:vF,"typography-product--detail-regular":"_typography-product--detail-regular_1ftws_893",typographyProductDetailRegular:wF,"typography-product--detail-text-link":"_typography-product--detail-text-link_1ftws_915",typographyProductDetailTextLink:bF};function AF(n){switch(n){case"h1":case"h1-uppercase":return"h1";case"h2":case"claim":case"claim-uppercase":return"h2";case"h3":case"h4":case"h5":return n;case"h6":case"overline":return"h6";default:return"span"}}const hr=n=>{const{as:e,children:t,className:i,fontSet:r="product",markdown:a=r==="landing",markdownInline:s=!0,type:o}=n,l=e||AF(o),u=ae(gp[`typography-${r}`],gp[`typography-${r}--${o}`],i);return m.jsx(m.Fragment,{children:typeof t=="string"&&a?m.jsx(EE,{className:u,text:t,inline:s,elementTag:l,isExternalLinksIcon:r==="landing"}):m.jsx(l,{className:u,"data-testid":n["data-testid"],children:t})})},kF="_inputDetails_wq68m_141",yF="_inputDetails__hintText_wq68m_147",xF="_inputDetails__errorText_wq68m_151",CF="_inputDetails__counter_wq68m_155",cu={inputDetails:kF,inputDetails__hintText:yF,inputDetails__errorText:xF,inputDetails__counter:CF},zF=({charCount:n,charLimit:e,errorText:t,hintText:i})=>{const r=`${n??0}/${e}`;return m.jsxs("div",{className:cu.inputDetails,children:[m.jsxs("div",{children:[i&&!t&&m.jsx(hr,{className:cu.inputDetails__hintText,type:"detail-medium",children:i}),t&&m.jsx(hr,{className:cu.inputDetails__errorText,type:"detail-bold",children:t})]}),!!e&&m.jsx(hr,{type:"detail-medium",className:cu.inputDetails__counter,children:r})]})},PF="_react-datepicker__day-names_gycxq_120",OF="_react-datepicker__week_gycxq_124",BF="_react-datepicker__day--outside-month_gycxq_131",MF="_react-datepicker_gycxq_120",SF="_container_gycxq_144",EF="_inputContainer_gycxq_152",FF="_inputContainer--disabled_gycxq_164",TF="_inputContainer--filled_gycxq_167",RF="_inputContainer--outlined_gycxq_173",jF="_inputContainer--error_gycxq_181",DF="_character_gycxq_186",IF="_inputContainer--sms_gycxq_189",NF="_inputContainer--active_gycxq_192",LF="_character--selected_gycxq_192",HF="_blink_gycxq_1",ZF="_input_gycxq_152",WF="_character__divider_gycxq_250",GF="_character__divider_gycxq_250",rt={"react-datepicker__day-names":"_react-datepicker__day-names_gycxq_120",reactDatepickerDayNames:PF,"react-datepicker__week":"_react-datepicker__week_gycxq_124",reactDatepickerWeek:OF,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_gycxq_131",reactDatepickerDayOutsideMonth:BF,"react-datepicker":"_react-datepicker_gycxq_120",reactDatepicker:MF,container:SF,inputContainer:EF,"inputContainer--disabled":"_inputContainer--disabled_gycxq_164",inputContainerDisabled:FF,"inputContainer--filled":"_inputContainer--filled_gycxq_167",inputContainerFilled:TF,"inputContainer--outlined":"_inputContainer--outlined_gycxq_173",inputContainerOutlined:RF,"inputContainer--error":"_inputContainer--error_gycxq_181",inputContainerError:jF,character:DF,"inputContainer--sms":"_inputContainer--sms_gycxq_189",inputContainerSms:IF,"inputContainer--active":"_inputContainer--active_gycxq_192",inputContainerActive:NF,"character--selected":"_character--selected_gycxq_192",characterSelected:LF,blink:HF,input:ZF,character__divider:WF,characterDivider:GF},YF=({disabled:n=!1,errorText:e,onComplete:t,type:i="invite",length:r=i==="sms"?6:10,variant:a="outlined",value:s=""})=>{const[o,l]=b.useState(s),[u,d]=b.useState(!1),c=b.useRef(null);b.useEffect(()=>{n&&d(!1)},[n]),b.useEffect(()=>{l(s)},[s]);const f=()=>{var z;(z=c.current)==null||z.focus()},h=z=>{["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(z.key)&&z.preventDefault()},g=z=>{const O=z.target.value.replace(/\s/g,"").slice(0,r);new RegExp("^[A-Za-zÀ-ÖØ-öø-ÿ0-9]*$").test(O)&&(l(O),O.length===r&&(t==null||t(O)))},p=z=>{d(!0),z.target.select()},v=()=>{d(!1),t==null||t(o)},w=()=>o,A=z=>w().length===z&&u,y=z=>i==="invite"&&z===Math.floor((r-1)/2);return m.jsxs("div",{"data-testid":"container",className:rt.container,children:[m.jsxs("div",{tabIndex:1,className:ae(rt.inputContainer,rt[`inputContainer--${a}`],rt[`inputContainer--${i}`],{[rt["inputContainer--disabled"]]:n,[rt["inputContainer--error"]]:!!e,[rt["inputContainer--active"]]:u}),onClick:f,children:[m.jsx("input",{"aria-label":"verification input",spellCheck:!1,ref:c,value:w(),className:ae(rt.input,{[rt["input--disabled"]]:!0}),onChange:g,onKeyDown:h,onFocus:p,onBlur:v,disabled:n}),Array.from({length:r},(z,C)=>m.jsxs(b.Fragment,{children:[m.jsx(E.Typography,{type:"h3",className:ae(rt.character,{[rt["character--selected"]]:A(C)}),children:w()[C]},C),y(C)&&m.jsx(E.Typography,{type:"h3",className:ae(rt.character,rt.character__divider)},`${C}-divider`)]},`${C}-fragment`))]}),e&&m.jsx(zF,{errorText:e})]})},QF=({disabled:n,length:e,name:t,rules:i,type:r,variant:a})=>{var u;const{control:s}=He.useFormContext(),{field:o,fieldState:l}=He.useController({control:s,name:t,rules:i});return m.jsx(YF,{disabled:n,length:e,type:r,variant:a,errorText:(u=l.error)==null?void 0:u.message,onComplete:o.onChange,value:o.value})},XF={codeField:n=>m.jsx(QF,{...n==null?void 0:n.fieldConfig},n.id),phoneInput:n=>m.jsx(cw,{...n==null?void 0:n.fieldConfig},n.id),tileButton:n=>m.jsx(fw,{...n==null?void 0:n.fieldConfig,id:n.id},n.id)},KF=n=>({canGoBack:!1,canGoNext:!1,fields:[{fieldConfig:{description:"Du bist zuhause? Dann ist diese Methode perfekt für einen schnellen Zugang zu deiner Nachbarschaft. Nicht zuhause? Wähle bitte eine andere Verifizierungsmethode.",header:"Standort freigeben",sticker:{color:"green",icon:"pin",size:"small"}},id:"formHeader",type:"formHeader"},{fieldConfig:{label:"Standort freigeben"},id:"submit-button",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"verification-methods",label:"Andere Verifizierungsmethoden",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"gps",onSubmit:n,pageViewtracking:{name:"verify_geo"},spacing:"md"}),UF=Ee.z.string({required_error:"Der Code muss genau 10 Zeichen lang sein und darf nur Buchstaben und Zahlen enthalten."}).trim().regex(/^[a-zA-Z0-9]{10}$/,{message:"Der Code muss genau 10 Zeichen lang sein und darf nur Buchstaben und Zahlen enthalten."}),VF=Ee.z.object({code:UF}),JF=n=>({canGoBack:!1,canGoNext:!1,fields:[{fieldConfig:{description:"Einen Zugangscode erhältst du z.B., wenn du eine Postkarte angefordert hast oder eine Einladung im Briefkasten hattest.",header:"Einladungscode",sticker:{color:"green",icon:"paper_form",size:"small"}},id:"formHeader",type:"formHeader"},{fieldConfig:{name:"code",type:"invite"},id:"code",layout:{gapTop:"md"},type:"codeField"},{fieldConfig:{label:"Senden"},id:"submit-button",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"verification-methods",label:"Andere Verifizierungsmethoden",position:"center",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"inviteCode",onSubmit:n,pageViewtracking:{name:"verify_code"},spacing:"lg",validationSchema:VF}),qF=0,_F=1,Hb="code",Zb="postcard",Wb="gps",Gb="sms",$F=[Gb,Hb,Zb,Wb],mp={[Hb]:{fieldConfig:{description:"Einladung erhalten? Gib deinen Code ein.",headline:"Per Einladungscode",sticker:{color:"green",icon:"paper_form",size:"small"}},id:"inviteCode",type:"tileButton"},[Wb]:{fieldConfig:{description:"Erlaube Standortzugriff.",headline:"GPS",sticker:{color:"green",icon:"pin",size:"small"}},id:"gps",type:"tileButton"},[Zb]:{fieldConfig:{description:"Erhalte einen Code in 2-3 Tagen.",headline:"Per Postcode",sticker:{color:"green",icon:"envelope",size:"small"}},id:"postalCode",type:"tileButton"},[Gb]:{fieldConfig:{description:"Gib deine Handynummer ein.",headline:"Per SMS",sticker:{color:"green",icon:"phone",size:"small"}},id:"phone_number",type:"tileButton"}},eT=n=>$F.map(t=>{const i=nT({...n,code:{enabled:!0,order_nr:1,status:0}},t);return i!=null&&i.enabled?{...mp[t],fieldConfig:{...mp[t].fieldConfig,isActive:(i==null?void 0:i.status)===qF,...(i==null?void 0:i.status)===_F&&{isPending:!0}},...(i==null?void 0:i.order_nr)===0&&{layout:{gapTop:"lg"}},order:(i==null?void 0:i.order_nr)??null}:null}).filter(t=>t!==null).sort((t,i)=>((t==null?void 0:t.order)??1/0)-((i==null?void 0:i.order)??1/0)),nT=(n,e)=>(n==null?void 0:n[e])??null,tT=n=>({canGoBack:!1,fields:[{fieldConfig:{header:"Verifizierungsmethoden"},id:"formHeader",type:"formHeader"},...eT(n),{fieldConfig:{href:"https://hilfe.nebenan.de/hc/de/requests/new?ticket_form_id=4905438161170",label:"Kontaktiere uns",position:"center",size:"medium",target:"_blank",text:"Hast du Probleme bei der Verifizierung?",type:"link",variant:"text"},id:"text-button",layout:{gapTop:"xl"},type:"button"}],id:"verification-methods",pageViewtracking:{name:"verify"},spacing:"lg"}),iT=n=>({canGoBack:!1,canGoNext:!1,fields:[{fieldConfig:{description:"Fordere eine Postkarte an und gib den darauf angegebenen Zugangscode ein. Fertig!",header:"Postkarte erhalten",sticker:{color:"green",icon:"envelope",size:"small"}},id:"formHeader",type:"formHeader"},{fieldConfig:{label:"Postkarte anfordern"},id:"submit-button",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"verification-methods",label:"Andere Verifizierungsmethoden",position:"center",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"postalCode",onSubmit:n,pageViewtracking:{name:"verify_postcard"},spacing:"md"}),rT=()=>({canGoBack:!1,canGoNext:!1,fields:[{fieldConfig:{description:"Es kann 2-3 Werktage dauern bis du deine Postkarte erhältst. Komm anschließend einfach auf nebenan.de zurück und gib deinen Code ein, um die Verifizierung abzuschließen. ",header:"Postkarte erhalten",sticker:{color:"green",icon:"envelope",size:"small"},title:"Deine Postkarte ist auf dem Weg zu dir!"},id:"formHeader",type:"formHeader"},{fieldConfig:{disabled:!0,label:"Die Postkarte ist unterwegs"},id:"submit-button",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"verification-methods",label:"Andere Verifizierungsmethoden",position:"center",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"postalCodeRequested",spacing:"md"}),aT=Ee.z.string().trim().regex(/^\+(3[0-9]|4[0-9]|2[0-9]|5[0-9])[0-9\s|]{8,16}$/,"Die Telefonnummer muss mit einer gültigen EU-Länder-Vorwahl beginnen und darf nur Zahlen und Leerzeichen enthalten.").transform(n=>n.replace(/\s+/g,"")).refine(n=>n.length>=10,{message:"Die Telefonnummer muss mindestens 10 Zeichen lang sein (inklusive Vorwahl)."}).refine(n=>n.length<=20,{message:"Die Telefonnummer darf höchstens 20 Zeichen lang sein (inklusive Vorwahl)."}),sT=Ee.z.object({phone:aT}),oT=n=>({canGoBack:!1,canGoNext:!0,fields:[{fieldConfig:{description:"Gib deine Handynummer ein. Wir schicken dir einen 6-stelligen Zugangscode per SMS.",header:"SMS Verifizierung",notice:{bodyText:"Deine Telefonnummer bleibt privat und wird nicht gespeichert oder mit Nachbar:innen geteilt.",color:"vanilla",context:"info",icon:{name:"eye_crossed",size:"24"},variant:"detailed"},sticker:{color:"green",icon:"phone",size:"small"}},id:"formHeader",type:"formHeader"},{fieldConfig:{label:"Handynummer",name:"phone"},id:"phone",type:"phoneInput"},{fieldConfig:{label:"SMS code anfordern"},id:"formSubmitButton",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"verification-methods",label:"Andere Verifizierungsmethoden",position:"center",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"phone_number",onSubmit:n,pageViewtracking:{name:"verify_sms"},spacing:"lg",validationMode:"onBlur",validationSchema:sT}),lT=Ee.z.string({required_error:"Der Telefoncode muss genau 6 Ziffern enthalten (z. B. 123456)."}).trim().regex(/^\d{6}$/,"Der Telefoncode muss genau 6 Ziffern enthalten (z. B. 123456)."),uT=Ee.z.object({sms_code:lT}),dT=n=>({canGoBack:!1,canGoNext:!1,fields:[{fieldConfig:{description:"Wir haben dir eine SMS mit einem 6-stelligen Code geschickt. Bitte gib ihn hier ein.",header:"SMS Verifizierung",notice:{bodyText:"Es kann ein paar Minuten dauern, bis die Nachricht kommt.",color:"grey",context:"info",icon:{name:"info",size:"24"},variant:"detailed"},phoneNr:!0,sticker:{color:"green",icon:"phone",size:"small"}},id:"formHeader",type:"formHeader"},{fieldConfig:{name:"sms_code",type:"sms"},id:"sms_code",type:"codeField"},{fieldConfig:{label:"Bestätigen"},id:"formSubmitButton",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"phone_number",label:"SMS erneut anfordern",position:"center",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"smsCode",onSubmit:n,pageViewtracking:{name:"verify_sms_code"},spacing:"lg",validationMode:"onSubmit",validationSchema:uT}),fT=async(n,e,t)=>{const i=wl("data.phone",n).split("|").join("");try{return await ze.requestSmsCode({phone_number:i,token:t}),!0}catch(r){return Ji(r,e,({field:s,message:o})=>{var l;(l=n.methods)==null||l.setError(s,{message:o,type:"manual"})},"phone")}},cT=async(n,e,t,i)=>{const r=wl("data.smsCode",n);try{await ze.sendSmsCode({smsCode:r,token:i}),e({})}catch(a){return Ji(a,t,({field:o,message:l})=>{var u;(u=n.methods)==null||u.setError(o,{message:l,type:"manual"})})}},hT=async(n,e,t,i)=>{const r=wl("data.code",n),a=`${r.slice(0,5)}-${r.slice(5)}`;try{await ze.sendInviteCode({inviteCode:a,token:i}),e({})}catch(s){return Ji(s,t,({field:l,message:u})=>{var d;(d=n.methods)==null||d.setError(l,{message:u,type:"manual"})},"code")}},gT=async(n,e,t)=>{try{return await ze.requestPostCard({token:t}),await n(),"postalCodeRequested"}catch(i){return Ji(i,e)}},mT=async(n,e,t)=>{const i={enableHighAccuracy:!0,maximumAge:0,timeout:1e4};return new Promise((r,a)=>{const s=l=>{ze.sendGpsVerification({accuracy:l.coords.accuracy,latitude:l.coords.latitude,longitude:l.coords.longitude,token:t}).then(u=>{n(u),r(!0)}).catch(u=>{Ji(u,e),a(!1)})},o=l=>{let u="Location access denied";switch(l.code){case l.PERMISSION_DENIED:u="Please allow location access to verify your address";break;case l.POSITION_UNAVAILABLE:u="Location information is unavailable";break;case l.TIMEOUT:u="Location request timed out";break}e(u),a(!1)};if(!navigator.geolocation){e("Geolocation is not supported by your browser"),a(!1);return}navigator.geolocation.getCurrentPosition(s,o,i)})},pT=({initialStep:n="verification-methods",onFetchProfile:e,onSubmit:t,status:i,token:r})=>{const[a,s]=b.useState(null),o=Pt.useTrack(),l=tT(i==null?void 0:i.verification_methods),u=rT(),d=[oT(c=>fT(c,s,r)),dT(c=>cT(c,f=>{o("verification_completed",{method:"sms"}),t(f)},s,r)),JF(c=>hT(c,f=>{o("verification_completed",{method:"code"}),t(f)},s,r)),KF(()=>mT(c=>{o("verification_completed",{method:"geo"}),t(c)},s,r)),iT(()=>gT(e,s,r)),l,u];return m.jsx(Kh,{id:"verification_wizard",steps:d,onStepChange:()=>s(null),excludedSteps:[l.id,u.id],initialStep:n,formError:a,formFieldMap:{...XF,...mw},formWrapper:c=>m.jsx(pw,{progressBar:{currentStep:4,steps:4},children:c})})},vT=({accessToken:n,defaultStep:e="phone_number",enableGoogleSSO:t,initialState:i=lt.REGISTRATION_START,initialStep:r="",onFetchProfile:a,onRegistrationSubmit:s,onVerificationSubmit:o,status:l})=>{const[u,d]=b.useState(i),[c,f]=b.useState(r),[h,g]=b.useState(!1),[p,v]=b.useState(n),[w,A]=b.useState(null),[y,z]=b.useState("*****"),C=Wh($1),O=Zh($1);b.useEffect(()=>{O&&S(!0,O),p&&!(l!=null&&l.is_address_verified)&&d(lt.VERIFICATION_FORM)},[l,p,O]);const B=({access_token:T,email_confirmation_required:N})=>{if(N)return d(lt.EMAIL_CONFIRMATION);T&&(v(T),f(e),s(T))},M=({authentication_token:T,email_confirmation_required:N,googleToken:D})=>{if(N){D&&z(Fz("email",D)),d(lt.EMAIL_CONFIRMATION);return}if(T)return s(T)},S=(T,N)=>{d(lt.REGISTRATION_FORM),g(T),N&&A(N)},F=(T,N)=>{d(lt.REGISTRATION_FORM),T&&C(`${N}`)},P=()=>{d(lt.REGISTRATION_FORM)},j=()=>d(lt.REGISTRATION_START);return m.jsxs("div",{className:FP.rootWrapper,children:[u===lt.REGISTRATION_START&&m.jsx(SP,{enableGoogleSSO:t,onRegistrationSuccess:M,onRegistrationError:F,onSwitchToEmail:P}),u===lt.EMAIL_CONFIRMATION&&m.jsx(gs,{screen:"email_confirmation",email:y,atom:"registration_wizard",atomKey:"emailStep.email"}),u===lt.REGISTRATION_FORM&&m.jsx(PO,{onSubmit:B,initialStep:c,isSSOFlow:h,googleIdToken:w,goBack:j}),u===lt.VERIFICATION_FORM&&m.jsx(pT,{status:l,onSubmit:o,onFetchProfile:a,token:p,initialStep:c})]})},wT="_garland_n7msg_141",bT="_variant_n7msg_156",pp={garland:wT,variant:bT},AT=()=>{const n=b.useRef(Math.round(Math.random()));return m.jsx("span",{className:ae(pp.garland,{[pp.variant]:n.current}),role:"presentation"})},kT="_react-datepicker__day-names_j2b8t_120",yT="_react-datepicker__week_j2b8t_124",xT="_react-datepicker__day--outside-month_j2b8t_131",CT="_react-datepicker_j2b8t_120",zT="_col_j2b8t_141",PT="_col--1_j2b8t_146",OT="_col--2_j2b8t_150",BT="_col--3_j2b8t_150",MT="_col--hidden_j2b8t_156",ST="_table_j2b8t_160",ET="_table__header_j2b8t_166",FT="_table__header_j2b8t_166",TT="_table__body_j2b8t_174",RT="_table__body_j2b8t_174",jT="_table__bodyData_j2b8t_179",DT="_table__bodyData_j2b8t_179",Un={"react-datepicker__day-names":"_react-datepicker__day-names_j2b8t_120",reactDatepickerDayNames:kT,"react-datepicker__week":"_react-datepicker__week_j2b8t_124",reactDatepickerWeek:yT,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_j2b8t_131",reactDatepickerDayOutsideMonth:xT,"react-datepicker":"_react-datepicker_j2b8t_120",reactDatepicker:CT,col:zT,"col--1":"_col--1_j2b8t_146",col1:PT,"col--2":"_col--2_j2b8t_150",col2:OT,"col--3":"_col--3_j2b8t_150",col3:BT,"col--hidden":"_col--hidden_j2b8t_156",colHidden:MT,table:ST,table__header:ET,tableHeader:FT,table__body:TT,tableBody:RT,table__bodyData:jT,tableBodyData:DT},IT=({header:n,list:e})=>{const t=s=>m.jsx(E.Icon,{name:"checkmark",size:"24",className:Un[`col--${s}`]}),i=s=>m.jsx(E.Icon,{name:"cross",size:"24",className:ae(Un[`col--${s}`],Un["col--hidden"])}),r=(s,o)=>{switch(s){case!0:return m.jsx("td",{children:i(o)},o);case!1:return m.jsx("td",{children:t(o)},o);default:return m.jsx("td",{className:Un.table__bodyData,children:m.jsx(E.Typography,{className:Un[`col--${o}`],type:"body-regular",children:s})},o)}},a=()=>e&&e.map((s,o)=>m.jsxs(b.Fragment,{children:[!!o&&m.jsx("tr",{children:m.jsx("td",{className:Un.table__bodyData,children:m.jsx(E.Divider,{})})}),m.jsx("tr",{className:Un.col,children:s&&s.map((l,u)=>r(l,u+1))})]},`table_row_${o}`));return m.jsx("section",{children:m.jsxs("table",{className:Un.table,children:[m.jsx("thead",{children:m.jsxs("tr",{className:Un.table__header,children:[m.jsx("th",{className:ae(Un.col,Un["col--1"])}),n&&n.map((s,o)=>m.jsx("th",{className:ae(Un.col,Un[`col--${o+2}`]),children:m.jsx(E.Typography,{type:"body-regular",children:s.label})},s.key))]})}),m.jsx("tbody",{className:Un.table__body,children:a()})]})})};function NT(n){return typeof n=="string"}function LT(n,e,t){return n===void 0||NT(n)?e:{...e,ownerState:{...e.ownerState,...t}}}function vp(n,e,t=(i,r)=>i===r){return n.length===e.length&&n.every((i,r)=>t(i,e[r]))}const HT={disableDefaultClasses:!1},Yb=k.createContext(HT);process.env.NODE_ENV!=="production"&&(Yb.displayName="ClassNameConfiguratorContext");function Ol(n){const{disableDefaultClasses:e}=k.useContext(Yb);return t=>e?"":n(t)}function gi(n,e=[]){if(n===void 0)return{};const t={};return Object.keys(n).filter(i=>i.match(/^on[A-Z]/)&&typeof n[i]=="function"&&!e.includes(i)).forEach(i=>{t[i]=n[i]}),t}function ZT(n,e,t){return typeof n=="function"?n(e,t):n}function WT(n){const{rootElementName:e="",componentName:t}=n,[i,r]=k.useState(e.toUpperCase());process.env.NODE_ENV!=="production"&&k.useEffect(()=>{e&&i!==e.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${t?`the ${t} component`:"a component"} expected the '${e}' element, but a '${i.toLowerCase()}' was rendered instead`,"This may cause hydration issues in an SSR context, for example in a Next.js app")},[e,i,t]);const a=k.useCallback(s=>{r((s==null?void 0:s.tagName)??"")},[]);return[i,a]}function Qb(n,e){return process.env.NODE_ENV==="production"?()=>null:function(...i){return n(...i)||e(...i)}}var C0={exports:{}},z0={exports:{}},De={};/** @license React v16.13.1
|
|
105
|
+
`)});const o=e.nonTextTags||["script","style","textarea","option"];let l,u;e.allowedAttributes&&(l={},u={},zo(e.allowedAttributes,function(D,L){l[L]=[];const R=[];D.forEach(function(I){typeof I=="string"&&I.indexOf("*")>=0?R.push(dp(I).replace(/\\\*/g,".*")):l[L].push(I)}),R.length&&(u[L]=new RegExp("^("+R.join("|")+")$"))}));const d={},c={},f={};zo(e.allowedClasses,function(D,L){if(l&&(Si(l,L)||(l[L]=[]),l[L].push("class")),d[L]=D,Array.isArray(D)){const R=[];d[L]=[],f[L]=[],D.forEach(function(I){typeof I=="string"&&I.indexOf("*")>=0?R.push(dp(I).replace(/\\\*/g,".*")):I instanceof RegExp?f[L].push(I):d[L].push(I)}),R.length&&(c[L]=new RegExp("^("+R.join("|")+")$"))}});const h={};let g;zo(e.transformTags,function(D,L){let R;typeof D=="function"?R=D:typeof D=="string"&&(R=$o.simpleTransform(D)),L==="*"?g=R:h[L]=R});let p,v,w,A,y,z,C=!1;B();const O=new wE.Parser({onopentag:function(D,L){if(e.enforceHtmlBoundary&&D==="html"&&B(),y){z++;return}const R=new a(D,L);v.push(R);let I=!1;const W=!!R.text;let H;if(Si(h,D)&&(H=h[D](D,L),R.attribs=L=H.attribs,H.text!==void 0&&(R.innerText=H.text),D!==H.tagName&&(R.name=D=H.tagName,A[p]=H.tagName)),g&&(H=g(D,L),R.attribs=L=H.attribs,D!==H.tagName&&(R.name=D=H.tagName,A[p]=H.tagName)),(!s(D)||e.disallowedTagsMode==="recursiveEscape"&&!CE(w)||e.nestingLimit!=null&&p>=e.nestingLimit)&&(I=!0,w[p]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(D)!==-1&&(y=!0,z=1),w[p]=!0),p++,I){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(R.innerText&&!W){const x=M(R.innerText);e.textFilter?i+=e.textFilter(x,D):i+=M(R.innerText),C=!0}return}r=i,i=""}i+="<"+D,D==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(R.innerText=""),(!l||Si(l,D)||l["*"])&&zo(L,function(x,Z){if(!OE.test(Z)){delete R.attribs[Z];return}if(x===""&&!e.allowedEmptyAttributes.includes(Z)&&(e.nonBooleanAttributes.includes(Z)||e.nonBooleanAttributes.includes("*"))){delete R.attribs[Z];return}let Y=!1;if(!l||Si(l,D)&&l[D].indexOf(Z)!==-1||l["*"]&&l["*"].indexOf(Z)!==-1||Si(u,D)&&u[D].test(Z)||u["*"]&&u["*"].test(Z))Y=!0;else if(l&&l[D]){for(const X of l[D])if(bE(X)&&X.name&&X.name===Z){Y=!0;let K="";if(X.multiple===!0){const $=x.split(" ");for(const q of $)X.values.indexOf(q)!==-1&&(K===""?K=q:K+=" "+q)}else X.values.indexOf(x)>=0&&(K=x);x=K}}if(Y){if(e.allowedSchemesAppliedToAttributes.indexOf(Z)!==-1&&S(D,x)){delete R.attribs[Z];return}if(D==="script"&&Z==="src"){let X=!0;try{const K=F(x);if(e.allowedScriptHostnames||e.allowedScriptDomains){const $=(e.allowedScriptHostnames||[]).find(function(_){return _===K.url.hostname}),q=(e.allowedScriptDomains||[]).find(function(_){return K.url.hostname===_||K.url.hostname.endsWith(`.${_}`)});X=$||q}}catch{X=!1}if(!X){delete R.attribs[Z];return}}if(D==="iframe"&&Z==="src"){let X=!0;try{const K=F(x);if(K.isRelativeUrl)X=Si(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const $=(e.allowedIframeHostnames||[]).find(function(_){return _===K.url.hostname}),q=(e.allowedIframeDomains||[]).find(function(_){return K.url.hostname===_||K.url.hostname.endsWith(`.${_}`)});X=$||q}}catch{X=!1}if(!X){delete R.attribs[Z];return}}if(Z==="srcset")try{let X=AE(x);if(X.forEach(function(K){S("srcset",K.url)&&(K.evil=!0)}),X=cp(X,function(K){return!K.evil}),X.length)x=zE(cp(X,function(K){return!K.evil})),R.attribs[Z]=x;else{delete R.attribs[Z];return}}catch{delete R.attribs[Z];return}if(Z==="class"){const X=d[D],K=d["*"],$=c[D],q=f[D],_=f["*"],ue=c["*"],se=[$,ue].concat(q,_).filter(function(ve){return ve});if(X&&K?x=N(x,fp(X,K),se):x=N(x,X||K,se),!x.length){delete R.attribs[Z];return}}if(Z==="style"){if(e.parseStyleAttributes)try{const X=kE(D+" {"+x+"}",{map:!1}),K=P(X,e.allowedStyles);if(x=j(K),x.length===0){delete R.attribs[Z];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+D+" {"+x+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete R.attribs[Z];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}i+=" "+Z,x&&x.length?i+='="'+M(x,!0)+'"':e.allowedEmptyAttributes.includes(Z)&&(i+='=""')}else delete R.attribs[Z]}),e.selfClosing.indexOf(D)!==-1?i+=" />":(i+=">",R.innerText&&!W&&!e.textFilter&&(i+=M(R.innerText),C=!0)),I&&(i=r+M(i),r="")},ontext:function(D){if(y)return;const L=v[v.length-1];let R;if(L&&(R=L.tag,D=L.innerText!==void 0?L.innerText:D),e.disallowedTagsMode==="completelyDiscard"&&!s(R))D="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(R==="script"||R==="style"))i+=D;else{const I=M(D,!1);e.textFilter&&!C?i+=e.textFilter(I,R):C||(i+=I)}if(v.length){const I=v[v.length-1];I.text+=D}},onclosetag:function(D,L){if(y)if(z--,!z)y=!1;else return;const R=v.pop();if(!R)return;if(R.tag!==D){v.push(R);return}y=e.enforceHtmlBoundary?D==="html":!1,p--;const I=w[p];if(I){if(delete w[p],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){R.updateParentNodeText();return}r=i,i=""}if(A[p]&&(D=A[p],delete A[p]),e.exclusiveFilter&&e.exclusiveFilter(R)){i=i.substr(0,R.tagPosition);return}if(R.updateParentNodeMediaChildren(),R.updateParentNodeText(),e.selfClosing.indexOf(D)!==-1||L&&!s(D)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){I&&(i=r,r="");return}i+="</"+D+">",I&&(i=r+M(i),r=""),C=!1}},e.parser);return O.write(n),O.end(),i;function B(){i="",p=0,v=[],w={},A={},y=!1,z=0}function M(D,L){return typeof D!="string"&&(D=D+""),e.parser.decodeEntities&&(D=D.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),L&&(D=D.replace(/"/g,"""))),D=D.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),L&&(D=D.replace(/"/g,""")),D}function S(D,L){for(L=L.replace(/[\x00-\x20]+/g,"");;){const W=L.indexOf("<!--");if(W===-1)break;const H=L.indexOf("-->",W+4);if(H===-1)break;L=L.substring(0,W)+L.substring(H+3)}const R=L.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!R)return L.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const I=R[1].toLowerCase();return Si(e.allowedSchemesByTag,D)?e.allowedSchemesByTag[D].indexOf(I)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(I)===-1}function F(D){if(D=D.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),D.startsWith("relative:"))throw new Error("relative: exploit attempt");let L="relative://relative-site";for(let W=0;W<100;W++)L+=`/${W}`;const R=new URL(D,L);return{isRelativeUrl:R&&R.hostname==="relative-site"&&R.protocol==="relative:",url:R}}function P(D,L){if(!L)return D;const R=D.nodes[0];let I;return L[R.selector]&&L["*"]?I=fp(L[R.selector],L["*"]):I=L[R.selector]||L["*"],I&&(D.nodes[0].nodes=R.nodes.reduce(T(I),[])),D}function j(D){return D.nodes[0].nodes.reduce(function(L,R){return L.push(`${R.prop}:${R.value}${R.important?" !important":""}`),L},[]).join(";")}function T(D){return function(L,R){return Si(D,R.prop)&&D[R.prop].some(function(W){return W.test(R.value)})&&L.push(R),L}}function N(D,L,R){return L?(D=D.split(/\s+/),D.filter(function(I){return L.indexOf(I)!==-1||R.some(function(W){return W.test(I)})}).join(" ")):D}}const BE={decodeEntities:!0};$o.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0};$o.simpleTransform=function(n,e,t){return t=t===void 0?!0:t,e=e||{},function(i,r){let a;if(t)for(a in e)r[a]=e[a];else r=e;return{tagName:n,attribs:r}}};const Lb=St(PE),ME="_markdown_1jzce_141",hp={markdown:ME,"markdown--external-links":"_markdown--external-links_1jzce_153"},SE={allowedAttributes:{a:["href","target"]},allowedTags:["a","strong"]};function EE({className:n,elementTag:e="span",inline:t=!1,isExternalLinksIcon:i,text:r}){const a=Lb(r,SE),s=e;return m.jsx(s,{className:ae(hp.markdown,{[hp["markdown--external-links"]]:i},n),dangerouslySetInnerHTML:{__html:t?Le.parseInline(a,{breaks:!0}):Le.parse(a,{breaks:!0})}})}const FE="_react-datepicker__day-names_1ftws_120",TE="_react-datepicker__week_1ftws_124",RE="_react-datepicker__day--outside-month_1ftws_131",jE="_react-datepicker_1ftws_120",DE="_typography-landing--claim_1ftws_141",IE="_typography-landing--claim-uppercase_1ftws_179",NE="_typography-landing--h1_1ftws_217",LE="_typography-landing--h1-uppercase_1ftws_255",HE="_typography-landing--h2_1ftws_293",ZE="_typography-landing--h3_1ftws_331",WE="_typography-landing--h4_1ftws_369",GE="_typography-landing--h5_1ftws_394",YE="_typography-landing--h6_1ftws_419",QE="_typography-landing--overline_1ftws_444",XE="_typography-landing--body-large_1ftws_481",KE="_typography-landing--body-large-semibold_1ftws_505",UE="_typography-landing--body_1ftws_481",VE="_typography-landing--body-semibold_1ftws_540",JE="_typography-landing--body-italic_1ftws_551",qE="_typography-landing--quote-large_1ftws_563",_E="_typography-landing--detail-small_1ftws_588",$E="_typography-landing--detail-small-bold_1ftws_599",eF="_typography-landing_1ftws_141",nF="_typography-product_1ftws_628",tF="_typography-product--h1_1ftws_639",iF="_typography-product--h2_1ftws_650",rF="_typography-product--h3_1ftws_661",aF="_typography-product--h4_1ftws_672",sF="_typography-product--h5_1ftws_683",oF="_typography-product--h6_1ftws_694",lF="_typography-product--h7_1ftws_705",uF="_typography-product--h8_1ftws_716",dF="_typography-product--body-large_1ftws_727",fF="_typography-product--body-regular_1ftws_749",cF="_typography-product--body-semibold_1ftws_771",hF="_typography-product--body-italic_1ftws_793",gF="_typography-product--body-text-link_1ftws_816",mF="_typography-product--detail-medium_1ftws_827",pF="_typography-product--detail-bold_1ftws_849",vF="_typography-product--detail-upper-case_1ftws_871",wF="_typography-product--detail-regular_1ftws_893",bF="_typography-product--detail-text-link_1ftws_915",gp={"react-datepicker__day-names":"_react-datepicker__day-names_1ftws_120",reactDatepickerDayNames:FE,"react-datepicker__week":"_react-datepicker__week_1ftws_124",reactDatepickerWeek:TE,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_1ftws_131",reactDatepickerDayOutsideMonth:RE,"react-datepicker":"_react-datepicker_1ftws_120",reactDatepicker:jE,"typography-landing--claim":"_typography-landing--claim_1ftws_141",typographyLandingClaim:DE,"typography-landing--claim-uppercase":"_typography-landing--claim-uppercase_1ftws_179",typographyLandingClaimUppercase:IE,"typography-landing--h1":"_typography-landing--h1_1ftws_217",typographyLandingH1:NE,"typography-landing--h1-uppercase":"_typography-landing--h1-uppercase_1ftws_255",typographyLandingH1Uppercase:LE,"typography-landing--h2":"_typography-landing--h2_1ftws_293",typographyLandingH2:HE,"typography-landing--h3":"_typography-landing--h3_1ftws_331",typographyLandingH3:ZE,"typography-landing--h4":"_typography-landing--h4_1ftws_369",typographyLandingH4:WE,"typography-landing--h5":"_typography-landing--h5_1ftws_394",typographyLandingH5:GE,"typography-landing--h6":"_typography-landing--h6_1ftws_419",typographyLandingH6:YE,"typography-landing--overline":"_typography-landing--overline_1ftws_444",typographyLandingOverline:QE,"typography-landing--body-large":"_typography-landing--body-large_1ftws_481",typographyLandingBodyLarge:XE,"typography-landing--body-large-semibold":"_typography-landing--body-large-semibold_1ftws_505",typographyLandingBodyLargeSemibold:KE,"typography-landing--body":"_typography-landing--body_1ftws_481",typographyLandingBody:UE,"typography-landing--body-semibold":"_typography-landing--body-semibold_1ftws_540",typographyLandingBodySemibold:VE,"typography-landing--body-italic":"_typography-landing--body-italic_1ftws_551",typographyLandingBodyItalic:JE,"typography-landing--quote-large":"_typography-landing--quote-large_1ftws_563",typographyLandingQuoteLarge:qE,"typography-landing--detail-small":"_typography-landing--detail-small_1ftws_588",typographyLandingDetailSmall:_E,"typography-landing--detail-small-bold":"_typography-landing--detail-small-bold_1ftws_599",typographyLandingDetailSmallBold:$E,"typography-landing":"_typography-landing_1ftws_141",typographyLanding:eF,"typography-product":"_typography-product_1ftws_628",typographyProduct:nF,"typography-product--h1":"_typography-product--h1_1ftws_639",typographyProductH1:tF,"typography-product--h2":"_typography-product--h2_1ftws_650",typographyProductH2:iF,"typography-product--h3":"_typography-product--h3_1ftws_661",typographyProductH3:rF,"typography-product--h4":"_typography-product--h4_1ftws_672",typographyProductH4:aF,"typography-product--h5":"_typography-product--h5_1ftws_683",typographyProductH5:sF,"typography-product--h6":"_typography-product--h6_1ftws_694",typographyProductH6:oF,"typography-product--h7":"_typography-product--h7_1ftws_705",typographyProductH7:lF,"typography-product--h8":"_typography-product--h8_1ftws_716",typographyProductH8:uF,"typography-product--body-large":"_typography-product--body-large_1ftws_727",typographyProductBodyLarge:dF,"typography-product--body-regular":"_typography-product--body-regular_1ftws_749",typographyProductBodyRegular:fF,"typography-product--body-semibold":"_typography-product--body-semibold_1ftws_771",typographyProductBodySemibold:cF,"typography-product--body-italic":"_typography-product--body-italic_1ftws_793",typographyProductBodyItalic:hF,"typography-product--body-text-link":"_typography-product--body-text-link_1ftws_816",typographyProductBodyTextLink:gF,"typography-product--detail-medium":"_typography-product--detail-medium_1ftws_827",typographyProductDetailMedium:mF,"typography-product--detail-bold":"_typography-product--detail-bold_1ftws_849",typographyProductDetailBold:pF,"typography-product--detail-upper-case":"_typography-product--detail-upper-case_1ftws_871",typographyProductDetailUpperCase:vF,"typography-product--detail-regular":"_typography-product--detail-regular_1ftws_893",typographyProductDetailRegular:wF,"typography-product--detail-text-link":"_typography-product--detail-text-link_1ftws_915",typographyProductDetailTextLink:bF};function AF(n){switch(n){case"h1":case"h1-uppercase":return"h1";case"h2":case"claim":case"claim-uppercase":return"h2";case"h3":case"h4":case"h5":return n;case"h6":case"overline":return"h6";default:return"span"}}const hr=n=>{const{as:e,children:t,className:i,fontSet:r="product",markdown:a=r==="landing",markdownInline:s=!0,type:o}=n,l=e||AF(o),u=ae(gp[`typography-${r}`],gp[`typography-${r}--${o}`],i);return m.jsx(m.Fragment,{children:typeof t=="string"&&a?m.jsx(EE,{className:u,text:t,inline:s,elementTag:l,isExternalLinksIcon:r==="landing"}):m.jsx(l,{className:u,"data-testid":n["data-testid"],children:t})})},kF="_inputDetails_wq68m_141",yF="_inputDetails__hintText_wq68m_147",xF="_inputDetails__errorText_wq68m_151",CF="_inputDetails__counter_wq68m_155",cu={inputDetails:kF,inputDetails__hintText:yF,inputDetails__errorText:xF,inputDetails__counter:CF},zF=({charCount:n,charLimit:e,errorText:t,hintText:i})=>{const r=`${n??0}/${e}`;return m.jsxs("div",{className:cu.inputDetails,children:[m.jsxs("div",{children:[i&&!t&&m.jsx(hr,{className:cu.inputDetails__hintText,type:"detail-medium",children:i}),t&&m.jsx(hr,{className:cu.inputDetails__errorText,type:"detail-bold",children:t})]}),!!e&&m.jsx(hr,{type:"detail-medium",className:cu.inputDetails__counter,children:r})]})},PF="_react-datepicker__day-names_gycxq_120",OF="_react-datepicker__week_gycxq_124",BF="_react-datepicker__day--outside-month_gycxq_131",MF="_react-datepicker_gycxq_120",SF="_container_gycxq_144",EF="_inputContainer_gycxq_152",FF="_inputContainer--disabled_gycxq_164",TF="_inputContainer--filled_gycxq_167",RF="_inputContainer--outlined_gycxq_173",jF="_inputContainer--error_gycxq_181",DF="_character_gycxq_186",IF="_inputContainer--sms_gycxq_189",NF="_inputContainer--active_gycxq_192",LF="_character--selected_gycxq_192",HF="_blink_gycxq_1",ZF="_input_gycxq_152",WF="_character__divider_gycxq_250",GF="_character__divider_gycxq_250",rt={"react-datepicker__day-names":"_react-datepicker__day-names_gycxq_120",reactDatepickerDayNames:PF,"react-datepicker__week":"_react-datepicker__week_gycxq_124",reactDatepickerWeek:OF,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_gycxq_131",reactDatepickerDayOutsideMonth:BF,"react-datepicker":"_react-datepicker_gycxq_120",reactDatepicker:MF,container:SF,inputContainer:EF,"inputContainer--disabled":"_inputContainer--disabled_gycxq_164",inputContainerDisabled:FF,"inputContainer--filled":"_inputContainer--filled_gycxq_167",inputContainerFilled:TF,"inputContainer--outlined":"_inputContainer--outlined_gycxq_173",inputContainerOutlined:RF,"inputContainer--error":"_inputContainer--error_gycxq_181",inputContainerError:jF,character:DF,"inputContainer--sms":"_inputContainer--sms_gycxq_189",inputContainerSms:IF,"inputContainer--active":"_inputContainer--active_gycxq_192",inputContainerActive:NF,"character--selected":"_character--selected_gycxq_192",characterSelected:LF,blink:HF,input:ZF,character__divider:WF,characterDivider:GF},YF=({disabled:n=!1,errorText:e,onComplete:t,type:i="invite",length:r=i==="sms"?6:10,variant:a="outlined",value:s=""})=>{const[o,l]=b.useState(s),[u,d]=b.useState(!1),c=b.useRef(null);b.useEffect(()=>{n&&d(!1)},[n]),b.useEffect(()=>{l(s)},[s]);const f=()=>{var z;(z=c.current)==null||z.focus()},h=z=>{["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(z.key)&&z.preventDefault()},g=z=>{const O=z.target.value.replace(/\s/g,"").slice(0,r);new RegExp("^[A-Za-zÀ-ÖØ-öø-ÿ0-9]*$").test(O)&&(l(O),O.length===r&&(t==null||t(O)))},p=z=>{d(!0),z.target.select()},v=()=>{d(!1),t==null||t(o)},w=()=>o,A=z=>w().length===z&&u,y=z=>i==="invite"&&z===Math.floor((r-1)/2);return m.jsxs("div",{"data-testid":"container",className:rt.container,children:[m.jsxs("div",{tabIndex:1,className:ae(rt.inputContainer,rt[`inputContainer--${a}`],rt[`inputContainer--${i}`],{[rt["inputContainer--disabled"]]:n,[rt["inputContainer--error"]]:!!e,[rt["inputContainer--active"]]:u}),onClick:f,children:[m.jsx("input",{"aria-label":"verification input",spellCheck:!1,ref:c,value:w(),className:ae(rt.input,{[rt["input--disabled"]]:!0}),onChange:g,onKeyDown:h,onFocus:p,onBlur:v,disabled:n}),Array.from({length:r},(z,C)=>m.jsxs(b.Fragment,{children:[m.jsx(E.Typography,{type:"h3",className:ae(rt.character,{[rt["character--selected"]]:A(C)}),children:w()[C]},C),y(C)&&m.jsx(E.Typography,{type:"h3",className:ae(rt.character,rt.character__divider)},`${C}-divider`)]},`${C}-fragment`))]}),e&&m.jsx(zF,{errorText:e})]})},QF=({disabled:n,length:e,name:t,rules:i,type:r,variant:a})=>{var u;const{control:s}=He.useFormContext(),{field:o,fieldState:l}=He.useController({control:s,name:t,rules:i});return m.jsx(YF,{disabled:n,length:e,type:r,variant:a,errorText:(u=l.error)==null?void 0:u.message,onComplete:o.onChange,value:o.value})},XF={codeField:n=>m.jsx(QF,{...n==null?void 0:n.fieldConfig},n.id),phoneInput:n=>m.jsx(cw,{...n==null?void 0:n.fieldConfig},n.id),tileButton:n=>m.jsx(fw,{...n==null?void 0:n.fieldConfig,id:n.id},n.id)},KF=n=>({canGoBack:!1,canGoNext:!1,fields:[{fieldConfig:{description:"Du bist zuhause? Dann ist diese Methode perfekt für einen schnellen Zugang zu deiner Nachbarschaft. Nicht zuhause? Wähle bitte eine andere Verifizierungsmethode.",header:"Standort freigeben",sticker:{color:"green",icon:"pin",size:"small"}},id:"formHeader",type:"formHeader"},{fieldConfig:{label:"Standort freigeben"},id:"submit-button",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"verification-methods",label:"Andere Verifizierungsmethoden",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"gps",onSubmit:n,pageViewtracking:{name:"verify_geo"},spacing:"md"}),UF=Ee.z.string({required_error:"Der Code muss genau 10 Zeichen lang sein und darf nur Buchstaben und Zahlen enthalten."}).trim().regex(/^[a-zA-Z0-9]{10}$/,{message:"Der Code muss genau 10 Zeichen lang sein und darf nur Buchstaben und Zahlen enthalten."}),VF=Ee.z.object({code:UF}),JF=n=>({canGoBack:!1,canGoNext:!1,fields:[{fieldConfig:{description:"Einen Zugangscode erhältst du z.B., wenn du eine Postkarte angefordert hast oder eine Einladung im Briefkasten hattest.",header:"Einladungscode",sticker:{color:"green",icon:"paper_form",size:"small"}},id:"formHeader",type:"formHeader"},{fieldConfig:{name:"code",type:"invite"},id:"code",layout:{gapTop:"md"},type:"codeField"},{fieldConfig:{label:"Senden"},id:"submit-button",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"verification-methods",label:"Andere Verifizierungsmethoden",position:"center",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"inviteCode",onSubmit:n,pageViewtracking:{name:"verify_code"},spacing:"lg",validationSchema:VF}),qF=0,_F=1,Hb="code",Zb="postcard",Wb="gps",Gb="sms",$F=[Gb,Hb,Zb,Wb],mp={[Hb]:{fieldConfig:{description:"Einladung erhalten? Gib deinen Code ein.",headline:"Per Einladungscode",sticker:{color:"green",icon:"paper_form",size:"small"}},id:"inviteCode",type:"tileButton"},[Wb]:{fieldConfig:{description:"Erlaube Standortzugriff.",headline:"GPS",sticker:{color:"green",icon:"pin",size:"small"}},id:"gps",type:"tileButton"},[Zb]:{fieldConfig:{description:"Erhalte einen Code in 2-3 Tagen.",headline:"Per Postcode",sticker:{color:"green",icon:"envelope",size:"small"}},id:"postalCode",type:"tileButton"},[Gb]:{fieldConfig:{description:"Gib deine Handynummer ein.",headline:"Per SMS",sticker:{color:"green",icon:"phone",size:"small"}},id:"phone_number",type:"tileButton"}},eT=n=>$F.map(t=>{const i=nT({...n,code:{enabled:!0,order_nr:1,status:0}},t);return i!=null&&i.enabled?{...mp[t],fieldConfig:{...mp[t].fieldConfig,isActive:(i==null?void 0:i.status)===qF,...(i==null?void 0:i.status)===_F&&{isPending:!0}},...(i==null?void 0:i.order_nr)===0&&{layout:{gapTop:"lg"}},order:(i==null?void 0:i.order_nr)??null}:null}).filter(t=>t!==null).sort((t,i)=>((t==null?void 0:t.order)??1/0)-((i==null?void 0:i.order)??1/0)),nT=(n,e)=>(n==null?void 0:n[e])??null,tT=n=>({canGoBack:!1,fields:[{fieldConfig:{header:"Verifizierungsmethoden"},id:"formHeader",type:"formHeader"},...eT(n),{fieldConfig:{href:"https://hilfe.nebenan.de/hc/de/requests/new?ticket_form_id=4905438161170",label:"Kontaktiere uns",position:"center",size:"medium",target:"_blank",text:"Hast du Probleme bei der Verifizierung?",type:"link",variant:"text"},id:"text-button",layout:{gapTop:"xl"},type:"button"}],id:"verification-methods",pageViewtracking:{name:"verify"},spacing:"lg"}),iT=n=>({canGoBack:!1,canGoNext:!1,fields:[{fieldConfig:{description:"Fordere eine Postkarte an und gib den darauf angegebenen Zugangscode ein. Fertig!",header:"Postkarte erhalten",sticker:{color:"green",icon:"envelope",size:"small"}},id:"formHeader",type:"formHeader"},{fieldConfig:{label:"Postkarte anfordern"},id:"submit-button",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"verification-methods",label:"Andere Verifizierungsmethoden",position:"center",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"postalCode",onSubmit:n,pageViewtracking:{name:"verify_postcard"},spacing:"md"}),rT=()=>({canGoBack:!1,canGoNext:!1,fields:[{fieldConfig:{description:"Es kann 2-3 Werktage dauern bis du deine Postkarte erhältst. Komm anschließend einfach auf nebenan.de zurück und gib deinen Code ein, um die Verifizierung abzuschließen. ",header:"Postkarte erhalten",sticker:{color:"green",icon:"envelope",size:"small"},title:"Deine Postkarte ist auf dem Weg zu dir!"},id:"formHeader",type:"formHeader"},{fieldConfig:{disabled:!0,label:"Die Postkarte ist unterwegs"},id:"submit-button",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"verification-methods",label:"Andere Verifizierungsmethoden",position:"center",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"postalCodeRequested",spacing:"md"}),aT=Ee.z.string().trim().regex(/^\+(3[0-9]|4[0-9]|2[0-9]|5[0-9])[0-9\s|]{8,16}$/,"Die Telefonnummer muss mit einer gültigen EU-Länder-Vorwahl beginnen und darf nur Zahlen und Leerzeichen enthalten.").transform(n=>n.replace(/\s+/g,"")).refine(n=>n.length>=10,{message:"Die Telefonnummer muss mindestens 10 Zeichen lang sein (inklusive Vorwahl)."}).refine(n=>n.length<=20,{message:"Die Telefonnummer darf höchstens 20 Zeichen lang sein (inklusive Vorwahl)."}),sT=Ee.z.object({phone:aT}),oT=n=>({canGoBack:!1,canGoNext:!0,fields:[{fieldConfig:{description:"Gib deine Handynummer ein. Wir schicken dir einen 6-stelligen Zugangscode per SMS.",header:"SMS Verifizierung",notice:{bodyText:"Deine Telefonnummer bleibt privat und wird nicht gespeichert oder mit Nachbar:innen geteilt.",color:"vanilla",context:"info",icon:{name:"eye_crossed",size:"24"},variant:"detailed"},sticker:{color:"green",icon:"phone",size:"small"}},id:"formHeader",type:"formHeader"},{fieldConfig:{label:"Handynummer",name:"phone"},id:"phone",type:"phoneInput"},{fieldConfig:{label:"SMS code anfordern"},id:"formSubmitButton",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"verification-methods",label:"Andere Verifizierungsmethoden",position:"center",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"phone_number",onSubmit:n,pageViewtracking:{name:"verify_sms"},spacing:"lg",validationMode:"onBlur",validationSchema:sT}),lT=Ee.z.string({required_error:"Der Telefoncode muss genau 6 Ziffern enthalten (z. B. 123456)."}).trim().regex(/^\d{6}$/,"Der Telefoncode muss genau 6 Ziffern enthalten (z. B. 123456)."),uT=Ee.z.object({sms_code:lT}),dT=n=>({canGoBack:!1,canGoNext:!1,fields:[{fieldConfig:{description:"Wir haben dir eine SMS mit einem 6-stelligen Code geschickt. Bitte gib ihn hier ein.",header:"SMS Verifizierung",notice:{bodyText:"Es kann ein paar Minuten dauern, bis die Nachricht kommt.",color:"grey",context:"info",icon:{name:"info",size:"24"},variant:"detailed"},phoneNr:!0,sticker:{color:"green",icon:"phone",size:"small"}},id:"formHeader",type:"formHeader"},{fieldConfig:{name:"sms_code",type:"sms"},id:"sms_code",type:"codeField"},{fieldConfig:{label:"Bestätigen"},id:"formSubmitButton",layout:{gapTop:"xl"},type:"button"},{fieldConfig:{goTo:"phone_number",label:"SMS erneut anfordern",position:"center",size:"medium",variant:"text"},id:"text-button",type:"button"}],id:"smsCode",onSubmit:n,pageViewtracking:{name:"verify_sms_code"},spacing:"lg",validationMode:"onSubmit",validationSchema:uT}),fT=async(n,e,t)=>{const i=wl("data.phone",n).split("|").join("");try{return await ze.requestSmsCode({phone_number:i,token:t}),!0}catch(r){return Ji(r,e,({field:s,message:o})=>{var l;(l=n.methods)==null||l.setError(s,{message:o,type:"manual"})},"phone")}},cT=async(n,e,t,i)=>{const r=wl("data.sms_code",n);try{await ze.sendSmsCode({smsCode:r,token:i}),e({})}catch(a){return Ji(a,t,({field:o,message:l})=>{var u;(u=n.methods)==null||u.setError(o,{message:l,type:"manual"})})}},hT=async(n,e,t,i)=>{const r=wl("data.code",n),a=`${r.slice(0,5)}-${r.slice(5)}`;try{await ze.sendInviteCode({inviteCode:a,token:i}),e({})}catch(s){return Ji(s,t,({field:l,message:u})=>{var d;(d=n.methods)==null||d.setError(l,{message:u,type:"manual"})},"code")}},gT=async(n,e,t)=>{try{return await ze.requestPostCard({token:t}),await n(),"postalCodeRequested"}catch(i){return Ji(i,e)}},mT=async(n,e,t)=>{const i={enableHighAccuracy:!0,maximumAge:0,timeout:1e4};return new Promise((r,a)=>{const s=l=>{ze.sendGpsVerification({accuracy:l.coords.accuracy,latitude:l.coords.latitude,longitude:l.coords.longitude,token:t}).then(u=>{n(u),r(!0)}).catch(u=>{Ji(u,e),a(!1)})},o=l=>{let u="Location access denied";switch(l.code){case l.PERMISSION_DENIED:u="Please allow location access to verify your address";break;case l.POSITION_UNAVAILABLE:u="Location information is unavailable";break;case l.TIMEOUT:u="Location request timed out";break}e(u),a(!1)};if(!navigator.geolocation){e("Geolocation is not supported by your browser"),a(!1);return}navigator.geolocation.getCurrentPosition(s,o,i)})},pT=({initialStep:n="verification-methods",onFetchProfile:e,onSubmit:t,status:i,token:r})=>{const[a,s]=b.useState(null),o=Pt.useTrack(),l=tT(i==null?void 0:i.verification_methods),u=rT(),d=[oT(c=>fT(c,s,r)),dT(c=>cT(c,f=>{o("verification_completed",{method:"sms"}),t(f)},s,r)),JF(c=>hT(c,f=>{o("verification_completed",{method:"code"}),t(f)},s,r)),KF(()=>mT(c=>{o("verification_completed",{method:"geo"}),t(c)},s,r)),iT(()=>gT(e,s,r)),l,u];return m.jsx(Kh,{id:"verification_wizard",steps:d,onStepChange:()=>s(null),excludedSteps:[l.id,u.id],initialStep:n,formError:a,formFieldMap:{...XF,...mw},formWrapper:c=>m.jsx(pw,{progressBar:{currentStep:4,steps:4},children:c})})},vT=({accessToken:n,defaultStep:e="phone_number",enableGoogleSSO:t,initialState:i=lt.REGISTRATION_START,initialStep:r="",onFetchProfile:a,onRegistrationSubmit:s,onVerificationSubmit:o,status:l})=>{const[u,d]=b.useState(i),[c,f]=b.useState(r),[h,g]=b.useState(!1),[p,v]=b.useState(n),[w,A]=b.useState(null),[y,z]=b.useState("*****"),C=Wh($1),O=Zh($1);b.useEffect(()=>{O&&S(!0,O),p&&!(l!=null&&l.is_address_verified)&&d(lt.VERIFICATION_FORM)},[l,p,O]);const B=({access_token:T,email_confirmation_required:N})=>{if(N)return d(lt.EMAIL_CONFIRMATION);T&&(v(T),f(e),s(T))},M=({authentication_token:T,email_confirmation_required:N,googleToken:D})=>{if(N){D&&z(Fz("email",D)),d(lt.EMAIL_CONFIRMATION);return}if(T)return s(T)},S=(T,N)=>{d(lt.REGISTRATION_FORM),g(T),N&&A(N)},F=(T,N)=>{d(lt.REGISTRATION_FORM),T&&C(`${N}`)},P=()=>{d(lt.REGISTRATION_FORM)},j=()=>d(lt.REGISTRATION_START);return m.jsxs("div",{className:FP.rootWrapper,children:[u===lt.REGISTRATION_START&&m.jsx(SP,{enableGoogleSSO:t,onRegistrationSuccess:M,onRegistrationError:F,onSwitchToEmail:P}),u===lt.EMAIL_CONFIRMATION&&m.jsx(gs,{screen:"email_confirmation",email:y,atom:"registration_wizard",atomKey:"emailStep.email"}),u===lt.REGISTRATION_FORM&&m.jsx(PO,{onSubmit:B,initialStep:c,isSSOFlow:h,googleIdToken:w,goBack:j}),u===lt.VERIFICATION_FORM&&m.jsx(pT,{status:l,onSubmit:o,onFetchProfile:a,token:p,initialStep:c})]})},wT="_garland_n7msg_141",bT="_variant_n7msg_156",pp={garland:wT,variant:bT},AT=()=>{const n=b.useRef(Math.round(Math.random()));return m.jsx("span",{className:ae(pp.garland,{[pp.variant]:n.current}),role:"presentation"})},kT="_react-datepicker__day-names_j2b8t_120",yT="_react-datepicker__week_j2b8t_124",xT="_react-datepicker__day--outside-month_j2b8t_131",CT="_react-datepicker_j2b8t_120",zT="_col_j2b8t_141",PT="_col--1_j2b8t_146",OT="_col--2_j2b8t_150",BT="_col--3_j2b8t_150",MT="_col--hidden_j2b8t_156",ST="_table_j2b8t_160",ET="_table__header_j2b8t_166",FT="_table__header_j2b8t_166",TT="_table__body_j2b8t_174",RT="_table__body_j2b8t_174",jT="_table__bodyData_j2b8t_179",DT="_table__bodyData_j2b8t_179",Un={"react-datepicker__day-names":"_react-datepicker__day-names_j2b8t_120",reactDatepickerDayNames:kT,"react-datepicker__week":"_react-datepicker__week_j2b8t_124",reactDatepickerWeek:yT,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_j2b8t_131",reactDatepickerDayOutsideMonth:xT,"react-datepicker":"_react-datepicker_j2b8t_120",reactDatepicker:CT,col:zT,"col--1":"_col--1_j2b8t_146",col1:PT,"col--2":"_col--2_j2b8t_150",col2:OT,"col--3":"_col--3_j2b8t_150",col3:BT,"col--hidden":"_col--hidden_j2b8t_156",colHidden:MT,table:ST,table__header:ET,tableHeader:FT,table__body:TT,tableBody:RT,table__bodyData:jT,tableBodyData:DT},IT=({header:n,list:e})=>{const t=s=>m.jsx(E.Icon,{name:"checkmark",size:"24",className:Un[`col--${s}`]}),i=s=>m.jsx(E.Icon,{name:"cross",size:"24",className:ae(Un[`col--${s}`],Un["col--hidden"])}),r=(s,o)=>{switch(s){case!0:return m.jsx("td",{children:i(o)},o);case!1:return m.jsx("td",{children:t(o)},o);default:return m.jsx("td",{className:Un.table__bodyData,children:m.jsx(E.Typography,{className:Un[`col--${o}`],type:"body-regular",children:s})},o)}},a=()=>e&&e.map((s,o)=>m.jsxs(b.Fragment,{children:[!!o&&m.jsx("tr",{children:m.jsx("td",{className:Un.table__bodyData,children:m.jsx(E.Divider,{})})}),m.jsx("tr",{className:Un.col,children:s&&s.map((l,u)=>r(l,u+1))})]},`table_row_${o}`));return m.jsx("section",{children:m.jsxs("table",{className:Un.table,children:[m.jsx("thead",{children:m.jsxs("tr",{className:Un.table__header,children:[m.jsx("th",{className:ae(Un.col,Un["col--1"])}),n&&n.map((s,o)=>m.jsx("th",{className:ae(Un.col,Un[`col--${o+2}`]),children:m.jsx(E.Typography,{type:"body-regular",children:s.label})},s.key))]})}),m.jsx("tbody",{className:Un.table__body,children:a()})]})})};function NT(n){return typeof n=="string"}function LT(n,e,t){return n===void 0||NT(n)?e:{...e,ownerState:{...e.ownerState,...t}}}function vp(n,e,t=(i,r)=>i===r){return n.length===e.length&&n.every((i,r)=>t(i,e[r]))}const HT={disableDefaultClasses:!1},Yb=k.createContext(HT);process.env.NODE_ENV!=="production"&&(Yb.displayName="ClassNameConfiguratorContext");function Ol(n){const{disableDefaultClasses:e}=k.useContext(Yb);return t=>e?"":n(t)}function gi(n,e=[]){if(n===void 0)return{};const t={};return Object.keys(n).filter(i=>i.match(/^on[A-Z]/)&&typeof n[i]=="function"&&!e.includes(i)).forEach(i=>{t[i]=n[i]}),t}function ZT(n,e,t){return typeof n=="function"?n(e,t):n}function WT(n){const{rootElementName:e="",componentName:t}=n,[i,r]=k.useState(e.toUpperCase());process.env.NODE_ENV!=="production"&&k.useEffect(()=>{e&&i!==e.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${t?`the ${t} component`:"a component"} expected the '${e}' element, but a '${i.toLowerCase()}' was rendered instead`,"This may cause hydration issues in an SSR context, for example in a Next.js app")},[e,i,t]);const a=k.useCallback(s=>{r((s==null?void 0:s.tagName)??"")},[]);return[i,a]}function Qb(n,e){return process.env.NODE_ENV==="production"?()=>null:function(...i){return n(...i)||e(...i)}}var C0={exports:{}},z0={exports:{}},De={};/** @license React v16.13.1
|
|
106
106
|
* react-is.production.min.js
|
|
107
107
|
*
|
|
108
108
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
package/index.mjs
CHANGED
|
@@ -11356,7 +11356,7 @@ const Tr = (n) => {
|
|
|
11356
11356
|
}, "phone");
|
|
11357
11357
|
}
|
|
11358
11358
|
}, VR = async (n, e, t, i) => {
|
|
11359
|
-
const r = Xl("data.
|
|
11359
|
+
const r = Xl("data.sms_code", n);
|
|
11360
11360
|
try {
|
|
11361
11361
|
await Tx({ smsCode: r, token: i }), e({});
|
|
11362
11362
|
} catch (a) {
|