1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6661],{29463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var r=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e}},45017:(e,t,n)=>{"use strict";n.d(t,{JG:()=>o,nU:()=>a,nd:()=>s,pQ:()=>u});var r=n(29935),i=n(82643),c=n(15675),s=function(){return(0,r._)(function(){return(0,i.YH)(this,function(e){switch(e.label){case 0:return[4,(0,c.Jt)("/backend/web/checkout/status",void 0,!1,!0)];case 1:return[2,e.sent()]}})})()},a=function(){return(0,r._)(function(){return(0,i.YH)(this,function(e){switch(e.label){case 0:return[4,(0,c.Jt)("/backend/web/tiers-details",void 0,!1,!0)];case 1:return[2,e.sent()]}})})()},o=function(){return(0,r._)(function(){return(0,i.YH)(this,function(e){switch(e.label){case 0:return[4,(0,c.bE)("/backend/web/checkout/intent",void 0,!1,!0)];case 1:return[2,e.sent()]}})})()},u=function(e){return(0,r._)(function(){return(0,i.YH)(this,function(t){switch(t.label){case 0:return[4,(0,c.bE)("/backend/web/checkout/submit",e,!1,!0)];case 1:return[2,t.sent()]}})})()}},53065:(e,t,n)=>{"use strict";n.d(t,{f:()=>u});var r=n(15383),i=n(21515),c=n(71582),s=n(73154),a=n(83987),o=function(e){var t=e.authenticated,n=e.redirect;return(0,r.jsx)(i.A,{color:"green",size:"large",onClick:function(){window.location.href=t?"/dashboard/".concat(n):window.location.origin.replace("tinify.com","tinypng.com")},children:t?"Visit dashboard":"Back to homepage"})},u=function(e){var t=e.title,n=e.subtitle,i=e.action,u=e.redirect,l="authenticated"===(0,s.md)(a.e).state;return(0,r.jsxs)(c.W,{title:t,subtitle:n,children:[(0,r.jsx)("h2",{children:"Payment failed"}),(0,r.jsx)("h4",{children:"Your order has not been processed"}),(0,r.jsxs)("p",{children:[void 0===i?"You can attempt to purchase the product or service again.":i," However, if you believe this is an error, please contact"," ",(0,r.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),(0,r.jsx)(o,{authenticated:l,redirect:u})]})}},77477:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(29935),i=n(12694),c=n(82643),s=n(15383),a=n(14343),o=n(21515),u=n(71582),l=n(29463),d={pro:"/_next/static/media/panda-george-web-pro.2468cdab.png",ultra:"/_next/static/media/panda-george-web-ultra.3bc311ce.png"},h=function(e){var t=e.title,n=e.subtitle,r=e.status,i=e.renew,c=e.tier;return(0,s.jsxs)(u.W,{title:t,subtitle:n,image:d[c],children:[i?(0,s.jsxs)("h2",{children:["Your Web ",(0,l.Z)(c)," subscription has been renewed"]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("h2",{children:["Thanks for signing up for Web ",(0,l.Z)(c),"!"]}),(0,s.jsx)("h3",{children:"Your request is being processed."}),(0,s.jsxs)("p",{children:["Our team is currently processing your order and upgrading your account. You will receive a confirmation shortly at"," ",(0,s.jsx)("span",{className:"email",children:(null==r?void 0:r.email)||"you"}),". You can start using the drag-and-drop web interface without limitations in just a few moments."]})]}),(0,s.jsx)(o.A,{color:"green",size:"large",handleSubmit:function(){window.location.href=f(null==r?void 0:r.token)},children:"Visit web interface"})]})},f=function(e){return window.location.origin.replace("tinify.com","tinypng.com")+(e?"/#token/".concat(e):"")},b=n(3515),p=n(45017),w=n(53065),g=n(87691),m=n(62413),_=n(73154);function x(){var e=(0,i._)((0,a.useState)(!0),2),t=e[0],n=e[1],o=(0,i._)((0,a.useState)(!1),2),u=o[0],d=o[1],f=(0,i._)((0,a.useState)("pro"),2),x=f[0],j=f[1],v=(0,i._)((0,a.useState)(),2),k=v[0],y=v[1],Y=(0,i._)((0,a.useState)(!1),2),E=Y[0],S=Y[1],W=(0,_.md)(m.Hp),H=(0,_.md)(m.ug);return(0,a.useEffect)(function(){var e=new URLSearchParams(window.location.search);n("failed"!==e.get("redirect_status")),d("true"===e.get("renew")),j(e.get("tier")||"ultra"),(0,r._)(function(){return(0,c.YH)(this,function(e){switch(e.label){case 0:return[4,(0,p.nd)()];case 1:return y(e.sent()),S(!0),[2]}})})()},[]),(0,a.useEffect)(function(){if(E&&t&&W&&H){var e="pro"===x?39:149;(0,g.$2)(W+"_"+H,e)}},[E,W,H]),(0,s.jsx)(b.P,{title:"Web checkout",description:"Web checkout page",bare:!0,children:t?(0,s.jsx)(h,{title:(0,s.jsx)("h1",{children:"Success"}),subtitle:(0,s.jsxs)("h2",{children:["Web ",(0,l.Z)(x)]}),status:k,renew:u,tier:x}):(0,s.jsx)(w.f,{title:(0,s.jsx)("h1",{children:"Sign up"}),subtitle:(0,s.jsxs)("h2",{children:["Web ",(0,l.Z)(x)]}),redirect:"web"})})}},96909:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/web-complete",function(){return n(77477)}])}},e=>{e.O(0,[5645,4668,2963,6798,8816,9208,7462,2805,7115,3515,9050,636,6593,8792],()=>e(e.s=96909)),_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.