PageSourceSearch

https://www.medialternatives.com/_next/static/chunks/app/page-6bf06d26a69de6d9.js

js medialternatives.com collected 2026-10-02 16:34:10 UTC 6,372 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3831,8974],{31663:(e,r,t)=>{Promise.resolve().then(t.bind(t,67893))},67893:(e,r,t)=>{"use strict";t.d(r,{default:()=>m});var a=t(34802),s=t(1946),n=t(83583),o=t.n(n),l=t(15550),d=t(71908),i=t(57306),c=t(96779),f=t(84354),g=t(38776),h=t(77105);let x=e=>{let{post:r,className:t="",showExcerpt:s=!0,showAuthor:n=!0,showDate:l=!0}=e,i=(0,f.To)(r,"full"),x=(0,f.wO)(r),u=(0,f.D)(r),m=(0,f.gQ)(r,250);return(0,a.jsxs)("article",{id:"post-".concat(r.id),className:"big-post ".concat(d.EA.BIG_POST_CLASS," ").concat(t),children:[(0,a.jsxs)("header",{className:"entry-header",children:[(l||n)&&(0,a.jsxs)("div",{className:"entry-meta",children:[l&&(0,a.jsx)("time",{className:"entry-date published",dateTime:r.date,children:(0,f.Yq)(r.date)})," ",n&&(0,a.jsx)(g.default,{author:x,authorId:u,showPrefix:!0})]}),(0,a.jsx)("h2",{className:"entry-title",children:(0,a.jsx)(o(),{href:"/".concat(r.slug),dangerouslySetInnerHTML:{__html:r.title.rendered}})}),i&&(0,a.jsx)("div",{className:"entry-thumbnail",children:(0,a.jsx)(o(),{href:"/".concat(r.slug),children:(0,a.jsx)("div",{style:{position:"relative",width:"100%",height:"400px"},children:(0,a.jsx)(c.default,{src:i,alt:r.title.rendered,fill:!0,style:{objectFit:"cover"},sizes:"100vw",priority:!0})})})})]}),s&&m&&(0,a.jsxs)("div",{className:"entry-content",children:[(0,a.jsx)("p",{className:"text-pretty",children:m}),(0,a.jsx)("div",{className:"mt-3 mb-4",children:(0,a.jsx)(h.default,{href:"/".concat(r.slug),children:"Read full story →"})})]})]})},u=e=>{let{posts:r,showFeatured:t=!0,className:s=""}=e;return r&&0!==r.length?(0,a.jsxs)("div",{id:"posts-container",className:"row ".concat(s),children:[t&&r.length>0&&(0,a.jsx)(x,{post:r[0]}),r.slice(+!!t).map(e=>(0,a.jsx)(i.A,{post:e},e.id))]}):(0,a.jsx)("div",{className:"posts-container",children:(0,a.jsx)("p",{children:"No posts found."})})},m=e=>{let{initialPosts:r,initialPagination:t,className:n="",categoryId:i,authorId:c,tagId:f}=e,[g,h]=(0,s.useState)(r),[x,m]=(0,s.useState)(t),[p,b]=(0,s.useState)(!1),[y,j]=(0,s.useState)(null),T=async()=>{if(x.hasNext&&!p){b(!0),j(null);try{let e;e=i?await l.a.getPostsByCategoryWithPagination(i,{per_page:d.jx.POSTS_PER_PAGE,page:x.nextPage,_embed:!0}):c?await l.a.getPostsByAuthorWithPagination(c,{per_page:d.jx.POSTS_PER_PAGE,page:x.nextPage,_embed:!0}):f?await l.a.getPostsByTagWithPagination(f,{per_page:d.jx.POSTS_PER_PAGE,page:x.nextPage,_embed:!0}):await l.a.getPostsWithPagination({per_page:d.jx.POSTS_PER_PAGE,page:x.nextPage,_embed:!0}),h(r=>[...r,...e.data]),m(e.pagination)}catch(e){console.error("Error loading more posts:",e),j(e instanceof Error?e.message:"Error loading more posts")}finally{b(!1)}}};return(0,a.jsxs)("div",{className:"load-more-container ".concat(n),children:[(0,a.jsx)(u,{posts:g,showFeatured:!0}),x.hasNext&&(0,a.jsx)("div",{className:"text-center mt-5 mb-4",children:(0,a.jsx)("button",{onClick:T,disabled:p,className:"btn btn-lg load-more-btn",style:{minWidth:"240px",padding:"0.75rem 2rem",backgroundColor:p?"#6c757d":"#ffffff",borderColor:p?"#6c757d":"#0d6efd",color:p?"#ffffff":"#0d6efd",fontWeight:"600",fontSize:"1rem",borderRadius:"0.375rem",border:"2px solid",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",textTransform:"none",letterSpacing:"0.3px"},onMouseEnter:e=>{p||(e.currentTarget.style.backgroundColor="#0d6efd",e.currentTarget.style.color="#ffffff",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 6px rgba(13, 110, 253, 0.25)")},onMouseLeave:e=>{p||(e.currentTarget.style.backgroundColor="#ffffff",e.currentTarget.style.color="#0d6efd",e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="0 1px 3px rgba(0, 0, 0, 0.1)")},children:p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"}),"Loading More Posts..."]}):(0,a.jsxs)(a.Fragment,{children:["Load More Posts",(0,a.jsxs)("span",{style:{fontSize:"0.85em",opacity:.8,marginLeft:"8px",fontWeight:"500"},children:["(",x.total-g.length," remaining)"]})]})})}),y&&(0,a.jsxs)("div",{className:"alert alert-warning mt-3",style:{borderRadius:"0.5rem"},children:[(0,a.jsx)("strong",{children:"Error:"})," ",y,(0,a.jsx)("button",{onClick:T,className:"btn btn-sm ms-2",style:{backgroundColor:"#ffffff",borderColor:"#f0ad4e",color:"#f0ad4e",fontWeight:"600",borderRadius:"0.375rem",border:"2px s
1olid",transition:"all 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#f0ad4e",e.currentTarget.style.color="#ffffff"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#ffffff",e.currentTarget.style.color="#f0ad4e"},children:"Try Again"})]}),!x.hasNext&&g.length>0&&(0,a.jsx)("div",{className:"text-center mt-4 mb-4",children:(0,a.jsxs)("div",{className:"alert alert-info",children:[(0,a.jsx)("strong",{children:"You've reached the end!"}),(0,a.jsxs)("p",{className:"mb-0",children:["You've viewed all ",g.length," posts.",(0,a.jsx)(o(),{href:"/blog",className:"alert-link ms-1",children:"Browse by categories"})," or",(0,a.jsx)("a",{href:"#",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"alert-link ms-1",children:"scroll to top"}),"."]})]})}),!1]})}},77105:(e,r,t)=>{"use strict";t.d(r,{default:()=>o});var a=t(34802);t(1946);var s=t(83583),n=t.n(s);let o=e=>{let{href:r,children:t,className:s="",style:o={}}=e,l={display:"inline-block",padding:"0.5rem 1.25rem",backgroundColor:"#ffffff",borderColor:"#0d6efd",color:"#0d6efd",fontWeight:"600",fontSize:"0.875rem",borderRadius:"0.375rem",border:"2px solid",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",textDecoration:"none",letterSpacing:"0.3px",...o};return(0,a.jsx)(n(),{href:r,className:"btn continue-reading-btn ".concat(s),style:l,onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#0d6efd",e.currentTarget.style.color="#ffffff",e.currentTarget.style.transform="translateY(-1px)",e.currentTarget.style.boxShadow="0 2px 6px rgba(13, 110, 253, 0.25)"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#ffffff",e.currentTarget.style.color="#0d6efd",e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="0 1px 3px rgba(0, 0, 0, 0.1)"},children:t})}}},e=>{var r=r=>e(e.s=r);e.O(0,[3583,2808,5550,7306,5591,8705,7358],()=>r(31663)),_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.