PageSourceSearch

https://www.ganggreennation.com/_next/static/chunks/11e34dsnpeodx.js

js ganggreennation.com collected 2026-09-24 08:57:28 UTC 57,802 bytes, 295 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="dc5b11ce-4e43-9caf-f746-8a8cbd931387")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,930253,732962,537582,e=>{"use strict";var t=e.i(478902),n=e.i(197649),i=e.i(695287),o=e.i(389959),s=e.i(34321);let a=({className:e})=>(0,t.jsxs)("svg",{className:e,viewBox:"-0.25 -0.25 24.5 24.5",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M0.75 12L23.25 12",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M12 0.75L12 23.25",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});e.s(["default",0,a],732962);var r=e.i(447394);let l=({className:e})=>(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M0.75 12.038L23.25 12.038",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})});e.s(["default",0,l],537582);var c=e.i(396902),u=e.i(623690),d=e.i(465149),m=e.i(509727),p=e.i(645904);let h=async(e,t,n,i,o,s)=>{let a=`${e}`;if(!s)return;let r=new URL("/api",o),l=await (0,p.makeRequest)(r.toString(),m.updateAttachmentDimensionsMutation,{communityID:a,id:t,heightToWidthRatio:n,attachmentID:i},s);if(l.errors||!l.data)return};var C=e.i(593296),y=e.i(722010);e.i(807738);var f=e.i(738886);e.i(555831);var g=e.i(249922);e.i(819366);var x=e.i(384076),j="_109kg8d4";let v=[y.AttachmentType.Twitter,y.AttachmentType.Youtube,y.AttachmentType.Instagram,y.AttachmentType.TikTok,y.AttachmentType.ImageLink,y.AttachmentType.GIF,y.AttachmentType.Upload,y.AttachmentType.Bluesky],I=(0,i.observer)(({children:e,contentID:i,attachmentType:s})=>{let{viewer:c}=(0,u.useCyclone)(),{contentStore:m}=(0,C.useStore)(),{context:{location:p}}
2=(0,d.useContentLocationContext)(),h=p===d.ContentLocation.ArticleBody,g=c?.settings?.unfurlMediaEmbeds===void 0?!h:c.settings.unfurlMediaEmbeds,x=(e=>{switch(e){case y.AttachmentType.Twitter:return"X post";case y.AttachmentType.Youtube:return"Video";case y.AttachmentType.Instagram:return"Instagram post";case y.AttachmentType.TikTok:return"TikTok post";case y.AttachmentType.ImageLink:return"Image";case y.AttachmentType.GIF:return"GIF";case y.AttachmentType.Upload:return"Image";case y.AttachmentType.Bluesky:return"Bluesky post";case"gallery":return"Images"}return"Embed"})(s),v=m.unfurlMediaEmbeds.includes(i??"")?!g:g,I=(0,o.useCallback)(()=>{i&&m.updateUnfurlMediaEmbeds(i)},[m,i]),k=v?`Hide ${x}`:`Show ${x}`;return(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)(r.default,{displayType:"outlined",uppercase:!0,size:"small",text:k,className:(0,n.default)("_109kg8d3",v&&"_109kg8d2"),iconLeft:v?(0,t.jsx)(l,{className:j}):(0,t.jsx)(a,{className:j}),onClick:I}),v&&e,!h&&!g&&(0,t.jsx)(f.default,{className:(0,n.default)("_109kg8d0",v&&"_109kg8d1"),text:k,onClick:I,displayType:"secondary"})]})}),k=({children:e,isUnfurlMediaEmbedType:n,contentID:i,attachmentType:o,allowUnfurlMedia:s=!0})=>n&&s?(0,t.jsx)(I,{contentID:i,attachmentType:o,children:e}):e;e.s(["default",0,({contentID:e,attachments:n,type:i,allowUnfurlMedia:a=!0})=>{let{viewerLoading:r,viewer:l}=(0,u.useCyclone)(),{cycloneConfig:{serverURL:d}}=(0,c.useConfigContext)(),m=(0,o.useCallback)(e=>{h(e.communityID,e.contentID,e.heightToWidthRatio,e.attachmentID,d,l?.token)},[d,l?.token]),p=!!n&&n.length>0,C=!!p&&n[0]?.type===y.AttachmentType.Upload&&n.length>1;return p&&r?(0,t.jsx)(s.default,{align:"left",height:"small"}):(0,t.jsxs)(t.Fragment,{children:[" ",!!p&&(0,t.jsx)(t.Fragment,{children:C?(0,t.jsx)(k,{isUnfurlMediaEmbedType:!0,contentID:e,attachmentType:"gallery",allowUnfurlMedia:a,children:(0,t.jsx)(x.default,{includeLightbox:!0,children:n.map(n=>(0,t.jsx)(o.Fragment,{children:(0,t.jsx)(g.default,{attachment:n,contentID:e,onPersistDimensions:m,singleAttachment:!1})},n.url))})}):(0,t.jsx)(t.Fragment,{children:n.map(n=>(0,t.jsx)(o.Fragment,{children:(0,t.jsx)(k,{isUnfurlMediaEmbedType:v.includes(n.type),contentID:e,attachmentType:n.type,allowUnfurlMedia:a,children:(0,t.jsx)(g.default,{attachment:n,includeLightbox:!0,displayAtOriginalRatio:!0,type:i,contentID:e,onPersistDimensions:m})})},n.url))})})]})}],930253)},867411,347258,542398,e=>{"use strict";var t=e.i(478902),n=e.i(197649),i=e.i(695287),o=e.i(862460),s=e.i(389959),a=e.i(959547),r=e.i(210982),l=e.i(597406),c=e.i(798240),u=e.i(396902),d=e.i(623690),m=e.i(649784),p=e.i(579490),h=e.i(645904),C=e.i(593296);e.i(872025);var y=e.i(19562);e.i(807738);var f=e.i(738886);e.i(586831);var g=e.i(89693);e.i(634344);var x=e.i(274280),j=e.i(964833),v=e.i(553662),I=e.i(533599),k="zvbc0a0";let D=`mutation CreateFanPost($communityID: String!, $body: String, $title: String!, $attachments: [AttachmentInput!], $inlinePoll: CreatePollInput) {
3  createFanPost(input: {communityID: $communityID,
4    body: $body,
5    title: $title,
6    attachments: $attachments,
7    inlinePoll: $inlinePoll
8  }) {
9      id
10      createdAt
11      ... on FanPost {
12        ${p.FanPostFragment}
13      }
14    }
15}`,w=(0,i.observer)(function({onSubmit:e}){let i=(0,r.useAnalytics)(),{userLoading:p,user:w}=(0,l.useAuth)(),{communityStore:b}=(0,C.useStore)(),{viewerBans:T,viewerSuspensions:$,viewerHasUnacknowledgedWarning:R,viewer:P}=(0,d.useCyclone)(),{cycloneCommunityId:S,cycloneCommunityPrefix:N}=(0,c.useCurrentCycloneCommunity)(),{cycloneConfig:{serverURL:F}}=(0,u.useConfigContext)(),M=(0,o.useSearchParams)().get("startPosting"),[A,_]=(0,s.useState)(!1),[O,E]=(0,s.useState)(!1),[L,U]=(0,s.useState)(!1),B=!!P?.role&&m.COMMUNITY_STAFF_ROLES.includes(P.role),[q,Q]=(0,s.useState)(!0),Z=(0,s.useRef)(null),W=(0,s.useCallback)(()=>{if(!P||!P.createdAt||!b.community?.settings?.userIsTooNewThresholdMs||0===b.community.settings.userIsTooNewThresholdMs)return!1;let e=new Date(P.createdAt).getTime();U(Date.now()-e<b.community.settings.userIsTooNewThresholdMs)},[P,b.community]);(0,s.useEffect)(()=>{let e=Z.current;if(!e)return;let t=new window.IntersectionObserver(e=>
15{e.forEach(e=>{Q(e.isIntersecting)})},{threshold:.01});return t.observe(e),()=>{t.disconnect()}},[]),(0,s.useEffect)(()=>{if(!M||p)return;P?_(!0):E(!0);let e=new URL(window.location.href);e.searchParams.delete("startPosting"),window.history.replaceState({},"",e.toString())},[M,P,p]);let V=(0,s.useCallback)(()=>{P&&E(!1)},[P,E]);(0,s.useEffect)(()=>{P&&(V(),W())},[V,P,W]);let H=(0,s.useCallback)(()=>{P?_(!0):E(!0)},[P,_,E]),Y=(0,s.useCallback)(async(t,n,o,s)=>{if(p||!w)return{response:null,errors:[Error("unable to post without logged in user")]};let a=await (0,h.makeRequest)(`${F}/api`,D,{communityID:S,body:n??"",title:t.title,attachments:o,inlinePoll:s},w.cycloneToken);return!a.errors&&e&&(e(a.data?.createFanPost),_(!1),i?.emit({event:"feedpost_action",feedpost_action:{action:"publish"}}),s&&i?.emit({event:"feedpost_action",feedpost_action:{action:"publish_poll"}}),a.data?.createFanPost?.id&&(window.location.href=(0,v.getCommunityPostPath)(a.data.createFanPost.shortID,N))),{response:a.data?.createFanPost??null,errors:a.errors??null}},[i,p,w,F,S,N,e]),K=T.length>0||$.length>0||R;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:Z,children:(0,t.jsx)(f.default,{className:k,text:"Create Post",onClick:H,iconRight:(0,t.jsx)(j.default,{height:12,width:12}),disabled:K})}),!q&&!K&&(0,t.jsx)(f.default,{className:(0,n.default)(k,"zvbc0a1"),text:"Create",onClick:H,iconRight:(0,t.jsx)(j.default,{height:12,width:12})}),(0,t.jsx)(x.default,{visible:A,onClose:()=>_(!1),children:L?(0,t.jsx)(a.default,{onClick:()=>_(!1),buttonText:"Got it"}):(0,t.jsx)(I.default,{includesTitle:!0,titleRequired:!0,onFormSubmit:Y,showPollButton:B,showViewerBar:!0})}),(0,t.jsx)(x.default,{visible:O,onClose:()=>E(!1),size:"medium",children:(0,t.jsx)(g.default,{logo:(0,t.jsx)(y.default,{}),source:"create"})})]})});e.s(["FanPostComposer",0,w],867411),e.i(977082);var b=e.i(239981);e.s(["default",0,({onClick:e,text:n})=>{let{viewer:i}=(0,d.useCyclone)();return(0,t.jsxs)("div",{className:"vfatlp0",onClick:e,onKeyDown:e,role:"button",tabIndex:0,children:[(0,t.jsx)(b.default,{username:i?.username,avatarUrl:i?.avatar}),(0,t.jsx)("p",{className:"vfatlp1",children:n})]})}],347258);var T=e.i(722010),$=e.i(533329),R="_6bcvj20",P="_6bcvj21";let S=(e,t)=>e.expiresAt?t.expiresAt?new Date(t.expiresAt).getTime()-new Date(e.expiresAt).getTime():-1:1,N=({isAllCommunities:e,communityName:i,expiresAt:o,restrictionType:s,className:a})=>(0,t.jsxs)("div",{className:(0,n.default)(a,R),children:[s===T.UserStatus.Suspended&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:P,children:"Your account has been temporarily suspended from commenting"}),(0,t.jsxs)("span",{children:["In accordance with our community guidelines, your account has been temporarily suspended",!e&&` from ${i}`,". While suspended, you will not be able to participate in the community, including creating posts, rec'ing, replying to, voting on, or reporting existing posts."]})]}),s===T.UserStatus.Banned&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:P,children:"Your account has been banned from commenting"}),(0,t.jsxs)("span",{children:["Someone with access to your account has violated our community guidelines. As a result, your account has been banned",!e&&` from ${i}`,". You will no longer be able to participate in the community, including creating posts, rec'ing, replying to, voting on, or reporting existing posts. If you think this has been done in error, please contact our community team."]})]}),!!o&&(0,t.jsxs)("span",{children:["Please rejoin the conversation on"," ",(0,t.jsx)($.default,{className:"_6bcvj22",timestamp:o,format:"stream"}),"."]})]}),F=()=>(0,t.jsxs)("div",{className:R,children:[(0,t.jsx)("span",{className:P,children:"You have an unacknowledged warning"}),(0,t.jsx)("span",{children:"Please review and dismiss the warning shown at the top of the page to continue participating on The Feed, including creating posts, rec'ing, replying to, voting on, or reporting existing posts."})]});e.s(["default",0,({bans:e,suspensions:n,hasUnacknowledgedWarning:i,currentCommunity:o,className:s})=>{if(e&&e.length>0){let n=e.filter(e=>!!e.allCommunities).sort((e,t)=>
15S(e,t)),i=e.filter(e=>!e.allCommunities).sort((e,t)=>S(e,t));if(n.length>0)return(0,t.jsx)(N,{className:s,isAllCommunities:!0,communityName:o.displayName,expiresAt:n[0]?.expiresAt,restrictionType:T.UserStatus.Banned});if(i.length>0)return(0,t.jsx)(N,{className:s,isAllCommunities:!1,communityName:o.displayName,expiresAt:i[0]?.expiresAt,restrictionType:T.UserStatus.Banned})}if(n&&n.length>0){let e=n.filter(e=>!!e.allCommunities).sort((e,t)=>S(e,t)),i=n.filter(e=>!e.allCommunities).sort((e,t)=>S(e,t));if(e.length>0)return(0,t.jsx)(N,{className:s,isAllCommunities:!0,communityName:o.displayName,expiresAt:e[0]?.expiresAt,restrictionType:T.UserStatus.Suspended});if(i.length>0)return(0,t.jsx)(N,{className:s,isAllCommunities:!1,communityName:o.displayName,expiresAt:i[0]?.expiresAt,restrictionType:T.UserStatus.Suspended})}return i?(0,t.jsx)(F,{}):null}],542398)},523121,336831,533223,211400,749309,e=>{"use strict";var t=e.i(533599);e.i(867411);var n=e.i(478902),i=e.i(389959),o=e.i(347258),s=e.i(542398),a=e.i(210982),r=e.i(597406),l=e.i(798240),c=e.i(396902),u=e.i(623690),d=e.i(509727),m=e.i(645904);e.i(872025);var p=e.i(19562);e.i(586831);var h=e.i(89693);e.i(634344);var C=e.i(274280);e.s(["QuickPostComposer",0,({parent:e,onSubmit:y,showComposerOnLoad:f,onCancel:g,placeholderText:x,mode:j="create",editPost:v})=>{let{userLoading:I,user:k}=(0,r.useAuth)(),D=(0,a.useAnalytics)(),w=(0,l.useCurrentCycloneCommunity)(),{cycloneCommunityId:b}=w,{viewerBans:T,viewerSuspensions:$,viewerHasUnacknowledgedWarning:R,viewer:P}=(0,u.useCyclone)(),{cycloneConfig:{serverURL:S}}=(0,c.useConfigContext)(),[N,F]=(0,i.useState)(f??!1),[M,A]=(0,i.useState)(!1),_=(0,i.useCallback)(()=>{P&&A(!1)},[P,A]),O=(0,i.useCallback)(()=>{g&&g(),F(!1)},[F,g]);(0,i.useEffect)(()=>{P&&_()},[_,P]);let E=(0,i.useCallback)(async(t,n,i)=>{if(I||!k)return{response:null,errors:[Error("unable to post without logged in user")]};if("edit"===j){let e=await (0,m.makeRequest)(`${S}/api`,d.editQuickPostMutation,{communityID:b,contentID:v?.id,body:n??"",attachments:i},k.cycloneToken);return!e.errors&&y&&(y(e.data?.editPost),D?.emit({event:"feedpost_action",feedpost_action:{action:"comment"}})),{response:e.data?.editPost??null,errors:e.errors??null}}let o=await (0,m.makeRequest)(`${S}/api`,d.createQuickPostMutation,{communityID:b,body:n??"",attachments:i,parentID:e?.id},k.cycloneToken);return!o.errors&&y&&(y(o.data?.createQuickPostContent),F(!1),D?.emit({event:"feedpost_action",feedpost_action:{action:"comment"}})),{response:o.data?.createQuickPostContent??null,errors:o.errors??null}},[D,I,k,S,b,e?.id,y,j,v]),L=(0,i.useMemo)(()=>x?k?x.teaser.signedIn:x.teaser.signedOut:k?e&&"author"in e&&e.author?.username?`Reply to ${e.author.username}`:"Reply":e&&"author"in e&&e.author?.username?`Sign in to reply to ${e.author.username}`:"Sign in to reply",[e,x,k]);return T.length>0||$.length>0||R?(0,n.jsx)("div",{className:"_1fyuvvm0",children:(0,n.jsx)(s.default,{bans:T,suspensions:$,hasUnacknowledgedWarning:R,currentCommunity:w})}):(0,n.jsxs)(n.Fragment,{children:[k?(0,n.jsx)(n.Fragment,{children:N?(0,n.jsx)(t.default,{displayType:"reply",parent:e,includesTitle:!1,bodyRequired:!0,onFormSubmit:E,showBorder:!0,onCancel:O,placeholderText:x?x.active:void 0,editPost:v,showViewerBar:!0,autoFocus:!0}):(0,n.jsx)(o.default,{text:L,onClick:()=>{F(!0)}})}):(0,n.jsx)(o.default,{text:L,onClick:()=>{A(!0)}}),(0,n.jsx)(C.default,{visible:M,onClose:()=>A(!1),size:"medium",children:(0,n.jsx)(h.default,{logo:(0,n.jsx)(p.default,{}),source:"reply"})})]})}],336831);var y=e.i(245915);function f(e,t=1e4){return e()?Promise.resolve(!0):new Promise(n=>{let i=Date.now(),o=window.setInterval(()=>{if(e()){window.clearInterval(o),n(!0);return}Date.now()-i>=t&&(window.clearInterval(o),n(!1))},50)})}let g="duet:identityAuthenticated";e.s(["IDENTITY_AUTHENTICATED_COOKIE_NAME",0,g],533223);var x=e.i(534811);function j(){return()=>void 0}function v(){return"true"===(0,x.getCookie)(g)}function I(){return!1}function k(e){let[t,n]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!e)return void n(!1);let t=window.setTimeout(()=>{n(!0)},1e4);return()=>window.clearTimeout(t)},[e]),t}function D(){let{user:e,userLoading:t}=(0,r.useAuth)(),{viewer:n,viewerLoading:o}=(0,u.useCyclone)(),s=(0,i.useSyncExternalStore)(j,v,I),a=k(t),l=t&&!a,c=s&&l,d=!!e?.cycloneToken&&o&&!n,m=k(d),p=d&&!m,h=c||p,C=l||p,y=!t||a,f=n?.token;return(0,i.useMemo)(()=>({user:e,viewer:n,viewerToken:f,identityPending:c,identitySettled:y,authPending:h,loadPending:C,showLoggedInChrome:!!n||h}),[e,n,f,c,y,h,C])}e.s(["useCycloneAuthGate",0,D],211400);var w=e.i(769861),b=e.i(447394);e.s(["CommentsComposer",0,({parent:e,onSubmit:o,onCancel:r,placeholderText:g,mode:x="create",editPost:j,editorRef:v,autoFocus:I,draftScopeId:k})=>{let{user:T,viewer:$,identityPending:R,identitySettled:P}=D(),S=(0,a.useAnalytics)(),N=(0,l.useCurrentCycloneCommunity)(),{cycloneCommunityId:F}
15=N,{viewerBans:M,viewerSuspensions:A}=(0,u.useCyclone)(),{cycloneConfig:{serverURL:_}}=(0,c.useConfigContext)(),[O,E]=(0,i.useState)(!1),L=(0,i.useRef)(T),U=(0,i.useRef)(P),B=(0,i.useRef)(e);L.current=T,U.current=P,B.current=e;let q=(0,i.useCallback)(()=>{$&&E(!1)},[$,E]);(0,i.useEffect)(()=>{$&&q()},[q,$]);let Q=(0,i.useCallback)(async(e,t,n)=>{U.current||await f(()=>U.current,1e4);let i=L.current;if(!i)return E(!0),{response:null,errors:[{message:"Sign in to post your comment.",extensions:{code:"CommentAuthRequired"}}]};if(!(0,y.userHasCommentingName)(i)||!(0,y.userHasVerifiedEmail)(i))return{response:null,errors:[{message:"Finish setting up your account to post.",extensions:{code:"CommentAccountIncomplete"}}]};if("edit"===x||B.current?.id||await f(()=>!!B.current?.id,1e4),"edit"!==x&&!B.current?.id)return{response:null,errors:[{message:"Comments are still loading. Please try again."}]};if("edit"===x){let e=await (0,m.makeRequest)(`${_}/api`,d.editQuickPostMutation,{communityID:F,contentID:j?.id,body:t??"",attachments:n},i.cycloneToken);return!e.errors&&o&&(o(e.data?.editPost),S?.emit({event:"coral_comment",coral_comment:{action:"edit"}})),{response:e.data?.editPost??null,errors:e.errors??null}}let s=await (0,m.makeRequest)(`${_}/api`,d.createQuickPostMutation,{communityID:F,body:t??"",attachments:n,parentID:B.current?.id},i.cycloneToken);return!s.errors&&o&&(o(s.data?.createQuickPostContent),S?.emit({event:"coral_comment",coral_comment:{action:"comment"}})),{response:s.data?.createQuickPostContent??null,errors:s.errors??null}},[S,_,F,o,x,j]);return M.length>0||A.length>0?(0,n.jsx)(w.default,{children:(0,n.jsx)(s.default,{className:"_18r13v10",bans:M,suspensions:A,currentCommunity:N})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.default,{parent:e,includesTitle:!1,bodyRequired:!0,onFormSubmit:Q,showBorder:!1,onCancel:r,placeholderText:g,editPost:j,editorRef:v,autoFocus:I,displayType:"coral",supportImageLinkAttachments:!0,authPending:R,draftScopeId:k}),!T&&P&&(0,n.jsx)(b.default,{displayType:"primary",size:"large",fullWidth:!0,text:"Sign in and Join the Conversation",className:"_18r13v11",onClick:()=>{E(!0)}}),(0,n.jsx)(C.default,{visible:O,onClose:()=>E(!1),size:"medium",children:(0,n.jsx)(h.default,{logo:(0,n.jsx)(p.default,{}),source:"comments"})})]})}],749309),e.s([],523121)},691919,895639,19141,63416,e=>{"use strict";var t=e.i(478902),n=e.i(389959),i=e.i(597406),o=e.i(396902),s=e.i(430929),a=e.i(579418);e.i(807738);var r=e.i(738886);e.s(["PremodAction",0,({contentObject:e,className:l,menuOpen:c,onDone:u})=>{let{user:d}=(0,i.useAuth)(),{cycloneConfig:{serverURL:m}}=(0,o.useConfigContext)(),[p,h]=(0,n.useState)(()=>"premod"in e&&"boolean"==typeof e.premod?!0===e.premod:null),[C,y]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!c||null!==p)return;let t=e.community?.id,n=d?.cycloneToken;if(!t||!n)return;let i=!1;return(async()=>{try{let o=await (0,s.fetchExternalRootPremod)(t,e.id,m,n);!i&&o&&h(o.premod)}catch{}})(),()=>{i=!0}},[e.community?.id,e.id,c,p,m,d?.cycloneToken]);let f=(0,n.useCallback)(async()=>{let t=e.community?.id,n=d?.cycloneToken;if(t&&n&&null!==p&&!C){y(!0);try{await (0,a.setContentPremod)(t,e.id,!p,m,n)&&(h(!p),u?.())}finally{y(!1)}}},[e.community?.id,e.id,u,C,p,m,d?.cycloneToken]),g=(0,n.useCallback)(()=>{f()},[f]);return null===p?null:(0,t.jsx)(r.default,{className:l,text:p?"Turn off pre-mod":"Enable pre-mod",displayType:"cycloneSecondary",disabled:C,"aria-busy":C,onClick:e=>{e.stopPropagation(),e.preventDefault(),g()}})}],895639),e.s([],691919);var l=e.i(645904);let c=`
16  query FanPostTrustedStatusQuery($communityID: String!, $id: String!) {
17    fanPost(id: $id, communityID: $communityID) {
18      id
19      authorIsStaff
20      isReccedByStaff
21      isTrusted
22    }
23  }
24`,u=async(e,t,n,i)=>{if(!i)return null;let o=new URL("/api",n),s=await (0,l.makeRequest)(o.toString(),c,{communityID:e,id:t},i);return s.errors||!s.data?.fanPost?null:s.data.fanPost};e.s(["fetchFanPostTrustedStatus",0,u],19141);var d=e.i(509727);let m=async(e,t,n,i,o)=>{if(!o)return null;let s=new URL("/api",i),a=await (0,l.makeRequest)(s.toString(),d.SetContentIsTrustedMutation,{communityID:e,contentID:t,isTrusted:n},o);return a.errors||!a.data?null:a.data.setContentIsTrusted??null};e.s(["setContentIsTrusted",0,m],63416)}
24,748822,460565,96302,e=>{"use strict";var t=e.i(478902);e.i(807738);var n=e.i(738886);let i=({className:e="",fill:n="currentColor",width:i=24,height:o=24})=>(0,t.jsx)("svg",{className:e,width:i,height:o,viewBox:"0 0 39 38",xmlns:"http://www.w3.org/2000/svg",fill:n,children:(0,t.jsx)("path",{d:"M32.6166 7.49999H25.1166C24.6193 7.49999 24.1424 7.69753 23.7907 8.04916C23.4391 8.40079 23.2416 8.87771 23.2416 9.37499C23.2416 9.87227 23.4391 10.3492 23.7907 10.7008C24.1424 11.0524 24.6193 11.25 25.1166 11.25H32.6166C33.1139 11.25 33.5908 11.4475 33.9424 11.7992C34.294 12.1508 34.4916 12.6277 34.4916 13.125V31.35L31.5478 28.6312C31.202 28.3075 30.7465 28.1266 30.2728 28.125H13.8666C13.3693 28.125 12.8924 27.9274 12.5407 27.5758C12.1891 27.2242 11.9916 26.7473 11.9916 26.25V24.375C11.9916 23.8777 11.794 23.4008 11.4424 23.0492C11.0908 22.6975 10.6139 22.5 10.1166 22.5C9.61929 22.5 9.14238 22.6975 8.79075 23.0492C8.43912 23.4008 8.24157 23.8777 8.24157 24.375V26.25C8.24157 27.7418 8.8342 29.1726 9.8891 30.2275C10.944 31.2824 12.3747 31.875 13.8666 31.875H29.5416L35.1666 36.9937C35.4932 37.3004 35.9189 37.48 36.3666 37.5C36.6237 37.4972 36.8781 37.4463 37.1166 37.35C37.452 37.2036 37.7372 36.9623 37.9371 36.6558C38.137 36.3492 38.2428 35.9909 38.2416 35.625V13.125C38.2416 11.6331 37.6489 10.2024 36.594 9.14751C35.5392 8.09262 34.1084 7.49999 32.6166 7.49999ZM16.7541 16.0125C18.2895 14.4809 19.2465 12.4643 19.4619 10.3063C19.6774 8.14828 19.138 5.98232 17.9356 4.17739C16.7332 2.37247 14.9423 1.04024 12.8678 0.407665C10.7934 -0.224914 8.56378 -0.118714 6.55886 0.708175C4.55394 1.53506 2.89772 3.03149 1.87234 4.94252C0.84696 6.85356 0.515859 9.06098 0.93544 11.1888C1.35502 13.3165 2.49933 15.233 4.17342 16.6117C5.84751 17.9905 7.94783 18.7461 10.1166 18.75C11.3485 18.7522 12.5689 18.5116 13.7078 18.0418C14.8467 17.5721 15.8818 16.8825 16.7541 16.0125ZM4.49157 9.37499C4.49157 7.88314 5.0842 6.4524 6.1391 5.39751C7.19399 4.34262 8.62473 3.74999 10.1166 3.74999C10.9483 3.75773 11.768 3.94985 12.5166 4.31249L5.01657 11.8125C4.66143 11.0495 4.48202 10.2165 4.49157 9.37499ZM15.1791 6.95624C15.5444 7.71051 15.7366 8.5369 15.7416 9.37499C15.7374 10.3208 15.4948 11.2503 15.0362 12.0776C14.5776 12.9048 13.9178 13.603 13.1178 14.1077C12.3179 14.6123 11.4036 14.9071 10.4595 14.9648C9.51538 15.0224 8.572 14.8411 7.71657 14.4375L15.1791 6.95624Z"})});e.s(["default",0,i],460565);var o=e.i(95411);e.s(["RejectButton",0,({onClick:e,className:s})=>(0,t.jsx)(n.default,{className:s,text:"Reject content",displayType:"cycloneSecondary",iconRight:(0,t.jsx)(i,{width:20,height:20,fill:o.default.sys.color.primary}),onClick:t=>{t.stopPropagation(),t.preventDefault(),e()}})],748822),e.s(["ConfirmModalContent",0,({icon:e,title:i,description:o,children:s,confirmText:a="Confirm",cancelText:r="Cancel",onConfirm:l,onCancel:c})=>(0,t.jsxs)("div",{className:"_1bmkvbr0",children:[e&&(0,t.jsx)("div",{className:"_1bmkvbr1",children:e}),(0,t.jsx)("h2",{className:"_1bmkvbr2",children:i}),o&&(0,t.jsx)("p",{className:"_1bmkvbr3",children:o}),s&&(0,t.jsx)("div",{className:"_1bmkvbr4",children:s}),(0,t.jsxs)("div",{className:"_1bmkvbr5",children:[(0,t.jsx)(n.default,{text:a,displayType:"primary",onClick:e=>{e.stopPropagation(),e.preventDefault(),l()}}),(0,t.jsx)(n.default,{text:r,displayType:"secondary",onClick:e=>{e.stopPropagation(),e.preventDefault(),c&&c()}})]})]})],96302)},381312,861871,267418,e=>{"use strict";var t=e.i(478902),n=e.i(389959),i=e.i(96302),o=e.i(597406),s=e.i(396902),a=e.i(509727),r=e.i(645904),l=e.i(460565),c=e.i(95411);e.s(["RejectConfirm",0,({onReject:e,contentObject:u,onCancel:d})=>{let{user:m}=(0,o.useAuth)(),{cycloneConfig:{serverURL:p}}=(0,s.useConfigContext)(),h=(0,n.useCallback)(async()=>{if(!m)return;let t=a.RejectContentMutation,n={contentID:u.id,communityID:u.community?.id},i=await (0,r.makeRequest)(`${p}/api`,t,n,m.cycloneToken);i.data&&i.data.rejectContent&&e&&e(i.data.rejectContent)},[u,m,p,e]);return(0,t.jsx)(i.ConfirmModalContent,{icon:(0,t.jsx)(l.default,{width:32,height:32,fill:`${c.default.sys.color.primary}`}),title:"This will reject the chosen content.",description:"The poster will receive a moderation message. Are you sure?",confirmText:"Reject",onConfirm:()=>{h()},onCancel:d})}],381312),e.i(807738);var u=e.i(738886);let d=({className:e="",width:n=24,height:i=24,fill:o="none",viewBox:s="0 -960 960 960"})=>(0,t.jsxs)("svg",{className:e,width:n,height:i,fill:o,viewBox:s,xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"Report"}),(0,t.jsx)("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240ZM330-120 120-330v-300l210-210h300l210 210v300L630-120H330Zm34-80h232l164-164v-232L596-760H364L200-596v232l164 164Zm116-280Z"})]});e.s(["ReportButton",0,({onClick:e,className:n})=>(0,t.jsx)(u.default,{className:n,text:"Report post",displayType:"cycloneSecondary",iconRight:(0,t.jsx)(d,{width:20,height:20,fill:c.default.sys.color.primary}),onClick:t=>{t.stopPropagation(),t.preventDefault(),e()}})],861871);var m=e.i(197649),p=e.i(655744),h=e.i(579490),C=e.i(722010),y=e.i(55163),f=e.i(505385);let g=({className:e,label:n,...i})=>{let{isFocusVisible:o,focusProps:s}=(0,y.useFocusRing)();return(0,t.jsxs)("div",{className:(0,m.default)("fmhwis0",e),children:[(0,t.jsx)("input",{...s,className:f.srOnly,type:"radio",...i,onFocus:e=>{i.onFocus?.(e),s.onFocus?.(e)},onBlur:e=>{i.onBlur?.(e),s.onBlur?.(e)}}),(0,t.jsx)("label",{className:(0,m.default)("fmhwis1",i.checked&&"fmhwis3",o&&"fmhwis2"),htmlFor:i.id,children:n})]})};var x="_13trq5r2",j="_13trq5r4",v="_13trq5r7",I="_13trq5rc";let k=`mutation ReportContentMutation(
25    $communityID: String!,
26    $contentID: String!,
27    $reason: ReportedContentReason!,
28    $description: String
29  ) {
30    reportContent(input: {
31      communityID: $communityID,
32      contentID: $contentID,
33      reason: $reason,
34      description: $description
35    }) {
36      id
37      ${h.QuickPostFragment}
38      ... on FanPost {
39        ${h.FanPostFragment}
40      }
41    }
42  }`;e.s(["ReportForm",0,({communityID:e,contentObjectID:i,onCancel:a,onReport:l})=>{let{user:c}=(0,o.useAuth)(),{cycloneConfig:{serverURL:d}}=(0,s.useConfigContext)(),{handleSubmit:h,control:y,setError:f,reset:D,formState:{errors:w,isSubmitSuccessful:b}}=(0,p.useForm)({defaultValues:{additionalInformation:void 0}}),T=(0,n.useCallback)(()=>{D(),a()},[a,D]),$=(0,n.useCallback)(e=>{e.stopPropagation(),T()},[T]),R=(0,n.useCallback)(async t=>{if(!e||!i||!c||!c.cycloneToken)return;if(!t.reason)return void f("reason",{message:"Please select a reason."});if(t.additionalInformation&&t.additionalInformation.length>500)return void f("additionalInformation",{message:"Additional information cannot exceed 500 characters."});if(t.reason===C.ReportedContentReason.Other&&(!t.additionalInformation||0===t.additionalInformation.trim().length))return void f("additionalInformation",{message:"Additional information is required when selecting reason: Other."});let n=new URL("/api",d),o=await (0,r.makeRequest)(n.toString(),k,{communityID:e,contentID:i,reason:t.reason,description:t.additionalInformation},c.cycloneToken);o.errors&&o.errors.length>0?f("root",{message:o.errors.join("<br/>")}):o.data&&o.data.reportContent?l&&l(o.data.reportContent):f("root",{message:"Something bad happened. Please try again."})},[e,i,d,f,c,l]);return((0,n.useEffect)(()=>{b&&setTimeout(T,1e3)},[T,b]),c&&e&&i)?(0,t.jsxs)("form",{className:"_13trq5r0",onSubmit:()=>{h(R)},children:[(0,t.jsx)("div",{className:"_13trq5r1",children:"Report this content"}),(0,t.jsx)("div",{className:j,children:"Why are you reporting this content?"}),(0,t.jsx)(p.Controller,{render:({field:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:x,children:(0,t.jsx)(g,{...e,id:C.ReportedContentReason.Offensive,name:"reason",value:C.ReportedContentReason.Offensive,checked:e.value===C.ReportedContentReason.Offensive,label:"This post is offensive"})}),(0,t.jsx)("div",{className:x,children:(0,t.jsx)(g,{...e,id:C.ReportedContentReason.Abusive,name:"reason",value:C.ReportedContentReason.Abusive,checked:e.value===C.ReportedContentReason.Abusive,label:"This person is being abusive"})}),(0,t.jsx)("div",{className:x,children:(0,t.jsx)(g,{...e,id:C.ReportedContentReason.Disagree,name:"reason",value:C.ReportedContentReason.Disagree,checked:e.value===C.ReportedContentReason.Disagree,label:"I disagree with this post"})}),(0,t.jsx)("div",{className:x,children:(0,t.jsx)(g,{...e,id:C.ReportedContentReason.Spam,name:"reason",value:C.ReportedContentReason.Spam,checked:e.value===C.ReportedContentReason.Spam,label:"This looks like an ad or marketing"})}),(0,t.jsx)("div",{className:x,children:(0,t.jsx)(g,{...e,id:C.ReportedContentReason.Other,name:"reason",value:C.ReportedContentReason.Other,checked:e.value===C.ReportedContentReason.Other,label:"Other"})})]}),name:"reason",control:y}),w.reason&&(0,t.jsx)("p",{className:I,children:w.reason.message}),(0,t.jsxs)("div",{className:"_13trq5r3",children:[(0,t.jsx)("div",{className:(0,m.default)(j,v),children:"Additional information"}),(0,t.jsx)("div",{className:(0,m.default)("_13trq5r5",v),children:"Optional"})]}),(0,t.jsx)("label",{className:v,htmlFor:"additionalInformation",children:"Please add any details that can help us understand your report."}),(0,t.jsx)(p.Controller,{render:({field:e})=>(0,t.jsx)("textarea",{...e,name:"additionalInformation",id:"additionalInformation",className:"_13trq5r6",onClick:e=>{e.stopPropagation(),e.preventDefault()}}),name:"additionalInformation",control:y,defaultValue:void 0}),(0,t.jsx)("div",{className:(0,m.default)("_13trq5r8",v),children:"Max. 500 characters"}),w.additionalInformation&&(0,t.jsx)("p",{className:I,children:w.additionalInformation.message}),(0,t.jsxs)("div",{className:"_13trq5r9",children:[(0,t.jsx)(u.default,{className:"_13trq5rb",text:"Cancel",displayType:"cyclone",onClick:$}),(0,t.jsx)(u.default,{className:"_13trq5ra",text:"Submit",displayType:"cyclone",onClick:e=>{e.preventDefault(),h(R)()}})]}),w.root&&(0,t.jsx)("p",{className:I,children:w.root.message}),b&&(0,t.jsx)("div",{children:"Report submitted successfully!"})]}):null}],267418)},409844,477673,153702,e=>{"use strict";var t,n=e.i(478902),i=e.i(197649),o=e.i(695287),s=e.i(389959),a=e.i(748822),r=e.i(381312),l=e.i(861871),c=e.i(678506),u=e.i(267418),d=e.i(740494),m=e.i(395721),p=e.i(623690),h=e.i(722010);e.i(807738);var C=e.i(738886);e.i(634344);var y=e.i(274280),f=e.i(967960),g=e.i(521372),x=e.i(916833),j=e.i(407570),v=e.i(601010),I=e.i(474481),k=e.i(970060),D=e.i(95411);e.i(545511);var w=e.i(866157),b=e.i(859573),T=e.i(407987);e.i(372207);var $=e.i(849891),R=e.i(779765),P=e.i(909968);e.i(691919);var S=e.i(895639),N=e.i(597406),F=e.i(396902),M=e.i(19141),A=e.i(63416),_=e.i(662983),O=e.i(69216),E="m0kdod1";let L=e=>!0===e?"Yes":"No",U=({contentObject:e,className:t})=>{let{user:i}=(0,N.useAuth)(),{cycloneConfig:{serverURL:o}}
42=(0,F.useConfigContext)(),[a,r]=(0,s.useState)(!1),[l,c]=(0,s.useState)(null),[u,d]=(0,s.useState)(!1),[m,p]=(0,s.useState)(!1),[h,y]=(0,s.useState)(null),f=(0,s.useCallback)(async()=>{let t=e.community?.id;if(!t||!i?.cycloneToken)return void y("Unable to load trusted status");d(!0),y(null);try{let n=await (0,M.fetchFanPostTrustedStatus)(t,e.id,o,i.cycloneToken);if(!n)return void y("Unable to load trusted status");c(n)}catch{y("Unable to load trusted status")}finally{d(!1)}},[e.community?.id,e.id,o,i]),g=(0,s.useCallback)(()=>{a?r(!1):(r(!0),f())},[a,f]),x=(0,s.useCallback)(async t=>{let n=e.community?.id;if(n&&i?.cycloneToken&&!m){p(!0),y(null);try{let s=await (0,A.setContentIsTrusted)(n,e.id,t,o,i.cycloneToken);if(!s)return void y("Unable to update trusted status");c(s)}catch{y("Unable to update trusted status")}finally{p(!1)}}},[e.community?.id,e.id,m,o,i]),j=l?.isTrusted===!0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.default,{className:t,text:"Trusted status...",displayType:"cycloneSecondary",iconRight:a?(0,n.jsx)(_.default,{width:12,height:12}):(0,n.jsx)(O.default,{width:12,height:12}),onClick:e=>{e.stopPropagation(),e.preventDefault(),g()}}),a&&(0,n.jsxs)("div",{className:"m0kdod0",children:[u&&!l&&(0,n.jsx)("div",{className:E,children:"Loading..."}),h&&(0,n.jsx)("div",{className:E,children:h}),l&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:E,children:[(0,n.jsx)("span",{children:"Staff author"}),(0,n.jsx)("span",{children:L(l.authorIsStaff)})]}),(0,n.jsxs)("div",{className:E,children:[(0,n.jsx)("span",{children:"Staff Rec"}),(0,n.jsx)("span",{children:L(l.isReccedByStaff)})]}),(0,n.jsxs)("div",{className:E,children:[(0,n.jsx)("span",{children:"Trusted content"}),(0,n.jsx)("span",{children:L(l.isTrusted)})]}),(0,n.jsx)(C.default,{className:t,text:j?"Demote post":"Set as trusted",displayType:"cycloneSecondary",disabled:m,onClick:e=>{e.stopPropagation(),e.preventDefault(),x(!j)}})]})]})]})};var B=((t=B||{}).CONFIRM_DELETE="CONFIRM_DELETE",t.CONFIRM_PIN="CONFIRM_PIN",t.CONFIRM_UNPIN="CONFIRM_UNPIN",t.REPORT="REPORT",t.CONFIRM_REJECT="CONFIRM_REJECT",t);let q=(0,o.observer)(function({contentObject:e,onDelete:t,onPin:o,onUnpin:N,onReject:F,onReport:M,onOpenOrCloseReplies:A,pinnedContentID:_}){let{viewer:O,ignoreUser:E}=(0,p.useCyclone)(),L="author"in e?e.author:null,B=O?.ignoredUsers?.some(e=>
42e.id===L?.id),q=(0,m.isUserStaff)(L),[Q,Z]=(0,s.useState)(null),[W,V]=(0,s.useState)(!1),[H,Y]=(0,s.useState)(!1),K=(0,s.useRef)(null),z=(0,s.useRef)(null),G=O?.id===L?.id,J=(0,m.isUserStaff)(O),X=!!J&&e.type===h.ContentObjectType.FanPost,ee=!!O&&"isReported"in e&&!e.isReported,et=J&&e.type===h.ContentObjectType.FanPost,en=J&&e.type===h.ContentObjectType.FanPost,ei=(0,d.getCycloneContentPostPath)(e),eo=J&&!!ei,es=J&&e.type===h.ContentObjectType.FanPost,ea=!!O&&!G&&!B&&!q,er=(0,s.useCallback)(e=>{e.stopPropagation(),z.current?.click()},[z]),el=(0,s.useCallback)(({id:e,deletedAt:n})=>{Z(null),t&&t({id:e,deletedAt:n})},[t]),ec=(0,s.useCallback)(({id:e,pinnedAt:t})=>{Z(null),o&&o({id:e,pinnedAt:t})},[o]),eu=(0,s.useCallback)(()=>{Z(null),N&&N()},[N]),ed=(0,s.useCallback)(()=>{L?.id&&(E(L.id),z.current?.click())},[z,E,L?.id]),em=(0,s.useCallback)(()=>{Z(null)},[]),ep=(0,s.useCallback)(e=>{F&&(F(e),em())},[F,em]),eh=(0,s.useCallback)(t=>{t.stopPropagation(),t.preventDefault(),e&&A&&e.type===h.ContentObjectType.FanPost&&(A(e,!!e.repliesAreClosed),z.current?.click())},[e,A]),eC=(0,s.useCallback)(()=>{z.current?.click()},[]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.default,{Trigger:(0,n.jsx)("div",{ref:K,className:T.dotsWrapper,children:(0,n.jsx)(x.default,{className:T.icon})}),CloseButton:(0,n.jsx)("div",{ref:z,className:k.sharedStyles.layout.hide}),sideOffset:8,onOpenChange:e=>{Y(e)},children:(0,n.jsx)("div",{className:T.popoverButtonContainer,children:(0,n.jsxs)(n.Fragment,{children:[!!G&&(0,n.jsx)(w.DeleteButton,{className:T.popoverButton,onClick:()=>{Z("CONFIRM_DELETE")}}),X&&(0,n.jsx)($.PinButton,{className:T.popoverButton,onClick:()=>{_===e.id?Z("CONFIRM_UNPIN"):Z("CONFIRM_PIN")},pinned:_===e.id}),J&&(0,n.jsx)(a.RejectButton,{className:T.popoverButton,onClick:()=>Z("CONFIRM_REJECT")}),et&&(0,n.jsx)(C.default,{className:T.popoverButton,text:e.repliesAreClosed?"Open replies":"Close replies",displayType:"cycloneSecondary",iconRight:(0,n.jsx)(v.default,{width:20,height:20,fill:D.default.sys.color.primary}),onClick:eh}),en&&(0,n.jsx)(S.PremodAction,{className:T.popoverButton,contentObject:e,menuOpen:H,onDone:eC}),eo&&(0,n.jsx)(C.default,{className:T.popoverButton,text:"Copy link",displayType:"cycloneSecondary",iconRight:W?(0,n.jsx)(f.default,{width:20,height:20,fill:D.default.sys.color.primary}):(0,n.jsx)(j.default,{width:20,height:20,fill:D.default.sys.color.primary}),onClick:()=>{ei&&navigator.clipboard?.writeText(ei).then(()=>{V(!0),setTimeout(()=>{V(!1)},2e3)}).catch(e=>{console.error(e)})}}),es&&(0,n.jsx)(U,{className:T.popoverButton,contentObject:e}),ee&&(0,n.jsx)(l.ReportButton,{className:T.popoverButton,onClick:()=>{Z("REPORT")}}),ea&&(0,n.jsx)(C.default,{className:T.popoverButton,text:"Ignore user",displayType:"cycloneSecondary",iconRight:(0,n.jsx)(I.default,{width:20,height:20,fill:D.default.sys.color.primary}),onClick:ed}),(0,n.jsx)("a",{href:"https://sbnation.com/community-guidelines#a-quick-note-about-copyright",target:"_blank",rel:"noopener noreferrer",onClick:e=>{er(e)},children:(0,n.jsxs)("div",{className:(0,i.default)(T.popoverButton,T.dmcaPolicyLink),children:[(0,n.jsx)("span",{children:"DMCA policy"}),(0,n.jsx)(g.default,{width:20,height:20,fill:D.default.sys.color.primary})]})})]})})}),(0,n.jsx)(y.default,{visible:!!Q,onClose:em,children:(0,n.jsxs)("div",{className:T.modalContent,children:["CONFIRM_DELETE"===Q&&(0,n.jsx)(b.DeleteConfirm,{contentObject:e,onDelete:el,onCancel:em}),"CONFIRM_PIN"===Q&&(0,n.jsx)(R.PinConfirm,{contentObject:e,onPin:ec,onCancel:em}),"CONFIRM_UNPIN"===Q&&(0,n.jsx)(P.UnpinConfirm,{contentObject:e,onUnpin:eu,onCancel:em}),"REPORT"===Q&&(0,n.jsx)(u.ReportForm,{contentObjectID:e.id,communityID:e.community?.id,onCancel:em,onReport:M}),"CONFIRM_REJECT"===Q&&(0,n.jsx)(r.RejectConfirm,{contentObject:e,onReject:ep,onCancel:em})]})})]})});e.s(["default",0,q],477673),e.s([],409844);let Q=({className:e,width:t,height:i})=>(0,n.jsxs)("svg",{className:e,width:t,height:i,viewBox:"-0.25 -0.25 24.5 24.5",xmlns:"http://www.w3.org/2000/svg",strokeWidth:2,children:[(0,n.jsx)("path",{d:"M6,13.223,8.45,16.7a1.049,1.049,0,0,0,1.707.051L18,6.828",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M0.750 11.999 A11.250 11.250 0 1 0 23.250 11.999 A11.250 11.250 0 1 0 0.750 11.999 Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),Z=({className:e,width:t,height:i})=>(0,n.jsxs)("svg",{className:e,width:t,height:i,viewBox:"-0.25 -0.25 24.5 24.5",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M10.082,9.5A4.47,4.47,0,0,0,6.75,8H5.25a4.5,4.5,0,0,0,0,9h1.5a4.474,4.474,0,0,0,3.332-1.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),(0,n.jsx)("path",{d:"M13.918,9.5A4.469,4.469,0,0,1,17.25,8h1.5a4.5,4.5,0,1,1,0,9h-1.5a4.472,4.472,0,0,1-3.332-1.5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2}),(0,n.jsx)("path",{d:"M6.75 12.499L17.25 12.499",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})]});var W=e.i(210982),V="_17l98w02";e.s(["default",0,({url:e,trigger:t,popoverVariant:i="default"})=>
42{let[o,a]=(0,s.useState)(!1),r=(0,W.useAnalytics)(),l=(0,s.useRef)(null),u=(0,s.useRef)(null),d=(0,s.useCallback)(e=>{e&&"coral"===i&&r?.emit({event:"coral_comment",coral_comment:{action:"share"}}),u.current&&(clearTimeout(u.current),u.current=null),o&&a(!1)},[r,o,i]),m=(0,s.useCallback)(()=>{u.current=null,a(!1),l.current&&l.current.close()},[l]),p=(0,s.useCallback)(t=>{t.preventDefault(),t.stopPropagation(),navigator.clipboard&&navigator.clipboard.writeText(e.includes("://")?e:`${window.location.origin}${e}`).then(()=>{a(!0),"coral"===i?r?.emit({event:"coral_comment",coral_comment:{action:"copy_permalink"}}):r?.emit({event:"feedpost_action",feedpost_action:{action:"share"}}),u.current=window.setTimeout(m,800)}).catch(e=>{console.error(e)})},[e,i,m,r]);return(0,n.jsx)(c.default,{actionsRef:l,onOpenChange:d,variant:i,Trigger:t,children:(0,n.jsxs)("button",{className:o?"_17l98w01 _17l98w00":"_17l98w00",onClick:p,children:[o?(0,n.jsx)(Q,{className:V}):(0,n.jsx)(Z,{className:V}),o?"Link copied":"Copy link"]})})}],153702)},91596,e=>{"use strict";var t=e.i(649784),n=e.i(722010);e.s(["canViewerEdit",0,function(e,i){if("author"in i==!1)return!1;let o=e===i.author?.id,s=Date.now()-Date.parse(i.createdAt),a=s<=t.QUICKPOST_EDIT_WINDOW,r=i.type===n.ContentObjectType.QuickPost;return!!(o&&a&&r)&&{remaining:Math.max(0,t.QUICKPOST_EDIT_WINDOW-s)}}])},740494,e=>{"use strict";var t=e.i(591370),n=e.i(140508),i=e.i(722010),o=e.i(426355),s=e.i(553662);e.s(["getCycloneContentPostPath",0,e=>{let a,r=(e=>{if(!e.community?.id)return null;let t=e.community.id,i=Object.values(n.SB_NATION_COMMUNITIES).find(e=>!!e.cycloneCommunities?.[t]);if(!i?.domain)return null;let s=i.cycloneCommunities?.[t],a=s?.cycloneCommunityPrefix;return{origin:(0,o.getMultiCommunityOrigin)({origin:window.location.origin,targetDomain:i.domain,targetSubdomain:i.subdomain||null}),prefix:a}})(e);if(e.type===i.ContentObjectType.FanPost)a=(0,s.getCommunityPostPath)(e.shortID,r?.prefix);else if(e.type===i.ContentObjectType.ExternalRoot){let n,i=e.urls[0];try{n=i?new URL(i):null}catch(e){(0,t.captureException)(e),n=null}if(!n)return(0,t.captureException)(Error(`Invalid urls[0] field for ExternalRoot: ${i}`)),null;a=`${n.pathname}`}else if(e.type!==i.ContentObjectType.QuickPost)return(0,t.captureException)(Error(`Unsupported post type to build post url: ${e.type}`)),null;else if(e.rootAncestor?.type===i.ContentObjectType.ExternalRoot){let n,i=e.rootAncestor.urls[0];try{n=i?new URL(i):null}catch(e){(0,t.captureException)(e),n=null}if(!n)return(0,t.captureException)(Error(`Invalid urls[0] field for ExternalRoot: ${i}`)),null;let o=`?commentID=${e.id}`;a=`${n.pathname}${o}`}else{let t=e.rootAncestor?.shortID;if(!t)return null;a=(0,s.getCommunityPostReplyPath)(t,e.shortID,r?.prefix)}return r?.origin?`${r.origin}${a}`:a}])},395721,e=>{"use strict";var t=e.i(649784),n=e.i(722010);e.s(["isUserStaff",0,function(e){return!!t.COMMUNITY_STAFF_ROLES.includes(e?.role??n.Role.UNKNOWN)}])},430929,579418,e=>{"use strict";var t=e.i(645904);let n=`
43  query ExternalRootPremodQuery($communityID: String!, $id: String!) {
44    content(communityID: $communityID, id: $id) {
45      id
46      ... on ExternalRoot {
47        premod
48      }
49      ... on FanPost {
50        premod
51      }
52    }
53  }
54`,i=async(e,i,o,s)=>{if(!s)return null;let a=new URL("/api",o),r=await (0,t.makeRequest)(a.toString(),n,{communityID:e,id:i},s);if(r.errors||!r.data?.content?.id)return null;let{id:l,premod:c}=r.data.content;return{id:l,premod:!0===c}};e.s(["fetchExternalRootPremod",0,i],430929);var o=e.i(509727);let s=async(e,n,i,s,a)=>{if(!a)return null;let r=new URL("/api",s),l=await (0,t.makeRequest)(r.toString(),o.SetContentPremodMutation,{communityID:e,contentID:n,premod:i},a);return l.errors||!l.data?null:l.data.setContentPremod??null};e.s(["setContentPremod",0,s],579418)},509727,e=>{"use strict";var t=e.i(579490);let n=`mutation DeleteContentMutation($communityID: String!, $contentID: String!) {
55    deleteContent(input: { id: $contentID, communityID: $communityID }) {
56        id
57        deletedAt
58    }
59  }`,i=`mutation PinContentMutation($communityID: String!, $objectID: String!) {
60    pinContent(input: { objectID: $objectID, communityID: $communityID }) {
61        id
62        ... on FanPost {
63            pinnedAt
64        }
65    }
66  }`,o=`mutation UnpinContentMutation($communityID: String!) {
67    removePinnedContent(input: { communityID: $communityID }) {
68      id
69    }
70  }`,s=`
71  mutation RejectContentMutation($communityID: String!, $contentID: String!) {
72    rejectContent(input: { communityID: $communityID, contentID: $contentID }) {
73      ${t.QuickPostFragment}
74      ... on FanPost {
75        ${t.FanPostFragment}
76      }
77    }
78  }
79`;t.UserAdminQueryFragment,t.UserAdminQueryFragment,t.UserAdminQueryFragment,t.UserAdminQueryFragment,t.UserAdminQueryFragment,t.UserAdminQueryFragment;let a=`
80  mutation CloseRepliesMutation($communityID: String!, $contentID: String!) {
81    closeReplies(communityID: $communityID, contentID: $contentID) {
82      ${t.QuickPostFragment}
83      ... on FanPost {
84        ${t.FanPostFragment}
85      }
86      ... on ExternalRoot {
87        ${t.ExternalRootFragment}
88      }
89    }
90  }
91`,r=`
92  mutation OpenRepliesMutation($communityID: String!, $contentID: String!) {
93    openReplies(communityID: $communityID, contentID: $contentID) {
94      ${t.QuickPostFragment}
95      ... on FanPost {
96        ${t.FanPostFragment}
97      }
98      ... on ExternalRoot {
99        ${t.ExternalRootFragment}
100      }
101    }
102  }
103`,l=`
104  mutation SetContentPremodMutation(
105    $communityID: String!
106    $contentID: String!
107    $premod: Boolean!
108  ) {
109    setContentPremod(
110      input: {
111        communityID: $communityID
112        contentID: $contentID
113        premod: $premod
114      }
115    ) {
116      ${t.QuickPostFragment}
117      ... on FanPost {
118        ${t.FanPostFragment}
119        premod
120      }
121      ... on ExternalRoot {
122        ${t.ExternalRootFragment}
123        premod
124      }
125    }
126  }
127`,c=`
128mutation CreateQuickPost( $communityID: String!,
129  $parentID: String,
130  $body: String!,
131  $opener: String,
132  $attachments: [AttachmentInput!],
133  $federate: Boolean,
134  $venueName: String,
135  $venueCity: String,
136  $venueState: String) {
137    createQuickPostContent(input: {
138      communityID: $communityID,
139      parentID: $parentID,
140      body: $body,
141      opener: $opener,
142      attachments: $attachments,
143      federate: $federate,
144      venueName: $venueName,
145      venueCity: $venueCity,
146      venueState: $venueState
147    }) {
148      ${t.QuickPostFragment}
149    }
150  }
151`,u=`
152  mutation UpdateUserSettings($userID: String!, $settings: UserSettingsInput!, $communityID: String!) {
153    updateUserSettings(input: {
154      userID: $userID,
155      settings: $settings
156      communityID: $communityID
157    }) {
158      fanPostFeedMode
159      replySort
160      unfurlMediaEmbeds
161    }
162  }
163`,d=`
164  mutation AcknowledgeUserMessage($id: String!, $communityID: String!) {
165    acknowledgeUserMessage(input: { id: $id, communityID: $communityID }) {
166      ${t.UserMessageFragment}
167    }
168  }
169`,m=`
170mutation EditQuickPost( $communityID: String!, $contentID: String!, $body: String!, $attachments: [AttachmentInput!]) {
171  editPost(input: {
172    communityID: $communityID,
173    contentID: $contentID,
174    body: $body,
175    attachments: $attachments,
176  }) {
177    ${t.QuickPostFragment}
178  }
179}
180`;t.QuickPostFragment;let p=`
181  mutation RecFanPost($communityID: String!, $objectID: String!) {
182    recContent(input: {
183      communityID: $communityID,
184      objectID: $objectID
185    }) {
186      id
187      ${t.QuickPostFragment}
188      ... on FanPost {
189        ${t.FanPostFragment}
190      }
191      ... on Note {
192        venueID
193        isPrivate
194        isEdited
195        isRecced
196        isReported
197        recs
198        replyCount
199        directReplyCount
200      }
201    }
202  }
203`,h=`
204  mutation RecFanPost($communityID: String!, $objectID: String!) {
205    unrecContent(input: {
206      communityID: $communityID,
207      objectID: $objectID
208    }) {
209      id
210      ${t.QuickPostFragment}
211      ... on FanPost {
212        ${t.FanPostFragment}
213      }
214      ... on Note {
215        venueID
216        isPrivate
217        isEdited
218        isRecced
219        isReported
220        recs
221        replyCount
222        directReplyCount
223      }
224    }
225  }
226`;t.QuickPostFragment,t.FanPostFragment;let C=`
227  mutation MarkSeenMutation(
228    $communityID: String!,
229    $rootID: String!,
230    $contentIDs: [String!]!
231  ) {
232    markSeen(input: {
233      communityID: $communityID,
234      rootID: $rootID,
235      contentIDs: $contentIDs,
236    }) {
237      communityID
238      contentID
239      seen
240    }
241  }
242`,y=`
243  mutation UpdateAttachmentDimensions($communityID: String!, $id: String!, $heightToWidthRatio: Float!, $attachmentID: String!) {
244    updateAttachmentDimensions(input: { communityID: $communityID, id: $id, heightToWidthRatio: $heightToWidthRatio, attachmentID: $attachmentID }) {
245      id
246    }
247  }
248`,f=`
249  mutation IgnoreUser($userID: String!, $communityID: String!) {
250    ignoreUser(userID: $userID, communityID: $communityID) {
251      id
252      user {
253        id
254        username
255      }
256    }
257  }
258`,g=`
259  mutation UnignoreUser($userID: String!, $communityID: String!) {
260    unignoreUser(userID: $userID, communityID: $communityID) {
261      id
262    }
263  }
264`;t.NoteFragment,t.NoteFragment;let x=`
265  mutation CastPollVote($communityID: String!, $pollID: String!, $optionID: String!) {
266    castPollVote(communityID: $communityID, pollID: $pollID, optionID: $optionID) {
267      ${t.PollFragment}
268    }
269  }
270`,j=`
271  mutation SetContentIsTrustedMutation(
272    $communityID: String!
273    $contentID: String!
274    $isTrusted: Boolean!
275  ) {
276    setContentIsTrusted(
277      input: {
278        communityID: $communityID
279        contentID: $contentID
280        isTrusted: $isTrusted
281      }
282    ) {
283      id
284      type
285      ... on FanPost {
286        authorIsStaff
287        isReccedByStaff
288        isTrusted
289      }
290    }
291  }
292`;e.s(["CloseRepliesMutation",0,a,"DeleteContentObjectMutation",0,n,"OpenRepliesMutation",0,r,"PinContentObjectMutation",0,i,"RejectContentMutation",0,s,"SetContentIsTrustedMutation",0,j,"SetContentPremodMutation",0,l,"UnpinContentObjectMutation",0,o,"acknowledgeUserMessageMutation",0,d,"castPollVoteMutation",0,x,"createQuickPostMutation",0,c,"editQuickPostMutation",0,m,"ignoreUserMutation",0,f,"markSeenMutation",0,C,"recContentMutation",0,p,"unignoreUserMutation",0,g,"unrecContentMutation",0,h,"updateAttachmentDimensionsMutation",0,y,"updateUserSettingsMutation",0,u])},634344,274280,e=>{"use strict";var t=e.i(478902),n=e.i(298660),i=e.i(389959),o=e.i(401262),s=e.i(738886),a=e.i(391228),r={large:"s8iqe55 s8iqe54",medium:"s8iqe56 s8iqe54"};e.s(["default",0,({visible:e,onClose:l,children:c,size:u="large"})=>{let d=(0,i.useRef)(null);return(0,t.jsx)(o.CSSTransition,{in:e,timeout:200,nodeRef:d,classNames:{enterDone:"s8iqe51"},unmountOnExit:!0,children:(0,t.jsx)(n.FocusTrap,{active:e,focusTrapOptions:{clickOutsideDeactivates:!1,allowOutsideClick:!0,fallbackFocus:"#modal-content"},children:(0,t.jsxs)("div",{ref:d,className:"s8iqe50",onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation(),"Escape"===e.code&&l()},role:"presentation",children:[(0,t.jsx)("div",{className:"s8iqe52",onClick:e=>{e.stopPropagation(),e.preventDefault(),l()},role:"presentation"}),(0,t.jsxs)("div",{className:r[u],id:"modal-content",children:[(0,t.jsx)(s.default,{className:"s8iqe53",displayType:"cycloneSecondary",iconLeft:(0,t.jsx)(a.default,{}),onClick:e=>{e.preventDefault(),l()},text:""}),c]})]})})})}],274280),e.s([],634344)},69216,e=>{"use strict";var t=e.i(478902);e.s(["default",0,({className:e,width:n=6,height:i=10})=>(0,t.jsx)("svg",{className:e,width:n,height:i,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",children:(0,t.jsx)("path",{d:"M1.1342 0.801025L5.33325 5.00008L1.1342 9.19914L0.333252 8.3982L3.73137 5.00008L0.333252 1.60197L1.1342 0.801025Z"})})])},521372,601010,474481,866157,859573,545511,407987,849891,779765,372207,909968,e=>{"use strict";var t=e.i(478902);e.s(["default",0,({className:e="",fill:n="#000",width:i=24,height:o=24})=>(0,t.jsx)("svg",{className:e,width:i,height:o,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M12 2C13.3833 2 14.6837 2.26211 15.9004 2.78711C17.117 3.3121 18.1752 4.02485 19.0752 4.9248C19.9751 5.82476 20.6879 6.88302 21.2129 8.09961C21.7379 9.31628 22 10.6167 22 12C22 13.3833 21.7379 14.6837 21.2129 15.9004C20.6879 17.117 19.9751 18.1752 19.0752 19.0752C18.1752 19.9751 17.117 20.6879 15.9004 21.2129C14.6837 21.7379 13.3833 22 12 22C10.6167 22 9.31628 21.7379 8.09961 21.2129C6.88302 20.6879 5.82476 19.9751 4.9248 19.0752C4.02485 18.1752 3.3121 17.117 2.78711 15.9004C2.26211 14.6837 2 13.3833 2 12C2 10.6167 2.26211 9.31628 2.78711 8.09961C3.3121 6.88302 4.02485 5.82476 4.9248 4.9248C5.82476 4.02485 6.88302 3.3121 8.09961 2.78711C9.31628 2.26211 10.6167 2 12 2ZM12 4C9.76667 4 7.8752 4.7752 6.3252 6.3252C4.7752 7.8752 4 9.76667 4 12C4 14.2333 4.7752 16.1248 6.3252 17.6748C7.8752 19.2248 9.76667 20 12 20C13.877 20 15.5109 19.4503 16.9053 18.3555L14 15.4502C13.7 15.6335 13.3787 15.7706 13.0371 15.8623C12.6955 15.9539 12.3499 16 12 16C10.9 16 9.95814 15.6085 9.1748 14.8252C8.39147 14.0419 8 13.1 8 12C8 10.9 8.39147 9.95814 9.1748 9.1748C9.95814 8.39147 10.9 8 12 8C13.1 8 14.0419 8.39147 14.8252 9.1748C15.3598 9.70942 15.7121 10.3178 15.8818 11H13.7324C13.646 10.8545 13.5406 10.7164 13.4121 10.5879C13.0204 10.1962 12.55 10 12 10C11.45 10 10.9796 10.1962 10.5879 10.5879C10.1962 10.9796 10 11.45 10 12C10 12.55 10.1962 13.0204 10.5879 13.4121C10.9796 13.8038 11.45 14 12 14C12.55 14 13.0204 13.8038 13.4121 13.4121C13.5406 13.2836 13.646 13.1455 13.7324 13H15.877C15.8717 13.0208 15.8678 13.0418 15.8623 13.0625C15.7707 13.4041 15.6335 13.7332 15.4502 14.0498L18.3389 16.9258C19.4446 15.5269 20 13.8863 20 12C20 9.76667 19.2248 7.8752 17.6748 6.3252C16.1248 4.7752 14.2333 4 12 4ZM17.9941 15.8574L17.9863 15.8604C17.9857 15.8581 17.985 15.8558 17.9844 15.8535L17.9941 15.8574Z",fill:n})})],521372),e.s(["default",0,({className:e="",width:n=24,height:i=24,fill:o="currentColor",stroke:s="transparent",viewBox:a="0 0 24 24"})=>(0,t.jsxs)("svg",{className:e,width:n,height:i,viewBox:a,xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"Reply"}),(0,t.jsx)("path",{fill:o,stroke:s,d:"M9.709,6.837a1.5,1.5,0,0,0-2.6-1.018L1.648,11.733a1.5,1.5,0,0,0,0,2.034l5.458,5.914a1.5,1.5,0,0,0,2.6-1.018V15.75h6a7.5,7.5,0,0,1,7.5,7.5v-6a7.5,7.5,0,0,0-7.5-7.5h-6Z"})]})],601010),e.s(["default",0,({className:e="",fill:n="currentColor",width:i=24,height:o=24})=>(0,t.jsx)("svg",{className:e,width:i,height:o,viewBox:"0 0 24 24",fill:n,xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M12 5.99995C15.79 5.99995 19.17 8.12995 20.82 11.5C20.23 12.72 19.4 13.77 18.41 14.62L19.82 16.03C21.21 14.8 22.31 13.26 23 11.5C21.27 7.10995 17 3.99995 12 3.99995C10.73 3.99995 9.51 4.19995 8.36 4.56995L10.01 6.21995C10.66 6.08995 11.32 5.99995 12 5.99995ZM10.93 7.13995L13 9.20995C13.57 9.45995 14.03 9.91995 14.28 10.49L16.35 12.56C16.43 12.22 16.49 11.86 16.49 11.49C16.5 9.00995 14.48 6.99995 12 6.99995C11.63 6.99995 11.28 7.04995 10.93 7.13995ZM2.01 3.86995L4.69 6.54995C3.06 7.82995 1.77 9.52995 1 11.5C2.73 15.89 7 19 12 19C13.52 19 14.98 18.71 16.32 18.18L19.74 21.6L21.15 20.19L3.42 2.44995L2.01 3.86995ZM9.51 11.37L12.12 13.98
292C12.08 13.99 12.04 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 11.45 9.51 11.42 9.51 11.37ZM6.11 7.96995L7.86 9.71995C7.63 10.27 7.5 10.87 7.5 11.5C7.5 13.98 9.52 16 12 16C12.63 16 13.23 15.87 13.77 15.64L14.75 16.62C13.87 16.86 12.95 17 12 17C8.21 17 4.83 14.87 3.18 11.5C3.88 10.07 4.9 8.88995 6.11 7.96995Z",fill:n})})],474481),e.i(807738);var n=e.i(738886),i=e.i(422898),o=e.i(95411);e.s(["DeleteButton",0,({onClick:e,className:s})=>(0,t.jsx)(n.default,{className:s,text:"Delete post",displayType:"cycloneSecondary",iconRight:(0,t.jsx)(i.default,{width:20,height:20,fill:o.default.sys.color.primary}),onClick:t=>{t.stopPropagation(),t.preventDefault(),e()}})],866157);var s=e.i(389959),a=e.i(96302),r=e.i(597406),l=e.i(396902),c=e.i(509727),u=e.i(645904);e.s(["DeleteConfirm",0,({onDelete:e,contentObject:n,onCancel:d})=>{let{user:m}=(0,r.useAuth)(),{cycloneConfig:{serverURL:p}}=(0,l.useConfigContext)(),h=(0,s.useCallback)(async()=>{if(!m)return;let t=c.DeleteContentObjectMutation,i={contentID:n.id,communityID:n.community?.id},o=await (0,u.makeRequest)(`${p}/api`,t,i,m.cycloneToken);o.data&&o.data.deleteContent&&e&&e(o.data.deleteContent)},[n,m,p,e]);return(0,t.jsx)(a.ConfirmModalContent,{icon:(0,t.jsx)(i.default,{width:32,height:32,fill:`${o.default.sys.color.primary}`}),title:"Are you sure you want to delete your post?",description:"This can't be undone. There's no going back.",confirmText:"Delete forever",onConfirm:()=>{h()},onCancel:d})}],859573),e.s([],545511),e.s(["dmcaPolicyLink",0,"_1iqhwss3","dotsWrapper",0,"_1iqhwss6","icon",0,"_1iqhwss0","modalContent",0,"_1iqhwss4","popoverButton",0,"_1iqhwss2","popoverButtonContainer",0,"_1iqhwss1"],407987);var d=e.i(58742);e.s(["PinButton",0,({pinned:e,onClick:i,className:s})=>(0,t.jsx)(n.default,{className:s,text:e?"Unpin from feed":"Pin atop feed",displayType:"cycloneSecondary",iconRight:(0,t.jsx)(d.default,{width:20,height:20,fill:o.default.sys.color.primary}),onClick:e=>{e.stopPropagation(),e.preventDefault(),i()}})],849891),e.s(["PinConfirm",0,({onPin:e,contentObject:n,onCancel:i})=>{let{user:m}=(0,r.useAuth)(),{cycloneConfig:{serverURL:p}}=(0,l.useConfigContext)(),h=(0,s.useCallback)(async()=>{if(!m)return;let t=c.PinContentObjectMutation,i={objectID:n.id,communityID:n.community?.id},o=await (0,u.makeRequest)(`${p}/api`,t,i,m.cycloneToken);o.data&&o.data.pinContent&&e&&e(o.data.pinContent)},[n,m,p,e]);return(0,t.jsx)(a.ConfirmModalContent,{icon:(0,t.jsx)(d.default,{width:32,height:32,fill:`${o.default.sys.color.primary}`}),title:"This will replace any existing pinned post.",description:"Are you sure?",confirmText:"Pin this Post",onConfirm:()=>{h()},onCancel:i})}],779765),e.s([],372207),e.s(["UnpinConfirm",0,({onUnpin:e,contentObject:n,onCancel:i})=>{let{user:m}=(0,r.useAuth)(),{cycloneConfig:{serverURL:p}}=(0,l.useConfigContext)(),h=(0,s.useCallback)(async()=>{if(!m)return;let t=c.UnpinContentObjectMutation,i={communityID:n.community?.id},o=await (0,u.makeRequest)(`${p}/api`,t,i,m.cycloneToken);o.data&&o.data.removePinnedContent&&e&&e()},[n,m,p,e]);return(0,t.jsx)(a.ConfirmModalContent,{icon:(0,t.jsx)(d.default,{width:32,height:32,fill:`${o.default.sys.color.primary}`}),title:"This will unpin the current pinned post.",description:" Are you sure? You can always re-pin later.",confirmText:"Unpin Post",onConfirm:()=>{h()},onCancel:i})}],909968)},980603,e=>{"use strict";var t=e.i(478902);e.s(["default",0,({className:e="",width:n=24,height:i=24,fill:o="currentColor",filled:s=!1})=>(0,t.jsxs)("svg",{className:e,width:n,height:i,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{stroke:o,fill:s?o:"none",strokeLinecap:"round",strokeLinejoin:"round",d:"M5.33014 8.42566H0.830139V21.9257H5.33014V8.42566Z"}),(0,t.jsx)("path",{stroke:o,fill:s?o:"none",strokeLinecap:"round",strokeLinejoin:"round",d:"M5.33099 20.421C9.88265 20.421 10.2535 22.2335 16.4162 22.6037C18.1465 22.7076 19.3882 22.7972 20.5406 21.3197C23.0714 18.0748 24.287 10.3581 21.8323 10.3581H16.8181C15.7136 10.3581 14.8181 9.46264 14.8181 8.35807V4.46807C14.8181 1.44807 10.4002 -0.136834 10.4002 3.24807C10.4002 5.67566 9.47
29252 7.34449 7.92993 8.81464C7.17404 9.53378 6.29025 9.91876 5.33099 10.1244"})]})])}]);
293
294//# debugId=dc5b11ce-4e43-9caf-f746-8a8cbd931387
295//# sourceMappingURL=2a-603a-50do2.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.