PageSourceSearch

https://hammerandhope.org/_next/static/chunks/pages/forums/%5Bslug%5D-cdb981082a748ee9.js

js hammerandhope.org collected 2026-10-02 03:55:21 UTC 10,944 bytes, 1 lines download raw bytes

1!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]="2b5f00b5-40bb-458c-a5ac-2e81fdf83888",e._sentryDebugIdIdentifier="sentry-dbid-2b5f00b5-40bb-458c-a5ac-2e81fdf83888")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[362],{4399:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forums/[slug]",function(){return t(4693)}])},4693:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return S},default:function(){return R}});var r=t(4043),i=t(5893),a=t(7294),l=t(2700),s=t(4340),o=t(5675),c=t.n(o),u=t(1163),d=t(7132),h=t(9375),m=t.n(h),v=t(4279),f=t(1664),g=t.n(f),x=t(5103),p=t(4959),j=t(8362),w=t(5997),N=t(2261),b=t(5678),y=t(8437),_=t(5814),C=t(4536),E=t(9182),k=t(5698),A=t(2792),I=t.n(A),L=t(4155),S=!0;function R(e){var n=e.currentForum,t=e.authors,l=(e.homePageData,e.initialSelectedContentIndex),o=e.ogImage,h=e.ogTitle,m=e.ogDescription,f=e.ogUrl,A=e.forumUrl,L=(0,u.useRouter)(),S=(0,r._)((0,a.useState)(void 0===l?0:l),2),R=S[0],H=S[1],D=(0,r._)((0,a.useState)(!1),2),T=D[0],B=D[1],M=(0,a.useRef)(null),P=(0,r._)((0,a.useState)(0),2),z=P[0],Z=P[1],U=(0,a.useRef)(null),q=(0,a.useRef)(null),F=(0,r._)((0,a.useState)(0),2),Y=F[0],J=F[1];if(!n)return(0,i.jsx)(j.Z,{});var X=n.title,G=n.deck,K=n.cover,Q=n.mobileCover,V=n.imageCaption,W=n.pageBuilder,$=n.verticalHeroLayout,ee=(0,b.i)(),en=null==ee?void 0:ee.width,et=(null!=en?en:0)<768&&Q?Q:K,er=(0,r._)((0,a.useState)(null),2),ei=(er[0],er[1]),ea=(0,r._)((0,a.useState)(!1),2),el=ea[0],es=ea[1],eo=W.map(function(e){return e.author}),ec=W&&W.length>0&&R<W.length?W[R]:null;(0,a.useEffect)(function(){W&&W.length>0&&R>=W.length&&H(0)},[W,R]),(0,a.useLayoutEffect)(function(){if(W&&0!==W.length){var e=L.isReady?L.query.article:null,n=new URLSearchParams(window.location.search).get("article"),t=function(e){if(null==e)return null;var n=Array.isArray(e)?e[0]:e;if("string"!=typeof n)return null;try{return decodeURIComponent(n).trim().toLowerCase()||null}catch(e){return n.trim().toLowerCase()||null}}(null!=e?e:n);if(t){var r=W.findIndex(function(e){var n;return(null!==(n=e.slug)&&void 0!==n?n:"").toString().trim().toLowerCase()===t});-1!==r&&H(r)}}},[L.isReady,L.query.article,W]),(0,a.useEffect)(function(){es(!0);var e=function(){M.current&&Z(Math.max((null!=en?en:0)>768?80:16,M.current.getBoundingClientRect().top))};return e(),window.addEventListener("scroll",e),window.addEventListener("resize",e),function(){window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[en]),(0,a.useEffect)(function(){var e=function(){if(U.current&&q.current){var e=U.current.getBoundingClientRect().top;J(q.current.getBoundingClientRect().top-e)}};return e(),window.addEventListener("scroll",e),window.addEventListener("resize",e),function(){window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[R,W]);var eu=function(e){if(e!==R&&(null===(r=window.umami)||void 0===r?void 0:r.track)){var t,r,i,a,l=(null==W?void 0:null===(a=W[e])||void 0===a?void 0:null===(i=a.author)||void 0===i?void 0:i.name)||"unknown";window.umami.track("forum_piece_switch",{forum:(null==n?void 0:n.slug)||L.query.slug||"unknown",author:l})}H(e);var s=null==W?void 0:null===(t=W[e])||void 0===t?void 0:t.slug;s&&(null==n?void 0:n.slug)&&L.replace({pathname:"/forums/[slug]",query:{slug:n.slug,article:s}},void 0,{shallow:!0}),window.scrollTo({top:document.getElementById("forum-content").offsetTop-100,behavior:"smooth"}),B(!1)},ed=et?(0,d.pz)(et):{width:1200,height:630},eh=ed.width,em=ed.height;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{title:h||X,description:m||G,canonical:A||"https://hammerandhope.org/forums/"+n.slug,openGraph:{url:f||"https://hammerandhope.org/forums/"+n.slug,title:h||X,description:m||G,images:o?[{url:o,width:1200,height:630,alt:X}]:[],site_name:"Hammer & Hope",type:"article"},twitter:{handle:"@hammerandhope",site:"@hammerandhope",cardType:"summary_large_image",title:h||X,description:m||G,image:o}}),el?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.default,{bkg:"white"}),(0,i.jsx)("div",{className:I().forumLayout,children:(0,i.jsxs)("div",{className:I().Article,children:[$?(0,i.jsxs)("div",{className:I().articleHeadStacked,children:[(0,i.jsxs)("div",{className:I().articleHeadStackedLeft,children:[(0,i.jsx)("h1",{className:I().title,lang:"en",children:X}),(0,i.jsx)("h4",{className:I().excerpt,children:G}),(0,i.jsx)("div",{className:"".concat(I().articleDetails," ").concat(I().articleDetailsForumHero),children:(0,i.jsx)(w.Z,{authors:t,urlFor:O,layout:"inline"})})]}),et&&(0,i.jsxs)("div",{className:I().articleHeadStackedRight,children:[(0,i.jsx)(c(),{src:O(et).url(),className:I().hero,width:eh,height:em,alt:"Hero Image for "+X,loading:"eager",unoptimized:(0,E.s)(et)}),V&&(0,i.jsx)("div",{className:I().heroCaptionAlt,children:(0,i.jsx)(v.YI,{value:V}
1)})]})]}):(0,i.jsxs)("div",{className:I().articleHead,children:[(0,i.jsxs)("div",{className:I().articleHeadLeft,children:[(0,i.jsx)("h1",{className:I().title,lang:"en",children:X}),(0,i.jsx)("h4",{className:I().excerpt,children:G}),(0,i.jsx)("div",{className:"".concat(I().articleDetails," ").concat(I().articleDetailsForumHero),children:(0,i.jsx)(w.Z,{authors:t,urlFor:O,layout:"inline"})})]}),et&&(0,i.jsxs)("div",{className:I().articleHeadRight,children:[(0,i.jsx)(c(),{src:O(et).url(),className:I().hero,width:eh,height:em,alt:"Hero Image for "+X,loading:"eager",unoptimized:(0,E.s)(et)}),V&&(0,i.jsx)("div",{className:I().heroCaptionAlt,children:(0,i.jsx)(v.YI,{value:V})})]})]}),(0,i.jsxs)("div",{id:"forum-content",className:I().forumContentContainer,children:[(0,i.jsx)("div",{className:I().article,ref:M,children:ec?(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:I().forumEntryHeader,children:[(0,i.jsx)("h2",{ref:U,className:I().forumEntryTitle,children:ec.title}),(0,i.jsx)("h3",{className:I().forumEntrySubtitle,children:ec.subtitle}),(0,i.jsx)("div",{className:I().articleDetails,children:ec.author&&(0,i.jsx)("div",{className:I().forumEntryAuthor,children:!1!==ec.author.showAuthorPage?(0,i.jsx)(g(),{href:ec.author.custom_path?"/author/"+ec.author.custom_path:"/author/"+ec.author.name.replace(/\s+/g,"-").toLowerCase(),className:I().forumEntryAuthorLink,children:(0,i.jsx)("strong",{children:ec.author.name})}):(0,i.jsx)("strong",{children:ec.author.name})})}),(null!=en?en:0)<1200&&W&&W.length>0&&(0,i.jsxs)("div",{className:I().mobileContentSelector,style:{backgroundColor:"var(--gold)",zIndex:10,width:"100%"},children:[(0,i.jsxs)("div",{className:I().mobileDropdownToggle,onClick:function(){var e;(null===(e=window.umami)||void 0===e?void 0:e.track)&&window.umami.track("forum_contributors_click",{forum:(null==n?void 0:n.slug)||L.query.slug||"unknown",action:T?"collapse":"expand"}),B(!T)},children:[(0,i.jsx)("span",{children:"Contributors"}),(0,i.jsxs)("div",{className:I().dropdownArrowContainer,children:[(0,i.jsx)(c(),{src:"/img/dropdown-arrow.svg",width:12,height:12,alt:"Toggle dropdown",style:{transform:T?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.3s ease"}}),!T&&(0,i.jsx)("p",{children:"READ MORE"})]})]}),(0,i.jsx)("div",{className:"".concat(I().mobileAuthorsListWrapper," ").concat(T?I().open:""),children:(0,i.jsx)("div",{className:I().mobileAuthorsList,children:W.map(function(e,n){var t;return(0,i.jsxs)("div",{className:"".concat(I().mobileAuthorItem," ").concat(n===R?I().activeAuthor:""),onClick:function(){return eu(n)},children:[n===R&&(0,i.jsx)(c(),{src:"/img/rhombus.svg",width:12,height:12,alt:"",className:I().mobileAuthorRhombus}),(null===(t=e.author)||void 0===t?void 0:t.name)||"Unknown Author"]},n)})})})]})]}),(0,i.jsx)("div",{ref:q,children:(0,i.jsx)(v.YI,{value:ec.body,components:{types:{image:function(e){var n=e.value,t=(0,C.J)(n).split("-")[1].split("x"),r=parseInt(t[0].replace(/^\D+/g,"")),a=parseInt(t[1].replace(/^\D+/g,"")),l=r>a?I().articlePhoto:I().verticalArticlePhoto;return(0,i.jsx)("div",{className:I().imageContainer,children:(0,i.jsx)(c(),{className:l,onClick:function(){return ei(n)},src:(0,C.J)(n),width:r,height:a,alt:"Inline image for "+X,loading:"eager",unoptimized:(0,E.s)(n)})})},spaceBreak:function(e){var n=e.value,t=(0,k.k7)(n);return(0,i.jsx)("div",{style:{height:t,minHeight:t,overflow:"hidden"},"aria-hidden":"true"})}},block:{blockquote:function(e){var n=e.children;return(0,i.jsx)("div",{className:I().textContainer,children:(0,i.jsx)("blockquote",{className:I().inlineQuote,children:n})})},h1:function(e){var n=e.children;return(0,i.jsx)("div",{className:I().headlineContainer,children:(0,i.jsx)("h1",{className:I().h1,children:n})})},h3:function(e){var n=e.children;return(0,i.jsx)("div",{className:I().textContainer,children:(0,i.jsx)("h3",{className:I().h3,children:n})})},h6:function(e){var n=e.children;return(0,i.jsx)("div",{className:I().captionContainer,children:(0,i.jsx)("p",{className:I().caption,children:n})})},normal:function(e){var n=e.children;return(0,i.jsx)("div",{className:I().textContainer,children:(0,i.jsx)("p",{className:I().p,children:n})})}},marks:{code:function(e){var n=e.children;return(0,i.jsx)("code",{className:null===I()||void 0===I()?void 0:I().code,children:n})}}}})})]}):(0,i.jsx)("p",{children:"No content available"})}),(null!=en?en:0)>1400&&(0,i.jsxs)("div",{className:I().becomeAMemberSidebar,style:{to
1p:"".concat(z+Y,"px"),display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start"},children:[(0,i.jsxs)("h3",{children:["HAMMER&",(0,i.jsx)("br",{}),"HOPE&",(0,i.jsx)("br",{}),"YOU"]}),(0,i.jsx)("h5",{children:"PLEASE DONATE MONTHLY"}),(0,i.jsx)(g(),{href:"/membership",style:{textDecoration:"none"},"data-umami-event":"forum_cta_click","data-umami-event-forum":(null==n?void 0:n.slug)||(null==n?void 0:n.title)||"unknown","data-umami-event-placement":"sidebar",children:(0,i.jsx)("button",{className:I().becomeAMemberButton,children:"BECOME A MEMBER"})})]}),(null!=en?en:0)>1200&&W&&W.length>0&&(0,i.jsxs)("div",{className:I().authorsSidebar,style:{top:"".concat(z,"px")},children:[(0,i.jsx)("h3",{className:I().contributorsHeading,children:"CONTRIBUTORS"}),W.map(function(e,n){var t;return(0,i.jsx)("div",{className:"".concat(I().sidebarAuthorItem," ").concat(n===R?I().activeAuthor:""),onClick:function(){return eu(n)},children:(null===(t=e.author)||void 0===t?void 0:t.name)||"Unknown Author"},n)})]})]}),(0,i.jsx)(_.Z,{placement:"forum"}),(0,i.jsx)(y.Z,{authors:[eo[R]],slug:n.slug}),(0,i.jsx)(N.Z,{}),(0,i.jsx)(p.Z,{})]})})]}):(0,i.jsx)(j.Z,{})]})}var H={projectId:"lcwchpdh",dataset:"production",apiVersion:"2022-07-22",token:L.env.SANITY_ACCESS_TOKEN,useCdn:!0},D=(0,l.eI)(H),T=m()(D);function O(e){return T.image(e)}}},function(e){e.O(0,[1664,5675,4711,1840,4279,5103,1770,1566,2888,9774,179],function(){return e(e.s=4399)}),_N_E=e.O()}]);

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.