@goodhood-web/nebenan-base 3.0.0-development.110 → 3.0.0-development.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -852,7 +852,7 @@ ${n}</tr>
852
852
  `}tablecell(n){const t=this.parser.parseInline(n.tokens),i=n.header?"th":"td";return(n.align?`<${i} align="${n.align}">`:`<${i}>`)+t+`</${i}>
853
853
  `}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${n}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:t,tokens:i}){const r=this.parser.parseInline(i),a=Mp(n);if(a===null)return r;n=a;let o='<a href="'+n+'"';return t&&(o+=' title="'+t+'"'),o+=">"+r+"</a>",o}image({href:n,title:t,text:i}){const r=Mp(n);if(r===null)return i;n=r;let a=`<img src="${n}" alt="${i}"`;return t&&(a+=` title="${t}"`),a+=">",a}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):n.text}}class $h{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return""+n}image({text:n}){return""+n}br(){return""}}class wi{constructor(n){wn(this,"options");wn(this,"renderer");wn(this,"textRenderer");this.options=n||za,this.options.renderer=this.options.renderer||new od,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $h}static parse(n,t){return new wi(t).parse(n)}static parseInline(n,t){return new wi(t).parseInline(n)}parse(n,t=!0){let i="";for(let r=0;r<n.length;r++){const a=n[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){const f=a,d=this.options.extensions.renderers[f.type].call({parser:this},f);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(f.type)){i+=d||"";continue}}const o=a;switch(o.type){case"space":{i+=this.renderer.space(o);continue}case"hr":{i+=this.renderer.hr(o);continue}case"heading":{i+=this.renderer.heading(o);continue}case"code":{i+=this.renderer.code(o);continue}case"table":{i+=this.renderer.table(o);continue}case"blockquote":{i+=this.renderer.blockquote(o);continue}case"list":{i+=this.renderer.list(o);continue}case"html":{i+=this.renderer.html(o);continue}case"paragraph":{i+=this.renderer.paragraph(o);continue}case"text":{let f=o,d=this.renderer.text(f);for(;r+1<n.length&&n[r+1].type==="text";)f=n[++r],d+=`
854
854
  `+this.renderer.text(f);t?i+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d}]}):i+=d;continue}default:{const f='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return i}parseInline(n,t){t=t||this.renderer;let i="";for(let r=0;r<n.length;r++){const a=n[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){const f=this.options.extensions.renderers[a.type].call({parser:this},a);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=f||"";continue}}const o=a;switch(o.type){case"escape":{i+=t.text(o);break}case"html":{i+=t.html(o);break}case"link":{i+=t.link(o);break}case"image":{i+=t.image(o);break}case"strong":{i+=t.strong(o);break}case"em":{i+=t.em(o);break}case"codespan":{i+=t.codespan(o);break}case"br":{i+=t.br(o);break}case"del":{i+=t.del(o);break}case"text":{i+=t.text(o);break}default:{const f='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return i}}class Po{constructor(n){wn(this,"options");wn(this,"block");this.options=n||za}preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}provideLexer(){return this.block?ki.lex:ki.lexInline}provideParser(){return this.block?wi.parse:wi.parseInline}}wn(Po,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class yq{constructor(...n){wn(this,"defaults",Lh());wn(this,"options",this.setOptions);wn(this,"parse",this.parseMarkdown(!0));wn(this,"parseInline",this.parseMarkdown(!1));wn(this,"Parser",wi);wn(this,"Renderer",od);wn(this,"TextRenderer",$h);wn(this,"Lexer",ki);wn(this,"Tokenizer",ad);wn(this,"Hooks",Po);this.use(...n)}walkTokens(n,t){var r,a;let i=[];for(const o of n)switch(i=i.concat(t.call(this,o)),o.type){case"table":{const f=o;for(const d of f.header)i=i.concat(this.walkTokens(d.tokens,t));for(const d of f.rows)for(const u of d)i=i.concat(this.walkTokens(u.tokens,t));break}case"list":{const f=o;i=i.concat(this.walkTokens(f.items,t));break}default:{const f=o;(a=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&a[f.type]?this.defaults.extensions.childTokens[f.type].forEach(d=>{const u=f[d].flat(1/0);i=i.concat(this.walkTokens(u,t))}):f.tokens&&(i=i.concat(this.walkTokens(f.tokens,t)))}}return i}use(...n){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(i=>{const r={...i};if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){const o=t.renderers[a.name];o?t.renderers[a.name]=function(...f){let d=a.renderer.apply(this,f);return d===!1&&(d=o.apply(this,f)),d}:t.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[a.level];o?o.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&(a.level==="block"?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:a.level==="inline"&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),r.extensions=t),i.renderer){const a=this.defaults.renderer||new od(this.defaults);for(const o in i.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const f=o,d=i.renderer[f],u=a[f];a[f]=(...c)=>{let g=d.apply(a,c);return g===!1&&(g=u.apply(a,c)),g||""}}r.renderer=a}if(i.tokenizer){const a=this.defaults.tokenizer||new ad(this.defaults);for(const o in i.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const f=o,d=i.tokenizer[f],u=a[f];a[f]=(...c)=>{let g=d.apply(a,c);return g===!1&&(g=u.apply(a,c)),g}}r.tokenizer=a}if(i.hooks){const a=this.defaults.hooks||new Po;for(const o in i.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const f=o,d=i.hooks[f],u=a[f];Po.passThroughHooks.has(o)?a[f]=c=>{if(this.defaults.async)return Promise.resolve(d.call(a,c)).then(m=>u.call(a,m));const g=d.call(a,c);return u.call(a,g)}:a[f]=(...c)=>{let g=d.apply(a,c);return g===!1&&(g=u.apply(a,c)),g}}r.hooks=a}if(i.walkTokens){const a=this.defaults.walkTokens,o=i.walkTokens;r.walkTokens=function(f){let d=[];return d.push(o.call(this,f)),a&&(d=d.concat(a.call(this,f))),d}}this.defaults={...this.defaults,...r}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,t){return ki.lex(n,t??this.defaults)}parser(n,t){return wi.parse(n,t??this.defaults)}parseMarkdown(n){return(i,r)=>{const a={...r},o={...this.defaults,...a},f=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&a.async===!1)return f(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=n);const d=o.hooks?o.hooks.provideLexer():n?ki.lex:ki.lexInline,u=o.hooks?o.hooks.provideParser():n?wi.parse:wi.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(i):i).then(c=>d(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>u(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(f);try{o.hooks&&(i=o.hooks.preprocess(i));let c=d(i,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let g=u(c,o);return o.hooks&&(g=o.hooks.postprocess(g)),g}catch(c){return f(c)}}}onError(n,t){return i=>{if(i.message+=`
