PageSourceSearch

https://meme-soundboards.com/_next/static/chunks/app/page-226c84ac4cf3ed51.js

js meme-soundboards.com collected 2026-10-04 07:43:46 UTC 16,611 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{76:(e,r,t)=>{"use strict";t.d(r,{default:()=>u});var n=t(5004),s=t(2864),l=t(6809),d=t(7413),o=t(8066),i=t(9419);let a=(0,s.forwardRef)(({initialSounds:e,isMobileDevice:r,title:t},a)=>{let u=(0,l.useRouter)(),c=r?8:22,[m,h]=(0,s.useState)(e.slice(0,c)),[p,g]=(0,s.useState)(1),[f,x]=(0,s.useState)(!1),[w,v]=(0,s.useState)(!0),[b,j]=(0,s.useState)(!1),[N,y]=(0,s.useState)(!1),[E,S]=(0,s.useState)(!1),T=(0,s.useRef)(null),k=(0,s.useRef)(null),A=(0,s.useRef)(null),R=(0,s.useRef)(null),L=(0,s.useRef)(!1),C=(0,s.useRef)(!1),M=(0,s.useRef)([]),$=(0,s.useRef)(0),I=(0,s.useRef)(new Map),[F,P]=(0,s.useState)(!1);(0,s.useEffect)(()=>{P(!0)},[]);let V=r?4:11,_=4*V,O=(0,s.useCallback)(async()=>{if(!f&&w){m.length,window.scrollY,x(!0);try{let e,t;if(b){e=r?16:44;let n=await i.uE.getNewSounds(p+1,e);t=n?.data&&"object"==typeof n.data&&"results"in n.data&&n.data.results||[]}else{e=r?8:22;let n=await i.uE.getNewSounds(p+1,e);t=n?.data&&"object"==typeof n.data&&"results"in n.data&&n.data.results||[]}h(e=>[...e,...t]),g(e=>e+1),b||(j(!0),setTimeout(()=>{if(A.current){let e=A.current.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:e-100,behavior:"smooth"})}},150)),(0===t.length||t.length<e)&&v(!1)}catch(e){}x(!1)}},[p,f,w,r,b,m.length]);(0,s.useEffect)(()=>{if(!b)return;let e=new IntersectionObserver(e=>{e[0].isIntersecting&&w&&!f&&O()},{rootMargin:"200px",threshold:.1}),r=T.current;return r&&e.observe(r),()=>{r&&e.unobserve(r)}},[O,w,f,b]);let Y=(0,s.useCallback)(()=>{if(C.current&&(C.current=!1,S(!1),M.current=[],$.current=0),L.current){L.current=!1,y(!1),R.current&&(clearTimeout(R.current),R.current=null),I.current.forEach(e=>{window.removeEventListener("sound-ended",e)}),I.current.clear(),window.dispatchEvent(new CustomEvent("pause-all-sounds",{detail:{exceptId:null}}));return}if(0===m.length)return;L.current=!0,y(!0);let e=r=>{if(!L.current&&r>0)return;if(r>=m.length){L.current=!1,y(!1);return}let t=m[r];window.dispatchEvent(new CustomEvent("play-sound-auto",{detail:{soundId:t.id}}));let n=s=>{s.detail?.soundId===t.id&&(window.removeEventListener("sound-ended",n),I.current.delete(t.id),R.current&&clearTimeout(R.current),L.current&&(R.current=setTimeout(()=>{e(r+1)},300)))};I.current.set(t.id,n),window.addEventListener("sound-ended",n),R.current&&clearTimeout(R.current),R.current=setTimeout(()=>{window.removeEventListener("sound-ended",n),I.current.delete(t.id),L.current&&e(r+1)},5e3)};e(0)},[m]),z=(0,s.useCallback)(()=>{if(L.current&&(L.current=!1,y(!1)),C.current){C.current=!1,S(!1),M.current=[],$.current=0,R.current&&(clearTimeout(R.current),R.current=null),I.current.forEach(e=>{window.removeEventListener("sound-ended",e)}),I.current.clear(),window.dispatchEvent(new CustomEvent("pause-all-sounds",{detail:{exceptId:null}}));return}if(0===m.length)return;let e=Array.from({length:m.length},(e,r)=>r);for(let r=e.length-1;r>0;r--){let t=Math.floor(Math.random()*(r+1));[e[r],e[t]]=[e[t],e[r]]}M.current=e,$.current=0,C.current=!0,S(!0);let r=()=>{if(!C.current)return;if($.current>=M.current.length){let e=Array.from({length:m.length},(e,r)=>r);for(let r=e.length-1;r>0;r--){let t=Math.floor(Math.random()*(r+1));[e[r],e[t]]=[e[t],e[r]]}M.current=e,$.current=0}let e=m[M.current[$.current]];window.dispatchEvent(new CustomEvent("play-sound-auto",{detail:{soundId:e.id}}));let t=n=>{n.detail?.soundId===e.id&&(window.removeEventListener("sound-ended",t),I.current.delete(e.id),R.current&&clearTimeout(R.current),C.current&&($.current++,R.current=setTimeout(()=>{r()},300)))};I.current.set(e.id,t),window.addEventListener("sound-ended",t),R.current&&clearTimeout(R.current),R.current=setTimeout(()=>{window.removeEventListener("sound-ended",t),I.current.delete(e.id),C.current&&($.current++,r())},5e3)};r()},[m]);return(0,s.useEffect)(()=>()=>{R.current&&clearTimeout(R.current),I.current.forEach(e=>{window.removeEventListener("sound-ended",e)}),I.current.clear(),L.current=!1,y(!1),C.current=!1,S(!1),M.current=[],$.current=0},[]),(0,s.useImperativeHandle)(a,()=>({handleAutoPlay:Y,handleRandomPlay:z,playRandomSound:z})),(0,n.jsxs)("section",{className:"w-full pt-4 pb-0 sound-section-container",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between mb-4 gap-1 sm:gap-2 w-full overflow-hidden sound-section-header",children:[(0,n.jsxs)("h2",{className:"text-base sm:text-lg md:text-xl font-bold flex items-center flex-shrink-0 min-w-0",children:[(0,n.jsx)("span",{className:"text-lg sm:text-xl md:text-2xl mr-1 sm:mr-2"}),(0,n.jsx)("span",{className:"whitespace-nowrap truncate",children:t||"New Meme Soundboard"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-1 sm:gap-1.5 md:gap-2 ml-1 sm:ml-2 flex-nowrap flex-shrink-0",children:[(0,n.jsxs)(d.$,{className:`px-3 py-1.5 text-sm font-semibold text-white rounded-lg transition-all whitespace-nowrap flex-shrink-0 ${N?"bg-gradient-to-r from-red-400 to-red-500 hover:from-red-500 hover:to-red-600":"bg-gradient-to-r from-red-500 to-red-600 hover:from-red-600 hover:to-red-700"}`,onClick:Y,disabled:0===m.length,children:[(0,n.jsx)("span",{className:"hidden sm:inline",children:N?"Stop Auto":"Auto Play"}),(0,n.jsx)("span",{className:"sm:hidden",children:N?"Stop":"Auto"})]}),(0,n.jsxs)(d.$,{className:`px-3 py-1.5 text-sm font-semibold text-white rounded-lg transition-all whitespace-nowrap flex-shrink-0 ${E?"bg-gradient-to-r from-purple-400 to-purple-500 hover:from-purple-500 hover:to-purple-600":"bg-gradient-to-r from-purple-500 to-purple-600 hover:from-purple-600 hover:to-purple-700"}`,onClick:z,disabled:0===m.length,children:[(0,n.jsx)("span",{className:"hidden sm:inline",children:E?"Stop Random":"Random Play"}),(0,n.jsx)("span",{className:"sm:hidden",children:E?"Stop":"Random"})]}),(0,n.jsxs)(d.$,{className:"px-3 py-1.5 text-sm font-semibold text-white rounded-lg transition-all whitespace-nowrap flex-shrink-0 bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700",onClick:()=>u.push("/new"),children:[(0,n.jsx)("span",{className:"hidden sm:inline",children:"View All ?"}),(0,n.jsx)("span",{className:"sm:hidden",children:"View ?"})]})]})]}),m.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"space-y-4",children:b?Array.from({length:Math.ceil(m.length/_)},(e,t)=>{let s=t*_,l=Math.min(s+_,m.length),d=m.slice(s,l);return(0,n.jsx)("div",{children:(0,n.jsx)("div",{children:Array.from({length:Math.ceil(d.length/V)},(e,t)=>
1{let l=t*V,i=Math.min(l+V,d.length),a=d.slice(l,i);return 0===a.length?null:(0,n.jsx)("div",{className:"sound-row-container",children:(0,n.jsx)("div",{className:"sound-grid grid grid-cols-4 sm:grid-cols-5 md:grid-cols-6 lg:grid-cols-8 xl:grid-cols-11 gap-0 sm:gap-2 md:gap-2 lg:gap-3 sound-grid-container",children:a.map((e,l)=>{let d=s+t*V+l;return(0,n.jsx)(o.A,{sound:e,isAboveTheFold:d<(r?16:44)},e.id)})})},t)})})},t)}):(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:Array.from({length:2},(e,t)=>{let s=t*V,l=Math.min(s+V,m.length),d=m.slice(s,l);return 0===d.length?null:(0,n.jsx)("div",{className:"sound-row-container",children:(0,n.jsx)("div",{className:"sound-grid grid grid-cols-4 sm:grid-cols-5 md:grid-cols-6 lg:grid-cols-8 xl:grid-cols-11 gap-0 sm:gap-2 md:gap-2 lg:gap-3 sound-grid-container",children:d.map((e,s)=>{let l=t*V+s;return(0,n.jsx)(o.A,{sound:e,isAboveTheFold:l<(r?16:44)},e.id)})})},t)})}),w&&(0,n.jsx)("div",{ref:A})]})}),(0,n.jsx)("div",{ref:k,className:`flex justify-center mt-4 pb-2 load-more-container ${w?"":"hidden"}`,children:w&&(0,n.jsx)(n.Fragment,{children:b?(0,n.jsx)("div",{ref:T,className:"flex justify-center py-4",children:f?(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"}),(0,n.jsx)("span",{className:"text-lg text-gray-600 dark:text-gray-300",children:"Loading more sounds..."})]}):(0,n.jsx)("div",{className:"text-lg text-gray-500 dark:text-gray-400",children:"Scroll down to load more sounds"})}):(0,n.jsx)(d.$,{onClick:O,disabled:f,className:"text-white transition-all border-0 px-5 py-2 text-sm font-semibold disabled:opacity-50 disabled:cursor-not-allowed rounded-lg bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700",children:f?(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-current"}),(0,n.jsx)("span",{children:"Loading..."})]}):"Load More Sounds ?"})})}),!w&&m.length>0&&(0,n.jsx)("div",{className:"flex justify-center mt-8 py-4",children:(0,n.jsx)("div",{className:"text-lg text-gray-500 dark:text-gray-400",children:"You've reached the end of new sounds!"})})]}):(0,n.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No sounds found."})]})});a.displayName="AutoLoadingNewSoundsSection";let u=a},3305:(e,r,t)=>{"use strict";t.d(r,{default:()=>i});var n=t(5004),s=t(2864),l=t(8066),d=t(7413);let o=(0,s.forwardRef)(({title:e,sounds:r,initialCount:t=20,loadMoreCount:o=10,viewAllLink:i,onLoadMore:a,hasMoreSounds:u=!1,maxLines:c=4,useCardView:m=!1,useCompactView:h=!1,showLoadMore:p=!0,showRedirectButton:g=!1,showLoadingIndicator:f=!0,customCardComponent:x,onRainEffect:w,isMobileDevice:v},b)=>{let[j,N]=(0,s.useState)(!1),[y,E]=(0,s.useState)(v??!1),[S,T]=(0,s.useState)(r),[k,A]=(0,s.useState)(!1),[R,L]=(0,s.useState)(!1),[C,M]=(0,s.useState)(0),$=(0,s.useRef)(null),I=(0,s.useRef)(!1),F=(0,s.useRef)(!1),P=(0,s.useRef)([]),V=(0,s.useRef)(0),_=(0,s.useRef)(new Map),O=(0,s.useDeferredValue)(S);(0,s.useEffect)(()=>{let e=()=>E(window.innerWidth<=768);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,s.useEffect)(()=>{r.length>S.length&&(0,s.startTransition)(()=>{T(r)})},[r,S.length]);let Y=async()=>{if(!j&&a){N(!0);try{await a()}catch(e){}finally{N(!1)}}},z=()=>{if(F.current&&(F.current=!1,L(!1),P.current=[],V.current=0),I.current){I.current=!1,A(!1),M(0),$.current&&(clearTimeout($.current),$.current=null),_.current.forEach(e=>{window.removeEventListener("sound-ended",e)}),_.current.clear(),window.dispatchEvent(new CustomEvent("pause-all-sounds",{detail:{exceptId:null}}));return}if(0===W.length)return;I.current=!0,A(!0),M(0);let e=r=>{if(!I.current&&r>0)return;if(r>=W.length){I.current=!1,A(!1),M(0);return}let t=W[r];M(r),window.dispatchEvent(new CustomEvent("play-sound-auto",{detail:{soundId:t.id}}));let n=s=>{s.detail?.soundId===t.id&&(window.removeEventListener("sound-ended",n),_.current.delete(t.id),$.current&&clearTimeout($.current),I.current&&($.current=setTimeout(()=>{e(r+1)},300)))};
1_.current.set(t.id,n),window.addEventListener("sound-ended",n),$.current&&clearTimeout($.current),$.current=setTimeout(()=>{window.removeEventListener("sound-ended",n),_.current.delete(t.id),I.current&&e(r+1)},5e3)};e(0)},D=()=>{if(I.current&&(I.current=!1,A(!1),M(0)),F.current){F.current=!1,L(!1),P.current=[],V.current=0,$.current&&(clearTimeout($.current),$.current=null),_.current.forEach(e=>{window.removeEventListener("sound-ended",e)}),_.current.clear(),window.dispatchEvent(new CustomEvent("pause-all-sounds",{detail:{exceptId:null}}));return}if(0===W.length)return;let e=Array.from({length:W.length},(e,r)=>r);for(let r=e.length-1;r>0;r--){let t=Math.floor(Math.random()*(r+1));[e[r],e[t]]=[e[t],e[r]]}P.current=e,V.current=0,F.current=!0,L(!0);let r=()=>{if(!F.current)return;if(V.current>=P.current.length){let e=Array.from({length:W.length},(e,r)=>r);for(let r=e.length-1;r>0;r--){let t=Math.floor(Math.random()*(r+1));[e[r],e[t]]=[e[t],e[r]]}P.current=e,V.current=0}let e=P.current[V.current],t=W[e];M(e),window.dispatchEvent(new CustomEvent("play-sound-auto",{detail:{soundId:t.id}}));let n=e=>{e.detail?.soundId===t.id&&(window.removeEventListener("sound-ended",n),_.current.delete(t.id),$.current&&clearTimeout($.current),F.current&&(V.current++,$.current=setTimeout(()=>{r()},300)))};_.current.set(t.id,n),window.addEventListener("sound-ended",n),$.current&&clearTimeout($.current),$.current=setTimeout(()=>{window.removeEventListener("sound-ended",n),_.current.delete(t.id),F.current&&(V.current++,r())},5e3)};r()};(0,s.useEffect)(()=>()=>{$.current&&clearTimeout($.current),_.current.forEach(e=>{window.removeEventListener("sound-ended",e)}),_.current.clear(),I.current=!1,A(!1),F.current=!1,L(!1),P.current=[],V.current=0},[]),(0,s.useImperativeHandle)(b,()=>({handleAutoPlay:z,handleRandomPlay:D,playRandomSound:D}));let H=h?y?4:11:m?y?3:9:3,B=[],W=O.slice(0,c*H);for(let e=0;e<W.length;e+=H){let r=W.slice(e,e+H);B.push(r)}let q=p&&(u||S.length<r.length);return(0,n.jsxs)("section",{className:"w-full py-2 sound-section-container",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center justify-between mb-2 gap-1 sm:gap-2 w-full overflow-hidden sound-section-header",children:[(0,n.jsx)("h2",{className:"text-base sm:text-lg md:text-xl font-bold flex items-center flex-shrink-0 min-w-0",children:(0,n.jsx)("span",{className:"whitespace-nowrap truncate",children:e})}),i&&(0,n.jsxs)("div",{className:"flex items-center gap-1 sm:gap-1.5 md:gap-2 ml-1 sm:ml-2 flex-nowrap flex-shrink-0",children:[(0,n.jsxs)(d.$,{className:`px-3 py-1.5 text-sm font-semibold text-white rounded-lg transition-all whitespace-nowrap flex-shrink-0 ${k?"bg-gradient-to-r from-red-400 to-red-500 hover:from-red-500 hover:to-red-600":"bg-gradient-to-r from-red-500 to-red-600 hover:from-red-600 hover:to-red-700"}`,onClick:z,children:[(0,n.jsx)("span",{className:"hidden sm:inline",children:k?"Stop Auto":"Auto Play"}),(0,n.jsx)("span",{className:"sm:hidden",children:k?"Stop":"Auto"})]}),(0,n.jsxs)(d.$,{className:`px-3 py-1.5 text-sm font-semibold text-white rounded-lg transition-all whitespace-nowrap flex-shrink-0 ${R?"bg-gradient-to-r from-purple-400 to-purple-500 hover:from-purple-500 hover:to-purple-600":"bg-gradient-to-r from-purple-500 to-purple-600 hover:from-purple-600 hover:to-purple-700"}`,onClick:D,children:[(0,n.jsx)("span",{className:"hidden sm:inline",children:R?"Stop Random":"Random Play"}),(0,n.jsx)("span",{className:"sm:hidden",children:R?"Stop":"Random"})]}),(0,n.jsxs)(d.$,{className:"px-3 py-1.5 text-sm font-semibold text-white rounded-lg transition-all whitespace-nowrap flex-shrink-0 bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700",onClick:()=>window.location.href=i,children:[(0,n.jsx)("span",{className:"hidden sm:inline",children:"View All ?"}),(0,n.jsx)("span",{className:"sm:hidden",children:"View ?"})]})]})]}),0===S.length?(0,n.jsx)("div",{className:"text-center py-8 text-muted-foreground bg-gray-50 dark:bg-gray-800/50 rounded-xl",children:(0,n.jsx)("p",{className:"text-lg",children:"No sounds found"})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:B.map((e,r)=>(0,n.jsx)("div",{className:"w-full sound-row-container",children:(0,n.jsx)("div",{className:`s
1ound-grid ${h?"grid grid-cols-4 sm:grid-cols-5 md:grid-cols-6 lg:grid-cols-8 xl:grid-cols-11 gap-0 sm:gap-2 md:gap-2 lg:gap-3":m?"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-9 gap-2 sm:gap-3":"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2"} sound-grid-container`,children:e.map((e,t)=>{let d=r*H+t;return(0,n.jsx)(s.Fragment,{children:h?(0,n.jsx)(l.A,{sound:e,isAboveTheFold:d<(y?12:44)}):m?x?s.createElement(x,{sound:e,isAboveTheFold:d<(y?12:18),onRainEffect:w}):(0,n.jsx)(l.A,{sound:e,isAboveTheFold:d<(y?12:18)}):(0,n.jsx)(l.A,{sound:e,isAboveTheFold:d<10})},`${e.id}-${d}`)})})},`row-${r}`))}),q&&(0,n.jsx)("div",{className:"mt-6 flex justify-center load-more-container",children:(0,n.jsx)(d.$,{onClick:Y,disabled:j,className:"text-white transition-all border-0 px-5 py-2 text-sm font-semibold disabled:opacity-50 disabled:cursor-not-allowed rounded-lg bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700",children:j&&f?"Loading...":`Load More ${e}`})}),g&&i&&(0,n.jsx)("div",{className:"mt-6 flex justify-center load-more-container",children:(0,n.jsxs)(d.$,{onClick:()=>window.location.href=i,className:"text-white transition-all border-0 px-5 py-2 text-sm font-semibold rounded-lg bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700",children:["View All ",e," ?"]})})]})]})});o.displayName="SoundList";let i=o},5531:(e,r,t)=>{Promise.resolve().then(t.bind(t,76)),Promise.resolve().then(t.bind(t,3305)),Promise.resolve().then(t.bind(t,4313)),Promise.resolve().then(t.t.bind(t,3204,23))}},e=>{e.O(0,[3970,817,28,4313,8066,1362,974,7358],()=>e(e.s=5531)),_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.