1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1217],{2419:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/photoshop",function(){return n(27174)}])},3887:(t,e,n)=>{"use strict";n.d(e,{JG:()=>o,nd:()=>a,pQ:()=>r});var i=n(29935),s=n(82643),c=n(15675),a=function(){return(0,i._)(function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return[4,(0,c.Jt)("/backend/photoshop/checkout/status",void 0,!1,!0)];case 1:return[2,t.sent()]}})})()},o=function(){return(0,i._)(function(){return(0,s.YH)(this,function(t){switch(t.label){case 0:return[4,(0,c.bE)("/backend/photoshop/checkout/intent",void 0,!1,!0)];case 1:return[2,t.sent()]}})})()},r=function(t){return(0,i._)(function(){return(0,s.YH)(this,function(e){switch(e.label){case 0:return[4,(0,c.bE)("/backend/photoshop/checkout/submit",t,!1,!0)];case 1:return[2,e.sent()]}})})()}},8059:(t,e,n)=>{"use strict";n.d(e,{k:()=>i});var i={usdEur:1}},27174:(t,e,n)=>{"use strict";n.r(e),n.d(e,{__N_SSG:()=>g,default:()=>w});var i=n(29935),s=n(17844),c=n(12694),a=n(82643),o=n(15383),r=n(14343),u=n(30786),l=n(49826),d=n(96683),p=n(34748),h=n(75950),m=n(90774);function f(t){var e=t.platform,n=t.quantity,i=t.setQuantity;return(0,o.jsx)(p.P,{background_color:h.A.colors.backgroundcolors.photoshop,children:(0,o.jsxs)("div",{className:"block",children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)("h4",{children:["Photoshop plugin for ",m.Bn[e].name]}),(0,o.jsx)("p",{children:m.Bn[e].compatibility})]}),(0,o.jsx)(d.e,{min:0,color:h.A.colors.buttoncolors.blue,quantity:n,setQuantity:i})]})})}var v=n(39406),x=n(37762);function b(t){var e=t.quantityMac,n=t.quantityWindows,i=t.price;return(0,o.jsxs)("div",{className:v.q,children:[e>0&&(0,o.jsxs)("div",{className:"box",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("h4",{children:"".concat(e,"x Photoshop plugin Mac")}),(0,o.jsx)("p",{className:"subtext",children:"Including sales tax (if applicable)"})]}),(0,o.jsx)("p",{className:"price",children:(0,x.ej)(e*i.usd)})]}),n>0&&(0,o.jsxs)("div",{className:"box",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("h4",{children:"".concat(n,"x Photoshop plugin Windows")}),(0,o.jsx)("p",{className:"subtext",children:"Including sales tax (if applicable)"})]}),(0,o.jsx)("p",{className:"price",children:(0,x.ej)(n*i.usd)})]})]})}var y=n(3515),_=n(3887),j=n(6268),g=!0;function w(t){var e=t.subscription,n=(0,j.l)(e).data,d=(0,c._)((0,r.useState)(m.q9),2),p=d[0],h=d[1],v=(0,c._)((0,r.useState)(),2),g=v[0],w=v[1],k=(0,c._)((0,r.useState)(),2),S=k[0],N=k[1],P=(0,c._)((0,r.useState)(),2),q=P[0],E=P[1],I=(0,c._)((0,r.useState)(),2),G=I[0],Q=I[1],A=(0,c._)((0,r.useState)(),2),C=A[0],M=A[1],T=(0,c._)((0,r.useState)(),2),Y=T[0],H=T[1],J=(0,c._)((0,r.useState)("usd"),2),O=J[0],W=J[1],B=(0,c._)((0,r.useState)(0),2),D=B[0],L=B[1],X=(0,c._)((0,r.useState)(0),2),z=X[0],F=X[1],R=(0,c._)((0,r.useState)(0),2),Z=R[0],$=R[1];(0,r.useEffect)(function(){$(D*p[O]+z*p[O])},[D,z,O,p]);var K=(0,x.ej)(p.usd*(D+z),"usd"),U=(0,x.ej)(Z,O);return(0,o.jsx)(y.P,{title:"Photoshop checkout",description:"Photoshop plugin checkout page",bare:!0,children:(0,o.jsx)(u.N,{title:(0,o.jsx)("h1",{children:"Checkout"}),subtitle:(0,o.jsx)("h2",{children:"Photoshop plugin"}),product:(0,o.jsxs)(l.Y,{title:"License",children:[(0,o.jsx)(f,{platform:"macos",quantity:D,setQuantity:L}),(0,o.jsx)(f,{platform:"windows",quantity:z,setQuantity:F})]}),orderSummary:(0,o.jsx)(b,{quantityMac:D,quantityWindows:z,price:p}),originalAmount:K,convertedAmount:U,paymentTypes:["card","alipay","wechat_pay","paypal","ideal"],account:g,invoiceDetails:S,onInitialize:function(){return(0,i._)(function(){var t,e,n,i;return(0,a.YH)(this,function(s){switch(s.label){case 0:return[4,(0,_.JG)()];case 1:return t=s.sent(),"#mac"==window.location.hash?L(1):F(1),e=t.price,n=t.account,i=t.invoice_details,h(e),w(n),N(i),[2]}})})()},onPaymentSelect:function(t){var e=t.type,n=t.currency,s=t.customer_id,c=t.method,o=t.sourceId;return(0,i._)(function(){return(0,a.YH)(this,function(t){return E(e),n&&W(n),Q(c),H(o),M(s),[2]})})()},onSubmit:function(t){return(0,i._)(function(){return(0,a.YH)(this,function(e){switch(e.label){case 0:if(!q)throw Error("Internal payment error.");return[4,(0,_.pQ)((0,s._)({type:q,method:G,customer:C,sourceId:Y,currency:O,quantities:{macos:D,windows:z}},t))];case 1:return[2,e.sent().token]}})})()},redirect:"/checkout/photoshop-complete",captchaEnabled:!0,personalInfoLabels:null==n?void 0:n.globalLanguageSetting})})}},34748:(t,e,n)=>{"use strict";n.d(e,{P:()=>s});var i=n(53764);n(87803);var s=(0,i.I)("div")({name:"ProductBlockStyles",class:"p1uid3aa",propsAsIs:!1,vars:{"p1uid3aa-0":[function(t){return t.background_color}]}})},34756:t=>{t.exports={cpacdxm:"cpacdxm","icon-wrapper":"icon-wrapper",icon:"icon",disabled:"disabled"}},37762:(t,e,n)=>{"use strict";n.d(e,{ej:()=>s,qG:()=>c});var i=function(t){return"usd"==t?"$":"â¬"},s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"usd";return"".concat(i(e)).concat((t/100).toFixed(2).replace(".00",""))},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"usd";return"-".concat(i(e)).concat((t/100).toFixed(2).replace(".00",""))}},87803:t=>{t.exports={p1uid3aa:"p1uid3aa",block:"block","icon-mobile-view":"icon-mobile-view","monthly-price":"monthly-price","upgrade-limit":"upgrade-limit"}},90774:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,Bn:()=>s,q9:()=>i});var i={usd:6500,eur:Math.round(6500*n(8059).k.usdEur)}
1,s={macos:{name:"macOS (OS X)",version:"2.5c",compatibility:"macOS 10.9 to 12 (Monterey)",file:"https://storage.googleapis.com/tinify/binaries/OSX/TinyPNG-JPG-v2.5c.zip"},windows:{name:"Windows",version:"2.5f",compatibility:"Windows 7, 8, 8.1, 10 and 11",file:"https://storage.googleapis.com/tinify/binaries/Win/TinyPNG-JPG-v2.5f.exe"}};let c={identifier:"tinypng.com",description:"TinyPNG and TinyJPG Photoshop Plugin",price:65,platforms:s}},96683:(t,e,n)=>{"use strict";n.d(e,{e:()=>o});var i=n(15383),s=n(69399),c=n(11945),a=n(53764);n(34756);var o=function(t){var e=t.min,n=t.color,a=t.quantity,o=t.disabled,u=t.setQuantity;return(0,i.jsxs)(r,{color:n,children:[(0,i.jsx)("div",{className:"icon-wrapper ".concat(o?"disabled":""),onClick:function(t){t.preventDefault(),u(Math.max(a-1,e))},children:(0,i.jsx)(s.g,{className:"icon",icon:c.EZy,style:{height:"1.2rem"}})}),(0,i.jsx)("input",{type:"text",value:a,disabled:o,onChange:function(t){t.preventDefault();var n=parseInt(t.target.value);n&&u(Math.max(n,e)),""==t.target.value&&u(0)}}),(0,i.jsx)("div",{className:"icon-wrapper ".concat(o?"disabled":""),onClick:function(t){t.preventDefault(),u(a+1)},children:(0,i.jsx)(s.g,{className:"icon",icon:c.QLR,style:{height:"1.2rem"}})})]})},r=(0,a.I)("div")({name:"CounterStyles",class:"cpacdxm",propsAsIs:!1,vars:{"cpacdxm-0":[function(t){var e=t.color;return void 0===e?"#fffff":e}]}})}},t=>{t.O(0,[5645,4668,2963,8551,3943,6798,8816,9208,7462,6268,8572,3891,4937,4310,2805,7115,3515,1672,8937,9939,636,6593,8792],()=>t(t.s=2419)),_N_E=t.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.