PageSourceSearch

https://pdfbeast.com/_next/static/chunks/9781-70ee31549baa593a.js

js pdfbeast.com collected 2026-10-04 12:57:23 UTC 14,720 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f86e6d6b-699e-4735-bacb-b7b308ba319f",e._sentryDebugIdIdentifier="sentry-dbid-f86e6d6b-699e-4735-bacb-b7b308ba319f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9781],{79781:function(e,t,l){l.r(t),l.d(t,{default:function(){return _}});var n=l(3827),o=l(243),a=l(78084),s=l(71126),r=l(30982),i=l(20703),d=l(10243),c=l(64090),u=l(52840),f=l(71249),p=l(42362);function x(e){let{linkFor:t,links:l}=e,[s,i]=(0,c.useState)(!1),u=(0,r.useTranslations)("Navbar.NavDropDown"),f=[{url:a.vw.pdfTool("edit-pdf"),text:u("editPDF")},{url:a.vw.pdfTool("draw-pdf"),text:u("drawOnPDF")},{url:a.vw.pdfTool("sign-pdf"),text:u("signPDF")},{url:a.vw.pdfTool("highlight-pdf"),text:u("highlightPDF")},{url:a.vw.pdfTool("fill-pdf"),text:u("fillPDF")},{url:a.vw.pdfTool("unlock-pdf"),text:u("unlockPDF")},{url:a.vw.pdfTool("compress-pdf"),text:u("compressPdf")}],x=[{url:a.vw.pdfTool("insert-pages"),text:u("insertPages")},{url:a.vw.pdfTool("delete-pages"),text:u("deletePages")},{url:a.vw.pdfTool("duplicate-pages"),text:u("duplicatePages")},{url:a.vw.pdfTool("extract-pages"),text:u("extractPages")},{url:a.vw.pdfTool("replace-pages"),text:u("replacePages")},{url:a.vw.pdfTool("rearrange-pages"),text:u("RearrangePages")},{url:a.vw.pdfTool("rotate-pages"),text:u("rotatePages")}],m=[{url:a.vw.pdfTool("pdf-to-word"),text:u("pdfToWord")},{url:a.vw.pdfTool("pdf-to-excel"),text:u("pdfToExcel")},{url:a.vw.pdfTool("pdf-to-text"),text:u("pdfToText")},{url:a.vw.pdfTool("pdf-to-pptx"),text:u("pdfToPptx")},{url:a.vw.pdfTool("pdf-to-png"),text:u("pdfToPng")},{url:a.vw.pdfTool("pdf-to-jpg"),text:u("pdfToJpg")},{url:a.vw.pdfTool("pdf-to-csv"),text:u("pdfToCsv")},{url:a.vw.pdfTool("pdf-to-html"),text:u("pdfToHtml")},{url:a.vw.pdfTool("pdf-to-rtf"),text:u("pdfToRtf")},{url:a.vw.pdfTool("pdf-to-json"),text:u("pdfToJson")},{url:a.vw.pdfTool("pdf-to-editable-pdf"),text:u("pdfToEditPdf")}],h=[{url:a.vw.pdfTool("word-to-pdf"),text:u("wordToPdf")},{url:a.vw.pdfTool("excel-to-pdf"),text:u("excelToPdf")},{url:a.vw.pdfTool("pptx-to-pdf"),text:u("pptxToPdf")},{url:a.vw.pdfTool("csv-to-pdf"),text:u("csvToPdf")},{url:a.vw.pdfTool("text-to-pdf"),text:u("textToPdf")},{url:a.vw.pdfTool("rtf-to-pdf"),text:u("rtfToPdf")},{url:a.vw.pdfTool("html-to-pdf"),text:u("htmlToPdf")}];return(0,n.jsxs)(d.Menu,{open:s,handler:i,allowHover:!1,placement:"bottom",children:[(0,n.jsx)(d.MenuHandler,{children:(0,n.jsxs)("button",{type:"button",className:"flex items-center gap-3 text-base font-normal cursor-pointer capitalize tracking-normal bg-none border-none outline-none p-0 m-0",children:[u(t)," ",(0,n.jsx)(p.RiI,{strokeWidth:2.5,className:`h-3.5 w-3.5 transition-transform ${s?"rotate-180":""}`})]})}),(0,n.jsx)(d.MenuList,{className:"",placeholder:void 0,children:({tools:f,editor:x,fileTools:l,convertionFrom:m,convertionTo:h})[t]?.map((e,t)=>n.jsx(o.rU,{href:e.url,className:"outline-none focus:outline-none",children:n.jsx(d.MenuItem,{placeholder:e.text,children:e.text})},t))})]})}var m=l(19303);function h(e){let{activeFileTools:t}=e,l=(0,s.useSession)(),i=(0,r.useTranslations)("Navbar"),[p,h]=(0,c.useState)(!1),v=(0,o.tv)();a.vw.pdfTool("edit-pdf"),i("NavDropDown.editPDF"),a.vw.pdfTool("draw-pdf"),i("NavDropDown.drawOnPDF"),a.vw.pdfTool("sign-pdf"),i("NavDropDown.signPDF"),a.vw.pdfTool("highlight-pdf"),i("NavDropDown.highlightPDF"),a.vw.pdfTool("fill-pdf"),i("NavDropDown.fillPDF"),a.vw.pdfTool("unlock-pdf"),i("NavDropDown.unlockPDF");let w=async()=>{let e=await (0,s.signOut)({callbackUrl:a.vw.home,redirect:!1});e.url&&(v.push(e.url),v.refresh())};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(d.Menu,{placement:"bottom-end",open:p,handler:h,children:[(0,n.jsx)(d.MenuHandler,{children:(0,n.jsx)("button",{type:"button","aria-label":p?"Close menu":"Open menu",className:"bg-none border-none outline-none p-0 m-0 flex items-center justify-center",children:p?(0,n.jsx)(u.IOM,{size:28}):(0,n.jsx)(f.Bbf,{size:28})})}),(0,n.jsxs)(d.MenuList,{placeholder:"",className:"w-full z-0 mt-3 border-none px-8",children:[(0,n.jsxs)("ul",{className:"flex flex-col gap-6 focus-within:outline-none",children:[(0,n.jsx)("li",{className:"font-medium flex gap-2 items-end",children:(0,n.jsx)(x,{linkFor:"tools"})}),(0,n.jsx)("li",{className:"font-medium flex gap-2 items-end",children:(0,n.jsx)(x,{linkFor:"editor"})}),(0,n.jsx)("li",{className:"font-medium flex gap-2 items-end",children:(0,n.jsx)(x,{linkFor:"convertionFrom"})}),(0,n.jsx)("li",{className:"font-medium flex gap-2 items-end",children:(0,n.jsx)(x,{linkFor:"convertionTo"})}),t&&t.length>0&&(0,n.jsx)("li",{className:"font-medium flex gap-2 items-end",children:(0,n.jsx)(x,{linkFor:"fileTools",links:t})})]}),l.data?.user?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"w-full focus-within:outline-none",children:(0,n.jsx)(m.default,{link:!0,linkUrl:a.vw.dashboard(l.data.user.id),buttonText:i("NavDropDown.dashboard"),variant:"outlined",className:"w-full m-0 mt-4 mb-4",size:"md"})}),(0,n.jsx)("div",{className:"w-full focus-within:outline-none",children:(0,n.jsx)(m.default,{link:!1,onClick:w,buttonText:i("NavDropDown.logout"),variant:"outlined",className:"w-full m-0 mb-4",size:"md"})})]}):(0,n.jsx)("div",{className:"w-full focus-within:outline-none",children:(0,n.jsx)(m.default,{link:!0,linkUrl:a.vw.login,buttonText:i("login"),variant:"outlined",size:"md",className:"w-full m-0 mt-4 mb-4"})})]})]})})}var v=l(48012),w=l(80812),b=l(75504),g=e=>{let{activeStep:t,excludeSelectPlan:l}=e,o=(0,r.useTranslations)("ChoosePlan.PaymentStepper"),a={0:(0,n.jsx)(v.jbV,{size:16,color:"white"}),1:(0,n.jsx)(w.pcu,{size:16,color:"white"}),2:(0,n.jsx)(w.kjS,{size:16,color:"white"}),3:(0,n.jsx)(w.u$Z,{size:16,color:"white"})},s=[{text:o("documentIsReady"),hr:!0},{text:o("paymentDetails"),hr:!0},{text:o("download"),hr:!1}],i=[{text:o("documentIsReady"),hr:!0},{text:o("selectPlan"),hr:!0},{text:o("paymentDetails"),hr:!0},{text:o("download"),hr:!1}];return(0,n.jsx)("div",{className:"hidden stepper max-w-screen-2xl my-6 px-6 md:flex flex-row gap-3",children:(l?s:i).map((e,l)=>(0,n.jsxs)("div",{className:(0,b.Z)("flex justify-start gap-3 items-center",t===l&&"text-breadcrumb-end"),children:[(0,n.jsxs)("div",{className:"step doc-ready flex gap-2 items-center",children:[(0,n.jsx)("div",{className:(0,b.Z)("tic-icon rounded-full  w-[26px] h-[26px] flex justify-center items-center",t===l?"bg-breadcrumb-end":"bg-stepper-color"),children:l<t?(0,n.jsx)(v.jbV,{size:16,color:"white"}):a[l]}),(0,n.jsx)("div",{className:(0,b.Z)("hidden md:inline font-semibold text-sm",t===l?"text-breadcrumb-end":"text-stepper-color"),children:e.text})]}),e.hr&&(0,n.jsx)("hr",{className:"w-[30px] max-w-[60px] h-[2px] bg-stepper-color"})]},l))})},j=l(53691),T=l(66947),N=l(76122),y=l(70784),P=e=>{let{deferredPrompt:t,setDeferredPrompt:l,showBanner:o,setShowBanner:
1a}=e,s=(0,r.useTranslations)("Navbar");return(0,n.jsxs)("div",{className:"install-banner fixed bottom-0 inset-x-0 z-40 bg-pivot-color text-white px-8 py-2 flex justify-between gap-8",children:[(0,n.jsxs)("div",{className:"flex justify-start md:justify-center items-center gap-6 text-xs",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"font-bold",children:s("InstallBanner.appName")}),(0,n.jsx)("p",{children:s("InstallBanner.appText")})]}),(0,n.jsx)(d.Button,{variant:"outlined",size:"sm",className:"rounded-full bg-white !text-black text-xs font-semibold text-nowrap",onClick:()=>{t.prompt(),t.userChoice.then(e=>{t=null,l(null)})},placeholder:void 0,children:s("InstallBanner.install")})]}),(0,n.jsx)("button",{type:"button",className:"bg-none border-none outline-none",onClick:()=>a(!o),children:(0,n.jsx)(y.FU5,{size:20})})]})},k=l(49304),D=l(24232),F=l(47907);let z=(0,D.default)(()=>l.e(7542).then(l.bind(l,27290)),{loadableGenerated:{webpack:()=>[27290]},ssr:!1});var S=e=>{let{availableLocales:t,lang:l}=e,{locale:a}=(0,F.useParams)(),s=(0,o.tv)(),[r,i]=(0,c.useState)(!1);(0,c.useEffect)(()=>{if("function"==typeof window.requestIdleCallback){let e=window.requestIdleCallback(()=>i(!0));return()=>window.cancelIdleCallback(e)}let e=setTimeout(()=>i(!0),2e3);return()=>clearTimeout(e)},[]);let d=t?.map(e=>k.nq[e.locale]),u=(0,o.jD)();return r?(0,n.jsx)(z,{selected:k.nq[a]||"US",onSelect:e=>{let l=Object.keys(k.nq).find(t=>k.nq[t]===e);if(t&&t?.length>0){let e=t.filter(e=>e.locale===l);s.push(e[0].slug,{locale:l})}else s.push(u,{locale:l})},className:(0,b.Z)("bg-lang-bg !pb-0 rounded-md flex min-w-[180px] relative z-50","[&>ul]:absolute [&>ul]:top-full [&>ul]:mt-1 [&>ul]:z-50"),placeholder:"Select language",customLabels:k.TB,countries:d||N.Ng}):(0,n.jsx)("div",{className:"bg-lang-bg !pb-0 rounded-md min-w-[180px] h-10","aria-hidden":"true"})},C=l(92402);let I={choosePlan:1,payment:2,paymentSuccess:3},B={payment:1,paymentSuccess:2};var _=e=>{let{page:t,availableLocales:l,currentLang:d}=e,u=(0,s.useSession)(),f=(0,o.tv)(),p=(0,r.useLocale)(),v=(0,o.jD)(),w=(0,T.n)(),[y,k]=(0,c.useState)(null),[D,F]=(0,c.useState)(!1),[z,_]=(0,c.useState)(null),L=(0,r.useTranslations)("Navbar"),U=async()=>{let e=await (0,s.signOut)({callbackUrl:(0,C.Mg)(p,a.vw.home),redirect:!1});e.url&&(f.push(e.url),f.refresh())};return(0,c.useEffect)(()=>{null!==z&&z||F(!1)},[z]),(0,c.useEffect)(()=>{(async()=>{try{let e=await (0,j.KO)(p);if(e?.status===200){let t=e?.data?.data,l=t?.map(e=>({text:e.attributes.tool_name,url:a.vw.toolPage(e?.attributes?.tool_slug)}));k(l)}}catch(e){console.log(e)}})(),window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),_(e),F(!0)})},[]),(0,n.jsxs)("header",{children:[z&&D&&(0,n.jsx)(P,{deferredPrompt:z,setDeferredPrompt:_,showBanner:D,setShowBanner:F}),(0,n.jsx)("nav",{className:"bg-white",children:(0,n.jsxs)("div",{className:(0,b.Z)("flex items-center max-w-[1440px] m-auto py-3 sm:py-5 px-2 ",["choosePlan","payment","paymentSuccess"].includes(t)&&"justify-between flex-col lg:flex-row"),children:[(0,n.jsx)("div",{className:"text-xl font-bold xs:mr-5",children:v===a.vw.planPage||v===a.vw.paymentPage?(0,n.jsx)(i.default,{src:"/logo.png",width:"200",height:"100",alt:"PDF Liber Logo",className:"max-w-[150px] sm:max-w-fit relative md:left-[-20px]",priority:!0,title:"PDFBeast"}):(0,n.jsx)(o.rU,{href:a.vw.home,children:(0,n.jsx)(i.default,{src:"/logo.png",width:"200",height:"100",alt:"PDF Liber Logo",className:"max-w-[150px] sm:max-w-fit relative md:left-[-20px]",priority:!0,title:"PDFBeast"})})}),t&&!["signup","signin","dashboard","choosePlan","payment","paymentSuccess"].includes(t)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("ul",{className:"hidden lg:flex gap-6",children:[(0,n.jsx)("li",{className:"font-medium flex gap-2 items-end",children:(0,n.jsx)(x,{linkFor:"tools"})}),(0,n.jsx)("li",{className:"font-medium flex gap-2 items-end",children:(0,n.jsx)(x,{linkFor:"editor"})}),(0,n.jsx)("li",{className:"font-medium flex gap-2 items-end",children:(0,n.jsx)(x,{linkFor:"convertionFrom"})}),(0,n.jsx)("li",{className:"font-medium flex gap-2 items-end",children:(0,n.jsx)(x,{linkFor:"convertionTo"})}),y&&y.length>0&&(0,n.jsx)("li",{className:"font-medium flex gap-2 items-end",children:(0,n.jsx)(x,{linkFor:"fileTools",links:y})})]}),(0,n.jsx)("div",{className:"lang-sec relative flex items-center min-w-[180px] ml-auto",children:(0,n.jsx)(S,{availableLocales:l,lang:d})}),(0,n.jsx)("div",{className:"hidden lg:flex items-center xs:gap-6",children:u.data?.user?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.default,{link:!0,linkUrl:a.vw.dashboard(u.data.user.id),buttonText:L("NavDropDown.dashboard"),variant:"outlined",size:"md"}),(0,n.jsx)(m.default,{link:!1,onClick:U,buttonText:L("logout"),variant:"outlined",size:"md"})]}):(0,n.jsx)(m.default,{link:!0,linkUrl:a.vw.login,buttonText:L("login"),variant:"outlined",size:"md"})}),(0,n.jsx)("div",{className:"flex lg:hidden ml-auto pr-4",children:(0,n.jsx)(h,{activeFileTools:y})})]}),t&&["choosePlan","payment","paymentSuccess"].includes(t)&&(0,n.jsx)(g,{activeStep:N.XL.includes(w)?I[t]:B[t],excludeSelectPlan:!N.XL.includes(w)})]})})]})}},19303:function(e,t,l){l.r(t);var n=l(3827),o=l(10243),a=l(243);l(64090);var s=l(75504);t.default=e=>{let{link:t,variant:l,size:r="md",linkUrl:i="#",buttonText:d,onClick:c,color:u,bgColor:f,className:p,loading:x}=e;return t?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.rU,{href:i,children:(0,n.jsx)(o.Button,{variant:l,size:r,placeholder:d,className:(0,s.Z)("mx-2 rounded",f,p),color:u,children:d})})}):(0,n.jsx)(o.Button,{onClick:c,variant:l,size:r,placeholder:"",className:(0,s.Z)("mx-2 rounded flex justify-center items-center",f,p),color:u,disabled:x,children:x?(0,n.jsx)(o.Spinner,{fontSize:30}):(0,n.jsx)("span",{children:d})})}},66947:function(e,t,l){l.d(t,{n:function(){return s}});var n=l(64090),o=l(95079),a=l(78084);
1function s(){let[e,t]=(0,n.useState)(null);return(0,n.useEffect)(()=>{(async()=>{let e=await (0,o.xe)(a.QP.getCountryCode,{});e?.data?t(e.data.country):console.error("Country code lookup failed; countryCode will remain unset",e)})()},[]),e}},243:function(e,t,l){l.d(t,{jD:function(){return r},rU:function(){return a},tv:function(){return i}});var n=l(80654),o=l(49304);let{Link:a,redirect:s,usePathname:r,useRouter:i}=(0,n.iV)({locales:o.k1,localePrefix:o.ck})},53691:function(e,t,l){l.d(t,{m6:function(){return d},KO:function(){return i}});var n=l(95079),o=l(21800);let a={es:"es",en:"en",de:"de",fr:"fr",it:"it",br:"pt-BR",ru:"ru",pl:"pl",ja:"ja",tr:"tr",th:"th",id:"id",vi:"vi",ar:"sa",ro:"ro",hu:"hu",nl:"nl",cz:"cs-CZ",lt:"lt"},s=()=>({headers:{Authorization:"Bearer c3f55729baa11002c6c1adcac5ac722fb23fb4a092e6bb0153fb6832c2933dbbeea2737649c31396f2631257bbd25cbdd4464cb94c4408cdd7e8b18e184ba84984f0c0e470e0b95f30ccfffe89c0484452411027d7be62e83b110ae5e5a0c1b1941c73b4f4ed31aed03ee845079d6a14ada171d1b71c419b849074730a0fa682"}});var r=l(78084);let i=async e=>{let t=`?locale=${a[e||"en"]}&filters[tool_active][$eq]=true&filters[show_in_menu][$eq]=true`,l=r.QP.getFileTool+t,o=s();return await (0,n.xe)(l,{headers:o})};(0,o.unstable_cache)(async e=>{let t=await i(e);if(!t||t.status<200||t.status>=300)throw Error(`getActiveFileToolForLocale failed for locale "${e}": ${t?.status??"no response"}`);return{statusText:t.statusText,data:t.data}},["active-file-tool-for-locale"],{revalidate:3600,tags:["active-file-tool-for-locale"]});let d=e=>{let t=e?String(e):"document";try{t=decodeURIComponent(t)}catch(e){console.log("Decode url issue")}return"function"==typeof t.normalize&&(t=t.normalize("NFC")),(t=(t=t.trim().replace(/[.\s]+$/,"")).replace(/\.[^/.]+$/,""))||(t="document"),`${t}.pdf`}}}]);

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.