855
- Please report this to https://github.com/markedjs/marked.`,n){const r="<p>An error occurred:</p><pre>"+Xt(i.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(i);throw i}}}const Ta=new yq;function xn(e,n){return Ta.parse(e,n)}xn.options=xn.setOptions=function(e){return Ta.setOptions(e),xn.defaults=Ta.defaults,Gk(xn.defaults),xn};xn.getDefaults=Lh;xn.defaults=za;xn.use=function(...e){return Ta.use(...e),xn.defaults=Ta.defaults,Gk(xn.defaults),xn};xn.walkTokens=function(e,n){return Ta.walkTokens(e,n)};xn.parseInline=Ta.parseInline;xn.Parser=wi;xn.parser=wi.parse;xn.Renderer=od;xn.TextRenderer=$h;xn.Lexer=ki;xn.lexer=ki.lex;xn.Tokenizer=ad;xn.Hooks=Po;xn.parse=xn;xn.options;xn.setOptions;xn.use;xn.walkTokens;xn.parseInline;wi.parse;ki.lex;const xq=e=>e.replace(/"/g,"QUOTE"),Sq=e=>e.replace(new RegExp("QUOTE","g"),'"');function Cq({className:e,elementTag:n="span",inline:t=!1,text:i}){const r=Sq(Hk(xq(i))),a=n;return k.jsx(a,{className:e,dangerouslySetInnerHTML:{__html:t?xn.parseInline(r,{breaks:!0}):xn.parse(r,{breaks:!0})}})}const Eq="_typography-landing--claim_ocja1_120",Fq="_typography-landing--claim-uppercase_ocja1_158",Mq="_typography-landing--h1_ocja1_196",Tq="_typography-landing--h1-uppercase_ocja1_234",Lq="_typography-landing--h2_ocja1_272",Pq="_typography-landing--h3_ocja1_310",Rq="_typography-landing--h4_ocja1_348",Aq="_typography-landing--h5_ocja1_373",Bq="_typography-landing--h6_ocja1_398",zq="_typography-landing--overline_ocja1_423",$q="_typography-landing--body-large_ocja1_460",Oq="_typography-landing--body-large-semibold_ocja1_484",Iq="_typography-landing--body_ocja1_460",Dq="_typography-landing--body-semibold_ocja1_519",jq="_typography-landing--body-italic_ocja1_530",Hq="_typography-landing--quote-large_ocja1_542",Nq="_typography-landing--detail-small_ocja1_567",Vq="_typography-landing--detail-small-bold_ocja1_578",Gq="_typography-landing_ocja1_120",Wq="_typography-product_ocja1_607",qq="_typography-product--h1_ocja1_619",Uq="_typography-product--h2_ocja1_631",Zq="_typography-product--h3_ocja1_643",Kq="_typography-product--h4_ocja1_655",Yq="_typography-product--h5_ocja1_667",Jq="_typography-product--h6_ocja1_679",Qq="_typography-product--h7_ocja1_691",Xq="_typography-product--h8_ocja1_703",eU="_typography-product--body-large_ocja1_715",nU="_typography-product--body-regular_ocja1_739",tU="_typography-product--body-semibold_ocja1_763",iU="_typography-product--body-italic_ocja1_787",rU="_typography-product--body-text-link_ocja1_812",aU="_typography-product--detail-medium_ocja1_824",sU="_typography-product--detail-bold_ocja1_848",oU="_typography-product--detail-upper-case_ocja1_872",lU="_typography-product--detail-regular_ocja1_896",fU="_typography-product--detail-text-link_ocja1_920",Rp={"typography-landing--claim":"_typography-landing--claim_ocja1_120",typographyLandingClaim:Eq,"typography-landing--claim-uppercase":"_typography-landing--claim-uppercase_ocja1_158",typographyLandingClaimUppercase:Fq,"typography-landing--h1":"_typography-landing--h1_ocja1_196",typographyLandingH1:Mq,"typography-landing--h1-uppercase":"_typography-landing--h1-uppercase_ocja1_234",typographyLandingH1Uppercase:Tq,"typography-landing--h2":"_typography-landing--h2_ocja1_272",typographyLandingH2:Lq,"typography-landing--h3":"_typography-landing--h3_ocja1_310",typographyLandingH3:Pq,"typography-landing--h4":"_typography-landing--h4_ocja1_348",typographyLandingH4:Rq,"typography-landing--h5":"_typography-landing--h5_ocja1_373",typographyLandingH5:Aq,"typography-landing--h6":"_typography-landing--h6_ocja1_398",typographyLandingH6:Bq,"typography-landing--overline":"_typography-landing--overline_ocja1_423",typographyLandingOverline:zq,"typography-landing--body-large":"_typography-landing--body-large_ocja1_460",typographyLandingBodyLarge:$q,"typography-landing--body-large-semibold":"_typography-landing--body-large-semibold_ocja1_484",typographyLandingBodyLargeSemibold:Oq,"typography-landing--body":"_typography-landing--body_ocja1_460",typographyLandingBody:Iq,"typography-landing--body-semibold":"_typography-landing--body-semibold_ocja1_519",typographyLandingBodySemibold:Dq,"typography-landing--body-italic":"_typography-landing--body-italic_ocja1_530",typographyLandingBodyItalic:jq,"typography-landing--quote-large":"_typography-landing--quote-large_ocja1_542",typographyLandingQuoteLarge:Hq,"typography-landing--detail-small":"_typography-landing--detail-small_ocja1_567",typographyLandingDetailSmall:Nq,"typography-landing--detail-small-bold":"_typography-landing--detail-small-bold_ocja1_578",typographyLandingDetailSmallBold:Vq,"typography-landing":"_typography-landing_ocja1_120",typographyLanding:Gq,"typography-product":"_typography-product_ocja1_607",typographyProduct:Wq,"typography-product--h1":"_typography-product--h1_ocja1_619",typographyProductH1:qq,"typography-product--h2":"_typography-product--h2_ocja1_631",typographyProductH2:Uq,"typography-product--h3":"_typography-product--h3_ocja1_643",typographyProductH3:Zq,"typography-product--h4":"_typography-product--h4_ocja1_655",typographyProductH4:Kq,"typography-product--h5":"_typography-product--h5_ocja1_667",typographyProductH5:Yq,"typography-product--h6":"_typography-product--h6_ocja1_679",typographyProductH6:Jq,"typography-product--h7":"_typography-product--h7_ocja1_691",typographyProductH7:Qq,"typography-product--h8":"_typography-product--h8_ocja1_703",typographyProductH8:Xq,"typography-product--body-large":"_typography-product--body-large_ocja1_715",typographyProductBodyLarge:eU,"typography-product--body-regular":"_typography-product--body-regular_ocja1_739",typographyProductBodyRegular:nU,"typography-product--body-semibold":"_typography-product--body-semibold_ocja1_763",typographyProductBodySemibold:tU,"typography-product--body-italic":"_typography-product--body-italic_ocja1_787",typographyProductBodyItalic:iU,"typography-product--body-text-link":"_typography-product--body-text-link_ocja1_812",typographyProductBodyTextLink:rU,"typography-product--detail-medium":"_typography-product--detail-medium_ocja1_824",typographyProductDetailMedium:aU,"typography-product--detail-bold":"_typography-product--detail-bold_ocja1_848",typographyProductDetailBold:sU,"typography-product--detail-upper-case":"_typography-product--detail-upper-case_ocja1_872",typographyProductDetailUpperCase:oU,"typography-product--detail-regular":"_typography-product--detail-regular_ocja1_896",typographyProductDetailRegular:lU,"typography-product--detail-text-link":"_typography-product--detail-text-link_ocja1_920",typographyProductDetailTextLink:fU};function dU(e){switch(e){case"h1":case"h1-uppercase":return"h1";case"h2":case"claim":case"claim-uppercase":return"h2";case"h3":case"h4":case"h5":return e;case"h6":case"overline":return"h6";default:return"span"}}const uf=e=>{const{as:n,children:t,className:i,fontSet:r="product",markdown:a=r==="landing",type:o}=e,f=n||dU(o),d=je(Rp[`typography-${r}`],Rp[`typography-${r}--${o}`],i);return k.jsx(k.Fragment,{children:typeof t=="string"&&a?k.jsx(Cq,{className:d,text:t,inline:!0,elementTag:f}):k.jsx(f,{className:d,children:t})})},uU="_root_1p8e7_120",cU="_root__content_1p8e7_130",hU="_root__bookmark_1p8e7_136",gU="_root__header_1p8e7_142",mU="_root__header__reserved_1p8e7_149",pU="_root__header__reserved__box_1p8e7_162",vU="_root__header__image_1p8e7_171",kU="_root__info_1p8e7_176",wU="_root__info__top_1p8e7_182",_U="_root__info__price_1p8e7_185",bU="_root__info__title_1p8e7_191",yU="_root__info__timeStamp_1p8e7_200",$t={root:uU,root__content:cU,root__bookmark:hU,root__header:gU,root__header__reserved:mU,"root__header__reserved--visible":"_root__header__reserved--visible_1p8e7_159",root__header__reserved__box:pU,root__header__image:vU,root__info:kU,root__info__top:wU,root__info__price:_U,"root__info__price--reserved":"_root__info__price--reserved_1p8e7_188",root__info__title:bU,root__info__timeStamp:yU};function Oh({bookmarked:e,id:n,image:t,onClick:i,price:r,reserved:a,reservedText:o,timeStamp:f,title:d}){const u=_i(),c=()=>{u(`/feed/${n}`),i&&i()};return k.jsxs("div",{className:$t.root,children:[k.jsx(Ok,{className:$t.root__bookmark,isBookmarked:e,id:n}),k.jsxs(z.Button,{className:$t.root__content,onClick:c,children:[k.jsxs("div",{className:$t.root__header,children:[k.jsx("div",{className:je($t.root__header__reserved,{[$t["root__header__reserved--visible"]]:a}),children:k.jsx("div",{className:$t.root__header__reserved__box,children:k.jsx(uf,{type:"detail-upper-case",children:o})})}),t?k.jsx(AW,{alt:"product image",src:t,className:$t.root__header__image}):k.jsx(RW,{size:"large",style:"rounded",icon:k.jsx(Ik,{name:"camera_crossed"})})]}),k.jsxs("div",{className:$t.root__info,children:[k.jsxs("div",{className:$t.root__info__top,children:[k.jsx(uf,{type:"body-semibold",as:"p",className:je($t.root__info__price,{[$t["root__info__price--reserved"]]:a}),children:r}),k.jsx(uf,{type:"body-semibold",as:"p",className:$t.root__info__title,children:d})]}),k.jsx(uf,{type:"detail-medium",as:"p",className:$t.root__info__timeStamp,children:rd(f)})]})]})]})}const xU=({children:e,navigate:n})=>k.jsx(d3.Provider,{value:{navigate:n},children:e}),SU="_root_1elhz_120",CU={root:SU},Ih={event:"event",feed:"feed",group:"group",marketplace:"marketplace",post:"post"},EU="_root_19omr_120",FU="_root__list_19omr_125",MU="_root__itemCta_19omr_135",TU="_root__item_19omr_135",lo={root:EU,root__list:FU,root__itemCta:MU,root__item:TU},LU={event:"",feed:"",group:"",marketplace:"/feed/marketplace",post:""},PU=({feedType:e,item:n})=>{switch(e){case Ih[e]:return k.jsx(Oh,{...n});default:return null}},RU=(e,n,t=6)=>{let i=[];if(!e.length)return[[]];const r=n?n.filter(m=>Number(m==null?void 0:m.position)>=0):[];let a=Array(t).fill(null),o=0,f=0,d=0;const u=()=>{let m=0;r.forEach(w=>{w.block===d&&(a.splice(w==null?void 0:w.position,1,w),m+=1)}),o=m};r.length&&u();const c=(m,w)=>{if(a[m]!==null&&o<t&&m<t){c(m+1,w);return}a.splice(m,1,w),o+=1,f+=1},g=(m=0,w=[])=>{if(m>e.length){if(o>0){const _=a.filter(C=>C!=null);_.length&&w.push(_)}return w}return c(f,e[m]),o===t&&a.filter(Boolean).length===t&&(w.push(a.filter(_=>_!=null)),a=Array(t).fill(null),o=0,f=0,d+=1,r.length&&u()),g(m+1,w)};return i=g(),n&&n.length>=0&&(i=n.sort((m,w)=>m.block-w.block).filter(m=>(m==null?void 0:m.position)==null).reduce((m,w,_)=>{if(i.length>=w.block){const C=w.block+_+1;return[...m.slice(0,C),w,...m.slice(C)]}return m},[...i])),i},AU=e=>e?new Intl.NumberFormat("de-DE",{currency:"EUR",maximumFractionDigits:0,minimumFractionDigits:0,style:"currency"}).format(e/100).replace("€","").trim()+" €":"Zu verschenken",BU=(e,n)=>{const t=[];return e.forEach(i=>{var r,a;typeof i=="number"?t.push({bookmarked:n[i].is_bookmarked,id:n[i].id,image:(a=(r=n[i])==null?void 0:r.images[0])==null?void 0:a.url,price:AU(n[i].price),reserved:S$(n[i].outcome),reservedText:"Reserviert",timeStamp:n[i].created_at,title:n[i].subject,type:"feed"}):t.push({type:"ad",...i})}),t},zU=(e,n="de-DE")=>e[n],$U={"de-DE":{marketplace:{description:"Gib deinen Sachen ein neues Zuhause.",title:"Etwas zu verkaufen?",cta:"Angebot erstellen"},feed:{description:"",title:"",cta:""},event:{description:"",title:"",cta:""},group:{description:"",title:"",cta:""},post:{description:"",title:"",cta:""}}},OU=zU($U),IU=(e,n)=>OU[Ih[e]][n];function Ap({feedType:e,isCard:n=!1,onClick:t}){const i=r=>IU(e,r);return k.jsx(z.EmptyState,{primaryText:i("title"),stickerProps:{color:"teal",icon:"marketplace"},secondaryText:i("description"),size:n?"small":"medium",buttons:[{buttonType:"primary",children:k.jsx(z.Typography,{type:n?"body-semibold":"h5",children:i("cta")}),onClick:t,size:n?"small":"large"}]})}const DU=(e,n)=>e?n%3!==0:n%2!==0;function e4({feedType:e,items:n}){const t=_i(),i=X1(800),r=DU(i,n.length),a=()=>{t(LU[e])};return k.jsx(k.Fragment,{children:n.length?k.jsx(z.Card,{className:je(lo.root),borderRadius:!0,responsive:!0,children:k.jsx(z.CardBody,{className:lo.root__body,withoutPadding:!0,children:k.jsxs("ul",{className:lo.root__list,children:[n.map((o,f)=>k.jsx("li",{className:lo.root__item,children:o.type==="feed"?k.jsx(PU,{feedType:e,item:o}):o.content},`grid_item_${o.type}_${o.id}`)),r&&k.jsx("li",{className:lo.root__itemCta,children:k.jsx(Ap,{isCard:!0,onClick:a,feedType:e})},"empty_state_cta_card")]})})}):k.jsx(Ap,{onClick:a,feedType:e})})}const jU=({feedItem:e,feedItems:n,feedType:t})=>{switch(t){case Ih[t]:return k.jsx(e4,{feedType:t,items:BU(e,n)});default:return null}},HU=({ads:e,feedItems:n,feedType:t,items:i})=>{const r=RU(i,e);return r.length?k.jsx("section",{className:CU.root,children:r.map((a,o)=>Array.isArray(a)?k.jsx(jU,{feedItem:a,feedItems:n,feedType:t},`grid_block_${o}`):k.jsx(y.Fragment,{children:a.content},`ad_block_${o}_${a.id}`))}):null};function NU(e){e.__scriptingEnabledHTMLContentHasBeenExecuted=!0}const VU=`(${NU.toString()})(document.currentScript);`,n4=y.forwardRef((e,n)=>{const t=y.useRef(null);return y.useImperativeHandle(n,()=>({get hasBeenExecuted(){const i=t.current;return i?!!i.__scriptingEnabledHTMLContentHasBeenExecuted:!1}})),k.jsx("script",{ref:t,dangerouslySetInnerHTML:{__html:VU}})});n4.displayName="InnerHTMLScript";const GU=(e,n)=>{const t=document.createRange().createContextualFragment(n);e.innerHTML="",e.appendChild(t)},WU=({html:e,...n})=>{const t=y.useRef(null),i=y.useRef(null);return y.useEffect(()=>{const r=i.current,a=t.current;!r||!a||a.hasBeenExecuted||GU(r,e)},[e]),k.jsxs(k.Fragment,{children:[k.jsx(n4,{ref:t}),k.jsx("div",{...n,ref:i,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:e}})]})},qU="_imageGallery_10c2p_120",UU="_imageGalleryImage_10c2p_126",ZU="_imageGalleryPill_10c2p_134",Hc={imageGallery:qU,imageGalleryImage:UU,imageGalleryPill:ZU},KU=({gallerySize:e,imageAlt:n,imageURL:t,onClick:i})=>{let r;if(e>1){const a=`+${e-1}`;r=k.jsx("div",{className:Hc.imageGalleryPill,children:k.jsx(z.LabelPill,{label:a,shape:"tile",size:"medium"})})}return k.jsxs("div",{className:Hc.imageGallery,onClick:i,children:[k.jsx(z.Image,{alt:n,src:t,className:Hc.imageGalleryImage}),r]})},YU="_container_y0t0p_120",JU="_circle_y0t0p_128",QU="_logo_y0t0p_136",Nc={container:YU,circle:JU,logo:QU},XU=(e,n)=>p.createElement("svg",{width:72,height:80,viewBox:"0 0 72 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.7997 17.7397L39.7431 1.45626C37.3242 0.0510383 34.3374 0.0510383 31.9184 1.45626L3.87632 17.7397C1.48151 19.136 0.00627151 21.6971 0 24.4692V55.5447C0.0040404 58.3136 1.48055 60.8715 3.87632 62.2598L15.5846 69.0614V50.9839L21.4279 54.3414C21.6617 54.4879 21.8054 54.7428 21.8097 55.0187V72.6783L31.8968 78.5576C34.3242 79.9506 37.3085 79.9506 39.7359 78.5576L49.823 72.6783V55.0187C49.8291 54.7396 49.9789 54.4834 50.2193 54.3414L56.0554 50.9839V69.0614L60.7315 66.3451L67.7708 62.2598C70.1649 60.8707 71.6389 58.3126 71.64 55.5447V24.4692C71.6426 21.7041 70.1817 19.144 67.7997 17.7397ZM33.4975 74.07L26.487 69.9991V55.0198C26.4907 53.076 25.4583 51.2775 23.7779 50.3005L15.0237 45.2569C14.1803 44.77 13.1412 44.7705 12.2982 45.2581C11.4552 45.7457 10.9368 46.6464 10.9384 47.6202V60.928L6.21913 58.2333C5.26735 57.6719 4.68151 56.6508 4.67725 55.5458V25.3926L33.4975 42.1227V74.07ZM6.98877 21.3007L33.4962 36.7267V5.93945L6.98877 21.3007ZM38.187 5.93945L64.6872 21.3007L38.187 36.7267V5.93945ZM65.451 58.2333C66.4104 57.6776 67.0029 56.6545 67.0073 55.5458V25.3926L38.187 42.1227V74.07L45.1759 69.9991V55.027C45.1841 53.0789 46.2267 51.2818 47.9138 50.3077L56.6824 45.2641C57.5253 44.7809 58.5619 44.7833 59.4025 45.2705C60.2432 45.7577 60.7606 46.6558 60.7605 47.6274V60.928L65.451 58.2333Z",fill:"#201649"})),eZ=y.forwardRef(XU),t4=()=>k.jsxs("div",{className:Nc.container,children:[k.jsx("div",{className:Nc.circle}),k.jsx(eZ,{className:Nc.logo})]}),nZ="_wrapper_1e52e_120",tZ="_header_1e52e_127",iZ="_navbar_1e52e_136",rZ="_banner_1e52e_141",aZ="_main_1e52e_150",sZ="_contentContainer_1e52e_154",oZ="_contentContainer__withBanner_1e52e_159",lZ="_contentContainer__withBanner_1e52e_159",fZ="_content_1e52e_154",dZ="_mainContent_1e52e_169",uZ="_mainContent__withoutSidebar_1e52e_172",cZ="_mainContent__withoutSidebar_1e52e_172",hZ="_sidebarRight_1e52e_176",gZ="_adSlot_1e52e_183",mZ="_adSlot__withBanner_1e52e_189",pZ="_adSlot__withBanner_1e52e_189",vZ="_adSlot--right_1e52e_209",kZ="_adSlot--left_1e52e_214",kt={wrapper:nZ,header:tZ,navbar:iZ,banner:rZ,main:aZ,contentContainer:sZ,contentContainer__withBanner:oZ,contentContainerWithBanner:lZ,content:fZ,mainContent:dZ,mainContent__withoutSidebar:uZ,mainContentWithoutSidebar:cZ,sidebarRight:hZ,adSlot:gZ,adSlot__withBanner:mZ,adSlotWithBanner:pZ,"adSlot--right":"_adSlot--right_1e52e_209",adSlotRight:vZ,"adSlot--left":"_adSlot--left_1e52e_214",adSlotLeft:kZ},wZ=({banner:e,children:n,leftAdSlot:t,navbar:i,right:r,rightAdSlot:a})=>k.jsxs("div",{className:kt.wrapper,children:[k.jsx("div",{className:je(kt.adSlot,kt["adSlot--left"],{[kt.adSlot__withBanner]:e}),children:t}),k.jsxs("div",{className:je(kt.contentContainer,{[kt.contentContainer__withBanner]:e}),children:[k.jsx("header",{className:kt.header,children:k.jsx("nav",{className:kt.navBar,children:i})}),k.jsxs("div",{className:je(kt.content),children:[k.jsx("main",{className:je(kt.mainContent,{[kt.mainContent__withoutSidebar]:!r}),children:n}),r&&k.jsx("aside",{className:kt.sidebarRight,children:r})]})]}),k.jsx("div",{className:je(kt.adSlot,kt["adSlot--right"],{[kt.adSlot__withBanner]:e}),children:a}),e&&k.jsx("div",{className:kt.banner,children:e})]});var i4={exports:{}};(()=>{var e={d:(o,f)=>{for(var d in f)e.o(f,d)&&!e.o(o,d)&&Object.defineProperty(o,d,{enumerable:!0,get:f[d]})},o:(o,f)=>Object.prototype.hasOwnProperty.call(o,f),r:o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{default:()=>a});const t=y;function i(o,f){return function(d){if(Array.isArray(d))return d}(o)||function(d,u){var c=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(c!=null){var g,m,w=[],_=!0,C=!1;try{for(c=c.call(d);!(_=(g=c.next()).done)&&(w.push(g.value),!u||w.length!==u);_=!0);}catch(E){C=!0,m=E}finally{try{_||c.return==null||c.return()}finally{if(C)throw m}}return w}}(o,f)||function(d,u){if(d){if(typeof d=="string")return r(d,u);var c=Object.prototype.toString.call(d).slice(8,-1);return c==="Object"&&d.constructor&&(c=d.constructor.name),c==="Map"||c==="Set"?Array.from(d):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?r(d,u):void 0}}(o,f)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
855
+ Please report this to https://github.com/markedjs/marked.`,n){const r="<p>An error occurred:</p><pre>"+Xt(i.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(i);throw i}}}const Ta=new yq;function xn(e,n){return Ta.parse(e,n)}xn.options=xn.setOptions=function(e){return Ta.setOptions(e),xn.defaults=Ta.defaults,Gk(xn.defaults),xn};xn.getDefaults=Lh;xn.defaults=za;xn.use=function(...e){return Ta.use(...e),xn.defaults=Ta.defaults,Gk(xn.defaults),xn};xn.walkTokens=function(e,n){return Ta.walkTokens(e,n)};xn.parseInline=Ta.parseInline;xn.Parser=wi;xn.parser=wi.parse;xn.Renderer=od;xn.TextRenderer=$h;xn.Lexer=ki;xn.lexer=ki.lex;xn.Tokenizer=ad;xn.Hooks=Po;xn.parse=xn;xn.options;xn.setOptions;xn.use;xn.walkTokens;xn.parseInline;wi.parse;ki.lex;const xq=e=>e.replace(/"/g,"QUOTE"),Sq=e=>e.replace(new RegExp("QUOTE","g"),'"');function Cq({className:e,elementTag:n="span",inline:t=!1,text:i}){const r=Sq(Hk(xq(i))),a=n;return k.jsx(a,{className:e,dangerouslySetInnerHTML:{__html:t?xn.parseInline(r,{breaks:!0}):xn.parse(r,{breaks:!0})}})}const Eq="_typography-landing--claim_ocja1_120",Fq="_typography-landing--claim-uppercase_ocja1_158",Mq="_typography-landing--h1_ocja1_196",Tq="_typography-landing--h1-uppercase_ocja1_234",Lq="_typography-landing--h2_ocja1_272",Pq="_typography-landing--h3_ocja1_310",Rq="_typography-landing--h4_ocja1_348",Aq="_typography-landing--h5_ocja1_373",Bq="_typography-landing--h6_ocja1_398",zq="_typography-landing--overline_ocja1_423",$q="_typography-landing--body-large_ocja1_460",Oq="_typography-landing--body-large-semibold_ocja1_484",Iq="_typography-landing--body_ocja1_460",Dq="_typography-landing--body-semibold_ocja1_519",jq="_typography-landing--body-italic_ocja1_530",Hq="_typography-landing--quote-large_ocja1_542",Nq="_typography-landing--detail-small_ocja1_567",Vq="_typography-landing--detail-small-bold_ocja1_578",Gq="_typography-landing_ocja1_120",Wq="_typography-product_ocja1_607",qq="_typography-product--h1_ocja1_619",Uq="_typography-product--h2_ocja1_631",Zq="_typography-product--h3_ocja1_643",Kq="_typography-product--h4_ocja1_655",Yq="_typography-product--h5_ocja1_667",Jq="_typography-product--h6_ocja1_679",Qq="_typography-product--h7_ocja1_691",Xq="_typography-product--h8_ocja1_703",eU="_typography-product--body-large_ocja1_715",nU="_typography-product--body-regular_ocja1_739",tU="_typography-product--body-semibold_ocja1_763",iU="_typography-product--body-italic_ocja1_787",rU="_typography-product--body-text-link_ocja1_812",aU="_typography-product--detail-medium_ocja1_824",sU="_typography-product--detail-bold_ocja1_848",oU="_typography-product--detail-upper-case_ocja1_872",lU="_typography-product--detail-regular_ocja1_896",fU="_typography-product--detail-text-link_ocja1_920",Rp={"typography-landing--claim":"_typography-landing--claim_ocja1_120",typographyLandingClaim:Eq,"typography-landing--claim-uppercase":"_typography-landing--claim-uppercase_ocja1_158",typographyLandingClaimUppercase:Fq,"typography-landing--h1":"_typography-landing--h1_ocja1_196",typographyLandingH1:Mq,"typography-landing--h1-uppercase":"_typography-landing--h1-uppercase_ocja1_234",typographyLandingH1Uppercase:Tq,"typography-landing--h2":"_typography-landing--h2_ocja1_272",typographyLandingH2:Lq,"typography-landing--h3":"_typography-landing--h3_ocja1_310",typographyLandingH3:Pq,"typography-landing--h4":"_typography-landing--h4_ocja1_348",typographyLandingH4:Rq,"typography-landing--h5":"_typography-landing--h5_ocja1_373",typographyLandingH5:Aq,"typography-landing--h6":"_typography-landing--h6_ocja1_398",typographyLandingH6:Bq,"typography-landing--overline":"_typography-landing--overline_ocja1_423",typographyLandingOverline:zq,"typography-landing--body-large":"_typography-landing--body-large_ocja1_460",typographyLandingBodyLarge:$q,"typography-landing--body-large-semibold":"_typography-landing--body-large-semibold_ocja1_484",typographyLandingBodyLargeSemibold:Oq,"typography-landing--body":"_typography-landing--body_ocja1_460",typographyLandingBody:Iq,"typography-landing--body-semibold":"_typography-landing--body-semibold_ocja1_519",typographyLandingBodySemibold:Dq,"typography-landing--body-italic":"_typography-landing--body-italic_ocja1_530",typographyLandingBodyItalic:jq,"typography-landing--quote-large":"_typography-landing--quote-large_ocja1_542",typographyLandingQuoteLarge:Hq,"typography-landing--detail-small":"_typography-landing--detail-small_ocja1_567",typographyLandingDetailSmall:Nq,"typography-landing--detail-small-bold":"_typography-landing--detail-small-bold_ocja1_578",typographyLandingDetailSmallBold:Vq,"typography-landing":"_typography-landing_ocja1_120",typographyLanding:Gq,"typography-product":"_typography-product_ocja1_607",typographyProduct:Wq,"typography-product--h1":"_typography-product--h1_ocja1_619",typographyProductH1:qq,"typography-product--h2":"_typography-product--h2_ocja1_631",typographyProductH2:Uq,"typography-product--h3":"_typography-product--h3_ocja1_643",typographyProductH3:Zq,"typography-product--h4":"_typography-product--h4_ocja1_655",typographyProductH4:Kq,"typography-product--h5":"_typography-product--h5_ocja1_667",typographyProductH5:Yq,"typography-product--h6":"_typography-product--h6_ocja1_679",typographyProductH6:Jq,"typography-product--h7":"_typography-product--h7_ocja1_691",typographyProductH7:Qq,"typography-product--h8":"_typography-product--h8_ocja1_703",typographyProductH8:Xq,"typography-product--body-large":"_typography-product--body-large_ocja1_715",typographyProductBodyLarge:eU,"typography-product--body-regular":"_typography-product--body-regular_ocja1_739",typographyProductBodyRegular:nU,"typography-product--body-semibold":"_typography-product--body-semibold_ocja1_763",typographyProductBodySemibold:tU,"typography-product--body-italic":"_typography-product--body-italic_ocja1_787",typographyProductBodyItalic:iU,"typography-product--body-text-link":"_typography-product--body-text-link_ocja1_812",typographyProductBodyTextLink:rU,"typography-product--detail-medium":"_typography-product--detail-medium_ocja1_824",typographyProductDetailMedium:aU,"typography-product--detail-bold":"_typography-product--detail-bold_ocja1_848",typographyProductDetailBold:sU,"typography-product--detail-upper-case":"_typography-product--detail-upper-case_ocja1_872",typographyProductDetailUpperCase:oU,"typography-product--detail-regular":"_typography-product--detail-regular_ocja1_896",typographyProductDetailRegular:lU,"typography-product--detail-text-link":"_typography-product--detail-text-link_ocja1_920",typographyProductDetailTextLink:fU};function dU(e){switch(e){case"h1":case"h1-uppercase":return"h1";case"h2":case"claim":case"claim-uppercase":return"h2";case"h3":case"h4":case"h5":return e;case"h6":case"overline":return"h6";default:return"span"}}const uf=e=>{const{as:n,children:t,className:i,fontSet:r="product",markdown:a=r==="landing",type:o}=e,f=n||dU(o),d=je(Rp[`typography-${r}`],Rp[`typography-${r}--${o}`],i);return k.jsx(k.Fragment,{children:typeof t=="string"&&a?k.jsx(Cq,{className:d,text:t,inline:!0,elementTag:f}):k.jsx(f,{className:d,children:t})})},uU="_root_1p8e7_120",cU="_root__content_1p8e7_130",hU="_root__bookmark_1p8e7_136",gU="_root__header_1p8e7_142",mU="_root__header__reserved_1p8e7_149",pU="_root__header__reserved__box_1p8e7_162",vU="_root__header__image_1p8e7_171",kU="_root__info_1p8e7_176",wU="_root__info__top_1p8e7_182",_U="_root__info__price_1p8e7_185",bU="_root__info__title_1p8e7_191",yU="_root__info__timeStamp_1p8e7_200",$t={root:uU,root__content:cU,root__bookmark:hU,root__header:gU,root__header__reserved:mU,"root__header__reserved--visible":"_root__header__reserved--visible_1p8e7_159",root__header__reserved__box:pU,root__header__image:vU,root__info:kU,root__info__top:wU,root__info__price:_U,"root__info__price--reserved":"_root__info__price--reserved_1p8e7_188",root__info__title:bU,root__info__timeStamp:yU};function Oh({bookmarked:e,id:n,image:t,onClick:i,price:r,reserved:a,reservedText:o,timeStamp:f,title:d}){const u=_i(),c=()=>{u(`/feed/${n}`),i&&i()};return k.jsxs("div",{className:$t.root,children:[k.jsx(Ok,{className:$t.root__bookmark,isBookmarked:e,id:n}),k.jsxs(z.Button,{className:$t.root__content,onClick:c,children:[k.jsxs("div",{className:$t.root__header,children:[k.jsx("div",{className:je($t.root__header__reserved,{[$t["root__header__reserved--visible"]]:a}),children:k.jsx("div",{className:$t.root__header__reserved__box,children:k.jsx(uf,{type:"detail-upper-case",children:o})})}),t?k.jsx(AW,{alt:"product image",src:t,className:$t.root__header__image}):k.jsx(RW,{size:"large",style:"rounded",icon:k.jsx(Ik,{name:"camera_crossed"})})]}),k.jsxs("div",{className:$t.root__info,children:[k.jsxs("div",{className:$t.root__info__top,children:[k.jsx(uf,{type:"body-semibold",as:"p",className:je($t.root__info__price,{[$t["root__info__price--reserved"]]:a}),children:r}),k.jsx(uf,{type:"body-semibold",as:"p",className:$t.root__info__title,children:d})]}),k.jsx(uf,{type:"detail-medium",as:"p",className:$t.root__info__timeStamp,children:rd(f)})]})]})]})}const xU=({children:e,navigate:n})=>k.jsx(d3.Provider,{value:{navigate:n},children:e}),SU="_root_1elhz_120",CU={root:SU},Ih={event:"event",feed:"feed",group:"group",marketplace:"marketplace",post:"post"},EU="_root_19omr_120",FU="_root__list_19omr_125",MU="_root__itemCta_19omr_135",TU="_root__item_19omr_135",lo={root:EU,root__list:FU,root__itemCta:MU,root__item:TU},LU={event:"",feed:"",group:"",marketplace:"/feed/marketplace",post:""},PU=({feedType:e,item:n})=>{switch(e){case Ih[e]:return k.jsx(Oh,{...n});default:return null}},RU=(e,n,t=6)=>{let i=[];if(!e.length)return[[]];const r=n?n.filter(m=>Number(m==null?void 0:m.position)>=0):[];let a=Array(t).fill(null),o=0,f=0,d=0;const u=()=>{let m=0;r.forEach(w=>{w.block===d&&(a.splice(w==null?void 0:w.position,1,w),m+=1)}),o=m};r.length&&u();const c=(m,w)=>{if(a[m]!==null&&o<t&&m<t){c(m+1,w);return}a.splice(m,1,w),o+=1,f+=1},g=(m=0,w=[])=>{if(m>e.length){if(o>0){const _=a.filter(C=>C!=null);_.length&&w.push(_)}return w}return c(f,e[m]),o===t&&a.filter(Boolean).length===t&&(w.push(a.filter(_=>_!=null)),a=Array(t).fill(null),o=0,f=0,d+=1,r.length&&u()),g(m+1,w)};return i=g(),n&&n.length>=0&&(i=n.sort((m,w)=>m.block-w.block).filter(m=>(m==null?void 0:m.position)==null).reduce((m,w,_)=>{if(i.length>=w.block){const C=w.block+_+1;return[...m.slice(0,C),w,...m.slice(C)]}return m},[...i])),i},AU=e=>e?new Intl.NumberFormat("de-DE",{currency:"EUR",maximumFractionDigits:0,minimumFractionDigits:0,style:"currency"}).format(e/100).replace("€","").trim()+" €":"Zu verschenken",BU=(e,n)=>{const t=[];return e.forEach(i=>{var r,a;typeof i=="number"?t.push({bookmarked:n[i].is_bookmarked,id:n[i].id,image:(a=(r=n[i])==null?void 0:r.images[0])==null?void 0:a.url,price:AU(n[i].price),reserved:S$(n[i].outcome),reservedText:"Reserviert",timeStamp:n[i].created_at,title:n[i].subject,type:"feed"}):t.push({type:"ad",...i})}),t},zU=(e,n="de-DE")=>e[n],$U={"de-DE":{marketplace:{description:"Gib deinen Sachen ein neues Zuhause.",title:"Etwas zu verkaufen?",cta:"Angebot erstellen"},feed:{description:"",title:"",cta:""},event:{description:"",title:"",cta:""},group:{description:"",title:"",cta:""},post:{description:"",title:"",cta:""}}},OU=zU($U),IU=(e,n)=>OU[Ih[e]][n];function Ap({feedType:e,isCard:n=!1,onClick:t}){const i=r=>IU(e,r);return k.jsx(z.EmptyState,{primaryText:i("title"),stickerProps:{color:"teal",icon:"marketplace"},secondaryText:i("description"),size:n?"small":"medium",buttons:[{buttonType:"primary",children:k.jsx(z.Typography,{type:n?"body-semibold":"h5",children:i("cta")}),onClick:t,size:n?"small":"large"}]})}const DU=(e,n)=>e?n%3!==0:n%2!==0;function e4({feedType:e,items:n}){const t=_i(),i=X1(800),r=DU(i,n.length),a=()=>{t(LU[e])};return k.jsx(k.Fragment,{children:n.length?k.jsx(z.Card,{className:je(lo.root),borderRadius:!0,responsive:!0,children:k.jsx(z.CardBody,{className:lo.root__body,withoutPadding:!0,children:k.jsxs("ul",{className:lo.root__list,children:[n.map((o,f)=>k.jsx("li",{className:lo.root__item,children:o.type==="feed"?k.jsx(PU,{feedType:e,item:o}):o.content},`grid_item_${o.type}_${o.id}`)),r&&k.jsx("li",{className:lo.root__itemCta,children:k.jsx(Ap,{isCard:!0,onClick:a,feedType:e})},"empty_state_cta_card")]})})}):k.jsx(Ap,{onClick:a,feedType:e})})}const jU=({feedItem:e,feedItems:n,feedType:t})=>{switch(t){case Ih[t]:return k.jsx(e4,{feedType:t,items:BU(e,n)});default:return null}},HU=({ads:e,feedItems:n,feedType:t,items:i})=>{const r=RU(i,e);return r.length?k.jsx("section",{className:CU.root,children:r.map((a,o)=>Array.isArray(a)?k.jsx(jU,{feedItem:a,feedItems:n,feedType:t},`grid_block_${o}`):k.jsx(y.Fragment,{children:a.content},`ad_block_${o}_${a.id}`))}):null};function NU(e){e.__scriptingEnabledHTMLContentHasBeenExecuted=!0}const VU=`(${NU.toString()})(document.currentScript);`,n4=y.forwardRef((e,n)=>{const t=y.useRef(null);return y.useImperativeHandle(n,()=>({get hasBeenExecuted(){const i=t.current;return i?!!i.__scriptingEnabledHTMLContentHasBeenExecuted:!1}})),k.jsx("script",{ref:t,dangerouslySetInnerHTML:{__html:VU}})});n4.displayName="InnerHTMLScript";const GU=(e,n)=>{const t=document.createRange().createContextualFragment(n);e.innerHTML="",e.appendChild(t)},WU=({html:e,...n})=>{const t=y.useRef(null),i=y.useRef(null);return y.useEffect(()=>{const r=i.current,a=t.current;!r||!a||a.hasBeenExecuted||GU(r,e)},[e]),k.jsxs(k.Fragment,{children:[k.jsx(n4,{ref:t}),k.jsx("div",{...n,ref:i,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:e}})]})},qU="_imageGallery_10c2p_120",UU="_imageGalleryImage_10c2p_126",ZU="_imageGalleryPill_10c2p_134",Hc={imageGallery:qU,imageGalleryImage:UU,imageGalleryPill:ZU},KU=({gallerySize:e,imageAlt:n,imageURL:t,onClick:i})=>{let r;if(e>1){const a=`+${e-1}`;r=k.jsx("div",{className:Hc.imageGalleryPill,children:k.jsx(z.LabelPill,{label:a,shape:"tile",size:"medium"})})}return k.jsxs("div",{className:Hc.imageGallery,onClick:i,children:[k.jsx(z.Image,{alt:n,src:t,className:Hc.imageGalleryImage}),r]})},YU="_container_y0t0p_120",JU="_circle_y0t0p_128",QU="_logo_y0t0p_136",Nc={container:YU,circle:JU,logo:QU},XU=(e,n)=>p.createElement("svg",{width:72,height:80,viewBox:"0 0 72 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.7997 17.7397L39.7431 1.45626C37.3242 0.0510383 34.3374 0.0510383 31.9184 1.45626L3.87632 17.7397C1.48151 19.136 0.00627151 21.6971 0 24.4692V55.5447C0.0040404 58.3136 1.48055 60.8715 3.87632 62.2598L15.5846 69.0614V50.9839L21.4279 54.3414C21.6617 54.4879 21.8054 54.7428 21.8097 55.0187V72.6783L31.8968 78.5576C34.3242 79.9506 37.3085 79.9506 39.7359 78.5576L49.823 72.6783V55.0187C49.8291 54.7396 49.9789 54.4834 50.2193 54.3414L56.0554 50.9839V69.0614L60.7315 66.3451L67.7708 62.2598C70.1649 60.8707 71.6389 58.3126 71.64 55.5447V24.4692C71.6426 21.7041 70.1817 19.144 67.7997 17.7397ZM33.4975 74.07L26.487 69.9991V55.0198C26.4907 53.076 25.4583 51.2775 23.7779 50.3005L15.0237 45.2569C14.1803 44.77 13.1412 44.7705 12.2982 45.2581C11.4552 45.7457 10.9368 46.6464 10.9384 47.6202V60.928L6.21913 58.2333C5.26735 57.6719 4.68151 56.6508 4.67725 55.5458V25.3926L33.4975 42.1227V74.07ZM6.98877 21.3007L33.4962 36.7267V5.93945L6.98877 21.3007ZM38.187 5.93945L64.6872 21.3007L38.187 36.7267V5.93945ZM65.451 58.2333C66.4104 57.6776 67.0029 56.6545 67.0073 55.5458V25.3926L38.187 42.1227V74.07L45.1759 69.9991V55.027C45.1841 53.0789 46.2267 51.2818 47.9138 50.3077L56.6824 45.2641C57.5253 44.7809 58.5619 44.7833 59.4025 45.2705C60.2432 45.7577 60.7606 46.6558 60.7605 47.6274V60.928L65.451 58.2333Z",fill:"#201649"})),eZ=y.forwardRef(XU),t4=()=>k.jsxs("div",{className:Nc.container,children:[k.jsx("div",{className:Nc.circle}),k.jsx(eZ,{className:Nc.logo})]}),nZ="_wrapper_12x39_120",tZ="_header_12x39_127",iZ="_navbar_12x39_135",rZ="_banner_12x39_140",aZ="_main_12x39_149",sZ="_contentContainer_12x39_153",oZ="_contentContainer__withBanner_12x39_158",lZ="_contentContainer__withBanner_12x39_158",fZ="_content_12x39_153",dZ="_mainContent_12x39_168",uZ="_mainContent__isFullWidth_12x39_172",cZ="_mainContent__isFullWidth_12x39_172",hZ="_sidebarRight_12x39_176",gZ="_adSlot_12x39_190",mZ="_adSlot__withBanner_12x39_196",pZ="_adSlot__withBanner_12x39_196",vZ="_adSlot--right_12x39_216",kZ="_adSlot--left_12x39_221",kt={wrapper:nZ,header:tZ,navbar:iZ,banner:rZ,main:aZ,contentContainer:sZ,contentContainer__withBanner:oZ,contentContainerWithBanner:lZ,content:fZ,mainContent:dZ,mainContent__isFullWidth:uZ,mainContentIsFullWidth:cZ,sidebarRight:hZ,adSlot:gZ,adSlot__withBanner:mZ,adSlotWithBanner:pZ,"adSlot--right":"_adSlot--right_12x39_216",adSlotRight:vZ,"adSlot--left":"_adSlot--left_12x39_221",adSlotLeft:kZ},wZ=({banner:e,children:n,isMainFullWidth:t,leftAdSlot:i,navbar:r,right:a,rightAdSlot:o})=>k.jsxs("div",{className:kt.wrapper,children:[k.jsx("div",{className:je(kt.adSlot,kt["adSlot--left"],{[kt.adSlot__withBanner]:e}),children:i}),k.jsxs("div",{className:je(kt.contentContainer,{[kt.contentContainer__withBanner]:e}),children:[k.jsx("header",{className:kt.header,children:k.jsx("nav",{className:kt.navBar,children:r})}),k.jsxs("div",{className:je(kt.content),children:[k.jsx("main",{className:je(kt.mainContent,{[kt.mainContent__isFullWidth]:t}),children:n}),a&&k.jsx("aside",{className:kt.sidebarRight,children:a})]})]}),k.jsx("div",{className:je(kt.adSlot,kt["adSlot--right"],{[kt.adSlot__withBanner]:e}),children:o}),e&&k.jsx("div",{className:kt.banner,children:e})]});var i4={exports:{}};(()=>{var e={d:(o,f)=>{for(var d in f)e.o(f,d)&&!e.o(o,d)&&Object.defineProperty(o,d,{enumerable:!0,get:f[d]})},o:(o,f)=>Object.prototype.hasOwnProperty.call(o,f),r:o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{default:()=>a});const t=y;function i(o,f){return function(d){if(Array.isArray(d))return d}(o)||function(d,u){var c=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(c!=null){var g,m,w=[],_=!0,C=!1;try{for(c=c.call(d);!(_=(g=c.next()).done)&&(w.push(g.value),!u||w.length!==u);_=!0);}catch(E){C=!0,m=E}finally{try{_||c.return==null||c.return()}finally{if(C)throw m}}return w}}(o,f)||function(d,u){if(d){if(typeof d=="string")return r(d,u);var c=Object.prototype.toString.call(d).slice(8,-1);return c==="Object"&&d.constructor&&(c=d.constructor.name),c==="Map"||c==="Set"?Array.from(d):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?r(d,u):void 0}}(o,f)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
856
856
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function r(o,f){(f==null||f>o.length)&&(f=o.length);for(var d=0,u=new Array(f);d<f;d++)u[d]=o[d];return u}const a=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:300,f=arguments.length>1?arguments[1]:void 0,d=(0,t.useState)(f),u=i(d,2),c=u[0],g=u[1];return(0,t.useEffect)(function(){var m=function(){var w=window.screen.height-o>window.visualViewport.height;c!=w&&g(w)};return typeof visualViewport<"u"&&window.visualViewport.addEventListener("resize",m),function(){typeof visualViewport<"u"&&window.visualViewport.removeEventListener("resize",m)}},[]),c};i4.exports=n})();var _Z=i4.exports;const bZ=Yr(_Z),yZ="_mobileLayout_cwq0n_120",xZ="_mobileLayoutHeader_cwq0n_125",SZ="_header_cwq0n_132",CZ="_mobileLayoutMain_cwq0n_135",EZ="_mobileLayoutMainWithFooter_cwq0n_142",FZ="_mobileLayoutActionButton_cwq0n_145",MZ="_mobileLayoutFooter_cwq0n_153",TZ="_stickyHeader_cwq0n_163",LZ="_sticky_cwq0n_163",PZ="_adSlot_cwq0n_174",RZ="_hideAdSlot_cwq0n_184",Mi={mobileLayout:yZ,mobileLayoutHeader:xZ,header:SZ,mobileLayoutMain:CZ,mobileLayoutMainWithFooter:EZ,mobileLayoutActionButton:FZ,mobileLayoutFooter:MZ,stickyHeader:TZ,sticky:LZ,adSlot:PZ,hideAdSlot:RZ},AZ=" 66px",BZ=" 56px",zZ=50,$Z=70,r4=({action:e,adSlot:n,adSlotEnabled:t=!1,banner:i,children:r,footer:a,header:o,hideHeaderOnScroll:f=!0,showFooter:d=!0})=>{const u=bZ(),[c,g]=y.useState(!1),m=y.useRef(0),w=y.useRef(0);return y.useEffect(()=>{if(!f)return;const _=()=>{const C=window.scrollY,E=C>m.current,x=C<m.current;E&&C>zZ?(g(!0),w.current=0):x&&w.current===0&&(w.current=C),x&&w.current-C>=$Z&&(g(!1),w.current=0),m.current=C};return window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)},[f]),k.jsxs("section",{className:Mi.mobileLayout,style:{"--anchor-ad-wrapper-height":n&&t?AZ:"0px","--layout-header-height":BZ},children:[k.jsxs("header",{className:je(Mi.stickyHeader,Mi.mobileLayoutHeader,{[Mi.sticky]:c}),children:[k.jsx("div",{className:je(Mi.header),children:o}),n&&k.jsx("div",{className:je(Mi.adSlot,{[Mi.hideAdSlot]:!t}),children:n})]}),k.jsxs("main",{className:je(Mi.mobileLayoutMain,{[Mi.mobileLayoutMainWithFooter]:d}),tabIndex:0,children:[i,r]}),d&&k.jsxs(k.Fragment,{children:[e&&!u&&k.jsx("div",{className:Mi.mobileLayoutActionButton,children:e}),k.jsx("footer",{className:Mi.mobileLayoutFooter,children:a})]})]})},OZ="_loadingSpinnerContainer_55hqs_120",IZ={loadingSpinnerContainer:OZ},DZ=({children:e,desktop:n,keepLoading:t,mobile:i})=>{const[r,a]=y.useState(0),o=()=>{a(window.innerWidth)};return y.useEffect(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),!r||t?k.jsx("div",{className:IZ.loadingSpinnerContainer,children:k.jsx(t4,{})}):r<800?k.jsx(r4,{...i,children:e}):k.jsx(wZ,{...n,children:e})};var jZ=HZ;function HZ(e){if(e)throw e}/*!
857
857
  * Determine if an object is a Buffer
858
858
  *
package/index.mjs CHANGED
@@ -63639,7 +63639,7 @@ const IZ = (e, n) => {
63639
63639
  }, WZ = (e, n) => /* @__PURE__ */ p.createElement("svg", { width: 72, height: 80, viewBox: "0 0 72 80", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: n, ...e }, /* @__PURE__ */ p.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M67.7997 17.7397L39.7431 1.45626C37.3242 0.0510383 34.3374 0.0510383 31.9184 1.45626L3.87632 17.7397C1.48151 19.136 0.00627151 21.6971 0 24.4692V55.5447C0.0040404 58.3136 1.48055 60.8715 3.87632 62.2598L15.5846 69.0614V50.9839L21.4279 54.3414C21.6617 54.4879 21.8054 54.7428 21.8097 55.0187V72.6783L31.8968 78.5576C34.3242 79.9506 37.3085 79.9506 39.7359 78.5576L49.823 72.6783V55.0187C49.8291 54.7396 49.9789 54.4834 50.2193 54.3414L56.0554 50.9839V69.0614L60.7315 66.3451L67.7708 62.2598C70.1649 60.8707 71.6389 58.3126 71.64 55.5447V24.4692C71.6426 21.7041 70.1817 19.144 67.7997 17.7397ZM33.4975 74.07L26.487 69.9991V55.0198C26.4907 53.076 25.4583 51.2775 23.7779 50.3005L15.0237 45.2569C14.1803 44.77 13.1412 44.7705 12.2982 45.2581C11.4552 45.7457 10.9368 46.6464 10.9384 47.6202V60.928L6.21913 58.2333C5.26735 57.6719 4.68151 56.6508 4.67725 55.5458V25.3926L33.4975 42.1227V74.07ZM6.98877 21.3007L33.4962 36.7267V5.93945L6.98877 21.3007ZM38.187 5.93945L64.6872 21.3007L38.187 36.7267V5.93945ZM65.451 58.2333C66.4104 57.6776 67.0029 56.6545 67.0073 55.5458V25.3926L38.187 42.1227V74.07L45.1759 69.9991V55.027C45.1841 53.0789 46.2267 51.2818 47.9138 50.3077L56.6824 45.2641C57.5253 44.7809 58.5619 44.7833 59.4025 45.2705C60.2432 45.7577 60.7606 46.6558 60.7605 47.6274V60.928L65.451 58.2333Z", fill: "#201649" })), qZ = $(WZ), UZ = () => /* @__PURE__ */ k.jsxs("div", { className: s1.container, children: [
63640
63640
  /* @__PURE__ */ k.jsx("div", { className: s1.circle }),
63641
63641
  /* @__PURE__ */ k.jsx(qZ, { className: s1.logo })
63642
- ] }), ZZ = "_wrapper_1e52e_120", KZ = "_header_1e52e_127", YZ = "_navbar_1e52e_136", JZ = "_banner_1e52e_141", QZ = "_main_1e52e_150", XZ = "_contentContainer_1e52e_154", eK = "_contentContainer__withBanner_1e52e_159", nK = "_contentContainer__withBanner_1e52e_159", iK = "_content_1e52e_154", tK = "_mainContent_1e52e_169", rK = "_mainContent__withoutSidebar_1e52e_172", aK = "_mainContent__withoutSidebar_1e52e_172", sK = "_sidebarRight_1e52e_176", oK = "_adSlot_1e52e_183", lK = "_adSlot__withBanner_1e52e_189", fK = "_adSlot__withBanner_1e52e_189", dK = "_adSlot--right_1e52e_209", uK = "_adSlot--left_1e52e_214", xi = {
63642
+ ] }), ZZ = "_wrapper_12x39_120", KZ = "_header_12x39_127", YZ = "_navbar_12x39_135", JZ = "_banner_12x39_140", QZ = "_main_12x39_149", XZ = "_contentContainer_12x39_153", eK = "_contentContainer__withBanner_12x39_158", nK = "_contentContainer__withBanner_12x39_158", iK = "_content_12x39_153", tK = "_mainContent_12x39_168", rK = "_mainContent__isFullWidth_12x39_172", aK = "_mainContent__isFullWidth_12x39_172", sK = "_sidebarRight_12x39_176", oK = "_adSlot_12x39_190", lK = "_adSlot__withBanner_12x39_196", fK = "_adSlot__withBanner_12x39_196", dK = "_adSlot--right_12x39_216", uK = "_adSlot--left_12x39_221", xi = {
63643
63643
  wrapper: ZZ,
63644
63644
  header: KZ,
63645
63645
  navbar: YZ,
@@ -63650,23 +63650,24 @@ const IZ = (e, n) => {
63650
63650
  contentContainerWithBanner: nK,
63651
63651
  content: iK,
63652
63652
  mainContent: tK,
63653
- mainContent__withoutSidebar: rK,
63654
- mainContentWithoutSidebar: aK,
63653
+ mainContent__isFullWidth: rK,
63654
+ mainContentIsFullWidth: aK,
63655
63655
  sidebarRight: sK,
63656
63656
  adSlot: oK,
63657
63657
  adSlot__withBanner: lK,
63658
63658
  adSlotWithBanner: fK,
63659
- "adSlot--right": "_adSlot--right_1e52e_209",
63659
+ "adSlot--right": "_adSlot--right_12x39_216",
63660
63660
  adSlotRight: dK,
63661
- "adSlot--left": "_adSlot--left_1e52e_214",
63661
+ "adSlot--left": "_adSlot--left_12x39_221",
63662
63662
  adSlotLeft: uK
63663
63663
  }, cK = ({
63664
63664
  banner: e,
63665
63665
  children: n,
63666
- leftAdSlot: i,
63667
- navbar: t,
63668
- right: r,
63669
- rightAdSlot: a
63666
+ isMainFullWidth: i,
63667
+ leftAdSlot: t,
63668
+ navbar: r,
63669
+ right: a,
63670
+ rightAdSlot: o
63670
63671
  }) => /* @__PURE__ */ k.jsxs("div", { className: xi.wrapper, children: [
63671
63672
  /* @__PURE__ */ k.jsx(
63672
63673
  "div",
@@ -63674,7 +63675,7 @@ const IZ = (e, n) => {
63674
63675
  className: He(xi.adSlot, xi["adSlot--left"], {
63675
63676
  [xi.adSlot__withBanner]: e
63676
63677
  }),
63677
- children: i
63678
+ children: t
63678
63679
  }
63679
63680
  ),
63680
63681
  /* @__PURE__ */ k.jsxs(
@@ -63684,18 +63685,18 @@ const IZ = (e, n) => {
63684
63685
  [xi.contentContainer__withBanner]: e
63685
63686
  }),
63686
63687
  children: [
63687
- /* @__PURE__ */ k.jsx("header", { className: xi.header, children: /* @__PURE__ */ k.jsx("nav", { className: xi.navBar, children: t }) }),
63688
+ /* @__PURE__ */ k.jsx("header", { className: xi.header, children: /* @__PURE__ */ k.jsx("nav", { className: xi.navBar, children: r }) }),
63688
63689
  /* @__PURE__ */ k.jsxs("div", { className: He(xi.content), children: [
63689
63690
  /* @__PURE__ */ k.jsx(
63690
63691
  "main",
63691
63692
  {
63692
63693
  className: He(xi.mainContent, {
63693
- [xi.mainContent__withoutSidebar]: !r
63694
+ [xi.mainContent__isFullWidth]: i
63694
63695
  }),
63695
63696
  children: n
63696
63697
  }
63697
63698
  ),
63698
- r && /* @__PURE__ */ k.jsx("aside", { className: xi.sidebarRight, children: r })
63699
+ a && /* @__PURE__ */ k.jsx("aside", { className: xi.sidebarRight, children: a })
63699
63700
  ] })
63700
63701
  ]
63701
63702
  }
@@ -63706,7 +63707,7 @@ const IZ = (e, n) => {
63706
63707
  className: He(xi.adSlot, xi["adSlot--right"], {
63707
63708
  [xi.adSlot__withBanner]: e
63708
63709
  }),
63709
- children: a
63710
+ children: o
63710
63711
  }
63711
63712
  ),
63712
63713
  e && /* @__PURE__ */ k.jsx("div", { className: xi.banner, children: e })
@@ -1,3 +1,3 @@
1
1
  import { DesktopLayoutTwoColumnProps } from './DesktopLayoutTwoColumn.types';
2
- declare const DesktopLayoutTwoColumn: ({ banner, children, leftAdSlot, navbar, right, rightAdSlot, }: DesktopLayoutTwoColumnProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const DesktopLayoutTwoColumn: ({ banner, children, isMainFullWidth, leftAdSlot, navbar, right, rightAdSlot, }: DesktopLayoutTwoColumnProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default DesktopLayoutTwoColumn;
@@ -2,6 +2,7 @@ import { ReactElement, ReactNode } from 'react';
2
2
  export interface DesktopLayoutTwoColumnProps {
3
3
  banner?: ReactElement;
4
4
  children: ReactNode;
5
+ isMainFullWidth?: boolean;
5
6
  leftAdSlot?: ReactElement;
6
7
  navbar: ReactElement;
7
8
  right?: ReactElement;
@@ -1,5 +1,5 @@
1
1
  declare const Template: ({ bgColor, height, padding, text, width, }: {
2
- bgColor: string;
2
+ bgColor?: string;
3
3
  height?: string;
4
4
  padding?: number;
5
5
  text: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "3.0.0-development.110",
3
+ "version": "3.0.0-development.112",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",