PageSourceSearch

https://pdfbeast.com/_next/static/chunks/app/%5Blocale%5D/payment-success/page-bffa5a8656853c49.js

js pdfbeast.com collected 2026-10-04 12:58:17 UTC 8,385 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]="36f18667-d14f-4615-a7a3-cd18f4d5515f",e._sentryDebugIdIdentifier="sentry-dbid-36f18667-d14f-4615-a7a3-cd18f4d5515f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1870],{57426:function(e,t,o){Promise.resolve().then(o.bind(o,79781)),Promise.resolve().then(o.bind(o,54399)),Promise.resolve().then(o.bind(o,40061)),Promise.resolve().then(o.bind(o,31436)),Promise.resolve().then(o.bind(o,19303)),Promise.resolve().then(o.bind(o,26363)),Promise.resolve().then(o.bind(o,89971)),Promise.resolve().then(o.t.bind(o,81749,23)),Promise.resolve().then(o.bind(o,30298))},32481:function(e,t,o){"use strict";o.d(t,{$$:function(){return n},K$:function(){return d},RM:function(){return i},Wh:function(){return l},i3:function(){return c},ig:function(){return r},nj:function(){return s}}),o(15355);var a=o(13472);(0,a.$)("4fd64bfffae7f2a192186d9e6152e87256ce8280");var s=(0,a.$)("afc5833ea3bf7f0f4e9139447fe725dc66f1a373"),n=(0,a.$)("672692811718c3354bbb7a116f7f5bd2ac52da74"),r=(0,a.$)("8ab524787169077b10de7737cdc8382cdf10acc1"),d=(0,a.$)("81f8d134d72e2500cfdc70d80092543a1b8faf6b"),i=(0,a.$)("9f9303803990097fb9e260507a9a373a784e3555"),l=(0,a.$)("82537dcb05519a7a210c15606d79c5cc6c1f340a"),c=(0,a.$)("e9e0294543a37197c20b4442e386cccf5f2451e2");(0,a.$)("6634b7ba54745b12f9615bf7305a4665ce36a781"),(0,a.$)("306854d0500c38fb37cb9ff18e7bf9c2e3efab71")},31436:function(e,t,o){"use strict";o.r(t);var a=o(3827),s=o(64090),n=o(70784),r=o(71399),d=o(30982);t.default=()=>{let[e,t]=(0,s.useState)(!0),o=(0,d.useTranslations)("PaymentDone.ShowPaymentStatus.DownloadCard.ReviewDialog"),i=()=>{t(!1)};return e?(0,a.jsxs)("div",{id:"review-dialog",className:" fixed z-50 rounded-xl border border-gray-200 bg-white shadow-xl p-5     inset-x-4 bottom-4 sm:inset-auto sm:bottom-4 sm:right-4 ",children:[(0,a.jsx)("button",{onClick:i,className:"absolute top-3 right-3 text-gray-400 hover:text-gray-700",children:(0,a.jsx)(n.FU5,{size:18})}),(0,a.jsxs)("h3",{className:"flex items-center justify-center gap-2 text-lg font-semibold text-gray-900 mb-2",children:[(0,a.jsx)(r.QJe,{className:"text-yellow-400",size:18}),(0,a.jsx)("span",{children:o("title")})]}),(0,a.jsx)("p",{className:"text-sm text-gray-600 text-center mb-4 leading-relaxed",children:o.rich("description",{brand:e=>(0,a.jsx)("span",{className:"font-medium text-gray-800",children:"Trustpilot"})})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("button",{onClick:()=>{window.open("https://www.trustpilot.com/review/pdfbeast.com","_blank","noopener,noreferrer"),t(!1)},className:"flex-1 rounded-lg bg-pivot-color text-white text-sm font-medium py-2 hover:opacity-90 transition",children:o("reviewButton")}),(0,a.jsx)("button",{onClick:i,className:"flex-1 rounded-lg bg-gray-100 text-gray-700 text-sm py-2 hover:bg-gray-200 transition",children:o("laterButton")})]})]}):null}},54399:function(e,t,o){"use strict";o.r(t);var a=o(3827),s=o(32481),n=o(99817),r=o(92402),d=o(10243),i=o(30982),l=o(64090),c=o(30298);t.default=e=>{let{userId:t}=e,o=(0,i.useTranslations)("PaymentDone.ShowPaymentStatus.DownloadCard.DownloadFileButton"),[u,f]=(0,l.useState)(!1),[m,b]=(0,l.useState)(10),[h,p]=(0,l.useState)(!1),[w,g]=(0,l.useState)(""),[x,y]=(0,l.useState)(""),[v,S]=(0,l.useState)(""),j=(0,i.useLocale)(),N="download-toast",D=async()=>{if(p(!0),!await (0,r.F7)(t)){c.toast.error(o("subscriptionNotFound"),{style:(0,r._c)(),autoClose:3e3,className:"pdfbeast-toast"}),p(!1);return}if(w&&x&&v){let e=v;f(!0);let a=(0,r.mD)(x);if((0,r.AY)(a)&&(e=r.Ih[a]),c.toast.success(o("documentDownlodStart"),{toastId:N,style:(0,r._c)(),className:"pdfbeast-toast"}),b(Math.floor(10*Math.random())+10),await (0,n.r6)(w)){b(Math.floor(10*Math.random())+20);let a=await (0,s.ig)(w),n=await fetch(a);if(!n.ok)throw Error("Failed to fetch document");let d=await n.blob();if("pdf"===e){let e=document.createElement("a");e.href=URL.createObjectURL(d),e.download=`${x}
1`,document.body.appendChild(e),e.click(),document.body.removeChild(e),p(!1),b(100),c.toast.update(N,{render:o("documentDownlodDone"),type:"success",autoClose:3e3});return}b(Math.floor(10*Math.random())+30);let i=new File([d],x,{type:"application/pdf"});b(Math.floor(10*Math.random())+40),await (0,r.jT)(i,e,t,w,{locale:j,onSuccess:e=>{window.location.href=e,c.toast.update(N,{render:o("documentDownlodDone"),type:"success",autoClose:3e3})}}),b(100),p(!1)}}else c.toast.update(N,{render:o("documentDownlodError"),type:"error",autoClose:3e3});p(!1)};return(0,l.useEffect)(()=>{let e=sessionStorage.getItem("source")||sessionStorage.getItem("documentId"),t=sessionStorage.getItem("documentName")||sessionStorage.getItem("docName"),o=sessionStorage.getItem("convertFormat");g(e),y(t),S(o)},[]),w&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-sm",children:o("downloadInfo")}),(0,a.jsx)(d.Button,{placeholder:"Download file",size:"lg",type:"button",className:"bg-pivot-color hover:bg-pivot-dark-color w-[200px] flex justify-center",onClick:D,disabled:h,children:h?(0,a.jsx)(d.Spinner,{className:"[&>path:last-child]:text-pivot-color"}):o("downloadFile")})]})}},40061:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return m}});var a=o(3827),s=o(10243),n=o(70784),r=o(64090),d=o(30298),i=o(30982),l=o(92402),c=o(32481);let u=e=>{let{setOpen:t,userId:o}=e,n=(0,i.useLocale)(),[u,f]=(0,r.useState)(!1),m=(0,i.useTranslations)("PaymentDone.ShowPaymentStatus.DownloadCard.DownloadFileButton"),b="download-toast",h=async()=>{if(!await (0,l.F7)(o)){d.toast.error(m("subscriptionNotFound"),{style:(0,l._c)(),autoClose:3e3,className:"pdfbeast-toast"}),t(!1);return}let e=sessionStorage.getItem("documentId")||void 0,a=sessionStorage.getItem("convertFormat")||void 0,s=sessionStorage.getItem("docName")||"document",r=(0,l.mD)(s);if((0,l.AY)(r)&&(a=l.Ih[r]),!e||!a){d.toast.error("File information missing."),t(!1);return}let i=`downloaded_${s}_${a}`;if("true"===sessionStorage.getItem(i)){d.toast.info("File already downloaded."),t(!1);return}try{f(!0),d.toast.success(m("documentDownlodStart"),{toastId:b,style:(0,l._c)(),className:"pdfbeast-toast"});let r=await (0,c.ig)(e),u=await fetch(r);if(!u.ok)throw t(!1),Error("Failed to fetch document");let h=await u.blob();if("pdf"===a){let e=document.createElement("a");e.href=URL.createObjectURL(h),e.download=`${s}`,document.body.appendChild(e),e.click(),document.body.removeChild(e),d.toast.update(b,{render:m("documentDownlodDone"),type:"success",autoClose:3e3}),sessionStorage.setItem(i,"true"),f(!1),t(!1);return}let p=new File([h],s,{type:"application/pdf"});await (0,l.jT)(p,a,o,e,{locale:n,setProcessing:f,onSuccess:e=>{window.location.href=e,d.toast.update(b,{render:m("documentDownlodDone"),type:"success",autoClose:3e3})},onFinally:()=>{t(!1)}}),sessionStorage.setItem(i,"true")}catch(e){console.error(e),d.toast.update(b,{render:"Conversion failed.",type:"error",autoClose:3e3,className:"pdfbeast-toast"}),f(!1),t(!1)}};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("button",{onClick:h,disabled:u,className:"w-full rounded-md bg-pivot-color py-3 text-white font-medium hover:opacity-90 transition flex item-center justify-center",children:u?(0,a.jsx)(s.Spinner,{className:"h-7 w-7"}):m("downloadFile")})})},f="download_popup_opened";var m=e=>{let{userId:t}=e,[o,d]=(0,r.useState)(!1),l=(0,i.useTranslations)("PaymentDone.ShowPaymentStatus.DownloadCard.DownloadFileButton");return(0,r.useEffect)(()=>{sessionStorage.getItem(f)||(d(!0),sessionStorage.setItem(f,"true"))},[]),(0,a.jsxs)(s.Dialog,{size:"sm",open:o,handler:()=>d(!1),className:"text-black py-10 px-3 md:px-8",placeholder:"dialog",children:[(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)("button",{onClick:()=>d(!1),className:"outline-none",children:(0,a.jsx)(n.FU5,{size:20})})}),(0,a.jsxs)("div",{className:"mt-2",children:[(0,a.jsx)("p",{className:"text-2xl font-medium text-center mb-6",children:l("downloadYourFile")}),(0,a.jsx)("p",{className:"text-sm text-center mb-6",children:l("downloadGuide")}),(0,a.jsx)(u,{setOpen:d,userId:t})]})]})}}},function(e){e.O(0,[6384,6051,3665,7240,5706,4574,1821,7699,9978,9451,1032,1185,8792,3407,936,2402,9781,2971,1287,1744],function(){return e(e.s=57426)}),_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.