import{d as e}from"./objectSpread2-DtFdQpqy.js";import{a as t,n}from"./preload-helper-EQ20WQt-.js";import{o as r,w as i}from"./prop-types-DdDwMzX7.js";import{Q as a,lt as o}from"./poll-UAe1CGVf.js";import{Do as s,Eo as c,Ka as l,qo as u}from"./time-C7shVqCd.js";import{t as d}from"./classnames-CFUb2mE1.js";import{un as f}from"./status_quoted-CRoil4HW.js";import{a as p}from"./navigation_panel-DzT5nPmp.js";import{c as m,n as h,s as g}from"./columns_area-DbT75EJ-.js";function _(e){return{blockedBy:s(t=>e?!!t.relationships.getIn([e,`blocked_by`],!1):!1),suspended:s(t=>e?!!t.accounts.getIn([e,`suspended`],!1):!1),hidden:s(t=>e?!!a(t,e):!1)}}var v=e(t()),y=n();function b(e){let t=u();return(0,v.useCallback)(()=>{var n;e?e():(n=t.location.state)!=null&&n.fromMastodon?t.goBack():t.push(`/`)},[t,e])}var x=({onClick:e})=>(0,y.jsx)(m,{children:(0,y.jsxs)(`button`,{onClick:b(e),id:p(h()),className:`column-back-button`,type:`button`,children:[(0,y.jsx)(o,{id:`chevron-left`,icon:g,className:`column-back-button__icon`}),(0,y.jsx)(r,{id:`column_back_button.label`,defaultMessage:`Back`})]})}),S=e(d()),C=({className:e,message:t,label:n,url:r})=>(0,y.jsxs)(`div`,{className:(0,S.default)(`timeline-hint`,e),children:[(0,y.jsx)(`p`,{children:t}),(0,y.jsx)(`a`,{href:r,target:`_blank`,rel:`noopener noreferrer`,children:n})]}),w=({accountId:e})=>{let t=c(),n=(0,v.useCallback)(()=>{t(l({id:e}))},[t,e]);return(0,y.jsxs)(`div`,{className:`limited-account-hint`,children:[(0,y.jsx)(`p`,{children:(0,y.jsx)(r,{id:`limited_account_hint.title`,defaultMessage:`This profile has been hidden by the moderators of {domain}.`,values:{domain:i}})}),(0,y.jsx)(f,{onClick:n,children:(0,y.jsx)(r,{id:`limited_account_hint.action`,defaultMessage:`Show profile anyway`})})]})};export{_ as i,C as n,x as r,w as t};
//# sourceMappingURL=limited_account_hint-BKmH4M8N.js.map