1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/packs/media_gallery-C6KB040a.js","/packs/rolldown-runtime-C0FnF6B9.js","/packs/jsx-runtime-D3F0h15I.js","/packs/react-intl-CZJDGRhA.js","/packs/initial_state-CQfWVRE7.js","/packs/chevron_right-D4gnplrj.js","/packs/preload-helper-C17SfWRL.js","/packs/detect-it.esm-DVND6rlI.js","/packs/isSymbol-3r8dk6Lb.js","/packs/react-router-D0L-bsDO.js","/packs/defineProperty-C0YrXxyM.js","/packs/classnames-CfLRLWYq.js","/packs/poll-B7YBr8xg.js","/packs/esm-DrOrXu-Y.js","/packs/locales-DZmLvkbO.js","/packs/async-mutex-DHaCcEsI.js","/packs/time-BMcu91WH.js","/packs/ready-B3bZnx13.js","/packs/router-BsvNXDse.js","/packs/axios-BtwFZmtf.js","/packs/axios-BDoG55Be.js","/packs/api-CFnNWVnx.js","/packs/accounts_typed-Dtk3HjqX.js","/packs/typed_functions--Rew8955.js","/packs/utils-1cte5XkM.js","/packs/locale-BNeEG1rT.js","/packs/emoji-BrTouCaI.js","/packs/settings-Cq4pjZIN.js","/packs/modal-CxkWa4aF.js","/packs/react-router-dom-o_eSX_Kh.js","/packs/short_number-CHNMv1Rn.js","/packs/numbers-BEp7e788.js","/packs/skeleton-B7DUl0I_.js","/packs/video-CgmLOaCS.js","/packs/volume_down-fill-Dt718L0X.js","/packs/fullscreen-C9DTf02V.js","/packs/alt_text_badge-Bat4B5Re.js","/packs/useSelectableClick-DQKjJDHK.js","/packs/assets/alt_text_badge-Dp0EyRCt.css","/packs/audio-CR39EKtE.js","/packs/download-DFkPSa89.js","/packs/visualizer-2V1flNI1.js"])))=>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,s as a,t as o}from"./react-intl-CZJDGRhA.js";import{t as s}from"./preload-helper-C17SfWRL.js";import{A as c,u as l,y as u}from"./initial_state-CQfWVRE7.js";import{o as d}from"./locales-DZmLvkbO.js";import{h as f,l as p}from"./chevron_right-D4gnplrj.js";import{E as m,Fn as h,In as g,Jr as _,Ur as v,Xt as y,do as b,dt as x,et as S,ft as C,it as w,ot as T,po as E,rt as D,so as O,st as k,yi as A}from"./time-BMcu91WH.js";import{n as j,o as M,s as N}from"./typed_functions--Rew8955.js";import{t as P}from"./react-router-dom-o_eSX_Kh.js";import{n as ee}from"./modal-CxkWa4aF.js";import{Qt as te,S as ne,Ut as re,d as ie,f as ae,t as oe,v as se,x as ce}from"./collection_preview_card-CYvkLk34.js";import{t as le}from"./classnames-CfLRLWYq.js";import{H as ue,R as de,S as fe,U as F,V as I,g as pe,h as me,i as L,k as he,t as ge,w as _e}from"./poll-B7YBr8xg.js";import{n as R,t as ve}from"./display_name-uxgdH2-3.js";import{t as ye}from"./skeleton-B7DUl0I_.js";import{a as z,r as be,t as xe}from"./card-D9MZsTDg.js";import{a as B,i as Se,n as Ce,r as we,t as V}from"./Translate.es-DPDpDrNz.js";import{n as Te,t as Ee}from"./Heart.es-DWep4cX2.js";import{t as De}from"./DotsThree.es-Cl_BxiJJ.js";import{n as Oe}from"./Trash.es-DTABaRj0.js";import{a as ke,i as H,r as Ae,t as U}from"./redesign-BZzNV9Zk.js";import{c as je,n as Me,o as W,r as G,t as Ne,u as Pe}from"./menu-B0LYhy3O.js";import{t as Fe}from"./alternate_email-BuKNZDmn.js";import{t as Ie}from"./useOverflow-2Akmjf53.js";import{t as Le}from"./filter_warning-QkBVBTtW.js";import{n as Re}from"./useAccountId-CQnKDth1.js";import{t as ze}from"./useRelationship-BfvM_psN.js";import{a as Be,c as K,d as Ve,f as q,h as He,l as Ue,m as We,o as Ge,p as Ke,r as qe,s as Je,t as Ye}from"./utils-DSDEjIGO.js";var J=e(le()),Y=e(t()),X=n(),Z=a({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`},replyAll:{id:`status.replyAll`,defaultMessage:`Reply to thread`},favourite:{id:`status.favourite`,defaultMessage:`Favorite`},removeFavourite:{id:`status.remove_favourite`,defaultMessage:`Remove from favorites`},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),Xe=({statusId:e,withDismiss:t,withCounters:n})=>{let a=pe(e),o=N(e=>e.statuses.getIn([a?.quote?.quoted_status,`account`])??null),s=Re(),{contextType:c}=q(),l=a?.url??a?.uri,u=M(),d=(0,Y.useCallback)(()=>{u(S({statusId:e,intent:`reply`,contextType:c}))},[c,u,e]),f=(0,Y.useCallback)(()=>{u(S({statusId:e,intent:`favourite`,contextType:c}))},[c,u,e]),p=(0,Y.useCallback)(()=>{if(!l)return;let t=navigator;t.share?t.share({url:l}):u(S({statusId:e,intent:`copy`,contextType:c}))},[c,u,e,l]),m=(0,Y.useCallback)(()=>{u(S({statusId:e,intent:`bookmark`,contextType:c}))},[c,u,e]),h=i(),g=F(Ee,a?.favourited&&`fill`),_=F(Te,a?.bookmarked&&`fill`);if(!a)return null;let v=a.visibility===`public`||a.visibility===`unlisted`,y=h.formatMessage(a.favourited?Z.removeFavourite:Z.favourite),b=o===s&&c===`notifications`;return(0,X.jsxs)(`div`,{className:K.actions,children:[(0,X.jsx)(U,{size:`sm`,clipPadding:!0,variant:`ghost`,title:h.formatMessage(Z.replyAll),leadingIcon:we,onClick:d,children:n&&a.replies_count}),(0,X.jsx)(Ze,{statusId:e,children:n&&a.reblogs_count}),(0,X.jsx)(H,{size:`sm`,variant:`ghost`,active:a.favourited,title:y,leadingIcon:g,onClick:f,className:K.actionsButtonGap,children:n&&a.favourites_count}),v&&(0,X.jsx)(Ae,{size:`sm`,variant:`ghost`,icon:Ce,onClick:p,children:(0,X.jsx)(r,{id:`status.share`,defaultMessage:`Share`})}),(0,X.jsx)(ke,{size:`sm`,variant:`ghost`,active:a.bookmarked,icon:_,onClick:m,"aria-pressed":a.bookmarked,children:a.bookmarked?(0,X.jsx)(r,{id:`status.remove_bookmark`,defaultMessage:`Remove bookmark`}):(0,X.jsx)(r,{id:`status.bookmark`,defaultMessage:`Bookmark`})}),(0,X.jsx)(ae,{className:`status__action-bar__button-wrapper`,canShowHint:b,children:e=>(0,X.jsx)($e,{dismissQuoteHint:e,status:a,withDismiss:t})})]})},Ze=({statusId:e,children:t})=>{let n=N(t=>T(t,e)),{isBoosted:r}=n,a=be(n),o=z(n),s=i(),l=M(),u=(0,Y.useCallback)(()=>{l(S({statusId:e,intent:`reblog`}))},[l,e]),d=(0,Y.useCallback)(()=>{l(S({statusId:e,intent:`quote`}))},[l,e]);return c?(0,X.jsx)(H,{size:`sm`,variant:`ghost`,active:r,leadingIcon:B,onClick:u,disabled:a.disabled,children:t}):(0,X.jsxs)(Ne,{children:[(0,X.jsx)(G,{as:H,size:`sm`,variant:`ghost`,active:r,leadingIcon:B,children:t}),(0,X.jsxs)(Me,{placement:`bottom`,maxWidth:180,children:[(0,X.jsx)(W,{onClick:u,icon:B,disabled:a.disabled,description:a.meta&&s.formatMessage(a.meta),children:s.formatMessage(a.title)}),(0,X.jsx)(W,{onClick:d,icon:Qe,disabled:o.disabled,description:o.meta&&s.formatMessage(o.meta),children:s.formatMessage(o.title)})]})]})},Qe=ue(Oe,`fill`),$e=({status:e,dismissQuoteHint:t,withDismiss:n})=>{let a=N(t=>t.accounts.get(e.account)),{contextType:o}=q(),{permissions:s}=de(),l=ze(a?.id),u=i(),d=M(),f=N(t=>T(t,e.id)),p=N(t=>k(t,e.id)),m=(0,Y.useCallback)(t=>()=>{d(S({statusId:e.id,contextType:o,intent:t}))},[o,d,e.id]),h=(0,Y.useMemo)(()=>tt({status:e,account:a,conditions:f,interactions:p,onStatusInteraction:m,withDismiss:n,permissions:s,intl:u,relationship:l,dispatch:d}),[e,a,f,p,m,n,s,u,l,d]),g=(0,Y.useCallback)(()=>{c&&!e.quote_approval&&d(A(e.id,{forceFetch:!0,alsoFetchContext:!1})),t()},[t,d,e.id,e.quote_approval]);return(0,X.jsxs)(Ne,{onOpen:g,children:[(0,X.jsx)(G,{as:Ae,size:`sm`,variant:`ghost`,icon:De,children:(0,X.jsx)(r,{id:`status.more`,defaultMessage:`More`})}),(0,X.jsx)(Me,{placement:`top-end`,children:h.map((e,t)=>(0,X.jsx)(et,{item:e},t))})]})},et=({item:e})=>
2{if(!e)return(0,X.jsx)(je,{});let t={icon:e.icon,disabled:e.disabled,destructive:e.dangerous,children:e.text,description:e.description};return`to`in e?(0,X.jsx)(Pe,{...t,to:e.to,as:`link`}):`href`in e?(0,X.jsx)(Pe,{...t,href:e.href,as:`a`}):(0,X.jsx)(W,{...t,onClick:e.action})};function tt({status:e,account:t,conditions:n,interactions:r,onStatusInteraction:i,withDismiss:a,permissions:o,intl:s,relationship:l,dispatch:u}){let f=[],p=e.id,y=e.url??e.uri,{isPublic:x,isLocal:S,isLoggedIn:C,isMine:w}=n;if(f.push({text:s.formatMessage(Z.open),to:`/@${t?.acct}/${p}`}),x&&!S&&f.push({text:s.formatMessage(Z.openOriginalPage),href:y}),f.push({text:s.formatMessage(Z.copy),action:i(`copy`)}),x&&`share`in navigator&&f.push({text:s.formatMessage(Z.share),action:()=>{navigator.share({url:y})}}),r.embed&&f.push({text:s.formatMessage(Z.embed),action:i(`embed`)}),!C)return f;if(c){f.push(null);let e=z(n);f.push({text:s.formatMessage(e.title),description:e.meta?s.formatMessage(e.meta):void 0,disabled:e.disabled,action:i(`quote`)})}if(f.push(null),r.pin&&(f.push({text:s.formatMessage(e.pinned?Z.unpin:Z.pin),action:i(`pin`)}),f.push(null)),(r.mute||a)&&(f.push({text:s.formatMessage(e.muted?Z.unmuteConversation:Z.muteConversation),action:i(`mute`)}),r.editQuotePolicy&&!d()&&f.push({text:s.formatMessage(Z.quotePolicyChange),action:i(`editQuotePolicy`)}),f.push(null)),r.edit&&r.delete&&r.redraft&&(f.push({text:s.formatMessage(Z.edit),action:i(`edit`)}),f.push({text:s.formatMessage(Z.delete),action:i(`delete`),dangerous:!0}
2),f.push({text:s.formatMessage(Z.redraft),action:i(`redraft`),dangerous:!0})),w||!t)return r.filter&&(f.push(null),f.push({text:s.formatMessage(Z.filter),action:i(`filter`),dangerous:!0})),f;t.invalid_handle||(f.push({text:s.formatMessage(Z.mention,{name:t.username}),action:()=>{u(_(t))}}),f.push({text:s.formatMessage(Z.direct,{name:t.username}),action:()=>{u(v(t))}}),f.push(null)),r.revokeQuote&&f.push({text:s.formatMessage(Z.revokeQuote,{name:t.username}),action:i(`revokeQuote`),dangerous:!0});let T=!!l?.get(`muting`);f.push({text:s.formatMessage(T?Z.unmute:Z.mute,{name:t.username}),action:()=>{u(T?E(t.id):O(t.id))},dangerous:!T});let D=!!l?.blocking;f.push({text:s.formatMessage(D?Z.unblock:Z.block,{name:t.username}),action:()=>{u(D?b(t.id):m(t))},dangerous:!D}),r.filter&&(f.push(null),f.push({text:s.formatMessage(Z.filter),action:i(`filter`),dangerous:!0})),f.push(null),f.push({text:s.formatMessage(Z.report,{name:t.username}),action:i(`report`),dangerous:!0});let k=t.acct.split(`@`)[1];if(!S){f.push(null);let e=!!l?.domain_blocking;f.push({text:s.formatMessage(e?Z.unblockDomain:Z.blockDomain,{domain:k}),action:()=>{u(e?g(k):h(t))},dangerous:!e})}let A=(o&re)===re,j=(o&32)==32&&!S;return!A&&!j?f:(f.push(null),A&&(f.push({text:s.formatMessage(Z.admin_account,{name:t.username}),href:`/admin/accounts/${e.account}`}),f.push({text:s.formatMessage(Z.admin_status),href:`/admin/accounts/${e.account}/statuses/${e.id}`})),j&&f.push({text:s.formatMessage(Z.admin_domain,{domain:k}),href:`/admin/instances/${k}`}),f)}function Q(e,t){return e.type===t}var nt=({statusId:e})=>{let t=me(e);if(!t)return null;let n=t.media_attachments[0];if(n)return(0,X.jsx)(ot,{statusId:e,accountId:t.account.id,sensitive:t.sensitive,language:t.translation?.language??t.language,attachment:n,restAttachments:t.media_attachments.slice(1),defaultPosterUrl:t.account.avatar_static});if(t.quote)return(0,X.jsx)(qe,{...t.quote,parentId:e});let r=t.card,i=r?.url?t.tagged_collections.find(({url:e})=>ie(e,r.url)):t.tagged_collections[0];return r&&!i?(0,X.jsx)(st,{card:r,status:t}):i?(0,X.jsx)(oe,{collection:i,headingLevel:`h2`}):null},rt=(0,Y.lazy)(()=>s(()=>import(`./media_gallery-C6KB040a.js`).then(e=>e.n),__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]),import.meta.url)),it=(0,Y.lazy)(()=>s(()=>import(`./audio-CR39EKtE.js`).then(e=>e.n),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,27,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,40,34,33,35,41]),import.meta.url)),at=(0,Y.lazy)(()=>s(()=>import(`./video-CgmLOaCS.js`).then(e=>e.i),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,10,27,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,34,35]),import.meta.url)),ot=({statusId:e,accountId:t,sensitive:n,language:r,attachment:i,defaultPosterUrl:a})=>{let o=i.translation?.description??i.description,s=N(t=>t.statuses.getIn([e,`media_attachments`])),{contextType:c}=q(),u=N(t=>x(t,{statusId:e,contextType:c})),d=N(t=>w(t,e)),[f,{onToggle:p}]=He(()=>u.length===0&&(l!==`hide_all`&&!n||l===`show_all`)),m=M(),h=(0,Y.useCallback)(t=>{m(ee({modalType:`MEDIA`,modalProps:{statusId:e,media:s,index:t,lang:r}}))},[s,m,r,e]),g=(0,Y.useCallback)(t=>{m(ee({modalType:`VIDEO`,modalProps:{statusId:e,options:t,media:i,lang:r}}))},[i,m,r,e]),_=(0,Y.useCallback)((n,r)=>{t&&d.available&&m(y({statusId:e,accountId:t,playerType:n,props:r}))},[m,d.available,t,e]),v=`3 / 2`;if(Q(i,`image`)||Q(i,`video`)||Q(i,`gifv`)?v=`${i.meta.original.width} / ${i.meta.original.height}`:Q(i,`audio`)&&(v=`16 / 9`),d.inUse)return(0,X.jsx)(ce,{aspectRatio:v});if(Q(i,`audio`)){let{colors:e,original:t}=i.meta;return(0,X.jsx)(Y.Suspense,{fallback:(0,X.jsx)(`div`,{className:`audio-player`,style:{aspectRatio:v}}),children:(0,X.jsx)(it,{src:i.url,alt:o,lang:r,poster:i.preview_url||a,backgroundColor:e?.background,foregroundColor:e?.foreground,accentColor:e?.accent,duration:t.duration,deployPictureInPicture:_,sensitive:n,blurhash:i.blurhash,visible:f,onToggleVisibility:p,matchedFilters:u})})}if(Q(i,`video`)){let{original:e}=i.meta;return(0,X.jsx)(Y.Suspense,{fallback:(0,X.jsx)(`div`,{className:`video-player`,style:{aspectRatio:v}}),children:(0,X.jsx)(at,{src:i.url,alt:o,lang:r,preview:i.preview_url,frameRate:e.frame_rate,aspectRatio:v,blurhash:i.blurhash,sensitive:n,onOpenVideo:g,deployPictureInPicture:_,visible:f,onToggleVisibility:p,matchedFilters:u})})}return(0,X.jsx)(Y.Suspense,{fallback:(0,X.jsx)(`div`,{className:`media-player`,style:{aspectRatio:v}}),children:(0,X.jsx)(rt,{media:s,lang:r,sensitive:n,height:110,onOpenMedia:h,visible:f,onToggleVisibility:p,matchedFilters:u})})},st=({card:e,status:t})=>{if(e.type===`video`||e.authors.length>0)return(0,X.jsx)(`div`,{children:(0,X.jsx)(xe,{card:e,sensitive:t.sensitive},`${t.id}-${t.edited_at}`)});let n=new URL(e.provider_url||e.url),r={as:`a`,href:e.url,target:`_blank`,rel:`noopener`};return(0,X.jsxs)(Be,{children:[(0,X.jsx)(Je,{afterContent:e.published_at&&(0,X.jsx)(L,{timestamp:e.published_at}),children:(0,X.jsx)(`a`,{href:`${n.protocol}//${n.host}`,target:`_blank`,rel:`noopener`,children:e.author_name||e.provider_name||n.host})}),(0,X.jsx)(Ge,{...r,children:e.title}),e.description&&(0,X.jsx)(Ge,{...r,isDescription:!0,children:e.description})]})},ct=706,lt=({status:e,statusContent:t,onTranslate:n,onReadMore:i,collapsible:a,children:o,className:s,...c})=>{let[l,u]=(0,Y.useState)(!1),d=(0,Y.useCallback)(t=>{t&&!l&&u((t.clientHeight>ct||t.scrollWidth>t.clientWidth)&&!e.spoiler_text)},[l,e.spoiler_text]),f=Ve(e),p=e.translation?.language??e.language,m=!!i&&a&&l;return(0,X.jsxs)(`div`,{...c,className:(0,J.default)(s,K.content,m&&K.collapsed),ref:d,children:[(0,X.jsx)(he,{className:K.contentText,ref:d,lang:p,htmlString:t??e.translation?.contentHtml??e.contentHtml,extraEmojis:e.emojis,...f}),o,m&&(0,X.jsx)(U,{size:`sm`,clipPadding:!0,variant:`ghost`,onClick:i,trailingIcon:Se,className:K.contentReadMore,children:(0,X.jsx)(r,{id:`status.read_more`,defaultMessage:`Read more`})})]})},ut=({hashtags:e,accountId:t})=>{let[n,{onTrue:i}]=He(),{hiddenCount:a,wrapperRef:o,listRef:s,hiddenIndex:c,maxWidth:l}=Ie();return e.length===0?null:(0,X.jsxs)(`div`,{className:K.hashtagsWrapper,ref:o,children:[(0,X.jsx)(`div`,{className:(0,J.default)(K.hashtags,n&&K.hashtagsShowAll),ref:s,style:{maxWidth:l},children:e.map((e,n)=>(0,X.jsxs)(U,{size:`xs`,as:`link`,to:`/tags/${e}`,"data-menu-hashtag":t,inert:c>0&&n>=c,children:[`#`,e]},e))}),a>0&&!n&&(0,X.jsx)(U,{size:`xs`,onClick:i,children:(0,X.jsx)(r,{id:`featured_tags.more_items`,defaultMessage:`+{count}`,values:{count:a}})})]})},dt=({status:e,...t})=>{let{created_at:n,application:i}=e,a=(0,Y.useMemo)(()=>{try{return new Date(n)}catch{return null}},[n]),s=(0,Y.useMemo)(()=>ft(e.visibility),[e.visibility]);if(!a)return null;
2let c=(0,X.jsx)(P,{to:Ye(e),children:(0,X.jsx)(o,{value:a,year:`numeric`,month:`short`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`})}),l=i?.name;return i?.website&&(l=(0,X.jsx)(`a`,{href:i.website,target:`_blank`,rel:`noopener noreferrer`,children:i.name})),(0,X.jsx)(`span`,{...t,children:l?(0,X.jsx)(r,{id:`status.meta`,defaultMessage:`{createdAt} on {source} {sep} {visibility}`,values:{createdAt:c,source:l,visibility:s,sep:(0,X.jsx)(X.Fragment,{children:`â¢`})}}):(0,X.jsx)(r,{id:`status.meta.no_application`,defaultMessage:`{createdAt} {sep} {visibility}`,values:{createdAt:c,visibility:s,sep:(0,X.jsx)(X.Fragment,{children:`â¢`})}})})};function ft(e){switch(e){case`private`:return(0,X.jsx)(r,{id:`privacy.private.short`,defaultMessage:`Followers`});case`direct`:return(0,X.jsx)(r,{id:`privacy.message.short`,defaultMessage:`Message`});default:return(0,X.jsx)(r,{id:`privacy.public.short`,defaultMessage:`Public`})}}var pt=({accountId:e,inReplyToAccountId:t})=>{let n=N(e=>e.accounts.get(t)),i;return i=e===t?(0,X.jsx)(r,{id:`status.continued_thread`,defaultMessage:`Continued thread`}):n?(0,X.jsx)(r,{id:`status.replied_to`,defaultMessage:`Replied to {name}`,values:{name:(0,X.jsx)(R,{displayProps:{account:n,variant:`simple`}})}}):(0,X.jsx)(r,{id:`status.replied_in_thread`,defaultMessage:`Replied in thread`}),(0,X.jsxs)(`div`,{className:`status__prepend`,children:[(0,X.jsx)(`div`,{className:`status__prepend__icon`,children:(0,X.jsx)(I,{id:`reply`,icon:f})}),(0,X.jsx)(`span`,{children:i})]})},mt=({status:e,showThread:t,isReblog:n})=>n?(0,X.jsxs)(`div`,{className:`status__prepend`,children:[(0,X.jsx)(`div`,{className:`status__prepend__icon`,children:(0,X.jsx)(I,{id:`retweet`,icon:p})}),(0,X.jsx)(r,{id:`status.reblogged_by`,defaultMessage:`{name} boosted`,values:{name:(0,X.jsx)(R,{displayProps:{account:e.account,variant:`simple`},className:`status__display-name muted`,reference:`status`})},tagName:`span`})]}):e.visibility===`direct`?(0,X.jsxs)(`div`,{className:`status__prepend`,children:[(0,X.jsx)(`div`,{className:`status__prepend__icon`,children:(0,X.jsx)(I,{id:`at`,icon:Fe})}),(0,X.jsx)(r,{id:`status.direct_indicator`,defaultMessage:`Private mention`,tagName:`span`})]}):t&&e.in_reply_to_account_id?(0,X.jsx)(pt,{accountId:e.account.id,inReplyToAccountId:e.in_reply_to_account_id}):null,$={header:`_status_redesign__header`,headerAvatar:`_status_redesign__headerAvatar`,headerName:`_status_redesign__headerName`,headerNameLink:`_status_redesign__headerNameLink`,headerHandle:`_status_redesign__headerHandle`},ht=({status:e,children:t,className:n})=>{let i=e.account,a=fe(i),o=(0,Y.useId)(),s={to:{pathname:`/@${i.acct}`,state:{reference:`status`}},title:`@${i.acct}`,"data-id":i.id,"data-hover-card-account":i.id,"data-hover-card-reference":`status`},c=(0,X.jsx)(P,{...s,className:$.headerNameLink,"aria-describedby":o,children:(0,X.jsx)(ve,{account:i,variant:`noDomain`})});return e.visibility===`private`&&(c=(0,X.jsx)(r,{id:`status.header.to_followers`,defaultMessage:`{displayName} to Followers`,tagName:`span`,values:{displayName:c}})),(0,X.jsxs)(`header`,{className:(0,J.default)(n,$.header),children:[(0,X.jsx)(P,{...s,role:`presentation`,tabIndex:-1,className:$.headerAvatar,children:(0,X.jsx)(_e,{account:i,size:null})}),(0,X.jsxs)(`div`,{children:[(0,X.jsxs)(`p`,{className:$.headerName,children:[c,`â¢`,(0,X.jsx)(P,{to:{pathname:Ye(e),state:{reference:`status`}},children:(0,X.jsx)(L,{timestamp:e.created_at})})]}),(0,X.jsx)(`p`,{className:$.headerHandle,children:(0,X.jsx)(P,{...s,role:`presentation`,tabIndex:-1,id:o,children:a??(0,X.jsx)(ye,{width:`7ch`})})})]}),t]})},gt=({status:e,onTranslate:t})=>{let{signedIn:n}=de(),a=N(t=>t.server.translationLanguages.item?.[e.language]),o=i(),{translation:s}=e;if(!n||![`public`,`unlisted`].includes(e.visibility)||e.search_index?.trim().length===0||!a?.includes(o.locale.replace(/[_-].*/,``)))return null;if(!s||s.isLoading)return(0,X.jsx)(`div`,{className:K.translate,children:(0,X.jsx)(U,{size:`sm`,clipPadding:!0,color:`accent`,variant:`ghost`,onClick:t,leadingIcon:V,loading:s?.isLoading,children:(0,X.jsx)(r,{id:`status.translate`,defaultMessage:`Translate`})})});let c=u?.find(e=>e[0]===s.detected_source_language),l=c?c[1]:s.detected_source_language,d=s.provider;return(0,X.jsxs)(`div`,{className:K.translate,children:[(0,X.jsx)(U,{size:`sm`,clipPadding:!0,color:`accent`,variant:`ghost`,onClick:t,leadingIcon:V,children:(0,X.jsx)(r,{id:`status.show_original`,defaultMessage:`Show original`})}),(0,X.jsx)(`div`,{className:K.translateInfo,children:(0,X.jsx)(r,{id:`status.translated_from_with`,defaultMessage:`Translated from {lang} using {provider}`,values:{lang:l,provider:d}})})]})},_t=j([(e,t)=>D(e,t??void 0)],e=>{if(!e)return{};if(!e.reblog)return{status:e};let{reblog:t,...n}=e;return{status:t,parent:n}}),vt=({id:e,muted:t,skipPrepend:n,unfocusable:r,contextType:i,featured:a,isQuotedPost:o,hidden:s,showActions:c=!0,children:l,withCounters:u=!0,withDismiss:d,onOpen:f,showThread:p,headerContents:m,variant:h=bt(i)})=>{let{status:g,parent:_}=N(t=>_t(t,e)),v=N(t=>C(t,{contextType:i,statusId:_?.id??e})),y=g?.id,b=We({statusId:y,reblogAcct:_?.account.acct,isQuote:o}),{statusContent:x,hashtagsInBar:S=[]}=(0,Y.useMemo)(()=>g?se(g):{},[g]),{showDespiteFilter:w,onExpandedToggle:T,onFilterToggle:E,onTranslate:D,...O}=Ke({status:g,contextType:i,onOpen:f});if(!g)return null;let k=_??g,A=(v.length===0||w)&&(!g.hidden||!g.spoiler_text),j={handlers:{...O,onTranslate:D},muted:t,unfocusable:r,"data-id":e};if(s)return(0,X.jsxs)(yt,{...j,children:[(0,X.jsx)(`span`,{children:g.account.display_name||g.account.username}),g.spoiler_text&&(0,X.jsx)(`span`,{children:g.spoiler_text}),A&&(0,X.jsx)(`span`,{children:g.content})]});let M=A&&S.length>0||h===`page`||c&&!o;return(0,X.jsx)(Ue.Provider,{value:{id:e,contextType:i},children:(0,X.jsxs)(yt,{...j,className:(0,J.default)(K.root,h===`thread`&&K.variantThread,h===`page`&&K.variantPage,o&&K.isQuote),"data-featured":a?`true`:null,"aria-label":b,"data-nosnippet"
2:g.account.noindex||void 0,children:[!n&&(0,X.jsx)(mt,{status:k,isReblog:!!_,showThread:p}),(0,X.jsx)(ht,{status:g,className:K.header,children:m}),v.length>0&&(0,X.jsx)(Le,{title:v.map(e=>e.title).join(`, `),expanded:w,onClick:E}),(v.length===0||w)&&(0,X.jsx)(ne,{statusId:g.id,expanded:A,onClick:T}),(0,X.jsx)(gt,{status:g,onTranslate:D}),A&&(0,X.jsxs)(lt,{status:g,statusContent:x,onReadMore:O.onOpen,onTranslate:D,collapsible:!0,children:[!!g.poll&&(0,X.jsx)(ge,{pollId:g.poll,statusUrl:g.uri,accountId:g.account.id,lang:g.translation?.language??g.language}),(0,X.jsx)(nt,{statusId:g.id}),l]}),M&&(0,X.jsxs)(`footer`,{className:K.footer,children:[A&&S.length>0&&(0,X.jsx)(ut,{hashtags:S,accountId:g.account.id}),h===`page`&&(0,X.jsx)(dt,{status:g,className:K.meta}),c&&!o&&(0,X.jsx)(Xe,{statusId:g.id,withDismiss:d,withCounters:u})]})]})})},yt=({muted:e,unfocusable:t,children:n,handlers:r,...i})=>e?(0,X.jsx)(`article`,{...i,children:n}):(0,X.jsx)(te,{...i,as:`article`,handlers:{reply:r.onReply,favourite:r.onFavourite,boost:r.onBoost,quote:r.onQuote,mention:r.onMention,open:r.onOpen,openProfile:r.onOpenProfile,toggleHidden:r.onToggleHidden,openMedia:r.onOpenMedia,onTranslate:r.onTranslate},focusable:!t,children:n});function bt(e){switch(e){case`composer`:case`detailed`:case`notifications`:case void 0:return`page`;case`thread`:return`thread`;default:return`feed`}}export{vt as StatusRedesign}; 3//# sourceMappingURL=status-BQscqY1N.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.