1"use strict";(self.webpackChunkcom_komoot=self.webpackChunkcom_komoot||[]).push([["14445"],{38411:function(e,n,r){r.d(n,{e:function(){return t}});var s=r(5018),l=r(54381);const t=({alignY:e="center",reverse:n,children:r,...t})=>(0,l.jsx)(s.Q9,{variant:["column","row"],space:"sm",reverse:n,alignY:e,alignX:n?"right":"unset",...t,children:r})},63114:function(e,n,r){r.d(n,{s:function(){return o}});var s=r(73749),l=r(3865),t=r(87073),i=r(54381);const o=({children:e,as:n,width:r,sx:o,...a})=>{const c=(0,s.useContext)(t.l),d=n??"div";return(0,i.jsx)(l.x,{as:d,sx:{minWidth:0,width:void 0===r?"100%":"content"===r?void 0:r,flexShrink:void 0!==r||"content"===r?0:void 0,pl:c,pb:c,...o||{}},...a,children:e})};o.displayName="ui/components/Column"},87073:function(e,n,r){r.d(n,{l:function(){return i},o:function(){return o}});r(55608),r(82540);var s=r(73749),l=r(3865),t=r(54381);const i=(0,s.createContext)(["sm","md"]),o=({children:e,as:n,collapse:r=!1,reverse:s=!1,alignX:o,alignY:a,space:c=["sm","md"],...d})=>{const u=c,h=Array.isArray(u)?u.map((e=>"string"==typeof e&&"none"!==e?`-${e}`:e)):"string"==typeof c&&"none"!==c?`-${c}`:c,p=r,x=Array.isArray(p)?p.map((e=>!0===e?"block":"flex")):p?"block":"flex",m=s,f=Array.isArray(m)?m.map((e=>!0===e?"row-reverse":"row")):m?"row-reverse":"row",g=n??"div";return(0,t.jsx)(l.x,{as:g,display:x,flexDirection:f,alignX:o,alignY:a,ml:h,mb:h,...d,children:(0,t.jsx)(i.Provider,{value:c,children:e})})};o.displayName="ui/components/Columns"},65305:function(e,n,r){r.d(n,{g:function(){return h}});r(55608),r(82540);var s=r(73749),l=r(99563),t=r(17159),i=r(23551),o=r(3865),a=r(54381);const c=(0,i.z)((e=>e?"block":"flex")),d=(0,i.z)((e=>e?"block":"inline-flex")),u=(0,i.z)((e=>e?"row-reverse":"row")),h=({as:e,alignX:n,alignY:r,children:h,reverse:p=!1,collapse:x=!1,space:m="sm",_display:f,...g})=>{const{theme:N}=(0,t.B7)(),j=N.space,v=(0,i.z)((e=>"0"!==j[e]?`-${j[e]}`:j[e])),C="ol"===e||"ul"===e,y=v(m),b=c(x),w=u(p),E=d(p),D=e??"div";return(0,a.jsx)(o.x,{as:D,display:f||b,flexDirection:w,flexWrap:"wrap",alignX:n,alignY:r,mb:C?"0px":null,p:C?"0px":null,mt:y,ml:y,sx:{listStyleType:C?"none":null},...g,children:s.Children.map((0,l.default)(h),((e,n)=>(0,a.jsx)(o.x,{as:C?"li":"div",display:E,pt:m,pl:m,children:e},n)))})};h.displayName="ui/components/Inline"},1865:function(e,n,r){r.r(n),r.d(n,{default:function(){return I}});var s=r(83078),l=(r(55608),r(82540),r(73749)),t=r(37286),i=r(41303),o=r(28718),a=r(72869),c=r(69482),d=r(87073),u=r(63114),h=r(65305),p=r(3865),x=r(86861),m=r(10366),f=r(89383),g=r(38411),N=r(83819),j=r(92866),v=r(44217),C=r(81667),y=r(88172),b=r(36094),w=r(69883),E=r(54381);const D={LOADING:Symbol("loading"),PENDING:"pending_follow",CONNECTED:"follow",UNCONNECTED:"unconnected"},O=({requester:e,setError:n})=>{const r=(0,o.qM)("views/FollowRequests"),[s,i]=(0,l.useState)(D.PENDING),{lang:j}=(0,o.Ye)(),v=s===D.CONNECTED||s===D.UNCONNECTED,w=(0,E.jsx)(a.h,{href:t.dl.localizePath(`/user/${e.get("username")}`,j),children:e.get("display_name")});return(0,E.jsxs)(c.K,{pt:v?3:0,space:"sm",children:[(0,E.jsx)(d.o,{alignX:"space-between",alignY:"center",collapse:[!0,!1],children:(0,E.jsx)(u.s,{children:(0,E.jsxs)(h.g,{alignY:"center",children:[(0,E.jsxs)(p.x,{position:"relative",children:[(0,E.jsx)(b.Z,{user:e}),s===D.CONNECTED?(0,E.jsx)(x.C,{color:"white",bg:"success",size:"sm",position:"absolute",top:-3,right:-3,children:(0,E.jsx)(C.IconSelected,{size:4})}):s===D.UNCONNECTED?(0,E.jsx)(x.C,{color:"white",bg:"error",size:"sm",position:"absolute",top:-3,right:-3,children:(0,E.jsx)(y.IconClose,{size:4})}):null]}),(0,E.jsx)(m.e,{as:f.x,user:w,children:r(s===D.CONNECTED?"user_confirmed":s===D.UNCONNECTED?"user_ignored":"user_requested")})]})})}),s===D.PENDING||s===D.LOADING?(0,E.jsxs)(g.e,{children:[(0,E.jsx)(N.zx,{onClick:async()=>{i(D.LOADING),n();try{await(r=e,r.link("relation").patch({relation_from_follow:D.CONNECTED})),i(D.CONNECTED)}catch(e){i(D.PENDING),n(e.status)}var r},isLoading:s===D.LOADING,children:r("confirm")}),(0,E.jsx)(N.zx,{onClick:async()=>{i(D.LOADING),n();try{await(r=e,r.link("relation").patch({relation_from_follow:D.UNCONNECTED})),i(D.UNCONNECTED)}
1catch(e){i(D.PENDING),n(e.status)}var r},isLoading:s===D.LOADING,variant:"basic",children:r("delete")})]}):null]})},k=({followers_pending:e})=>{const n=(0,o.qM)("views/FollowRequests"),[r,s]=(0,l.useState)(null);return(0,E.jsx)(w.Z,{maxWidth:"3xl",p:[null,null,6,12],children:(0,E.jsxs)(c.K,{p:["sm","md","md","lg"],children:[(0,E.jsx)(j.X,{level:2,children:n("title")}),r?(0,E.jsx)(v.b,{variant:"error",children:n("error",{code:r})}):null,e.length?(0,E.jsx)(c.K,{as:"ul",space:"lg",children:e.map((e=>(0,E.jsx)(O,{requester:e,setError:s},e.get("username"))))}):(0,E.jsx)(f.x,{children:n("no_requests")})]})})},_=i.G7.create({displayName:"Account/FollowRequests",events:{"profile.followers_pending":"render"},UNSAFE_componentWillMount(){this.kmtxDelegate(this.events,!0)},componentDidMount(){this.kmtx.profile.link("followers_pending").fetch()},componentWillUnmount(){this.kmtxUndelegate(this.events,!0)},render(){return(0,E.jsx)(k,{followers_pending:this.kmtx.profile.link("followers_pending")})}});var A=_;function I(e,n){const r=e.props.kmtx.store;e.props.page=new s.Z.PageHal(e.props.page,{store:r}),e.react.setPage(A,e.props),n()}},69883:function(e,n,r){r.d(n,{Z:function(){return g}});r(55608),r(82540);var s=r(73749),l=r(37286),t=r(28718),i=r(94539),o=r.n(i),a=r(5018),c=r(34768),d=r(3865),u=r(69482),h=r(77211),p=r(54381);const x=({flex:e=!1,maxWidth:n,minHeight:r="100dvh",inset:s=!1,breadcrumb:l,after:t,bannerBottom:i,children:o})=>(0,p.jsx)(h._,{maxWidth:n,breadcrumb:l,bannerBottom:i,children:e?(0,p.jsxs)(a.gj,{alignY:"top",alignX:"stretch",sx:{flex:1},children:[(0,p.jsx)(c.Z,{as:"main",elevation:1,sx:{minHeight:r,display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"stretch",flex:1},children:s?(0,p.jsx)(d.x,{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"stretch",flex:1,p:["sm","md","lg"],children:o}):o}),t]}):(0,p.jsxs)(u.K,{children:[(0,p.jsx)(c.Z,{as:"main",elevation:1,sx:{minHeight:r},children:s?(0,p.jsx)(d.x,{p:["sm","md","lg"],children:o}):o}),t]})});var m=r(89281);const f=({children:e,showFooter:n=!0,breadcrumb:r,...i})=>{const o=(e=>{const{lang:n}=(0,t.Ye)();return(0,s.useMemo)((()=>Array.isArray(e)?e.map((e=>({...e,href:e.href&&l.dl.localizePath(e.href,n)}))):e),[e,n])})(r);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(x,{...i,breadcrumb:o,children:e}),n?(0,p.jsx)(m.Z,{breadcrumb:o}):null]})};f.propTypes={breadcrumb:o().arrayOf(o().shape({label:o().string.isRequired,href:o().string})),children:o().node.isRequired,maxWidth:o().string,minHeight:o().string,inset:o().bool,showFooter:o().bool,after:o().oneOfType([o().arrayOf(o().node),o().node]),bannerBottom:o().oneOfType([o().arrayOf(o().node),o().node])};var g=f}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.