PageSourceSearch

https://www.creatorspotlight.com/assets/useReportToBeehiiv-DhyD7S_U.js

js creatorspotlight.com collected 2026-10-02 03:43:29 UTC 6,364 bytes, 7 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="96cf294b-fd9d-5cca-8df5-9d0805339fc6")}catch(e){}}();
3import{s as e,t}from"./jsx-runtime-D4ePz0Hl.js";import{t as n}from"./react-BXH-GOAS.js";import{f as r}from"./components-CDo3yjgw.js";import{t as i}from"./Trans-tHiUt0Wm.js";import{t as a}from"./useTranslation-xRzBcOIb.js";import{n as o}from"./useCommunityMembership-DRaMPU7W.js";import{t as s}from"./CheckCircleIcon-DJdh_yis.js";import{t as c}from"./NoSymbolIcon-ChWwTLM8.js";import{n as l,r as u}from"./CommunityMemberActionsProvider-CxjYyBf-.js";import{t as d}from"./Tooltip-IxbCCOij.js";var f=e(n());function p({title:e,titleId:t,...n},r){return f.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?f.createElement(`title`,{id:t},e):null,f.createElement(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 3v1.5M3 21v-6m0 0 2.77-.693a9 9 0 0 1 6.208.682l.108.054a9 9 0 0 0 6.086.71l3.114-.732a48.524 48.524 0 0 1-.005-10.499l-3.11.732a9 9 0 0 1-6.085-.711l-.108-.054a9 9 0 0 0-6.208-.682L3 4.5M3 15V4.5`}))}var m=f.forwardRef(p);function h({title:e,titleId:t,...n},r){return f.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?f.createElement(`title`,{id:t},e):null,f.createElement(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z`}))}var g=f.forwardRef(h);function _({title:e,titleId:t,...n},r){return f.createElement(`svg`,Object.assign({xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,"aria-hidden":`true`,"data-slot":`icon`,ref:r,"aria-labelledby":t},n),e?f.createElement(`title`,{id:t},e):null,f.createElement(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0`}))}var v=f.forwardRef(_),y=e(t(),1),b=({id:e,label:t,placeholder:n,value:r,onChange:o,reportToBeehiiv:s,onReportToBeehiivChange:c,disabled:l=!1,showActions:f=!1,blockUser:p=!1,onBlockUserChange:m})=>{let{t:h}=a();return(0,y.jsxs)(`div`,{className:`mt-4 flex flex-col gap-3`,children:[(0,y.jsx)(u,{id:e,label:t,placeholder:n,value:r,onChange:e=>o(e.target.value),maxLength:2e3,disabled:l,required:!0}),f&&m?(0,y.jsxs)(`label`,{className:`flex items-start gap-2 text-sm text-black`,children:[(0,y.jsx)(`input`,{type:`checkbox`,checked:p,onChange:e=>m?.(e.target.checked),disabled:l,className:`mt-0.5 size-4 rounded border-black/20 text-black focus:ring-black/20`}),(0,y.jsx)(`span`,{children:h(`community.report.block_and_hide_option`,`Block user and hide content`)})]}):null,(0,y.jsxs)(`label`,{className:`flex items-start gap-2 text-sm text-black`,children:[(0,y.jsx)(`input`,{type:`checkbox`,checked:s,onChange:e=>c(e.target.checked),disabled:l,className:`mt-0.5 size-4 rounded border-black/20 text-black focus:ring-black/20`}),(0,y.jsx)(`span`,{children:h(`community.report.reported_before_option`,`I have reported this multiple times before`)})]}),s?(0,y.jsxs)(`div`,{className:`rounded-xl bg-black/5 px-3 py-3 text-sm text-black/70`,children:[h(`community.report.escalate_prompt`,`Reported before and it wasn't addressed? You can report this content to beehiiv.`),` `,(0,y.jsx)(d,{interactive:!0,className:`inline-flex align-text-bottom`,content:(0,y.jsx)(i,{i18nKey:`community.report.beehiiv_tooltip`,components:{touLink:(0,y.jsx)(`a`,{href:`https://www.beehiiv.com/tou`,target:`_blank`,rel:`noopener noreferrer`,className:`underline underline-offset-1 hover:opacity-80`})}}),children:(0,y.jsx)(`button`,{type:`button`,"aria-label":h(`community.report.beehiiv_tooltip_label`,`What is beehiiv?`),className:`flex text-black/50 hover:text-black/70`,children:(0,y.jsx)(g,{className:`size-4`})})})]}):null]})},x=()=>!!r(`routes/community`)?.community?.member_blocking_enabled,S=({memberId:e,memberName:t,canBanAuthor:n,canUnbanAuthor:i,canBlockAuthor:o=!1,canUnblockAuthor:u=!1})=>{let{t:d}=a(),f=l(),p=!!r(`routes/community`)?.community?.member_blocking_enabled,m={id:e,name:t},h=[];return n&&h.push({key:`ban_member`,label:d(`community.action_menu.ban_member`),icon:c,onClick:()=>f.openBanDialog(m),variant:`danger`}),i&&h.push({key:`unban_member`,label:d(`community.action_menu.unban_member`),icon:s,onClick:()=>f.openUnbanDialog(m)}),o&&p&&h.push({key:`block_member`,label:d(`community.action_menu.block_member`),icon:c,onClick:()=>f.openBlockDialog(m),variant:`danger`}),u&&h.push({key:`unblock_member`,label:d(`community.action_menu.unblock_member`),icon:s,onClick:()=>f.openUnblockDialog(m)}),{menuItems:h}},C=`https://www.beehiiv.com/api/report_abuse_prefill`,w=()=>{let{publication:e}=r(`root`),{currentMember:t}=o();return(0,f.useCallback)((n,r)=>{let i={publication:e.url,code:`other`},a=t?.subscription;a?.email&&(i.reporter_email=a.email),a?.first_name&&(i.reporter_first_name=a.first_name),a?.last_name&&(i.reporter_last_name=a.last_name);let o=r?`${window.location.origin}${r}`:void 0,s=[o&&`Reported content: ${o}
3`,n?.trim()].filter(Boolean).join(`
4
5`);s&&(i.comments=s);let c=document.createElement(`form`);c.method=`POST`,c.action=C,c.target=`_blank`;for(let[e,t]of Object.entries(i)){let n=document.createElement(`input`);n.type=`hidden`,n.name=e,n.value=t,c.appendChild(n)}document.body.appendChild(c),c.submit(),c.remove()},[e.url,t])};export{v as a,b as i,S as n,g as o,x as r,m as s,w as t};
6//# sourceMappingURL=useReportToBeehiiv-DhyD7S_U.js.map
7//# debugId=96cf294b-fd9d-5cca-8df5-9d0805339fc6

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.