1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/packs/status-quAMEimU.js","/packs/rolldown-runtime-C0FnF6B9.js","/packs/jsx-runtime-D3F0h15I.js","/packs/react-intl-D77hBoiN.js","/packs/preload-helper-BzEEf1T7.js","/packs/initial_state-IJJyCPA3.js","/packs/poll-Cel6hXZh.js","/packs/isSymbol-CjBCc0d9.js","/packs/esm-DrOrXu-Y.js","/packs/locales-Ds92OJ2Z.js","/packs/render-BNAgOAKG.js","/packs/ready-B3bZnx13.js","/packs/react-router-D0L-bsDO.js","/packs/router-BR8qcCbu.js","/packs/debounce-4ieNSmkw.js","/packs/axios-DXb66idf.js","/packs/axios-BtwFZmtf.js","/packs/defineProperty-DHAZOe13.js","/packs/redux-toolkit.modern-CEplbueE.js","/packs/typed_functions-CSTmTKlX.js","/packs/accounts_typed-Bftse9Dd.js","/packs/immutable.es-tL0E-S7u.js","/packs/utils-D3Ncnl0G.js","/packs/locale-D-1rLaCQ.js","/packs/intl-localematcher-B-zCDVK3.js","/packs/emoji-DPhGpxrR.js","/packs/settings-Cq4pjZIN.js","/packs/short_number-UXESbrRC.js","/packs/numbers-BEp7e788.js","/packs/classnames-CfLRLWYq.js","/packs/polymorphic-8XAI_M8V.js","/packs/toggle_field-DGtlfrU6.js","/packs/icon-BLmx23y5.js","/packs/info-BnsNWy2K.js","/packs/assets/toggle_field-BAQID-r7.css","/packs/circular_progress-DpiyKjin.js","/packs/skeleton-B7DUl0I_.js","/packs/links-DEii2L_c.js","/packs/dist-CbfhLTox.js","/packs/assets/poll-CmFjEAB5.css","/packs/content-CI8EUIGW.js","/packs/toString-CvPOIQoV.js","/packs/intl-Pb2dutIN.js","/packs/assets/content-D8gv5Ji-.css","/packs/DotsThree.es-BFDndC3a.js","/packs/utils-yYu4BF3E.js","/packs/Trash.es-DTibbZmN.js","/packs/assets/utils-38B8sPMX.css","/packs/useObserver-DnVQi0kY.js","/packs/useOverflow-2Akmjf53.js","/packs/formatted_date-CNkqJb7N.js","/packs/useAccountId-mKuURFm3.js","/packs/assets/status-iVpSyH-U.css"])))=>i.map(i=>d[i]); 2import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{n as t,t as n}from"./jsx-runtime-D3F0h15I.js";import{a as r,c as i,o as a,s as o}from"./react-intl-D77hBoiN.js";import{t as s}from"./preload-helper-BzEEf1T7.js";import{T as c,a as l,b as u,c as d,l as f}from"./initial_state-IJJyCPA3.js";import{o as p,s as m}from"./locales-Ds92OJ2Z.js";import{B as h,F as g,Ht as _,I as v,L as y,N as b,P as x,R as S,V as C,Z as w,_ as T,a as E,at as D,b as O,bn as k,d as A,dn as j,f as M,g as ee,hn as N,l as P,ln as te,m as ne,nt as F,r as re,rn as ie,tn as ae,u as oe,vn as se,y as ce}from"./poll-Cel6hXZh.js";import{$a as le,B as ue,Ci as de,H as fe,Hr as pe,J as me,Kr as he,Nn as ge,Oi as _e,P as ve,Pn as ye,Q as be,Rr as xe,Si as Se,U as Ce,Ut as we,V as Te,bi as Ee,co as De,fi as Oe,gi as ke,h as Ae,kn as je,mi as Me,oo as Ne,pi as Pe,st as Fe,v as Ie,xi as Le,ya as I,yi as Re,z as ze,zi as Be}from"./render-BNAgOAKG.js";import{b as Ve,d as He}from"./react-router-D0L-bsDO.js";import{t as L}from"./defineProperty-DHAZOe13.js";import{l as Ue,o as We,s as R}from"./typed_functions-CSTmTKlX.js";import{f as Ge}from"./accounts_typed-Bftse9Dd.js";import{n as Ke}from"./short_number-UXESbrRC.js";import{t as qe}from"./classnames-CfLRLWYq.js";import{t as z}from"./icon-BLmx23y5.js";import{t as B}from"./intl-Pb2dutIN.js";import{A as Je,Ct as Ye,Gt as Xe,Ht as Ze,Jt as Qe,O as V,Ut as $e,Wt as et,Yt as tt,a as nt,b as rt,h as it,k as at,n as ot,qt as st,t as ct,v as lt,y as ut,z as dt}from"./content-CI8EUIGW.js";var H=e(t()),U=n(),ft=({children:e})=>{let t=(0,H.useId)(),[n,i]=(0,H.useState)(!1),[a,o]=(0,H.useState)(null),s=(0,H.useCallback)(()=>{i(!n)},[n,i]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`button`,{className:`link-button`,ref:o,onClick:s,"aria-expanded":n,"aria-controls":t,type:`button`,children:(0,U.jsx)(r,{id:`learn_more_link.learn_more`,defaultMessage:`Learn more`})}),(0,U.jsx)(_,{isOpen:n,onClose:s,offset:5,placement:`bottom-end`,reference:a,children:({props:n})=>(0,U.jsxs)(`div`,{...n,role:`region`,id:t,className:`account__domain-pill__popout learn-more__popout dropdown-animation`,children:[(0,U.jsx)(`div`,{className:`learn-more__popout__content`,children:e}),(0,U.jsx)(`div`,{children:(0,U.jsx)(`button`,{className:`link-button`,onClick:s,type:`button`,children:(0,U.jsx)(r,{id:`learn_more_link.got_it`,defaultMessage:`Got it`})})})]})})]})}
2,W=e(Ve()),G=e(qe()),K=e(E()),pt=(0,H.createContext)({hideMediaByDefault:!1}),mt=({hideMediaByDefault:e,children:t})=>{let n=(0,H.useMemo)(()=>({hideMediaByDefault:e}),[e]);return(0,U.jsx)(pt.Provider,{value:n,children:t})},ht=function(e){return e.Warning=`warning`,e.Filter=`filter`,e}({}),gt=e=>{e.stopPropagation()},_t=({children:e,variant:t,expanded:n,onClick:i})=>{let a=(0,H.useId)(),o=(0,H.useRef)(null),s=(0,H.useCallback)(e=>{o.current&&e.target!==o.current&&!o.current.contains(e.target)&&(o.current.click(),o.current.focus())},[]);return(0,U.jsxs)(ie,{className:t===`warning`?`content-warning`:`content-warning content-warning--filter`,onClick:s,onMouseUp:gt,children:[(0,U.jsx)(`p`,{id:a,children:e}),(0,U.jsx)(`button`,{ref:o,type:`button`,className:`link-button`,onClick:i,"aria-describedby":a,children:n?(0,U.jsx)(r,{id:`content_warning.hide`,defaultMessage:`Hide post`}):t===`warning`?(0,U.jsx)(r,{id:`content_warning.show_more`,defaultMessage:`Show more`}):(0,U.jsx)(r,{id:`content_warning.show`,defaultMessage:`Show anyway`})})]})},vt=({statusId:e,expanded:t,onClick:n})=>{let r=w(e),i=!!r?.spoiler_text,a=r?.translation?.spoilerHtml??r?.spoilerHtml;return!i||!a?null:(0,U.jsx)(_t,{expanded:t,onClick:n,variant:ht.Warning,children:(0,U.jsx)(ae,{as:`span`,htmlString:a,extraEmojis:r.emojis})})},yt=({title:e,expanded:t,onClick:n})=>(0,U.jsx)(_t,{expanded:t,onClick:n,variant:ht.Filter,children:(0,U.jsx)(r,{id:`filter_warning.matches_filter`,defaultMessage:`Matches filter â<span>{title}</span>â`,values:{title:e,span:e=>(0,U.jsx)(`span`,{className:`filter-name`,children:e})}})}),q=({statusId:e,account:t,className:n,avatarSize:r=48,wrapperProps:i,contentBeforeDate:a,contentAfterDate:o,onHeaderClick:s})=>{let c=R(t=>me(t,e));if(!c)return null;let l=c.account,u=c.edited_at;return(0,U.jsxs)(`div`,{onClick:s,onAuxClick:s,...i,className:(0,G.default)(`status__info`,n),children:[(0,U.jsx)(St,{statusAccount:l,friendAccount:t,avatarSize:r}),a,(0,U.jsxs)(Ke,{to:`/@${l.acct}/${c.id}`,className:`status__relative-time`,children:[(0,U.jsx)(`span`,{className:`status__visibility-icon`,children:(0,U.jsx)(it,{visibility:c.visibility})}),(0,U.jsx)(P,{timestamp:c.created_at}),u&&(0,U.jsx)(xt,{editedAt:u})]}),o]})},bt=a({id:`status.edited`,defaultMessage:`Edited {date}`}),xt=({editedAt:e})=>{let t=i();return(0,U.jsxs)(`abbr`,{title:t.formatMessage(bt,{date:t.formatDate(e,{year:`numeric`,month:`short`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`})}),children:[` `,`*`]})},St=({statusAccount:e,friendAccount:t,avatarSize:n})=>(0,U.jsx)(F,{displayProps:{account:e},className:`status__display-name`,reference:`status`,children:(0,U.jsx)(`div`,{className:`status__avatar`,children:(0,U.jsx)(t?lt:D,{account:e,friend:t,size:n})})}),Ct=o({delete:{id:`status.delete`,defaultMessage:`Delete`},redraft:{id:`status.redraft`,defaultMessage:`Delete & re-draft`},edit:{id:`status.edit`,defaultMessage:`Edit`},direct:{id:`status.direct`,defaultMessage:`Privately mention @{name}`},mention:{id:`status.mention`,defaultMessage:`Mention @{name}`},mute:{id:`account.mute`,defaultMessage:`Mute @{name}`},block:{id:`account.block`,defaultMessage:`Block @{name}`},reply:{id:`status.reply`,defaultMessage:`Reply`},share:{id:`status.share`,defaultMessage:`Share`},more:{id:`status.more`,defaultMessage:`More`},replyAll:{id:`status.replyAll`,defaultMessage:`Reply to thread`},favourite:{id:`status.favourite`,defaultMessage:`Favorite`},removeFavourite:{id:`status.remove_favourite`,defaultMessage:`Remove from favorites`},bookmark:{id:`status.bookmark`,defaultMessage:`Bookmark`},removeBookmark:{id:`status.remove_bookmark`,defaultMessage:`Remove bookmark`},open:{id:`status.open`,defaultMessage:`Expand this status`},report:{id:`status.report`,defaultMessage:`Report @{name}`},muteConversation:{id:`status.mute_conversation`,defaultMessage:`Mute conversation`},unmuteConversation:{id:`status.unmute_conversation`,defaultMessage:`Unmute conversation`},pin:{id:`status.pin`,defaultMessage:`Pin on profile`},unpin:{id:`status.unpin`,defaultMessage:`Unpin from profile`},embed:{id:`status.embed`,defaultMessage:`Get embed code`},admin_account:{id:`status.admin_account`,defaultMessage:`Open moderation interface for @{name}`},admin_status:{id:`status.admin_status`,defaultMessage:`Open this post in the moderation interface`},admin_domain:{id:`status.admin_domain`,defaultMessage:`Open moderation interface for {domain}`},copy:{id:`status.copy`,defaultMessage:`Copy link to post`},blockDomain:{id:`account.block_domain`,defaultMessage:`Block domain {domain}`},unblockDomain:{id:`account.unblock_domain`,defaultMessage:`Unblock domain {domain}`},unmute:{id:`account.unmute`,defaultMessage:`Unmute @{name}`},unblock:{id:`account.unblock`,defaultMessage:`Unblock @{name}`},filter:{id:`status.filter`,defaultMessage:`Filter this post`},openOriginalPage:{id:`account.open_original_page`,defaultMessage:`Open original page`},revokeQuote:{id:`status.revoke_quote`,defaultMessage:`Remove my post from @{name}âs post`},quotePolicyChange:{id:`status.quote_policy_change`,defaultMessage:`Change who can quote`}}
2),wt=o({favourite:{id:`status.like`,defaultMessage:`Like`},removeFavourite:{id:`status.unlike`,defaultMessage:`Unlike`},bookmark:{id:`status.save`,defaultMessage:`Save post`},removeBookmark:{id:`status.remove_from_saved`,defaultMessage:`Remove from Saved`}}),J=p()?{...Ct,...wt}:Ct,Tt=(e,{status:t})=>{let n=t.getIn([`quote`,`quoted_status`]);return{relationship:e.getIn([`relationships`,t.getIn([`account`,`id`])]),quotedAccountId:n?e.getIn([`statuses`,n,`account`]):null,statusQuoteState:be(e,t.get(`id`))}},Et=class extends $e{constructor(...e){super(...e),L(this,`updateOnProps`,[`status`,`relationship`,`quotedAccountId`,`withDismiss`]),L(this,`handleReplyClick`,()=>{let{signedIn:e}=this.props.identity;e?this.props.onReply(this.props.status):this.props.onInteractionModal(this.props.status,`reply`)}),L(this,`handleQuoteClick`,()=>{this.props.onQuote(this.props.status)}),L(this,`handleShareClick`,()=>{navigator.share({url:this.props.status.get(`url`)}).catch(e=>{e.name!==`AbortError`&&console.error(e)})}),L(this,`handleFavouriteClick`,()=>{let{signedIn:e}=this.props.identity;e?this.props.onFavourite(this.props.status):this.props.onInteractionModal(this.props.status,`favourite`)}),L(this,`handleBookmarkClick`,()=>{this.props.onBookmark(this.props.status)}),L(this,`handleDeleteClick`,()=>{this.props.onDelete(this.props.status)}),L(this,`handleRedraftClick`,()=>{this.props.onDelete(this.props.status,!0)}),L(this,`handleEditClick`,()=>{this.props.onEdit(this.props.status)}),L(this,`handlePinClick`,()=>{this.props.onPin(this.props.status)}),L(this,`handleMentionClick`,()=>{this.props.onMention(this.props.status.get(`account`))}),L(this,`handleDirectClick`,()=>{this.props.onDirect(this.props.status.get(`account`))}),L(this,`handleMuteClick`,()=>{let{status:e,relationship:t,onMute:n,onUnmute:r}=this.props,i=e.get(`account`);t&&t.get(`muting`)?r(i):n(i)}),L(this,`handleRevokeQuoteClick`,()=>{this.props.onRevokeQuote(this.props.status)}),L(this,`handleQuotePolicyChange`,()=>{this.props.onQuotePolicyChange(this.props.status)}),L(this,`handleBlockClick`,()=>{let{status:e,relationship:t,onBlock:n,onUnblock:r}=this.props,i=e.get(`account`);t&&t.get(`blocking`)?r(i):n(e)}),L(this,`handleBlockDomain`,()=>{let{status:e,onBlockDomain:t}=this.props;t(e.get(`account`))}),L(this,`handleUnblockDomain`,()=>{let{status:e,onUnblockDomain:t}=this.props;t(e.get(`account`).get(`acct`).split(`@`)[1])}),L(this,`handleOpen`,()=>{this.props.history.push(`/@${this.props.status.getIn([`account`,`acct`])}/${this.props.status.get(`id`)}`)}),L(this,`handleEmbed`,()=>{this.props.onEmbed(this.props.status)}),L(this,`handleReport`,()=>{this.props.onReport(this.props.status)}),L(this,`handleConversationMuteClick`,()=>{this.props.onMuteConversation(this.props.status)}),L(this,`handleFilterClick`,()=>{this.props.onAddFilter(this.props.status)}),L(this,`handleCopy`,()=>{let e=this.props.status.get(`url`);navigator.clipboard.writeText(e)})}render(){let{status:e,relationship:t,statusQuoteState:n,quotedAccountId:r,contextType:i,intl:a,withDismiss:o,withCounters:s,scrollKey:l}=this.props,{signedIn:d,permissions:f}=this.props.identity,p=[`public`,`unlisted`].includes(e.get(`visibility`)),m=[`public`,`unlisted`,`private`].includes(e.get(`visibility`)),_=e.get(`muted`),v=e.get(`account`),w=e.getIn([`account`,`id`])===u,T=e.getIn([`account`,`username`])!==e.getIn([`account`,`acct`]),E=r===u,D=[];if(D.push({text:a.formatMessage(J.open),action:this.handleOpen}),p&&T&&D.push({text:a.formatMessage(J.openOriginalPage),href:e.get(`url`)}),D.push({text:a.formatMessage(J.copy),action:this.handleCopy}),p&&`share`in navigator&&D.push({text:a.formatMessage(J.share),action:this.handleShareClick}),p&&!T&&D.push({text:a.formatMessage(J.embed),action:this.handleEmbed}),c&&d){let e=b(n);D.push(null),D.push({text:a.formatMessage(e.title),description:e.meta?a.formatMessage(e.meta):void 0,disabled:e.disabled,action:this.handleQuoteClick})}if(d){if(D.push(null),w&&m&&(D.push({text:a.formatMessage(e.get(`pinned`)?J.unpin:J.pin),action:this.handlePinClick}),D.push(null)),(w||o)&&(D.push({text:a.formatMessage(_?J.unmuteConversation:J.muteConversation),action:this.handleConversationMuteClick}
2),w&&![`private`,`direct`].includes(e.get(`visibility`))&&D.push({text:a.formatMessage(J.quotePolicyChange),action:this.handleQuotePolicyChange}),D.push(null)),w)D.push({text:a.formatMessage(J.edit),action:this.handleEditClick}),D.push({text:a.formatMessage(J.delete),action:this.handleDeleteClick,dangerous:!0}),D.push({text:a.formatMessage(J.redraft),action:this.handleRedraftClick,dangerous:!0});else{if(v.get(`invalid_handle`)||(D.push({text:a.formatMessage(J.mention,{name:v.get(`username`)}),action:this.handleMentionClick}),D.push({text:a.formatMessage(J.direct,{name:v.get(`username`)}),action:this.handleDirectClick}),D.push(null)),E&&D.push({text:a.formatMessage(J.revokeQuote,{name:v.get(`username`)}),action:this.handleRevokeQuoteClick,dangerous:!0}),t&&t.get(`muting`)?D.push({text:a.formatMessage(J.unmute,{name:v.get(`username`)}),action:this.handleMuteClick}):D.push({text:a.formatMessage(J.mute,{name:v.get(`username`)}),action:this.handleMuteClick,dangerous:!0}),t&&t.get(`blocking`)?D.push({text:a.formatMessage(J.unblock,{name:v.get(`username`)}),action:this.handleBlockClick}):D.push({text:a.formatMessage(J.block,{name:v.get(`username`)}),action:this.handleBlockClick,dangerous:!0}),this.props.onFilter||(D.push(null),D.push({text:a.formatMessage(J.filter),action:this.handleFilterClick,dangerous:!0}),D.push(null)),D.push({text:a.formatMessage(J.report,{name:v.get(`username`)}),action:this.handleReport,dangerous:!0}),v.get(`acct`)!==v.get(`username`)&&!v.get(`invalid_handle`)){let e=v.get(`acct`).split(`@`)[1];D.push(null),t&&t.get(`domain_blocking`)?D.push({text:a.formatMessage(J.unblockDomain,{domain:e}),action:this.handleUnblockDomain}):D.push({text:a.formatMessage(J.blockDomain,{domain:e}),action:this.handleBlockDomain,dangerous:!0})}if(((f&1024)==1024||T&&(f&32)==32)&&(D.push(null),(f&1024)==1024&&(D.push({text:a.formatMessage(J.admin_account,{name:v.get(`username`)}),href:`/admin/accounts/${e.getIn([`account`,`id`])}`}),D.push({text:a.formatMessage(J.admin_status),href:`/admin/accounts/${e.getIn([`account`,`id`])}/statuses/${e.get(`id`)}`})),T&&(f&32)==32)){let e=v.get(`acct`).split(`@`)[1];D.push({text:a.formatMessage(J.admin_domain,{domain:e}),href:`/admin/instances/${e}`})}}}let k,A,j;e.get(`in_reply_to_id`,null)===null?(k=`reply`,A=C,j=a.formatMessage(J.reply)):(k=`reply-all`,A=h,j=a.formatMessage(J.replyAll));let M=a.formatMessage(e.get(`bookmarked`)?J.removeBookmark:J.bookmark),ee=a.formatMessage(e.get(`favourited`)?J.removeFavourite:J.favourite),P=e.get(`in_reply_to_account_id`)===e.getIn([`account`,`id`]),te=E&&i===`notifications`;return(0,U.jsxs)(`div`,{className:`status__action-bar`,children:[(0,U.jsx)(`div`,{className:`status__action-bar__button-wrapper`,children:(0,U.jsx)(N,{className:`status__action-bar__button`,title:j,icon:P?`reply`:k,iconComponent:P?C:A,onClick:this.handleReplyClick,counter:e.get(`replies_count`)})}),(0,U.jsx)(`div`,{className:`status__action-bar__button-wrapper`,children:(0,U.jsx)(ce,{statusId:e.get(`id`),counters:s})}),(0,U.jsx)(`div`,{className:`status__action-bar__button-wrapper`,children:(0,U.jsx)(N,{className:`status__action-bar__button star-icon`,animate:!0,active:e.get(`favourited`),title:ee,icon:`star`,iconComponent:e.get(`favourited`)?y:S,onClick:this.handleFavouriteClick,counter:s?e.get(`favourites_count`):void 0})}),(0,U.jsx)(`div`,{className:`status__action-bar__button-wrapper`,children:(0,U.jsx)(N,{className:`status__action-bar__button bookmark-icon`,disabled:!d,active:e.get(`bookmarked`),title:M,icon:`bookmark`,iconComponent:e.get(`bookmarked`)?x:g,onClick:this.handleBookmarkClick})}),(0,U.jsx)(ot,{className:`status__action-bar__button-wrapper`,canShowHint:te,children:t=>(0,U.jsx)(O,{scrollKey:l,status:e,needsStatusRefresh:c&&e.get(`quote_approval`)===null,items:D,direction:`right`,onOpen:()=>(t(),!0),children:(0,U.jsx)(N,{className:`status__action-bar__button`,icon:`ellipsis-h`,iconComponent:Xe,title:a.formatMessage(J.more)})})})]})}};L(Et,`propTypes`,{identity:te,status:K.default.map.isRequired,relationship:K.default.record,statusQuoteState:W.default.object,quotedAccountId:W.default.string,contextType:W.default.string,onReply:W.default.func,onFavourite:W.default.func,onDelete:W.default.func,onRevokeQuote:W.default.func,onQuotePolicyChange:W.default.func,onDirect:W.default.func,onMention:W.default.func,onMute:W.default.func,onUnmute:W.default.func,onBlock:W.default.func,onUnblock:W.default.func,onBlockDomain:W.default.func,onUnblockDomain:W.default.func,onReport:W.default.func,onEmbed:W.default.func,onMuteConversation:W.default.func,onPin:W.default.func,onBookmark:W.default.func,onFilter:W.default.func,onAddFilter:W.default.func,onInteractionModal:W.default.func,withDismiss:W.default.bool,withCounters:W.default.bool,scrollKey:W.default.string,intl:W.default.object.isRequired,...A});var Dt=He(j(Ue(Tt)(B(Et)))),Ot=({accountId:e,inReplyToAccountId:t})=>{let n=R(e=>e.accounts.get(t)),i;return i=e===t?(0,U.jsx)(r,{id:`status.continued_thread`,defaultMessage:`Continued thread`}):n?(0,U.jsx)(r,{id:`status.replied_to`,defaultMessage:`Replied to {name}`,values:{name:(0,U.jsx)(F,{displayProps:{account:n,variant:`simple`}})}}):(0,U.jsx)(r,{id:`status.replied_in_thread`,defaultMessage:`Replied in thread`}),(0,U.jsxs)(`div`,{className:`status__prepend`,children:[(0,U.jsx)(`div`,{className:`status__prepend__icon`,children:(0,U.jsx)(z,{id:`reply`,icon:C})}),(0,U.jsx)(`span`,{children:i})]})}
2,kt=new DOMParser,Y=o({public_short:{id:`privacy.public.short`,defaultMessage:`Public`},unlisted_short:{id:`privacy.unlisted.short`,defaultMessage:`Quiet public`},private_short:{id:`privacy.private.short`,defaultMessage:`Followers`},direct_short:{id:`privacy.direct.short`,defaultMessage:`Specific people`},edited:{id:`status.edited`,defaultMessage:`Edited {date}`},quote_noun:{id:`status.quote_noun`,defaultMessage:`Quote`},contains_quote:{id:`status.contains_quote`,defaultMessage:`Contains quote`},quote_cancel:{id:`status.quote.cancel`,defaultMessage:`Cancel quote`}}),At=({intl:e,status:t,rebloggedByText:n=!1,isQuote:r=!1})=>{let i=t.getIn([`account`,`display_name`]),a=t.getIn([`translation`,`spoiler_text`])||t.get(`spoiler_text`),o=t.getIn([`translation`,`contentHtml`])||t.get(`contentHtml`),s=kt.parseFromString(o,`text/html`).documentElement.textContent;return[r?e.formatMessage(Y.quote_noun):void 0,i.length===0?t.getIn([`account`,`acct`]).split(`@`)[0]:i,a&&t.get(`hidden`)?a:s,t.get(`quote`)?e.formatMessage(Y.contains_quote):void 0,e.formatDate(t.get(`created_at`),{hour:`2-digit`,minute:`2-digit`,month:`short`,day:`numeric`}),t.getIn([`account`,`acct`]),n].filter(e=>!!e).join(`, `)},X=e=>{if(e)return e.get(`reblog`,null)!==null&&typeof e.get(`reblog`)==`object`&&(e=e.get(`reblog`)),!e.get(`matched_media_filters`)&&(d!==`hide_all`&&!e.get(`sensitive`)||d===`show_all`)},Z=class extends $e{constructor(...e){super(...e),L(this,`updateOnProps`,[`status`,`account`,`muted`,`hidden`,`unread`,`pictureInPicture`,`headerRenderFn`]),L(this,`state`,{showMedia:X(this.props.status)&&!this.context?.hideMediaByDefault,showDespiteFilter:void 0}),L(this,`handleToggleMediaVisibility`,()=>{this.setState({showMedia:!this.state.showMedia})}),L(this,`handleClick`,e=>{e.preventDefault(),e?.button===0&&!(e?.ctrlKey||e?.metaKey)?this._openStatus():(e?.button===1||e?.button===0&&(e?.ctrlKey||e?.metaKey))&&this._openStatus(!0)}),L(this,`handleHeaderClick`,e=>{e.target!==e.currentTarget&&e.detail>=1||this.handleClick(e)}),L(this,`handleExpandedToggle`,()=>{this.props.onToggleHidden(this._properStatus())}),L(this,`handleCollapsedToggle`,e=>{this.props.onToggleCollapsed(this._properStatus(),e)}),L(this,`handleTranslate`,()=>{this.props.onTranslate(this._properStatus())}),L(this,`renderLoadingMediaGallery`,()=>(0,U.jsx)(`div`,{className:`media-gallery`,style:{aspectRatio:this.getAttachmentAspectRatio()}})),L(this,`renderLoadingVideoPlayer`,()=>(0,U.jsx)(`div`,{className:`video-player`,style:{aspectRatio:this.getAttachmentAspectRatio()}})),L(this,`renderLoadingAudioPlayer`,()=>(0,U.jsx)(`div`,{className:`audio-player`,style:{aspectRatio:this.getAttachmentAspectRatio()}})),L(this,`handleOpenVideo`,e=>{let t=this._properStatus(),n=t.getIn([`translation`,`language`])||t.get(`language`);this.props.onOpenVideo(t.get(`id`),t.getIn([`media_attachments`,0]),n,e)}),L(this,`handleOpenMedia`,(e,t)=>{let n=this._properStatus(),r=n.getIn([`translation`,`language`])||n.get(`language`);this.props.onOpenMedia(n.get(`id`),e,t,r)}),L(this,`handleHotkeyOpenMedia`,e=>{let{onOpenMedia:t,onOpenVideo:n}=this.props,r=this._properStatus();if(e.preventDefault(),r.get(`media_attachments`).size>0){let e=r.getIn([`translation`,`language`])||r.get(`language`);r.getIn([`media_attachments`,0,`type`])===`video`?n(r.get(`id`),r.getIn([`media_attachments`,0]),e,{startTime:0}):t(r.get(`id`),r.get(`media_attachments`),0,e)}}),L(this,`handleDeployPictureInPicture`,(e,t)=>{let{deployPictureInPicture:n}=this.props;n(this._properStatus(),e,t)}),L(this,`handleHotkeyReply`,e=>{e.preventDefault(),this.props.onReply(this._properStatus())}),L(this,`handleHotkeyFavourite`,()=>{this.props.onFavourite(this._properStatus())}),L(this,`handleHotkeyBoost`,e=>{this.props.onReblog(this._properStatus(),e)}),L(this,`handleHotkeyQuote`,()=>{this.props.onQuote(this._properStatus())}),L(this,`handleHotkeyMention`,e=>{e.preventDefault(),this.props.onMention(this._properStatus().get(`account`))}),L(this,`handleHotkeyOpen`,()=>{this._openStatus()}),L(this,`_openStatus`,(e=!1)=>{if(this.props.onOpen){this.props.onOpen();return}let{history:t}=this.props,n=this._properStatus();if(!t)return;let r=`/@${n.getIn([`account`,`acct`])}/${n.get(`id`)}`;e?window.open(r,`_blank`,`noopener`):t.location.pathname.replace(`/deck/`,`/`)===r?t.replace(r,{focusTarget:k.POST}):t.push(r,{focusTarget:k.POST})}),L(this,`handleHotkeyOpenProfile`,()=>{this._openProfile()}),L(this,`_openProfile`,(e=!0)=>{let{history:t}=this.props,n=e?this._properStatus():this.props.status;t&&t.push(`/@${n.getIn([`account`,`acct`])}`)}),L(this,`handleHotkeyToggleHidden`,()=>{let{onToggleHidden:e}=this.props,t=this._properStatus();if(this.props.status.get(`matched_filters`)){let n=!t.get(`hidden`)||t.get(`spoiler_text`).length===0,r=this.state.showDespiteFilter;r&&!n?e(t):(r&&n&&e(t),this.handleFilterToggle())}else e(t)}),L(this,`handleHotkeyToggleSensitive`,()=>{this.handleToggleMediaVisibility()}),L(this,`handleFilterToggle`,()=>{this.setState(e=>({...e,showDespiteFilter:!e.showDespiteFilter}))}),L(this,`handleRef`,e=>{this.node=e})}componentDidUpdate(e){this.props.status?.get(`id`)!==e.status?.get(`id`)&&this.setState({showMedia:X(this.props.status)&&!this.context?.hideMediaByDefault,showDespiteFilter:void 0})}getAttachmentAspectRatio(){let e=this._properStatus().get(`media_attachments`);return e.getIn([0,`type`])===`video`?`${e.getIn([0,`meta`,`original`,`width`])} / ${e.getIn([0,`meta`,`original`,`height`])}`:e.getIn([0,`type`])===`audio`?`16 / 9`:e.size===1&&e.getIn([0,`meta`,`small`,`aspect`])?e.getIn([0,`meta`,`small`,`aspect`]):`3 / 2`}
2_properStatus(){let{status:e}=this.props;return e.get(`reblog`,null)!==null&&typeof e.get(`reblog`)==`object`?e.get(`reblog`):e}render(){let{intl:e,hidden:t,featured:n,unfocusable:i,unread:a,showThread:o,showActions:s=!0,isQuotedPost:c=!1,scrollKey:l,pictureInPicture:u,previousId:d,nextInReplyToId:f,rootId:p,skipPrepend:m,avatarSize:h=46,children:g}=this.props,{status:_,account:y,...b}=this.props;if(_===null)return null;let x=this.props.muted?{}:{reply:this.handleHotkeyReply,favourite:this.handleHotkeyFavourite,boost:this.handleHotkeyBoost,quote:this.handleHotkeyQuote,mention:this.handleHotkeyMention,open:this.handleHotkeyOpen,openProfile:this.handleHotkeyOpenProfile,toggleHidden:this.handleHotkeyToggleHidden,toggleSensitive:this.handleHotkeyToggleSensitive,openMedia:this.handleHotkeyOpenMedia,onTranslate:this.handleTranslate},S,C,w,T=d&&d===_.get(`in_reply_to_id`),E=p&&p===_.get(`in_reply_to_id`),D=f&&f===_.get(`id`),O=_.get(`matched_filters`);if(_.get(`reblog`,null)!==null&&typeof _.get(`reblog`)==`object`){let t=(0,U.jsx)(F,{displayProps:{account:_.get(`account`),variant:`simple`},className:`status__display-name muted`,reference:`status`});C=(0,U.jsxs)(`div`,{className:`status__prepend`,children:[(0,U.jsx)(`div`,{className:`status__prepend__icon`,children:(0,U.jsx)(z,{id:`retweet`,icon:v})}),(0,U.jsx)(r,{id:`status.reblogged_by`,defaultMessage:`{name} boosted`,values:{name:t},tagName:`span`})]}),w=e.formatMessage({id:`status.reblogged_by`,defaultMessage:`{name} boosted`},{name:_.getIn([`account`,`acct`])}),y=_.get(`account`),_=_.get(`reblog`)}else _.get(`visibility`)===`direct`?C=(0,U.jsxs)(`div`,{className:`status__prepend`,children:[(0,U.jsx)(`div`,{className:`status__prepend__icon`,children:(0,U.jsx)(z,{id:`at`,icon:st})}),(0,U.jsx)(r,{id:`status.direct_indicator`,defaultMessage:`Private mention`,tagName:`span`})]}):o&&_.get(`in_reply_to_id`)&&(C=(0,U.jsx)(Ot,{accountId:_.getIn([`account`,`id`]),inReplyToAccountId:_.get(`in_reply_to_account_id`)}));let k=(!O||this.state.showDespiteFilter)&&(!_.get(`hidden`)||_.get(`spoiler_text`).length===0);if(t)return(0,U.jsx)(tt,{handlers:x,focusable:!i,children:(0,U.jsxs)(`div`,{ref:this.handleRef,className:(0,G.default)(`status__wrapper`,{focusable:!this.props.muted}),tabIndex:i?null:0,children:[(0,U.jsx)(`span`,{children:_.getIn([`account`,`display_name`])||_.getIn([`account`,`username`])}),_.get(`spoiler_text`).length>0&&(0,U.jsx)(`span`,{children:_.get(`spoiler_text`)}),k&&(0,U.jsx)(`span`,{children:_.get(`content`)})]})});if(u.get(`inUse`))S=(0,U.jsx)(at,{aspectRatio:this.getAttachmentAspectRatio()});else if(_.get(`media_attachments`).size>0){let e=_.getIn([`translation`,`language`])||_.get(`language`);
2if([`image`,`gifv`,`unknown`].includes(_.getIn([`media_attachments`,0,`type`]))||_.get(`media_attachments`).size>1)S=(0,U.jsx)(V,{fetchComponent:Ye,loading:this.renderLoadingMediaGallery,children:t=>(0,U.jsx)(t,{media:_.get(`media_attachments`),lang:e,sensitive:_.get(`sensitive`),height:110,onOpenMedia:this.handleOpenMedia,cacheWidth:this.props.cacheMediaWidth,defaultWidth:this.props.cachedMediaWidth,visible:this.state.showMedia,onToggleVisibility:this.handleToggleMediaVisibility,matchedFilters:_.get(`matched_media_filters`)})},`gallery`);else if(_.getIn([`media_attachments`,0,`type`])===`audio`){let t=_.getIn([`media_attachments`,0]),n=t.getIn([`translation`,`description`])||t.get(`description`);S=(0,U.jsx)(V,{fetchComponent:dt,loading:this.renderLoadingAudioPlayer,children:r=>(0,U.jsx)(r,{src:t.get(`url`),alt:n,lang:e,poster:t.get(`preview_url`)||_.getIn([`account`,`avatar_static`]),backgroundColor:t.getIn([`meta`,`colors`,`background`]),foregroundColor:t.getIn([`meta`,`colors`,`foreground`]),accentColor:t.getIn([`meta`,`colors`,`accent`]),duration:t.getIn([`meta`,`original`,`duration`],0),deployPictureInPicture:u.get(`available`)?this.handleDeployPictureInPicture:void 0,sensitive:_.get(`sensitive`),blurhash:t.get(`blurhash`),visible:this.state.showMedia,onToggleVisibility:this.handleToggleMediaVisibility,matchedFilters:_.get(`matched_media_filters`)})},`audio`)}else if(_.getIn([`media_attachments`,0,`type`])===`video`){let t=_.getIn([`media_attachments`,0]),n=t.getIn([`translation`,`description`])||t.get(`description`);S=(0,U.jsx)(V,{fetchComponent:Ze,loading:this.renderLoadingVideoPlayer,children:r=>(0,U.jsx)(r,{preview:t.get(`preview_url`),frameRate:t.getIn([`meta`,`original`,`frame_rate`]),aspectRatio:`${t.getIn([`meta`,`original`,`width`])} / ${t.getIn([`meta`,`original`,`height`])}`,blurhash:t.get(`blurhash`),src:t.get(`url`),alt:n,lang:e,sensitive:_.get(`sensitive`),onOpenVideo:this.handleOpenVideo,deployPictureInPicture:u.get(`available`)?this.handleDeployPictureInPicture:void 0,visible:this.state.showMedia,onToggleVisibility:this.handleToggleMediaVisibility,matchedFilters:_.get(`matched_media_filters`)})},`video`)}}else if(_.get(`card`)&&!_.get(`quote`)){let e=_.getIn([`card`,`url`]),t=_.get(`tagged_collections`).find(t=>ut(t.get(`url`),e));S=t?(0,U.jsx)(rt,{collection:t.toJS(),headingLevel:`h2`}):(0,U.jsx)(re,{card:_.get(`card`),sensitive:_.get(`sensitive`)},`${_.get(`id`)}-${_.get(`edited_at`)}`)}else if(_.get(`tagged_collections`).size&&!_.get(`quote`)){let e=_.get(`tagged_collections`).first();e&&(S=(0,U.jsx)(rt,{collection:e.toJS(),headingLevel:`h2`}))}let{statusContentProps:A,hashtagBar:j}=nt(_),M=this.props.headerRenderFn?this.props.headerRenderFn({statusId:_.get(`id`),account:y,avatarSize:h,messages:Y,onHeaderClick:this.handleHeaderClick,featured:n}):(0,U.jsx)(q,{statusId:_.get(`id`),account:y,avatarSize:h,onHeaderClick:this.handleHeaderClick});return(0,U.jsx)(tt,{handlers:x,focusable:!i,children:(0,U.jsxs)(`div`,{className:(0,G.default)(`status__wrapper`,`status__wrapper-${_.get(`visibility`)}`,{"status__wrapper-reply":!!_.get(`in_reply_to_id`),"status__wrapper--in-thread":!!p,unread:a,focusable:!this.props.muted}),tabIndex:this.props.muted||i?null:0,"data-featured":n?`true`:null,"aria-label":At({intl:e,status:_,rebloggedByText:w,isQuote:c}),ref:this.handleRef,"data-nosnippet":_.getIn([`account`,`noindex`],!0)||void 0,children:[!m&&C,(0,U.jsxs)(`div`,{className:(0,G.default)(`status`,`status-${_.get(`visibility`)}`,{"status-reply":!!_.get(`in_reply_to_id`),"status--in-thread":!!p,"status--first-in-thread":d&&(!T||E),muted:this.props.muted,"status--is-quote":c,"status--has-quote":!!_.get(`quote`),"status--highlighted-entry":this.props.shouldHighlightOnMount}),"data-id":_.get(`id`),children:[(D||T||E)&&(0,U.jsx)(`div`,{className:(0,G.default)(`status__line`,{"status__line--full":D,"status__line--first":!_.get(`in_reply_to_id`)&&!E})}),M,O&&(0,U.jsx)(yt,{title:O.join(`, `),expanded:this.state.showDespiteFilter,onClick:this.handleFilterToggle}),(!O||this.state.showDespiteFilter)&&(0,U.jsx)(vt,{statusId:_.get(`id`),expanded:k,onClick:this.handleExpandedToggle}),k&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(ct,{status:_,onClick:this.handleClick,onTranslate:this.handleTranslate,collapsible:!0,onCollapsedToggle:this.handleCollapsedToggle,...A}),S,j,g]}),s&&!c&&(0,U.jsx)(Dt,{scrollKey:l,status:_,account:y,...b})]})]})})}};L(Z,`contextType`,pt),L(Z,`propTypes`,{status:K.default.map,account:K.default.record,children:W.default.node,previousId:W.default.string,nextInReplyToId:W.default.string,rootId:W.default.string,onClick:W.default.func,onReply:W.default.func,onFavourite:W.default.func,onReblog:W.default.func,onQuote:W.default.func,onDelete:W.default.func,onDirect:W.default.func,onMention:W.default.func,onPin:W.default.func,onOpenMedia:W.default.func,onOpenVideo:W.default.func,onBlock:W.default.func,onAddFilter:W.default.func,onEmbed:W.default.func,onHeightChange:W.default.func,onToggleHidden:W.default.func,onToggleCollapsed:W.default.func,onTranslate:W.default.func,onInteractionModal:W.default.func,muted:W.default.bool,hidden:W.default.bool,unread:W.default.bool,featured:W.default.bool,showThread:W.default.bool,showActions:W.default.bool,isQuotedPost:W.default.bool,shouldHighlightOnMount:W.default.bool,getScrollPosition:W.default.func,updateScrollBottom:W.default.func,cacheMediaWidth:W.default.func,cachedMediaWidth:W.default.number,scrollKey:W.default.string,skipPrepend:W.default.bool,avatarSize:W.default.number,deployPictureInPicture:W.default.func,unfocusable:W.default.bool,headerRenderFn:W.default.func,pictureInPicture:K.default.contains({inUse:W.default.bool,available:W.default.bool}),contextType:W.default.string,...oe});var jt=M(B(Z)),Q=B(Ue(()=>{let e=ee(),t=ne();return(n,r)=>({status:e(n,r),nextInReplyToId:r.nextId?n.getIn([`statuses`,r.nextId,`in_reply_to_id`]):null,pictureInPicture:t(n,r)})},(e,{contextType:t})=>({onReply(t){e((n,r)=>{r().getIn([`compose`,`text`]).trim().length===0?e(he(t)):e(I({modalType:`CONFIRM_REPLY`,modalProps:{status:t}}))})},onReblog(t,n){e(Te(t.get(`id`),n.shiftKey))},onQuote(t){e(Be(t.get(`id`)))},onFavourite(t){e(ue(t.get(`id`)))}
2,onBookmark(t){t.get(`bookmarked`)?e(fe(t)):e(ve(t))},onPin(t){t.get(`pinned`)?e(Ce(t)):e(ze(t))},onEmbed(t){e(I({modalType:`EMBED`,modalProps:{id:t.get(`id`)}}))},onDelete(t,n=!1){e(l?I({modalType:`CONFIRM_DELETE_STATUS`,modalProps:{statusId:t.get(`id`),withRedraft:n}}):Oe(t.get(`id`),n))},onRevokeQuote(t){e(I({modalType:`CONFIRM_REVOKE_QUOTE`,modalProps:{statusId:t.get(`id`),quotedStatusId:t.getIn([`quote`,`quoted_status`])}}))},onQuotePolicyChange(t){let n=t.get(`id`);e(I({modalType:`COMPOSE_PRIVACY`,modalProps:{statusId:n,onChange:(t,r)=>{e(_e({policy:r,statusId:n}))}}}))},onEdit(t){e((n,r)=>{r().getIn([`compose`,`text`]).trim().length===0?e(Pe(t.get(`id`))):e(I({modalType:`CONFIRM_EDIT_STATUS`,modalProps:{statusId:t.get(`id`)}}))})},onTranslate(t){t.get(`translation`)?e(Se(t.get(`id`),t.get(`poll`))):e(Le(t.get(`id`)))},onDirect(t){e(xe(t))},onMention(t){e(pe(t))},onOpenMedia(t,n,r,i){e(I({modalType:`MEDIA`,modalProps:{statusId:t,media:n,index:r,lang:i}}))},onOpenVideo(t,n,r,i){e(I({modalType:`VIDEO`,modalProps:{statusId:t,media:n,lang:r,options:i}}))},onBlock(t){let n=t.get(`account`);e(Ie(n))},onUnblock(t){e(Ne(t.get(`id`)))},onReport(t){e(Je(t.get(`account`),t))},onAddFilter(n){e(je(n,{contextType:t}))},onMute(t){e(Ae(t))},onUnmute(t){e(De(t.get(`id`)))},onMuteConversation(t){t.get(`muted`)?e(de(t.get(`id`))):e(ke(t.get(`id`)))},onToggleHidden(t){e(Ee(t.get(`id`)))},onToggleCollapsed(t,n){e(Re(t.get(`id`),n))},onBlockDomain(t){e(ge(t))},onUnblockDomain(t){e(ye(t))},deployPictureInPicture(t,n,r){e(we({statusId:t.get(`id`),accountId:t.getIn([`account`,`id`]),playerType:n,props:r}))},onInteractionModal(t,n){e(I({modalType:`INTERACTION`,modalProps:{intent:n,accountId:t.getIn([`account`,`id`]),url:t.get(`uri`)}}))}}))(jt)),Mt=1,Nt=({status:e})=>{let t=e.get(`account`),n=typeof t==`string`?t:t.id,i=R(e=>n?e.accounts.get(n):void 0)?.acct;return i?(0,U.jsx)(`div`,{className:`status__quote-author-button`,children:(0,U.jsx)(r,{id:`status.quote_post_author`,defaultMessage:`Quoted a post by @{name}`,values:{name:i}})}):null},Pt=({accountId:e})=>{let t=We(),n=(0,H.useCallback)(()=>{t(Ge({id:e}))},[t,e]);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(r,{id:`status.quote_error.limited_account_hint.title`,defaultMessage:`This account has been hidden by the moderators of {domain}.`,values:{domain:f}}),(0,U.jsx)(`button`,{onClick:n,className:`link-button`,type:`button`,children:(0,U.jsx)(r,{id:`status.quote_error.limited_account_hint.action`,defaultMessage:`Show anyway`})})]})},Ft=({reveal:e,quotedAccountId:t,quoteState:n})=>{let i=R(e=>t?e.accounts.get(t):void 0)?.acct,a=i?.split(`@`)[1],o;switch(n){case`blocked_account`:o=(0,U.jsx)(r,{id:`status.quote_error.blocked_account_hint.title`,defaultMessage:`This post is hidden because you've blocked @{name}.`,values:{name:i}});break;case`blocked_domain`:o=(0,U.jsx)(r,{id:`status.quote_error.blocked_domain_hint.title`,defaultMessage:`This post is hidden because you've blocked {domain}.`,values:{domain:a}});break;case`muted_account`:o=(0,U.jsx)(r,{id:`status.quote_error.muted_account_hint.title`,defaultMessage:`This post is hidden because you've muted @{name}.`,values:{name:i}})}return(0,U.jsxs)(U.Fragment,{children:[o,(0,U.jsx)(`button`,{onClick:e,className:`link-button`,type:`button`,children:(0,U.jsx)(r,{id:`status.quote_error.limited_account_hint.action`,defaultMessage:`Show anyway`})})]})},It=a({id:`status.quote.cancel`,defaultMessage:`Cancel quote`}),$=({quote:e,contextType:t,parentQuotePostId:n,nestingLevel:a=1,variant:o=`full`,onQuoteCancel:s})=>{let c=We(),l=R(t=>n?t.statuses.getIn([n,`quote`,`state`]):e.get(`state`)),u=e.get(`quoted_status`),d=(0,H.useMemo)(()=>T(),[]),{status:f,loadingState:p}=R(e=>d(e,{id:u,contextType:t})),m=f?.get(`account`)?f.get(`account`).id:null,h=R(e=>m&&Fe(e,m)),g=!f?.get(`isLoading`)&&l!==`deleted`&&p===`not-found`,_=p===`complete`,v=(0,H.useRef)(!1),[y,b]=(0,H.useState)(!1),x=(0,H.useCallback)(()=>{b(!0)},[b]);(0,H.useEffect)(()=>{_&&(v.current=!1)},[_]),(0,H.useEffect)(()=>{g&&u&&!v.current&&(c(Me(u,{parentQuotePostId:n,alsoFetchContext:!1})),v.current=!0)},[g,u,n,c]),(0,H.useEffect)(()=>
2{m&&h&&c(le([m]))},[m,h,c]);let S=i(),C=(0,H.useCallback)(e=>(0,U.jsx)(q,{...e,contentAfterDate:s&&(0,U.jsx)(N,{onClick:s,className:`status__quote-cancel`,title:S.formatMessage(It),icon:`cancel-fill`,iconComponent:et})}),[S,s]),w=p===`filtered`,E=null;if(w?E=(0,U.jsx)(r,{id:`status.quote_error.filtered`,defaultMessage:`Hidden due to one of your filters`}):l===`pending`?E=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(r,{id:`status.quote_error.pending_approval`,defaultMessage:`Post pending`}),(0,U.jsx)(ft,{children:(0,U.jsx)(`p`,{children:(0,U.jsx)(r,{id:`status.quote_error.pending_approval_popout.body`,defaultMessage:`On Mastodon, you can control whether someone can quote you. This post is pending while we're getting the original author's approval.`})})})]}):l===`revoked`?E=(0,U.jsx)(r,{id:`status.quote_error.revoked`,defaultMessage:`Post removed by author`}):(l===`blocked_account`||l===`blocked_domain`||l===`muted_account`)&&!y&&m?E=(0,U.jsx)(Ft,{quoteState:l,reveal:x,quotedAccountId:m}):!f||!u||l===`deleted`||l===`rejected`||l===`unauthorized`?E=(0,U.jsx)(r,{id:`status.quote_error.not_available`,defaultMessage:`Post unavailable`}):h&&m&&(E=(0,U.jsx)(Pt,{accountId:m})),E)return(0,U.jsxs)(`div`,{className:`status__quote status__quote--error`,children:[E,t===`composer`&&!!s&&(0,U.jsx)(Qe,{compact:!0,plain:!0,onClick:s,children:(0,U.jsx)(r,{id:`status.remove_quote`,defaultMessage:`Remove`})})]});if(o===`link`&&f)return(0,U.jsx)(Nt,{status:f});let D=f?.get(`quote`);return(0,U.jsx)(`div`,{className:`status__quote`,children:(0,U.jsx)(Q,{isQuotedPost:!0,id:u,contextType:t,avatarSize:32,headerRenderFn:C,children:D&&a<=Mt&&(0,U.jsx)($,{quote:D,parentQuotePostId:u,contextType:t,variant:a===Mt?`link`:`full`,nestingLevel:a+1})})})},Lt=e=>{let t=R(t=>{let n=t.statuses.get(e.id),r=n?.get(`reblog`);return r?t.statuses.get(r):n}),n=t?.get(`quote`);return m()?(0,U.jsx)(H.Suspense,{fallback:(0,U.jsx)(se,{}),children:(0,U.jsx)(Rt,{...e})}):n?(0,U.jsx)(Q,{...e,children:(0,U.jsx)($,{quote:n,parentQuotePostId:t?.get(`id`),contextType:e.contextType})}):(0,U.jsx)(Q,{...e})},Rt=(0,H.lazy)(()=>s(async()=>{let{StatusRedesign:e}=await import(`./status-quAMEimU.js`);return{StatusRedesign:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52]),import.meta.url).then(({StatusRedesign:e})=>({default:e})));export{q as a,mt as c,At as i,Lt as n,yt as o,X as r,vt as s,$ as t}; 3//# sourceMappingURL=quoted-B4C_7I9z.js.map
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.