@goodhood-web/nebenan-base 4.16.0-development.5 → 4.16.0-development.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +122 -125
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";var KE=Object.defineProperty;var ZE=(e,t,n)=>t in e?KE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var K=(e,t,n)=>ZE(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),b=require("react"),C=require("@goodhood-web/ui"),He=require("@goodhood-web/api/core"),Wp=require("@goodhood-web/services/chargebee"),Ee=require("@goodhood-web/services/snowplow"),Lf=require("lodash"),he=require("react-hook-form"),Vp=require("@zxcvbn-ts/core"),Av=require("@hookform/resolvers"),Kn=require("@goodhood-web/services/analytics"),Ie=require("@goodhood-web/api/core_v2"),ce=require("zod"),Yl=require("react-dom"),fo=require("uuid"),Rw=require("@tanstack/react-query"),JE=require("@goodhood-web/services/engagement");var Ts=typeof document<"u"?document.currentScript:null;function Nw(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const y=Nw(b),QE=Nw(Yl);function Dw(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Dw(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function $(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Dw(e))&&(i&&(i+=" "),i+=t);return i}const YE="_accordionBtnWrapper_nc5qt_146",XE="_heading_nc5qt_151",$E="_title_nc5qt_163",eT="_icon_nc5qt_180",tT="_iconExpanded_nc5qt_186",nT="_panel_nc5qt_194",Ms={accordionBtnWrapper:YE,heading:XE,title:$E,icon:eT,iconExpanded:tT,panel:nT},iT=({children:e,id:t,isOpen:n=!1,onClick:i,title:r})=>{const[a,s]=b.useState(n),o=()=>{s(l=>!l),i&&i()};return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:Ms.accordionBtnWrapper,children:h.jsxs("button",{id:`accordion-header-${t}`,className:$(Ms.heading),"aria-expanded":a,"aria-controls":`accordion-panel-${t}`,"data-expanded":a,onClick:o,children:[h.jsx(C.Typography,{type:"body-semibold",as:"h3",className:Ms.title,"data-expanded":a,children:r}),h.jsx(C.Icon,{name:"chevron_down",size:"24",className:$(Ms.icon,{[Ms.iconExpanded]:a})})]})}),h.jsx("div",{id:`accordion-panel-${t}`,className:$(Ms.panel),"data-expanded":a,"aria-labelledby":`accordion-header-${t}`,hidden:!a,children:e})]})},rT="_root_54kt0_146",aT="_button_54kt0_149",sT="_thumbnail_54kt0_152",oT="_card_54kt0_155",lT="_cardBody_54kt0_164",cT="_text_54kt0_172",uT="_text__withIcon_54kt0_178",dT="_rightIcon_54kt0_182",Fr={root:rT,button:aT,thumbnail:sT,card:oT,cardBody:lT,text:cT,text__withIcon:uT,rightIcon:dT},Gp=({description:e,headline:t,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:Fr.root,children:[h.jsx(C.Button,{className:Fr.button,onClick:i,href:o,target:"_blank",children:h.jsx(C.Card,{borderRadius:!0,withoutPadding:!0,className:Fr.card,children:h.jsxs(C.CardBody,{className:Fr.cardBody,children:[n&&h.jsx(C.Thumbnail,{className:Fr.thumbnail,shape:"square",size:"64",alt:n.alt,src:n.src}),h.jsxs("div",{className:$(Fr.text,{[Fr.text__withIcon]:s}),children:[h.jsx(C.Typography,{type:"body-semibold",children:t}),h.jsx(C.Typography,{type:"detail-regular",children:a}),h.jsx(C.Typography,{type:"detail-regular",children:e})]})]})})}),s&&r&&h.jsx("div",{className:Fr.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 Fn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fT(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}),n}function hT(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Up=hT,mT=typeof ve=="object"&&ve&&ve.Object===Object&&ve,pT=mT,gT=pT,vT=typeof self=="object"&&self&&self.Object===Object&&self,bT=gT||vT||Function("return this")(),Bw=bT,wT=Bw,yT=function(){return wT.Date.now()},kT=yT,xT=/\s/;function ST(e){for(var t=e.length;t--&&xT.test(e.charAt(t)););return t}var CT=ST,ET=CT,TT=/^\s+/;function MT(e){return e&&e.slice(0,ET(e)+1).replace(TT,"")}var AT=MT,PT=Bw,zT=PT.Symbol,Ow=zT,Pv=Ow,Hw=Object.prototype,FT=Hw.hasOwnProperty,jT=Hw.toString,el=Pv?Pv.toStringTag:void 0;function LT(e){var t=FT.call(e,el),n=e[el];try{e[el]=void 0;var i=!0}catch{}var r=jT.call(e);return i&&(t?e[el]=n:delete e[el]),r}var IT=LT,RT=Object.prototype,NT=RT.toString;function DT(e){return NT.call(e)}var BT=DT,zv=Ow,OT=IT,HT=BT,_T="[object Null]",WT="[object Undefined]",Fv=zv?zv.toStringTag:void 0;function VT(e){return e==null?e===void 0?WT:_T:Fv&&Fv in Object(e)?OT(e):HT(e)}var GT=VT;function UT(e){return e!=null&&typeof e=="object"}var qT=UT,KT=GT,ZT=qT,JT="[object Symbol]";function QT(e){return typeof e=="symbol"||ZT(e)&&KT(e)==JT}var YT=QT,XT=AT,jv=Up,$T=YT,Lv=NaN,eM=/^[-+]0x[0-9a-f]+$/i,tM=/^0b[01]+$/i,nM=/^0o[0-7]+$/i,iM=parseInt;function rM(e){if(typeof e=="number")return e;if($T(e))return Lv;if(jv(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=jv(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=XT(e);var n=tM.test(e);return n||nM.test(e)?iM(e.slice(2),n?2:8):eM.test(e)?Lv:+e}var aM=rM,sM=Up,D1=kT,Iv=aM,oM="Expected a function",lM=Math.max,cM=Math.min;function uM(e,t,n){var i,r,a,s,o,l,c=0,u=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(oM);t=Iv(t)||0,sM(n)&&(u=!!n.leading,f="maxWait"in n,a=f?lM(Iv(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function m(M){var z=i,P=r;return i=r=void 0,c=M,s=e.apply(P,z),s}function p(M){return c=M,o=setTimeout(w,t),u?m(M):s}function v(M){var z=M-l,P=M-c,F=t-z;return f?cM(F,a-P):F}function g(M){var z=M-l,P=M-c;return l===void 0||z>=t||z<0||f&&P>=a}function w(){var M=D1();if(g(M))return k(M);o=setTimeout(w,v(M))}function k(M){return o=void 0,d&&i?m(M):(i=r=void 0,s)}function x(){o!==void 0&&clearTimeout(o),c=0,i=l=r=o=void 0}function T(){return o===void 0?s:k(D1())}function E(){var M=D1(),z=g(M);if(i=arguments,r=this,l=M,z){if(o===void 0)return p(l);if(f)return clearTimeout(o),o=setTimeout(w,t),m(l)}return o===void 0&&(o=setTimeout(w,t)),s}return E.cancel=x,E.flush=T,E}var _w=uM;const Ww=Fn(_w);var dM=_w,fM=Up,hM="Expected a function";function mM(e,t,n){var i=!0,r=!0;if(typeof e!="function")throw new TypeError(hM);return fM(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),dM(e,t,{leading:i,maxWait:t,trailing:r})}var pM=mM;const gM=Fn(pM),Fo=799,vM=690,Jt=(e=Fo)=>{if(typeof window>"u"||typeof document>"u")return!1;const t=document.documentElement.clientWidth<=e;return("ontouchstart"in window||navigator.maxTouchPoints>0)&&t},$e=(e=vM)=>{const[t,n]=b.useState(void 0),i=b.useCallback(gM(()=>{typeof window<"u"&&n(window.matchMedia(`(min-width: ${e}px)`).matches)},300),[e]);return b.useEffect(()=>{if(typeof window<"u")return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[e,i]),t},Vw=e=>{if(!e)return 0;const t=e.split("/").pop(),n=Number(t);return isNaN(n)?0:n},bM=(e,t="de-DE")=>new Intl.NumberFormat(t,{currency:"EUR",style:"currency"}).format(e/100),qp=e=>Math.round(e)/100,Il=e=>typeof e=="string"?e:e.src,Gw=(e,t,n)=>[{category:"feature_payments",currency:"EUR",id:t,name:n,price:qp(e)}],wM=(e,t,n=0)=>({currency:"EUR",products:Gw(n,e,t),total_value:qp(n)}),yM=(e,t,n)=>({currency:"EUR",payment_method:"chargebee",products:Gw(e,t,n),revenue:qp(e),total_quantity:1,transaction_id:kM()}),jr=()=>Math.floor(Math.random()*65536).toString(16).padStart(4,"0"),kM=()=>`${jr()}${jr()}-${jr()}-${jr()}-${jr()}-${jr()}${jr()}${jr()}`,Re=(e,t="de-DE")=>e[t],En=(e,t,n="*****")=>{if(typeof t=="string"){const i=new RegExp(`\\{${t}\\}`,"g");return e.replace(i,n)}else return Object.entries(t).reduce((i,[r,a])=>{const s=new RegExp(`\\{${r}\\}`,"g");return i.replace(s,a)},e)},xM=(e,t,n="keypress")=>{b.useEffect(()=>{const i=Array.isArray(e)?e:[e],r=a=>{i.includes(a.key)&&(a.preventDefault(),t(a))};return window.addEventListener(n,r),()=>{window.removeEventListener(n,r)}},[e,t,n])};function Td(e){if(!e)return null;const t=e.match(/^gid:\/\/([^/]+)\/([^/]+)\/(.+)$/);if(!t)return null;const[,n,i,r]=t,a=/^\d+$/.test(r)?parseInt(r,10):void 0;return{id:r,model:i,namespace:n,numericId:a}}function SM(e){const t=Td(e);return(t==null?void 0:t.numericId)??null}function CM(e,t="de-DE",n="EUR"){if(e==null)return"Zu verschenken";const i=e/100;return new Intl.NumberFormat(t,{currency:n,maximumFractionDigits:2,minimumFractionDigits:0,style:"currency"}).format(i)}function EM(e,t="Zu verschenken"){return!e||e===0?t:CM(e)}function TM(){}var MM=TM;const Al=Fn(MM),Uw=b.createContext({navigate:()=>Al}),xt=()=>{const{navigate:e}=b.useContext(Uw);return b.useCallback((t,n)=>{e(t,n)},[e])},qw="data:image/webp;base64,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",AM="_sheet__header_114fy_146",PM="_sheet__content_114fy_153",zM="_sheet__content__sticker_114fy_166",FM="_sheet__content__headline_114fy_169",jM="_sheet__content__label_114fy_178",LM="_sheet__content__button_114fy_181",IM="_sheet__image_114fy_188",Tn={sheet__header:AM,sheet__content:PM,sheet__content__sticker:zM,sheet__content__headline:FM,"sheet__content__headline--error":"_sheet__content__headline--error_114fy_172",sheet__content__label:jM,sheet__content__button:LM,sheet__image:IM},RM={"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"}}},Va=Re(RM),NM=()=>h.jsxs(h.Fragment,{children:[h.jsx("div",{className:Tn.sheet__image,children:h.jsx(C.Image,{src:Il(qw),alt:"highlight illustration"})}),h.jsx("div",{className:Tn.sheet__content,children:h.jsx(C.Typography,{type:"h3",className:Tn.sheet__content__label,children:Va.loading.title})})]}),DM=()=>{const e=xt(),t=()=>e("/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:Va.success.label}),h.jsx(C.Typography,{type:"h3",className:Tn.sheet__content__headline,children:Va.success.title}),h.jsx("div",{className:Tn.sheet__content__button,children:h.jsx(C.ButtonPrimary,{text:Va.success.cta,onClick:t,size:"medium"})})]})},BM=({onClick:e})=>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:Va.error.title}),h.jsx(C.Typography,{type:"body-regular",markdown:!0,children:Va.error.text})]}),h.jsx("div",{className:Tn.sheet__content__button,children:h.jsx(C.ButtonSecondary,{text:Va.error.cta,onClick:e,size:"medium",color:"lavender"})})]}),Kw=({isLoading:e,onCheckout:t,onDismiss:n,open:i,paymentInterrupted:r})=>{const a=$e(800);return h.jsx(C.Sheet,{open:i,onDismiss:n,header:h.jsx("div",{className:Tn.sheet__header,children:!e&&h.jsx(C.IconButton,{icon:"cross",size:"medium",onClick:n})}),content:r?h.jsx(BM,{onClick:t}):e?h.jsx(NM,{}):h.jsx(DM,{}),footer:h.jsx(h.Fragment,{}),bottomSheet:!a,breakpoint:"800"})},OM=async(e,t)=>(await He.API.getApi().POST("/api/core/v3/posts/{post_id}/payment_intent",{body:{payment_intent:{product_id:t}},params:{path:{post_id:Number(e)}}})).data,HM=async e=>{const t=await He.API.getApi().GET("/api/core/v3/payment_intents/{payment_intent_id}/chargebee_confirmation/new",{params:{path:{payment_intent_id:e}}});if(!(t!=null&&t.data))throw new Error("No data returned from chargebee confirmation endpoint");return{expires_at:t.data.expires_at,id:t.data.hosted_page_id,url:t.data.checkout_url}},Zw=e=>{const[t,n]=b.useState(!1),[i,r]=b.useState(!1),[a,s]=b.useState(""),[o,l]=b.useState(null),[c,u]=b.useState(null),[f,d]=b.useState(null),m=Wp.useOpenCheckout(),p=Ee.useSnowplowTrack(),v=b.useCallback((E,M)=>{p("add_to_cart",{entities:[new Ee.HoodMessage({id:E||0})],main:[M]})},[p]),g=b.useCallback(async(E,M,z)=>{const P=M!==(f==null?void 0:f.productId);if(z&&l(z),d({postId:E,productId:M}),!m){console.error("Chargebee checkout instance not available");return}let F=a,I;if(!a||P){if(!E||!M){console.error("Post ID or Product ID not provided");return}n(!0);try{if(I=await OM(E,M),!I)return console.error("No payment intent ID returned from API");F=I.id,s(F)}catch{r(!0)}finally{n(!1)}}m({getHostedPage:async()=>HM(F),layout:"in_app",onClose:w,onError:w,onStep:A=>{if(A==="cart_screen"){if(I){const{hood_message_id:j=0,product:{id:L,name:O,price_cents:N}}=I,D=wM(L,O,N);v(j,D),u({hood_message_id:j,payload:D});return}c&&v(c.hood_message_id||0,c.payload)}}})},[m,a,c]),w=()=>{setTimeout(()=>{r(!0)},0)},k=()=>{r(!1),f&&g(f.postId,f.productId)},x=()=>{r(!1),o&&(e==null||e(o))};return{PremiumFeatureCheckoutModal:h.jsx(Kw,{isLoading:t,open:t||i,onDismiss:x,onCheckout:k,paymentInterrupted:i}),startCheckout:g}},_M=async e=>(await He.API.getApi().GET("/api/core/v3/posts/{post_id}/payment_intent",{params:{path:{post_id:Number(e)}}})).data,WM=async(e,t)=>{const n=await He.API.getApi().POST("/api/core/v3/payment_intents/{payment_intent_id}/chargebee_confirmation",{body:{chargebee:{hosted_page_id:e}},params:{path:{payment_intent_id:t}}});return n==null?void 0:n.data},VM=(e,t)=>{const[n,i]=b.useState(!1),[r,a]=b.useState(!1),s=b.useRef(!1),o=Ee.useSnowplowTrack();return b.useEffect(()=>{if(s.current)return;const c=new URLSearchParams(window.location.search).get("id");if(!c)return;let u=e;if(!u){const d=window.location.pathname.match(/\/feed\/(\d+)/);u=d==null?void 0:d[1]}if(!u)return;s.current=!0,a(!0),(async()=>{const d=await _M(u);if(!d){const v=new Error("No payment intent found");t==null||t.captureException(v,{hostedPageId:c,postId:u}),a(!1);return}if(!await WM(c,d.id)){const v=new Error("Payment confirmation returned empty response");t==null||t.captureException(v,{hostedPageId:c,paymentIntentId:d.id,postId:u}),a(!1);return}const p=yM(d.product.price_cents,d.product.id,d.product.name);o("purchase",{entities:[new Ee.HoodMessage({id:d.hood_message_id||0})],main:[p]}),a(!1),i(!0)})().catch(d=>{t==null||t.captureException(d,{hostedPageId:c,postId:u}),a(!1)})},[e,t,o]),{isSuccess:n,loading:r}},GM=({isSuccess:e,loading:t})=>{const[n,i]=b.useState(!1),[r,a]=b.useState(e),s=b.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(Kw,{isLoading:t,open:n,onDismiss:s,onCheckout:Lf.noop,paymentInterrupted:!1})},UM="_root_n6fil_146",qM="_root__search_n6fil_149",Rv={root:UM,root__search:qM};/*! *****************************************************************************
2
+ Schließe jetzt deine Zahlung ab.`,title:"Zahlung unterbrochen",cta:"Zahlung abschließen"}}},Va=Re(RM),NM=()=>h.jsxs(h.Fragment,{children:[h.jsx("div",{className:Tn.sheet__image,children:h.jsx(C.Image,{src:Il(qw),alt:"highlight illustration"})}),h.jsx("div",{className:Tn.sheet__content,children:h.jsx(C.Typography,{type:"h3",className:Tn.sheet__content__label,children:Va.loading.title})})]}),DM=()=>{const e=xt(),t=()=>e("/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:Va.success.label}),h.jsx(C.Typography,{type:"h3",className:Tn.sheet__content__headline,children:Va.success.title}),h.jsx("div",{className:Tn.sheet__content__button,children:h.jsx(C.ButtonPrimary,{text:Va.success.cta,onClick:t,size:"medium"})})]})},BM=({onClick:e})=>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:Va.error.title}),h.jsx(C.Typography,{type:"body-regular",markdown:!0,children:Va.error.text})]}),h.jsx("div",{className:Tn.sheet__content__button,children:h.jsx(C.ButtonSecondary,{text:Va.error.cta,onClick:e,size:"medium",color:"lavender"})})]}),Kw=({isLoading:e,onCheckout:t,onDismiss:n,open:i,paymentInterrupted:r})=>{const a=$e(800);return h.jsx(C.Sheet,{open:i,onDismiss:n,header:h.jsx("div",{className:Tn.sheet__header,children:!e&&h.jsx(C.IconButton,{icon:"cross",size:"medium",onClick:n})}),content:r?h.jsx(BM,{onClick:t}):e?h.jsx(NM,{}):h.jsx(DM,{}),footer:h.jsx(h.Fragment,{}),bottomSheet:!a,breakpoint:"800"})},OM=async(e,t)=>(await He.API.getApi().POST("/api/core/v3/posts/{post_id}/payment_intent",{body:{payment_intent:{product_id:t}},params:{path:{post_id:Number(e)}}})).data,HM=async e=>{const t=await He.API.getApi().GET("/api/core/v3/payment_intents/{payment_intent_id}/chargebee_confirmation/new",{params:{path:{payment_intent_id:e}}});if(!(t!=null&&t.data))throw new Error("No data returned from chargebee confirmation endpoint");return{expires_at:t.data.expires_at,id:t.data.hosted_page_id,url:t.data.checkout_url}},Zw=e=>{const[t,n]=b.useState(!1),[i,r]=b.useState(!1),[a,s]=b.useState(""),[o,l]=b.useState(null),[c,u]=b.useState(null),[f,d]=b.useState(null),m=Wp.useOpenCheckout(),p=Ee.useSnowplowTrack(),v=(E,M)=>{p("add_to_cart",{entities:[new Ee.HoodMessage({id:E||0})],main:[M]})},g=b.useCallback(async(E,M,z)=>{const P=M!==(f==null?void 0:f.productId);if(z&&l(z),d({postId:E,productId:M}),!m){console.error("Chargebee checkout instance not available");return}let F=a,I;if(!a||P){if(!E||!M){console.error("Post ID or Product ID not provided");return}n(!0);try{if(I=await OM(E,M),!I)return console.error("No payment intent ID returned from API");F=I.id,s(F)}catch{r(!0)}finally{n(!1)}}m({getHostedPage:async()=>HM(F),layout:"in_app",onClose:w,onError:w,onStep:A=>{if(A==="cart_screen"){if(I){const{hood_message_id:j=0,product:{id:L,name:O,price_cents:N}}=I,D=wM(L,O,N);v(j,D),u({hood_message_id:j,payload:D});return}c&&v(c.hood_message_id||0,c.payload)}}})},[m,a,c]),w=()=>{setTimeout(()=>{r(!0)},0)},k=()=>{r(!1),f&&g(f.postId,f.productId)},x=()=>{r(!1),o&&(e==null||e(o))};return{PremiumFeatureCheckoutModal:h.jsx(Kw,{isLoading:t,open:t||i,onDismiss:x,onCheckout:k,paymentInterrupted:i}),startCheckout:g}},_M=async e=>(await He.API.getApi().GET("/api/core/v3/posts/{post_id}/payment_intent",{params:{path:{post_id:Number(e)}}})).data,WM=async(e,t)=>{const n=await He.API.getApi().POST("/api/core/v3/payment_intents/{payment_intent_id}/chargebee_confirmation",{body:{chargebee:{hosted_page_id:e}},params:{path:{payment_intent_id:t}}});return n==null?void 0:n.data},VM=(e,t)=>{const[n,i]=b.useState(!1),[r,a]=b.useState(!1),s=b.useRef(!1),o=Ee.useSnowplowTrack();return b.useEffect(()=>{if(s.current)return;const c=new URLSearchParams(window.location.search).get("id");if(!c)return;let u=e;if(!u){const d=window.location.pathname.match(/\/feed\/(\d+)/);u=d==null?void 0:d[1]}if(!u)return;s.current=!0,a(!0),(async()=>{const d=await _M(u);if(!d){const v=new Error("No payment intent found");t==null||t.captureException(v,{hostedPageId:c,postId:u}),a(!1);return}if(!await WM(c,d.id)){const v=new Error("Payment confirmation returned empty response");t==null||t.captureException(v,{hostedPageId:c,paymentIntentId:d.id,postId:u}),a(!1);return}const p=yM(d.product.price_cents,d.product.id,d.product.name);o("purchase",{entities:[new Ee.HoodMessage({id:d.hood_message_id||0})],main:[p]}),a(!1),i(!0)})().catch(d=>{t==null||t.captureException(d,{hostedPageId:c,postId:u}),a(!1)})},[e,t,o]),{isSuccess:n,loading:r}},GM=({isSuccess:e,loading:t})=>{const[n,i]=b.useState(!1),[r,a]=b.useState(e),s=b.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(Kw,{isLoading:t,open:n,onDismiss:s,onCheckout:Lf.noop,paymentInterrupted:!1})},UM="_root_n6fil_146",qM="_root__search_n6fil_149",Rv={root:UM,root__search:qM};/*! *****************************************************************************
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
package/index.mjs CHANGED
@@ -3,7 +3,7 @@ var LT = (e, t, n) => t in e ? FT(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var J = (e, t, n) => LT(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsxs as B, Fragment as Se, jsx as p } from "react/jsx-runtime";
5
5
  import * as w from "react";
6
- import ce, { useState as _, useCallback as ke, useEffect as te, createContext as kr, useContext as Ha, useRef as ae, Component as au, useReducer as NT, useDebugValue as IT, useId as ja, useMemo as gt, forwardRef as H, Fragment as vk, useLayoutEffect as Oi, createElement as df, Suspense as DT, cloneElement as bk, useImperativeHandle as Ri, createRef as wk, Children as OT, isValidElement as RT } from "react";
6
+ import ce, { useState as _, useCallback as ye, useEffect as te, createContext as kr, useContext as Ha, useRef as ae, Component as au, useReducer as NT, useDebugValue as IT, useId as ja, useMemo as gt, forwardRef as H, Fragment as vk, useLayoutEffect as Oi, createElement as df, Suspense as DT, cloneElement as bk, useImperativeHandle as Ri, createRef as wk, Children as OT, isValidElement as RT } from "react";
7
7
  import { Typography as K, Icon as Ue, Button as Et, Card as an, CardBody as Vt, Thumbnail as Pc, IconButton as Ee, Sheet as on, Sticker as At, ButtonSecondary as ou, Image as ol, ButtonPrimary as Tt, Loader as Fa, EmptyState as _a, TextButton as wt, TextInput as sr, ListItem as Eg, ButtonTertiary as sl, ProgressBar as kk, CheckboxInput as BT, ContentCreatorTile as yk, InputFieldSpecial as HT, FlagIcon as jT, Select as Sm, RadioButton as xk, RadioButtonCluster as Ck, TextAreaInput as Sk, ToggleInput as _T, CardHeader as fr, ButtonGoogleSSO as Ek, BottomSheet as Tg, Notice as ll, SelectablePillGroup as WT, Divider as v1, Form as VT, Fieldset as GT, Markdown as Tk, Modal as su, Popup as lu, Badge as Mk, PoiAvatar as UT, GalleryPlaceholder as qT, AvatarWithPlaceholder as KT, LabelPill as Ak, CarouselIndicator as ZT, CarouselNavigation as ff, Snackbar as Wa, DropdownItem as Pk, InputDetails as JT, DateTimeInput as QT, RadioButtonSpecial as YT, SwitcherToggle as XT, UserAvatar as b1, DropdownButton as $T, PageLoadingSpinner as eM, OverlayButton as Mg, DropdownCard as Ag, FeedItemCategory as tM, ThumbnailWrapper as nM, useCopyToClipboard as iM, BodyText as rM, CopyLinkButton as aM, UserAvatarCluster as zk, Tooltip as oM } from "@goodhood-web/ui";
8
8
  import { API as qe } from "@goodhood-web/api/core";
9
9
  import { useOpenCheckout as sM, ChargebeeProvider as Fk } from "@goodhood-web/services/chargebee";
@@ -309,7 +309,7 @@ const sP = /* @__PURE__ */ Zn(oP), ul = 799, lP = 690, hn = (e = ul) => {
309
309
  const t = document.documentElement.clientWidth <= e;
310
310
  return ("ontouchstart" in window || navigator.maxTouchPoints > 0) && t;
311
311
  }, ot = (e = lP) => {
312
- const [t, n] = _(void 0), i = ke(
312
+ const [t, n] = _(void 0), i = ye(
313
313
  sP(() => {
314
314
  typeof window < "u" && n(
315
315
  window.matchMedia(`(min-width: ${e}px)`).matches
@@ -405,7 +405,7 @@ const oc = /* @__PURE__ */ Zn(bP), Zk = kr({
405
405
  navigate: () => oc
406
406
  }), Dt = () => {
407
407
  const { navigate: e } = Ha(Zk);
408
- return ke(
408
+ return ye(
409
409
  (t, n) => {
410
410
  e(t, n);
411
411
  },
@@ -514,15 +514,12 @@ const oc = /* @__PURE__ */ Zn(bP), Zk = kr({
514
514
  }, Yk = (e) => {
515
515
  const [t, n] = _(!1), [i, r] = _(!1), [a, o] = _(""), [s, l] = _(null), [c, u] = _(null), [f, d] = _(
516
516
  null
517
- ), h = sM(), m = sn(), v = ke(
518
- (C, E) => {
519
- m("add_to_cart", {
520
- entities: [new Pg({ id: C || 0 })],
521
- main: [E]
522
- });
523
- },
524
- [m]
525
- ), g = ke(
517
+ ), h = sM(), m = sn(), v = (C, E) => {
518
+ m("add_to_cart", {
519
+ entities: [new Pg({ id: C || 0 })],
520
+ main: [E]
521
+ });
522
+ }, g = ye(
526
523
  async (C, E, A) => {
527
524
  const M = E !== (f == null ? void 0 : f.productId);
528
525
  if (A && l(A), d({ postId: C, productId: E }), !h) {
@@ -649,7 +646,7 @@ const oc = /* @__PURE__ */ Zn(bP), Zk = kr({
649
646
  isSuccess: e,
650
647
  loading: t
651
648
  }) => {
652
- const [n, i] = _(!1), [r, a] = _(e), o = ke(() => {
649
+ const [n, i] = _(!1), [r, a] = _(e), o = ye(() => {
653
650
  const s = new URL(window.location.href);
654
651
  s.searchParams.delete("id"), s.searchParams.delete("state"), window.history.replaceState({}, "", s.toString()), i(!1), a(!1);
655
652
  }, []);
@@ -882,7 +879,7 @@ const BP = "_root_o12sn_146", HP = "_root__loading_o12sn_162", xh = {
882
879
  }, WP = "_root_1d2az_146", VP = {
883
880
  root: WP
884
881
  }, GP = ({ onDismiss: e }) => /* @__PURE__ */ p("div", { className: VP.root, children: /* @__PURE__ */ p(wt, { text: "Schließen", size: "large", color: "blue", onClick: e }) }), Xk = ({ inputProps: e, isMobile: t, setQuery: n }) => {
885
- const [i, r] = _(""), a = ke(
882
+ const [i, r] = _(""), a = ye(
886
883
  cM((c) => {
887
884
  n == null || n(c);
888
885
  }, 300),
@@ -1025,7 +1022,7 @@ const $P = ({ attendees: e }) => {
1025
1022
  profileUrl: `${n.neighbour.profile_url}`,
1026
1023
  userId: qk(n.neighbour.gid)
1027
1024
  })) : [], _Pe = ({ participationStatus: e, postId: t }) => {
1028
- const [n, i] = _(!0), [r, a] = _([]), [o, s] = _(""), [l, c] = _(!1), [u, f] = _(!1), d = ke(
1025
+ const [n, i] = _(!0), [r, a] = _([]), [o, s] = _(""), [l, c] = _(!1), [u, f] = _(!1), d = ye(
1029
1026
  async (v = null, g = !1) => {
1030
1027
  var b, k;
1031
1028
  f(!0);
@@ -1533,7 +1530,7 @@ function dl(e, t) {
1533
1530
  }
1534
1531
  function Gn(e, t) {
1535
1532
  const n = sy();
1536
- return ke(
1533
+ return ye(
1537
1534
  (...r) => {
1538
1535
  if ((Cz ? "production" : void 0) !== "production" && !("write" in e))
1539
1536
  throw new Error("not writable atom");
@@ -4325,17 +4322,17 @@ const EN = "_dropdown_1e5h2_146", TN = "_dropdown__options_1e5h2_165", Bl = {
4325
4322
  te(() => {
4326
4323
  t !== v && g(t);
4327
4324
  }, [t]);
4328
- const L = ke(
4325
+ const L = ye(
4329
4326
  (O, W = !0) => {
4330
4327
  l(O), g(O), W && k(dn.NONE);
4331
4328
  },
4332
4329
  [l]
4333
- ), T = ke(
4330
+ ), T = ye(
4334
4331
  (O) => {
4335
4332
  if (g(O.target.value), L(O.target.value, !1), P && O.target.value.length) return R();
4336
4333
  },
4337
4334
  [v, P]
4338
- ), z = ke(
4335
+ ), z = ye(
4339
4336
  (O) => {
4340
4337
  if (b !== dn.NONE)
4341
4338
  switch (O.key) {
@@ -4356,7 +4353,7 @@ const EN = "_dropdown_1e5h2_146", TN = "_dropdown__options_1e5h2_165", Bl = {
4356
4353
  }
4357
4354
  },
4358
4355
  [M, L, y, b]
4359
- ), F = ke(() => {
4356
+ ), F = ye(() => {
4360
4357
  L(v), S(0), b !== dn.NONE && k(dn.NONE);
4361
4358
  }, [v, L, b]), R = () => {
4362
4359
  if (M.length) {
@@ -4365,12 +4362,12 @@ const EN = "_dropdown_1e5h2_146", TN = "_dropdown__options_1e5h2_165", Bl = {
4365
4362
  A.current && A.current.focus();
4366
4363
  }, 0);
4367
4364
  }
4368
- }, I = ke(
4365
+ }, I = ye(
4369
4366
  (O, W) => {
4370
4367
  O.preventDefault(), L(W);
4371
4368
  },
4372
4369
  [L]
4373
- ), D = ke((O) => {
4370
+ ), D = ye((O) => {
4374
4371
  S(O);
4375
4372
  }, []), N = (O, W) => {
4376
4373
  O.key === "Enter" && L(W);
@@ -4492,7 +4489,7 @@ const EN = "_dropdown_1e5h2_146", TN = "_dropdown__options_1e5h2_165", Bl = {
4492
4489
  control: f,
4493
4490
  name: o,
4494
4491
  rules: s
4495
- }), v = yr({ control: f, name: `${e.key}` }), [g, b] = _([]), k = ke(async () => {
4492
+ }), v = yr({ control: f, name: `${e.key}` }), [g, b] = _([]), k = ye(async () => {
4496
4493
  if ((v == null ? void 0 : v.length) === e.keyLength && await d(e.key)) {
4497
4494
  const C = e.endpoint.replace(":key", v);
4498
4495
  try {
@@ -18405,12 +18402,12 @@ function oJ(e) {
18405
18402
  isSubmitting: !1,
18406
18403
  isValidating: !1,
18407
18404
  submitCount: 0
18408
- }), E = C.current, A = ke(function(Z) {
18405
+ }), E = C.current, A = ye(function(Z) {
18409
18406
  var pe = C.current;
18410
18407
  C.current = aJ(pe, Z), pe !== C.current && S(function(be) {
18411
18408
  return be + 1;
18412
18409
  });
18413
- }, []), M = ke(function(Z, pe) {
18410
+ }, []), M = ye(function(Z, pe) {
18414
18411
  return new Promise(function(be, Ce) {
18415
18412
  var Ne = d.validate(Z, pe);
18416
18413
  Ne == null ? be(ro) : Kh(Ne) ? Ne.then(function(_e) {
@@ -18419,7 +18416,7 @@ function oJ(e) {
18419
18416
  process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validate />", _e), Ce(_e);
18420
18417
  }) : be(Ne);
18421
18418
  });
18422
- }, [d.validate]), P = ke(function(Z, pe) {
18419
+ }, [d.validate]), P = ye(function(Z, pe) {
18423
18420
  var be = d.validationSchema, Ce = ii(be) ? be(pe) : be, Ne = pe && Ce.validateAt ? Ce.validateAt(pe, Z) : lJ(Z, Ce);
18424
18421
  return new Promise(function(_e, oe) {
18425
18422
  Ne.then(function() {
@@ -18428,11 +18425,11 @@ function oJ(e) {
18428
18425
  U.name === "ValidationError" ? _e(sJ(U)) : (process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", U), oe(U));
18429
18426
  });
18430
18427
  });
18431
- }, [d.validationSchema]), L = ke(function(Z, pe) {
18428
+ }, [d.validationSchema]), L = ye(function(Z, pe) {
18432
18429
  return new Promise(function(be) {
18433
18430
  return be(k.current[Z].validate(pe));
18434
18431
  });
18435
- }, []), T = ke(function(Z) {
18432
+ }, []), T = ye(function(Z) {
18436
18433
  var pe = Object.keys(k.current).filter(function(Ce) {
18437
18434
  return ii(k.current[Ce].validate);
18438
18435
  }), be = pe.length > 0 ? pe.map(function(Ce) {
@@ -18443,7 +18440,7 @@ function oJ(e) {
18443
18440
  return _e === "DO_NOT_DELETE_YOU_WILL_BE_FIRED" || _e && (Ne = xo(Ne, pe[oe], _e)), Ne;
18444
18441
  }, {});
18445
18442
  });
18446
- }, [L]), z = ke(function(Z) {
18443
+ }, [L]), z = ye(function(Z) {
18447
18444
  return Promise.all([T(Z), d.validationSchema ? P(Z) : {}, d.validate ? M(Z) : {}]).then(function(pe) {
18448
18445
  var be = pe[0], Ce = pe[1], Ne = pe[2], _e = lp.all([be, Ce, Ne], {
18449
18446
  arrayMerge: cJ
@@ -18467,7 +18464,7 @@ function oJ(e) {
18467
18464
  te(function() {
18468
18465
  o && b.current === !0 && ho(h.current, d.initialValues) && F(h.current);
18469
18466
  }, [o, F]);
18470
- var R = ke(function(Z) {
18467
+ var R = ye(function(Z) {
18471
18468
  var pe = Z && Z.values ? Z.values : h.current, be = Z && Z.errors ? Z.errors : m.current ? m.current : d.initialErrors || {}, Ce = Z && Z.touched ? Z.touched : v.current ? v.current : d.initialTouched || {}, Ne = Z && Z.status ? Z.status : g.current ? g.current : d.initialStatus;
18472
18469
  h.current = pe, m.current = be, v.current = Ce, g.current = Ne;
18473
18470
  var _e = function() {
@@ -18553,12 +18550,12 @@ function oJ(e) {
18553
18550
  });
18554
18551
  });
18555
18552
  return Promise.resolve();
18556
- }), D = ke(function(Z, pe) {
18553
+ }), D = ye(function(Z, pe) {
18557
18554
  var be = pe.validate;
18558
18555
  k.current[Z] = {
18559
18556
  validate: be
18560
18557
  };
18561
- }, []), N = ke(function(Z) {
18558
+ }, []), N = ye(function(Z) {
18562
18559
  delete k.current[Z];
18563
18560
  }, []), O = Qn(function(Z, pe) {
18564
18561
  A({
@@ -18567,7 +18564,7 @@ function oJ(e) {
18567
18564
  });
18568
18565
  var be = pe === void 0 ? r : pe;
18569
18566
  return be ? F(E.values) : Promise.resolve();
18570
- }), W = ke(function(Z) {
18567
+ }), W = ye(function(Z) {
18571
18568
  A({
18572
18569
  type: "SET_ERRORS",
18573
18570
  payload: Z
@@ -18580,7 +18577,7 @@ function oJ(e) {
18580
18577
  });
18581
18578
  var Ce = pe === void 0 ? n : pe;
18582
18579
  return Ce ? F(be) : Promise.resolve();
18583
- }), x = ke(function(Z, pe) {
18580
+ }), x = ye(function(Z, pe) {
18584
18581
  A({
18585
18582
  type: "SET_FIELD_ERROR",
18586
18583
  payload: {
@@ -18599,12 +18596,12 @@ function oJ(e) {
18599
18596
  });
18600
18597
  var Ne = be === void 0 ? n : be;
18601
18598
  return Ne ? F(xo(E.values, Z, Ce)) : Promise.resolve();
18602
- }), V = ke(function(Z, pe) {
18599
+ }), V = ye(function(Z, pe) {
18603
18600
  var be = pe, Ce = Z, Ne;
18604
18601
  if (!qh(Z)) {
18605
18602
  Z.persist && Z.persist();
18606
- var _e = Z.target ? Z.target : Z.currentTarget, oe = _e.type, U = _e.name, ye = _e.id, Fe = _e.value, Pe = _e.checked, Ve = _e.outerHTML, Me = _e.options, st = _e.multiple;
18607
- be = pe || U || ye, !be && process.env.NODE_ENV !== "production" && vb({
18603
+ var _e = Z.target ? Z.target : Z.currentTarget, oe = _e.type, U = _e.name, ke = _e.id, Fe = _e.value, Pe = _e.checked, Ve = _e.outerHTML, Me = _e.options, st = _e.multiple;
18604
+ be = pe || U || ke, !be && process.env.NODE_ENV !== "production" && vb({
18608
18605
  htmlContent: Ve,
18609
18606
  documentationAnchorLink: "handlechange-e-reactchangeeventany--void",
18610
18607
  handlerName: "handleChange"
@@ -18627,7 +18624,7 @@ function oJ(e) {
18627
18624
  });
18628
18625
  var Ce = be === void 0 ? r : be;
18629
18626
  return Ce ? F(E.values) : Promise.resolve();
18630
- }), q = ke(function(Z, pe) {
18627
+ }), q = ye(function(Z, pe) {
18631
18628
  Z.persist && Z.persist();
18632
18629
  var be = Z.target, Ce = be.name, Ne = be.id, _e = be.outerHTML, oe = pe || Ce || Ne;
18633
18630
  !oe && process.env.NODE_ENV !== "production" && vb({
@@ -18641,7 +18638,7 @@ function oJ(e) {
18641
18638
  return q(pe, Z);
18642
18639
  };
18643
18640
  q(Z);
18644
- }), ie = ke(function(Z) {
18641
+ }), ie = ye(function(Z) {
18645
18642
  ii(Z) ? A({
18646
18643
  type: "SET_FORMIK_STATE",
18647
18644
  payload: Z
@@ -18651,12 +18648,12 @@ function oJ(e) {
18651
18648
  return Z;
18652
18649
  }
18653
18650
  });
18654
- }, []), he = ke(function(Z) {
18651
+ }, []), he = ye(function(Z) {
18655
18652
  A({
18656
18653
  type: "SET_STATUS",
18657
18654
  payload: Z
18658
18655
  });
18659
- }, []), ue = ke(function(Z) {
18656
+ }, []), ue = ye(function(Z) {
18660
18657
  A({
18661
18658
  type: "SET_ISSUBMITTING",
18662
18659
  payload: Z
@@ -18715,7 +18712,7 @@ function oJ(e) {
18715
18712
  return u(E.values, ht);
18716
18713
  }), cn = Qn(function(Z) {
18717
18714
  Z && Z.preventDefault && ii(Z.preventDefault) && Z.preventDefault(), Z && Z.stopPropagation && ii(Z.stopPropagation) && Z.stopPropagation(), R();
18718
- }), Fn = ke(function(Z) {
18715
+ }), Fn = ye(function(Z) {
18719
18716
  return {
18720
18717
  value: En(E.values, Z),
18721
18718
  error: En(E.errors, Z),
@@ -18724,7 +18721,7 @@ function oJ(e) {
18724
18721
  initialTouched: !!En(v.current, Z),
18725
18722
  initialError: En(m.current, Z)
18726
18723
  };
18727
- }, [E.errors, E.touched, E.values]), Ln = ke(function(Z) {
18724
+ }, [E.errors, E.touched, E.values]), Ln = ye(function(Z) {
18728
18725
  return {
18729
18726
  setValue: function(be, Ce) {
18730
18727
  return G(Z, be, Ce);
@@ -18736,7 +18733,7 @@ function oJ(e) {
18736
18733
  return x(Z, be);
18737
18734
  }
18738
18735
  };
18739
- }, [G, Y, x]), Vi = ke(function(Z) {
18736
+ }, [G, Y, x]), Vi = ye(function(Z) {
18740
18737
  var pe = R1(Z), be = pe ? Z.name : Z, Ce = En(E.values, be), Ne = {
18741
18738
  name: be,
18742
18739
  value: Ce,
@@ -18744,8 +18741,8 @@ function oJ(e) {
18744
18741
  onBlur: X
18745
18742
  };
18746
18743
  if (pe) {
18747
- var _e = Z.type, oe = Z.value, U = Z.as, ye = Z.multiple;
18748
- _e === "checkbox" ? oe === void 0 ? Ne.checked = !!Ce : (Ne.checked = !!(Array.isArray(Ce) && ~Ce.indexOf(oe)), Ne.value = oe) : _e === "radio" ? (Ne.checked = Ce === oe, Ne.value = oe) : U === "select" && ye && (Ne.value = Ne.value || [], Ne.multiple = !0);
18744
+ var _e = Z.type, oe = Z.value, U = Z.as, ke = Z.multiple;
18745
+ _e === "checkbox" ? oe === void 0 ? Ne.checked = !!Ce : (Ne.checked = !!(Array.isArray(Ce) && ~Ce.indexOf(oe)), Ne.value = oe) : _e === "radio" ? (Ne.checked = Ce === oe, Ne.value = oe) : U === "select" && ke && (Ne.value = Ne.value || [], Ne.multiple = !0);
18749
18746
  }
18750
18747
  return Ne;
18751
18748
  }, [X, Q, E.values]), Jn = gt(function() {
@@ -18863,7 +18860,7 @@ function Qn(e) {
18863
18860
  var t = ae(e);
18864
18861
  return fJ(function() {
18865
18862
  t.current = e;
18866
- }), ke(function() {
18863
+ }), ye(function() {
18867
18864
  for (var n = arguments.length, i = new Array(n), r = 0; r < n; r++)
18868
18865
  i[r] = arguments[r];
18869
18866
  return t.current.apply(void 0, i);
@@ -25549,7 +25546,7 @@ function Qx(e) {
25549
25546
  }
25550
25547
  const Yx = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? Oi : te;
25551
25548
  function uX({ editor: e, ariaActiveDescendant: t, ariaAutoComplete: n, ariaControls: i, ariaDescribedBy: r, ariaErrorMessage: a, ariaExpanded: o, ariaInvalid: s, ariaLabel: l, ariaLabelledBy: c, ariaMultiline: u, ariaOwns: f, ariaRequired: d, autoCapitalize: h, className: m, id: v, role: g = "textbox", spellCheck: b = !0, style: k, tabIndex: y, "data-testid": S, ...C }, E) {
25552
- const [A, M] = _(e.isEditable()), P = ke((T) => {
25549
+ const [A, M] = _(e.isEditable()), P = ye((T) => {
25553
25550
  T && T.ownerDocument && T.ownerDocument.defaultView ? e.setRootElement(T) : e.setRootElement(null);
25554
25551
  }, [e]), L = gt(() => /* @__PURE__ */ function(...T) {
25555
25552
  return (z) => {
@@ -68462,7 +68459,7 @@ const j$ = "_emojiPopupContainer_azuxw_146", _$ = "_emojiPopup_azuxw_146", W$ =
68462
68459
  },
68463
68460
  intro: r == null ? void 0 : r.intro,
68464
68461
  sheetClassName: r == null ? void 0 : r.sheetClassName
68465
- }, m = ke(async (C, E = !1) => {
68462
+ }, m = ye(async (C, E = !1) => {
68466
68463
  d(!0);
68467
68464
  try {
68468
68465
  const A = await Zee(C);
@@ -75541,7 +75538,7 @@ const Tae = "_sheetBody_1mph4_146", Mae = "_cropperContainer_1mph4_163", Aae = "
75541
75538
  })
75542
75539
  ] });
75543
75540
  }, ioe = () => {
75544
- const [e, t] = _(""), n = ae("image/jpeg"), i = ke((r) => {
75541
+ const [e, t] = _(""), n = ae("image/jpeg"), i = ye((r) => {
75545
75542
  if (!r) return;
75546
75543
  n.current = r.type;
75547
75544
  const a = new FileReader();
@@ -76350,7 +76347,7 @@ function zoe({ close: e, editor: t, anchorElementRef: n, resolution: i, options:
76350
76347
  te(() => {
76351
76348
  c && f(0);
76352
76349
  }, [h, c]);
76353
- const m = ke((g) => {
76350
+ const m = ye((g) => {
76354
76351
  t.update(() => {
76355
76352
  const b = i.match != null && s ? function(k) {
76356
76353
  const y = ge();
@@ -76370,7 +76367,7 @@ function zoe({ close: e, editor: t, anchorElementRef: n, resolution: i, options:
76370
76367
  }(i.match) : null;
76371
76368
  o(g, b, e, i.match ? i.match.matchingString : "");
76372
76369
  });
76373
- }, [t, s, i.match, o, e]), v = ke((g) => {
76370
+ }, [t, s, i.match, o, e]), v = ye((g) => {
76374
76371
  const b = t.getRootElement();
76375
76372
  b !== null && (b.setAttribute("aria-activedescendant", "typeahead-item-" + g), f(g));
76376
76373
  }, [t]);
@@ -76412,7 +76409,7 @@ function D4(e, t) {
76412
76409
  }
76413
76410
  const Foe = `\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`;
76414
76411
  function Loe(e, { minLength: t = 1, maxLength: n = 75, punctuation: i = Foe, allowWhitespace: r = !1 }) {
76415
- return ke((a) => {
76412
+ return ye((a) => {
76416
76413
  const o = new RegExp("(^|\\s|\\()([" + e + "]((?:" + ("[^" + e + i + (r ? "" : "\\s") + "]") + "){0," + n + "}))$").exec(a);
76417
76414
  if (o !== null) {
76418
76415
  const s = o[1], l = o[3];
@@ -76423,7 +76420,7 @@ function Loe(e, { minLength: t = 1, maxLength: n = 75, punctuation: i = Foe, all
76423
76420
  }
76424
76421
  function Noe({ options: e, onQueryChange: t, onSelectOption: n, onOpen: i, onClose: r, menuRenderFn: a, triggerFn: o, anchorClassName: s, commandPriority: l = U1, parent: c, preselectFirstItem: u = !0, ignoreEntityBoundary: f = !1 }) {
76425
76422
  const [d] = Un(), [h, m] = _(null), v = function(k, y, S, C = lg ? document.body : void 0, E = !0) {
76426
- const [A] = Un(), M = lg ? document.createElement("div") : null, P = ae(M), L = ke(() => {
76423
+ const [A] = Un(), M = lg ? document.createElement("div") : null, P = ae(M), L = ye(() => {
76427
76424
  if (P.current === null || C === void 0) return;
76428
76425
  P.current.style.top = P.current.style.bottom;
76429
76426
  const z = A.getRootElement(), F = P.current, R = F.firstChild;
@@ -76445,13 +76442,13 @@ function Noe({ options: e, onQueryChange: t, onSelectOption: n, onOpen: i, onClo
76445
76442
  F !== null && F.isConnected && (F.remove(), F.removeAttribute("id"));
76446
76443
  };
76447
76444
  }, [A, L, k]);
76448
- const T = ke((z) => {
76445
+ const T = ye((z) => {
76449
76446
  k !== null && (z || y(null));
76450
76447
  }, [k, y]);
76451
76448
  return Poe(k, P.current, L, T), M != null && M === P.current && (D4(M, S), C != null && C.append(M)), P;
76452
- }(h, m, s, c), g = ke(() => {
76449
+ }(h, m, s, c), g = ye(() => {
76453
76450
  m(null), r != null && h !== null && r();
76454
- }, [r, h]), b = ke((k) => {
76451
+ }, [r, h]), b = ye((k) => {
76455
76452
  m(k), i != null && h === null && i(k);
76456
76453
  }, [i, h]);
76457
76454
  return te(() => {
@@ -76556,7 +76553,7 @@ function Roe({ anchorRef: e, groupId: t }) {
76556
76553
  }
76557
76554
  })() : o([]);
76558
76555
  }, [i, t]);
76559
- const u = ke(
76556
+ const u = ye(
76560
76557
  (d, h, m) => {
76561
76558
  n.update(() => {
76562
76559
  const v = d.user, g = hf(v.gid);
@@ -76576,7 +76573,7 @@ function Roe({ anchorRef: e, groupId: t }) {
76576
76573
  });
76577
76574
  },
76578
76575
  [n]
76579
- ), f = ke(
76576
+ ), f = ye(
76580
76577
  (d, {
76581
76578
  selectOptionAndCleanUp: h,
76582
76579
  setHighlightedIndex: m
@@ -76923,11 +76920,11 @@ function Koe({
76923
76920
  return;
76924
76921
  }
76925
76922
  if (cg(oe)) {
76926
- const ye = oe;
76923
+ const ke = oe;
76927
76924
  (async () => {
76928
76925
  try {
76929
76926
  const Pe = await Promise.all(
76930
- ye.map(async (Ve) => {
76927
+ ke.map(async (Ve) => {
76931
76928
  const Me = await qe.getImage(Ve), st = new File([Me], `image-${Ve}.jpg`, { type: Me.type });
76932
76929
  return {
76933
76930
  croppedImg: st,
@@ -76986,13 +76983,13 @@ function Koe({
76986
76983
  if (!E.embeddables) return;
76987
76984
  const U = oe.associated_gid.split("/").pop();
76988
76985
  if (!U) return;
76989
- const ye = decodeURIComponent(U);
76986
+ const ke = decodeURIComponent(U);
76990
76987
  let Fe = E.body;
76991
76988
  if (oe.indices && oe.indices.length === 2) {
76992
76989
  const [Me, st] = oe.indices;
76993
76990
  Fe = E.body.slice(0, Me) + E.body.slice(st);
76994
76991
  } else
76995
- Fe = E.body.replace(ye, "");
76992
+ Fe = E.body.replace(ke, "");
76996
76993
  const Ve = E.embeddables.filter(
76997
76994
  (Me) => Me.associated_gid !== oe.associated_gid
76998
76995
  ).map((Me) => {
@@ -77011,7 +77008,7 @@ function Koe({
77011
77008
  }, Jn = (oe) => {
77012
77009
  if (!E.embeddables) return;
77013
77010
  const U = E.embeddables.filter(
77014
- (ye) => ye.associated_gid !== oe.associated_gid
77011
+ (ke) => ke.associated_gid !== oe.associated_gid
77015
77012
  );
77016
77013
  W(null), v({
77017
77014
  ...E,
@@ -77022,19 +77019,19 @@ function Koe({
77022
77019
  }, Tr = (oe) => {
77023
77020
  const U = E.embeddables.filter(
77024
77021
  (Pe) => Pe.role !== "profile"
77025
- ), ye = {
77022
+ ), ke = {
77026
77023
  associated_gid: IC(oe),
77027
77024
  indices: null,
77028
77025
  role: "profile"
77029
77026
  }, Fe = {
77030
77027
  ...E,
77031
- embeddables: [...U, ye]
77028
+ embeddables: [...U, ke]
77032
77029
  };
77033
77030
  v(Fe), gi();
77034
77031
  }, Z = async (oe) => {
77035
77032
  const U = oe.target.files ? Array.from(oe.target.files) : [];
77036
77033
  if (!U.length) return;
77037
- const ye = [];
77034
+ const ke = [];
77038
77035
  O(!0);
77039
77036
  for (const Pe of U) {
77040
77037
  if (!Pe.type.startsWith("image/")) continue;
@@ -77046,7 +77043,7 @@ function Koe({
77046
77043
  originalImg: Pe,
77047
77044
  uploadFailed: !0
77048
77045
  };
77049
- ye.push(vn);
77046
+ ke.push(vn);
77050
77047
  continue;
77051
77048
  }
77052
77049
  if (!Me && Ve !== tn) {
@@ -77061,10 +77058,10 @@ function Koe({
77061
77058
  signedId: Me.signedId,
77062
77059
  uploadFailed: !1
77063
77060
  };
77064
- ye.push(vn);
77061
+ ke.push(vn);
77065
77062
  }
77066
77063
  }
77067
- const Fe = [...I, ...ye];
77064
+ const Fe = [...I, ...ke];
77068
77065
  D(Fe), pe(Fe), G.current && (G.current.value = ""), O(!1);
77069
77066
  }, pe = (oe) => {
77070
77067
  v({
@@ -77077,7 +77074,7 @@ function Koe({
77077
77074
  function be({
77078
77075
  ariaLabel: oe,
77079
77076
  disabled: U,
77080
- icon: ye
77077
+ icon: ke
77081
77078
  }) {
77082
77079
  const [Fe] = Un();
77083
77080
  return /* @__PURE__ */ p(K$, { onSelect: (Ve) => {
@@ -77092,7 +77089,7 @@ function Koe({
77092
77089
  se(bn) && bn.insertText(Me);
77093
77090
  }
77094
77091
  });
77095
- }, children: /* @__PURE__ */ p(Ee, { icon: ye, ariaLabel: oe, disabled: U, size: "medium" }) });
77092
+ }, children: /* @__PURE__ */ p(Ee, { icon: ke, ariaLabel: oe, disabled: U, size: "medium" }) });
77096
77093
  }
77097
77094
  const Ce = gt(
77098
77095
  () => I.some((oe) => oe.uploadFailed),
@@ -77104,7 +77101,7 @@ function Koe({
77104
77101
  oe.push(U);
77105
77102
  continue;
77106
77103
  }
77107
- const ye = U.croppedImg ?? U.originalImg, { error: Fe, result: Pe } = await Q(ye);
77104
+ const ke = U.croppedImg ?? U.originalImg, { error: Fe, result: Pe } = await Q(ke);
77108
77105
  Pe ? oe.push({
77109
77106
  ...U,
77110
77107
  signedId: Pe.signedId,
@@ -77186,7 +77183,7 @@ function Koe({
77186
77183
  ),
77187
77184
  (t || C) && /* @__PURE__ */ p(Se, { children: /* @__PURE__ */ B("div", { className: ct.wrapper__actions, children: [
77188
77185
  t && /* @__PURE__ */ p("div", { className: ct.wrapper__attachment, children: t.map((oe, U) => {
77189
- const ye = () => {
77186
+ const ke = () => {
77190
77187
  var Ve, Me;
77191
77188
  switch ((Ve = oe.onClick) == null || Ve.call(oe), oe.type) {
77192
77189
  case "image":
@@ -77212,7 +77209,7 @@ function Koe({
77212
77209
  Ee,
77213
77210
  {
77214
77211
  icon: Pe,
77215
- onClick: ye,
77212
+ onClick: ke,
77216
77213
  ariaLabel: oe.ariaLabel,
77217
77214
  disabled: a,
77218
77215
  size: "medium"
@@ -78519,9 +78516,9 @@ const Hse = ({
78519
78516
  onDismiss: n,
78520
78517
  onSelect: i
78521
78518
  }) => {
78522
- const [r, a] = _(yle(t, e)), o = gt(() => t[r], [t, r]), s = ke(() => {
78519
+ const [r, a] = _(yle(t, e)), o = gt(() => t[r], [t, r]), s = ye(() => {
78523
78520
  a((g) => g > 0 ? g - 1 : t.length - 1);
78524
- }, [t.length]), l = ke(() => {
78521
+ }, [t.length]), l = ye(() => {
78525
78522
  a((g) => g < t.length - 1 ? g + 1 : 0);
78526
78523
  }, [t.length]);
78527
78524
  if (te(() => {
@@ -79963,7 +79960,7 @@ const ma = je(Cce), Sce = je(Lv), Ece = [
79963
79960
  }));
79964
79961
  const I = () => {
79965
79962
  h(), k(!0);
79966
- }, D = ot(800), N = ke(() => {
79963
+ }, D = ot(800), N = ye(() => {
79967
79964
  if (b) return;
79968
79965
  const x = m("subject"), G = m("content");
79969
79966
  if (Uce(x, G)) {
@@ -79976,7 +79973,7 @@ const ma = je(Cce), Sce = je(Lv), Ece = [
79976
79973
  m,
79977
79974
  L,
79978
79975
  o
79979
- ]), O = ke(() => {
79976
+ ]), O = ye(() => {
79980
79977
  L(!1), M(!1), o();
79981
79978
  }, [L, M, o]), W = () => /* @__PURE__ */ p(
79982
79979
  on,
@@ -80751,18 +80748,18 @@ const kue = ({
80751
80748
  invalidateFeedCache: n,
80752
80749
  pageMapping: i
80753
80750
  }) => {
80754
- const [r, a] = _(null), [o, s] = _(!1), l = sn(), c = ae(null), u = ke((v) => {
80751
+ const [r, a] = _(null), [o, s] = _(!1), l = sn(), c = ae(null), u = ye((v) => {
80755
80752
  a({ ...v, config: t }), s(!0);
80756
- }, []), f = ke(() => {
80753
+ }, []), f = ye(() => {
80757
80754
  s(!1), document.body.style.overflow = "unset";
80758
- }, []), d = ke(
80755
+ }, []), d = ye(
80759
80756
  (v) => {
80760
80757
  var g;
80761
80758
  (g = r == null ? void 0 : r.onSubmitSuccess) == null || g.call(r, v), n == null || n(v), f();
80762
80759
  },
80763
80760
  // eslint-disable-next-line react-hooks/exhaustive-deps
80764
80761
  [r == null ? void 0 : r.onSubmitSuccess, f]
80765
- ), h = ke(
80762
+ ), h = ye(
80766
80763
  () => {
80767
80764
  var v, g;
80768
80765
  if ((v = r == null ? void 0 : r.onDismiss) == null || v.call(r), f(), typeof window < "u") {
@@ -83254,7 +83251,7 @@ function b6e({ count: e = 6 }) {
83254
83251
  function w6e({ ads: e = [], initialFeedItems: t, onLoadMore: n }) {
83255
83252
  const [i, r] = _(
83256
83253
  () => t
83257
- ), [a, o] = _(!0), s = ke(async () => {
83254
+ ), [a, o] = _(!0), s = ye(async () => {
83258
83255
  try {
83259
83256
  const l = i[i.length - 1], c = await n(l.content_updated_timestamp);
83260
83257
  c.hood_messages.length === 0 ? o(!1) : r((u) => [...u, ...c.hood_messages]);
@@ -83548,7 +83545,7 @@ const K6e = (e, t) => {
83548
83545
  profileUrl: `${t.profile_url}`,
83549
83546
  userId: qk(t.gid)
83550
83547
  })), Pze = ({ postId: e }) => {
83551
- const [t, n] = _(!0), [i, r] = _(""), [a, o] = _([]), [s, l] = _(null), [c, u] = _(!1), [f, d] = _(!1), h = ke(
83548
+ const [t, n] = _(!0), [i, r] = _(""), [a, o] = _([]), [s, l] = _(null), [c, u] = _(!1), [f, d] = _(!1), h = ye(
83552
83549
  async (g, b = null, k = !1) => {
83553
83550
  var y, S;
83554
83551
  d(!0);
@@ -86673,7 +86670,7 @@ function $7e(e) {
86673
86670
  ), i = {};
86674
86671
  return r;
86675
86672
  function r(U) {
86676
- for (var ye = { type: "root", children: [] }, Fe = [ye], Pe = [], Ve = [], Me = -1, st, vn, bn = {
86673
+ for (var ke = { type: "root", children: [] }, Fe = [ke], Pe = [], Ve = [], Me = -1, st, vn, bn = {
86677
86674
  stack: Fe,
86678
86675
  tokenStack: Pe,
86679
86676
  config: n,
@@ -86697,7 +86694,7 @@ function $7e(e) {
86697
86694
  end: Pe[Pe.length - 1].end
86698
86695
  }) + ") is still open"
86699
86696
  );
86700
- for (ye.position = {
86697
+ for (ke.position = {
86701
86698
  start: l(
86702
86699
  U.length ? U[0][1].start : { line: 1, column: 1, offset: 0 }
86703
86700
  ),
@@ -86705,11 +86702,11 @@ function $7e(e) {
86705
86702
  U.length ? U[U.length - 2][1].end : { line: 1, column: 1, offset: 0 }
86706
86703
  )
86707
86704
  }, Me = -1; ++Me < n.transforms.length; )
86708
- ye = n.transforms[Me](ye) || ye;
86709
- return ye;
86705
+ ke = n.transforms[Me](ke) || ke;
86706
+ return ke;
86710
86707
  }
86711
- function a(U, ye, Fe) {
86712
- for (var Pe = ye - 1, Ve = -1, Me = !1, st, vn, bn, Gi, xt, zl, Fl; ++Pe <= Fe; )
86708
+ function a(U, ke, Fe) {
86709
+ for (var Pe = ke - 1, Ve = -1, Me = !1, st, vn, bn, Gi, xt, zl, Fl; ++Pe <= Fe; )
86713
86710
  if (xt = U[Pe], xt[1].type === "listUnordered" || xt[1].type === "listOrdered" || xt[1].type === "blockQuote" ? (xt[0] === "enter" ? Ve++ : Ve--, Fl = void 0) : xt[1].type === "lineEndingBlank" ? xt[0] === "enter" && (st && !Fl && !Ve && !zl && (zl = Pe), Fl = void 0) : xt[1].type === "linePrefix" || xt[1].type === "listItemValue" || xt[1].type === "listItemMarker" || xt[1].type === "listItemPrefix" || xt[1].type === "listItemPrefixWhitespace" || (Fl = void 0), !Ve && xt[0] === "enter" && xt[1].type === "listItemPrefix" || Ve === -1 && xt[0] === "exit" && (xt[1].type === "listUnordered" || xt[1].type === "listOrdered")) {
86714
86711
  if (st) {
86715
86712
  for (vn = Pe, bn = void 0; vn--; )
@@ -86727,10 +86724,10 @@ function $7e(e) {
86727
86724
  start: l(xt[1].start)
86728
86725
  }, U.splice(Pe, 0, ["enter", st, xt[2]]), Pe++, Fe++, zl = void 0, Fl = !0);
86729
86726
  }
86730
- return U[ye][1]._spread = Me, Fe;
86727
+ return U[ke][1]._spread = Me, Fe;
86731
86728
  }
86732
- function o(U, ye) {
86733
- i[U] = ye;
86729
+ function o(U, ke) {
86730
+ i[U] = ke;
86734
86731
  }
86735
86732
  function s(U) {
86736
86733
  return i[U];
@@ -86738,26 +86735,26 @@ function $7e(e) {
86738
86735
  function l(U) {
86739
86736
  return { line: U.line, column: U.column, offset: U.offset };
86740
86737
  }
86741
- function c(U, ye) {
86738
+ function c(U, ke) {
86742
86739
  return Fe;
86743
86740
  function Fe(Pe) {
86744
- f.call(this, U(Pe), Pe), ye && ye.call(this, Pe);
86741
+ f.call(this, U(Pe), Pe), ke && ke.call(this, Pe);
86745
86742
  }
86746
86743
  }
86747
86744
  function u() {
86748
86745
  this.stack.push({ type: "fragment", children: [] });
86749
86746
  }
86750
- function f(U, ye) {
86751
- return this.stack[this.stack.length - 1].children.push(U), this.stack.push(U), this.tokenStack.push(ye), U.position = { start: l(ye.start) }, U;
86747
+ function f(U, ke) {
86748
+ return this.stack[this.stack.length - 1].children.push(U), this.stack.push(U), this.tokenStack.push(ke), U.position = { start: l(ke.start) }, U;
86752
86749
  }
86753
86750
  function d(U) {
86754
- return ye;
86755
- function ye(Fe) {
86751
+ return ke;
86752
+ function ke(Fe) {
86756
86753
  U && U.call(this, Fe), h.call(this, Fe);
86757
86754
  }
86758
86755
  }
86759
86756
  function h(U) {
86760
- var ye = this.stack.pop(), Fe = this.tokenStack.pop();
86757
+ var ke = this.stack.pop(), Fe = this.tokenStack.pop();
86761
86758
  if (Fe) {
86762
86759
  if (Fe.type !== U.type)
86763
86760
  throw new Error(
@@ -86766,7 +86763,7 @@ function $7e(e) {
86766
86763
  } else throw new Error(
86767
86764
  "Cannot close `" + U.type + "` (" + Rd({ start: U.start, end: U.end }) + "): it’s not open"
86768
86765
  );
86769
- return ye.position.end = l(U.end), ye;
86766
+ return ke.position.end = l(U.end), ke;
86770
86767
  }
86771
86768
  function m() {
86772
86769
  return U7e(this.stack.pop());
@@ -86803,8 +86800,8 @@ function $7e(e) {
86803
86800
  this.stack[this.stack.length - 1].value = U;
86804
86801
  }
86805
86802
  function E(U) {
86806
- var ye = this.resume();
86807
- this.stack[this.stack.length - 1].label = ye, this.stack[this.stack.length - 1].identifier = gm(
86803
+ var ke = this.resume();
86804
+ this.stack[this.stack.length - 1].label = ke, this.stack[this.stack.length - 1].identifier = gm(
86808
86805
  this.sliceSerialize(U)
86809
86806
  ).toLowerCase();
86810
86807
  }
@@ -86831,22 +86828,22 @@ function $7e(e) {
86831
86828
  o("setextHeadingSlurpLineEnding");
86832
86829
  }
86833
86830
  function F(U) {
86834
- var ye = this.stack[this.stack.length - 1].children, Fe = ye[ye.length - 1];
86831
+ var ke = this.stack[this.stack.length - 1].children, Fe = ke[ke.length - 1];
86835
86832
  (!Fe || Fe.type !== "text") && (Fe = _e(), Fe.position = { start: l(U.start) }, this.stack[this.stack.length - 1].children.push(Fe)), this.stack.push(Fe);
86836
86833
  }
86837
86834
  function R(U) {
86838
- var ye = this.stack.pop();
86839
- ye.value += this.sliceSerialize(U), ye.position.end = l(U.end);
86835
+ var ke = this.stack.pop();
86836
+ ke.value += this.sliceSerialize(U), ke.position.end = l(U.end);
86840
86837
  }
86841
86838
  function I(U) {
86842
- var ye = this.stack[this.stack.length - 1];
86839
+ var ke = this.stack[this.stack.length - 1];
86843
86840
  if (s("atHardBreak")) {
86844
- ye.children[ye.children.length - 1].position.end = l(
86841
+ ke.children[ke.children.length - 1].position.end = l(
86845
86842
  U.end
86846
86843
  ), o("atHardBreak");
86847
86844
  return;
86848
86845
  }
86849
- !s("setextHeadingSlurpLineEnding") && n.canContainEols.indexOf(ye.type) > -1 && (F.call(this, U), R.call(this, U));
86846
+ !s("setextHeadingSlurpLineEnding") && n.canContainEols.indexOf(ke.type) > -1 && (F.call(this, U), R.call(this, U));
86850
86847
  }
86851
86848
  function D() {
86852
86849
  o("atHardBreak", !0);
@@ -86877,8 +86874,8 @@ function $7e(e) {
86877
86874
  ).toLowerCase();
86878
86875
  }
86879
86876
  function V() {
86880
- var U = this.stack[this.stack.length - 1], ye = this.resume();
86881
- this.stack[this.stack.length - 1].label = ye, o("inReference", !0), this.stack[this.stack.length - 1].type === "link" ? this.stack[this.stack.length - 1].children = U.children : this.stack[this.stack.length - 1].alt = ye;
86877
+ var U = this.stack[this.stack.length - 1], ke = this.resume();
86878
+ this.stack[this.stack.length - 1].label = ke, o("inReference", !0), this.stack[this.stack.length - 1].type === "link" ? this.stack[this.stack.length - 1].children = U.children : this.stack[this.stack.length - 1].alt = ke;
86882
86879
  }
86883
86880
  function Q() {
86884
86881
  var U = this.resume();
@@ -86895,8 +86892,8 @@ function $7e(e) {
86895
86892
  o("referenceType", "collapsed");
86896
86893
  }
86897
86894
  function ie(U) {
86898
- var ye = this.resume();
86899
- this.stack[this.stack.length - 1].label = ye, this.stack[this.stack.length - 1].identifier = gm(
86895
+ var ke = this.resume();
86896
+ this.stack[this.stack.length - 1].label = ke, this.stack[this.stack.length - 1].identifier = gm(
86900
86897
  this.sliceSerialize(U)
86901
86898
  ).toLowerCase(), o("referenceType", "full");
86902
86899
  }
@@ -86904,11 +86901,11 @@ function $7e(e) {
86904
86901
  o("characterReferenceType", U.type);
86905
86902
  }
86906
86903
  function ue(U) {
86907
- var ye = this.sliceSerialize(U), Fe = s("characterReferenceType"), Pe, Ve;
86904
+ var ke = this.sliceSerialize(U), Fe = s("characterReferenceType"), Pe, Ve;
86908
86905
  Fe ? (Pe = K7e(
86909
- ye,
86906
+ ke,
86910
86907
  Fe === "characterReferenceMarkerNumeric" ? 10 : 16
86911
- ), o("characterReferenceType")) : Pe = Y7e(ye), Ve = this.stack.pop(), Ve.value += Pe, Ve.position.end = l(U.end);
86908
+ ), o("characterReferenceType")) : Pe = Y7e(ke), Ve = this.stack.pop(), Ve.value += Pe, Ve.position.end = l(U.end);
86912
86909
  }
86913
86910
  function ze(U) {
86914
86911
  R.call(this, U), this.stack[this.stack.length - 1].url = this.sliceSerialize(U);
@@ -89204,7 +89201,7 @@ function Dze({
89204
89201
  title: l,
89205
89202
  variant: c
89206
89203
  }) {
89207
- const u = ae(null), f = ae(null), d = ae(null), h = ae(0), m = YTe[c], v = ot(), g = v ? "h4" : "h5", b = v ? o : s, k = ke(
89204
+ const u = ae(null), f = ae(null), d = ae(null), h = ae(0), m = YTe[c], v = ot(), g = v ? "h4" : "h5", b = v ? o : s, k = ye(
89208
89205
  Uk((y) => {
89209
89206
  if (h.current === y.activeIndex) return;
89210
89207
  const S = y.activeIndex > h.current ? "next" : "prev";
@@ -89575,19 +89572,19 @@ function _Me(e, {
89575
89572
  onFinish: c,
89576
89573
  onCancel: u
89577
89574
  } = {}) {
89578
- const f = ae(!1), d = ae(!1), h = ae(), m = ae(), v = ae(e), g = ae(null), b = ke(
89575
+ const f = ae(!1), d = ae(!1), h = ae(), m = ae(), v = ae(e), g = ae(null), b = ye(
89579
89576
  (C) => (E) => {
89580
89577
  d.current || hk(E) && (o !== void 0 && !o(E) || (n && E.persist(), s == null || s(E, { context: C }), g.current = mk(E), d.current = !0, h.current = E.currentTarget, m.current = setTimeout(() => {
89581
89578
  v.current && (v.current(E, { context: C }), f.current = !0);
89582
89579
  }, t)));
89583
89580
  },
89584
89581
  [n, o, s, t]
89585
- ), k = ke(
89582
+ ), k = ye(
89586
89583
  (C) => (E, A) => {
89587
89584
  hk(E) && d.current && (g.current = null, n && E.persist(), f.current ? c == null || c(E, { context: C }) : d.current && (u == null || u(E, { context: C, reason: A ?? dc.CancelledByRelease })), f.current = !1, d.current = !1, m.current !== void 0 && clearTimeout(m.current));
89588
89585
  },
89589
89586
  [n, c, u]
89590
- ), y = ke(
89587
+ ), y = ye(
89591
89588
  (C) => (E) => {
89592
89589
  if (l == null || l(E, { context: C }), r !== !1 && g.current) {
89593
89590
  const A = mk(E);
@@ -89601,7 +89598,7 @@ function _Me(e, {
89601
89598
  }
89602
89599
  },
89603
89600
  [k, r, l]
89604
- ), S = ke(
89601
+ ), S = ye(
89605
89602
  (C) => {
89606
89603
  if (e === null)
89607
89604
  return {};
@@ -89854,7 +89851,7 @@ const pk = [
89854
89851
  }) => {
89855
89852
  const [u, f] = _(null), d = ae(null), h = ae(null), [m, v] = _(
89856
89853
  null
89857
- ), g = ke(
89854
+ ), g = ye(
89858
89855
  Uk((z) => f(z), s.onHover),
89859
89856
  []
89860
89857
  ), b = () => {
@@ -89869,7 +89866,7 @@ const pk = [
89869
89866
  c === "hover" && (b(), hn() || g(z.currentTarget));
89870
89867
  }, C = () => {
89871
89868
  hn() || b();
89872
- }, E = ke(() => {
89869
+ }, E = ye(() => {
89873
89870
  f(h.current);
89874
89871
  }, []), A = (z) => {
89875
89872
  f(c === "click" ? z.currentTarget : null), r && r();
@@ -89961,7 +89958,7 @@ const pk = [
89961
89958
  setOpen: a,
89962
89959
  userLink: o = !0
89963
89960
  }) => {
89964
- const [s, l] = _(null), [c, u] = _("all"), [f, d] = _(1), [h, m] = _([]), v = !s || !!s.next_page, g = ke(async () => {
89961
+ const [s, l] = _(null), [c, u] = _("all"), [f, d] = _(1), [h, m] = _([]), v = !s || !!s.next_page, g = ye(async () => {
89965
89962
  try {
89966
89963
  const P = rPe(r, f, c), L = await t(P);
89967
89964
  d(L.next_page || f), l(L), m((T) => [...T, ...L.users]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.16.0-development.5",
3
+ "version": "4.16.0-development.6",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",