@goodhood-web/nebenan-base 4.13.0-development.7 → 4.13.0-development.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +2 -2
  2. package/index.mjs +6 -7
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";var EE=Object.defineProperty;var TE=(t,e,n)=>e in t?EE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var q=(t,e,n)=>TE(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),v=require("react"),C=require("@goodhood-web/ui"),ct=require("@goodhood-web/api/core"),zp=require("@goodhood-web/services/chargebee"),Pf=require("lodash"),he=require("react-hook-form"),Fp=require("@zxcvbn-ts/core"),hv=require("@hookform/resolvers"),Un=require("@goodhood-web/services/analytics"),Qe=require("@goodhood-web/services/snowplow"),je=require("@goodhood-web/api/core_v2"),de=require("zod"),ql=require("react-dom"),Kl=require("uuid"),vw=require("@tanstack/react-query"),ME=require("@goodhood-web/services/engagement");var Es=typeof document<"u"?document.currentScript:null;function bw(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const y=bw(v),AE=bw(ql);function ww(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=ww(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function X(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=ww(t))&&(i&&(i+=" "),i+=e);return i}const PE="_accordionBtnWrapper_nc5qt_146",zE="_heading_nc5qt_151",FE="_title_nc5qt_163",LE="_icon_nc5qt_180",jE="_iconExpanded_nc5qt_186",IE="_panel_nc5qt_194",Ts={accordionBtnWrapper:PE,heading:zE,title:FE,icon:LE,iconExpanded:jE,panel:IE},RE=({children:t,id:e,isOpen:n=!1,onClick:i,title:r})=>{const[a,s]=v.useState(n),o=()=>{s(l=>!l),i&&i()};return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:Ts.accordionBtnWrapper,children:h.jsxs("button",{id:`accordion-header-${e}`,className:X(Ts.heading),"aria-expanded":a,"aria-controls":`accordion-panel-${e}`,"data-expanded":a,onClick:o,children:[h.jsx(C.Typography,{type:"body-semibold",as:"h3",className:Ts.title,"data-expanded":a,children:r}),h.jsx(C.Icon,{name:"chevron_down",size:"24",className:X(Ts.icon,{[Ts.iconExpanded]:a})})]})}),h.jsx("div",{id:`accordion-panel-${e}`,className:X(Ts.panel),"data-expanded":a,"aria-labelledby":`accordion-header-${e}`,hidden:!a,children:t})]})},NE="_root_54kt0_146",DE="_button_54kt0_149",BE="_thumbnail_54kt0_152",OE="_card_54kt0_155",HE="_cardBody_54kt0_164",WE="_text_54kt0_172",_E="_text__withIcon_54kt0_178",VE="_rightIcon_54kt0_182",zr={root:NE,button:DE,thumbnail:BE,card:OE,cardBody:HE,text:WE,text__withIcon:_E,rightIcon:VE},Lp=({description:t,headline:e,image:n,onClick:i,onDelete:r,url:a,withDeleteIcon:s=!1})=>{const o=a!=null&&a.startsWith("http")?a:`https://${a}`;return h.jsxs("div",{className:zr.root,children:[h.jsx(C.Button,{className:zr.button,onClick:i,href:o,target:"_blank",children:h.jsx(C.Card,{borderRadius:!0,withoutPadding:!0,className:zr.card,children:h.jsxs(C.CardBody,{className:zr.cardBody,children:[n&&h.jsx(C.Thumbnail,{className:zr.thumbnail,shape:"square",size:"64",alt:n.alt,src:n.src}),h.jsxs("div",{className:X(zr.text,{[zr.text__withIcon]:s}),children:[h.jsx(C.Typography,{type:"body-semibold",children:e}),h.jsx(C.Typography,{type:"detail-regular",children:a}),h.jsx(C.Typography,{type:"detail-regular",children:t})]})]})})}),s&&r&&h.jsx("div",{className:zr.rightIcon,children:h.jsx(C.IconButton,{icon:"cross_circle",size:"medium",ariaLabel:"delete attachment",onClick:r})})]})};var ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function GE(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}function UE(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var jp=UE,qE=typeof ve=="object"&&ve&&ve.Object===Object&&ve,KE=qE,ZE=KE,JE=typeof self=="object"&&self&&self.Object===Object&&self,QE=ZE||JE||Function("return this")(),yw=QE,YE=yw,XE=function(){return YE.Date.now()},$E=XE,eT=/\s/;function tT(t){for(var e=t.length;e--&&eT.test(t.charAt(e)););return e}var nT=tT,iT=nT,rT=/^\s+/;function aT(t){return t&&t.slice(0,iT(t)+1).replace(rT,"")}var sT=aT,oT=yw,lT=oT.Symbol,kw=lT,mv=kw,xw=Object.prototype,uT=xw.hasOwnProperty,cT=xw.toString,Qo=mv?mv.toStringTag:void 0;function dT(t){var e=uT.call(t,Qo),n=t[Qo];try{t[Qo]=void 0;var i=!0}catch{}var r=cT.call(t);return i&&(e?t[Qo]=n:delete t[Qo]),r}var fT=dT,hT=Object.prototype,mT=hT.toString;function pT(t){return mT.call(t)}var gT=pT,pv=kw,vT=fT,bT=gT,wT="[object Null]",yT="[object Undefined]",gv=pv?pv.toStringTag:void 0;function kT(t){return t==null?t===void 0?yT:wT:gv&&gv in Object(t)?vT(t):bT(t)}var xT=kT;function ST(t){return t!=null&&typeof t=="object"}var CT=ST,ET=xT,TT=CT,MT="[object Symbol]";function AT(t){return typeof t=="symbol"||TT(t)&&ET(t)==MT}var PT=AT,zT=sT,vv=jp,FT=PT,bv=NaN,LT=/^[-+]0x[0-9a-f]+$/i,jT=/^0b[01]+$/i,IT=/^0o[0-7]+$/i,RT=parseInt;function NT(t){if(typeof t=="number")return t;if(FT(t))return bv;if(vv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=vv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=zT(t);var n=jT.test(t);return n||IT.test(t)?RT(t.slice(2),n?2:8):LT.test(t)?bv:+t}var DT=NT,BT=jp,L1=$E,wv=DT,OT="Expected a function",HT=Math.max,WT=Math.min;function _T(t,e,n){var i,r,a,s,o,l,u=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(OT);e=wv(e)||0,BT(n)&&(c=!!n.leading,f="maxWait"in n,a=f?HT(wv(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d);function m(M){var F=i,P=r;return i=r=void 0,u=M,s=t.apply(P,F),s}function p(M){return u=M,o=setTimeout(w,e),c?m(M):s}function b(M){var F=M-l,P=M-u,z=e-F;return f?WT(z,a-P):z}function g(M){var F=M-l,P=M-u;return l===void 0||F>=e||F<0||f&&P>=a}function w(){var M=L1();if(g(M))return k(M);o=setTimeout(w,b(M))}function k(M){return o=void 0,d&&i?m(M):(i=r=void 0,s)}function x(){o!==void 0&&clearTimeout(o),u=0,i=l=r=o=void 0}function T(){return o===void 0?s:k(L1())}function E(){var M=L1(),F=g(M);if(i=arguments,r=this,l=M,F){if(o===void 0)return p(l);if(f)return clearTimeout(o),o=setTimeout(w,e),m(l)}return o===void 0&&(o=setTimeout(w,e)),s}return E.cancel=x,E.flush=T,E}var Sw=_T;const Cw=Zn(Sw);var VT=Sw,GT=jp,UT="Expected a function";function qT(t,e,n){var i=!0,r=!0;if(typeof t!="function")throw new TypeError(UT);return GT(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),VT(t,e,{leading:i,maxWait:e,trailing:r})}var KT=qT;const ZT=Zn(KT),Ao=799,JT=690,Jt=(t=Ao)=>{if(typeof window>"u"||typeof document>"u")return!1;const e=document.documentElement.clientWidth<=t;return("ontouchstart"in window||navigator.maxTouchPoints>0)&&e},ot=(t=JT)=>{const[e,n]=v.useState(void 0),i=v.useCallback(ZT(()=>{typeof window<"u"&&n(window.matchMedia(`(min-width: ${t}px)`).matches)},300),[t]);return v.useEffect(()=>{if(typeof window<"u")return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[t,i]),e},Ew=t=>{if(!t)return 0;const e=t.split("/").pop(),n=Number(e);return isNaN(n)?0:n},QT=(t,e="de-DE")=>new Intl.NumberFormat(e,{currency:"EUR",style:"currency"}).format(t/100),Pl=t=>typeof t=="string"?t:t.src,Ne=(t,e="de-DE")=>t[e],En=(t,e,n="*****")=>{if(typeof e=="string"){const i=new RegExp(`\\{${e}\\}`,"g");return t.replace(i,n)}else return Object.entries(e).reduce((i,[r,a])=>{const s=new RegExp(`\\{${r}\\}`,"g");return i.replace(s,a)},t)},YT=(t,e,n="keypress")=>{v.useEffect(()=>{const i=Array.isArray(t)?t:[t],r=a=>{i.includes(a.key)&&(a.preventDefault(),e(a))};return window.addEventListener(n,r),()=>{window.removeEventListener(n,r)}},[t,e,n])};function Sd(t){if(!t)return null;const e=t.match(/^gid:\/\/([^/]+)\/([^/]+)\/(.+)$/);if(!e)return null;const[,n,i,r]=e,a=/^\d+$/.test(r)?parseInt(r,10):void 0;return{id:r,model:i,namespace:n,numericId:a}}function XT(t){const e=Sd(t);return(e==null?void 0:e.numericId)??null}function $T(t,e="de-DE",n="EUR"){if(t==null)return"Zu verschenken";const i=t/100;return new Intl.NumberFormat(e,{currency:n,maximumFractionDigits:2,minimumFractionDigits:0,style:"currency"}).format(i)}function eM(t,e="Zu verschenken"){return!t||t===0?e:$T(t)}function tM(){}var nM=tM;const Sl=Zn(nM),Tw=v.createContext({navigate:()=>Sl}),St=()=>{const{navigate:t}=v.useContext(Tw);return v.useCallback((e,n)=>{t(e,n)},[t])},Mw="data:image/webp;base64,UklGRiILAABXRUJQVlA4WAoAAAAQAAAAZQQA4gEAQUxQSFIAAAABFyAQSFKffI2ICAdFbSM5r4VYjj+ifo7o/wSMnJbBf/zHf/zHf/zHf/zHf/zHf/zHf/zHf/zHf/zHf/zHf/zHf/zHf/zHf/zHf/zHf/zHf4cCVlA4IKoKAAAQtACdASpmBOMBPjEYi0SiIaEQGgQgIAMEtLd9Ww/7sHIiX7i/Y/WB1A/p7G973x3mygPlx+zfa5wAH6Jf1/dHfql+1XvW/4D1AegB+o3Wd+gB5ZP7AfCJ+0H7neylq29l1F2/HLHiNmogKxRKvNNZ06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp0cdZ/7gnBN/0BmrG5vNNZ06dOnTp06dOnTp06dOnTp06dOnTp06dOjov2UI1msCr5K31tgeJDUntPzFiF8Tl+d3xasYsQvicvzu+LVjFiF8Tl+d3xasYsQvicvzu+LVjE/uBDQEzzNfTp06dOnTp06dOnTp06dOnTo65zxHVLJHScFMZZlx+ISciqw3+DJORT6IGsAjVzT3GolXmms6dOnTp06dOnTp06OuZ1lumUVMPI9cve4JwTgnBOCcE4JwTgnBOCcE4JwTgnBOCcE4JwTgBzns+RiLubzTWdOnTp06dOnTp06dOm+nb2JrkNksJqMA+7mVosgwW946q7L3HmPMeY8x5jzHmPMeY8x5jzHmPMeY8x5jzHlyxPP04BC01nTp06dOnTp06dOnTp06b5zHXV2H7b23tdQObN/LOZzACJMOa8h0Veaazp06dOnTp06dOnTp06dOnTp06dN/Ohg6KONQSRaax3AcxVbFmCIKYhL1A40C1UV1/mms6dOnTp06dOnTp06dOnTp06dOnTp03jOGwC00HE0uqgJsUgHMZHYmY0SF5VPqEcnXxKRIPNDGoERXPTtrjSNgLv1FV9PcaiVeaazp06dOnTp06dOoHe/iYMqn60IhaC9DjeFW8o9Q/1Ba4LH9GRFjaua1qRWG/wZJyCASV+lOnTp06dOnTp06dOnTp06dOnTp2DuaNSY2t2GNDUBRbsCEgEdFnMyYu6OSWZcfiEnIqrnmtu5X09xqJV5prOnTp06dOnTp06VkUS0MBym4Vn0ILcSeeksy4/EJORVYb/BknIqrxWZxDwdfTp06dOnTp06dOnTp06dOnS89KD4AS26Lj/yfGlgZp7jUSrzTWdOnTp06dOnTp06dOnTp06dOnTp06PHoc//Muh5zT3GolXmms6dOnTp06dOnTp06dOnTp06dOnTSeHXoeQmRkx+chbecQk5FVhv8GSciqw3+Bha29tNZ06dOnTp06dOnTp06dOnTp06gd6X7wxTyj+4EJORVYb/BknIqsN/gcSV3FEq801nTp06dOnTp06dOnTp06gd8HWHUkfWLtOvxCTkVWG/wZJyKrDfwKNcR5p7jUSrzTWdOnTp06dOnTp05nJQ7G0468bdNtVbdbehDlnprtvQhyz0123oQurlJmzGolXmms6dOnTp06dOnTp06dNKsJ3r5FwK9ELfN8OgcJzKx4GD/8wcoTbB/+YOUJtg4Rdzeaazp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTp06dOnTfAAA/v/4ZWAAAAAAAAAAAAAAAAAABlsE/F49wncaRYOn0HIgONBEmiPAXMgKn1C/87TSNBkyYGVUJ/yRkS5e2Xcdy1lkhthuLU80JBP/6l8jTOYAEGYo++U/hVRdJxBra4SauXzeuWF0y0Z4Cg4u9+ZsVhF5HXOD08ZpLGUrxkgBiWY7+Bn5+TZVPnXznCJ8vMBXWbEnPHaF616ASRcKyW/+UK4YEf9UKzbAABVJfBdw8tne8t/1ZCx9yXwAE90dLQJzl+eGWPQFDhTavaFAWldIckw9+mRe1kW3AGyIDTKAiGAQWyyxk2vGTa8ZNrxk2vGTa8ZNrvEaflSPaXCqELJYABzrIkrb7171OTIxUyIvv/ZDKR5JyRrt5BYaemMLzBpvcM3cuVJxOgfVW2heNdlIS4hghghghghghgl0+bKvMLdhOyBy+o+h00r7s4KvP976mD211MUCB0cWsn12LF2yOAj/WjhnHWIPwWtFMrAp72STaQ/0JdrzbSt2+EqnI0Q4Vur2oTIEQ2I7iNFW3v5fiCFPy/CFcgF88msvGjPvGRy8hWRFxkrW86brioUBPHLlKFAKCixcZrVjQXWQNoveB/zG3MfaAP6ED2SJrH+ntufHCyhRR280XM9yO0s/nslYx/r6Hwevx7K4Q/+wXHm2nI5Acn0wIuyzwfyGBblDgDqqXFHr2Kb15+3lVZdp/zV2B4KFHEE+1oFsPZX3/1Pf8qvCLFwxyjaonXXMBe/LE/BAPToABOfVPZ0pTdt5oFkPtu45nH+8Xr3HKGkByfTAi7LPTCBciYfzft5NE+3TY0Wpr+2wgwDzEsaTq4RsJ0sdNl4oX1IFuf+VpVqhL3yVYnoTKBn6AkCjs/fkedLd8YA65t7YYQ7LHoZ/XNvbDCHZY9DOwvExxBfgB8PTqPlUt4R10TUrCQLgM7lP/1c/XJMG3jXwP4X93vkn+WGu8LVg0VSInlLL6zkOqKGRpJvqbQ+AB3jxIcVvTcv/kt624Q5Wrp5pKu0fJuYQHGoNPhqAg4KJjlTJwUF2IFuQxGcC1jBXxHg1nmicLh1CVDrGHd8Paa9o06Z/RLh+Z0XkvicACfEa4U+wJvoesv72R4ACpYf88GFBmscu+fS+92sPxyyLXC4TT2fa6DixkDtAnophRJP5WfhkOGQjPefYWGuxDzsWS60tXNFh2xVTkKAVjdnyeduJpmgSC3+7SB6LRq9/APkTBOToSZGZU6xPvTwfNGBjQFO+5h3VGi/1JAoiRQUT3nmRJqwJDB59wFPMWGR8sduSLfRe7sOYnl04SRJSZkWuFwuFwuE41+SYR2AA0pYoXHQOv9ZN2McOYWqiQfyVdQtI5uIO3KrCtf//9oRxwCNNXS8naa4xIqGdC9CAi17QG8KAKjt/bCbdv0IP8TfeJbMqpVKpVKozicu98T1SQFq5ZWccOWK/ZBQAVunBZ+pqGC4JVCHAAADiynlxcHm6NICnIWPFPnAAAKBzKxg7uUAAEOnK40iupvAmzLnSbumpw2nT9I2h9sHrLCQ/vWKAWH8f4M2VRass878KdogIIhHVJGHdwdX75qXiJ+010g2Bti47za9OgaHjUBZnF2myfnyESY9k1i4RJiESqdGuiOcC9Kp0a6I5wL0qnRrojnAvSkbr1gZtd3PEelY4ALPNkO/ygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",iM="_sheet__header_114fy_146",rM="_sheet__content_114fy_153",aM="_sheet__content__sticker_114fy_166",sM="_sheet__content__headline_114fy_169",oM="_sheet__content__label_114fy_178",lM="_sheet__content__button_114fy_181",uM="_sheet__image_114fy_188",Tn={sheet__header:iM,sheet__content:rM,sheet__content__sticker:aM,sheet__content__headline:sM,"sheet__content__headline--error":"_sheet__content__headline--error_114fy_172",sheet__content__label:oM,sheet__content__button:lM,sheet__image:uM},cM={"de-DE":{loading:{title:"Dein Beitrag wird gleich hervorgehoben."},success:{label:"Die Zahlung war erfolgreich.",title:"Dein Angebot wird jetzt hervorgehoben.",cta:"Zum Marktplatz"},error:{text:`**Dein Angebot ist online, aber ohne Hervorhebung.**
2
- Schließe jetzt deine Zahlung ab.`,title:"Zahlung unterbrochen",cta:"Zahlung abschließen"}}},Wa=Ne(cM),dM=()=>h.jsxs(h.Fragment,{children:[h.jsx("div",{className:Tn.sheet__image,children:h.jsx(C.Image,{src:Pl(Mw),alt:"highlight illustration"})}),h.jsx("div",{className:Tn.sheet__content,children:h.jsx(C.Typography,{type:"h3",className:Tn.sheet__content__label,children:Wa.loading.title})})]}),fM=()=>{const t=St(),e=()=>t("/feed/marketplace");return h.jsxs("div",{className:Tn.sheet__content,children:[h.jsx("div",{className:Tn.sheet__content__sticker,children:h.jsx(C.Sticker,{icon:"checkmark",size:"large",color:"green"})}),h.jsx(C.Typography,{type:"body-large",className:Tn.sheet__content__label,children:Wa.success.label}),h.jsx(C.Typography,{type:"h3",className:Tn.sheet__content__headline,children:Wa.success.title}),h.jsx("div",{className:Tn.sheet__content__button,children:h.jsx(C.ButtonPrimary,{text:Wa.success.cta,onClick:e,size:"medium"})})]})},hM=({onClick:t})=>h.jsxs("div",{className:Tn.sheet__content,children:[h.jsx("div",{className:Tn.sheet__content__sticker,children:h.jsx(C.Sticker,{icon:"error",size:"large",color:"orange"})}),h.jsxs("div",{className:Tn["sheet__content__headline--error"],children:[h.jsx(C.Typography,{type:"h3",children:Wa.error.title}),h.jsx(C.Typography,{type:"body-regular",markdown:!0,children:Wa.error.text})]}),h.jsx("div",{className:Tn.sheet__content__button,children:h.jsx(C.ButtonSecondary,{text:Wa.error.cta,onClick:t,size:"medium",color:"lavender"})})]}),Aw=({isLoading:t,onCheckout:e,onDismiss:n,open:i,paymentInterrupted:r})=>{const a=ot(800);return h.jsx(C.Sheet,{open:i,onDismiss:n,header:h.jsx("div",{className:Tn.sheet__header,children:!t&&h.jsx(C.IconButton,{icon:"cross",size:"medium",onClick:n})}),content:r?h.jsx(hM,{onClick:e}):t?h.jsx(dM,{}):h.jsx(fM,{}),footer:h.jsx(h.Fragment,{}),bottomSheet:!a,breakpoint:"800"})},mM=async(t,e)=>(await ct.API.getApi().POST("/api/core/v3/posts/{post_id}/payment_intent",{body:{payment_intent:{product_id:e}},params:{path:{post_id:Number(t)}}})).data,pM=async t=>{const e=await ct.API.getApi().GET("/api/core/v3/payment_intents/{payment_intent_id}/chargebee_confirmation/new",{params:{path:{payment_intent_id:t}}});if(!(e!=null&&e.data))throw new Error("No data returned from chargebee confirmation endpoint");return{expires_at:e.data.expires_at,id:e.data.hosted_page_id,url:e.data.checkout_url}},Pw=t=>{const[e,n]=v.useState(!1),[i,r]=v.useState(!1),[a,s]=v.useState(""),[o,l]=v.useState(null),[u,c]=v.useState(null),f=zp.useOpenCheckout(),d=v.useCallback(async(w,k,x)=>{const T=k!==(u==null?void 0:u.productId);if(x&&l(x),c({postId:w,productId:k}),!f){console.error("Chargebee checkout instance not available");return}let E=a;if(!a||T){if(!w||!k){console.error("Post ID or Product ID not provided");return}n(!0);try{const M=await mM(w,k);if(!M)return console.error("No payment intent ID returned from API");E=M.id,s(E)}catch{r(!0)}finally{n(!1)}}f({getHostedPage:async()=>pM(E),layout:"in_app",onClose:m,onError:m})},[f,a]),m=()=>{setTimeout(()=>{r(!0)},0)},p=()=>{r(!1),u&&d(u.postId,u.productId)},b=()=>{r(!1),o&&(t==null||t(o))};return{PremiumFeatureCheckoutModal:h.jsx(Aw,{isLoading:e,open:e||i,onDismiss:b,onCheckout:p,paymentInterrupted:i}),startCheckout:d}},gM=async t=>(await ct.API.getApi().GET("/api/core/v3/posts/{post_id}/payment_intent",{params:{path:{post_id:Number(t)}}})).data,vM=async(t,e)=>{const n=await ct.API.getApi().POST("/api/core/v3/payment_intents/{payment_intent_id}/chargebee_confirmation",{body:{chargebee:{hosted_page_id:t}},params:{path:{payment_intent_id:e}}});return n==null?void 0:n.data},bM=(t,e)=>{const[n,i]=v.useState(!1),[r,a]=v.useState(!1),s=v.useRef(!1);return v.useEffect(()=>{if(s.current)return;const l=new URLSearchParams(window.location.search).get("id");if(!l)return;let u=t;if(!u){const f=window.location.pathname.match(/\/feed\/(\d+)/);u=f==null?void 0:f[1]}if(!u)return;s.current=!0,a(!0),(async()=>{const f=await gM(u);if(!f){const m=new Error("No payment intent found");e==null||e.captureException(m,{hostedPageId:l,postId:u}),a(!1);return}if(!await vM(l,f.id)){const m=new Error("Payment confirmation returned empty response");e==null||e.captureException(m,{hostedPageId:l,paymentIntentId:f.id,postId:u}),a(!1);return}a(!1),i(!0)})().catch(f=>{e==null||e.captureException(f,{hostedPageId:l,postId:u}),a(!1)})},[t,e]),{isSuccess:n,loading:r}},wM=({isSuccess:t,loading:e})=>{const[n,i]=v.useState(!1),r=v.useCallback(()=>{i(!1);const a=new URL(window.location.href);a.searchParams.delete("id"),a.searchParams.delete("state"),window.history.replaceState({},"",a.toString())},[]);return t&&!n&&i(!0),h.jsx(Aw,{isLoading:e,open:n,onDismiss:r,onCheckout:Pf.noop,paymentInterrupted:!1})},yM="_root_n6fil_146",kM="_root__search_n6fil_149",yv={root:yM,root__search:kM};/*! *****************************************************************************
2
+ Schließe jetzt deine Zahlung ab.`,title:"Zahlung unterbrochen",cta:"Zahlung abschließen"}}},Wa=Ne(cM),dM=()=>h.jsxs(h.Fragment,{children:[h.jsx("div",{className:Tn.sheet__image,children:h.jsx(C.Image,{src:Pl(Mw),alt:"highlight illustration"})}),h.jsx("div",{className:Tn.sheet__content,children:h.jsx(C.Typography,{type:"h3",className:Tn.sheet__content__label,children:Wa.loading.title})})]}),fM=()=>{const t=St(),e=()=>t("/feed/marketplace");return h.jsxs("div",{className:Tn.sheet__content,children:[h.jsx("div",{className:Tn.sheet__content__sticker,children:h.jsx(C.Sticker,{icon:"checkmark",size:"large",color:"green"})}),h.jsx(C.Typography,{type:"body-large",className:Tn.sheet__content__label,children:Wa.success.label}),h.jsx(C.Typography,{type:"h3",className:Tn.sheet__content__headline,children:Wa.success.title}),h.jsx("div",{className:Tn.sheet__content__button,children:h.jsx(C.ButtonPrimary,{text:Wa.success.cta,onClick:e,size:"medium"})})]})},hM=({onClick:t})=>h.jsxs("div",{className:Tn.sheet__content,children:[h.jsx("div",{className:Tn.sheet__content__sticker,children:h.jsx(C.Sticker,{icon:"error",size:"large",color:"orange"})}),h.jsxs("div",{className:Tn["sheet__content__headline--error"],children:[h.jsx(C.Typography,{type:"h3",children:Wa.error.title}),h.jsx(C.Typography,{type:"body-regular",markdown:!0,children:Wa.error.text})]}),h.jsx("div",{className:Tn.sheet__content__button,children:h.jsx(C.ButtonSecondary,{text:Wa.error.cta,onClick:t,size:"medium",color:"lavender"})})]}),Aw=({isLoading:t,onCheckout:e,onDismiss:n,open:i,paymentInterrupted:r})=>{const a=ot(800);return h.jsx(C.Sheet,{open:i,onDismiss:n,header:h.jsx("div",{className:Tn.sheet__header,children:!t&&h.jsx(C.IconButton,{icon:"cross",size:"medium",onClick:n})}),content:r?h.jsx(hM,{onClick:e}):t?h.jsx(dM,{}):h.jsx(fM,{}),footer:h.jsx(h.Fragment,{}),bottomSheet:!a,breakpoint:"800"})},mM=async(t,e)=>(await ct.API.getApi().POST("/api/core/v3/posts/{post_id}/payment_intent",{body:{payment_intent:{product_id:e}},params:{path:{post_id:Number(t)}}})).data,pM=async t=>{const e=await ct.API.getApi().GET("/api/core/v3/payment_intents/{payment_intent_id}/chargebee_confirmation/new",{params:{path:{payment_intent_id:t}}});if(!(e!=null&&e.data))throw new Error("No data returned from chargebee confirmation endpoint");return{expires_at:e.data.expires_at,id:e.data.hosted_page_id,url:e.data.checkout_url}},Pw=t=>{const[e,n]=v.useState(!1),[i,r]=v.useState(!1),[a,s]=v.useState(""),[o,l]=v.useState(null),[u,c]=v.useState(null),f=zp.useOpenCheckout(),d=v.useCallback(async(w,k,x)=>{const T=k!==(u==null?void 0:u.productId);if(x&&l(x),c({postId:w,productId:k}),!f){console.error("Chargebee checkout instance not available");return}let E=a;if(!a||T){if(!w||!k){console.error("Post ID or Product ID not provided");return}n(!0);try{const M=await mM(w,k);if(!M)return console.error("No payment intent ID returned from API");E=M.id,s(E)}catch{r(!0)}finally{n(!1)}}f({getHostedPage:async()=>pM(E),layout:"in_app",onClose:m,onError:m})},[f,a]),m=()=>{setTimeout(()=>{r(!0)},0)},p=()=>{r(!1),u&&d(u.postId,u.productId)},b=()=>{r(!1),o&&(t==null||t(o))};return{PremiumFeatureCheckoutModal:h.jsx(Aw,{isLoading:e,open:e||i,onDismiss:b,onCheckout:p,paymentInterrupted:i}),startCheckout:d}},gM=async t=>(await ct.API.getApi().GET("/api/core/v3/posts/{post_id}/payment_intent",{params:{path:{post_id:Number(t)}}})).data,vM=async(t,e)=>{const n=await ct.API.getApi().POST("/api/core/v3/payment_intents/{payment_intent_id}/chargebee_confirmation",{body:{chargebee:{hosted_page_id:t}},params:{path:{payment_intent_id:e}}});return n==null?void 0:n.data},bM=(t,e)=>{const[n,i]=v.useState(!1),[r,a]=v.useState(!1),s=v.useRef(!1);return v.useEffect(()=>{if(s.current)return;const l=new URLSearchParams(window.location.search).get("id");if(!l)return;let u=t;if(!u){const f=window.location.pathname.match(/\/feed\/(\d+)/);u=f==null?void 0:f[1]}if(!u)return;s.current=!0,a(!0),(async()=>{const f=await gM(u);if(!f){const m=new Error("No payment intent found");e==null||e.captureException(m,{hostedPageId:l,postId:u}),a(!1);return}if(!await vM(l,f.id)){const m=new Error("Payment confirmation returned empty response");e==null||e.captureException(m,{hostedPageId:l,paymentIntentId:f.id,postId:u}),a(!1);return}a(!1),i(!0)})().catch(f=>{e==null||e.captureException(f,{hostedPageId:l,postId:u}),a(!1)})},[t,e]),{isSuccess:n,loading:r}},wM=({isSuccess:t,loading:e})=>{const[n,i]=v.useState(!1),[r,a]=v.useState(t),s=v.useCallback(()=>{const o=new URL(window.location.href);o.searchParams.delete("id"),o.searchParams.delete("state"),window.history.replaceState({},"",o.toString()),i(!1),a(!1)},[]);return r&&!n&&i(!0),h.jsx(Aw,{isLoading:e,open:n,onDismiss:s,onCheckout:Pf.noop,paymentInterrupted:!1})},yM="_root_n6fil_146",kM="_root__search_n6fil_149",yv={root:yM,root__search:kM};/*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5
5
  this file except in compliance with the License. You may obtain a copy of the
@@ -910,7 +910,7 @@ Body: ${t.body}
910
910
 
911
911
  Reactions: ${t.counters?Object.values(t.counters).reduce((n,i)=>n+i,0):0}
912
912
  `})},gpe="_root_g4rwp_146",e0={root:gpe},NS=({ads:t,bookmarks:e,feedItems:n,feedType:i,onCreateContent:r,viewMode:a=bp.grid})=>{if(!(n!=null&&n.length))return null;const s=a===bp.grid?rle(n,t):ole(n,t);return s?h.jsx("section",{className:e0.root,children:s.map((o,l)=>{switch(o.type){case"grid-feed-ad":return h.jsx("div",{className:e0.listItem,children:o.content},`grid-feed-item-${l}`);case"grid-feed-aggregator":return h.jsx(mpe,{bookmarks:e,feedType:i,items:o.items,onCreateContent:r||o.onCreateContent},`grid-feed-item-${l}`);case"grid-feed-message":return h.jsx("div",{className:e0.listItem,children:h.jsx(ppe,{hoodMessage:o.hoodMessage})},`grid-feed-item-${l}`)}})}):null},vpe=t=>`cross-sell_aggregator_${t??"free"}`,bpe="_root_1b0j6_146",wpe="_root__body_1b0j6_154",ype="_root__body__header_1b0j6_157",kpe="_root__body__header__controls_1b0j6_167",xpe="_navigation_1b0j6_177",Nr={root:bpe,root__body:wpe,root__body__header:ype,root__body__header__controls:kpe,navigation:xpe,"swiper-slide":"_swiper-slide_1b0j6_186"};function DS({category:t,categoryLink:e,categorySlug:n,className:i,items:r,linkLabel:a}){const s=v.useRef(null),o=v.useRef(null),l=v.useRef(null),u=v.useRef(null),c=Un.useOnScreen(u,!0),f=Un.useTrack(),d=St(),{highlightVariant:m}=V2(),p=vpe(n);v.useEffect(()=>{c&&f("view",{element_name:p})},[c]);const b=()=>{d(e),f("click",{click_name:`${p}_all`,element_name:`${p}`})};function g(){return h.jsx(C.CardHeader,{headline:t??"Neue Angebote",type:"h4",className:Nr.root__body__header,rightElement:h.jsxs("div",{className:Nr.root__body__header__controls,children:[h.jsx(C.TextButton,{color:"blue",text:a,size:"medium",onClick:b}),h.jsxs("div",{className:Nr.navigation,children:[h.jsx("div",{ref:o,children:h.jsx(C.IconButton,{icon:"chevron_left",size:"medium",className:Nr.arrow,ariaLabel:"Previous"})}),h.jsx("div",{ref:l,children:h.jsx(C.IconButton,{icon:"chevron_right",size:"medium",className:Nr.arrow,ariaLabel:"Next"})})]})]})})}function w(){const k=()=>{f("click",{click_name:`${p}_item`,element_name:p})};return h.jsx(Uu,{ref:s,init:!1,modules:[d1,f1],slidesPerView:"auto",spaceBetween:8,slidesOffsetBefore:12,slidesOffsetAfter:12,onBeforeInit:x=>{x.params.navigation.nextEl=l.current,x.params.navigation.prevEl=o.current},navigation:{nextEl:l.current,prevEl:o.current},children:r.map((x,T)=>h.jsx(qu,{tabIndex:0,className:Nr["swiper-slide"],children:h.jsx(_2,{id:x.id,title:x.title,image:x.image,reserved:x.reserved,price:x.price,timeStamp:x.timeStamp,onClick:k,reservedText:"Reserviert",highlightAbTest:m,premiumFeature:x.premiumFeature})},T))})}return h.jsx("div",{ref:u,"data-testid":"marketplace-aggregator-card",children:h.jsxs(C.Card,{className:X(Nr.root,i),responsive:!0,borderRadius:!0,children:[g(),h.jsx(C.CardBody,{className:Nr.root__body,children:w()})]})})}const Spe=({handleReport:t,id:e,isAuthenticated:n,open:i})=>{const[r,a]=v.useState(!1),[s,o]=v.useState(null),[l,u]=v.useState(null),[c,f]=v.useState(void 0);return v.useEffect(()=>{i&&(a(!0),o(null),Promise.allSettled([je.getComplaintReasons(),...n?[ct.API.getApi().GET("/api/core/v3/profile",{})]:[]]).then(d=>{const[m,p]=d;if(m.status==="rejected"||!m.value){o("Failed to load complaint reasons");return}u(m.value.complaint_reasons),n&&p&&(p.status==="fulfilled"&&p.value.data?f({email:p.value.data.email,firstname:p.value.data.firstname,id:p.value.data.id,lastname:p.value.data.lastname}):p.status==="rejected"&&console.warn("Failed to fetch user profile, continuing without pre-filled data:",p.reason))}).catch(d=>{o("An unexpected error occurred"),console.error("Error in complaint modal setup:",d)}).finally(()=>{a(!1)}))},[i,n]),i?r?h.jsx("div",{className:"complaint-modal-loading",children:"Loading..."}):s||!l?h.jsx("div",{className:"complaint-modal-error",children:s||"Unable to load complaint form"}):h.jsx(J9,{subjectId:e,handleModalClick:t,open:i,complaintReasons:l,reporter:c}):null},Cpe="_body_1o0zo_146",Epe={body:Cpe},Tpe=({handleClose:t,id:e,open:n})=>{const i=St(),r=()=>{je.muteFeedItem({id:e}).then(()=>{i("/feed")}).catch(a=>{console.log(a)})};return h.jsx(C.Modal,{headerTitle:"Möchtest du diesen Inhalt ausblenden?",onClose:t,open:n,modalBody:h.jsx("div",{className:Epe.body,children:h.jsx(C.Typography,{type:"body-regular",children:"Du kannst die ausgeblendeten Inhalte in deinen Einstellungen jederzeit wieder einblenden."})}),modalFooter:h.jsxs(h.Fragment,{children:[h.jsx(C.TextButton,{onClick:t,color:"blue",size:"large",text:"Abbrechen"}),h.jsx(C.ButtonPrimary,{onClick:r,text:"Bestätigen"})]})})},Mpe="_modalBody_mjsqw_146",Ape="_sheetBody_mjsqw_151",n4={modalBody:Mpe,sheetBody:Ape},b1=({cancelText:t,content:e,footer:n,handleClose:i,open:r,title:a})=>{const s=()=>h.jsx(C.CardHeader,{headline:a,as:"h2",rightElement:h.jsx(C.IconButton,{ariaLabel:"close-sheet",onClick:i,icon:"cross",size:"medium"})});return Jt()?h.jsx(C.BottomSheet,{open:r,onClose:i,sheetBody:h.jsx("div",{className:n4.sheetBody,children:e}),sheetHeader:s(),footer:n}):h.jsx(C.Modal,{open:r,onClose:i,modalBody:h.jsx("div",{className:n4.modalBody,children:e}),headerTitle:a,modalFooter:h.jsxs(h.Fragment,{children:[h.jsx(C.TextButton,{onClick:i,color:"blue",size:"large",text:t||"Abbrechen"}),n]})})},Ppe="_body__notice_132d7_149",zpe={body__notice:Ppe},Fpe="_infoList_1no4o_146",Lpe="_infoList__data_1no4o_149",jpe="_row_1no4o_153",Ipe="_link_1no4o_157",_c={infoList:Fpe,infoList__data:Lpe,row:jpe,link:Ipe},Rpe=({post:t})=>{const e=[{text:"Status",value:t.status},{text:"Letzte Reaktion",value:mp(t.updatedAt)},{text:"Erstellt",value:mp(t.createdAt)},{href:t.author.url,text:"Von",value:t.author.name},{text:"Sichtbarkeit",value:h.jsxs("span",{children:[t.hoodTitle," & Umgebung"]})}];return h.jsx("ul",{className:_c.infoList,children:e.map((n,i)=>h.jsxs("li",{className:_c.row,children:[h.jsx(C.Typography,{type:"body-semibold",children:n.text}),": ",n.href?h.jsx(C.TextButton,{className:_c.link,color:"deepPurple",size:"link",text:n.value,href:n.href}):h.jsx(C.Typography,{type:"body-regular",className:_c.infoList__data,children:n.value})]},i))})},Npe="_body_132d7_146",Dpe={body:Npe},Bpe=({handleClose:t,open:e})=>h.jsx(C.Modal,{headerTitle:"Öffentliche Beiträge. Was ist das?",onClose:t,open:e,modalFooter:h.jsx(h.Fragment,{children:h.jsx(C.TextButton,{onClick:t,color:"blue",size:"large",text:"Schließen"})}),modalBody:h.jsx("div",{className:Dpe.body,children:h.jsx(C.Typography,{type:"body-regular",children:'Um beispielsweise auch Personen außerhalb der Nachbarschaft zu erreichen, kann der Verfasser einen Beitrag als "Öffentlichen Beitrag" markieren. Dieser ist dann auch im nicht-eingeloggten Zustand auf der Nachbarschaftsseite sichtbar. Öffentliche Beiträge zeigen nur den Inhalt des Beitrags und den Namen der Nachbarschaft, aus der der Beitrag stammt. Namen, Profilbilder und Antworten anderer Nachbarn verbleiben geschützt in der Nachbarschaft und können von Außenstehenden nicht gesehen werden. So schützen wir euch und eure nachbarschaftliche Privatsphäre.'})})}),BS=({handleOpen:t,isPublic:e,item:n,open:i})=>{const[r,a]=v.useState(!1),s=()=>{a(!r)},o=()=>h.jsxs(h.Fragment,{children:[h.jsx(Rpe,{post:n}),e&&h.jsx("div",{className:zpe.body__notice,children:h.jsx(C.Notice,{context:"info",headline:"Hinweis",variant:"detailed",bodyText:"Dieser Beitrag wurde vom Verfasser als öffentlicher Beitrag erstellt und kann außerhalb von nebenan.de gesehen werden. Reaktionen und Antworten auf den Beitrag sind außerhalb der Nachbarschaft nicht sichtbar.",type:"embedded",cta:{onClick:s,text:"Mehr zu öffentlichen Beiträgen"}})})]});return h.jsx(h.Fragment,{children:r?h.jsx(Bpe,{open:r,handleClose:s}):h.jsx(b1,{handleClose:()=>t(!1),open:i,title:"Beitragsinformationen",content:h.jsx(o,{})})})},Ope=t=>{var e,n;return{author:{name:(e=t.author_details)==null?void 0:e.name,url:(n=t.author_details)==null?void 0:n.profile_url},createdAt:t.created_at,hoodTitle:t.hood_title,status:"aktiv",updatedAt:t.updated_at}},Hpe=({handleOpen:t,id:e,open:n})=>{const[i,r]=v.useState(null);if(v.useEffect(()=>{e&&je.getPost({id:e}).then(s=>{r(s)}).catch(s=>{console.log(s)})},[n,e]),!i)return;const a=Ope(i);return h.jsx(BS,{item:a,isPublic:Lse(i),handleOpen:t,open:n})},Wpe="_dropdownCluster_19fqo_146",_pe={dropdownCluster:Wpe},OS=({id:t,isAuthenticated:e,isMine:n})=>{const[i,r]=v.useState(!1),[a,s]=v.useState(!1),o=v.useRef(null),[l,u]=v.useState(!1),[c,f]=v.useState(!1),d=Un.useTrack(),m=St(),p=()=>{d("click",{click_name:"post_more_details",section:"marketplace_detail_page"}),r(!i)},b=()=>{r(!1),s(!a)},g=()=>{r(!1),u(!0)},w=()=>{r(!1),f(!c)},x=[{onClick:()=>{m(`/feed/${t}/edit`)},text:"Beitrag bearbeiten"}],T=[{onClick:b,text:"Inhalt melden"},...e?[{onClick:g,text:"Beitrag ausblenden"}]:[]],E=[{onClick:w,text:"Beitragsinformationen"}],M=[...n?x:T,...E];return h.jsxs(h.Fragment,{children:[h.jsx(Tpe,{id:t,handleClose:()=>u(!1),open:l}),h.jsx(Spe,{id:t,handleReport:b,isAuthenticated:e,open:a}),h.jsx(Hpe,{id:t,handleOpen:w,open:c}),h.jsx(C.Popup,{placement:"bottom-end",strategy:"fixed",open:i,offset:{crossAxis:0,mainAxis:-24},anchor:o.current,handleClickAway:()=>p(),children:h.jsx(C.DropdownCard,{onClose:()=>r(!1),headerProps:{text:"Schließen"},hasHeader:!0,className:_pe.dropdownCluster,items:M})}),h.jsx(C.IconButton,{ref:o,icon:"more_dots",size:"medium",onClick:p,ariaLabel:"action button"})]})},Vpe=({className:t,id:e,isAuthenticated:n,isMine:i})=>{const r=Un.useTrack(),a=()=>{window.history.back(),r("click",{click_name:"marketplace_detail_page_back_cta",section:"marketplace_detail_page"})},s=h.jsx(C.IconButton,{onClick:a,icon:"chevron_left",size:"medium",ariaLabel:"action button"});return h.jsx(C.CardHeader,{className:t,headline:"Marktplatz",leftElement:s,rightElement:h.jsx(OS,{id:e,isAuthenticated:n,isMine:i})})},Gpe="_root_j6qqv_146",Upe="_root__content_j6qqv_155",i4={root:Gpe,root__content:Upe},qpe=()=>{const t=St(),e=()=>{t("/feed/marketplace")};return h.jsx(C.Card,{className:i4.root,borderRadius:!0,responsive:!0,children:h.jsx(C.CardBody,{className:i4.root__content,children:h.jsx(C.EmptyState,{size:"large",buttons:[{buttonType:"primary","data-testid":"back-to-marketplace",onClick:e,text:"Zu deinem Marktplatz"}],primaryText:"Nichts gefunden?",secondaryText:"Es gibt noch viel mehr zu entdecken"})})})},Kpe="_modal_1xtjz_146",Zpe="_header_1xtjz_156",Jpe="_content_1xtjz_166",Qpe="_closeButtonContainer_1xtjz_185",Ype="_closeButton_1xtjz_185",Xpe="_swiper_1xtjz_196",$pe="_swiperSlide_1xtjz_200",ege="_navigation_1xtjz_210",tge="_pagination_1xtjz_233",nge="_footer_1xtjz_240",Rn={modal:Kpe,header:Zpe,content:Jpe,closeButtonContainer:Qpe,closeButton:Ype,swiper:Xpe,swiperSlide:$pe,navigation:ege,"navigation--hidden":"_navigation--hidden_1xtjz_221",pagination:tge,"pagination--hidden":"_pagination--hidden_1xtjz_236",footer:nge},r4=(t,e)=>{if(!Jt())return t.map((r,a)=>({hidden:!1,position:a,slideIndex:a,src:r,type:"image"}));const n=[],i=new Set(e==null?void 0:e.map(r=>r.position));return t.forEach((r,a)=>{let s=a;for(;i.has(s);)s++;i.add(s),n.push({hidden:!1,position:s,slideIndex:a,src:r,type:"image"})}),e==null||e.forEach(({position:r,render:a})=>{n.push({hidden:!1,position:r,render:a,type:"ad"})}),n.sort((r,a)=>r.position-a.position)},ige=({index:t,slides:e})=>{let n=0;if(!Jt())return n;e[t].type==="ad"&&(n+=1);const a=e.slice(0,t).filter(s=>s.type==="ad");return n+=a.length,n},t0=({activeIndex:t,slides:e})=>e.findIndex(n=>n.type==="image"&&n.slideIndex===t),rge=t=>t.length===0?t:[...t].sort((n,i)=>n.position-i.position).map((n,i)=>({...n,position:i})),HS=({activeIndex:t,ads:e,footerAd:n,images:i,onClose:r,open:a})=>{const s=r4(i,e),[o,l]=v.useState(null),u=v.useRef(null),c=v.useRef(null),f=v.useRef(null),[d,m]=v.useState(null),[p,b]=v.useState(s),g=t0({activeIndex:t,slides:s}),[w,k]=v.useState(g>=0?g:0),x=ot(800),T=()=>{b(r4(i,e))};v.useEffect(()=>{T()},[x]),v.useEffect(()=>{if(a){const P=t0({activeIndex:t,slides:s});k(P>=0?P:0)}},[a]),v.useEffect(()=>{if(!a||!o)return;const P=t0({activeIndex:t,slides:p}),z=p[P];m(z.type==="ad"?null:z.slideIndex),o.slideToLoop(P,0)},[p,a,o,t]);const E=P=>{const z=p[P.realIndex];k(z.position),m(z.type==="ad"?null:z.slideIndex)},M=()=>{const P=ige({index:w,slides:p});r(w-P)},F=P=>{const z=p.filter(R=>R.position!==P);b(rge(z))};return YT(["Escape","Esc"],M,"keyup"),i.length===0?null:h.jsx(Xa,{children:h.jsx(r9,{open:a,className:Rn.modal,children:h.jsxs("div",{className:Rn.content,children:[h.jsxs("div",{className:Rn.header,children:[h.jsxs(C.Typography,{type:"h5",className:X(Rn.pagination,{[Rn["pagination--hidden"]]:d===null}),children:[d?d+1:1," von ",i.length]}),h.jsx("span",{className:Rn.closeButtonContainer,children:h.jsx(C.IconButton,{ariaLabel:"Close",icon:"cross_circle",size:"large",onClick:M,className:Rn.closeButton})})]}),h.jsxs("div",{className:X(Rn.navigation,{[Rn["navigation--hidden"]]:p[w]&&p[w].type!=="ad"&&Jt()}),children:[h.jsx(C.CarouselNavigation,{direction:"left",ref:c}),h.jsx(C.CarouselNavigation,{direction:"right",ref:f})]}),h.jsx(Uu,{keyboard:{enabled:!0},onSwiper:l,className:Rn.swiper,ref:u,onRealIndexChange:E,init:!1,initialSlide:w,zoom:!0,modules:[I$,d1,f1,T$,A$],slidesPerView:1,loop:!0,draggable:!0,grabCursor:!0,onBeforeInit:P=>{P.params.navigation.nextEl=f.current,P.params.navigation.prevEl=c.current},children:p.filter(P=>!P.hidden).map((P,z)=>h.jsx(qu,{className:Rn.swiperSlide,children:P.type==="image"?h.jsx("div",{className:"swiper-zoom-container",children:h.jsx("img",{src:P.src})}):P.render({onHide:()=>F(P.position)})},z))}),p[w]&&p[w].type!=="ad"&&h.jsx("div",{className:Rn.footer,children:n==null?void 0:n.render({onHide:Pf.noop})})]})})})},WS=({ads:t=[],ctaSlot:e,footerAd:n,images:i,reserved:r,stickerSlot:a,type:s="slideshow"})=>{const[o,l]=v.useState(0),[u,c]=v.useState(!1),f=m=>{l(m),c(!0)},d=m=>{l(m),c(!1)};return h.jsxs("div",{children:[h.jsx(HS,{activeIndex:o,ads:t,footerAd:n,images:i,onClose:d,open:u}),h.jsx(C2,{activeIndex:o,ctaSlot:e,images:i,onImageClick:f,reserved:r,stickerSlot:a,type:s})]})},age="_root_bnp9i_146",sge="_root__cta_bnp9i_158",oge="_root__notice_bnp9i_161",n0={root:age,root__cta:sge,root__notice:oge},lge="_sheet__content_8odui_152",uge="_sheet__footer_8odui_160",cge="_sheet__body_8odui_174",dge="_sheet__body__headline_8odui_180",fge="_sheet__header_8odui_186",hge="_sheet__image_8odui_192",Ha={sheet__content:lge,sheet__footer:uge,sheet__body:cge,sheet__body__headline:dge,sheet__header:fge,sheet__image:hge},mge={"de-DE":{split_payment:{label:"Wähle aus, wie du deinen Beitrag hervorhebst.",title:"Mehr Sichtbarkeit, schnellerer Verkauf",cta:"Jetzt bezahlen {price}",cta_disabled:"Jetzt bezahlen"},success:{label:"Die Zahlung war erfolgreich.",title:"Dein Angebot wird jetzt hervorgehoben.",cta:"Zum Marktplatz"}}},Mf=Ne(mge),pge=({onChange:t,postId:e,selectedOption:n})=>h.jsxs("div",{className:Ha.sheet__content,children:[h.jsx("div",{className:Ha.sheet__image,children:h.jsx(C.Image,{src:Pl(Mw),alt:"highlight promo illustration"})}),h.jsxs("div",{className:Ha.sheet__body,children:[h.jsxs("div",{className:Ha.sheet__body__headline,children:[h.jsx(C.Typography,{type:"h3",children:Mf.split_payment.title}),h.jsx(C.Typography,{type:"body-regular",children:Mf.split_payment.label})]}),h.jsx(O2,{onChange:t,postId:e,includeNoneOption:!1,defaultValue:n})]})]}),gge=({onDismiss:t})=>h.jsx("div",{className:Ha.sheet__header,children:h.jsx(C.IconButton,{icon:"cross",size:"medium",onClick:t})}),vge=({onClick:t,selectedOption:e})=>{const{pill:n,value:i}=e||{pill:"",value:""},r=!i||i==="free",a=r?Mf.split_payment.cta_disabled:En(Mf.split_payment.cta,{price:n});return h.jsx("div",{className:Ha.sheet__footer,children:h.jsx(C.ButtonPrimary,{fullWidth:!0,disabled:r,size:"large",text:a,onClick:t})})},bge=({onDismiss:t,open:e,postId:n})=>{const[i,r]=v.useState(),{PremiumFeatureCheckoutModal:a,startCheckout:s}=Pw(),o=()=>{!i||!i.id||(t(),s(n,i==null?void 0:i.id))},l=u=>r(u);return h.jsxs(h.Fragment,{children:[h.jsx(C.Sheet,{sheetClassName:Ha.root__sheet,open:e,onDismiss:t,header:h.jsx(gge,{onDismiss:t}),breakpoint:"800",content:h.jsx(pge,{selectedOption:i,onChange:l,postId:n}),footer:h.jsx(vge,{selectedOption:i,onClick:o})}),a]})},wge=({chargebeeProviderConfig:t,featureAddons:e,isMine:n,postId:i})=>{const[r,a]=v.useState(!1),[s,o]=v.useState(!1),[l,u]=v.useState(n),c=Qe.useSnowplowTrack(),f=Ise(e);v.useEffect(()=>{if(!n)return;(async()=>{try{const b=await ES(i);if(!b)return;const g=b.some(({available:w})=>!w);o(g),u(!1)}catch(b){console.error("Failed to load premium feature products",b),u(!1)}})()},[i,n]);const d=()=>{c("click",{main:[new Qe.Click({name:"marketplace_pdp_upsell",value:"clicked"})]}),a(!0)},m=()=>a(!1);return!f&&!n?null:h.jsx(h.Fragment,{children:h.jsx("div",{className:n0.root,children:!l&&(s||f?h.jsxs(h.Fragment,{children:[h.jsx(C.Notice,{size:"small",variant:"simple",className:n0.root__notice,...n?{notificationBubble:{ariaLabel:"notice"}}:{icon:{name:"loudspeaker",size:"24"}},color:"green",headline:n?"Derzeit Hervorgehoben":"Aktuell häufiger angesehen!",cta:n?{color:"blue",onClick:d,rightIcon:h.jsx(C.Icon,{name:"chevron_right",size:"16"}),text:"Mehr"}:void 0}),r&&s&&h.jsx(O2,{hasPremiumFeature:s,postId:i,includeNoneOption:!1,onDismiss:m})]}):h.jsxs(h.Fragment,{children:[h.jsx(C.ButtonTertiary,{text:"Beitrag hervorheben",size:"small",color:"blue",onClick:d,className:n0.root__cta,leftIcon:h.jsx(C.Icon,{name:"rocket_outline",size:"16"})}),h.jsx(zp.ChargebeeProvider,{site:t.site,children:h.jsx(bge,{open:r,onDismiss:m,postId:i})})]}))})})},yge="_postAuthor_gsl0q_146",kge="_postAuthor__thumbnail_gsl0q_161",xge="_postAuthor__text_gsl0q_165",Sge="_postAuthor__author_gsl0q_173",Cge="_postAuthor__groupName_gsl0q_173",Ege="_postAuthor__metadata_gsl0q_176",Tge="_postAuthor__authorAlt_gsl0q_176",Mge="_postAuthor__icon_gsl0q_179",Age="_postAuthor__feedItemCategory_gsl0q_182",Pge="_postAuthor__rating_gsl0q_187",bn={postAuthor:yge,"postAuthor--hasBadge":"_postAuthor--hasBadge_gsl0q_152","postAuthor--hasFeedItemCategory":"_postAuthor--hasFeedItemCategory_gsl0q_155","postAuthor--hasThreeLines":"_postAuthor--hasThreeLines_gsl0q_158",postAuthor__thumbnail:kge,postAuthor__text:xge,postAuthor__author:Sge,postAuthor__groupName:Cge,postAuthor__metadata:Ege,postAuthor__authorAlt:Tge,postAuthor__icon:Mge,postAuthor__feedItemCategory:Age,postAuthor__rating:Pge},zge="_rating_1w32v_146",Fge="_rating__star_1w32v_151",Lge="_rating__overlay_1w32v_155",i0={rating:zge,rating__star:Fge,rating__overlay:Lge},jge=(t,e)=>y.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},y.createElement("g",{id:"star"},y.createElement("path",{id:"Vector",d:"M5.57967 1.69546C5.75161 1.34707 6.24842 1.34707 6.42036 1.69546L7.46087 3.80376C7.49501 3.87293 7.561 3.92088 7.63734 3.93197L9.96398 4.27005C10.3485 4.32592 10.502 4.79841 10.2238 5.0696L8.54019 6.71068C8.48495 6.76452 8.45975 6.8421 8.47279 6.91813L8.87022 9.23537C8.9359 9.6183 8.53398 9.91031 8.19009 9.72952L6.10908 8.63546C6.0408 8.59957 5.95923 8.59957 5.89095 8.63546L3.80994 9.72952C3.46605 9.91031 3.06413 9.6183 3.12981 9.23537L3.52724 6.91813C3.54028 6.8421 3.51508 6.76452 3.45984 6.71068L1.77626 5.0696C1.49805 4.79841 1.65157 4.32592 2.03605 4.27005L4.36269 3.93197C4.43903 3.92088 4.50502 3.87293 4.53916 3.80376L5.57967 1.69546Z",fill:"#D2D0DB",stroke:"#D2D0DB",strokeWidth:.703125}))),Ige=v.forwardRef(jge),Rge=({ariaLabel:t,className:e,max:n,value:i})=>{const r=Math.round(i/n*100);return h.jsxs("div",{className:X(i0.rating,e),"aria-label":t,children:[Array.from(Array(n).keys()).map((a,s)=>h.jsx(Ige,{className:i0.rating__star},s)),h.jsx("div",{className:i0.rating__overlay,style:{width:`${100-r}%`}})]})},_S=({author:t,className:e,feedItemCategory:n,groupName:i,metadata:r,onMoreClick:a,rating:s,showMoreIcon:o,thumbnail:l})=>{const c=v.useRef(null),[f,d]=v.useState(0),[m,p]=v.useState(0),b=()=>{p(window.innerWidth)};v.useEffect(()=>(b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}),[]),v.useEffect(()=>{c.current!==null&&d(c.current.offsetHeight)},[m]);const g=()=>{switch(l==null?void 0:l.thumbnailType){case"badge":return h.jsx(C.Badge,{...l});case"thumbnailCircular":return h.jsx(C.Thumbnail,{...l});case"thumbnailSquare":return h.jsx(C.Thumbnail,{...l});case"thumbnailWrapper":return h.jsx(C.ThumbnailWrapper,{...l})}},w=X(bn.postAuthor,{[bn["postAuthor--hasBadge"]]:(l==null?void 0:l.thumbnailType)==="badge",[bn["postAuthor--hasFeedItemCategory"]]:n,[bn["postAuthor--hasThreeLines"]]:f>36&&n},e),{children:k,...x}=t||{},{children:T,...E}=i||{};return h.jsxs("div",{className:w,children:[h.jsx(C.Button,{...l,className:bn.postAuthor__thumbnail,children:l&&g()}),h.jsxs("div",{ref:c,className:bn.postAuthor__text,children:[i&&h.jsx(C.Button,{...E,children:h.jsx(C.Typography,{type:"body-semibold",className:bn.postAuthor__groupName,children:T})}),h.jsx(C.Button,{...x,children:h.jsx(C.Typography,{type:"body-semibold",className:i?bn.postAuthor__authorAlt:bn.postAuthor__author,children:k})}),h.jsx(C.Typography,{type:"detail-regular",className:bn.postAuthor__metadata,children:r}),s&&h.jsx(Rge,{...s,className:bn.postAuthor__rating})]}),o&&h.jsx(C.IconButton,{size:"large",icon:"more_dots",ariaLabel:"Mehr",onClick:a,className:bn.postAuthor__icon}),n&&h.jsx(C.FeedItemCategory,{text:n,type:"closedPost",className:bn.postAuthor__feedItemCategory})]})},Nge="_actions_927th_146",Dge="_button_927th_152",a4={actions:Nge,button:Dge},Bge=({author:t,body:e,id:n,images:i,subject:r})=>{const a=Un.useTrack(),s=St(),o=()=>{s(`/messages/${t.associated_gid.replace("gid://nebenan/User/","")}`,{embedPost:{body:e,id:n,images:i,subject:r}}),a("click",{click_name:"contact_seller",section:"marketplace_detail_page"})};return h.jsx("div",{className:a4.actions,children:h.jsx(C.ButtonPrimary,{"data-testid":"contact-seller-button",className:a4.button,text:"Verkäufer kontaktieren",onClick:o})})},Oge="_actions_1904y_146",Hge={actions:Oge},Wge="_modalFooter_gw3ar_146",_ge={modalFooter:Wge},Vge=({handleClose:t,id:e,isFree:n,open:i})=>{const[r,a]=v.useState(!1),{trackEngagementEvent:s}=ME.useEngagement(),o=St(),l=vw.useQueryClient();function u(){je.deleteNewsFeed({id:e}).then(c=>{a(!0),n?s("MARKETPLACE_item_delete_free",{}):s("MARKETPLACE_item_delete_sale",{}),l.invalidateQueries({exact:!1,queryKey:["marketplace-feed"]}),l.invalidateQueries({exact:!1,queryKey:["own-marketplace-feed"]}),o("/feed")}).catch(c=>{console.error(c)})}return h.jsxs(h.Fragment,{children:[h.jsx(C.Snackbar,{leftIconLarge:"checkmark_circle",onClose:()=>a(!1),isOpen:r,textLabel:"Beitrag gelöscht"}),h.jsx(b1,{handleClose:t,open:i,title:"Bist du sicher, dass du diesen Beitrag löschen möchtest?",content:h.jsx(C.Typography,{type:"body-regular",children:'Bitte beachte, dass mit Klick auf "Löschen" alle Inhalte des Beitrags unwiderruflich gelöscht werden.'}),footer:h.jsx(C.ButtonPrimary,{className:_ge.modalFooter,color:"highlight",text:"Löschen",onClick:u})})]})},Gge=({id:t,isFree:e})=>{const[n,i]=v.useState(!1),r=()=>{i(!n)};return h.jsxs(h.Fragment,{children:[h.jsx(Vge,{open:n,handleClose:r,id:t,isFree:e}),h.jsx(C.ButtonSecondary,{size:"small",color:"green",text:"Löschen",onClick:r})]})},Uge="_button_vwj88_147",qge={button:Uge},Kge=({id:t})=>{const e=St();return h.jsx(C.ButtonTertiary,{className:qge.button,size:"small",onClick:()=>e(`/feed/${t}/edit`),color:"greyStrong",text:"Beitrag bearbeiten","data-testid":"edit-button"})},Zge=({handleReserve:t,id:e,isReserved:n})=>{const i=vw.useQueryClient(),r=async()=>{await je.updateFeedItem({hood_message:{outcome:n?Ase:Pse},id:e}).then(a=>{t&&t()}),i.invalidateQueries({exact:!1,queryKey:["marketplace-feed"]}),i.invalidateQueries({exact:!1,queryKey:["own-marketplace-feed"]})};return h.jsx(C.ButtonPrimary,{size:"small",onClick:()=>void r(),"data-testid":`reserve-button-${n?"activate":"reserve"}`,text:n?"Aktivieren":"Reservieren"})},Jge=({handleReserve:t,id:e,isFree:n,isReserved:i})=>h.jsxs("div",{className:Hge.actions,children:[h.jsx(Zge,{handleReserve:t,id:e,isReserved:i}),h.jsx(Gge,{id:e,isFree:n}),h.jsx(Kge,{id:e})]}),Qge=({author:t,body:e,className:n,handleReserve:i,id:r,images:a,isFree:s,isMine:o,isReserved:l,subject:u})=>h.jsxs("div",{className:n,children:[o&&h.jsx(Jge,{handleReserve:i,id:r,isFree:s,isReserved:l}),!o&&h.jsx(Bge,{author:t,id:r,body:e,images:a,subject:u})]}),Yge="_root_1xflp_146",Xge="_card_1xflp_151",$ge="_card__body_1xflp_154",e2e="_card__header_1xflp_160",t2e="_card__content_1xflp_169",n2e="_galleryContainer_1xflp_173",i2e="_imageGallery_1xflp_183",r2e="_remainingAds_1xflp_206",a2e="_relatedSections_1xflp_212",Ii={root:Yge,card:Xge,card__body:$ge,card__header:e2e,card__content:t2e,galleryContainer:n2e,imageGallery:i2e,remainingAds:r2e,relatedSections:a2e},s2e="_root_sl92n_146",o2e="_root__primary_sl92n_149",l2e="_embeds_sl92n_156",u2e="_modalBody_sl92n_163",c2e="_modalFooter_sl92n_172",d2e="_copyButton_sl92n_177",f2e="_divider_sl92n_181",h2e="_top_sl92n_191",m2e="_top__price_sl92n_195",p2e="_top__actions_sl92n_200",g2e="_title_sl92n_206",v2e="_bottom_sl92n_210",b2e="_bottom__category_sl92n_217",w2e="_bottom__timestamp_sl92n_222",y2e="_actions_sl92n_226",wt={root:s2e,root__primary:o2e,embeds:l2e,modalBody:u2e,modalFooter:c2e,copyButton:d2e,divider:f2e,top:h2e,top__price:m2e,top__actions:p2e,title:g2e,bottom:v2e,bottom__category:b2e,bottom__timestamp:w2e,actions:y2e},k2e=({bookmarked:t,chargebeeProviderConfig:e,disablePremiumFeature:n,feedItem:i,isAuthenticated:r=!1,isMine:a=!1})=>{var P,z,R,A,L,I,B,j;const[s,o]=v.useState(!1),[l,u]=v.useState(!1),[c,f]=v.useState(((P=i.marketplace_details)==null?void 0:P.outcome)==="item_reserved"),[d,m]=C.useCopyToClipboard(),p=Un.useTrack(),b=`${window.location.origin}/feed/${i.id}`,g=i.content_type==="marketplace_free",w=()=>{p("react",{reaction_type:"share",section:"marketplace_detail_page"}),o(!0)},k=()=>o(!1),x=()=>m(b),T=()=>{f(!c)},E=()=>{u(!0),o(!1)};v.useEffect(()=>{d&&E()},[d]);const M=()=>h.jsxs("div",{className:wt.modalBody,children:[h.jsx(C.Typography,{type:"body-regular",className:wt.modalBody__text,children:h.jsx(C.Markdown,{text:`Dieser Beitrag ist öffentlich und kann auch von Personen angesehen werden, die nicht bei nebenan.de registriert sind.
913
- Namen und Kommentare auf den Beitrag sind nicht öffentlich sichtbar.`})}),h.jsx("div",{className:wt.copyButton,children:h.jsx(C.CopyLinkButton,{link:b,onClick:E})})]}),F=()=>{var O;(O=i.author_details)!=null&&O.profile_url&&(window.location.href=i.author_details.profile_url,p("click",{click_name:"post_author_profile",section:"marketplace_detail_page"}))};return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:Ii.galleryContainer,children:h.jsx("div",{className:Ii.imageGallery,children:h.jsx(WS,{images:(i.images||[]).map(O=>typeof O=="string"?O:(O==null?void 0:O.url)||""),reserved:c,stickerSlot:h.jsx(h.Fragment,{})})})}),h.jsxs("div",{className:Ii.card__content,children:[!n&&h.jsx(wge,{chargebeeProviderConfig:e,postId:`${i.id}`,isMine:a,featureAddons:(i==null?void 0:i.feature_addons)||[]}),h.jsxs("div",{className:wt.root,children:[h.jsx(C.Snackbar,{leftIconLarge:"checkmark_circle",isOpen:l,textLabel:"Link kopiert",onClose:()=>u(!1)}),h.jsx(b1,{title:"Teile diesen öffentlichen Beitrag",handleClose:k,open:s,content:M(),footer:h.jsx("div",{className:wt.modalFooter,children:h.jsx(C.ButtonPrimary,{text:"Link kopieren",onClick:x})})}),h.jsxs("div",{className:wt.root__primary,children:[(i.content_type==="marketplace_free"||i.content_type==="marketplace_sell"&&((z=i.marketplace_details)==null?void 0:z.price_in_cents)!==null)&&h.jsxs("div",{className:wt.top,children:[h.jsx(C.Typography,{type:"h3",className:wt.top__price,children:eM((R=i.marketplace_details)==null?void 0:R.price_in_cents)}),h.jsxs("div",{className:wt.top__actions,children:[!a&&r&&h.jsx(yp,{id:i.id,bookmarked:t}),h.jsx(C.IconButton,{onClick:w,icon:"share_arrow_outline",size:"medium",ariaLabelledBy:"share"})]})]}),h.jsxs("div",{className:wt.top,children:[h.jsx(C.Typography,{type:"h3",className:wt.title,children:i.subject}),i.content_type==="marketplace_sell"&&((A=i.marketplace_details)==null?void 0:A.price_in_cents)===null&&h.jsxs("div",{className:wt.top__actions,children:[!a&&r&&h.jsx(yp,{id:i.id,bookmarked:t}),h.jsx(C.IconButton,{onClick:w,icon:"share_arrow_outline",size:"medium",ariaLabelledBy:"share"})]})]}),h.jsxs("div",{className:wt.bottom,children:[h.jsx(C.Typography,{type:"body-regular",className:wt.bottom__category,"data-testid":"marketplace-body-category",children:((I=(L=i.marketplace_details)==null?void 0:L.category)==null?void 0:I.title)||"Sonstiges"}),h.jsx(C.Typography,{type:"detail-medium",className:wt.bottom__timestamp,children:i.created_at?new Date(i.created_at).toLocaleDateString("de-DE"):""})]})]}),i.author_details&&h.jsx(Qge,{className:wt.actions,handleReserve:T,isReserved:c,author:i.author_details,images:i.images,body:i.body,isFree:g,isMine:a,id:i.id,subject:i.subject}),h.jsx(C.BodyText,{type:"post",bodyText:i.body}),!!((B=i.embeds)!=null&&B.length)&&h.jsx("div",{className:wt.embeds,children:(j=i.embeds)==null?void 0:j.map((O,N)=>h.jsx(Lp,{onClick:()=>window.open(O.cta_url||""),image:{alt:O.title||"",src:O.image_url||""},description:O.description||"",headline:O.title||"",url:O.cta_url||""},N))}),i.author_details&&!a&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:wt.divider,children:h.jsx(C.Divider,{})}),h.jsx(_S,{className:wt.author,author:{children:i.author_details.name,href:i.author_details.profile_url||"#",onClick:F},metadata:i.author_details.hood_title,thumbnail:{badgeIcons:i.author_details.ben?["is_super_neighbour"]:i.author_details.supporter?["is_supporter"]:[],children:h.jsx(C.UserAvatar,{size:"48",alt:i.author_details.name,userImageSrc:i.author_details.picture_url||"",userId:parseInt(i.author_details.associated_gid)||0}),onClick:F,thumbnailType:"badge"}})]})]})]})]})},s4=new Map,x2e=async t=>{if(!t)return!1;const e=s4.get(t);if(e!==void 0)return e;const n=(async()=>{try{const i=await ct.API.getApi().GET("/api/core/v3/profile",{});if(!i.data)return!1;const r=i.data.id,a=XT(t);return a?a===r:!1}catch(i){return console.error("Error checking author:",i),!1}})();return s4.set(t,n),n},S2e="_root_1bugj_146",C2e={root:S2e},E2e=({isAuthenticated:t=!1,section:e})=>{const[n,i]=v.useState([]),{more_cta_text:r,more_cta_url:a,section_headline:s,section_identifier:o}=e,l=`/feed/${a.split("/").pop()}`;return v.useEffect(()=>{if(!t||!e.posts.length)return;const u=e.posts.map(c=>c.id).filter(Boolean);ct.API.getApi().GET("/api/core/v3/interactions",{params:{query:{format:"json",post_ids:u.join(",")}}}).then(c=>{if(c.data){const f=c.data.filter(d=>d.bookmark).map(d=>d.hood_message_id);i(f)}}).catch(c=>{console.error("Failed to fetch bookmark status:",c)})},[t,e.posts]),h.jsx(DS,{className:C2e.root,category:s,categorySlug:o,categoryLink:l,linkLabel:r,items:e.posts.map(u=>({bookmarked:n.includes(u.id),id:u.id,image:Fse(u),price:Rse(u),reserved:!1,reservedText:"Reserviert",timeStamp:u.created_at,title:u.subject}))})};class T2e extends v.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{error:e,hasError:!0}}componentDidCatch(e,n){console.error("MarketplaceDetailPage Error:",e,n)}render(){return this.state.hasError?h.jsx(C.EmptyState,{stickerProps:{color:"green",icon:"pin"},size:"large",primaryText:"Etwas ist schiefgelaufen",secondaryText:"Bitte versuche es später erneut oder kontaktiere unseren Support."}):this.props.children}}async function M2e({ads:t=[],bookmarked:e,config:n,disablePremiumFeature:i,feedItem:r,isAuthenticated:a=!1,relatedSections:s=[],renderAdSlot:o}){var c;const l=(r==null?void 0:r.level_of_detail)==="not_in_reach",u=a?await x2e((c=r==null?void 0:r.author_details)==null?void 0:c.associated_gid):!1;return h.jsx(T2e,{children:h.jsxs("div",{className:Ii.root,children:[h.jsx(C.Card,{className:Ii.card,responsive:!0,borderRadius:!0,withoutPadding:!0,children:h.jsxs(C.CardBody,{className:Ii.card__body,withoutPadding:!0,children:[h.jsx(Vpe,{className:Ii.card__header,id:r.id,isAuthenticated:a,isMine:u}),l?h.jsx(C.EmptyState,{className:Ii.emptyState,stickerProps:{color:"green",icon:"pin"},size:"large",primaryText:"Dieses Angebot ist außerhalb deiner Nachbarschaft.",secondaryText:"Nutze nebenan.de, um Angebote in deiner direkten Nachbarschaft zu finden."}):h.jsx(k2e,{feedItem:r,isAuthenticated:a,bookmarked:e,isMine:u,chargebeeProviderConfig:n.chargebee,disablePremiumFeature:i})]})}),a&&s.length>0&&h.jsxs("div",{className:Ii.relatedSections,children:[s.map((f,d)=>h.jsxs(v.Fragment,{children:[h.jsx(E2e,{section:f,isAuthenticated:a}),t&&t[d]&&o&&h.jsx("div",{"data-testid":`marketplace-ad-${d}`,children:o(t[d])})]},`${f.section_identifier}-${d}`)),t&&t.length>s.length&&o&&h.jsx("div",{className:Ii.remainingAds,children:t.slice(s.length).map((f,d)=>h.jsx("div",{children:o(f)},`remaining-ad-${d}`))})]}),t&&t.length>0&&s.length===0&&o&&h.jsx("div",{"data-testid":"marketplace-ads",children:t.map((f,d)=>h.jsx("div",{children:o(f)},`ad-${d}`))}),h.jsx(qpe,{})]})})}const A2e=({children:t,navigate:e})=>h.jsx(Tw.Provider,{value:{navigate:e},children:t}),P2e="_skeletonGrid_1idld_154",z2e="_skeletonCard_1idld_168",F2e="_skeletonImageContainer_1idld_176",L2e="_skeletonContent_1idld_185",j2e="_skeletonPrice_1idld_189",I2e="_skeletonTitle_1idld_200",R2e="_skeletonTimestamp_1idld_210",N2e="_shimmer_1idld_219",ii={skeletonGrid:P2e,skeletonCard:z2e,skeletonImageContainer:F2e,skeletonContent:L2e,skeletonPrice:j2e,skeletonTitle:I2e,skeletonTimestamp:R2e,shimmer:N2e},D2e=()=>h.jsxs("div",{className:ii.skeletonCard,children:[h.jsx("div",{className:ii.skeletonImageContainer,children:h.jsx("div",{className:ii.shimmer})}),h.jsxs("div",{className:ii.skeletonContent,children:[h.jsx("div",{className:ii.skeletonPrice,children:h.jsx("div",{className:ii.shimmer})}),h.jsx("div",{className:ii.skeletonTitle,children:h.jsx("div",{className:ii.shimmer})}),h.jsx("div",{className:ii.skeletonTimestamp,children:h.jsx("div",{className:ii.shimmer})})]})]});function B2e({count:t=6}){return h.jsx("div",{className:ii.skeletonGrid,children:Array.from({length:t}).map((e,n)=>h.jsx(D2e,{},`marketplace-skeleton-${n}`))})}function VS({ads:t=[],initialFeedItems:e,onLoadMore:n}){const[i,r]=v.useState(()=>e),[a,s]=v.useState(!0),o=v.useCallback(async()=>{try{const l=i[i.length-1],u=await n(l.content_updated_timestamp);u.hood_messages.length===0?s(!1):r(c=>[...c,...u.hood_messages])}catch(l){console.error("Error loading more feed items:",l)}},[i,n]);return h.jsx(Ip,{dataLength:i.length,next:o,hasMore:a,loader:h.jsx(B2e,{count:6}),endMessage:h.jsx("div",{style:{color:"#666",fontSize:"14px",padding:"60px 20px",textAlign:"center"},children:h.jsx("p",{style:{margin:0},children:"You've reached the end"})}),scrollThreshold:.8,style:{overflow:"visible"},children:h.jsx(NS,{feedItems:i,feedType:"marketplace",viewMode:"grid",ads:t})})}const O2e="_root_mgcag_146",H2e="_filterSection_mgcag_151",W2e="_filterContainer_mgcag_157",_2e="_filterTitle_mgcag_168",V2e="_filterControls_mgcag_181",G2e="_filterButton_mgcag_198",U2e="_feedSection_mgcag_227",Mi={root:O2e,filterSection:H2e,filterContainer:W2e,filterTitle:_2e,filterControls:V2e,filterButton:G2e,feedSection:U2e};function q2e({ads:t,highlightVariant:e=null,initialFeedItems:n,onLoadMore:i}){return h.jsx(RS,{highlightVariant:e,children:h.jsxs("div",{className:Mi.root,children:[h.jsx("div",{className:Mi.filterSection,children:h.jsxs("div",{className:Mi.filterContainer,children:[h.jsx("h2",{className:Mi.filterTitle,children:"Marketplace"}),h.jsxs("div",{className:Mi.filterControls,children:[h.jsx("button",{className:Mi.filterButton,children:"All Categories"}),h.jsx("button",{className:Mi.filterButton,children:"Price Range"}),h.jsx("button",{className:Mi.filterButton,children:"Location"}),h.jsx("button",{className:Mi.filterButton,children:"Sort By"})]})]})}),h.jsx("div",{className:Mi.feedSection,children:h.jsx(VS,{initialFeedItems:n,ads:t,onLoadMore:i})})]})})}const K2e="_root_epx5p_146",Z2e="_root__content_epx5p_154",J2e="_root__content__text_epx5p_161",r0={root:K2e,root__content:Z2e,root__content__text:J2e},Q2e=(t,e)=>y.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"}),y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"#FF9DE2"}),y.createElement("circle",{cx:20,cy:20,r:13,fill:"white"}),y.createElement("circle",{cx:16.5,cy:17.5,r:1.5,fill:"#B22B8A"}),y.createElement("circle",{cx:23.5,cy:17.5,r:1.5,fill:"#B22B8A"}),y.createElement("path",{d:"M25 26C25 26 23 24 20 24C17 24 15 26 15 26",stroke:"#B22B8A",strokeWidth:1.5,strokeLinecap:"round"})),Y2e=v.forwardRef(Q2e),X2e=(t,e)=>y.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"}),y.createElement("circle",{cx:20,cy:20,r:12.25,stroke:"#01819C",strokeWidth:1.5}),y.createElement("circle",{cx:16.5,cy:17.5,r:1.5,fill:"#01819C"}),y.createElement("circle",{cx:23.5,cy:17.5,r:1.5,fill:"#01819C"}),y.createElement("path",{d:"M25 26C25 26 23 24 20 24C17 24 15 26 15 26",stroke:"#01819C",strokeWidth:1.5,strokeLinecap:"round"})),$2e=v.forwardRef(X2e),eve=(t,e)=>y.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"}),y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"#01819C"}),y.createElement("circle",{cx:20,cy:20,r:13,fill:"white"}),y.createElement("circle",{cx:16.5,cy:17.5,r:1.5,fill:"#01819C"}),y.createElement("circle",{cx:23.5,cy:17.5,r:1.5,fill:"#01819C"}),y.createElement("path",{d:"M25 24C25 24 23 27 20 27C17 27 15 24 15 24",stroke:"#01819C",strokeWidth:1.5,strokeLinecap:"round"})),tve=v.forwardRef(eve),nve=(t,e)=>y.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"}),y.createElement("circle",{cx:20,cy:20,r:12.25,stroke:"#01819C",strokeWidth:1.5}),y.createElement("circle",{cx:16.5,cy:17.5,r:1.5,fill:"#01819C"}),y.createElement("circle",{cx:23.5,cy:17.5,r:1.5,fill:"#01819C"}),y.createElement("path",{d:"M25 24C25 24 23 27 20 27C17 27 15 24 15 24",stroke:"#01819C",strokeWidth:1.5,strokeLinecap:"round"})),ive=v.forwardRef(nve),rve="_root_16zgx_146",ave={root:rve},sve=[{activeImage:h.jsx(Y2e,{}),defaultImage:h.jsx($2e,{}),type:"negative"},{activeImage:h.jsx(tve,{}),defaultImage:h.jsx(ive,{}),type:"positive"}],ove=({onClick:t})=>{const[e,n]=v.useState(null),i=r=>{e!==r&&(n(r),t(r))};return h.jsx("div",{className:ave.root,children:sve.map(({activeImage:r,defaultImage:a,type:s})=>h.jsx(C.Button,{"aria-pressed":e===s,onClick:()=>i(s),children:e===s?r:a},s))})},lve=({dismissible:t=!1,onClick:e,question:n})=>{const[i,r]=v.useState(!0);return i?h.jsxs("div",{className:r0.root,children:[h.jsxs("div",{className:r0.root__content,children:[h.jsx(C.Typography,{className:r0.root__content__text,as:"p",type:"detail-medium",children:n}),h.jsx(ove,{onClick:e})]}),t&&h.jsx(C.IconButton,{ariaLabel:"Close feedback card",icon:"cross",size:"small",onClick:()=>r(!1)})]}):null};function uve(t){t.__scriptingEnabledHTMLContentHasBeenExecuted=!0}const cve=`(${uve.toString()})(document.currentScript);`,GS=v.forwardRef((t,e)=>{const n=v.useRef(null);return v.useImperativeHandle(e,()=>({get hasBeenExecuted(){const i=n.current;return i?!!i.__scriptingEnabledHTMLContentHasBeenExecuted:!1}})),h.jsx("script",{ref:n,dangerouslySetInnerHTML:{__html:cve}})});GS.displayName="InnerHTMLScript";const dve=(t,e)=>{const n=document.createRange().createContextualFragment(e);t.innerHTML="",t.appendChild(n)},fve=({html:t,...e})=>{const n=v.useRef(null),i=v.useRef(null);return v.useEffect(()=>{const r=i.current,a=n.current;!r||!a||a.hasBeenExecuted||dve(r,t)},[t]),h.jsxs(h.Fragment,{children:[h.jsx(GS,{ref:n}),h.jsx("div",{...e,ref:i,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}})]})},hve="_imageGallery_1awa3_146",mve="_imageGalleryImage_1awa3_152",pve="_imageGalleryPill_1awa3_160",a0={imageGallery:hve,imageGalleryImage:mve,imageGalleryPill:pve},gve=({gallerySize:t,imageAlt:e,imageURL:n,onClick:i})=>{let r;if(t>1){const a=`+${t-1}`;r=h.jsx("div",{className:a0.imageGalleryPill,children:h.jsx(C.LabelPill,{label:a,shape:"tile",size:"medium"})})}return h.jsxs("div",{className:a0.imageGallery,onClick:i,children:[h.jsx(C.Image,{alt:e,src:n,className:a0.imageGalleryImage}),r]})},vve=async(t,e)=>{try{await je.inviteFeedEvent({id:t,inviteeId:[e]})}catch(n){console.error("Error fetching invitees:",n)}},bve=({id:t,invitees:e})=>{const[n,i]=v.useState(new Set),[r,a]=v.useState(!1),[s,o]=v.useState(""),l=({fullName:u,userId:c})=>{i(f=>new Set(f).add(c)),(async()=>await vve(t,c))(),a(!1),o(`${u} wurde eingeladen!`),setTimeout(()=>{a(!0)},0)};return h.jsxs("ul",{children:[e.map(u=>h.jsx("li",{children:h.jsx(C.ListItem,{type:zf.neighbour,data:{address:u.address,altText:u.altText,callToAction:{disabled:u.invited||n.has(u.userId),label:u.invited||n.has(u.userId)?"Eingeladen":"Einladen",onClick:()=>l(u),size:"small"},fullName:u.fullName,imageUrl:u.imageUrl,profileUrl:u.profileUrl,userId:u.userId}})},u.userId)),h.jsx(C.Snackbar,{isOpen:r,textLabel:s,leftIconSmall:"checkmark_circle",hideDuration:2e3,isNested:!0})]})},wve=async(t,e,n)=>{try{return(await ct.API.getApi().GET("/api/core/v3/event/posts/{post_id}/prospects",{params:{path:{post_id:t},query:{after:n,limit:"20",query:e}}})).data}catch(i){console.error("Error fetching invitees:",i)}},yve=t=>!t||!t.length?[]:t.map(e=>({address:"",altText:`${e.name} profile image`,fullName:e.name,imageUrl:e.picture_url,profileUrl:`${e.profile_url}`,userId:Ew(e.gid)})),kve=({postId:t})=>{const[e,n]=v.useState(!0),[i,r]=v.useState(""),[a,s]=v.useState([]),[o,l]=v.useState(null),[u,c]=v.useState(!1),[f,d]=v.useState(!1),m=v.useCallback(async(g,w=null,k=!1)=>{var x,T;d(!0);try{const E=await wve(t,g,w),M=yve(E==null?void 0:E.page);s(F=>k?M:[...F,...M]),l(((x=E==null?void 0:E.page_info)==null?void 0:x.end_cursor)||null),c(((T=E==null?void 0:E.page_info)==null?void 0:T.has_next_page)||!1)}catch(E){console.error("Failed to load invitees",E)}finally{d(!1)}},[t]);v.useEffect(()=>{m(i,null,!0)},[i,m]);const p=()=>{n(!1)},b=()=>{!u||f||m(i,o)};return h.jsx(Rp,{open:e,inputProps:{label:"Nachbarn einladen",size:"medium"},headerProps:{title:"Nachbarn einladen"},contentProps:{content:h.jsx(bve,{id:t,invitees:a}),length:a.length,loadMore:b,loading:f},onDismiss:p,setQuery:r})},xve="_container_1517f_146",Sve="_cardBody_1517f_154",Cve="_header_1517f_157",Eve="_center_1517f_161",Tve="_stickerWrapper_1517f_165",Mve="_avatarClusterWrapper_1517f_170",Ave="_inviteInfoWrapper_1517f_173",Pve="_communityInviteInfo_1517f_176",zve="_actions_1517f_180",Fve="_buttonProfile_1517f_202",si={container:xve,cardBody:Sve,header:Cve,center:Eve,stickerWrapper:Tve,avatarClusterWrapper:Mve,inviteInfoWrapper:Ave,communityInviteInfo:Pve,actions:zve,buttonProfile:Fve},US={"de-DE":{already_joined:"sind schon dabei. Lade weitere Nachbar:innen ein und bring mehr Leben in die Runde.",call_to_action_invite:"Lade deine Nachbar:innen ein und mach den ersten Schritt.",first_user_welcome:"Du bist eine:r der Ersten hier - das Miteinander beginnt mit dir!",invite_neighbors:"Lade deine Nachbar:innen ein und mach den ersten Schritt.",more_people_together:"Mehr Menschen, mehr Miteinander!",no_users_yet:"In deiner Nachbarschaft ist noch nicht viel los. Lade weitere Nachbar:innen ein und bring mehr Leben in die Runde.",print_invitation:"Einladung ausdrucken",share_invitation_link:"Einladungslink teilen"}},Vc=Ne(US),Lve=({onMoreClick:t,onProfileClick:e,users:n})=>n.length===0?h.jsxs("div",{className:si.communityInviteInfo,children:[h.jsx(C.Typography,{className:X(si.header,si.center),type:"h3",children:Vc.first_user_welcome}),h.jsx(C.Typography,{type:"body-regular",children:Vc.call_to_action_invite})]}):n.length<=3?h.jsx(C.Typography,{type:"body-regular",children:Vc.no_users_yet}):h.jsxs(C.Typography,{type:"body-regular",children:[n.slice(0,3).map((i,r)=>h.jsxs(C.Button,{className:si.buttonProfile,onClick:()=>e==null?void 0:e(i.id),children:[h.jsxs(C.Typography,{type:"body-text-link",children:[i.firstname," ",i.lastname.charAt(0),"."]}),r<2&&", "]},r))," ","und"," ",h.jsx(C.Button,{onClick:t,children:h.jsxs(C.Typography,{type:"body-text-link",children:[n.length-4," weitere"]})})," ",Vc.already_joined]}),s0=Ne(US),jve=({onMoreClick:t,onPrintInvitationClick:e,onProfileClick:n,onShareInvitationClick:i,users:r})=>{const a=()=>r.length>0&&h.jsx(C.Typography,{className:si.header,type:"h3",children:s0.more_people_together}),s=()=>r.length===0?h.jsx("div",{className:si.stickerWrapper,children:h.jsx(C.Sticker,{icon:"invite_neighbour",color:"orange",size:"large"})}):h.jsx("div",{className:si.avatarClusterWrapper,children:h.jsx(C.UserAvatarCluster,{size:"large",onAvatarClick:n,onMoreClick:t,users:r})});return h.jsx(C.Card,{borderRadius:!0,className:si.container,withoutPadding:!0,children:h.jsxs(C.CardBody,{withoutPadding:!0,className:si.cardBody,children:[a(),s(),h.jsx("div",{className:si.inviteInfoWrapper,children:h.jsx(Lve,{users:r,onMoreClick:t,onProfileClick:n})}),h.jsxs("div",{className:si.actions,children:[h.jsx(C.ButtonTertiary,{onClick:e,color:"blue",rightIcon:h.jsx(C.Icon,{name:"paper_form"}),text:s0.print_invitation}),h.jsx(C.ButtonPrimary,{onClick:i,text:s0.share_invitation_link,rightIcon:h.jsx(C.Icon,{name:"link"})})]})]})})},Ive="_container_qsags_146",Rve="_circle_qsags_154",Nve="_logo_qsags_162",o0={container:Ive,circle:Rve,logo:Nve},Dve=(t,e)=>y.createElement("svg",{width:72,height:80,viewBox:"0 0 72 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},y.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"})),Bve=v.forwardRef(Dve),qS=()=>h.jsxs("div",{className:o0.container,children:[h.jsx("div",{className:o0.circle}),h.jsx(Bve,{className:o0.logo})]}),Ove="_react-datepicker_156pv_116",Hve="_react-datepicker__day-names_156pv_119",Wve="_react-datepicker__week_156pv_123",_ve="_react-datepicker__day--outside-month_156pv_130",Vve="_react-datepicker__time-container_156pv_139",Gve="_react-datepicker__time_156pv_139",Uve="_react-datepicker__time-box_156pv_142",qve="_wrapper_156pv_146",Kve="_header_156pv_153",Zve="_navbar_156pv_161",Jve="_banner_156pv_166",Qve="_banner--withChristmasBanner_156pv_174",Yve="_banner--hidden_156pv_177",Xve="_christmasBanner_156pv_181",$ve="_christmasBanner--active_156pv_189",e3e="_main_156pv_195",t3e="_contentContainer_156pv_199",n3e="_contentContainer__withBanner_156pv_205",i3e="_contentContainer__withBanner_156pv_205",r3e="_contentContainer__withChristmasBanner_156pv_208",a3e="_contentContainer__withChristmasBanner_156pv_208",s3e="_contentContainer__withTwoBanner_156pv_211",o3e="_contentContainer__withTwoBanner_156pv_211",l3e="_content_156pv_199",u3e="_mainContent_156pv_221",c3e="_mainContent__isFullWidth_156pv_225",d3e="_mainContent__isFullWidth_156pv_225",f3e="_sidebarRight_156pv_229",h3e="_adSlot_156pv_243",m3e="_adSlot__withBanner_156pv_252",p3e="_adSlot__withBanner_156pv_252",g3e="_adSlot__withChristmasBanner_156pv_255",v3e="_adSlot__withChristmasBanner_156pv_255",b3e="_adSlot__withTwoBanner_156pv_258",w3e="_adSlot__withTwoBanner_156pv_258",y3e="_adSlot--left_156pv_283",k3e="_adSlot--right_156pv_288",$e={"react-datepicker":"_react-datepicker_156pv_116",reactDatepicker:Ove,"react-datepicker__day-names":"_react-datepicker__day-names_156pv_119",reactDatepickerDayNames:Hve,"react-datepicker__week":"_react-datepicker__week_156pv_123",reactDatepickerWeek:Wve,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_156pv_130",reactDatepickerDayOutsideMonth:_ve,"react-datepicker__time-container":"_react-datepicker__time-container_156pv_139",reactDatepickerTimeContainer:Vve,"react-datepicker__time":"_react-datepicker__time_156pv_139",reactDatepickerTime:Gve,"react-datepicker__time-box":"_react-datepicker__time-box_156pv_142",reactDatepickerTimeBox:Uve,wrapper:qve,header:Kve,navbar:Zve,banner:Jve,"banner--withChristmasBanner":"_banner--withChristmasBanner_156pv_174",bannerWithChristmasBanner:Qve,"banner--hidden":"_banner--hidden_156pv_177",bannerHidden:Yve,christmasBanner:Xve,"christmasBanner--active":"_christmasBanner--active_156pv_189",christmasBannerActive:$ve,main:e3e,contentContainer:t3e,contentContainer__withBanner:n3e,contentContainerWithBanner:i3e,contentContainer__withChristmasBanner:r3e,contentContainerWithChristmasBanner:a3e,contentContainer__withTwoBanner:s3e,contentContainerWithTwoBanner:o3e,content:l3e,mainContent:u3e,mainContent__isFullWidth:c3e,mainContentIsFullWidth:d3e,sidebarRight:f3e,adSlot:h3e,adSlot__withBanner:m3e,adSlotWithBanner:p3e,adSlot__withChristmasBanner:g3e,adSlotWithChristmasBanner:v3e,adSlot__withTwoBanner:b3e,adSlotWithTwoBanner:w3e,"adSlot--left":"_adSlot--left_156pv_283",adSlotLeft:y3e,"adSlot--right":"_adSlot--right_156pv_288",adSlotRight:k3e},o4=({banner:t,children:e,enableAdSlots:n,isMainFullWidth:i,leftAdSlot:r,navbar:a,right:s,rightAdSlot:o})=>{const{christmasBannerVariant:l,didRender:u}=t,c=u&&!l,f=l&&!u,d=l&&u;return h.jsxs("div",{className:$e.wrapper,children:[n&&h.jsx("div",{className:X($e.adSlot,$e["adSlot--left"],{[$e.adSlot__withBanner]:c,[$e.adSlot__withChristmasBanner]:f,[$e.adSlot__withTwoBanner]:d}),children:r}),h.jsxs("div",{className:X($e.contentContainer,{[$e.contentContainer__withBanner]:c,[$e.contentContainer__withChristmasBanner]:f,[$e.contentContainer__withTwoBanner]:d}),children:[h.jsx("header",{className:$e.header,children:h.jsx("nav",{className:$e.navBar,children:a})}),t.christmasBannerVariant&&h.jsx("div",{className:X($e.christmasBanner,$e["christmasBanner--active"]),children:h.jsx(Ud,{active:!0})}),h.jsxs("div",{className:X($e.content),children:[h.jsx("main",{"data-content-width":!0,className:X($e.mainContent,{[$e.mainContent__isFullWidth]:i}),children:e}),s&&h.jsx("aside",{className:$e.sidebarRight,children:s})]})]}),n&&h.jsx("div",{className:X($e.adSlot,$e["adSlot--right"],{[$e.adSlot__withBanner]:c,[$e.adSlot__withChristmasBanner]:f,[$e.adSlot__withTwoBanner]:d}),children:o}),t.christmasBannerVariant&&h.jsx("div",{className:$e.christmasBanner,children:h.jsx(Ud,{})}),t.adSlot&&h.jsx("div",{className:X($e.banner,{[$e["banner--withChristmasBanner"]]:t.christmasBannerVariant,[$e["banner--hidden"]]:!t.didRender}),children:t.adSlot})]})};var KS={exports:{}};(()=>{var t={d:(s,o)=>{for(var l in o)t.o(o,l)&&!t.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:o[l]})},o:(s,o)=>Object.prototype.hasOwnProperty.call(s,o),r:s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>a});const n=v;function i(s,o){return function(l){if(Array.isArray(l))return l}(s)||function(l,u){var c=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(c!=null){var f,d,m=[],p=!0,b=!1;try{for(c=c.call(l);!(p=(f=c.next()).done)&&(m.push(f.value),!u||m.length!==u);p=!0);}catch(g){b=!0,d=g}finally{try{p||c.return==null||c.return()}finally{if(b)throw d}}return m}}(s,o)||function(l,u){if(l){if(typeof l=="string")return r(l,u);var c=Object.prototype.toString.call(l).slice(8,-1);return c==="Object"&&l.constructor&&(c=l.constructor.name),c==="Map"||c==="Set"?Array.from(l):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?r(l,u):void 0}}(s,o)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
913
+ Namen und Kommentare auf den Beitrag sind nicht öffentlich sichtbar.`})}),h.jsx("div",{className:wt.copyButton,children:h.jsx(C.CopyLinkButton,{link:b,onClick:E})})]}),F=()=>{var O;(O=i.author_details)!=null&&O.profile_url&&(window.location.href=i.author_details.profile_url,p("click",{click_name:"post_author_profile",section:"marketplace_detail_page"}))};return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:Ii.galleryContainer,children:h.jsx("div",{className:Ii.imageGallery,children:h.jsx(WS,{images:(i.images||[]).map(O=>typeof O=="string"?O:(O==null?void 0:O.url)||""),reserved:c,stickerSlot:h.jsx(h.Fragment,{})})})}),h.jsxs("div",{className:Ii.card__content,children:[!n&&h.jsx(wge,{chargebeeProviderConfig:e,postId:`${i.id}`,isMine:a,featureAddons:(i==null?void 0:i.feature_addons)||[]}),h.jsxs("div",{className:wt.root,children:[h.jsx(C.Snackbar,{leftIconLarge:"checkmark_circle",isOpen:l,textLabel:"Link kopiert",onClose:()=>u(!1)}),h.jsx(b1,{title:"Teile diesen öffentlichen Beitrag",handleClose:k,open:s,content:M(),footer:h.jsx("div",{className:wt.modalFooter,children:h.jsx(C.ButtonPrimary,{text:"Link kopieren",onClick:x})})}),h.jsxs("div",{className:wt.root__primary,children:[(i.content_type==="marketplace_free"||i.content_type==="marketplace_sell"&&((z=i.marketplace_details)==null?void 0:z.price_in_cents)!==null)&&h.jsxs("div",{className:wt.top,children:[h.jsx(C.Typography,{type:"h3",className:wt.top__price,children:eM((R=i.marketplace_details)==null?void 0:R.price_in_cents)}),h.jsxs("div",{className:wt.top__actions,children:[!a&&r&&h.jsx(yp,{id:i.id,bookmarked:t}),h.jsx(C.IconButton,{onClick:w,icon:"share_arrow_outline",size:"medium",ariaLabelledBy:"share"})]})]}),h.jsxs("div",{className:wt.top,children:[h.jsx(C.Typography,{type:"h3",className:wt.title,children:i.subject}),i.content_type==="marketplace_sell"&&((A=i.marketplace_details)==null?void 0:A.price_in_cents)===null&&h.jsxs("div",{className:wt.top__actions,children:[!a&&r&&h.jsx(yp,{id:i.id,bookmarked:t}),h.jsx(C.IconButton,{onClick:w,icon:"share_arrow_outline",size:"medium",ariaLabelledBy:"share"})]})]}),h.jsxs("div",{className:wt.bottom,children:[h.jsx(C.Typography,{type:"body-regular",className:wt.bottom__category,"data-testid":"marketplace-body-category",children:((I=(L=i.marketplace_details)==null?void 0:L.category)==null?void 0:I.title)||"Sonstiges"}),h.jsx(C.Typography,{type:"detail-medium",className:wt.bottom__timestamp,children:i.created_at?new Date(i.created_at).toLocaleDateString("de-DE"):""})]})]}),i.author_details&&h.jsx(Qge,{className:wt.actions,handleReserve:T,isReserved:c,author:i.author_details,images:i.images,body:i.body,isFree:g,isMine:a,id:i.id,subject:i.subject}),h.jsx(C.BodyText,{type:"post",bodyText:i.body}),!!((B=i.embeds)!=null&&B.length)&&h.jsx("div",{className:wt.embeds,children:(j=i.embeds)==null?void 0:j.map((O,N)=>h.jsx(Lp,{onClick:()=>window.open(O.cta_url||""),image:{alt:O.title||"",src:O.image_url||""},description:O.description||"",headline:O.title||"",url:O.cta_url||""},N))}),i.author_details&&!a&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:wt.divider,children:h.jsx(C.Divider,{})}),h.jsx(_S,{className:wt.author,author:{children:i.author_details.name,href:i.author_details.profile_url||"#",onClick:F},metadata:i.author_details.hood_title,thumbnail:{badgeIcons:i.author_details.ben?["is_super_neighbour"]:i.author_details.supporter?["is_supporter"]:[],children:h.jsx(C.UserAvatar,{size:"48",alt:i.author_details.name,userImageSrc:i.author_details.picture_url||"",userId:parseInt(i.author_details.associated_gid)||0}),onClick:F,thumbnailType:"badge"}})]})]})]})]})},s4=new Map,x2e=async t=>{if(!t)return!1;const e=s4.get(t);if(e!==void 0)return e;const n=(async()=>{try{const i=await ct.API.getApi().GET("/api/core/v3/profile",{});if(!i.data)return!1;const r=i.data.id,a=XT(t);return a?a===r:!1}catch(i){return console.error("Error checking author:",i),!1}})();return s4.set(t,n),n},S2e="_root_1bugj_146",C2e={root:S2e},E2e=({isAuthenticated:t=!1,section:e})=>{const[n,i]=v.useState([]),{more_cta_text:r,more_cta_url:a,section_headline:s,section_identifier:o}=e,l=`/feed/${a.split("/").pop()}`;return v.useEffect(()=>{if(!t||!e.posts.length)return;const u=e.posts.map(c=>c.id).filter(Boolean);ct.API.getApi().GET("/api/core/v3/interactions",{params:{query:{format:"json",post_ids:u.join(",")}}}).then(c=>{if(c.data){const f=c.data.filter(d=>d.bookmark).map(d=>d.hood_message_id);i(f)}}).catch(c=>{console.error("Failed to fetch bookmark status:",c)})},[t,e.posts]),h.jsx(DS,{className:C2e.root,category:s,categorySlug:o,categoryLink:l,linkLabel:r,items:e.posts.map(u=>({bookmarked:n.includes(u.id),id:u.id,image:Fse(u),price:Rse(u),reserved:!1,reservedText:"Reserviert",timeStamp:u.created_at,title:u.subject}))})};class T2e extends v.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{error:e,hasError:!0}}componentDidCatch(e,n){console.error("MarketplaceDetailPage Error:",e,n)}render(){return this.state.hasError?h.jsx(C.EmptyState,{stickerProps:{color:"green",icon:"pin"},size:"large",primaryText:"Etwas ist schiefgelaufen",secondaryText:"Bitte versuche es später erneut oder kontaktiere unseren Support."}):this.props.children}}async function M2e({ads:t=[],bookmarked:e,config:n,disablePremiumFeature:i,feedItem:r,isAuthenticated:a=!1,relatedSections:s=[],renderAdSlot:o}){var c;const l=(r==null?void 0:r.level_of_detail)==="not_in_reach",u=a?await x2e((c=r==null?void 0:r.author_details)==null?void 0:c.associated_gid):!1;return h.jsx(T2e,{children:h.jsxs("div",{className:Ii.root,children:[h.jsx(C.Card,{className:Ii.card,responsive:!0,borderRadius:!0,withoutPadding:!0,children:h.jsxs(C.CardBody,{className:Ii.card__body,withoutPadding:!0,children:[h.jsx(Vpe,{className:Ii.card__header,id:r.id,isAuthenticated:a,isMine:u}),l?h.jsx(C.EmptyState,{className:Ii.emptyState,stickerProps:{color:"green",icon:"pin"},size:"large",primaryText:"Dieses Angebot ist außerhalb deiner Nachbarschaft.",secondaryText:"Nutze nebenan.de, um Angebote in deiner direkten Nachbarschaft zu finden."}):h.jsx(k2e,{feedItem:r,isAuthenticated:a,bookmarked:e,isMine:u,chargebeeProviderConfig:n.chargebee,disablePremiumFeature:i})]})}),a&&s.length>0&&h.jsxs("div",{className:Ii.relatedSections,children:[s.map((f,d)=>h.jsxs(v.Fragment,{children:[h.jsx(E2e,{section:f,isAuthenticated:a}),t&&t[d]&&o&&h.jsx("div",{"data-testid":`marketplace-ad-${d}`,children:o(t[d])})]},`${f.section_identifier}-${d}`)),t&&t.length>s.length&&o&&h.jsx("div",{className:Ii.remainingAds,children:t.slice(s.length).map((f,d)=>h.jsx("div",{children:o(f)},`remaining-ad-${d}`))})]}),t&&t.length>0&&s.length===0&&o&&h.jsx("div",{"data-testid":"marketplace-ads",children:t.map((f,d)=>h.jsx("div",{children:o(f)},`ad-${d}`))}),h.jsx(qpe,{})]})})}const A2e=({children:t,navigate:e})=>h.jsx(Tw.Provider,{value:{navigate:e},children:t}),P2e="_skeletonGrid_1idld_154",z2e="_skeletonCard_1idld_168",F2e="_skeletonImageContainer_1idld_176",L2e="_skeletonContent_1idld_185",j2e="_skeletonPrice_1idld_189",I2e="_skeletonTitle_1idld_200",R2e="_skeletonTimestamp_1idld_210",N2e="_shimmer_1idld_219",ii={skeletonGrid:P2e,skeletonCard:z2e,skeletonImageContainer:F2e,skeletonContent:L2e,skeletonPrice:j2e,skeletonTitle:I2e,skeletonTimestamp:R2e,shimmer:N2e},D2e=()=>h.jsxs("div",{className:ii.skeletonCard,children:[h.jsx("div",{className:ii.skeletonImageContainer,children:h.jsx("div",{className:ii.shimmer})}),h.jsxs("div",{className:ii.skeletonContent,children:[h.jsx("div",{className:ii.skeletonPrice,children:h.jsx("div",{className:ii.shimmer})}),h.jsx("div",{className:ii.skeletonTitle,children:h.jsx("div",{className:ii.shimmer})}),h.jsx("div",{className:ii.skeletonTimestamp,children:h.jsx("div",{className:ii.shimmer})})]})]});function B2e({count:t=6}){return h.jsx("div",{className:ii.skeletonGrid,children:Array.from({length:t}).map((e,n)=>h.jsx(D2e,{},`marketplace-skeleton-${n}`))})}function VS({ads:t=[],initialFeedItems:e,onLoadMore:n}){const[i,r]=v.useState(()=>e),[a,s]=v.useState(!0),o=v.useCallback(async()=>{try{const l=i[i.length-1],u=await n(l.content_updated_timestamp);u.hood_messages.length===0?s(!1):r(c=>[...c,...u.hood_messages])}catch(l){console.error("Error loading more feed items:",l)}},[i,n]);return h.jsx(Ip,{dataLength:i.length,next:o,hasMore:a,loader:h.jsx(B2e,{count:6}),endMessage:h.jsx("div",{style:{color:"#666",fontSize:"14px",padding:"60px 20px",textAlign:"center"},children:h.jsx("p",{style:{margin:0},children:"You've reached the end"})}),scrollThreshold:.8,style:{overflow:"visible"},children:h.jsx(NS,{feedItems:i,feedType:"marketplace",viewMode:"grid",ads:t})})}const O2e="_root_mgcag_146",H2e="_filterSection_mgcag_151",W2e="_filterContainer_mgcag_157",_2e="_filterTitle_mgcag_168",V2e="_filterControls_mgcag_181",G2e="_filterButton_mgcag_198",U2e="_feedSection_mgcag_227",Mi={root:O2e,filterSection:H2e,filterContainer:W2e,filterTitle:_2e,filterControls:V2e,filterButton:G2e,feedSection:U2e};function q2e({ads:t,highlightVariant:e=null,initialFeedItems:n,onLoadMore:i}){return h.jsx(RS,{highlightVariant:e,children:h.jsxs("div",{className:Mi.root,children:[h.jsx("div",{className:Mi.filterSection,children:h.jsxs("div",{className:Mi.filterContainer,children:[h.jsx("h2",{className:Mi.filterTitle,children:"Marketplace"}),h.jsxs("div",{className:Mi.filterControls,children:[h.jsx("button",{className:Mi.filterButton,children:"All Categories"}),h.jsx("button",{className:Mi.filterButton,children:"Price Range"}),h.jsx("button",{className:Mi.filterButton,children:"Location"}),h.jsx("button",{className:Mi.filterButton,children:"Sort By"})]})]})}),h.jsx("div",{className:Mi.feedSection,children:h.jsx(VS,{initialFeedItems:n,ads:t,onLoadMore:i})})]})})}const K2e="_root_epx5p_146",Z2e="_root__content_epx5p_154",J2e="_root__content__text_epx5p_161",r0={root:K2e,root__content:Z2e,root__content__text:J2e},Q2e=(t,e)=>y.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"}),y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"#B22B8A"}),y.createElement("circle",{cx:20,cy:20,r:13,fill:"white"}),y.createElement("circle",{cx:16.5,cy:17.5,r:1.5,fill:"#B22B8A"}),y.createElement("circle",{cx:23.5,cy:17.5,r:1.5,fill:"#B22B8A"}),y.createElement("path",{d:"M25 26C25 26 23 24 20 24C17 24 15 26 15 26",stroke:"#B22B8A",strokeWidth:1.5,strokeLinecap:"round"})),Y2e=v.forwardRef(Q2e),X2e=(t,e)=>y.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"}),y.createElement("circle",{cx:20,cy:20,r:12.25,stroke:"#B22B8A",strokeWidth:1.5}),y.createElement("circle",{cx:16.5,cy:17.5,r:1.5,fill:"#B22B8A"}),y.createElement("circle",{cx:23.5,cy:17.5,r:1.5,fill:"#B22B8A"}),y.createElement("path",{d:"M25 26C25 26 23 24 20 24C17 24 15 26 15 26",stroke:"#B22B8A",strokeWidth:1.5,strokeLinecap:"round"})),$2e=v.forwardRef(X2e),eve=(t,e)=>y.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"}),y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"#01819C"}),y.createElement("circle",{cx:20,cy:20,r:13,fill:"white"}),y.createElement("circle",{cx:16.5,cy:17.5,r:1.5,fill:"#01819C"}),y.createElement("circle",{cx:23.5,cy:17.5,r:1.5,fill:"#01819C"}),y.createElement("path",{d:"M25 24C25 24 23 27 20 27C17 27 15 24 15 24",stroke:"#01819C",strokeWidth:1.5,strokeLinecap:"round"})),tve=v.forwardRef(eve),nve=(t,e)=>y.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},y.createElement("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"}),y.createElement("circle",{cx:20,cy:20,r:12.25,stroke:"#01819C",strokeWidth:1.5}),y.createElement("circle",{cx:16.5,cy:17.5,r:1.5,fill:"#01819C"}),y.createElement("circle",{cx:23.5,cy:17.5,r:1.5,fill:"#01819C"}),y.createElement("path",{d:"M25 24C25 24 23 27 20 27C17 27 15 24 15 24",stroke:"#01819C",strokeWidth:1.5,strokeLinecap:"round"})),ive=v.forwardRef(nve),rve="_root_16zgx_146",ave={root:rve},sve=[{activeImage:h.jsx(Y2e,{}),defaultImage:h.jsx($2e,{}),type:"negative"},{activeImage:h.jsx(tve,{}),defaultImage:h.jsx(ive,{}),type:"positive"}],ove=({onClick:t})=>{const[e,n]=v.useState(null),i=r=>{e!==r&&(n(r),t(r))};return h.jsx("div",{className:ave.root,children:sve.map(({activeImage:r,defaultImage:a,type:s})=>h.jsx(C.Button,{"aria-pressed":e===s,onClick:()=>i(s),children:e===s?r:a},s))})},lve=({dismissible:t=!1,onClick:e,question:n})=>{const[i,r]=v.useState(!0);return i?h.jsxs("div",{className:r0.root,children:[h.jsxs("div",{className:r0.root__content,children:[h.jsx(C.Typography,{className:r0.root__content__text,as:"p",type:"detail-medium",children:n}),h.jsx(ove,{onClick:e})]}),t&&h.jsx(C.IconButton,{ariaLabel:"Close feedback card",icon:"cross",size:"small",onClick:()=>r(!1)})]}):null};function uve(t){t.__scriptingEnabledHTMLContentHasBeenExecuted=!0}const cve=`(${uve.toString()})(document.currentScript);`,GS=v.forwardRef((t,e)=>{const n=v.useRef(null);return v.useImperativeHandle(e,()=>({get hasBeenExecuted(){const i=n.current;return i?!!i.__scriptingEnabledHTMLContentHasBeenExecuted:!1}})),h.jsx("script",{ref:n,dangerouslySetInnerHTML:{__html:cve}})});GS.displayName="InnerHTMLScript";const dve=(t,e)=>{const n=document.createRange().createContextualFragment(e);t.innerHTML="",t.appendChild(n)},fve=({html:t,...e})=>{const n=v.useRef(null),i=v.useRef(null);return v.useEffect(()=>{const r=i.current,a=n.current;!r||!a||a.hasBeenExecuted||dve(r,t)},[t]),h.jsxs(h.Fragment,{children:[h.jsx(GS,{ref:n}),h.jsx("div",{...e,ref:i,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}})]})},hve="_imageGallery_1awa3_146",mve="_imageGalleryImage_1awa3_152",pve="_imageGalleryPill_1awa3_160",a0={imageGallery:hve,imageGalleryImage:mve,imageGalleryPill:pve},gve=({gallerySize:t,imageAlt:e,imageURL:n,onClick:i})=>{let r;if(t>1){const a=`+${t-1}`;r=h.jsx("div",{className:a0.imageGalleryPill,children:h.jsx(C.LabelPill,{label:a,shape:"tile",size:"medium"})})}return h.jsxs("div",{className:a0.imageGallery,onClick:i,children:[h.jsx(C.Image,{alt:e,src:n,className:a0.imageGalleryImage}),r]})},vve=async(t,e)=>{try{await je.inviteFeedEvent({id:t,inviteeId:[e]})}catch(n){console.error("Error fetching invitees:",n)}},bve=({id:t,invitees:e})=>{const[n,i]=v.useState(new Set),[r,a]=v.useState(!1),[s,o]=v.useState(""),l=({fullName:u,userId:c})=>{i(f=>new Set(f).add(c)),(async()=>await vve(t,c))(),a(!1),o(`${u} wurde eingeladen!`),setTimeout(()=>{a(!0)},0)};return h.jsxs("ul",{children:[e.map(u=>h.jsx("li",{children:h.jsx(C.ListItem,{type:zf.neighbour,data:{address:u.address,altText:u.altText,callToAction:{disabled:u.invited||n.has(u.userId),label:u.invited||n.has(u.userId)?"Eingeladen":"Einladen",onClick:()=>l(u),size:"small"},fullName:u.fullName,imageUrl:u.imageUrl,profileUrl:u.profileUrl,userId:u.userId}})},u.userId)),h.jsx(C.Snackbar,{isOpen:r,textLabel:s,leftIconSmall:"checkmark_circle",hideDuration:2e3,isNested:!0})]})},wve=async(t,e,n)=>{try{return(await ct.API.getApi().GET("/api/core/v3/event/posts/{post_id}/prospects",{params:{path:{post_id:t},query:{after:n,limit:"20",query:e}}})).data}catch(i){console.error("Error fetching invitees:",i)}},yve=t=>!t||!t.length?[]:t.map(e=>({address:"",altText:`${e.name} profile image`,fullName:e.name,imageUrl:e.picture_url,profileUrl:`${e.profile_url}`,userId:Ew(e.gid)})),kve=({postId:t})=>{const[e,n]=v.useState(!0),[i,r]=v.useState(""),[a,s]=v.useState([]),[o,l]=v.useState(null),[u,c]=v.useState(!1),[f,d]=v.useState(!1),m=v.useCallback(async(g,w=null,k=!1)=>{var x,T;d(!0);try{const E=await wve(t,g,w),M=yve(E==null?void 0:E.page);s(F=>k?M:[...F,...M]),l(((x=E==null?void 0:E.page_info)==null?void 0:x.end_cursor)||null),c(((T=E==null?void 0:E.page_info)==null?void 0:T.has_next_page)||!1)}catch(E){console.error("Failed to load invitees",E)}finally{d(!1)}},[t]);v.useEffect(()=>{m(i,null,!0)},[i,m]);const p=()=>{n(!1)},b=()=>{!u||f||m(i,o)};return h.jsx(Rp,{open:e,inputProps:{label:"Nachbarn einladen",size:"medium"},headerProps:{title:"Nachbarn einladen"},contentProps:{content:h.jsx(bve,{id:t,invitees:a}),length:a.length,loadMore:b,loading:f},onDismiss:p,setQuery:r})},xve="_container_1517f_146",Sve="_cardBody_1517f_154",Cve="_header_1517f_157",Eve="_center_1517f_161",Tve="_stickerWrapper_1517f_165",Mve="_avatarClusterWrapper_1517f_170",Ave="_inviteInfoWrapper_1517f_173",Pve="_communityInviteInfo_1517f_176",zve="_actions_1517f_180",Fve="_buttonProfile_1517f_202",si={container:xve,cardBody:Sve,header:Cve,center:Eve,stickerWrapper:Tve,avatarClusterWrapper:Mve,inviteInfoWrapper:Ave,communityInviteInfo:Pve,actions:zve,buttonProfile:Fve},US={"de-DE":{already_joined:"sind schon dabei. Lade weitere Nachbar:innen ein und bring mehr Leben in die Runde.",call_to_action_invite:"Lade deine Nachbar:innen ein und mach den ersten Schritt.",first_user_welcome:"Du bist eine:r der Ersten hier - das Miteinander beginnt mit dir!",invite_neighbors:"Lade deine Nachbar:innen ein und mach den ersten Schritt.",more_people_together:"Mehr Menschen, mehr Miteinander!",no_users_yet:"In deiner Nachbarschaft ist noch nicht viel los. Lade weitere Nachbar:innen ein und bring mehr Leben in die Runde.",print_invitation:"Einladung ausdrucken",share_invitation_link:"Einladungslink teilen"}},Vc=Ne(US),Lve=({onMoreClick:t,onProfileClick:e,users:n})=>n.length===0?h.jsxs("div",{className:si.communityInviteInfo,children:[h.jsx(C.Typography,{className:X(si.header,si.center),type:"h3",children:Vc.first_user_welcome}),h.jsx(C.Typography,{type:"body-regular",children:Vc.call_to_action_invite})]}):n.length<=3?h.jsx(C.Typography,{type:"body-regular",children:Vc.no_users_yet}):h.jsxs(C.Typography,{type:"body-regular",children:[n.slice(0,3).map((i,r)=>h.jsxs(C.Button,{className:si.buttonProfile,onClick:()=>e==null?void 0:e(i.id),children:[h.jsxs(C.Typography,{type:"body-text-link",children:[i.firstname," ",i.lastname.charAt(0),"."]}),r<2&&", "]},r))," ","und"," ",h.jsx(C.Button,{onClick:t,children:h.jsxs(C.Typography,{type:"body-text-link",children:[n.length-4," weitere"]})})," ",Vc.already_joined]}),s0=Ne(US),jve=({onMoreClick:t,onPrintInvitationClick:e,onProfileClick:n,onShareInvitationClick:i,users:r})=>{const a=()=>r.length>0&&h.jsx(C.Typography,{className:si.header,type:"h3",children:s0.more_people_together}),s=()=>r.length===0?h.jsx("div",{className:si.stickerWrapper,children:h.jsx(C.Sticker,{icon:"invite_neighbour",color:"orange",size:"large"})}):h.jsx("div",{className:si.avatarClusterWrapper,children:h.jsx(C.UserAvatarCluster,{size:"large",onAvatarClick:n,onMoreClick:t,users:r})});return h.jsx(C.Card,{borderRadius:!0,className:si.container,withoutPadding:!0,children:h.jsxs(C.CardBody,{withoutPadding:!0,className:si.cardBody,children:[a(),s(),h.jsx("div",{className:si.inviteInfoWrapper,children:h.jsx(Lve,{users:r,onMoreClick:t,onProfileClick:n})}),h.jsxs("div",{className:si.actions,children:[h.jsx(C.ButtonTertiary,{onClick:e,color:"blue",rightIcon:h.jsx(C.Icon,{name:"paper_form"}),text:s0.print_invitation}),h.jsx(C.ButtonPrimary,{onClick:i,text:s0.share_invitation_link,rightIcon:h.jsx(C.Icon,{name:"link"})})]})]})})},Ive="_container_qsags_146",Rve="_circle_qsags_154",Nve="_logo_qsags_162",o0={container:Ive,circle:Rve,logo:Nve},Dve=(t,e)=>y.createElement("svg",{width:72,height:80,viewBox:"0 0 72 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},y.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"})),Bve=v.forwardRef(Dve),qS=()=>h.jsxs("div",{className:o0.container,children:[h.jsx("div",{className:o0.circle}),h.jsx(Bve,{className:o0.logo})]}),Ove="_react-datepicker_156pv_116",Hve="_react-datepicker__day-names_156pv_119",Wve="_react-datepicker__week_156pv_123",_ve="_react-datepicker__day--outside-month_156pv_130",Vve="_react-datepicker__time-container_156pv_139",Gve="_react-datepicker__time_156pv_139",Uve="_react-datepicker__time-box_156pv_142",qve="_wrapper_156pv_146",Kve="_header_156pv_153",Zve="_navbar_156pv_161",Jve="_banner_156pv_166",Qve="_banner--withChristmasBanner_156pv_174",Yve="_banner--hidden_156pv_177",Xve="_christmasBanner_156pv_181",$ve="_christmasBanner--active_156pv_189",e3e="_main_156pv_195",t3e="_contentContainer_156pv_199",n3e="_contentContainer__withBanner_156pv_205",i3e="_contentContainer__withBanner_156pv_205",r3e="_contentContainer__withChristmasBanner_156pv_208",a3e="_contentContainer__withChristmasBanner_156pv_208",s3e="_contentContainer__withTwoBanner_156pv_211",o3e="_contentContainer__withTwoBanner_156pv_211",l3e="_content_156pv_199",u3e="_mainContent_156pv_221",c3e="_mainContent__isFullWidth_156pv_225",d3e="_mainContent__isFullWidth_156pv_225",f3e="_sidebarRight_156pv_229",h3e="_adSlot_156pv_243",m3e="_adSlot__withBanner_156pv_252",p3e="_adSlot__withBanner_156pv_252",g3e="_adSlot__withChristmasBanner_156pv_255",v3e="_adSlot__withChristmasBanner_156pv_255",b3e="_adSlot__withTwoBanner_156pv_258",w3e="_adSlot__withTwoBanner_156pv_258",y3e="_adSlot--left_156pv_283",k3e="_adSlot--right_156pv_288",$e={"react-datepicker":"_react-datepicker_156pv_116",reactDatepicker:Ove,"react-datepicker__day-names":"_react-datepicker__day-names_156pv_119",reactDatepickerDayNames:Hve,"react-datepicker__week":"_react-datepicker__week_156pv_123",reactDatepickerWeek:Wve,"react-datepicker__day--outside-month":"_react-datepicker__day--outside-month_156pv_130",reactDatepickerDayOutsideMonth:_ve,"react-datepicker__time-container":"_react-datepicker__time-container_156pv_139",reactDatepickerTimeContainer:Vve,"react-datepicker__time":"_react-datepicker__time_156pv_139",reactDatepickerTime:Gve,"react-datepicker__time-box":"_react-datepicker__time-box_156pv_142",reactDatepickerTimeBox:Uve,wrapper:qve,header:Kve,navbar:Zve,banner:Jve,"banner--withChristmasBanner":"_banner--withChristmasBanner_156pv_174",bannerWithChristmasBanner:Qve,"banner--hidden":"_banner--hidden_156pv_177",bannerHidden:Yve,christmasBanner:Xve,"christmasBanner--active":"_christmasBanner--active_156pv_189",christmasBannerActive:$ve,main:e3e,contentContainer:t3e,contentContainer__withBanner:n3e,contentContainerWithBanner:i3e,contentContainer__withChristmasBanner:r3e,contentContainerWithChristmasBanner:a3e,contentContainer__withTwoBanner:s3e,contentContainerWithTwoBanner:o3e,content:l3e,mainContent:u3e,mainContent__isFullWidth:c3e,mainContentIsFullWidth:d3e,sidebarRight:f3e,adSlot:h3e,adSlot__withBanner:m3e,adSlotWithBanner:p3e,adSlot__withChristmasBanner:g3e,adSlotWithChristmasBanner:v3e,adSlot__withTwoBanner:b3e,adSlotWithTwoBanner:w3e,"adSlot--left":"_adSlot--left_156pv_283",adSlotLeft:y3e,"adSlot--right":"_adSlot--right_156pv_288",adSlotRight:k3e},o4=({banner:t,children:e,enableAdSlots:n,isMainFullWidth:i,leftAdSlot:r,navbar:a,right:s,rightAdSlot:o})=>{const{christmasBannerVariant:l,didRender:u}=t,c=u&&!l,f=l&&!u,d=l&&u;return h.jsxs("div",{className:$e.wrapper,children:[n&&h.jsx("div",{className:X($e.adSlot,$e["adSlot--left"],{[$e.adSlot__withBanner]:c,[$e.adSlot__withChristmasBanner]:f,[$e.adSlot__withTwoBanner]:d}),children:r}),h.jsxs("div",{className:X($e.contentContainer,{[$e.contentContainer__withBanner]:c,[$e.contentContainer__withChristmasBanner]:f,[$e.contentContainer__withTwoBanner]:d}),children:[h.jsx("header",{className:$e.header,children:h.jsx("nav",{className:$e.navBar,children:a})}),t.christmasBannerVariant&&h.jsx("div",{className:X($e.christmasBanner,$e["christmasBanner--active"]),children:h.jsx(Ud,{active:!0})}),h.jsxs("div",{className:X($e.content),children:[h.jsx("main",{"data-content-width":!0,className:X($e.mainContent,{[$e.mainContent__isFullWidth]:i}),children:e}),s&&h.jsx("aside",{className:$e.sidebarRight,children:s})]})]}),n&&h.jsx("div",{className:X($e.adSlot,$e["adSlot--right"],{[$e.adSlot__withBanner]:c,[$e.adSlot__withChristmasBanner]:f,[$e.adSlot__withTwoBanner]:d}),children:o}),t.christmasBannerVariant&&h.jsx("div",{className:$e.christmasBanner,children:h.jsx(Ud,{})}),t.adSlot&&h.jsx("div",{className:X($e.banner,{[$e["banner--withChristmasBanner"]]:t.christmasBannerVariant,[$e["banner--hidden"]]:!t.didRender}),children:t.adSlot})]})};var KS={exports:{}};(()=>{var t={d:(s,o)=>{for(var l in o)t.o(o,l)&&!t.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:o[l]})},o:(s,o)=>Object.prototype.hasOwnProperty.call(s,o),r:s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>a});const n=v;function i(s,o){return function(l){if(Array.isArray(l))return l}(s)||function(l,u){var c=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(c!=null){var f,d,m=[],p=!0,b=!1;try{for(c=c.call(l);!(p=(f=c.next()).done)&&(m.push(f.value),!u||m.length!==u);p=!0);}catch(g){b=!0,d=g}finally{try{p||c.return==null||c.return()}finally{if(b)throw d}}return m}}(s,o)||function(l,u){if(l){if(typeof l=="string")return r(l,u);var c=Object.prototype.toString.call(l).slice(8,-1);return c==="Object"&&l.constructor&&(c=l.constructor.name),c==="Map"||c==="Set"?Array.from(l):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?r(l,u):void 0}}(s,o)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
914
914
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function r(s,o){(o==null||o>s.length)&&(o=s.length);for(var l=0,u=new Array(o);l<o;l++)u[l]=s[l];return u}const a=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:300,o=arguments.length>1?arguments[1]:void 0,l=(0,n.useState)(o),u=i(l,2),c=u[0],f=u[1];return(0,n.useEffect)(function(){var d=function(){var m=window.screen.height-s>window.visualViewport.height;c!=m&&f(m)};return typeof visualViewport<"u"&&window.visualViewport.addEventListener("resize",d),function(){typeof visualViewport<"u"&&window.visualViewport.removeEventListener("resize",d)}},[]),c};KS.exports=e})();var x3e=KS.exports;const S3e=Zn(x3e),C3e="_mobileLayout_11idt_146",E3e="_mobileLayoutHeader_11idt_151",T3e="_header_11idt_158",M3e="_mobileLayoutMain_11idt_161",A3e="_mobileLayoutMainWithFooter_11idt_168",P3e="_mobileLayoutActionButton_11idt_171",z3e="_mobileLayoutFooter_11idt_179",F3e="_stickyHeader_11idt_189",L3e="_sticky_11idt_189",j3e="_adSlot_11idt_200",I3e="_hideAdSlot_11idt_210",ei={mobileLayout:C3e,mobileLayoutHeader:E3e,header:T3e,mobileLayoutMain:M3e,mobileLayoutMainWithFooter:A3e,mobileLayoutActionButton:P3e,mobileLayoutFooter:z3e,stickyHeader:F3e,sticky:L3e,adSlot:j3e,hideAdSlot:I3e},l4=50,R3e=100,N3e=t=>{const[e,n]=v.useState(!1),i=v.useRef(0),r=v.useRef(0);return v.useEffect(()=>{if(!t){n(!1);return}const a=()=>{const s=window.scrollY,o=s>i.current,l=s<i.current;if(s<l4){n(!1);return}o&&s>l4?(n(!0),r.current=0):l&&r.current===0&&(r.current=s),l&&r.current-s>=R3e&&(n(!1),r.current=0),i.current=s};return window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a)}},[t]),e},kp=({action:t,adSlot:e,adSlotEnabled:n=!1,banner:i,children:r,christmasBannerVariant:a,footer:s,header:o,hideHeaderOnScroll:l=!0,showFooter:u=!0})=>{const c=S3e(),f=N3e(l),d=v.useRef(null),[m,p]=v.useState(0);return v.useEffect(()=>{if(!d.current||!n){p(0);return}const b=d.current,g=new ResizeObserver(w=>{const k=w[0];k&&k.contentRect&&p(k.contentRect.height+16)});return g.observe(b),()=>g.disconnect()},[n,e]),h.jsxs("section",{className:ei.mobileLayout,style:{"--anchor-ad-wrapper-height":`${m}px`},children:[h.jsxs("header",{className:X(ei.stickyHeader,ei.mobileLayoutHeader,{[ei.sticky]:f}),children:[h.jsx("div",{className:X(ei.header),children:o}),e&&h.jsx("div",{ref:d,className:X(ei.adSlot,{[ei.hideAdSlot]:!n}),children:e})]}),h.jsxs("main",{"data-content-width":!0,className:X(ei.mobileLayoutMain,{[ei.mobileLayoutMainWithFooter]:u}),tabIndex:0,children:[a&&h.jsx(Ud,{variant:a,active:!0}),i,r]}),u&&h.jsxs(h.Fragment,{children:[t&&!c&&h.jsx("div",{className:ei.mobileLayoutActionButton,children:t}),h.jsx("footer",{className:ei.mobileLayoutFooter,children:s})]})]})},D3e="_loadingSpinnerContainer_to7w3_146",B3e="_mobileContainer_to7w3_153",O3e="_desktopContainer_to7w3_162",l0={loadingSpinnerContainer:D3e,mobileContainer:B3e,desktopContainer:O3e},H3e=({children:t,desktop:e,initialIsMobile:n,keepLoading:i,mobile:r})=>{const[a,s]=v.useState(n??null);return v.useEffect(()=>{const o=()=>{s(window.innerWidth<800)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]),i?h.jsx("div",{className:l0.loadingSpinnerContainer,children:h.jsx(qS,{})}):a===null?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:l0.mobileContainer,children:r.withoutMobileLayout?h.jsx("main",{"data-content-width":!0,children:t}):h.jsx(kp,{...r,children:t})}),h.jsx("div",{className:l0.desktopContainer,children:h.jsx(o4,{...e,children:t})})]}):a?r.withoutMobileLayout?h.jsx("main",{children:t},"mobile-main"):h.jsx(kp,{...r,children:t},"mobile-layout"):h.jsx(o4,{...e,children:t},"desktop-layout")};var W3e=_3e;function _3e(t){if(t)throw t}/*!
915
915
  * Determine if an object is a Buffer
916
916
  *
package/index.mjs CHANGED
@@ -598,17 +598,16 @@ const Xl = /* @__PURE__ */ ci(KA), Mk = qr({
598
598
  isSuccess: t,
599
599
  loading: e
600
600
  }) => {
601
- const [n, i] = _(!1), r = ye(() => {
602
- i(!1);
603
- const a = new URL(window.location.href);
604
- a.searchParams.delete("id"), a.searchParams.delete("state"), window.history.replaceState({}, "", a.toString());
601
+ const [n, i] = _(!1), [r, a] = _(t), o = ye(() => {
602
+ const s = new URL(window.location.href);
603
+ s.searchParams.delete("id"), s.searchParams.delete("state"), window.history.replaceState({}, "", s.toString()), i(!1), a(!1);
605
604
  }, []);
606
- return t && !n && i(!0), /* @__PURE__ */ p(
605
+ return r && !n && i(!0), /* @__PURE__ */ p(
607
606
  Pk,
608
607
  {
609
608
  isLoading: e,
610
609
  open: n,
611
- onDismiss: r,
610
+ onDismiss: o,
612
611
  onCheckout: dk,
613
612
  paymentInterrupted: !1
614
613
  }
@@ -82827,7 +82826,7 @@ const B3e = "_root_epx5p_146", H3e = "_root__content_epx5p_154", j3e = "_root__c
82827
82826
  root: B3e,
82828
82827
  root__content: H3e,
82829
82828
  root__content__text: j3e
82830
- }, W3e = (t, e) => /* @__PURE__ */ w.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "white" }), /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "#FF9DE2" }), /* @__PURE__ */ w.createElement("circle", { cx: 20, cy: 20, r: 13, fill: "white" }), /* @__PURE__ */ w.createElement("circle", { cx: 16.5, cy: 17.5, r: 1.5, fill: "#B22B8A" }), /* @__PURE__ */ w.createElement("circle", { cx: 23.5, cy: 17.5, r: 1.5, fill: "#B22B8A" }), /* @__PURE__ */ w.createElement("path", { d: "M25 26C25 26 23 24 20 24C17 24 15 26 15 26", stroke: "#B22B8A", strokeWidth: 1.5, strokeLinecap: "round" })), _3e = H(W3e), V3e = (t, e) => /* @__PURE__ */ w.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "white" }), /* @__PURE__ */ w.createElement("circle", { cx: 20, cy: 20, r: 12.25, stroke: "#01819C", strokeWidth: 1.5 }), /* @__PURE__ */ w.createElement("circle", { cx: 16.5, cy: 17.5, r: 1.5, fill: "#01819C" }), /* @__PURE__ */ w.createElement("circle", { cx: 23.5, cy: 17.5, r: 1.5, fill: "#01819C" }), /* @__PURE__ */ w.createElement("path", { d: "M25 26C25 26 23 24 20 24C17 24 15 26 15 26", stroke: "#01819C", strokeWidth: 1.5, strokeLinecap: "round" })), G3e = H(V3e), U3e = (t, e) => /* @__PURE__ */ w.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "white" }), /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "#01819C" }), /* @__PURE__ */ w.createElement("circle", { cx: 20, cy: 20, r: 13, fill: "white" }), /* @__PURE__ */ w.createElement("circle", { cx: 16.5, cy: 17.5, r: 1.5, fill: "#01819C" }), /* @__PURE__ */ w.createElement("circle", { cx: 23.5, cy: 17.5, r: 1.5, fill: "#01819C" }), /* @__PURE__ */ w.createElement("path", { d: "M25 24C25 24 23 27 20 27C17 27 15 24 15 24", stroke: "#01819C", strokeWidth: 1.5, strokeLinecap: "round" })), K3e = H(U3e), q3e = (t, e) => /* @__PURE__ */ w.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "white" }), /* @__PURE__ */ w.createElement("circle", { cx: 20, cy: 20, r: 12.25, stroke: "#01819C", strokeWidth: 1.5 }), /* @__PURE__ */ w.createElement("circle", { cx: 16.5, cy: 17.5, r: 1.5, fill: "#01819C" }), /* @__PURE__ */ w.createElement("circle", { cx: 23.5, cy: 17.5, r: 1.5, fill: "#01819C" }), /* @__PURE__ */ w.createElement("path", { d: "M25 24C25 24 23 27 20 27C17 27 15 24 15 24", stroke: "#01819C", strokeWidth: 1.5, strokeLinecap: "round" })), Z3e = H(q3e), J3e = "_root_16zgx_146", Q3e = {
82829
+ }, W3e = (t, e) => /* @__PURE__ */ w.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "white" }), /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "#B22B8A" }), /* @__PURE__ */ w.createElement("circle", { cx: 20, cy: 20, r: 13, fill: "white" }), /* @__PURE__ */ w.createElement("circle", { cx: 16.5, cy: 17.5, r: 1.5, fill: "#B22B8A" }), /* @__PURE__ */ w.createElement("circle", { cx: 23.5, cy: 17.5, r: 1.5, fill: "#B22B8A" }), /* @__PURE__ */ w.createElement("path", { d: "M25 26C25 26 23 24 20 24C17 24 15 26 15 26", stroke: "#B22B8A", strokeWidth: 1.5, strokeLinecap: "round" })), _3e = H(W3e), V3e = (t, e) => /* @__PURE__ */ w.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "white" }), /* @__PURE__ */ w.createElement("circle", { cx: 20, cy: 20, r: 12.25, stroke: "#B22B8A", strokeWidth: 1.5 }), /* @__PURE__ */ w.createElement("circle", { cx: 16.5, cy: 17.5, r: 1.5, fill: "#B22B8A" }), /* @__PURE__ */ w.createElement("circle", { cx: 23.5, cy: 17.5, r: 1.5, fill: "#B22B8A" }), /* @__PURE__ */ w.createElement("path", { d: "M25 26C25 26 23 24 20 24C17 24 15 26 15 26", stroke: "#B22B8A", strokeWidth: 1.5, strokeLinecap: "round" })), G3e = H(V3e), U3e = (t, e) => /* @__PURE__ */ w.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "white" }), /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "#01819C" }), /* @__PURE__ */ w.createElement("circle", { cx: 20, cy: 20, r: 13, fill: "white" }), /* @__PURE__ */ w.createElement("circle", { cx: 16.5, cy: 17.5, r: 1.5, fill: "#01819C" }), /* @__PURE__ */ w.createElement("circle", { cx: 23.5, cy: 17.5, r: 1.5, fill: "#01819C" }), /* @__PURE__ */ w.createElement("path", { d: "M25 24C25 24 23 27 20 27C17 27 15 24 15 24", stroke: "#01819C", strokeWidth: 1.5, strokeLinecap: "round" })), K3e = H(U3e), q3e = (t, e) => /* @__PURE__ */ w.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: e, ...t }, /* @__PURE__ */ w.createElement("path", { d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "white" }), /* @__PURE__ */ w.createElement("circle", { cx: 20, cy: 20, r: 12.25, stroke: "#01819C", strokeWidth: 1.5 }), /* @__PURE__ */ w.createElement("circle", { cx: 16.5, cy: 17.5, r: 1.5, fill: "#01819C" }), /* @__PURE__ */ w.createElement("circle", { cx: 23.5, cy: 17.5, r: 1.5, fill: "#01819C" }), /* @__PURE__ */ w.createElement("path", { d: "M25 24C25 24 23 27 20 27C17 27 15 24 15 24", stroke: "#01819C", strokeWidth: 1.5, strokeLinecap: "round" })), Z3e = H(q3e), J3e = "_root_16zgx_146", Q3e = {
82831
82830
  root: J3e
82832
82831
  }, Y3e = [
82833
82832
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.13.0-development.7",
3
+ "version": "4.13.0-development.9",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",