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]="bef86a5d-1616-44fa-88be-47d00415f200",e._sentryDebugIdIdentifier="sentry-dbid-bef86a5d-1616-44fa-88be-47d00415f200")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6411],{62246:function(e,t,s){Promise.resolve().then(s.bind(s,79781)),Promise.resolve().then(s.bind(s,25776)),Promise.resolve().then(s.bind(s,69656)),Promise.resolve().then(s.bind(s,20009)),Promise.resolve().then(s.bind(s,47761)),Promise.resolve().then(s.bind(s,12891)),Promise.resolve().then(s.bind(s,90046)),Promise.resolve().then(s.bind(s,26363)),Promise.resolve().then(s.bind(s,89971)),Promise.resolve().then(s.t.bind(s,81749,23)),Promise.resolve().then(s.bind(s,30298))},32481:function(e,t,s){"use strict";s.d(t,{$$:function(){return i},K$:function(){return l},RM:function(){return o},Wh:function(){return c},i3:function(){return d},ig:function(){return a},nj:function(){return r}}),s(15355);var n=s(13472);(0,n.$)("4fd64bfffae7f2a192186d9e6152e87256ce8280");var r=(0,n.$)("afc5833ea3bf7f0f4e9139447fe725dc66f1a373"),i=(0,n.$)("672692811718c3354bbb7a116f7f5bd2ac52da74"),a=(0,n.$)("8ab524787169077b10de7737cdc8382cdf10acc1"),l=(0,n.$)("81f8d134d72e2500cfdc70d80092543a1b8faf6b"),o=(0,n.$)("9f9303803990097fb9e260507a9a373a784e3555"),c=(0,n.$)("82537dcb05519a7a210c15606d79c5cc6c1f340a"),d=(0,n.$)("e9e0294543a37197c20b4442e386cccf5f2451e2");(0,n.$)("6634b7ba54745b12f9615bf7305a4665ce36a781"),(0,n.$)("306854d0500c38fb37cb9ff18e7bf9c2e3efab71")},25776:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return i}});var n=s(64090),r=s(47907);function i(){let e=(0,r.useSearchParams)();return(0,n.useEffect)(()=>{let t=e.get("documentId"),s=e.get("format"),n=e.get("documentName");t&&s&&n&&(sessionStorage.setItem("documentId",t),sessionStorage.setItem("convertFormat",s),sessionStorage.setItem("docName",n))},[e]),null}},69656:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return o}});var n=s(3827),r=s(90046),i=s(64090),a=s(30982),l=s(92402);function o(e){let{currencySymbol:t,isFreeTrialCountry:s,isTrialCompleted:o,basePlanAmount:c,currency:d,yearlyPlanAmount:u,yearlyPlanCurrency:m}=e,{userCount:f,total:g,discountAmount:p,setRenewTotal:x,setTrialTotal:h}=(0,r.usePricing)(),b=(0,a.useTranslations)("PlanPayment.PaymentDetails"),[v,y]=(0,i.useState)({users:1,planAmount:0,planUnit:"year",discount:0,total:0,subtotal:0});(0,i.useEffect)(()=>{s&&y({users:Number(sessionStorage.getItem("usersCount"))||1,planAmount:Number(sessionStorage.getItem("selectedPlanAmount"))||0,planUnit:sessionStorage.getItem("selectedPlanUnit")||"year",total:Number(sessionStorage.getItem("total"))||0,subtotal:Number(sessionStorage.getItem("subtotal"))||0,discount:Number(sessionStorage.getItem("discountAmount"))||0})},[s]);let j=s&&!o,w=s?v.users:f,P=0;s&&v.discount;let S=j?0:g||("clp"===d?c:c/100),N=u?"clp"===m?u:u/100:0,I=N*w;P=I*(l.Jv[(0,l.WH)(w)]||0)/100;let F=I-P,_=s&&v.planAmount?v.planAmount:F/w,E=s&&v.planUnit?v.planUnit:"year",$=s&&v.total?v.total/w:S,D=s&&$?$*w:_*w;(0,i.useEffect)(()=>{D&&(x(D),h(S),sessionStorage.setItem("renewTotal",String(D)),sessionStorage.setItem("renewUsers",String(w)))},[D,w,S]);let C=new Date;C.setUTCDate(C.getUTCDate()+7);let A=C.toLocaleDateString("en-GB");return(0,n.jsxs)("div",{className:"flex flex-col payment-amount rounded-md w-full bg-[#EBE7F4] shadow-document-border px-4 sm:px-8 py-4 sm:py-6",children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("span",{className:"text-sm text-gray-600",children:b("subtext")}),(0,n.jsxs)("span",{className:"font-bold text-xl",children:[t,o&&s?D.toFixed(2):S.toFixed(2)]})]}),u&&m&&(0,n.jsxs)("div",{className:"mt-4 pt-4 border-t border-gray-300 flex flex-col sm:flex-row sm:justify-between text-sm text-gray-700 gap-2",children:[(0,n.jsxs)("div",{children:[!o&&b("after7days")," ",!s&&w>1&&(0,n.jsxs)("s",{children:[t,N.toFixed(2)]}),s&&w>1&&_&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("s",{children:[t,_.toFixed(2)]})," "]})," ",s?(0,n.jsxs)(n.Fragment,{children:[t,_.toFixed(2)," /",E," \xd7 ",w," ",b("users")," ="]}):!s&&o?(0,n.jsxs)(n.Fragment,{children:[t,(S/w).toFixed(2)," /",E," \xd7 ",w," ",b("users")," ="]}):(0,n.jsxs)(n.Fragment,{children:[t,_.toFixed(2)," /",E," \xd7 ",w," ",b("users")," ="]}),s?(0,n.jsxs)(n.Fragment,{children:[t,D.toFixed(2)]}):!s&&o?(0,n.jsxs)(n.Fragment,{children:[t,S.toFixed(2)]}):(0,n.jsxs)(n.Fragment,{children:[t,D.toFixed(2)]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"font-medium",children:b("renewDate")})," ",A]})]})]})}},20009:function(e,t,s){"use strict";s.r(t);var n=s(3827),r=s(32481),i=s(10243),a=s(75504),l=s(30982),o=s(20703),c=s(64090),d=s(48012);let u=async e=>e&&""!==e&&null!==e?await (0,r.K$)(e):"",m={"pdf-to-word":"/img/word-icon.svg","pdf-to-excel":"/img/excel-icon.svg","pdf-to-text":"/img/text-file.svg","pdf-to-pptx":"/img/ppt-file.svg","pdf-to-csv":"/img/csv-file.svg","pdf-to-html":"/img/html-file.svg","pdf-to-rtf":"/img/rtm-file.svg","pdf-to-json":"/img/json-file.svg","pdf-to-jpg":"/img/jpg-file.svg","pdf-to-png":"/img/png-file.svg"};t.default=e=>{let{bgColor:t,imgContain:s,source:r}=e,[f,g]=(0,c.useState)(!0),[p,x]=(0,c.useState)(""),h=(0,l.useTranslations)("ChoosePlan.ShowPlans.PagePreview");return(0,c.useEffect)(()=>{(async()=>{let e=sessionStorage.getItem("source")||sessionStorage.getItem("documentId"),t=sessionStorage.getItem("tool");if(r&&"null"!==r||e){let s=await u(e||r);s?x(s):x(t&&m[t]?m[t]:"/img/PDF_file_icon.svg.png")}else x(t&&m[t]?m[t]:"/img/PDF_file_icon.svg.png");g(!1)})()},[]),(0,n.jsxs)("div",{className:(0,a.Z)("page-preview w-full rounded-xl h-[475px]",t),children:[(0,n.jsxs)("div",{className:"step doc-ready flex gap-2 items-center p-2 m-auto justify-center rounded-t-xl bg-[#D8EFE7]",children:[(0,n.jsx)("div",{className:"tic-icon rounded-full bg-[#059B64] w-[20px] h-[20px] flex justify-center items-center",children:(0,n.jsx)(d.jbV,{size:16,color:"white"})}),(0,n.jsx)("div",{className:"font-semibold text-sm",children:h("documentReady")})]}),f?(0,n.jsx)("div",{className:"loading flex w-full h-full justify-center items-center",children:(0,n.jsx)(i.Spinner,{className:"h-16 w-16 [&>path:last-child]:text-pivot-color"})}):(0,n.jsx)("div",{className:"doc-image flex justify-center h-full items-start overflow-hidden",children:(0,n.jsx)(o.default,{src:p,alt:"image",width:250,height:250,className:(0,a.Z)("w-4/5 overflow-hidden align-middle object-contain h-4/5")})})]})}},47761:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return w}});var n=s(3827),r=s(78084),i=s(11923),a=s(65482),l=s(47907),o=s(243),c=s(10243),d=s(64090),u=s(30982),m=s(24232),f=s(71360),g=s(30298),p=s(20703),x=s(7908),h=s(76122),b=s(90046),v=s(92402);let y=(0,m.default)(()=>s.e(8817).then(s.bind(s,8817)),{loadableGenerated:{webpack:()=>[8817]},ssr:!1});var j=e=>{let{session:t,clientSecret:s,customerId:a,planId:o,country:m,amount:j,currencySymbol:w,paymentIntentId:P,isTrialComplete:S,currency:N}=e,{locale:I}=(0,l.useParams)(),F=(0,u.useTranslations)("PlanPayment.PaymentDetails.PaymentSection.PaymentForm"),_=(0,i.useStripe)(),E=(0,i.useElements)(),[$,D]=(0,d.useState)(!0),[C,A]=(0,d.useState)(!0),[T,U]=(0,d.useState)(!1),{userCount:k,setUserCount:B,setSubtotal:z,setDiscountAmount:R,setTotal:G}=(0,b.usePricing)(),W=(j??0)/100,{subtotal:Z,discountAmount:O,total:X,discountPercent:Y}=(0,v.a4)({basePrice:W,users:k}),q=(0,v.WH)(k);if((0,d.useEffect)(()=>{z(Z),R(O),G(X)},[k,Z,O,X]),(0,d.useEffect)(()=>{_&&E&&(A(!1),D(!1),E.update({locale:"br"===I?"pt-BR":"cz"===I?"cs":I}))},[_,E]),!t)return g.toast.error("Somthing went wrong!");o||console.log("Plan Missing");let K=e=>{D(!1),g.toast.error(e.message)},L=async e=>{if(e.preventDefault(),D(!0),h.XL.includes(m)||await x.Z.post("/api/update-payment-intent",{paymentIntentId:P,basePrice:W,userCount:k}),E&&_){let{error:e}=await E.submit();if(e){K(e);return}let n=(0,v.rD)(I,r.vw.paymentSuccessPage);if(s.startsWith("seti_")){let{error:e}=await _.confirmSetup({elements:E,clientSecret:s,confirmParams:{return_url:n}});"card_error"===e.type||"validation_error"===e.type||"invalid_request_error"===e.type?g.toast.error(e.message||""):g.toast.error("An unexpected error occured."),D(!1)}else{let e=await _.confirmPayment({elements:E,clientSecret:s,redirect:"if_required"});if(e.error){g.toast.error(e.error.message||"Payment failed"),D(!1);return}h.XL.includes(m)||await x.Z.post("/api/create-subscription",{priceId:o,customerId:a,userCount:k,discountCoupon:q,country:m,userId:t.user.id,isTrialComplete:S,currency:N}),window.location.href=`${n}?payment_intent=${e.paymentIntent?.id}&redirect_status=succeeded`}}};return C?(0,n.jsx)("div",{className:"loading flex w-full h-full justify-center items-center",children:(0,n.jsx)(c.Spinner,{className:"h-16 w-16 [&>path:last-child]:text-pivot-color"})}):(0,n.jsxs)(n.Fragment,{children:[$&&(0,n.jsx)("div",{className:"w-full h-dvh grid place-items-center z-[1100] fixed top-0 left-0 bg-[#817f7f59]",children:(0,n.jsx)("div",{className:"flex justify-center items-center rounded-full",children:(0,n.jsx)(c.Spinner,{className:"h-20 w-20 [&>path:last-child]:text-pivot-color"})})}),(0,n.jsxs)("form",{onSubmit:L,children:[(0,n.jsx)("div",{className:"payment-element flex flex-col",children:(0,n.jsx)(i.PaymentElement,{id:"payment-element",className:"my-4",onChange:e=>{e.complete&&U(e.complete)}})}),(_||E)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{className:"text-xs flex gap-1 items-center my-2",children:[(0,n.jsx)("span",{className:"text-[#16A974]",children:(0,n.jsx)(f.wF$,{size:20})})," ",F("securePaymentInfo")]}),(0,n.jsx)(c.Button,{placeholder:"Download my document",size:"lg",type:"submit",className:"bg-pivot-color hover:bg-pivot-d
1ark-color my-4 flex w-full rounded-md justify-center",disabled:!T||$,children:$?(0,n.jsx)(c.Spinner,{className:"[&>path:last-child]:text-pivot-color"}):F("downloadDocument")}),(0,n.jsx)("div",{className:"w-full flex justify-center items-center",children:(0,n.jsx)(p.default,{src:"/img/secure-payment.png",alt:"secure-payment",width:250,height:150})})]})]}),!$&&(0,n.jsx)(y,{})]})},w=e=>{let{session:t,stripeCustomer:s,amount:c,clientSecret:d,planId:u,country:m,paymentIntentId:f,isTrialComplete:g,currencySymbol:p,currency:x}=e,{locale:h}=(0,l.useParams)(),b=(0,o.tv)(),v=(0,a.J)("pk_live_51Oy6oI09Iy6G4yeE3skOAiuZarXW3fqNc56W5l354RdgV5uYBdP4GIAetvcIFEYw5Ygr3s66XB1KyEGRoEthdMTu00GvpISyYA",{locale:"br"===h?"pt-BR":"cz"===h?"cs":h});if(d&&t)return(0,n.jsx)("div",{className:"w-full md:p-10 p-4",children:(0,n.jsx)(i.Elements,{stripe:v,options:{clientSecret:d,locale:"br"===h?"pt-BR":"cz"===h?"cs":h},children:(0,n.jsx)(j,{clientSecret:d,session:t,customerId:s,planId:u,country:m,amount:c,paymentIntentId:f,isTrialComplete:g,currencySymbol:p,currency:x})})});console.log("Something went wrong! Please try again later."),b.push(r.vw.home)}},12891:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return o}});var n=s(3827),r=s(30982),i=s(243),a=s(78084),l=s(90046);function o(e){let{currencySymbol:t,translationKey:s}=e,o=(0,r.useTranslations)("PlanPayment.PaymentDetails"),{renewTotal:c,trialTotal:d}=(0,l.usePricing)();return(0,n.jsx)(n.Fragment,{children:o.rich(s,{trialPrice:`${t}${d.toFixed(2)}`,price:`${t}${c.toFixed(2)}`,subscription:e=>(0,n.jsx)(i.rU,{href:a.vw.subsciptionTerms,className:"underline",children:e}),terms:e=>(0,n.jsx)(i.rU,{href:a.vw.termsConditions,className:"underline",children:e})})})}},90046:function(e,t,s){"use strict";s.r(t),s.d(t,{PricingProvider:function(){return a},usePricing:function(){return l}});var n=s(3827),r=s(64090);let i=(0,r.createContext)(null),a=e=>{let{children:t}=e,[s,a]=(0,r.useState)(1),[l,o]=(0,r.useState)(0),[c,d]=(0,r.useState)(0),[u,m]=(0,r.useState)(0),[f,g]=(0,r.useState)(0),[p,x]=(0,r.useState)(0);return(0,n.jsx)(i.Provider,{value:{userCount:s,subtotal:l,discountAmount:c,total:u,renewTotal:f,trialTotal:p,setTrialTotal:x,setUserCount:a,setSubtotal:o,setDiscountAmount:d,setTotal:m,setRenewTotal:g},children:t})},l=()=>{let e=(0,r.useContext)(i);if(!e)throw Error("usePricing must be used within PricingProvider");return e}}},function(e){e.O(0,[6384,6051,3665,7240,5706,4574,1821,5452,9978,9451,1032,1185,8792,3407,936,5205,2402,9781,2971,1287,1744],function(){return e(e.s=62246)}),_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.