PageSourceSearch

https://meme-soundboards.com/_next/static/chunks/app/login/page-1ec77f0ff29be052.js

js meme-soundboards.com collected 2026-10-04 07:43:49 UTC 9,211 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{5698:(e,t,r)=>{"use strict";r.d(t,{aN:()=>i,cn:()=>o});var s=r(9845),a=r(4469);let n=r(2471).env.NEXT_PUBLIC_MEDIA_BASE_URL||"https://play-v1.soundboard.cloud/media";function o(...e){return(0,a.QP)((0,s.$)(e))}function i(e){if(!e)return null;try{if(e.startsWith("http://")||e.startsWith("https://")){if(e.includes("amazonaws.com")||e.includes("soundboard.cloud")){let t=new URL(e).pathname;return t.startsWith("/media")&&(t=t.substring(6)),`${n}${t}`}return e}}catch(e){}let t=e.startsWith("/")?e:`/${e}`;return`${n}${t}`}},6643:(e,t,r)=>{"use strict";r.d(t,{default:()=>h});var s=r(5004),a=r(2864),n=r(3204),o=r.n(n),i=r(6809),d=r(9419),u=r(3174),l=r(7413);function h(){let e=(0,i.useRouter)(),t=(0,i.useSearchParams)(),{login:r}=(0,u.A)(),n=t.get("redirect"),[h,c]=(0,a.useState)(""),[g,p]=(0,a.useState)(""),[m,b]=(0,a.useState)(""),[f,y]=(0,a.useState)(!1),x=async t=>{if(t.preventDefault(),b(""),!h.trim())return void b("Enter your email so we know it's you!");if(!g)return void b("Enter your password.");y(!0);try{let t=(await d.uE.login(h.trim(),g)).data,s=t?.token,a=t?.user;if(s&&a){r(s,{id:a.id,username:a.username,email:a.email,full_name:a.full_name});let t=n&&n.startsWith("/")?n:"/";e.push(t),e.refresh();return}b("Something went wrong. Try again?")}catch{b("Wrong email or password. Try again or create an account!")}finally{y(!1)}};return(0,s.jsxs)("form",{onSubmit:x,className:"space-y-5",children:[m&&(0,s.jsx)("div",{className:"rounded-xl bg-amber-100 dark:bg-amber-900/30 border border-amber-300 dark:border-amber-700 px-4 py-3 text-amber-800 dark:text-amber-200 text-center text-base",children:m}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"email",className:"block text-base font-semibold text-slate-700 dark:text-slate-200 mb-2",children:"Email"}),(0,s.jsx)("input",{id:"email",type:"email",autoComplete:"email",value:h,onChange:e=>c(e.target.value),placeholder:"[email protected]",className:"w-full rounded-xl border-2 border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-white px-4 py-3 text-base focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 outline-none transition",disabled:f})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"password",className:"block text-base font-semibold text-slate-700 dark:text-slate-200 mb-2",children:"Password"}),(0,s.jsx)("input",{id:"password",type:"password",autoComplete:"current-password",value:g,onChange:e=>p(e.target.value),placeholder:"Your password",className:"w-full rounded-xl border-2 border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-white px-4 py-3 text-base focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 outline-none transition",disabled:f})]}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsx)(o(),{href:"/forgot-password",className:"text-sm font-medium text-blue-700 dark:text-blue-300 underline underline-offset-2 font-medium hover:text-blue-900 dark:hover:text-blue-200",children:"Forgot password?"})}),(0,s.jsx)(l.$,{type:"submit",disabled:f,className:"w-full rounded-xl py-4 text-lg font-bold text-white bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 shadow-lg hover:shadow-xl transition-all disabled:opacity-70",children:f?"Signing you in...":"Sign in"}),(0,s.jsxs)("p",{className:"text-center text-slate-600 dark:text-slate-400 text-base",children:["Don't have an account?"," ",(0,s.jsx)(o(),{href:"/register",className:"font-semibold text-blue-700 dark:text-blue-300 underline underline-offset-2 font-medium hover:text-blue-900 dark:hover:text-blue-200",children:"Create one"})]})]})}},7361:(e,t,r)=>{Promise.resolve().then(r.bind(r,6643)),Promise.resolve().then(r.bind(r,4313)),Promise.resolve().then(r.t.bind(r,3204,23))},7413:(e,t,r)=>{"use strict";r.d(t,{$:()=>o});var s=r(5004),a=r(2864),n=r(5698);let o=a.forwardRef(({className:e,variant:t="default",size:r="default",...a},o)=>(0,s.jsx)("button",{className:(0,n.cn)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{"bg-primary text-primary-foreground shadow hover:bg-primary/90":"default"===t,"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90":"destructive"===t,"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground":"outline"===t,"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80":"secondary"===t,"hover:bg-accent hover:text-accent-foreground":"ghost"===t,"text-primary underline-offset-4 hover:underline":"link"===t,"h-9 px-4 py-2":"default"===r,"h-8 rounded-md px-3 text-xs":"sm"===r,"h-10 rounded-md px-8":"lg"===r,"h-9 w-9":"icon"===r},e),ref:o,...a}
1));o.displayName="Button"},9419:(e,t,r)=>{"use strict";r.d(t,{uE:()=>a}),r(2471).env.NEXT_PUBLIC_MEDIA_BASE_URL;class s{constructor(e="https://play-v1.soundboard.cloud/api/meme-soundboards.com"){this.baseUrl=e}async request(e,t={}){let r=`${this.baseUrl}${e}`,s=await fetch(r,{...t,headers:{"Content-Type":"application/json",...t.headers},next:{revalidate:60}});if(!s.ok){let e=`API request failed: ${s.status} ${s.statusText}`;try{let t=await s.json().catch(()=>null),r=t?.message??t?.error??t?.detail;"string"==typeof r?e=r:Array.isArray(r)&&(e=r.join(", "))}catch{}throw Error(e)}let a=await s.json();return a.status&&a.data?a:{status:s.status,data:a}}async getSounds(e){let t=new URLSearchParams;e?.category&&t.append("category",e.category.toString()),e?.tag&&t.append("tag",e.tag),e?.search&&t.append("search",e.search),e?.page&&t.append("page",e.page.toString()),e?.page_size&&t.append("page_size",e.page_size.toString());let r=t.toString();return this.request(`/sounds${r?`?${r}`:""}`)}async getTrendingSounds(e=1,t=40){return this.request(`/sounds/trending?page=${e}&page_size=${t}`)}async getNewSounds(e=1,t=40){return this.request(`/sounds/new?page=${e}&page_size=${t}`)}async getSoundById(e){return this.request(`/sounds/${e}`)}async searchSounds(e,t=1,r=40){return this.request(`/sounds/search?name=${encodeURIComponent(e)}&page=${t}&page_size=${r}`)}async getRelatedSounds(e,t=10,r=1,s=20){return this.request(`/sounds/${e}/related?limit=${t}&page=${r}&page_size=${s}`)}async updateViews(e){return this.request("/sounds/views",{method:"POST",body:JSON.stringify({sound_id:e})})}async getCategories(){return this.request("/user/categories")}async getCategoryById(e){return this.request(`/user/categories/${e}`)}async register(e){return this.request("/user/register",{method:"POST",body:JSON.stringify(e)})}async login(e,t){return this.request("/user/login",{method:"POST",body:JSON.stringify({email:e,password:t})})}async forgotPassword(e){return this.request("/user/forgot-password",{method:"POST",body:JSON.stringify({email:e})})}async resetPassword(e,t,r){return this.request("/user/reset-password",{method:"POST",body:JSON.stringify({uid:e,token:t,password:r})})}async getUserProfile(e){return this.request("/user/profile",{headers:{Authorization:`Token ${e}`}})}async updateUserProfile(e,t){return this.request("/user/profile",{method:"POST",headers:{Authorization:`Token ${e}`},body:JSON.stringify(t)})}async getUserFavorites(e,t=1,r=40){return this.request(`/sounds/user/favorites?page=${t}&page_size=${r}`,{headers:{Authorization:`Token ${e}`}})}async getUserLikes(e,t=1,r=40){return this.request(`/sounds/user/likes?page=${t}&page_size=${r}`,{headers:{Authorization:`Token ${e}`}})}async getUserUploadedSounds(e,t,r=1,s=40){let a=new URLSearchParams;return t&&a.append("user_id",t.toString()),a.append("page",r.toString()),a.append("page_size",s.toString()),this.request(`/sounds/user/uploaded?${a.toString()}`,{headers:{Authorization:`Token ${e}`}})}async likeSound(e,t){return this.request(`/sounds/${t}/like`,{method:"POST",headers:{Authorization:`Token ${e}`}})}async unlikeSound(e,t){return this.request(`/sounds/${t}/like`,{method:"DELETE",headers:{Authorization:`Token ${e}`}})}async favoriteSound(e,t){return this.request(`/sounds/${t}/favorite`,{method:"POST",headers:{Authorization:`Token ${e}`}})}async unfavoriteSound(e,t){return this.request(`/sounds/${t}/favorite`,{method:"DELETE",headers:{Authorization:`Token ${e}`}})}async getBlogs(e,t=1,r=20){let s=new URLSearchParams;return e&&s.append("search",e),s.append("page",t.toString()),s.append("page_size",r.toString()),this.request(`/user/blogs?${s.toString()}`)}async getBlogById(e){return this.request(`/user/blogs/${e}`)}async uploadSound(e,t){let r=`${this.baseUrl}/sounds`,s=new FormData;s.append("name",t.name),t.sound_file&&s.append("sound_file",t.sound_file),t.sound_file_url&&s.append("sound_file_url",t.sound_file_url),t.tag&&s.append("tag",t.tag),null!=t.category&&s.append("category",String(t.category));let a=await fetch(r,{method:"POST",headers:{Authorization:`Token ${e}`},body:s,next:{revalidate:0}});if(!a.ok)throw Error(`API request failed: ${a.statusText}`);let n=await a.json();return null!=n.status&&null!=n.data?n:{status:a.status,data:n}}}let a=new s}},e=>{e.O(0,[3970,817,4313,1362,974,7358],()=>e(e.s=7361)),_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.