@goodhood-web/nebenan-base 3.0.0-development.83 → 3.0.0-development.85

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,8 +852,8 @@ ${n}</tr>
852
852
  `}tablecell(n){const i=this.parser.parseInline(n.tokens),t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+i+`</${t}>
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:i,tokens:t}){const r=this.parser.parseInline(t),a=mp(n);if(a===null)return r;n=a;let o='<a href="'+n+'"';return i&&(o+=' title="'+i+'"'),o+=">"+r+"</a>",o}image({href:n,title:i,text:t}){const r=mp(n);if(r===null)return t;n=r;let a=`<img src="${n}" alt="${t}"`;return i&&(a+=` title="${i}"`),a+=">",a}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):n.text}}class Mh{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 vt{constructor(n){wn(this,"options");wn(this,"renderer");wn(this,"textRenderer");this.options=n||Ra,this.options.renderer=this.options.renderer||new nd,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Mh}static parse(n,i){return new vt(i).parse(n)}static parseInline(n,i){return new vt(i).parseInline(n)}parse(n,i=!0){let t="";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)){t+=d||"";continue}}const o=a;switch(o.type){case"space":{t+=this.renderer.space(o);continue}case"hr":{t+=this.renderer.hr(o);continue}case"heading":{t+=this.renderer.heading(o);continue}case"code":{t+=this.renderer.code(o);continue}case"table":{t+=this.renderer.table(o);continue}case"blockquote":{t+=this.renderer.blockquote(o);continue}case"list":{t+=this.renderer.list(o);continue}case"html":{t+=this.renderer.html(o);continue}case"paragraph":{t+=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);i?t+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d}]}):t+=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 t}parseInline(n,i){i=i||this.renderer;let t="";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)){t+=f||"";continue}}const o=a;switch(o.type){case"escape":{t+=i.text(o);break}case"html":{t+=i.html(o);break}case"link":{t+=i.link(o);break}case"image":{t+=i.image(o);break}case"strong":{t+=i.strong(o);break}case"em":{t+=i.em(o);break}case"codespan":{t+=i.codespan(o);break}case"br":{t+=i.br(o);break}case"del":{t+=i.del(o);break}case"text":{t+=i.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 t}}class Fo{constructor(n){wn(this,"options");wn(this,"block");this.options=n||Ra}preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}provideLexer(){return this.block?pt.lex:pt.lexInline}provideParser(){return this.block?vt.parse:vt.parseInline}}wn(Fo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class zW{constructor(...n){wn(this,"defaults",yh());wn(this,"options",this.setOptions);wn(this,"parse",this.parseMarkdown(!0));wn(this,"parseInline",this.parseMarkdown(!1));wn(this,"Parser",vt);wn(this,"Renderer",nd);wn(this,"TextRenderer",Mh);wn(this,"Lexer",pt);wn(this,"Tokenizer",Xf);wn(this,"Hooks",Fo);this.use(...n)}walkTokens(n,i){var r,a;let t=[];for(const o of n)switch(t=t.concat(i.call(this,o)),o.type){case"table":{const f=o;for(const d of f.header)t=t.concat(this.walkTokens(d.tokens,i));for(const d of f.rows)for(const c of d)t=t.concat(this.walkTokens(c.tokens,i));break}case"list":{const f=o;t=t.concat(this.walkTokens(f.items,i));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 c=f[d].flat(1/0);t=t.concat(this.walkTokens(c,i))}):f.tokens&&(t=t.concat(this.walkTokens(f.tokens,i)))}}return t}use(...n){const i=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(t=>{const r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){const o=i.renderers[a.name];o?i.renderers[a.name]=function(...f){let d=a.renderer.apply(this,f);return d===!1&&(d=o.apply(this,f)),d}:i.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=i[a.level];o?o.unshift(a.tokenizer):i[a.level]=[a.tokenizer],a.start&&(a.level==="block"?i.startBlock?i.startBlock.push(a.start):i.startBlock=[a.start]:a.level==="inline"&&(i.startInline?i.startInline.push(a.start):i.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(i.childTokens[a.name]=a.childTokens)}),r.extensions=i),t.renderer){const a=this.defaults.renderer||new nd(this.defaults);for(const o in t.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const f=o,d=t.renderer[f],c=a[f];a[f]=(...u)=>{let g=d.apply(a,u);return g===!1&&(g=c.apply(a,u)),g||""}}r.renderer=a}if(t.tokenizer){const a=this.defaults.tokenizer||new Xf(this.defaults);for(const o in t.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const f=o,d=t.tokenizer[f],c=a[f];a[f]=(...u)=>{let g=d.apply(a,u);return g===!1&&(g=c.apply(a,u)),g}}r.tokenizer=a}if(t.hooks){const a=this.defaults.hooks||new Fo;for(const o in t.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const f=o,d=t.hooks[f],c=a[f];Fo.passThroughHooks.has(o)?a[f]=u=>{if(this.defaults.async)return Promise.resolve(d.call(a,u)).then(m=>c.call(a,m));const g=d.call(a,u);return c.call(a,g)}:a[f]=(...u)=>{let g=d.apply(a,u);return g===!1&&(g=c.apply(a,u)),g}}r.hooks=a}if(t.walkTokens){const a=this.defaults.walkTokens,o=t.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,i){return pt.lex(n,i??this.defaults)}parser(n,i){return vt.parse(n,i??this.defaults)}parseMarkdown(n){return(t,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 t>"u"||t===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=n);const d=o.hooks?o.hooks.provideLexer():n?pt.lex:pt.lexInline,c=o.hooks?o.hooks.provideParser():n?vt.parse:vt.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(t):t).then(u=>d(u,o)).then(u=>o.hooks?o.hooks.processAllTokens(u):u).then(u=>o.walkTokens?Promise.all(this.walkTokens(u,o.walkTokens)).then(()=>u):u).then(u=>c(u,o)).then(u=>o.hooks?o.hooks.postprocess(u):u).catch(f);try{o.hooks&&(t=o.hooks.preprocess(t));let u=d(t,o);o.hooks&&(u=o.hooks.processAllTokens(u)),o.walkTokens&&this.walkTokens(u,o.walkTokens);let g=c(u,o);return o.hooks&&(g=o.hooks.postprocess(g)),g}catch(u){return f(u)}}}onError(n,i){return t=>{if(t.message+=`
855
- Please report this to https://github.com/markedjs/marked.`,n){const r="<p>An error occurred:</p><pre>"+Ji(t.message+"",!0)+"</pre>";return i?Promise.resolve(r):r}if(i)return Promise.reject(t);throw t}}}const Fa=new zW;function xn(e,n){return Fa.parse(e,n)}xn.options=xn.setOptions=function(e){return Fa.setOptions(e),xn.defaults=Fa.defaults,_k(xn.defaults),xn};xn.getDefaults=yh;xn.defaults=Ra;xn.use=function(...e){return Fa.use(...e),xn.defaults=Fa.defaults,_k(xn.defaults),xn};xn.walkTokens=function(e,n){return Fa.walkTokens(e,n)};xn.parseInline=Fa.parseInline;xn.Parser=vt;xn.parser=vt.parse;xn.Renderer=nd;xn.TextRenderer=Mh;xn.Lexer=pt;xn.lexer=pt.lex;xn.Tokenizer=Xf;xn.Hooks=Fo;xn.parse=xn;xn.options;xn.setOptions;xn.use;xn.walkTokens;xn.parseInline;vt.parse;pt.lex;const $W=e=>e.replace(/"/g,"QUOTE"),BW=e=>e.replace(new RegExp("QUOTE","g"),'"');function OW({className:e,elementTag:n="span",inline:i=!1,text:t}){const r=BW(vk($W(t))),a=n;return k.jsx(a,{className:e,dangerouslySetInnerHTML:{__html:i?xn.parseInline(r,{breaks:!0}):xn.parse(r,{breaks:!0})}})}const IW="_typography-landing--claim_1gfm2_120",DW="_typography-landing--claim-uppercase_1gfm2_158",jW="_typography-landing--h1_1gfm2_196",HW="_typography-landing--h1-uppercase_1gfm2_234",VW="_typography-landing--h2_1gfm2_272",NW="_typography-landing--h3_1gfm2_310",GW="_typography-landing--h4_1gfm2_348",WW="_typography-landing--h5_1gfm2_373",qW="_typography-landing--h6_1gfm2_398",UW="_typography-landing--overline_1gfm2_423",ZW="_typography-landing--body-large_1gfm2_460",KW="_typography-landing--body-large-semibold_1gfm2_484",YW="_typography-landing--body_1gfm2_460",JW="_typography-landing--body-semibold_1gfm2_519",QW="_typography-landing--body-italic_1gfm2_530",XW="_typography-landing--quote-large_1gfm2_542",eq="_typography-landing--detail-small_1gfm2_567",nq="_typography-landing--detail-small-bold_1gfm2_578",iq="_typography-landing_1gfm2_120",tq="_typography-product--h1_1gfm2_607",rq="_typography-product--h2_1gfm2_619",aq="_typography-product--h3_1gfm2_631",sq="_typography-product--h4_1gfm2_643",oq="_typography-product--h5_1gfm2_655",lq="_typography-product--h6_1gfm2_667",fq="_typography-product--h7_1gfm2_679",dq="_typography-product--h8_1gfm2_691",uq="_typography-product--body-large_1gfm2_703",cq="_typography-product--body-regular_1gfm2_715",hq="_typography-product--body-semibold_1gfm2_727",gq="_typography-product--body-italic_1gfm2_739",mq="_typography-product--body-text-link_1gfm2_752",pq="_typography-product--detail-medium_1gfm2_764",vq="_typography-product--detail-bold_1gfm2_776",kq="_typography-product--detail-upper-case_1gfm2_788",wq="_typography-product--detail-regular_1gfm2_800",_q="_typography-product_1gfm2_607",wp={"typography-landing--claim":"_typography-landing--claim_1gfm2_120",typographyLandingClaim:IW,"typography-landing--claim-uppercase":"_typography-landing--claim-uppercase_1gfm2_158",typographyLandingClaimUppercase:DW,"typography-landing--h1":"_typography-landing--h1_1gfm2_196",typographyLandingH1:jW,"typography-landing--h1-uppercase":"_typography-landing--h1-uppercase_1gfm2_234",typographyLandingH1Uppercase:HW,"typography-landing--h2":"_typography-landing--h2_1gfm2_272",typographyLandingH2:VW,"typography-landing--h3":"_typography-landing--h3_1gfm2_310",typographyLandingH3:NW,"typography-landing--h4":"_typography-landing--h4_1gfm2_348",typographyLandingH4:GW,"typography-landing--h5":"_typography-landing--h5_1gfm2_373",typographyLandingH5:WW,"typography-landing--h6":"_typography-landing--h6_1gfm2_398",typographyLandingH6:qW,"typography-landing--overline":"_typography-landing--overline_1gfm2_423",typographyLandingOverline:UW,"typography-landing--body-large":"_typography-landing--body-large_1gfm2_460",typographyLandingBodyLarge:ZW,"typography-landing--body-large-semibold":"_typography-landing--body-large-semibold_1gfm2_484",typographyLandingBodyLargeSemibold:KW,"typography-landing--body":"_typography-landing--body_1gfm2_460",typographyLandingBody:YW,"typography-landing--body-semibold":"_typography-landing--body-semibold_1gfm2_519",typographyLandingBodySemibold:JW,"typography-landing--body-italic":"_typography-landing--body-italic_1gfm2_530",typographyLandingBodyItalic:QW,"typography-landing--quote-large":"_typography-landing--quote-large_1gfm2_542",typographyLandingQuoteLarge:XW,"typography-landing--detail-small":"_typography-landing--detail-small_1gfm2_567",typographyLandingDetailSmall:eq,"typography-landing--detail-small-bold":"_typography-landing--detail-small-bold_1gfm2_578",typographyLandingDetailSmallBold:nq,"typography-landing":"_typography-landing_1gfm2_120",typographyLanding:iq,"typography-product--h1":"_typography-product--h1_1gfm2_607",typographyProductH1:tq,"typography-product--h2":"_typography-product--h2_1gfm2_619",typographyProductH2:rq,"typography-product--h3":"_typography-product--h3_1gfm2_631",typographyProductH3:aq,"typography-product--h4":"_typography-product--h4_1gfm2_643",typographyProductH4:sq,"typography-product--h5":"_typography-product--h5_1gfm2_655",typographyProductH5:oq,"typography-product--h6":"_typography-product--h6_1gfm2_667",typographyProductH6:lq,"typography-product--h7":"_typography-product--h7_1gfm2_679",typographyProductH7:fq,"typography-product--h8":"_typography-product--h8_1gfm2_691",typographyProductH8:dq,"typography-product--body-large":"_typography-product--body-large_1gfm2_703",typographyProductBodyLarge:uq,"typography-product--body-regular":"_typography-product--body-regular_1gfm2_715",typographyProductBodyRegular:cq,"typography-product--body-semibold":"_typography-product--body-semibold_1gfm2_727",typographyProductBodySemibold:hq,"typography-product--body-italic":"_typography-product--body-italic_1gfm2_739",typographyProductBodyItalic:gq,"typography-product--body-text-link":"_typography-product--body-text-link_1gfm2_752",typographyProductBodyTextLink:mq,"typography-product--detail-medium":"_typography-product--detail-medium_1gfm2_764",typographyProductDetailMedium:pq,"typography-product--detail-bold":"_typography-product--detail-bold_1gfm2_776",typographyProductDetailBold:vq,"typography-product--detail-upper-case":"_typography-product--detail-upper-case_1gfm2_788",typographyProductDetailUpperCase:kq,"typography-product--detail-regular":"_typography-product--detail-regular_1gfm2_800",typographyProductDetailRegular:wq,"typography-product":"_typography-product_1gfm2_607",typographyProduct:_q};function bq(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 df=e=>{const{as:n,children:i,className:t,fontSet:r="product",markdown:a=r==="landing",type:o}=e,f=n||bq(o),d=Ue(wp[`typography-${r}`],wp[`typography-${r}--${o}`],t);return k.jsx(k.Fragment,{children:typeof i=="string"&&a?k.jsx(OW,{className:d,text:i,inline:!0,elementTag:f}):k.jsx(f,{className:d,children:i})})},yq="_root_7zlds_120",xq="_root__content_7zlds_130",Sq="_root__bookmark_7zlds_136",Cq="_root__header_7zlds_142",Eq="_root__header__reserved_7zlds_149",Fq="_root__header__reserved__box_7zlds_162",Mq="_root__header__image_7zlds_171",Tq="_root__info_7zlds_176",Lq="_root__info__top_7zlds_182",Pq="_root__info__price_7zlds_185",Rq="_root__info__title_7zlds_191",Aq="_root__info__timeStamp_7zlds_199",$i={root:yq,root__content:xq,root__bookmark:Sq,root__header:Cq,root__header__reserved:Eq,"root__header__reserved--visible":"_root__header__reserved--visible_7zlds_159",root__header__reserved__box:Fq,root__header__image:Mq,root__info:Tq,root__info__top:Lq,root__info__price:Pq,"root__info__price--reserved":"_root__info__price--reserved_7zlds_188",root__info__title:Rq,root__info__timeStamp:Aq};function Th({bookmarked:e,id:n,image:i,onClick:t,price:r,reserved:a,reservedText:o,timeStamp:f,title:d}){const c=Yt(),u=()=>{c(`/feed/${n}`),t&&t()};return k.jsxs("div",{className:$i.root,children:[k.jsx(hk,{className:$i.root__bookmark,isBookmarked:e,id:n}),k.jsxs(O.Button,{className:$i.root__content,onClick:u,children:[k.jsxs("div",{className:$i.root__header,children:[k.jsx("div",{className:Ue($i.root__header__reserved,{[$i["root__header__reserved--visible"]]:a}),children:k.jsx("div",{className:$i.root__header__reserved__box,children:k.jsx(df,{type:"detail-upper-case",children:o})})}),i?k.jsx(WG,{alt:"product image",src:i,className:$i.root__header__image}):k.jsx(GG,{size:"large",style:"rounded",icon:k.jsx(gk,{name:"camera_crossed"})})]}),k.jsxs("div",{className:$i.root__info,children:[k.jsxs("div",{className:$i.root__info__top,children:[k.jsx(df,{type:"body-semibold",as:"p",className:Ue($i.root__info__price,{[$i["root__info__price--reserved"]]:a}),children:r}),k.jsx(df,{type:"body-semibold",as:"p",className:$i.root__info__title,children:d})]}),k.jsx(df,{type:"detail-medium",as:"p",className:$i.root__info__timeStamp,children:Qf(f)})]})]})]})}function zq(e){e.__scriptingEnabledHTMLContentHasBeenExecuted=!0}const $q=`(${zq.toString()})(document.currentScript);`,Lk=y.forwardRef((e,n)=>{const i=y.useRef(null);return y.useImperativeHandle(n,()=>({get hasBeenExecuted(){const t=i.current;return t?!!t.__scriptingEnabledHTMLContentHasBeenExecuted:!1}})),k.jsx("script",{ref:i,dangerouslySetInnerHTML:{__html:$q}})});Lk.displayName="InnerHTMLScript";const Bq=(e,n)=>{const i=document.createRange().createContextualFragment(n);e.innerHTML="",e.appendChild(i)},Oq=({html:e,...n})=>{const i=y.useRef(null),t=y.useRef(null);return y.useEffect(()=>{const r=t.current,a=i.current;!r||!a||a.hasBeenExecuted||Bq(r,e)},[e]),k.jsxs(k.Fragment,{children:[k.jsx(Lk,{ref:i}),k.jsx("div",{...n,ref:t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:e}})]})},Iq=({children:e,navigate:n})=>k.jsx(Z6.Provider,{value:{navigate:n},children:e}),Dq="_root_1elhz_120",jq={root:Dq},Lh={event:"event",feed:"feed",group:"group",marketplace:"marketplace",post:"post"},Hq="_root_17i32_120",Vq="_root__list_17i32_125",Nq="_root__itemCta_17i32_135",Gq="_root__item_17i32_135",ro={root:Hq,root__list:Vq,root__itemCta:Nq,root__item:Gq},Wq={event:"",feed:"",group:"",marketplace:"/feed/marketplace",post:""},qq=({feedType:e,item:n})=>{switch(e){case Lh[e]:return k.jsx(Th,{...n});default:return null}},Uq=(e,n,i=6)=>{let t=[];if(!e.length)return[[]];const r=n?n.filter(m=>Number(m.block)>=0):[];let a=Array(i).fill(null),o=0,f=0,d=1;const c=()=>{let m=0;r.forEach(w=>{w.block===d&&(a.splice(w.position,1,w),m+=1)}),o=m};r.length&&c();const u=(m,w)=>{if(a[m]!==null&&o<i&&m<i){u(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 u(f,e[m]),o===i&&a.filter(Boolean).length===i&&(w.push(a.filter(_=>_!=null)),a=Array(i).fill(null),o=0,f=0,d+=1,r.length&&c()),g(m+1,w)};return t=g(),n&&n.length>=0&&n.sort((m,w)=>m.position-w.position).forEach(m=>{!m.block&&t.length>=m.position&&t.splice(m.position,0,m)}),t},Zq=e=>e?new Intl.NumberFormat("de-DE",{currency:"EUR",maximumFractionDigits:0,minimumFractionDigits:0,style:"currency"}).format(e/100).replace("€","").trim()+" €":"Zu verschenken",Kq=(e,n)=>{const i=[];return e.forEach(t=>{var r,a;typeof t=="number"?i.push({bookmarked:n[t].is_bookmarked,id:n[t].id,image:(a=(r=n[t])==null?void 0:r.images[0])==null?void 0:a.url,price:Zq(n[t].price),reserved:B$(n[t].outcome),reservedText:"Reserviert",timeStamp:n[t].created_at,title:n[t].subject,type:"feed"}):i.push({type:"ad",...t})}),i},Yq=(e,n="de-DE")=>e[n],Jq={"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:""}}},Qq=Yq(Jq),Xq=(e,n)=>Qq[Lh[e]][n];function _p({feedType:e,isCard:n=!1,onClick:i}){const t=r=>Xq(e,r);return k.jsx(O.EmptyState,{primaryText:t("title"),stickerProps:{color:"teal",icon:"marketplace"},secondaryText:t("description"),size:n?"small":"medium",buttons:[{buttonType:"primary",children:k.jsx(O.Typography,{type:n?"body-semibold":"h5",children:t("cta")}),onClick:i,size:n?"small":"large"}]})}const eU=(e,n)=>e?n%3!==0:n%2!==0;function Pk({feedType:e,items:n}){const i=Yt(),t=ch(800),r=eU(t,n.length),a=()=>{i(Wq[e])};return k.jsx(k.Fragment,{children:n.length?k.jsx(O.Card,{className:Ue(ro.root),borderRadius:!0,responsive:!0,children:k.jsx(O.CardBody,{className:ro.root__body,withoutPadding:!0,children:k.jsxs("ul",{className:ro.root__list,children:[n.map((o,f)=>k.jsx("li",{className:ro.root__item,children:o.type==="feed"?k.jsx(qq,{feedType:e,item:o}):o.content},`grid_item_${o.type}_${o.id}`)),r&&k.jsx("li",{className:ro.root__itemCta,children:k.jsx(_p,{isCard:!0,onClick:a,feedType:e})},"empty_state_cta_card")]})})}):k.jsx(_p,{onClick:a,feedType:e})})}const nU=({feedItem:e,feedItems:n,feedType:i})=>{switch(i){case Lh[i]:return k.jsx(Pk,{feedType:i,items:Kq(e,n)});default:return null}},iU=({ads:e,feedItems:n,feedType:i,items:t})=>{const r=Uq(t,e);return r.length?k.jsx("section",{className:jq.root,children:r.map((a,o)=>Array.isArray(a)?k.jsx(nU,{feedItem:a,feedItems:n,feedType:i},`grid_block_${o}`):k.jsx(y.Fragment,{children:a.content},`ad_block_${o}_${a.id}`))}):null},Rk=({children:e,spacing:n})=>{const i=typeof n=="string"?Ue("grid-container",`grid-spacing--${n}-x`,`grid-spacing--${n}-y`):Ue("grid-container",`grid-spacing--${n==null?void 0:n.x}-x`,`grid-spacing--${n==null?void 0:n.y}-y`);return k.jsx("div",{className:i,children:e})},Ak=({children:e,desktop:n,mobile:i})=>{const t=wa(),r=Ue("grid-item",(!!i&&!n||!i&&!!n)&&[`grid-item_mobile--${i}`,`grid-item_mobile--${n}`,`grid-item_desktop--${i}`,`grid-item_desktop--${n}`],t&&i?`grid-item_mobile--${i}`:n?`grid-item_desktop--${n}`:"");return k.jsx("div",{className:r,children:e})},tU="_imageGallery_10c2p_120",rU="_imageGalleryImage_10c2p_126",aU="_imageGalleryPill_10c2p_134",Bc={imageGallery:tU,imageGalleryImage:rU,imageGalleryPill:aU},sU=({gallerySize:e,imageAlt:n,imageURL:i,onClick:t})=>{let r;if(e>1){const a=`+${e-1}`;r=k.jsx("div",{className:Bc.imageGalleryPill,children:k.jsx(O.LabelPill,{label:a,shape:"tile",size:"medium"})})}return k.jsxs("div",{className:Bc.imageGallery,onClick:t,children:[k.jsx(O.Image,{alt:n,src:i,className:Bc.imageGalleryImage}),r]})},oU="_container_y0t0p_120",lU="_circle_y0t0p_128",fU="_logo_y0t0p_136",Oc={container:oU,circle:lU,logo:fU},dU=(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"})),uU=y.forwardRef(dU),zk=()=>k.jsxs("div",{className:Oc.container,children:[k.jsx("div",{className:Oc.circle}),k.jsx(uU,{className:Oc.logo})]}),cU="_container_1kk1s_120",hU="_header_1kk1s_127",gU="_navBar_1kk1s_133",mU="_mainContent_1kk1s_138",pU="_sidebarRight_1kk1s_144",vU="_adSlot_1kk1s_153",kU="_adSlot--right_1kk1s_164",wU="_adSlot--left_1kk1s_169",dr={container:cU,header:hU,navBar:gU,mainContent:mU,sidebarRight:pU,adSlot:vU,"adSlot--right":"_adSlot--right_1kk1s_164",adSlotRight:kU,"adSlot--left":"_adSlot--left_1kk1s_169",adSlotLeft:wU},_U=({banner:e,children:n,leftAdSlot:i,navbar:t,right:r,rightAdSlot:a})=>k.jsxs("div",{className:dr.container,children:[k.jsxs("header",{className:dr.header,children:[k.jsx("nav",{className:dr.navBar,children:t}),e]}),i&&k.jsx("div",{className:Ue(dr.adSlot,dr["adSlot--left"]),children:i}),k.jsx("main",{className:dr.mainContent,children:n}),r&&k.jsx("aside",{className:dr.sidebarRight,children:r}),a&&k.jsx("div",{className:Ue(dr.adSlot,dr["adSlot--right"]),children:a})]});var $k={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 i=y;function t(o,f){return function(d){if(Array.isArray(d))return d}(o)||function(d,c){var u=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(u!=null){var g,m,w=[],_=!0,C=!1;try{for(u=u.call(d);!(_=(g=u.next()).done)&&(w.push(g.value),!c||w.length!==c);_=!0);}catch(E){C=!0,m=E}finally{try{_||u.return==null||u.return()}finally{if(C)throw m}}return w}}(o,f)||function(d,c){if(d){if(typeof d=="string")return r(d,c);var u=Object.prototype.toString.call(d).slice(8,-1);return u==="Object"&&d.constructor&&(u=d.constructor.name),u==="Map"||u==="Set"?Array.from(d):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?r(d,c):void 0}}(o,f)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
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,c=new Array(f);d<f;d++)c[d]=o[d];return c}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,i.useState)(f),c=t(d,2),u=c[0],g=c[1];return(0,i.useEffect)(function(){var m=function(){var w=window.screen.height-o>window.visualViewport.height;u!=w&&g(w)};return typeof visualViewport<"u"&&window.visualViewport.addEventListener("resize",m),function(){typeof visualViewport<"u"&&window.visualViewport.removeEventListener("resize",m)}},[]),u};$k.exports=n})();var bU=$k.exports;const yU=qr(bU),xU="_mobileLayout_xjah2_120",SU="_mobileLayoutHeader_xjah2_125",CU="_mobileLayoutMain_xjah2_133",EU="_mobileLayoutMainWithFooter_xjah2_140",FU="_mobileLayoutActionButton_xjah2_143",MU="_mobileLayoutFooter_xjah2_150",Xa={mobileLayout:xU,mobileLayoutHeader:SU,mobileLayoutMain:CU,mobileLayoutMainWithFooter:EU,mobileLayoutActionButton:FU,mobileLayoutFooter:MU},Bk=({action:e,banner:n,children:i,footer:t,header:r,showFooter:a=!0})=>{const o=yU();return k.jsxs("section",{className:Xa.mobileLayout,children:[k.jsx("header",{className:Xa.mobileLayoutHeader,children:r}),k.jsxs("main",{className:Ue(Xa.mobileLayoutMain,{[Xa.mobileLayoutMainWithFooter]:a}),tabIndex:0,children:[n,i]}),a&&k.jsxs("footer",{className:Xa.mobileLayoutFooter,children:[e&&o&&k.jsx("div",{className:Xa.mobileLayoutActionButton,children:e}),t]})]})},TU="_loadingSpinnerContainer_55hqs_120",LU={loadingSpinnerContainer:TU},PU=({children:e,desktop:n,keepLoading:i,mobile:t})=>{const[r,a]=y.useState(0),o=()=>{a(window.innerWidth)};return y.useEffect(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),!r||i?k.jsx("div",{className:LU.loadingSpinnerContainer,children:k.jsx(zk,{})}):r<800?k.jsx(Bk,{...t,children:e}):k.jsx(_U,{...n,children:e})};var RU=AU;function AU(e){if(e)throw e}/*!
855
+ Please report this to https://github.com/markedjs/marked.`,n){const r="<p>An error occurred:</p><pre>"+Ji(t.message+"",!0)+"</pre>";return i?Promise.resolve(r):r}if(i)return Promise.reject(t);throw t}}}const Fa=new zW;function xn(e,n){return Fa.parse(e,n)}xn.options=xn.setOptions=function(e){return Fa.setOptions(e),xn.defaults=Fa.defaults,_k(xn.defaults),xn};xn.getDefaults=yh;xn.defaults=Ra;xn.use=function(...e){return Fa.use(...e),xn.defaults=Fa.defaults,_k(xn.defaults),xn};xn.walkTokens=function(e,n){return Fa.walkTokens(e,n)};xn.parseInline=Fa.parseInline;xn.Parser=vt;xn.parser=vt.parse;xn.Renderer=nd;xn.TextRenderer=Mh;xn.Lexer=pt;xn.lexer=pt.lex;xn.Tokenizer=Xf;xn.Hooks=Fo;xn.parse=xn;xn.options;xn.setOptions;xn.use;xn.walkTokens;xn.parseInline;vt.parse;pt.lex;const $W=e=>e.replace(/"/g,"QUOTE"),BW=e=>e.replace(new RegExp("QUOTE","g"),'"');function OW({className:e,elementTag:n="span",inline:i=!1,text:t}){const r=BW(vk($W(t))),a=n;return k.jsx(a,{className:e,dangerouslySetInnerHTML:{__html:i?xn.parseInline(r,{breaks:!0}):xn.parse(r,{breaks:!0})}})}const IW="_typography-landing--claim_1gfm2_120",DW="_typography-landing--claim-uppercase_1gfm2_158",jW="_typography-landing--h1_1gfm2_196",HW="_typography-landing--h1-uppercase_1gfm2_234",VW="_typography-landing--h2_1gfm2_272",NW="_typography-landing--h3_1gfm2_310",GW="_typography-landing--h4_1gfm2_348",WW="_typography-landing--h5_1gfm2_373",qW="_typography-landing--h6_1gfm2_398",UW="_typography-landing--overline_1gfm2_423",ZW="_typography-landing--body-large_1gfm2_460",KW="_typography-landing--body-large-semibold_1gfm2_484",YW="_typography-landing--body_1gfm2_460",JW="_typography-landing--body-semibold_1gfm2_519",QW="_typography-landing--body-italic_1gfm2_530",XW="_typography-landing--quote-large_1gfm2_542",eq="_typography-landing--detail-small_1gfm2_567",nq="_typography-landing--detail-small-bold_1gfm2_578",iq="_typography-landing_1gfm2_120",tq="_typography-product--h1_1gfm2_607",rq="_typography-product--h2_1gfm2_619",aq="_typography-product--h3_1gfm2_631",sq="_typography-product--h4_1gfm2_643",oq="_typography-product--h5_1gfm2_655",lq="_typography-product--h6_1gfm2_667",fq="_typography-product--h7_1gfm2_679",dq="_typography-product--h8_1gfm2_691",uq="_typography-product--body-large_1gfm2_703",cq="_typography-product--body-regular_1gfm2_715",hq="_typography-product--body-semibold_1gfm2_727",gq="_typography-product--body-italic_1gfm2_739",mq="_typography-product--body-text-link_1gfm2_752",pq="_typography-product--detail-medium_1gfm2_764",vq="_typography-product--detail-bold_1gfm2_776",kq="_typography-product--detail-upper-case_1gfm2_788",wq="_typography-product--detail-regular_1gfm2_800",_q="_typography-product_1gfm2_607",wp={"typography-landing--claim":"_typography-landing--claim_1gfm2_120",typographyLandingClaim:IW,"typography-landing--claim-uppercase":"_typography-landing--claim-uppercase_1gfm2_158",typographyLandingClaimUppercase:DW,"typography-landing--h1":"_typography-landing--h1_1gfm2_196",typographyLandingH1:jW,"typography-landing--h1-uppercase":"_typography-landing--h1-uppercase_1gfm2_234",typographyLandingH1Uppercase:HW,"typography-landing--h2":"_typography-landing--h2_1gfm2_272",typographyLandingH2:VW,"typography-landing--h3":"_typography-landing--h3_1gfm2_310",typographyLandingH3:NW,"typography-landing--h4":"_typography-landing--h4_1gfm2_348",typographyLandingH4:GW,"typography-landing--h5":"_typography-landing--h5_1gfm2_373",typographyLandingH5:WW,"typography-landing--h6":"_typography-landing--h6_1gfm2_398",typographyLandingH6:qW,"typography-landing--overline":"_typography-landing--overline_1gfm2_423",typographyLandingOverline:UW,"typography-landing--body-large":"_typography-landing--body-large_1gfm2_460",typographyLandingBodyLarge:ZW,"typography-landing--body-large-semibold":"_typography-landing--body-large-semibold_1gfm2_484",typographyLandingBodyLargeSemibold:KW,"typography-landing--body":"_typography-landing--body_1gfm2_460",typographyLandingBody:YW,"typography-landing--body-semibold":"_typography-landing--body-semibold_1gfm2_519",typographyLandingBodySemibold:JW,"typography-landing--body-italic":"_typography-landing--body-italic_1gfm2_530",typographyLandingBodyItalic:QW,"typography-landing--quote-large":"_typography-landing--quote-large_1gfm2_542",typographyLandingQuoteLarge:XW,"typography-landing--detail-small":"_typography-landing--detail-small_1gfm2_567",typographyLandingDetailSmall:eq,"typography-landing--detail-small-bold":"_typography-landing--detail-small-bold_1gfm2_578",typographyLandingDetailSmallBold:nq,"typography-landing":"_typography-landing_1gfm2_120",typographyLanding:iq,"typography-product--h1":"_typography-product--h1_1gfm2_607",typographyProductH1:tq,"typography-product--h2":"_typography-product--h2_1gfm2_619",typographyProductH2:rq,"typography-product--h3":"_typography-product--h3_1gfm2_631",typographyProductH3:aq,"typography-product--h4":"_typography-product--h4_1gfm2_643",typographyProductH4:sq,"typography-product--h5":"_typography-product--h5_1gfm2_655",typographyProductH5:oq,"typography-product--h6":"_typography-product--h6_1gfm2_667",typographyProductH6:lq,"typography-product--h7":"_typography-product--h7_1gfm2_679",typographyProductH7:fq,"typography-product--h8":"_typography-product--h8_1gfm2_691",typographyProductH8:dq,"typography-product--body-large":"_typography-product--body-large_1gfm2_703",typographyProductBodyLarge:uq,"typography-product--body-regular":"_typography-product--body-regular_1gfm2_715",typographyProductBodyRegular:cq,"typography-product--body-semibold":"_typography-product--body-semibold_1gfm2_727",typographyProductBodySemibold:hq,"typography-product--body-italic":"_typography-product--body-italic_1gfm2_739",typographyProductBodyItalic:gq,"typography-product--body-text-link":"_typography-product--body-text-link_1gfm2_752",typographyProductBodyTextLink:mq,"typography-product--detail-medium":"_typography-product--detail-medium_1gfm2_764",typographyProductDetailMedium:pq,"typography-product--detail-bold":"_typography-product--detail-bold_1gfm2_776",typographyProductDetailBold:vq,"typography-product--detail-upper-case":"_typography-product--detail-upper-case_1gfm2_788",typographyProductDetailUpperCase:kq,"typography-product--detail-regular":"_typography-product--detail-regular_1gfm2_800",typographyProductDetailRegular:wq,"typography-product":"_typography-product_1gfm2_607",typographyProduct:_q};function bq(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 df=e=>{const{as:n,children:i,className:t,fontSet:r="product",markdown:a=r==="landing",type:o}=e,f=n||bq(o),d=Ue(wp[`typography-${r}`],wp[`typography-${r}--${o}`],t);return k.jsx(k.Fragment,{children:typeof i=="string"&&a?k.jsx(OW,{className:d,text:i,inline:!0,elementTag:f}):k.jsx(f,{className:d,children:i})})},yq="_root_1p8e7_120",xq="_root__content_1p8e7_130",Sq="_root__bookmark_1p8e7_136",Cq="_root__header_1p8e7_142",Eq="_root__header__reserved_1p8e7_149",Fq="_root__header__reserved__box_1p8e7_162",Mq="_root__header__image_1p8e7_171",Tq="_root__info_1p8e7_176",Lq="_root__info__top_1p8e7_182",Pq="_root__info__price_1p8e7_185",Rq="_root__info__title_1p8e7_191",Aq="_root__info__timeStamp_1p8e7_200",$i={root:yq,root__content:xq,root__bookmark:Sq,root__header:Cq,root__header__reserved:Eq,"root__header__reserved--visible":"_root__header__reserved--visible_1p8e7_159",root__header__reserved__box:Fq,root__header__image:Mq,root__info:Tq,root__info__top:Lq,root__info__price:Pq,"root__info__price--reserved":"_root__info__price--reserved_1p8e7_188",root__info__title:Rq,root__info__timeStamp:Aq};function Th({bookmarked:e,id:n,image:i,onClick:t,price:r,reserved:a,reservedText:o,timeStamp:f,title:d}){const c=Yt(),u=()=>{c(`/feed/${n}`),t&&t()};return k.jsxs("div",{className:$i.root,children:[k.jsx(hk,{className:$i.root__bookmark,isBookmarked:e,id:n}),k.jsxs(O.Button,{className:$i.root__content,onClick:u,children:[k.jsxs("div",{className:$i.root__header,children:[k.jsx("div",{className:Ue($i.root__header__reserved,{[$i["root__header__reserved--visible"]]:a}),children:k.jsx("div",{className:$i.root__header__reserved__box,children:k.jsx(df,{type:"detail-upper-case",children:o})})}),i?k.jsx(WG,{alt:"product image",src:i,className:$i.root__header__image}):k.jsx(GG,{size:"large",style:"rounded",icon:k.jsx(gk,{name:"camera_crossed"})})]}),k.jsxs("div",{className:$i.root__info,children:[k.jsxs("div",{className:$i.root__info__top,children:[k.jsx(df,{type:"body-semibold",as:"p",className:Ue($i.root__info__price,{[$i["root__info__price--reserved"]]:a}),children:r}),k.jsx(df,{type:"body-semibold",as:"p",className:$i.root__info__title,children:d})]}),k.jsx(df,{type:"detail-medium",as:"p",className:$i.root__info__timeStamp,children:Qf(f)})]})]})]})}function zq(e){e.__scriptingEnabledHTMLContentHasBeenExecuted=!0}const $q=`(${zq.toString()})(document.currentScript);`,Lk=y.forwardRef((e,n)=>{const i=y.useRef(null);return y.useImperativeHandle(n,()=>({get hasBeenExecuted(){const t=i.current;return t?!!t.__scriptingEnabledHTMLContentHasBeenExecuted:!1}})),k.jsx("script",{ref:i,dangerouslySetInnerHTML:{__html:$q}})});Lk.displayName="InnerHTMLScript";const Bq=(e,n)=>{const i=document.createRange().createContextualFragment(n);e.innerHTML="",e.appendChild(i)},Oq=({html:e,...n})=>{const i=y.useRef(null),t=y.useRef(null);return y.useEffect(()=>{const r=t.current,a=i.current;!r||!a||a.hasBeenExecuted||Bq(r,e)},[e]),k.jsxs(k.Fragment,{children:[k.jsx(Lk,{ref:i}),k.jsx("div",{...n,ref:t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:e}})]})},Iq=({children:e,navigate:n})=>k.jsx(Z6.Provider,{value:{navigate:n},children:e}),Dq="_root_1elhz_120",jq={root:Dq},Lh={event:"event",feed:"feed",group:"group",marketplace:"marketplace",post:"post"},Hq="_root_17i32_120",Vq="_root__list_17i32_125",Nq="_root__itemCta_17i32_135",Gq="_root__item_17i32_135",ro={root:Hq,root__list:Vq,root__itemCta:Nq,root__item:Gq},Wq={event:"",feed:"",group:"",marketplace:"/feed/marketplace",post:""},qq=({feedType:e,item:n})=>{switch(e){case Lh[e]:return k.jsx(Th,{...n});default:return null}},Uq=(e,n,i=6)=>{let t=[];if(!e.length)return[[]];const r=n?n.filter(m=>Number(m.block)>=0):[];let a=Array(i).fill(null),o=0,f=0,d=1;const c=()=>{let m=0;r.forEach(w=>{w.block===d&&(a.splice(w.position,1,w),m+=1)}),o=m};r.length&&c();const u=(m,w)=>{if(a[m]!==null&&o<i&&m<i){u(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 u(f,e[m]),o===i&&a.filter(Boolean).length===i&&(w.push(a.filter(_=>_!=null)),a=Array(i).fill(null),o=0,f=0,d+=1,r.length&&c()),g(m+1,w)};return t=g(),n&&n.length>=0&&n.sort((m,w)=>m.position-w.position).forEach(m=>{!m.block&&t.length>=m.position&&t.splice(m.position,0,m)}),t},Zq=e=>e?new Intl.NumberFormat("de-DE",{currency:"EUR",maximumFractionDigits:0,minimumFractionDigits:0,style:"currency"}).format(e/100).replace("€","").trim()+" €":"Zu verschenken",Kq=(e,n)=>{const i=[];return e.forEach(t=>{var r,a;typeof t=="number"?i.push({bookmarked:n[t].is_bookmarked,id:n[t].id,image:(a=(r=n[t])==null?void 0:r.images[0])==null?void 0:a.url,price:Zq(n[t].price),reserved:B$(n[t].outcome),reservedText:"Reserviert",timeStamp:n[t].created_at,title:n[t].subject,type:"feed"}):i.push({type:"ad",...t})}),i},Yq=(e,n="de-DE")=>e[n],Jq={"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:""}}},Qq=Yq(Jq),Xq=(e,n)=>Qq[Lh[e]][n];function _p({feedType:e,isCard:n=!1,onClick:i}){const t=r=>Xq(e,r);return k.jsx(O.EmptyState,{primaryText:t("title"),stickerProps:{color:"teal",icon:"marketplace"},secondaryText:t("description"),size:n?"small":"medium",buttons:[{buttonType:"primary",children:k.jsx(O.Typography,{type:n?"body-semibold":"h5",children:t("cta")}),onClick:i,size:n?"small":"large"}]})}const eU=(e,n)=>e?n%3!==0:n%2!==0;function Pk({feedType:e,items:n}){const i=Yt(),t=ch(800),r=eU(t,n.length),a=()=>{i(Wq[e])};return k.jsx(k.Fragment,{children:n.length?k.jsx(O.Card,{className:Ue(ro.root),borderRadius:!0,responsive:!0,children:k.jsx(O.CardBody,{className:ro.root__body,withoutPadding:!0,children:k.jsxs("ul",{className:ro.root__list,children:[n.map((o,f)=>k.jsx("li",{className:ro.root__item,children:o.type==="feed"?k.jsx(qq,{feedType:e,item:o}):o.content},`grid_item_${o.type}_${o.id}`)),r&&k.jsx("li",{className:ro.root__itemCta,children:k.jsx(_p,{isCard:!0,onClick:a,feedType:e})},"empty_state_cta_card")]})})}):k.jsx(_p,{onClick:a,feedType:e})})}const nU=({feedItem:e,feedItems:n,feedType:i})=>{switch(i){case Lh[i]:return k.jsx(Pk,{feedType:i,items:Kq(e,n)});default:return null}},iU=({ads:e,feedItems:n,feedType:i,items:t})=>{const r=Uq(t,e);return r.length?k.jsx("section",{className:jq.root,children:r.map((a,o)=>Array.isArray(a)?k.jsx(nU,{feedItem:a,feedItems:n,feedType:i},`grid_block_${o}`):k.jsx(y.Fragment,{children:a.content},`ad_block_${o}_${a.id}`))}):null},Rk=({children:e,spacing:n})=>{const i=typeof n=="string"?Ue("grid-container",`grid-spacing--${n}-x`,`grid-spacing--${n}-y`):Ue("grid-container",`grid-spacing--${n==null?void 0:n.x}-x`,`grid-spacing--${n==null?void 0:n.y}-y`);return k.jsx("div",{className:i,children:e})},Ak=({children:e,desktop:n,mobile:i})=>{const t=wa(),r=Ue("grid-item",(!!i&&!n||!i&&!!n)&&[`grid-item_mobile--${i}`,`grid-item_mobile--${n}`,`grid-item_desktop--${i}`,`grid-item_desktop--${n}`],t&&i?`grid-item_mobile--${i}`:n?`grid-item_desktop--${n}`:"");return k.jsx("div",{className:r,children:e})},tU="_imageGallery_10c2p_120",rU="_imageGalleryImage_10c2p_126",aU="_imageGalleryPill_10c2p_134",Bc={imageGallery:tU,imageGalleryImage:rU,imageGalleryPill:aU},sU=({gallerySize:e,imageAlt:n,imageURL:i,onClick:t})=>{let r;if(e>1){const a=`+${e-1}`;r=k.jsx("div",{className:Bc.imageGalleryPill,children:k.jsx(O.LabelPill,{label:a,shape:"tile",size:"medium"})})}return k.jsxs("div",{className:Bc.imageGallery,onClick:t,children:[k.jsx(O.Image,{alt:n,src:i,className:Bc.imageGalleryImage}),r]})},oU="_container_y0t0p_120",lU="_circle_y0t0p_128",fU="_logo_y0t0p_136",Oc={container:oU,circle:lU,logo:fU},dU=(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"})),uU=y.forwardRef(dU),zk=()=>k.jsxs("div",{className:Oc.container,children:[k.jsx("div",{className:Oc.circle}),k.jsx(uU,{className:Oc.logo})]}),cU="_container_1kk1s_120",hU="_header_1kk1s_127",gU="_navBar_1kk1s_133",mU="_mainContent_1kk1s_138",pU="_sidebarRight_1kk1s_144",vU="_adSlot_1kk1s_153",kU="_adSlot--right_1kk1s_164",wU="_adSlot--left_1kk1s_169",dr={container:cU,header:hU,navBar:gU,mainContent:mU,sidebarRight:pU,adSlot:vU,"adSlot--right":"_adSlot--right_1kk1s_164",adSlotRight:kU,"adSlot--left":"_adSlot--left_1kk1s_169",adSlotLeft:wU},_U=({banner:e,children:n,leftAdSlot:i,navbar:t,right:r,rightAdSlot:a})=>k.jsxs("div",{className:dr.container,children:[k.jsxs("header",{className:dr.header,children:[k.jsx("nav",{className:dr.navBar,children:t}),e]}),i&&k.jsx("div",{className:Ue(dr.adSlot,dr["adSlot--left"]),children:i}),k.jsx("main",{className:dr.mainContent,children:n}),r&&k.jsx("aside",{className:dr.sidebarRight,children:r}),a&&k.jsx("div",{className:Ue(dr.adSlot,dr["adSlot--right"]),children:a})]});var $k={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 i=y;function t(o,f){return function(d){if(Array.isArray(d))return d}(o)||function(d,c){var u=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(u!=null){var g,m,w=[],_=!0,C=!1;try{for(u=u.call(d);!(_=(g=u.next()).done)&&(w.push(g.value),!c||w.length!==c);_=!0);}catch(E){C=!0,m=E}finally{try{_||u.return==null||u.return()}finally{if(C)throw m}}return w}}(o,f)||function(d,c){if(d){if(typeof d=="string")return r(d,c);var u=Object.prototype.toString.call(d).slice(8,-1);return u==="Object"&&d.constructor&&(u=d.constructor.name),u==="Map"||u==="Set"?Array.from(d):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?r(d,c):void 0}}(o,f)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
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,c=new Array(f);d<f;d++)c[d]=o[d];return c}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,i.useState)(f),c=t(d,2),u=c[0],g=c[1];return(0,i.useEffect)(function(){var m=function(){var w=window.screen.height-o>window.visualViewport.height;u!=w&&g(w)};return typeof visualViewport<"u"&&window.visualViewport.addEventListener("resize",m),function(){typeof visualViewport<"u"&&window.visualViewport.removeEventListener("resize",m)}},[]),u};$k.exports=n})();var bU=$k.exports;const yU=qr(bU),xU="_mobileLayout_xjah2_120",SU="_mobileLayoutHeader_xjah2_125",CU="_mobileLayoutMain_xjah2_133",EU="_mobileLayoutMainWithFooter_xjah2_140",FU="_mobileLayoutActionButton_xjah2_143",MU="_mobileLayoutFooter_xjah2_150",Xa={mobileLayout:xU,mobileLayoutHeader:SU,mobileLayoutMain:CU,mobileLayoutMainWithFooter:EU,mobileLayoutActionButton:FU,mobileLayoutFooter:MU},Bk=({action:e,banner:n,children:i,footer:t,header:r,showFooter:a=!0})=>{const o=yU();return k.jsxs("section",{className:Xa.mobileLayout,children:[k.jsx("header",{className:Xa.mobileLayoutHeader,children:r}),k.jsxs("main",{className:Ue(Xa.mobileLayoutMain,{[Xa.mobileLayoutMainWithFooter]:a}),tabIndex:0,children:[n,i]}),a&&k.jsxs("footer",{className:Xa.mobileLayoutFooter,children:[e&&!o&&k.jsx("div",{className:Xa.mobileLayoutActionButton,children:e}),t]})]})},TU="_loadingSpinnerContainer_55hqs_120",LU={loadingSpinnerContainer:TU},PU=({children:e,desktop:n,keepLoading:i,mobile:t})=>{const[r,a]=y.useState(0),o=()=>{a(window.innerWidth)};return y.useEffect(()=>(o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[]),!r||i?k.jsx("div",{className:LU.loadingSpinnerContainer,children:k.jsx(zk,{})}):r<800?k.jsx(Bk,{...t,children:e}):k.jsx(_U,{...n,children:e})};var RU=AU;function AU(e){if(e)throw e}/*!
857
857
  * Determine if an object is a Buffer
858
858
  *
859
859
  * @author Feross Aboukhadijeh <https://feross.org>
package/index.mjs CHANGED
@@ -61754,19 +61754,19 @@ const Tf = (e) => {
61754
61754
  elementTag: f
61755
61755
  }
61756
61756
  ) : /* @__PURE__ */ k.jsx(f, { className: d, children: i }) });
