@goodhood-web/nebenan-base 4.10.0-development.4 → 4.10.0-development.5

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -131,7 +131,7 @@ vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
131
131
  Or, to disable this warning, add the \`allowVulnerableTags\` option
132
132
  and ensure you are accounting for this risk.
133
133
 
134
- `)});const o=e.nonTextTags||["script","style","textarea","option"];let l,u;e.allowedAttributes&&(l={},u={},Ls(e.allowedAttributes,function(N,O){l[O]=[];const R=[];N.forEach(function(B){typeof B=="string"&&B.indexOf("*")>=0?R.push(Jv(B).replace(/\\\*/g,".*")):l[O].push(B)}),R.length&&(u[O]=new RegExp("^("+R.join("|")+")$"))}));const c={},f={},d={};Ls(e.allowedClasses,function(N,O){if(l&&(tr(l,O)||(l[O]=[]),l[O].push("class")),c[O]=N,Array.isArray(N)){const R=[];c[O]=[],d[O]=[],N.forEach(function(B){typeof B=="string"&&B.indexOf("*")>=0?R.push(Jv(B).replace(/\\\*/g,".*")):B instanceof RegExp?d[O].push(B):c[O].push(B)}),R.length&&(f[O]=new RegExp("^("+R.join("|")+")$"))}});const m={};let p;Ls(e.transformTags,function(N,O){let R;typeof N=="function"?R=N:typeof N=="string"&&(R=Dl.simpleTransform(N)),O==="*"?p=R:m[O]=R});let g,v,w,y,x,T,E=!1;F();const A=new wI.Parser({onopentag:function(N,O){if(e.onOpenTag&&e.onOpenTag(N,O),e.enforceHtmlBoundary&&N==="html"&&F(),x){T++;return}const R=new a(N,O);v.push(R);let B=!1;const W=!!R.text;let H;if(tr(m,N)&&(H=m[N](N,O),R.attribs=O=H.attribs,H.text!==void 0&&(R.innerText=H.text),N!==H.tagName&&(R.name=N=H.tagName,y[g]=H.tagName)),p&&(H=p(N,O),R.attribs=O=H.attribs,N!==H.tagName&&(R.name=N=H.tagName,y[g]=H.tagName)),(!s(N)||e.disallowedTagsMode==="recursiveEscape"&&!EI(w)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(B=!0,w[g]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(N)!==-1&&(x=!0,T=1)),g++,B){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(R.innerText&&!W){const V=P(R.innerText);e.textFilter?i+=e.textFilter(V,N):i+=V,E=!0}return}r=i,i=""}i+="<"+N,N==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(R.innerText=""),B&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?Ls(O,function(V,K){i+=" "+K+'="'+P(V||"",!0)+'"'}):(!l||tr(l,N)||l["*"])&&Ls(O,function(V,K){if(!AI.test(K)){delete R.attribs[K];return}if(V===""&&!e.allowedEmptyAttributes.includes(K)&&(e.nonBooleanAttributes.includes(K)||e.nonBooleanAttributes.includes("*"))){delete R.attribs[K];return}let ee=!1;if(!l||tr(l,N)&&l[N].indexOf(K)!==-1||l["*"]&&l["*"].indexOf(K)!==-1||tr(u,N)&&u[N].test(K)||u["*"]&&u["*"].test(K))ee=!0;else if(l&&l[N]){for(const q of l[N])if(kI(q)&&q.name&&q.name===K){ee=!0;let Z="";if(q.multiple===!0){const X=V.split(" ");for(const oe of X)q.values.indexOf(oe)!==-1&&(Z===""?Z=oe:Z+=" "+oe)}else q.values.indexOf(V)>=0&&(Z=V);V=Z}}if(ee){if(e.allowedSchemesAppliedToAttributes.indexOf(K)!==-1&&z(N,V)){delete R.attribs[K];return}if(N==="script"&&K==="src"){let q=!0;try{const Z=I(V);if(e.allowedScriptHostnames||e.allowedScriptDomains){const X=(e.allowedScriptHostnames||[]).find(function(re){return re===Z.url.hostname}),oe=(e.allowedScriptDomains||[]).find(function(re){return Z.url.hostname===re||Z.url.hostname.endsWith(`.${re}`)});q=X||oe}}catch{q=!1}if(!q){delete R.attribs[K];return}}if(N==="iframe"&&K==="src"){let q=!0;try{const Z=I(V);if(Z.isRelativeUrl)q=tr(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const X=(e.allowedIframeHostnames||[]).find(function(re){return re===Z.url.hostname}),oe=(e.allowedIframeDomains||[]).find(function(re){return Z.url.hostname===re||Z.url.hostname.endsWith(`.${re}`)});q=X||oe}}catch{q=!1}if(!q){delete R.attribs[K];return}}if(K==="srcset")try{let q=yI(V);if(q.forEach(function(Z){z("srcset",Z.url)&&(Z.evil=!0)}),q=Yv(q,function(Z){return!Z.evil}),q.length)V=TI(Yv(q,function(Z){return!Z.evil})),R.attribs[K]=V;else{delete R.attribs[K];return}}catch{delete R.attribs[K];return}if(K==="class"){const q=c[N],Z=c["*"],X=f[N],oe=d[N],re=d["*"],ke=f["*"],ae=[X,ke].concat(oe,re).filter(function(et){return et});if(q&&Z?V=D(V,Qv(q,Z),ae):V=D(V,q||Z,ae),!V.length){delete R.attribs[K];return}}if(K==="style"){if(e.parseStyleAttributes)try{const q=xI(N+" {"+V+"}",{map:!1}),Z=M(q,e.allowedStyles);if(V=j(Z),V.length===0){delete R.attribs[K];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+N+" {"+V+`}", 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[K];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}i+=" "+K,V&&V.length?i+='="'+P(V,!0)+'"':e.allowedEmptyAttributes.includes(K)&&(i+='=""')}else delete R.attribs[K]}),e.selfClosing.indexOf(N)!==-1?i+=" />":(i+=">",R.innerText&&!W&&!e.textFilter&&(i+=P(R.innerText),E=!0)),B&&(i=r+P(i),r=""),R.openingTagLength=i.length-R.tagPosition},ontext:function(N){if(x)return;const O=v[v.length-1];let R;if(O&&(R=O.tag,N=O.innerText!==void 0?O.innerText:N),e.disallowedTagsMode==="completelyDiscard"&&!s(R))N="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(R==="script"||R==="style"))i+=N;else if(!E){const B=P(N,!1);e.textFilter?i+=e.textFilter(B,R):i+=B}if(v.length){const B=v[v.length-1];B.text+=N}},onclosetag:function(N,O){if(e.onCloseTag&&e.onCloseTag(N,O),x)if(T--,!T)x=!1;else return;const R=v.pop();if(!R)return;if(R.tag!==N){v.push(R);return}x=e.enforceHtmlBoundary?N==="html":!1,g--;const B=w[g];if(B){if(delete w[g],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){R.updateParentNodeText();return}r=i,i=""}if(y[g]&&(N=y[g],delete y[g]),e.exclusiveFilter){const W=e.exclusiveFilter(R);if(W==="excludeTag"){B&&(i=r,r=""),i=i.substring(0,R.tagPosition)+i.substring(R.tagPosition+R.openingTagLength);return}else if(W){i=i.substring(0,R.tagPosition);return}}if(R.updateParentNodeMediaChildren(),R.updateParentNodeText(),e.selfClosing.indexOf(N)!==-1||O&&!s(N)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){B&&(i=r,r="");return}i+="</"+N+">",B&&(i=r+P(i),r=""),E=!1}},e.parser);return A.write(t),A.end(),i;function F(){i="",g=0,v=[],w={},y={},x=!1,T=0}function P(N,O){return typeof N!="string"&&(N=N+""),e.parser.decodeEntities&&(N=N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;"))),N=N.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;")),N}function z(N,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const W=O.indexOf("<!--");if(W===-1)break;const H=O.indexOf("-->",W+4);if(H===-1)break;O=O.substring(0,W)+O.substring(H+3)}const R=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!R)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const B=R[1].toLowerCase();return tr(e.allowedSchemesByTag,N)?e.allowedSchemesByTag[N].indexOf(B)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(B)===-1}function I(N){if(N=N.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),N.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let W=0;W<100;W++)O+=`/${W}`;const R=new URL(N,O);return{isRelativeUrl:R&&R.hostname==="relative-site"&&R.protocol==="relative:",url:R}}function M(N,O){if(!O)return N;const R=N.nodes[0];let B;return O[R.selector]&&O["*"]?B=Qv(O[R.selector],O["*"]):B=O[R.selector]||O["*"],B&&(N.nodes[0].nodes=R.nodes.reduce(L(B),[])),N}function j(N){return N.nodes[0].nodes.reduce(function(O,R){return O.push(`${R.prop}:${R.value}${R.important?" !important":""}`),O},[]).join(";")}function L(N){return function(O,R){return tr(N,R.prop)&&N[R.prop].some(function(W){return W.test(R.value)})&&O.push(R),O}}function D(N,O,R){return O?(N=N.split(/\s+/),N.filter(function(B){return O.indexOf(B)!==-1||R.some(function(W){return W.test(B)})}).join(" ")):N}}const PI={decodeEntities:!0};Dl.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","menu","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,preserveEscapedAttributes:!1};Dl.simpleTransform=function(t,e,n){return n=n===void 0?!0:n,e=e||{},function(i,r){let a;if(n)for(a in e)r[a]=e[a];else r=e;return{tagName:t,attribs:r}}};const Zk=Vn(MI),FI="_markdown_1ek7s_146",Xv={markdown:FI,"markdown--external-links":"_markdown--external-links_1ek7s_161"},zI={allowedAttributes:{a:["href","target"]},allowedTags:["a","strong"]};function LI({className:t,disableAutolinks:e=!1,elementTag:n="span",inline:i=!1,isExternalLinksIcon:r,text:a}){const s=n,o=e?f=>{const d=f.raw,m=f.type==="link"?f.href:"",p=/\[.*\]\(.*\)/.test(d);if(!(f.type==="autolink"||f.type==="link"&&m&&/^(?:mailto:|https?:|www\.)/.test(m)&&!p))return;const v=String(f.text??(m?m.replace(/^mailto:/,""):d.replace(/^<|>$/g,"")));f.type="text",f.raw=v,f.text=v,delete f.href,delete f.title,delete f.tokens}:void 0,l={breaks:!0,...o&&{walkTokens:o}},u=i?_e.parseInline(a,l):_e.parse(a,l),c=Zk(u,zI);return h.jsx(s,{className:Y(Xv.markdown,{[Xv["markdown--external-links"]]:r},t),dangerouslySetInnerHTML:{__html:c}})}const jI="_react-datepicker_elfhm_116",II="_react-datepicker__day-names_elfhm_119",RI="_react-datepicker__week_elfhm_123",NI="_react-datepicker__day--outside-month_elfhm_130",DI="_react-datepicker__time-container_elfhm_139",BI="_react-datepicker__time_elfhm_139",OI="_react-datepicker__time-box_elfhm_142",HI="_typography-landing--claim_elfhm_146",WI="_typography-landing--claim-uppercase_elfhm_187",VI="_typography-landing--h1_elfhm_228",_I="_typography-landing--h1-uppercase_elfhm_269",GI="_typography-landing--h2_elfhm_310",UI="_typography-landing--h2-uppercase_elfhm_351",qI="_typography-landing--h3_elfhm_392",KI="_typography-landing--h4_elfhm_433",ZI="_typography-landing--h5_elfhm_474",JI="_typography-landing--h6_elfhm_515",QI="_typography-landing--overline_elfhm_556",YI="_typography-landing--body-large_elfhm_596",XI="_typography-landing--body-large-semibold_elfhm_636",$I="_typography-landing--body_elfhm_596",eR="_typography-landing--body-semibold_elfhm_716",tR="_typography-landing--body-small_elfhm_756",nR="_typography-landing--body-small-semibold_elfhm_796",iR="_typography-landing--body-small-italic_elfhm_836",rR="_typography-landing--body-italic_elfhm_876",aR="_typography-landing--body-large-italic_elfhm_916",sR="_typography-landing--quote-large_elfhm_956",oR="_typography-landing--detail-small_elfhm_968",lR="_typography-landing--detail-small-bold_elfhm_980",uR="_typography-landing_elfhm_146",cR="_typography-product_elfhm_1010",dR="_typography-product--h1_elfhm_1022",fR="_typography-product--h2_elfhm_1034",hR="_typography-product--h3_elfhm_1046",mR="_typography-product--h4_elfhm_1058",pR="_typography-product--h5_elfhm_1070",gR="_typography-product--h6_elfhm_1082",vR="_typography-product--h7_elfhm_1094",bR="_typography-product--h8_elfhm_1106",wR="_typography-product--body-large_elfhm_1118",kR="_typography-product--body-regular_elfhm_1142",yR="_typography-product--body-semibold_elfhm_1166",xR="_typography-product--body-italic_elfhm_1190",CR="_typography-product--body-text-link_elfhm_1215",SR="_typography-product--detail-medium_elfhm_1227",ER="_typography-product--detail-bold_elfhm_1251",TR="_typography-product--detail-upper-case_elfhm_1275",MR="_typography-product--detail-regular_elfhm_1299",AR="_typography-product--detail-text-link_elfhm_1323",$v={"react-datepicker":"_react-datepicker_elfhm_116",reactDatepicker:jI,"react-datepicker__day-names":"_react-datepicker__day-names_elfhm_119",reactDatepickerDayNames:II,"react-datepicker__week":"_react-datepicker__week_elfhm_123",reactDatepickerWeek:RI,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_elfhm_130",reactDatepickerDayOutsideMonth:NI,"react-datepicker__time-container":"_react-datepicker__time-container_elfhm_139",reactDatepickerTimeContainer:DI,"react-datepicker__time":"_react-datepicker__time_elfhm_139",reactDatepickerTime:BI,"react-datepicker__time-box":"_react-datepicker__time-box_elfhm_142",reactDatepickerTimeBox:OI,"typography-landing--claim":"_typography-landing--claim_elfhm_146",typographyLandingClaim:HI,"typography-landing--claim-uppercase":"_typography-landing--claim-uppercase_elfhm_187",typographyLandingClaimUppercase:WI,"typography-landing--h1":"_typography-landing--h1_elfhm_228",typographyLandingH1:VI,"typography-landing--h1-uppercase":"_typography-landing--h1-uppercase_elfhm_269",typographyLandingH1Uppercase:_I,"typography-landing--h2":"_typography-landing--h2_elfhm_310",typographyLandingH2:GI,"typography-landing--h2-uppercase":"_typography-landing--h2-uppercase_elfhm_351",typographyLandingH2Uppercase:UI,"typography-landing--h3":"_typography-landing--h3_elfhm_392",typographyLandingH3:qI,"typography-landing--h4":"_typography-landing--h4_elfhm_433",typographyLandingH4:KI,"typography-landing--h5":"_typography-landing--h5_elfhm_474",typographyLandingH5:ZI,"typography-landing--h6":"_typography-landing--h6_elfhm_515",typographyLandingH6:JI,"typography-landing--overline":"_typography-landing--overline_elfhm_556",typographyLandingOverline:QI,"typography-landing--body-large":"_typography-landing--body-large_elfhm_596",typographyLandingBodyLarge:YI,"typography-landing--body-large-semibold":"_typography-landing--body-large-semibold_elfhm_636",typographyLandingBodyLargeSemibold:XI,"typography-landing--body":"_typography-landing--body_elfhm_596",typographyLandingBody:$I,"typography-landing--body-semibold":"_typography-landing--body-semibold_elfhm_716",typographyLandingBodySemibold:eR,"typography-landing--body-small":"_typography-landing--body-small_elfhm_756",typographyLandingBodySmall:tR,"typography-landing--body-small-semibold":"_typography-landing--body-small-semibold_elfhm_796",typographyLandingBodySmallSemibold:nR,"typography-landing--body-small-italic":"_typography-landing--body-small-italic_elfhm_836",typographyLandingBodySmallItalic:iR,"typography-landing--body-italic":"_typography-landing--body-italic_elfhm_876",typographyLandingBodyItalic:rR,"typography-landing--body-large-italic":"_typography-landing--body-large-italic_elfhm_916",typographyLandingBodyLargeItalic:aR,"typography-landing--quote-large":"_typography-landing--quote-large_elfhm_956",typographyLandingQuoteLarge:sR,"typography-landing--detail-small":"_typography-landing--detail-small_elfhm_968",typographyLandingDetailSmall:oR,"typography-landing--detail-small-bold":"_typography-landing--detail-small-bold_elfhm_980",typographyLandingDetailSmallBold:lR,"typography-landing":"_typography-landing_elfhm_146",typographyLanding:uR,"typography-product":"_typography-product_elfhm_1010",typographyProduct:cR,"typography-product--h1":"_typography-product--h1_elfhm_1022",typographyProductH1:dR,"typography-product--h2":"_typography-product--h2_elfhm_1034",typographyProductH2:fR,"typography-product--h3":"_typography-product--h3_elfhm_1046",typographyProductH3:hR,"typography-product--h4":"_typography-product--h4_elfhm_1058",typographyProductH4:mR,"typography-product--h5":"_typography-product--h5_elfhm_1070",typographyProductH5:pR,"typography-product--h6":"_typography-product--h6_elfhm_1082",typographyProductH6:gR,"typography-product--h7":"_typography-product--h7_elfhm_1094",typographyProductH7:vR,"typography-product--h8":"_typography-product--h8_elfhm_1106",typographyProductH8:bR,"typography-product--body-large":"_typography-product--body-large_elfhm_1118",typographyProductBodyLarge:wR,"typography-product--body-regular":"_typography-product--body-regular_elfhm_1142",typographyProductBodyRegular:kR,"typography-product--body-semibold":"_typography-product--body-semibold_elfhm_1166",typographyProductBodySemibold:yR,"typography-product--body-italic":"_typography-product--body-italic_elfhm_1190",typographyProductBodyItalic:xR,"typography-product--body-text-link":"_typography-product--body-text-link_elfhm_1215",typographyProductBodyTextLink:CR,"typography-product--detail-medium":"_typography-product--detail-medium_elfhm_1227",typographyProductDetailMedium:SR,"typography-product--detail-bold":"_typography-product--detail-bold_elfhm_1251",typographyProductDetailBold:ER,"typography-product--detail-upper-case":"_typography-product--detail-upper-case_elfhm_1275",typographyProductDetailUpperCase:TR,"typography-product--detail-regular":"_typography-product--detail-regular_elfhm_1299",typographyProductDetailRegular:MR,"typography-product--detail-text-link":"_typography-product--detail-text-link_elfhm_1323",typographyProductDetailTextLink:AR};function PR(t){switch(t){case"h1":case"h1-uppercase":return"h1";case"h2":case"claim":case"claim-uppercase":return"h2";case"h3":case"h4":case"h5":return t;case"h6":case"overline":return"h6";default:return"span"}}const lr=t=>{const{as:e,children:n,className:i,fontSet:r="product",markdown:a=r==="landing",markdownInline:s=!0,disableAutolinks:o,type:l}=t,u=e||PR(l),c=Y($v[`typography-${r}`],$v[`typography-${r}--${l}`],i);return h.jsx(h.Fragment,{children:typeof n=="string"&&a?h.jsx(LI,{className:c,text:n,inline:s,elementTag:u,isExternalLinksIcon:r==="landing",disableAutolinks:o}):h.jsx(u,{className:c,"data-testid":t["data-testid"],children:n})})},FR="_inputDetails_i97t5_146",zR="_inputDetails__hintText_i97t5_152",LR="_inputDetails__errorText_i97t5_156",jR="_inputDetails__counter_i97t5_160",Uo={inputDetails:FR,inputDetails__hintText:zR,inputDetails__errorText:LR,inputDetails__counter:jR},IR=({charCount:t,charLimit:e,errorText:n,hintText:i})=>{const r=`${t??0}/${e}`;return h.jsxs("div",{className:Uo.inputDetails,children:[h.jsxs("div",{children:[i&&!n&&h.jsx(lr,{className:Uo.inputDetails__hintText,type:"detail-medium",children:i}),n&&h.jsx(h.Fragment,{children:Array.isArray(n)?n.map((a,s)=>h.jsx(lr,{className:Uo.inputDetails__errorText,type:"detail-bold",children:a},s)):h.jsx(lr,{className:Uo.inputDetails__errorText,type:"detail-bold",children:n})})]}),!!e&&h.jsx(lr,{type:"detail-medium",className:Uo.inputDetails__counter,children:r})]})},RR="_react-datepicker_1m719_116",NR="_react-datepicker__day-names_1m719_119",DR="_react-datepicker__week_1m719_123",BR="_react-datepicker__day--outside-month_1m719_130",OR="_react-datepicker__time-container_1m719_139",HR="_react-datepicker__time_1m719_139",WR="_react-datepicker__time-box_1m719_142",VR="_container_1m719_149",_R="_inputContainer_1m719_157",GR="_inputContainer--disabled_1m719_169",UR="_inputContainer--filled_1m719_172",qR="_inputContainer--outlined_1m719_178",KR="_inputContainer--error_1m719_186",ZR="_character_1m719_191",JR="_inputContainer--sms_1m719_194",QR="_inputContainer--active_1m719_197",YR="_character--selected_1m719_197",XR="_blink_1m719_1",$R="_input_1m719_157",eN="_character__divider_1m719_255",tN="_character__divider_1m719_255",fn={"react-datepicker":"_react-datepicker_1m719_116",reactDatepicker:RR,"react-datepicker__day-names":"_react-datepicker__day-names_1m719_119",reactDatepickerDayNames:NR,"react-datepicker__week":"_react-datepicker__week_1m719_123",reactDatepickerWeek:DR,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_1m719_130",reactDatepickerDayOutsideMonth:BR,"react-datepicker__time-container":"_react-datepicker__time-container_1m719_139",reactDatepickerTimeContainer:OR,"react-datepicker__time":"_react-datepicker__time_1m719_139",reactDatepickerTime:HR,"react-datepicker__time-box":"_react-datepicker__time-box_1m719_142",reactDatepickerTimeBox:WR,container:VR,inputContainer:_R,"inputContainer--disabled":"_inputContainer--disabled_1m719_169",inputContainerDisabled:GR,"inputContainer--filled":"_inputContainer--filled_1m719_172",inputContainerFilled:UR,"inputContainer--outlined":"_inputContainer--outlined_1m719_178",inputContainerOutlined:qR,"inputContainer--error":"_inputContainer--error_1m719_186",inputContainerError:KR,character:ZR,"inputContainer--sms":"_inputContainer--sms_1m719_194",inputContainerSms:JR,"inputContainer--active":"_inputContainer--active_1m719_197",inputContainerActive:QR,"character--selected":"_character--selected_1m719_197",characterSelected:YR,blink:XR,input:$R,character__divider:eN,characterDivider:tN},nN=({disabled:t=!1,errorText:e,onComplete:n,type:i="invite",length:r=i==="sms"?6:10,variant:a="outlined",value:s=""})=>{const[o,l]=b.useState(s),[u,c]=b.useState(!1),f=b.useRef(null);b.useEffect(()=>{t&&c(!1)},[t]),b.useEffect(()=>{l(s)},[s]);const d=()=>{var T;(T=f.current)==null||T.focus()},m=T=>{["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(T.key)&&T.preventDefault()},p=T=>{const A=T.target.value.replace(/\s/g,"").slice(0,r);new RegExp("^[A-Za-zÀ-ÖØ-öø-ÿ0-9]*$").test(A)&&(l(A),A.length===r&&(n==null||n(A)))},g=T=>{c(!0),T.target.select()},v=()=>{c(!1),n==null||n(o)},w=()=>o,y=T=>w().length===T&&u,x=T=>i==="invite"&&T===Math.floor((r-1)/2);return h.jsxs("div",{"data-testid":"container",className:fn.container,children:[h.jsxs("div",{tabIndex:1,className:Y(fn.inputContainer,fn[`inputContainer--${a}`],fn[`inputContainer--${i}`],{[fn["inputContainer--disabled"]]:t,[fn["inputContainer--error"]]:!!e,[fn["inputContainer--active"]]:u}),onClick:d,children:[h.jsx("input",{"aria-label":"verification input",spellCheck:!1,ref:f,value:w(),className:Y(fn.input,{[fn["input--disabled"]]:!0}),onChange:p,onKeyDown:m,onFocus:g,onBlur:v,disabled:t}),Array.from({length:r},(T,E)=>h.jsxs(b.Fragment,{children:[h.jsx(S.Typography,{type:"h3",className:Y(fn.character,{[fn["character--selected"]]:y(E)}),children:w()[E]},E),x(E)&&h.jsx(S.Typography,{type:"h3",className:Y(fn.character,fn.character__divider)},`${E}-divider`)]},`${E}-fragment`))]}),e&&h.jsx(IR,{errorText:e})]})},iN=({disabled:t,length:e,name:n,rules:i,type:r,variant:a})=>{var u;const{control:s}=fe.useFormContext(),{field:o,fieldState:l}=fe.useController({control:s,name:n,rules:i});return h.jsx(nN,{disabled:t,length:e,type:r,variant:a,errorText:(u=l.error)==null?void 0:u.message,onComplete:o.onChange,value:o.value})},rN={codeField:t=>h.jsx(iN,{...t==null?void 0:t.fieldConfig},t.id),phoneInput:t=>h.jsx(gw,{...t==null?void 0:t.fieldConfig},t.id),tileButton:t=>h.jsx(pw,{...t==null?void 0:t.fieldConfig,id:t.id},t.id)},aN=t=>({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:t,pageViewtracking:{name:"verify_geo"},spacing:"md"}),sN=de.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."}),oN=de.z.object({code:sN}),lN=t=>({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:t,pageViewtracking:{name:"verify_code"},spacing:"lg",validationSchema:oN}),uN=0,cN=1,Jk="code",Qk="postcard",Yk="gps",Xk="sms",dN=[Xk,Jk,Qk,Yk],e3={[Jk]:{fieldConfig:{description:"Einladung erhalten? Gib deinen Code ein.",headline:"Per Einladungscode",sticker:{color:"green",icon:"paper_form",size:"small"}},id:"inviteCode",type:"tileButton"},[Yk]:{fieldConfig:{description:"Erlaube Standortzugriff.",headline:"GPS",sticker:{color:"green",icon:"pin",size:"small"}},id:"gps",type:"tileButton"},[Qk]:{fieldConfig:{description:"Erhalte einen Code in 2-3 Tagen.",headline:"Per Postcode",sticker:{color:"green",icon:"envelope",size:"small"}},id:"postalCode",type:"tileButton"},[Xk]:{fieldConfig:{description:"Gib deine Handynummer ein.",headline:"Per SMS",sticker:{color:"green",icon:"phone",size:"small"}},id:"phone_number",type:"tileButton"}},fN=t=>dN.map(n=>{const i=hN({...t,code:{enabled:!0,order_nr:1,status:0}},n);return i!=null&&i.enabled?{...e3[n],fieldConfig:{...e3[n].fieldConfig,isActive:(i==null?void 0:i.status)===uN,...(i==null?void 0:i.status)===cN&&{isPending:!0}},...(i==null?void 0:i.order_nr)===0&&{layout:{gapTop:"lg"}},order:(i==null?void 0:i.order_nr)??null}:null}).filter(n=>n!==null).sort((n,i)=>((n==null?void 0:n.order)??1/0)-((i==null?void 0:i.order)??1/0)),hN=(t,e)=>(t==null?void 0:t[e])??null,mN=t=>({canGoBack:!1,fields:[{fieldConfig:{header:"Verifizierungsmethoden"},id:"formHeader",type:"formHeader"},...fN(t),{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"}),pN=t=>({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:t,pageViewtracking:{name:"verify_postcard"},spacing:"md"}),gN=()=>({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"}),vN=de.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(t=>t.replace(/\s+/g,"")).refine(t=>t.length>=10,{message:"Die Telefonnummer muss mindestens 10 Zeichen lang sein (inklusive Vorwahl)."}).refine(t=>t.length<=20,{message:"Die Telefonnummer darf höchstens 20 Zeichen lang sein (inklusive Vorwahl)."}),bN=de.z.object({phone:vN}),wN=t=>({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:t,pageViewtracking:{name:"verify_sms"},spacing:"lg",validationMode:"onBlur",validationSchema:bN}),kN=de.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)."),yN=de.z.object({sms_code:kN}),xN=t=>({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:t,pageViewtracking:{name:"verify_sms_code"},spacing:"lg",validationMode:"onSubmit",validationSchema:yN}),CN=async(t,e,n)=>{const i=su("data.phone",t).split("|").join("");try{return await Pe.requestSmsCode({phone_number:i,token:n}),!0}catch(r){return oi(r,e,({field:s,message:o})=>{var l;(l=t.methods)==null||l.setError(s,{message:Array.isArray(o)?o.join(`
134
+ `)});const o=e.nonTextTags||["script","style","textarea","option"];let l,u;e.allowedAttributes&&(l={},u={},Ls(e.allowedAttributes,function(N,O){l[O]=[];const R=[];N.forEach(function(B){typeof B=="string"&&B.indexOf("*")>=0?R.push(Jv(B).replace(/\\\*/g,".*")):l[O].push(B)}),R.length&&(u[O]=new RegExp("^("+R.join("|")+")$"))}));const c={},f={},d={};Ls(e.allowedClasses,function(N,O){if(l&&(tr(l,O)||(l[O]=[]),l[O].push("class")),c[O]=N,Array.isArray(N)){const R=[];c[O]=[],d[O]=[],N.forEach(function(B){typeof B=="string"&&B.indexOf("*")>=0?R.push(Jv(B).replace(/\\\*/g,".*")):B instanceof RegExp?d[O].push(B):c[O].push(B)}),R.length&&(f[O]=new RegExp("^("+R.join("|")+")$"))}});const m={};let p;Ls(e.transformTags,function(N,O){let R;typeof N=="function"?R=N:typeof N=="string"&&(R=Dl.simpleTransform(N)),O==="*"?p=R:m[O]=R});let g,v,w,y,x,T,E=!1;F();const A=new wI.Parser({onopentag:function(N,O){if(e.onOpenTag&&e.onOpenTag(N,O),e.enforceHtmlBoundary&&N==="html"&&F(),x){T++;return}const R=new a(N,O);v.push(R);let B=!1;const W=!!R.text;let H;if(tr(m,N)&&(H=m[N](N,O),R.attribs=O=H.attribs,H.text!==void 0&&(R.innerText=H.text),N!==H.tagName&&(R.name=N=H.tagName,y[g]=H.tagName)),p&&(H=p(N,O),R.attribs=O=H.attribs,N!==H.tagName&&(R.name=N=H.tagName,y[g]=H.tagName)),(!s(N)||e.disallowedTagsMode==="recursiveEscape"&&!EI(w)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(B=!0,w[g]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(N)!==-1&&(x=!0,T=1)),g++,B){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(R.innerText&&!W){const V=P(R.innerText);e.textFilter?i+=e.textFilter(V,N):i+=V,E=!0}return}r=i,i=""}i+="<"+N,N==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(R.innerText=""),B&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?Ls(O,function(V,K){i+=" "+K+'="'+P(V||"",!0)+'"'}):(!l||tr(l,N)||l["*"])&&Ls(O,function(V,K){if(!AI.test(K)){delete R.attribs[K];return}if(V===""&&!e.allowedEmptyAttributes.includes(K)&&(e.nonBooleanAttributes.includes(K)||e.nonBooleanAttributes.includes("*"))){delete R.attribs[K];return}let ee=!1;if(!l||tr(l,N)&&l[N].indexOf(K)!==-1||l["*"]&&l["*"].indexOf(K)!==-1||tr(u,N)&&u[N].test(K)||u["*"]&&u["*"].test(K))ee=!0;else if(l&&l[N]){for(const q of l[N])if(kI(q)&&q.name&&q.name===K){ee=!0;let Z="";if(q.multiple===!0){const X=V.split(" ");for(const oe of X)q.values.indexOf(oe)!==-1&&(Z===""?Z=oe:Z+=" "+oe)}else q.values.indexOf(V)>=0&&(Z=V);V=Z}}if(ee){if(e.allowedSchemesAppliedToAttributes.indexOf(K)!==-1&&z(N,V)){delete R.attribs[K];return}if(N==="script"&&K==="src"){let q=!0;try{const Z=I(V);if(e.allowedScriptHostnames||e.allowedScriptDomains){const X=(e.allowedScriptHostnames||[]).find(function(re){return re===Z.url.hostname}),oe=(e.allowedScriptDomains||[]).find(function(re){return Z.url.hostname===re||Z.url.hostname.endsWith(`.${re}`)});q=X||oe}}catch{q=!1}if(!q){delete R.attribs[K];return}}if(N==="iframe"&&K==="src"){let q=!0;try{const Z=I(V);if(Z.isRelativeUrl)q=tr(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const X=(e.allowedIframeHostnames||[]).find(function(re){return re===Z.url.hostname}),oe=(e.allowedIframeDomains||[]).find(function(re){return Z.url.hostname===re||Z.url.hostname.endsWith(`.${re}`)});q=X||oe}}catch{q=!1}if(!q){delete R.attribs[K];return}}if(K==="srcset")try{let q=yI(V);if(q.forEach(function(Z){z("srcset",Z.url)&&(Z.evil=!0)}),q=Yv(q,function(Z){return!Z.evil}),q.length)V=TI(Yv(q,function(Z){return!Z.evil})),R.attribs[K]=V;else{delete R.attribs[K];return}}catch{delete R.attribs[K];return}if(K==="class"){const q=c[N],Z=c["*"],X=f[N],oe=d[N],re=d["*"],ke=f["*"],ae=[X,ke].concat(oe,re).filter(function(et){return et});if(q&&Z?V=D(V,Qv(q,Z),ae):V=D(V,q||Z,ae),!V.length){delete R.attribs[K];return}}if(K==="style"){if(e.parseStyleAttributes)try{const q=xI(N+" {"+V+"}",{map:!1}),Z=M(q,e.allowedStyles);if(V=j(Z),V.length===0){delete R.attribs[K];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+N+" {"+V+`}", 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[K];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}i+=" "+K,V&&V.length?i+='="'+P(V,!0)+'"':e.allowedEmptyAttributes.includes(K)&&(i+='=""')}else delete R.attribs[K]}),e.selfClosing.indexOf(N)!==-1?i+=" />":(i+=">",R.innerText&&!W&&!e.textFilter&&(i+=P(R.innerText),E=!0)),B&&(i=r+P(i),r=""),R.openingTagLength=i.length-R.tagPosition},ontext:function(N){if(x)return;const O=v[v.length-1];let R;if(O&&(R=O.tag,N=O.innerText!==void 0?O.innerText:N),e.disallowedTagsMode==="completelyDiscard"&&!s(R))N="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(R==="script"||R==="style"))i+=N;else if(!E){const B=P(N,!1);e.textFilter?i+=e.textFilter(B,R):i+=B}if(v.length){const B=v[v.length-1];B.text+=N}},onclosetag:function(N,O){if(e.onCloseTag&&e.onCloseTag(N,O),x)if(T--,!T)x=!1;else return;const R=v.pop();if(!R)return;if(R.tag!==N){v.push(R);return}x=e.enforceHtmlBoundary?N==="html":!1,g--;const B=w[g];if(B){if(delete w[g],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){R.updateParentNodeText();return}r=i,i=""}if(y[g]&&(N=y[g],delete y[g]),e.exclusiveFilter){const W=e.exclusiveFilter(R);if(W==="excludeTag"){B&&(i=r,r=""),i=i.substring(0,R.tagPosition)+i.substring(R.tagPosition+R.openingTagLength);return}else if(W){i=i.substring(0,R.tagPosition);return}}if(R.updateParentNodeMediaChildren(),R.updateParentNodeText(),e.selfClosing.indexOf(N)!==-1||O&&!s(N)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){B&&(i=r,r="");return}i+="</"+N+">",B&&(i=r+P(i),r=""),E=!1}},e.parser);return A.write(t),A.end(),i;function F(){i="",g=0,v=[],w={},y={},x=!1,T=0}function P(N,O){return typeof N!="string"&&(N=N+""),e.parser.decodeEntities&&(N=N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;"))),N=N.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;")),N}function z(N,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const W=O.indexOf("<!--");if(W===-1)break;const H=O.indexOf("-->",W+4);if(H===-1)break;O=O.substring(0,W)+O.substring(H+3)}const R=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!R)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const B=R[1].toLowerCase();return tr(e.allowedSchemesByTag,N)?e.allowedSchemesByTag[N].indexOf(B)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(B)===-1}function I(N){if(N=N.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),N.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let W=0;W<100;W++)O+=`/${W}`;const R=new URL(N,O);return{isRelativeUrl:R&&R.hostname==="relative-site"&&R.protocol==="relative:",url:R}}function M(N,O){if(!O)return N;const R=N.nodes[0];let B;return O[R.selector]&&O["*"]?B=Qv(O[R.selector],O["*"]):B=O[R.selector]||O["*"],B&&(N.nodes[0].nodes=R.nodes.reduce(L(B),[])),N}function j(N){return N.nodes[0].nodes.reduce(function(O,R){return O.push(`${R.prop}:${R.value}${R.important?" !important":""}`),O},[]).join(";")}function L(N){return function(O,R){return tr(N,R.prop)&&N[R.prop].some(function(W){return W.test(R.value)})&&O.push(R),O}}function D(N,O,R){return O?(N=N.split(/\s+/),N.filter(function(B){return O.indexOf(B)!==-1||R.some(function(W){return W.test(B)})}).join(" ")):N}}const PI={decodeEntities:!0};Dl.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","menu","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,preserveEscapedAttributes:!1};Dl.simpleTransform=function(t,e,n){return n=n===void 0?!0:n,e=e||{},function(i,r){let a;if(n)for(a in e)r[a]=e[a];else r=e;return{tagName:t,attribs:r}}};const Zk=Vn(MI),FI="_markdown_1ek7s_146",Xv={markdown:FI,"markdown--external-links":"_markdown--external-links_1ek7s_161"},zI={allowedAttributes:{a:["href","target"]},allowedTags:["a","strong","br","p"]};function LI({className:t,disableAutolinks:e=!1,elementTag:n="span",inline:i=!1,isExternalLinksIcon:r,text:a}){const s=n,o=e?f=>{const d=f.raw,m=f.type==="link"?f.href:"",p=/\[.*\]\(.*\)/.test(d);if(!(f.type==="autolink"||f.type==="link"&&m&&/^(?:mailto:|https?:|www\.)/.test(m)&&!p))return;const v=String(f.text??(m?m.replace(/^mailto:/,""):d.replace(/^<|>$/g,"")));f.type="text",f.raw=v,f.text=v,delete f.href,delete f.title,delete f.tokens}:void 0,l={breaks:!0,...o&&{walkTokens:o}},u=i?_e.parseInline(a,l):_e.parse(a,l),c=Zk(u,zI);return h.jsx(s,{className:Y(Xv.markdown,{[Xv["markdown--external-links"]]:r},t),dangerouslySetInnerHTML:{__html:c}})}const jI="_react-datepicker_elfhm_116",II="_react-datepicker__day-names_elfhm_119",RI="_react-datepicker__week_elfhm_123",NI="_react-datepicker__day--outside-month_elfhm_130",DI="_react-datepicker__time-container_elfhm_139",BI="_react-datepicker__time_elfhm_139",OI="_react-datepicker__time-box_elfhm_142",HI="_typography-landing--claim_elfhm_146",WI="_typography-landing--claim-uppercase_elfhm_187",VI="_typography-landing--h1_elfhm_228",_I="_typography-landing--h1-uppercase_elfhm_269",GI="_typography-landing--h2_elfhm_310",UI="_typography-landing--h2-uppercase_elfhm_351",qI="_typography-landing--h3_elfhm_392",KI="_typography-landing--h4_elfhm_433",ZI="_typography-landing--h5_elfhm_474",JI="_typography-landing--h6_elfhm_515",QI="_typography-landing--overline_elfhm_556",YI="_typography-landing--body-large_elfhm_596",XI="_typography-landing--body-large-semibold_elfhm_636",$I="_typography-landing--body_elfhm_596",eR="_typography-landing--body-semibold_elfhm_716",tR="_typography-landing--body-small_elfhm_756",nR="_typography-landing--body-small-semibold_elfhm_796",iR="_typography-landing--body-small-italic_elfhm_836",rR="_typography-landing--body-italic_elfhm_876",aR="_typography-landing--body-large-italic_elfhm_916",sR="_typography-landing--quote-large_elfhm_956",oR="_typography-landing--detail-small_elfhm_968",lR="_typography-landing--detail-small-bold_elfhm_980",uR="_typography-landing_elfhm_146",cR="_typography-product_elfhm_1010",dR="_typography-product--h1_elfhm_1022",fR="_typography-product--h2_elfhm_1034",hR="_typography-product--h3_elfhm_1046",mR="_typography-product--h4_elfhm_1058",pR="_typography-product--h5_elfhm_1070",gR="_typography-product--h6_elfhm_1082",vR="_typography-product--h7_elfhm_1094",bR="_typography-product--h8_elfhm_1106",wR="_typography-product--body-large_elfhm_1118",kR="_typography-product--body-regular_elfhm_1142",yR="_typography-product--body-semibold_elfhm_1166",xR="_typography-product--body-italic_elfhm_1190",CR="_typography-product--body-text-link_elfhm_1215",SR="_typography-product--detail-medium_elfhm_1227",ER="_typography-product--detail-bold_elfhm_1251",TR="_typography-product--detail-upper-case_elfhm_1275",MR="_typography-product--detail-regular_elfhm_1299",AR="_typography-product--detail-text-link_elfhm_1323",$v={"react-datepicker":"_react-datepicker_elfhm_116",reactDatepicker:jI,"react-datepicker__day-names":"_react-datepicker__day-names_elfhm_119",reactDatepickerDayNames:II,"react-datepicker__week":"_react-datepicker__week_elfhm_123",reactDatepickerWeek:RI,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_elfhm_130",reactDatepickerDayOutsideMonth:NI,"react-datepicker__time-container":"_react-datepicker__time-container_elfhm_139",reactDatepickerTimeContainer:DI,"react-datepicker__time":"_react-datepicker__time_elfhm_139",reactDatepickerTime:BI,"react-datepicker__time-box":"_react-datepicker__time-box_elfhm_142",reactDatepickerTimeBox:OI,"typography-landing--claim":"_typography-landing--claim_elfhm_146",typographyLandingClaim:HI,"typography-landing--claim-uppercase":"_typography-landing--claim-uppercase_elfhm_187",typographyLandingClaimUppercase:WI,"typography-landing--h1":"_typography-landing--h1_elfhm_228",typographyLandingH1:VI,"typography-landing--h1-uppercase":"_typography-landing--h1-uppercase_elfhm_269",typographyLandingH1Uppercase:_I,"typography-landing--h2":"_typography-landing--h2_elfhm_310",typographyLandingH2:GI,"typography-landing--h2-uppercase":"_typography-landing--h2-uppercase_elfhm_351",typographyLandingH2Uppercase:UI,"typography-landing--h3":"_typography-landing--h3_elfhm_392",typographyLandingH3:qI,"typography-landing--h4":"_typography-landing--h4_elfhm_433",typographyLandingH4:KI,"typography-landing--h5":"_typography-landing--h5_elfhm_474",typographyLandingH5:ZI,"typography-landing--h6":"_typography-landing--h6_elfhm_515",typographyLandingH6:JI,"typography-landing--overline":"_typography-landing--overline_elfhm_556",typographyLandingOverline:QI,"typography-landing--body-large":"_typography-landing--body-large_elfhm_596",typographyLandingBodyLarge:YI,"typography-landing--body-large-semibold":"_typography-landing--body-large-semibold_elfhm_636",typographyLandingBodyLargeSemibold:XI,"typography-landing--body":"_typography-landing--body_elfhm_596",typographyLandingBody:$I,"typography-landing--body-semibold":"_typography-landing--body-semibold_elfhm_716",typographyLandingBodySemibold:eR,"typography-landing--body-small":"_typography-landing--body-small_elfhm_756",typographyLandingBodySmall:tR,"typography-landing--body-small-semibold":"_typography-landing--body-small-semibold_elfhm_796",typographyLandingBodySmallSemibold:nR,"typography-landing--body-small-italic":"_typography-landing--body-small-italic_elfhm_836",typographyLandingBodySmallItalic:iR,"typography-landing--body-italic":"_typography-landing--body-italic_elfhm_876",typographyLandingBodyItalic:rR,"typography-landing--body-large-italic":"_typography-landing--body-large-italic_elfhm_916",typographyLandingBodyLargeItalic:aR,"typography-landing--quote-large":"_typography-landing--quote-large_elfhm_956",typographyLandingQuoteLarge:sR,"typography-landing--detail-small":"_typography-landing--detail-small_elfhm_968",typographyLandingDetailSmall:oR,"typography-landing--detail-small-bold":"_typography-landing--detail-small-bold_elfhm_980",typographyLandingDetailSmallBold:lR,"typography-landing":"_typography-landing_elfhm_146",typographyLanding:uR,"typography-product":"_typography-product_elfhm_1010",typographyProduct:cR,"typography-product--h1":"_typography-product--h1_elfhm_1022",typographyProductH1:dR,"typography-product--h2":"_typography-product--h2_elfhm_1034",typographyProductH2:fR,"typography-product--h3":"_typography-product--h3_elfhm_1046",typographyProductH3:hR,"typography-product--h4":"_typography-product--h4_elfhm_1058",typographyProductH4:mR,"typography-product--h5":"_typography-product--h5_elfhm_1070",typographyProductH5:pR,"typography-product--h6":"_typography-product--h6_elfhm_1082",typographyProductH6:gR,"typography-product--h7":"_typography-product--h7_elfhm_1094",typographyProductH7:vR,"typography-product--h8":"_typography-product--h8_elfhm_1106",typographyProductH8:bR,"typography-product--body-large":"_typography-product--body-large_elfhm_1118",typographyProductBodyLarge:wR,"typography-product--body-regular":"_typography-product--body-regular_elfhm_1142",typographyProductBodyRegular:kR,"typography-product--body-semibold":"_typography-product--body-semibold_elfhm_1166",typographyProductBodySemibold:yR,"typography-product--body-italic":"_typography-product--body-italic_elfhm_1190",typographyProductBodyItalic:xR,"typography-product--body-text-link":"_typography-product--body-text-link_elfhm_1215",typographyProductBodyTextLink:CR,"typography-product--detail-medium":"_typography-product--detail-medium_elfhm_1227",typographyProductDetailMedium:SR,"typography-product--detail-bold":"_typography-product--detail-bold_elfhm_1251",typographyProductDetailBold:ER,"typography-product--detail-upper-case":"_typography-product--detail-upper-case_elfhm_1275",typographyProductDetailUpperCase:TR,"typography-product--detail-regular":"_typography-product--detail-regular_elfhm_1299",typographyProductDetailRegular:MR,"typography-product--detail-text-link":"_typography-product--detail-text-link_elfhm_1323",typographyProductDetailTextLink:AR};function PR(t){switch(t){case"h1":case"h1-uppercase":return"h1";case"h2":case"claim":case"claim-uppercase":return"h2";case"h3":case"h4":case"h5":return t;case"h6":case"overline":return"h6";default:return"span"}}const lr=t=>{const{as:e,children:n,className:i,fontSet:r="product",markdown:a=r==="landing",markdownInline:s=!0,disableAutolinks:o,type:l}=t,u=e||PR(l),c=Y($v[`typography-${r}`],$v[`typography-${r}--${l}`],i);return h.jsx(h.Fragment,{children:typeof n=="string"&&a?h.jsx(LI,{className:c,text:n,inline:s,elementTag:u,isExternalLinksIcon:r==="landing",disableAutolinks:o}):h.jsx(u,{className:c,"data-testid":t["data-testid"],children:n})})},FR="_inputDetails_i97t5_146",zR="_inputDetails__hintText_i97t5_152",LR="_inputDetails__errorText_i97t5_156",jR="_inputDetails__counter_i97t5_160",Uo={inputDetails:FR,inputDetails__hintText:zR,inputDetails__errorText:LR,inputDetails__counter:jR},IR=({charCount:t,charLimit:e,errorText:n,hintText:i})=>{const r=`${t??0}/${e}`;return h.jsxs("div",{className:Uo.inputDetails,children:[h.jsxs("div",{children:[i&&!n&&h.jsx(lr,{className:Uo.inputDetails__hintText,type:"detail-medium",children:i}),n&&h.jsx(h.Fragment,{children:Array.isArray(n)?n.map((a,s)=>h.jsx(lr,{className:Uo.inputDetails__errorText,type:"detail-bold",children:a},s)):h.jsx(lr,{className:Uo.inputDetails__errorText,type:"detail-bold",children:n})})]}),!!e&&h.jsx(lr,{type:"detail-medium",className:Uo.inputDetails__counter,children:r})]})},RR="_react-datepicker_1m719_116",NR="_react-datepicker__day-names_1m719_119",DR="_react-datepicker__week_1m719_123",BR="_react-datepicker__day--outside-month_1m719_130",OR="_react-datepicker__time-container_1m719_139",HR="_react-datepicker__time_1m719_139",WR="_react-datepicker__time-box_1m719_142",VR="_container_1m719_149",_R="_inputContainer_1m719_157",GR="_inputContainer--disabled_1m719_169",UR="_inputContainer--filled_1m719_172",qR="_inputContainer--outlined_1m719_178",KR="_inputContainer--error_1m719_186",ZR="_character_1m719_191",JR="_inputContainer--sms_1m719_194",QR="_inputContainer--active_1m719_197",YR="_character--selected_1m719_197",XR="_blink_1m719_1",$R="_input_1m719_157",eN="_character__divider_1m719_255",tN="_character__divider_1m719_255",fn={"react-datepicker":"_react-datepicker_1m719_116",reactDatepicker:RR,"react-datepicker__day-names":"_react-datepicker__day-names_1m719_119",reactDatepickerDayNames:NR,"react-datepicker__week":"_react-datepicker__week_1m719_123",reactDatepickerWeek:DR,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_1m719_130",reactDatepickerDayOutsideMonth:BR,"react-datepicker__time-container":"_react-datepicker__time-container_1m719_139",reactDatepickerTimeContainer:OR,"react-datepicker__time":"_react-datepicker__time_1m719_139",reactDatepickerTime:HR,"react-datepicker__time-box":"_react-datepicker__time-box_1m719_142",reactDatepickerTimeBox:WR,container:VR,inputContainer:_R,"inputContainer--disabled":"_inputContainer--disabled_1m719_169",inputContainerDisabled:GR,"inputContainer--filled":"_inputContainer--filled_1m719_172",inputContainerFilled:UR,"inputContainer--outlined":"_inputContainer--outlined_1m719_178",inputContainerOutlined:qR,"inputContainer--error":"_inputContainer--error_1m719_186",inputContainerError:KR,character:ZR,"inputContainer--sms":"_inputContainer--sms_1m719_194",inputContainerSms:JR,"inputContainer--active":"_inputContainer--active_1m719_197",inputContainerActive:QR,"character--selected":"_character--selected_1m719_197",characterSelected:YR,blink:XR,input:$R,character__divider:eN,characterDivider:tN},nN=({disabled:t=!1,errorText:e,onComplete:n,type:i="invite",length:r=i==="sms"?6:10,variant:a="outlined",value:s=""})=>{const[o,l]=b.useState(s),[u,c]=b.useState(!1),f=b.useRef(null);b.useEffect(()=>{t&&c(!1)},[t]),b.useEffect(()=>{l(s)},[s]);const d=()=>{var T;(T=f.current)==null||T.focus()},m=T=>{["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(T.key)&&T.preventDefault()},p=T=>{const A=T.target.value.replace(/\s/g,"").slice(0,r);new RegExp("^[A-Za-zÀ-ÖØ-öø-ÿ0-9]*$").test(A)&&(l(A),A.length===r&&(n==null||n(A)))},g=T=>{c(!0),T.target.select()},v=()=>{c(!1),n==null||n(o)},w=()=>o,y=T=>w().length===T&&u,x=T=>i==="invite"&&T===Math.floor((r-1)/2);return h.jsxs("div",{"data-testid":"container",className:fn.container,children:[h.jsxs("div",{tabIndex:1,className:Y(fn.inputContainer,fn[`inputContainer--${a}`],fn[`inputContainer--${i}`],{[fn["inputContainer--disabled"]]:t,[fn["inputContainer--error"]]:!!e,[fn["inputContainer--active"]]:u}),onClick:d,children:[h.jsx("input",{"aria-label":"verification input",spellCheck:!1,ref:f,value:w(),className:Y(fn.input,{[fn["input--disabled"]]:!0}),onChange:p,onKeyDown:m,onFocus:g,onBlur:v,disabled:t}),Array.from({length:r},(T,E)=>h.jsxs(b.Fragment,{children:[h.jsx(S.Typography,{type:"h3",className:Y(fn.character,{[fn["character--selected"]]:y(E)}),children:w()[E]},E),x(E)&&h.jsx(S.Typography,{type:"h3",className:Y(fn.character,fn.character__divider)},`${E}-divider`)]},`${E}-fragment`))]}),e&&h.jsx(IR,{errorText:e})]})},iN=({disabled:t,length:e,name:n,rules:i,type:r,variant:a})=>{var u;const{control:s}=fe.useFormContext(),{field:o,fieldState:l}=fe.useController({control:s,name:n,rules:i});return h.jsx(nN,{disabled:t,length:e,type:r,variant:a,errorText:(u=l.error)==null?void 0:u.message,onComplete:o.onChange,value:o.value})},rN={codeField:t=>h.jsx(iN,{...t==null?void 0:t.fieldConfig},t.id),phoneInput:t=>h.jsx(gw,{...t==null?void 0:t.fieldConfig},t.id),tileButton:t=>h.jsx(pw,{...t==null?void 0:t.fieldConfig,id:t.id},t.id)},aN=t=>({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:t,pageViewtracking:{name:"verify_geo"},spacing:"md"}),sN=de.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."}),oN=de.z.object({code:sN}),lN=t=>({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:t,pageViewtracking:{name:"verify_code"},spacing:"lg",validationSchema:oN}),uN=0,cN=1,Jk="code",Qk="postcard",Yk="gps",Xk="sms",dN=[Xk,Jk,Qk,Yk],e3={[Jk]:{fieldConfig:{description:"Einladung erhalten? Gib deinen Code ein.",headline:"Per Einladungscode",sticker:{color:"green",icon:"paper_form",size:"small"}},id:"inviteCode",type:"tileButton"},[Yk]:{fieldConfig:{description:"Erlaube Standortzugriff.",headline:"GPS",sticker:{color:"green",icon:"pin",size:"small"}},id:"gps",type:"tileButton"},[Qk]:{fieldConfig:{description:"Erhalte einen Code in 2-3 Tagen.",headline:"Per Postcode",sticker:{color:"green",icon:"envelope",size:"small"}},id:"postalCode",type:"tileButton"},[Xk]:{fieldConfig:{description:"Gib deine Handynummer ein.",headline:"Per SMS",sticker:{color:"green",icon:"phone",size:"small"}},id:"phone_number",type:"tileButton"}},fN=t=>dN.map(n=>{const i=hN({...t,code:{enabled:!0,order_nr:1,status:0}},n);return i!=null&&i.enabled?{...e3[n],fieldConfig:{...e3[n].fieldConfig,isActive:(i==null?void 0:i.status)===uN,...(i==null?void 0:i.status)===cN&&{isPending:!0}},...(i==null?void 0:i.order_nr)===0&&{layout:{gapTop:"lg"}},order:(i==null?void 0:i.order_nr)??null}:null}).filter(n=>n!==null).sort((n,i)=>((n==null?void 0:n.order)??1/0)-((i==null?void 0:i.order)??1/0)),hN=(t,e)=>(t==null?void 0:t[e])??null,mN=t=>({canGoBack:!1,fields:[{fieldConfig:{header:"Verifizierungsmethoden"},id:"formHeader",type:"formHeader"},...fN(t),{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"}),pN=t=>({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:t,pageViewtracking:{name:"verify_postcard"},spacing:"md"}),gN=()=>({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"}),vN=de.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(t=>t.replace(/\s+/g,"")).refine(t=>t.length>=10,{message:"Die Telefonnummer muss mindestens 10 Zeichen lang sein (inklusive Vorwahl)."}).refine(t=>t.length<=20,{message:"Die Telefonnummer darf höchstens 20 Zeichen lang sein (inklusive Vorwahl)."}),bN=de.z.object({phone:vN}),wN=t=>({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:t,pageViewtracking:{name:"verify_sms"},spacing:"lg",validationMode:"onBlur",validationSchema:bN}),kN=de.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)."),yN=de.z.object({sms_code:kN}),xN=t=>({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:t,pageViewtracking:{name:"verify_sms_code"},spacing:"lg",validationMode:"onSubmit",validationSchema:yN}),CN=async(t,e,n)=>{const i=su("data.phone",t).split("|").join("");try{return await Pe.requestSmsCode({phone_number:i,token:n}),!0}catch(r){return oi(r,e,({field:s,message:o})=>{var l;(l=t.methods)==null||l.setError(s,{message:Array.isArray(o)?o.join(`
135
135
  `):o,type:"manual"})},"phone")}},SN=async(t,e,n,i)=>{const r=su("data.sms_code",t);try{await Pe.sendSmsCode({smsCode:r,token:i}),e({})}catch(a){return oi(a,n,({field:o,message:l})=>{var u;(u=t.methods)==null||u.setError(o,{message:Array.isArray(l)?l.join(`
136
136
  `):l,type:"manual"})})}},EN=async(t,e,n,i)=>{const r=su("data.code",t),a=`${r.slice(0,5)}-${r.slice(5)}`;try{await Pe.sendInviteCode({inviteCode:a,token:i}),e({})}catch(s){return oi(s,n,({field:l,message:u})=>{var c;(c=t.methods)==null||c.setError(l,{message:Array.isArray(u)?u.join(`
137
137
  `):u,type:"manual"})},"code")}},TN=async(t,e,n)=>{try{return await Pe.requestPostCard({token:n}),await t(),"postalCodeRequested"}catch(i){return oi(i,e)}},MN=async(t,e,n)=>{const i={enableHighAccuracy:!0,maximumAge:0,timeout:1e4};return new Promise((r,a)=>{const s=l=>{Pe.sendGpsVerification({accuracy:l.coords.accuracy,latitude:l.coords.latitude,longitude:l.coords.longitude,token:n}).then(u=>{t(u),r(!0)}).catch(u=>{oi(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)})},AN=({initialStep:t="verification-methods",onFetchProfile:e,onSubmit:n,status:i,token:r})=>{const[a,s]=b.useState(null),o=On.useTrack(),l=mN(i==null?void 0:i.verification_methods),u=gN(),c=[wN(f=>CN(f,s,r)),xN(f=>SN(f,d=>{o("verification_completed",{method:"sms"}),n(d)},s,r)),lN(f=>EN(f,d=>{o("verification_completed",{method:"code"}),n(d)},s,r)),aN(()=>MN(f=>{o("verification_completed",{method:"geo"}),n(f)},s,r)),pN(()=>TN(e,s,r)),l,u];return h.jsx(yp,{id:"verification_wizard",steps:c,onStepChange:()=>s(null),excludedSteps:[l.id,u.id],initialStep:t,formError:a,formFieldMap:{...rN,...Sw},formWrapper:f=>h.jsx(Ew,{progressBar:{currentStep:4,steps:4},children:f})})},PN=({accessToken:t,defaultStep:e="phone_number",enableGoogleSSO:n,initialState:i=pn.REGISTRATION_START,initialStep:r="",onFetchProfile:a,onRegistrationSubmit:s,onVerificationSubmit:o,status:l})=>{const[u,c]=b.useState(i),[f,d]=b.useState(r),[m,p]=b.useState(!1),[g,v]=b.useState(t),[w,y]=b.useState(null),[x,T]=b.useState("*****"),E=Cn(y0),A=po(y0);b.useEffect(()=>{A&&z(!0,A),g&&!(l!=null&&l.is_address_verified)&&c(pn.VERIFICATION_FORM)},[l,g,A]);const F=({access_token:L,email_confirmation_required:D})=>{if(D)return c(pn.EMAIL_CONFIRMATION);L&&(v(L),d(e),s(L))},P=({authentication_token:L,email_confirmation_required:D,googleToken:N})=>{if(D){N&&T($M("email",N)),c(pn.EMAIL_CONFIRMATION);return}if(L)return s(L)},z=(L,D)=>{c(pn.REGISTRATION_FORM),p(L),D&&y(D)},I=(L,D)=>{c(pn.REGISTRATION_FORM),L&&E(`${D}`)},M=()=>{c(pn.REGISTRATION_FORM)},j=()=>c(pn.REGISTRATION_START);return h.jsxs("div",{className:RP.rootWrapper,children:[u===pn.REGISTRATION_START&&h.jsx(jP,{enableGoogleSSO:n,onRegistrationSuccess:P,onRegistrationError:I,onSwitchToEmail:M}),u===pn.EMAIL_CONFIRMATION&&h.jsx(Zs,{screen:"email_confirmation",email:x,atom:"registration_wizard",atomKey:"emailStep.email"}),u===pn.REGISTRATION_FORM&&h.jsx(MF,{onSubmit:F,initialStep:f,isSSOFlow:m,googleIdToken:w,goBack:j}),u===pn.VERIFICATION_FORM&&h.jsx(AN,{status:l,onSubmit:o,onFetchProfile:a,token:g,initialStep:f})]})},FN="_react-datepicker_q6zfx_116",zN="_react-datepicker__day-names_q6zfx_119",LN="_react-datepicker__week_q6zfx_123",jN="_react-datepicker__day--outside-month_q6zfx_130",IN="_react-datepicker__time-container_q6zfx_139",RN="_react-datepicker__time_q6zfx_139",NN="_react-datepicker__time-box_q6zfx_142",DN="_cardCarousel_q6zfx_146",BN="_green_q6zfx_158",ON="_carouselHeader_q6zfx_162",HN="_arrow_q6zfx_171",WN="_carouselContainer_q6zfx_179",VN="_carouselCard_q6zfx_191",_N="_dragging_q6zfx_205",GN="_carouselTitle_q6zfx_213",UN="_ctaContainer_q6zfx_219",qN="_startSpacer_q6zfx_234",Kn={"react-datepicker":"_react-datepicker_q6zfx_116",reactDatepicker:FN,"react-datepicker__day-names":"_react-datepicker__day-names_q6zfx_119",reactDatepickerDayNames:zN,"react-datepicker__week":"_react-datepicker__week_q6zfx_123",reactDatepickerWeek:LN,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_q6zfx_130",reactDatepickerDayOutsideMonth:jN,"react-datepicker__time-container":"_react-datepicker__time-container_q6zfx_139",reactDatepickerTimeContainer:IN,"react-datepicker__time":"_react-datepicker__time_q6zfx_139",reactDatepickerTime:RN,"react-datepicker__time-box":"_react-datepicker__time-box_q6zfx_142",reactDatepickerTimeBox:NN,cardCarousel:DN,green:BN,carouselHeader:ON,arrow:HN,carouselContainer:WN,carouselCard:VN,dragging:_N,carouselTitle:GN,ctaContainer:UN,startSpacer:qN},KN=12,ZN=1.5,JN=({backgroundColor:t="green",children:e,cta:n,hideNavigationButtons:i=!1,title:r=""})=>{const a=b.useRef(null),s=b.useRef(null),[o,l]=b.useState(!1),[u,c]=b.useState(0),[f,d]=b.useState(0),[m,p]=b.useState(0),[g,v]=b.useState(0),w=Ut()?1:2,y=e.length-w;b.useEffect(()=>{const z=s.current;z&&v(z.offsetWidth+KN)},[]),b.useEffect(()=>{const z=a.current;if(!z||g===0)return;const I=()=>{const M=Math.round(z.scrollLeft/g);p(M)};return z.addEventListener("scroll",I),()=>z.removeEventListener("scroll",I)},[g]);const x=()=>{if(a.current){const z=Math.max(m-1,0);p(z),a.current.scrollTo({behavior:"smooth",left:z*g})}},T=()=>{if(a.current){const z=Math.min(m+1,y);p(z),a.current.scrollTo({behavior:"smooth",left:z*g})}},E=z=>{a.current&&(l(!0),c(z.pageX-a.current.offsetLeft),d(a.current.scrollLeft))},A=()=>l(!1),F=()=>l(!1),P=z=>{if(!o||!a.current)return;z.preventDefault();const M=(z.pageX-a.current.offsetLeft-u)*ZN;a.current.scrollLeft=f-M};return h.jsxs("div",{className:Y(Kn.cardCarousel,Kn[t]),children:[r&&h.jsx(S.Typography,{type:"h3",className:Kn.carouselTitle,children:r}),!i&&h.jsxs("div",{className:Kn.carouselHeader,children:[h.jsx(S.Button,{className:Kn.arrow,onClick:x,disabled:m<=0,children:h.jsx(S.Icon,{name:"chevron_left",size:"24"})}),h.jsx(S.Button,{className:Kn.arrow,onClick:T,disabled:m>=y,children:h.jsx(S.Icon,{name:"chevron_right",size:"24"})})]}),h.jsxs("div",{className:`${Kn.carouselContainer} ${o?Kn.dragging:""}`,ref:a,onMouseDown:E,onMouseLeave:A,onMouseUp:F,onMouseMove:P,children:[h.jsx("div",{className:Kn.startSpacer}),e.map((z,I)=>h.jsx("div",{className:Kn.carouselCard,ref:I===0?s:null,children:z},I))]}),n&&h.jsx("div",{className:Kn.ctaContainer,children:n})]})},QN="_react-datepicker_1fy2j_116",YN="_react-datepicker__day-names_1fy2j_119",XN="_react-datepicker__week_1fy2j_123",$N="_react-datepicker__day--outside-month_1fy2j_130",eD="_react-datepicker__time-container_1fy2j_139",tD="_react-datepicker__time_1fy2j_139",nD="_react-datepicker__time-box_1fy2j_142",iD="_root_1fy2j_146",rD="_root__content_1fy2j_154",aD="_root__content_1fy2j_154",sD="_root__main_1fy2j_163",oD="_root__main_1fy2j_163",lD="_root__main__button_1fy2j_171",uD="_root__main__button_1fy2j_171",cD="_root__main--small_1fy2j_181",dD="_root__info_1fy2j_190",fD="_root__info_1fy2j_190",hD="_root__info__large_1fy2j_198",mD="_root__info__large_1fy2j_198",pD="_root__info__small_1fy2j_209",gD="_root__info__small_1fy2j_209",vD="_root__info__small__content_1fy2j_214",bD="_root__info__small__content_1fy2j_214",wD="_root__sticker_1fy2j_229",kD="_root__sticker_1fy2j_229",yD="_root__crossButton_1fy2j_238",xD="_root__crossButton_1fy2j_238",CD="_root--small_1fy2j_244",vn={"react-datepicker":"_react-datepicker_1fy2j_116",reactDatepicker:QN,"react-datepicker__day-names":"_react-datepicker__day-names_1fy2j_119",reactDatepickerDayNames:YN,"react-datepicker__week":"_react-datepicker__week_1fy2j_123",reactDatepickerWeek:XN,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_1fy2j_130",reactDatepickerDayOutsideMonth:$N,"react-datepicker__time-container":"_react-datepicker__time-container_1fy2j_139",reactDatepickerTimeContainer:eD,"react-datepicker__time":"_react-datepicker__time_1fy2j_139",reactDatepickerTime:tD,"react-datepicker__time-box":"_react-datepicker__time-box_1fy2j_142",reactDatepickerTimeBox:nD,root:iD,root__content:rD,rootContent:aD,root__main:sD,rootMain:oD,root__main__button:lD,rootMainButton:uD,"root__main--small":"_root__main--small_1fy2j_181",rootMainSmall:cD,root__info:dD,rootInfo:fD,root__info__large:hD,rootInfoLarge:mD,root__info__small:pD,rootInfoSmall:gD,root__info__small__content:vD,rootInfoSmallContent:bD,root__sticker:wD,rootSticker:kD,root__crossButton:yD,rootCrossButton:xD,"root--small":"_root--small_1fy2j_244",rootSmall:CD},SD={"de-DE":{title:"Mit dir bleibt's hier lebendig",text:"Hilf mit, die Plattform auch 2026 zu sichern",text_small:"Ohne dich geht es nicht!",button_small:"unterstützen",button:"nebenan.de unterstützen"}},ED=(t,e)=>k.createElement("svg",{width:11,height:14,viewBox:"0 0 11 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.99805 0.55122V7.40096C6.34502 5.50392 6.93135 9.42761 10.998 7.40096C10.134 6.53625 9.50256 5.528 9.38634 4.2032C10.1588 3.35176 10.7062 2.15002 10.998 0.551171C7.39199 2.57782 5.7939 -1.3893 1.99805 0.55122Z",fill:"#7C5BFF"}),k.createElement("line",{x1:1.49805,y1:.5,x2:1.49805,y2:13.5,stroke:"#7C5BFF",strokeLinecap:"round"})),TD=b.forwardRef(ED),MD="_react-datepicker_1j1s2_116",AD="_react-datepicker__day-names_1j1s2_119",PD="_react-datepicker__week_1j1s2_123",FD="_react-datepicker__day--outside-month_1j1s2_130",zD="_react-datepicker__time-container_1j1s2_139",LD="_react-datepicker__time_1j1s2_139",jD="_react-datepicker__time-box_1j1s2_142",ID="_root_1j1s2_146",RD="_root__content_1j1s2_154",ND="_root__content_1j1s2_154",DD="_root__progressBar_1j1s2_161",BD="_root__progressBar_1j1s2_161",OD="_root__progressBar--small_1j1s2_169",HD="_root__progressStats_1j1s2_172",WD="_root__progressStats_1j1s2_172",VD="_bar_1j1s2_186",_D="_bar--0_1j1s2_194",GD="_bar--10_1j1s2_197",UD="_bar--22_1j1s2_200",qD="_bar--34_1j1s2_203",KD="_bar--42_1j1s2_206",ZD="_bar--50_1j1s2_209",JD="_bar--65_1j1s2_212",QD="_bar--76_1j1s2_215",YD="_bar--92_1j1s2_218",ma={"react-datepicker":"_react-datepicker_1j1s2_116",reactDatepicker:MD,"react-datepicker__day-names":"_react-datepicker__day-names_1j1s2_119",reactDatepickerDayNames:AD,"react-datepicker__week":"_react-datepicker__week_1j1s2_123",reactDatepickerWeek:PD,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_1j1s2_130",reactDatepickerDayOutsideMonth:FD,"react-datepicker__time-container":"_react-datepicker__time-container_1j1s2_139",reactDatepickerTimeContainer:zD,"react-datepicker__time":"_react-datepicker__time_1j1s2_139",reactDatepickerTime:LD,"react-datepicker__time-box":"_react-datepicker__time-box_1j1s2_142",reactDatepickerTimeBox:jD,root:ID,root__content:RD,rootContent:ND,root__progressBar:DD,rootProgressBar:BD,"root__progressBar--small":"_root__progressBar--small_1j1s2_169",rootProgressBarSmall:OD,root__progressStats:HD,rootProgressStats:WD,bar:VD,"bar--0":"_bar--0_1j1s2_194",bar0:_D,"bar--10":"_bar--10_1j1s2_197",bar10:GD,"bar--22":"_bar--22_1j1s2_200",bar22:UD,"bar--34":"_bar--34_1j1s2_203",bar34:qD,"bar--42":"_bar--42_1j1s2_206",bar42:KD,"bar--50":"_bar--50_1j1s2_209",bar50:ZD,"bar--65":"_bar--65_1j1s2_212",bar65:JD,"bar--76":"_bar--76_1j1s2_215",bar76:QD,"bar--92":"_bar--92_1j1s2_218",bar92:YD},$k=6048e5,XD=864e5,xd=6e4,ey=36e5,t3=525600,n3=43200,i3=1440,r3=Symbol.for("constructDateFrom");function Oi(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&r3 in t?t[r3](e):t instanceof Date?new t.constructor(e):new Date(e)}function lt(t,e){return Oi(e||t,t)}function $D(t,e,n){return Oi(t,+lt(t)+e)}let eB={};function pu(){return eB}function Bl(t,e){var o,l,u,c;const n=pu(),i=(e==null?void 0:e.weekStartsOn)??((l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,r=lt(t,e==null?void 0:e.in),a=r.getDay(),s=(a<i?7:0)+a-i;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function Cd(t,e){return Bl(t,{...e,weekStartsOn:1})}function ty(t,e){const n=lt(t,e==null?void 0:e.in),i=n.getFullYear(),r=Oi(n,0);r.setFullYear(i+1,0,4),r.setHours(0,0,0,0);const a=Cd(r),s=Oi(n,0);s.setFullYear(i,0,4),s.setHours(0,0,0,0);const o=Cd(s);return n.getTime()>=a.getTime()?i+1:n.getTime()>=o.getTime()?i:i-1}function Sd(t){const e=lt(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function eg(t,...e){const n=Oi.bind(null,t||e.find(i=>typeof i=="object"));return e.map(n)}function a3(t,e){const n=lt(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function ny(t,e,n){const[i,r]=eg(n==null?void 0:n.in,t,e),a=a3(i),s=a3(r),o=+a-Sd(a),l=+s-Sd(s);return Math.round((o-l)/XD)}function tB(t,e){const n=ty(t,e),i=Oi(t,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),Cd(i)}function nB(t,e,n){return $D(t,e*1e3)}function iy(t,e){const n=+lt(t)-+lt(e);return n<0?-1:n>0?1:n}function iB(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function ry(t){return!(!iB(t)&&typeof t!="number"||isNaN(+lt(t)))}function rB(t,e,n){const[i,r]=eg(n==null?void 0:n.in,t,e),a=s3(i,r),s=Math.abs(ny(i,r));i.setDate(i.getDate()-a*s);const o=+(s3(i,r)===-a),l=a*(s-o);return l===0?0:l}function s3(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function aB(t){return e=>{const i=(t?Math[t]:Math.trunc)(e);return i===0?0:i}}function sB(t,e){const n=lt(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const oB={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lB=(t,e,n)=>{let i;const r=oB[t];return typeof r=="string"?i=r:e===1?i=r.one:i=r.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function Hs(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const uB={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cB={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dB={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fB={date:Hs({formats:uB,defaultWidth:"full"}),time:Hs({formats:cB,defaultWidth:"full"}),dateTime:Hs({formats:dB,defaultWidth:"full"})},hB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mB=(t,e,n,i)=>hB[t];function zi(t){return(e,n)=>{const i=n!=null&&n.context?String(n.context):"standalone";let r;if(i==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,o=n!=null&&n.width?String(n.width):s;r=t.formattingValues[o]||t.formattingValues[s]}else{const s=t.defaultWidth,o=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[o]||t.values[s]}const a=t.argumentCallback?t.argumentCallback(e):e;return r[a]}}const pB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vB={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bB={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},wB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},kB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},yB=(t,e)=>{const n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},xB={ordinalNumber:yB,era:zi({values:pB,defaultWidth:"wide"}),quarter:zi({values:gB,defaultWidth:"wide",argumentCallback:t=>t-1}),month:zi({values:vB,defaultWidth:"wide"}),day:zi({values:bB,defaultWidth:"wide"}),dayPeriod:zi({values:wB,defaultWidth:"wide",formattingValues:kB,defaultFormattingWidth:"wide"})};function Li(t){return(e,n={})=>{const i=n.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],a=e.match(r);if(!a)return null;const s=a[0],o=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?SB(o,f=>f.test(s)):CB(o,f=>f.test(s));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=e.slice(s.length);return{value:u,rest:c}}}function CB(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function SB(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function ay(t){return(e,n={})=>{const i=e.match(t.matchPattern);if(!i)return null;const r=i[0],a=e.match(t.parsePattern);if(!a)return null;let s=t.valueCallback?t.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const o=e.slice(r.length);return{value:s,rest:o}}}const EB=/^(\d+)(th|st|nd|rd)?/i,TB=/\d+/i,MB={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},AB={any:[/^b/i,/^(a|c)/i]},PB={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},FB={any:[/1/i,/2/i,/3/i,/4/i]},zB={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},LB={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},jB={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},IB={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},RB={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},NB={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},DB={ordinalNumber:ay({matchPattern:EB,parsePattern:TB,valueCallback:t=>parseInt(t,10)}),era:Li({matchPatterns:MB,defaultMatchWidth:"wide",parsePatterns:AB,defaultParseWidth:"any"}),quarter:Li({matchPatterns:PB,defaultMatchWidth:"wide",parsePatterns:FB,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Li({matchPatterns:zB,defaultMatchWidth:"wide",parsePatterns:LB,defaultParseWidth:"any"}),day:Li({matchPatterns:jB,defaultMatchWidth:"wide",parsePatterns:IB,defaultParseWidth:"any"}),dayPeriod:Li({matchPatterns:RB,defaultMatchWidth:"any",parsePatterns:NB,defaultParseWidth:"any"})},sy={code:"en-US",formatDistance:lB,formatLong:fB,formatRelative:mB,localize:xB,match:DB,options:{weekStartsOn:0,firstWeekContainsDate:1}};function BB(t,e){const n=lt(t,e==null?void 0:e.in);return ny(n,sB(n))+1}function OB(t,e){const n=lt(t,e==null?void 0:e.in),i=+Cd(n)-+tB(n);return Math.round(i/$k)+1}function oy(t,e){var c,f,d,m;const n=lt(t,e==null?void 0:e.in),i=n.getFullYear(),r=pu(),a=(e==null?void 0:e.firstWeekContainsDate)??((f=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((m=(d=r.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??1,s=Oi((e==null?void 0:e.in)||t,0);s.setFullYear(i+1,0,a),s.setHours(0,0,0,0);const o=Bl(s,e),l=Oi((e==null?void 0:e.in)||t,0);l.setFullYear(i,0,a),l.setHours(0,0,0,0);const u=Bl(l,e);return+n>=+o?i+1:+n>=+u?i:i-1}function HB(t,e){var o,l,u,c;const n=pu(),i=(e==null?void 0:e.firstWeekContainsDate)??((l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(u=n.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,r=oy(t,e),a=Oi((e==null?void 0:e.in)||t,0);return a.setFullYear(r,0,i),a.setHours(0,0,0,0),Bl(a,e)}function WB(t,e){const n=lt(t,e==null?void 0:e.in),i=+Bl(n,e)-+HB(n,e);return Math.round(i/$k)+1}function Ue(t,e){const n=t<0?"-":"",i=Math.abs(t).toString().padStart(e,"0");return n+i}const Pr={y(t,e){const n=t.getFullYear(),i=n>0?n:1-n;return Ue(e==="yy"?i%100:i,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Ue(n+1,2)},d(t,e){return Ue(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Ue(t.getHours()%12||12,e.length)},H(t,e){return Ue(t.getHours(),e.length)},m(t,e){return Ue(t.getMinutes(),e.length)},s(t,e){return Ue(t.getSeconds(),e.length)},S(t,e){const n=e.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,n-3));return Ue(r,e.length)}},ws={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},o3={G:function(t,e,n){const i=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const i=t.getFullYear(),r=i>0?i:1-i;return n.ordinalNumber(r,{unit:"year"})}return Pr.y(t,e)},Y:function(t,e,n,i){const r=oy(t,i),a=r>0?r:1-r;if(e==="YY"){const s=a%100;return Ue(s,2)}return e==="Yo"?n.ordinalNumber(a,{unit:"year"}):Ue(a,e.length)},R:function(t,e){const n=ty(t);return Ue(n,e.length)},u:function(t,e){const n=t.getFullYear();return Ue(n,e.length)},Q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return Ue(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return Ue(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,n){const i=t.getMonth();switch(e){case"M":case"MM":return Pr.M(t,e);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,n){const i=t.getMonth();switch(e){case"L":return String(i+1);case"LL":return Ue(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){const r=WB(t,i);return e==="wo"?n.ordinalNumber(r,{unit:"week"}):Ue(r,e.length)},I:function(t,e,n){const i=OB(t);return e==="Io"?n.ordinalNumber(i,{unit:"week"}):Ue(i,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Pr.d(t,e)},D:function(t,e,n){const i=BB(t);return e==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Ue(i,e.length)},E:function(t,e,n){const i=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){const r=t.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return Ue(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){const r=t.getDay(),a=(r-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return Ue(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,n){const i=t.getDay(),r=i===0?7:i;switch(e){case"i":return String(r);case"ii":return Ue(r,e.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,n){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){const i=t.getHours();let r;switch(i===12?r=ws.noon:i===0?r=ws.midnight:r=i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){const i=t.getHours();let r;switch(i>=17?r=ws.evening:i>=12?r=ws.afternoon:i>=4?r=ws.morning:r=ws.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let i=t.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return Pr.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Pr.H(t,e)},K:function(t,e,n){const i=t.getHours()%12;return e==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Ue(i,e.length)},k:function(t,e,n){let i=t.getHours();return i===0&&(i=24),e==="ko"?n.ordinalNumber(i,{unit:"hour"}):Ue(i,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Pr.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Pr.s(t,e)},S:function(t,e){return Pr.S(t,e)},X:function(t,e,n){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return u3(i);case"XXXX":case"XX":return xa(i);case"XXXXX":case"XXX":default:return xa(i,":")}},x:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"x":return u3(i);case"xxxx":case"xx":return xa(i);case"xxxxx":case"xxx":default:return xa(i,":")}},O:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+l3(i,":");case"OOOO":default:return"GMT"+xa(i,":")}},z:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+l3(i,":");case"zzzz":default:return"GMT"+xa(i,":")}},t:function(t,e,n){const i=Math.trunc(+t/1e3);return Ue(i,e.length)},T:function(t,e,n){return Ue(+t,e.length)}};function l3(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),a=i%60;return a===0?n+String(r):n+String(r)+e+Ue(a,2)}function u3(t,e){return t%60===0?(t>0?"-":"+")+Ue(Math.abs(t)/60,2):xa(t,e)}function xa(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),r=Ue(Math.trunc(i/60),2),a=Ue(i%60,2);return n+r+e+a}const c3=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},ly=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},VB=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],i=n[1],r=n[2];if(!r)return c3(t,e);let a;switch(i){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",c3(i,e)).replace("{{time}}",ly(r,e))},_B={p:ly,P:VB},GB=/^D+$/,UB=/^Y+$/,qB=["D","DD","YY","YYYY"];function KB(t){return GB.test(t)}function ZB(t){return UB.test(t)}function JB(t,e,n){const i=QB(t,e,n);if(console.warn(i),qB.includes(t))throw new RangeError(i)}function QB(t,e,n){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const YB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,XB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$B=/^'([^]*?)'?$/,eO=/''/g,tO=/[a-zA-Z]/;function U0(t,e,n){var c,f,d,m,p,g,v,w;const i=pu(),r=(n==null?void 0:n.locale)??i.locale??sy,a=(n==null?void 0:n.firstWeekContainsDate)??((f=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??i.firstWeekContainsDate??((m=(d=i.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((g=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:g.weekStartsOn)??i.weekStartsOn??((w=(v=i.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0,o=lt(t,n==null?void 0:n.in);if(!ry(o))throw new RangeError("Invalid time value");let l=e.match(XB).map(y=>{const x=y[0];if(x==="p"||x==="P"){const T=_B[x];return T(y,r.formatLong)}return y}).join("").match(YB).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const x=y[0];if(x==="'")return{isToken:!1,value:nO(y)};if(o3[x])return{isToken:!0,value:y};if(x.match(tO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:y}});r.localize.preprocessor&&(l=r.localize.preprocessor(o,l));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:r};return l.map(y=>{if(!y.isToken)return y.value;const x=y.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&ZB(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&KB(x))&&JB(x,e,String(t));const T=o3[x[0]];return T(o,x,r.localize,u)}).join("")}function nO(t){const e=t.match($B);return e?e[1].replace(eO,"'"):t}function iO(t,e,n){const i=pu(),r=(n==null?void 0:n.locale)??i.locale??sy,a=iy(t,e);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[o,l]=eg(n==null?void 0:n.in,...a>0?[e,t]:[t,e]),u=aB((n==null?void 0:n.roundingMethod)??"round"),c=l.getTime()-o.getTime(),f=c/xd,d=Sd(l)-Sd(o),m=(c-d)/xd,p=n==null?void 0:n.unit;let g;if(p?g=p:f<1?g="second":f<60?g="minute":f<i3?g="hour":m<n3?g="day":m<t3?g="month":g="year",g==="second"){const v=u(c/1e3);return r.formatDistance("xSeconds",v,s)}else if(g==="minute"){const v=u(f);return r.formatDistance("xMinutes",v,s)}else if(g==="hour"){const v=u(f/60);return r.formatDistance("xHours",v,s)}else if(g==="day"){const v=u(m/i3);return r.formatDistance("xDays",v,s)}else if(g==="month"){const v=u(m/n3);return v===12&&p!=="month"?r.formatDistance("xYears",1,s):r.formatDistance("xMonths",v,s)}else{const v=u(m/t3);return r.formatDistance("xYears",v,s)}}function j1(t,e){return+lt(t)>+lt(e)}function uy(t,e){return+lt(t)<+lt(e)}function rO(t,e){return+lt(t)==+lt(e)}function aO(t){return+lt(t)<Date.now()}function Aa(t,e){const n=()=>Oi(e==null?void 0:e.in,NaN),r=uO(t);let a;if(r.date){const u=cO(r.date,2);a=dO(u.restDateString,u.year)}if(!a||isNaN(+a))return n();const s=+a;let o=0,l;if(r.time&&(o=fO(r.time),isNaN(o)))return n();if(r.timezone){if(l=hO(r.timezone),isNaN(l))return n()}else{const u=new Date(s+o),c=lt(0,e==null?void 0:e.in);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return lt(s+o+l,e==null?void 0:e.in)}const ic={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},sO=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,oO=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,lO=/^([+-])(\d{2})(?::?(\d{2}))?$/;function uO(t){const e={},n=t.split(ic.dateTimeDelimiter);let i;if(n.length>2)return e;if(/:/.test(n[0])?i=n[0]:(e.date=n[0],i=n[1],ic.timeZoneDelimiter.test(e.date)&&(e.date=t.split(ic.timeZoneDelimiter)[0],i=t.substr(e.date.length,t.length))),i){const r=ic.timezone.exec(i);r?(e.time=i.replace(r[1],""),e.timezone=r[1]):e.time=i}return e}function cO(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=t.match(n);if(!i)return{year:NaN,restDateString:""};const r=i[1]?parseInt(i[1]):null,a=i[2]?parseInt(i[2]):null;return{year:a===null?r:a*100,restDateString:t.slice((i[1]||i[2]).length)}}function dO(t,e){if(e===null)return new Date(NaN);const n=t.match(sO);if(!n)return new Date(NaN);const i=!!n[4],r=qo(n[1]),a=qo(n[2])-1,s=qo(n[3]),o=qo(n[4]),l=qo(n[5])-1;if(i)return bO(e,o,l)?mO(e,o,l):new Date(NaN);{const u=new Date(0);return!gO(e,a,s)||!vO(e,r)?new Date(NaN):(u.setUTCFullYear(e,a,Math.max(r,s)),u)}}function qo(t){return t?parseInt(t):1}function fO(t){const e=t.match(oO);if(!e)return NaN;const n=I1(e[1]),i=I1(e[2]),r=I1(e[3]);return wO(n,i,r)?n*ey+i*xd+r*1e3:NaN}function I1(t){return t&&parseFloat(t.replace(",","."))||0}function hO(t){if(t==="Z")return 0;const e=t.match(lO);if(!e)return 0;const n=e[1]==="+"?-1:1,i=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return kO(i,r)?n*(i*ey+r*xd):NaN}function mO(t,e,n){const i=new Date(0);i.setUTCFullYear(t,0,4);const r=i.getUTCDay()||7,a=(e-1)*7+n+1-r;return i.setUTCDate(i.getUTCDate()+a),i}const pO=[31,null,31,30,31,30,31,31,30,31,30,31];function cy(t){return t%400===0||t%4===0&&t%100!==0}function gO(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(pO[e]||(cy(t)?29:28))}function vO(t,e){return e>=1&&e<=(cy(t)?366:365)}function bO(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function wO(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function kO(t,e){return e>=0&&e<=59}function yO(t,e,n){return nB(t,-1)}const xO=[{date:"2025-11-17T01:00:00",progress:10},{date:"2025-11-24T01:00:00",progress:22},{date:"2025-12-01T01:00:00",progress:34},{date:"2025-12-08T01:00:00",progress:42},{date:"2025-12-13T01:00:00",progress:50},{date:"2025-12-19T01:00:00",progress:65},{date:"2025-12-26T01:00:00",progress:76},{date:"2026-01-05T01:00:00",progress:92}];function CO(){const[t,e]=b.useState(0);return b.useEffect(()=>{const n=new Date,r=[...xO].sort((a,s)=>iy(Aa(a.date),Aa(s.date))).filter(a=>uy(Aa(a.date),n)||rO(Aa(a.date),n));r.length>0?e(r[r.length-1].progress):e(0)},[]),t}const SO=({flag:t,isSmall:e})=>{const n=CO();return h.jsxs("div",{className:ma.root,children:[h.jsxs("div",{className:ma.root__content,children:[h.jsx("div",{className:Y(ma.root__progressBar,{[ma["root__progressBar--small"]]:e}),children:h.jsx("div",{className:Y(ma.bar,ma[`bar--${n}`])})}),h.jsxs("div",{className:ma.root__progressStats,children:[h.jsx(S.Typography,{type:"detail-medium",children:`${n}%`}),h.jsx(S.Typography,{type:"detail-medium",children:"100%"})]})]}),t&&h.jsx(TD,{})]})},Ol=Ne(SD),EO=({onClick:t})=>h.jsx("div",{className:vn.root__info__small,children:h.jsxs("div",{className:vn.root__info__small__content,children:[h.jsx(S.Icon,{name:"heart_outline",size:"24"}),h.jsx(S.Typography,{type:"body-regular",markdown:!0,children:Ol.text_small}),h.jsx(S.TextButton,{color:"teal",size:"medium",text:Ol.button_small,onClick:t})]})}),TO=({isDesktop:t,isLargeBanner:e,onClick:n})=>h.jsx("div",{className:vn.root__info,children:e||t?h.jsxs("div",{className:vn.root__info__large,children:[h.jsx(S.Typography,{type:t?"body-semibold":"h4",children:Ol.title}),h.jsx(S.Typography,{type:"body-regular",children:Ol.text})]}):h.jsx(EO,{onClick:n})}),MO=({onClick:t})=>h.jsx("div",{className:vn.root__crossButton,children:h.jsx(S.IconButton,{icon:"cross",size:"small",onClick:t})}),Ed=({active:t=!1,variant:e="default"})=>{const[n,i]=b.useState(!0),r=it(800),a=wt(),s=di.useSnowplowTrack(),o=e==="default",l=()=>{s("click",{name:"christmas_banner",value:"clicked"}),a("/sponsor/create")},u=()=>{s("click",{name:"christmas_banner_close",value:"clicked"}),i(!1)};return n?t?h.jsxs("div",{className:Y(vn.root,vn[`root--${e}`]),children:[h.jsxs("div",{className:vn.root__content,children:[r&&h.jsx(S.Sticker,{className:vn.root__sticker,color:"lavender",icon:"supporter_new_outline",size:"small"}),h.jsxs("div",{className:Y(vn.root__main,vn[`root__main--${e}`]),children:[h.jsx(SO,{flag:r||o,isSmall:!r&&!o}),h.jsx(TO,{isLargeBanner:o,isDesktop:r,onClick:l}),(r||o)&&h.jsx(S.ButtonPrimary,{className:vn.root__main__button,text:Ol.button,size:r?"small":"medium",onClick:l})]})]}),!r&&h.jsx(MO,{onClick:u})]}):h.jsx("div",{className:vn.root}):null},AO="_garland_3y9wx_146",PO="_variant_3y9wx_161",d3={garland:AO,variant:PO},tg=()=>{const t=b.useRef(Math.round(Math.random()));return h.jsx("span",{className:Y(d3.garland,{[d3.variant]:t.current}),role:"presentation"})},FO="_react-datepicker_18m97_116",zO="_react-datepicker__day-names_18m97_119",LO="_react-datepicker__week_18m97_123",jO="_react-datepicker__day--outside-month_18m97_130",IO="_react-datepicker__time-container_18m97_139",RO="_react-datepicker__time_18m97_139",NO="_react-datepicker__time-box_18m97_142",DO="_col_18m97_146",BO="_col--1_18m97_151",OO="_col--2_18m97_155",HO="_col--3_18m97_155",WO="_col--hidden_18m97_161",VO="_table_18m97_165",_O="_table__header_18m97_171",GO="_table__header_18m97_171",UO="_table__body_18m97_179",qO="_table__body_18m97_179",KO="_table__bodyData_18m97_184",ZO="_table__bodyData_18m97_184",$t={"react-datepicker":"_react-datepicker_18m97_116",reactDatepicker:FO,"react-datepicker__day-names":"_react-datepicker__day-names_18m97_119",reactDatepickerDayNames:zO,"react-datepicker__week":"_react-datepicker__week_18m97_123",reactDatepickerWeek:LO,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_18m97_130",reactDatepickerDayOutsideMonth:jO,"react-datepicker__time-container":"_react-datepicker__time-container_18m97_139",reactDatepickerTimeContainer:IO,"react-datepicker__time":"_react-datepicker__time_18m97_139",reactDatepickerTime:RO,"react-datepicker__time-box":"_react-datepicker__time-box_18m97_142",reactDatepickerTimeBox:NO,col:DO,"col--1":"_col--1_18m97_151",col1:BO,"col--2":"_col--2_18m97_155",col2:OO,"col--3":"_col--3_18m97_155",col3:HO,"col--hidden":"_col--hidden_18m97_161",colHidden:WO,table:VO,table__header:_O,tableHeader:GO,table__body:UO,tableBody:qO,table__bodyData:KO,tableBodyData:ZO},JO=({header:t,list:e})=>{const n=s=>h.jsx(S.Icon,{name:"checkmark",size:"24",className:$t[`col--${s}`]}),i=s=>h.jsx(S.Icon,{name:"cross",size:"24",className:Y($t[`col--${s}`],$t["col--hidden"])}),r=(s,o)=>{switch(s){case!0:return h.jsx("td",{children:i(o)},o);case!1:return h.jsx("td",{children:n(o)},o);default:return h.jsx("td",{className:$t.table__bodyData,children:h.jsx(S.Typography,{className:$t[`col--${o}`],type:"body-regular",children:s})},o)}},a=()=>e&&e.map((s,o)=>h.jsxs(b.Fragment,{children:[!!o&&h.jsx("tr",{children:h.jsx("td",{className:$t.table__bodyData,children:h.jsx(S.Divider,{})})}),h.jsx("tr",{className:$t.col,children:s&&s.map((l,u)=>r(l,u+1))})]},`table_row_${o}`));return h.jsx("section",{children:h.jsxs("table",{className:$t.table,children:[h.jsx("thead",{children:h.jsxs("tr",{className:$t.table__header,children:[h.jsx("th",{className:Y($t.col,$t["col--1"])}),t&&t.map((s,o)=>h.jsx("th",{className:Y($t.col,$t[`col--${o+2}`]),children:h.jsx(S.Typography,{type:"body-regular",children:s.label})},s.key))]})}),h.jsx("tbody",{className:$t.table__body,children:a()})]})})};function QO(t){return typeof t=="string"}function YO(t,e,n){return t===void 0||QO(t)?e:{...e,ownerState:{...e.ownerState,...n}}}function f3(t,e,n=(i,r)=>i===r){return t.length===e.length&&t.every((i,r)=>n(i,e[r]))}const XO={disableDefaultClasses:!1},dy=k.createContext(XO);process.env.NODE_ENV!=="production"&&(dy.displayName="ClassNameConfiguratorContext");function gu(t){const{disableDefaultClasses:e}=k.useContext(dy);return n=>e?"":t(n)}function Ni(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(i=>i.match(/^on[A-Z]/)&&typeof t[i]=="function"&&!e.includes(i)).forEach(i=>{n[i]=t[i]}),n}function $O(t){const{rootElementName:e="",componentName:n}=t,[i,r]=k.useState(e.toUpperCase());process.env.NODE_ENV!=="production"&&k.useEffect(()=>{e&&i!==e.toUpperCase()&&console.error(`useRootElementName: the \`rootElementName\` prop of ${n?`the ${n} 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,n]);const a=k.useCallback(s=>{r((s==null?void 0:s.tagName)??"")},[]);return[i,a]}function Gi(...t){const e=k.useRef(void 0),n=k.useCallback(i=>{const r=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,o=s(i);return typeof o=="function"?o:()=>{s(null)}}return a.current=i,()=>{a.current=null}});return()=>{r.forEach(a=>a==null?void 0:a())}},t);return k.useMemo(()=>t.every(i=>i==null)?null:i=>{e.current&&(e.current(),e.current=void 0),i!=null&&(e.current=n(i))},t)}function h3(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function eH(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:i,externalForwardedProps:r,className:a}=t;if(!e){const m=Y(n==null?void 0:n.className,a,r==null?void 0:r.className,i==null?void 0:i.className),p={...n==null?void 0:n.style,...r==null?void 0:r.style,...i==null?void 0:i.style},g={...n,...r,...i};return m.length>0&&(g.className=m),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:void 0}}const s=Ni({...r,...i}),o=h3(i),l=h3(r),u=e(s),c=Y(u==null?void 0:u.className,n==null?void 0:n.className,a,r==null?void 0:r.className,i==null?void 0:i.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...i==null?void 0:i.style},d={...u,...n,...l,...o};return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}function tH(t,e,n){return typeof t=="function"?t(e,n):t}function eo(t){var f;const{elementType:e,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:r=!1,...a}=t,s=r?{}:tH(n,i),{props:o,internalRef:l}=eH({...a,externalSlotProps:s}),u=Gi(l,s==null?void 0:s.ref,(f=t.additionalProps)==null?void 0:f.ref);return YO(e,{...o,ref:u},i)}var q0={exports:{}},K0={exports:{}},He={};/** @license React v16.13.1
package/index.mjs CHANGED
@@ -11396,7 +11396,7 @@ const Wy = /* @__PURE__ */ ri(vO), kO = "_markdown_1ek7s_146", E3 = {
11396
11396
  allowedAttributes: {
11397
11397
  a: ["href", "target"]
11398
11398
  },
11399
- allowedTags: ["a", "strong"]
11399
+ allowedTags: ["a", "strong", "br", "p"]
11400
11400
  };
11401
11401
  function xO({
11402
11402
  className: t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.10.0-development.4",
3
+ "version": "4.10.0-development.5",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",