PageSourceSearch

https://myfeedin.co/_next/static/chunks/6928.26b46807c88d1c0d.js

js myfeedin.co collected 2026-10-01 23:44:51 UTC 9,664 bytes, 26 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6928],{61419:function(e,t,s){s.r(t),s.d(t,{default:function(){return g}});var n=s(57437),a=s(2265),l=s(84590),i=s(66795),r=s(79580),o=s(69475),d=s(44715),c=s(28814),m=s(87677),u=s(2754);let h=["Opening the LinkedIn post...","Detecting the carousel type...","Extracting the slides..."],p=(e,t)=>{let s=window.URL.createObjectURL(e),n=document.createElement("a");n.href=s,n.download=t,document.body.appendChild(n),n.click(),window.URL.revokeObjectURL(s),document.body.removeChild(n)},f=e=>(e||"linkedin-document").replace(RegExp("[^\\p{L}\\p{N} _-]","gu"),"").trim()||"linkedin-document";function g(){let[e,t]=(0,u.N)("linkedin-carousel-downloader"),[s,g]=(0,a.useState)(""),[x,b]=(0,a.useState)(!1),[y,w]=(0,a.useState)(""),[j,v]=(0,a.useState)(null),[k,N]=(0,a.useState)(null),Z=async e=>{e.preventDefault(),b(!0),w(""),v(null);try{let[e]=await Promise.all([fetch("/api/linkedin/get-carousel",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:s})}),new Promise(e=>setTimeout(e,5e3))]),n=await e.json();if(!e.ok)throw Error(n.error||"Failed to fetch the post");v(n),t()}catch(e){w(e.message||"Failed to fetch the post. Make sure the URL is correct and the post contains a carousel or document.")}finally{b(!1)}},F=async()=>{if(null==j?void 0:j.pdfUrl){N("pdf"),w("");try{let e=await fetch(j.pdfUrl),t=await e.blob();p(t,"".concat(f(j.title),".pdf"))}catch(e){w("Failed to download the PDF")}finally{N(null)}}},S=async(e,t)=>{let s=await fetch(e),n=await s.blob(),a="image/png"===n.type?"png":"jpg";p(n,"linkedin-carousel-slide-".concat(t+1,".").concat(a))},z=async(e,t)=>{N(t),w("");try{await S(e,t)}catch(e){w("Failed to download slide ".concat(t+1))}finally{N(null)}},C=async()=>{var e;if(null==j?void 0:null===(e=j.images)||void 0===e?void 0:e.length){N("all"),w("");try{for(let e=0;e<j.images.length;e++)await S(j.images[e],e)}catch(e){w("Failed to download some slides. Try them individually below.")}finally{N(null)}}};return(0,n.jsxs)(n.Fragment,{children:[e,(0,n.jsxs)("form",{onSubmit:Z,className:"space-y-5",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("label",{htmlFor:"url",className:"block text-sm font-semibold text-gray-900 tracking-[-0.01em]",children:"LinkedIn Post URL"}),(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,n.jsx)(i.I,{id:"url",type:"url",placeholder:"https://www.linkedin.com/posts/...",value:s,onChange:e=>g(e.target.value),required:!0,className:"sm:flex-1 h-12 px-4 rounded-xl"}),(0,n.jsx)(l.z,{type:"submit",size:"lg",disabled:x,className:"rounded-xl text-base font-semibold sm:w-auto w-full h-12",children:x?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.Z,{className:"h-4 w-4 animate-spin"}),"Processing..."]}):"Get Slides"})]})]}),y&&(0,n.jsx)("div",{className:"p-4 text-rose-700 bg-gradient-to-r from-rose-50 to-red-50 border border-rose-100 rounded-xl text-sm",children:(0,n.jsx)("p",{className:"font-medium",children:y})})]}),x&&(0,n.jsx)(m.Z,{steps:h,toolSlug:"linkedin-carousel-downloader"}),(null==j?void 0:j.type)==="document"&&(0,n.jsxs)("div",{className:"mt-6 sm:mt-8 border-t border-border pt-6 sm:pt-8 space-y-6 animate-in fade-in slide-in-from-bottom-4 duration-500",children:[(0,n.jsxs)("div",{className:"flex items-center gap-4 p-4 bg-gray-50 rounded-xl ring-1 ring-border",children:[j.coverImage?(0,n.jsx)("img",{src:j.coverImage,alt:j.title||"Document cover",className:"w-20 h-24 object-cover rounded-lg ring-1 ring-border"}):(0,n.jsx)("div",{className:"w-20 h-24 flex items-center justify-center bg-white rounded-lg ring-1 ring-border",children:(0,n.jsx)(o.Z,{className:"w-8 h-8 text-gray-400",strokeWidth:1.8})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("p",{className:"font-semibold text-gray-900 truncate",children:j.title}),j.pageCount&&(0,n.jsxs)("p",{className:"text-sm text-slate-600",children:[j.pageCount," pages, original PDF"]})]})]}),(0,n.jsx)(l.z,{size:"lg",onClick:F,disabled:"pdf"===k,className:"w-full rounded-xl text-base font-semibold",children:"pdf"===k?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.Z,{className:"h-4 w-4 animate-spin"}),"Downloading..."]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Z,{className:"h-4 w-4",strokeWidth:2.2}),"Download PDF"]})})]}),(null==j?void 0:j.type)==="images"&&(0,n.jsxs)("div",{className:"mt-6 sm:mt-8 border-t border-border pt-6 sm:pt-8 space-y-6 animate-in fade-in slide-in-from-bottom-4 duration-500",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,n.jsxs)("p",{className:"text-sm font-semibold text-gray-900",children:[j.images.length," ",j.images.length>
11?"slides found":"image found"]}),j.images.length>1&&(0,n.jsx)(l.z,{size:"sm",onClick:C,disabled:"all"===k,className:"rounded-xl font-semibold",children:"all"===k?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.Z,{className:"h-4 w-4 animate-spin"}),"Downloading..."]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Z,{className:"h-4 w-4",strokeWidth:2.2}),"Download all"]})})]}),(0,n.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4",children:j.images.map((e,t)=>(0,n.jsxs)("div",{className:"group relative bg-gray-50 rounded-xl overflow-hidden ring-1 ring-border",children:[(0,n.jsx)("img",{src:e,alt:"Slide ".concat(t+1),className:"w-full h-40 object-cover"}),(0,n.jsxs)("button",{type:"button",onClick:()=>z(e,t),disabled:k===t,className:"absolute inset-x-2 bottom-2 inline-flex items-center justify-center gap-1.5 rounded-lg bg-white/90 backdrop-blur px-2 py-1.5 text-xs font-semibold text-gray-900 opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity",children:[k===t?(0,n.jsx)(r.Z,{className:"h-3.5 w-3.5 animate-spin"}):(0,n.jsx)(d.Z,{className:"h-3.5 w-3.5",strokeWidth:2.2}),"Slide ",t+1]})]},e))}),(0,n.jsxs)("div",{className:"flex items-start gap-2.5 p-3 bg-amber-50/60 border border-amber-100 rounded-xl",children:[(0,n.jsx)(c.Z,{className:"h-4 w-4 text-amber-700 shrink-0 mt-0.5",strokeWidth:2.2}),(0,n.jsxs)("p",{className:"text-[13px] text-amber-900 leading-relaxed",children:[(0,n.jsx)("span",{className:"font-semibold",children:"Reminder:"})," only use these slides if you have the rights or permission. Don't republish or monetize someone else's content without their consent."]})]})]})]})}},66795:function(e,t,s){s.d(t,{I:function(){return i}});var n=s(57437),a=s(2265),l=s(84353);let i=a.forwardRef((e,t)=>{let{className:s,type:a,...i}=e;return(0,n.jsx)("input",{type:a,className:(0,l.cn)("flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground hover:border-foreground
1/25 focus-visible:outline-none focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary/25 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),ref:t,...i})});i.displayName="Input"},18025:function(e,t,s){s.d(t,{Z:function(){return n}});/**
2 * @license lucide-react v0.438.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let n=(0,s(44698).Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},80037:function(e,t,s){s.d(t,{Z:function(){return n}});/**
7 * @license lucide-react v0.438.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */let n=(0,s(44698).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},44715:function(e,t,s){s.d(t,{Z:function(){return n}});/**
12 * @license lucide-react v0.438.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let n=(0,s(44698).Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},69475:function(e,t,s){s.d(t,{Z:function(){return n}});/**
17 * @license lucide-react v0.438.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */let n=(0,s(44698).Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},28814:function(e,t,s){s.d(t,{Z:function(){return n}});/**
22 * @license lucide-react v0.438.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */let n=(0,s(44698).Z)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},20703:function(e,t,s){s.d(t,{default:function(){return a.a}});var n=s(67447),a=s.n(n)},67447:function(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{getImageProps:function(){return r},default:function(){return o}});let n=s(86921),a=s(38630),l=s(81749),i=n._(s(10536)),r=e=>{let{props:t}=(0,a.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}},o=l.Image}}]);

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.