61757
- }, kU = "_root_7zlds_120", _U = "_root__content_7zlds_130", wU = "_root__bookmark_7zlds_136", bU = "_root__header_7zlds_142", yU = "_root__header__reserved_7zlds_149", xU = "_root__header__reserved__box_7zlds_162", SU = "_root__header__image_7zlds_171", CU = "_root__info_7zlds_176", EU = "_root__info__top_7zlds_182", FU = "_root__info__price_7zlds_185", MU = "_root__info__title_7zlds_191", TU = "_root__info__timeStamp_7zlds_199", ji = {
61757
+ }, kU = "_root_1p8e7_120", _U = "_root__content_1p8e7_130", wU = "_root__bookmark_1p8e7_136", bU = "_root__header_1p8e7_142", yU = "_root__header__reserved_1p8e7_149", xU = "_root__header__reserved__box_1p8e7_162", SU = "_root__header__image_1p8e7_171", CU = "_root__info_1p8e7_176", EU = "_root__info__top_1p8e7_182", FU = "_root__info__price_1p8e7_185", MU = "_root__info__title_1p8e7_191", TU = "_root__info__timeStamp_1p8e7_200", ji = {
61758
61758
  root: kU,
61759
61759
  root__content: _U,
61760
61760
  root__bookmark: wU,
61761
61761
  root__header: bU,
61762
61762
  root__header__reserved: yU,
61763
- "root__header__reserved--visible": "_root__header__reserved--visible_7zlds_159",
61763
+ "root__header__reserved--visible": "_root__header__reserved--visible_1p8e7_159",
61764
61764
  root__header__reserved__box: xU,
61765
61765
  root__header__image: SU,
61766
61766
  root__info: CU,
61767
61767
  root__info__top: EU,
61768
61768
  root__info__price: FU,
61769
- "root__info__price--reserved": "_root__info__price--reserved_7zlds_188",
61769
+ "root__info__price--reserved": "_root__info__price--reserved_1p8e7_188",
61770
61770
  root__info__title: MU,
61771
61771
  root__info__timeStamp: TU
61772
61772
  };
@@ -62245,7 +62245,7 @@ const kZ = /* @__PURE__ */ ta(vZ), _Z = "_mobileLayout_xjah2_120", wZ = "_mobile
62245
62245
  }
62246
62246
  ),
62247
62247
  a && /* @__PURE__ */ k.jsxs("footer", { className: ds.mobileLayoutFooter, children: [
62248
- e && o && /* @__PURE__ */ k.jsx("div", { className: ds.mobileLayoutActionButton, children: e }),
62248
+ e && !o && /* @__PURE__ */ k.jsx("div", { className: ds.mobileLayoutActionButton, children: e }),
62249
62249
  t
62250
62250
  ] })
62251
62251
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "3.0.0-development.83",
3
+ "version": "3.0.0-development.85",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",