1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8130],{72865:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},s=n(39320),a=function(e,t){return r.createElement(s.Z,Object.assign({},e,{ref:t,icon:i}))};a.displayName="UserOutlined";var o=r.forwardRef(a)},94191:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var r=n(50029),i=n(17674),s=n(64687),a=n.n(s),o=n(67294),l=n(2440),c=n(24665),d=n(20564),u=n(8526),p=n(54680),f=n(6740),h=n(17421),m=n(3994),x=n(95110),y=n(7767),Z=n(72865),g=n(72961),j=n(39320),b=function(e,t){return o.createElement(j.Z,Object.assign({},e,{ref:t,icon:g.Z}))};b.displayName="CheckCircleFilled";var v=o.forwardRef(b),P=n(33615),F=n(85893),k=l.Z.Title,w=l.Z.Paragraph,S=function(){var e,t,n=c.Z.useForm(),s=(0,i.Z)(n,1)[0],l=(0,o.useState)([]),g=l[0],j=l[1],b=(0,o.useState)(!1),S=b[0],_=b[1],C=(0,o.useState)(void 0),z=C[0],N=C[1],O=(e=(0,r.Z)(a().mark(function e(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.W)({url:"/api/public/register/registerAndCreate",method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}));case 1:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)}),E=(t=(0,r.Z)(a().mark(function e(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,_(!0),e.next=4,O({destination:t.destination,email:t.email,type:"PDF",title:"PDF upload",description:"PDF uploaded and hosted by Pxl.to"});case 4:e.sent,N("pending"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),d.ZP.error("string"==typeof e.t0?e.t0:"Unknown error");case 12:return e.prev=12,_(!1),e.finish(12);case 15:case"end":return e.stop()}},e,null,[[0,8,12,15]])})),function(e){return t.apply(this,arguments)});return(0,F.jsxs)("div",{children:[(0,F.jsxs)(c.Z,{form:s,layout:"vertical",hidden:!!z,name:"basic",onFinish:E,onFinishFailed:function(e){e.errorFields&&(console.error(e.errorFields[0].errors[0]),d.ZP.error(e.errorFields[0].errors[0]))},children:[(0,F.jsx)(c.Z.Item,{style:{width:"100%"},children:(0,F.jsx)(u.Z,{maxCount:1,className:"custom-upload-component",listType:"text",action:"".concat("https://app.pxl.to","/api/public/tools/pdf-upload/upload"),beforeUpload:function(e){var t="application/pdf"===e.type,n=e.size/1024/1024<10;return t||d.ZP.error("You can only upload a PDF file"),n||d.ZP.error("PDF must be smaller than 10 MB"),t&&n},onChange:function(e){if(j(e.fileList),"removed"===e.file.status)s.setFieldsValue({destination:""});else if("done"===e.file.status){var t;s.setFieldsValue({destination:null===(t=e.file.response)||void 0===t?void 0:t.url})}},fileList:g,children:g.length<1&&(0,F.jsx)(p.Z,{block:!0,icon:(0,F.jsx)(y.Z,{}),style:{fontSize:"18px",height:"80px",padding:"20px",border:"1px solid #60a5fa"},children:"Click to upload PDF"})})}),(0,F.jsx)(c.Z.Item,{name:"destination",hidden:!0,children:(0,F.jsx)(f.Z,{})}),g.length>0&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(c.Z.Item,{style:{marginBottom:"8px"},children:(0,F.jsx)("label",{style:{fontSize:"18px",display:"block",textAlign:"center"},children:"What is your email address?"})}),(0,F.jsxs)(h.Z,{gutter:16,align:"top",children:[(0,F.jsx)(m.Z,{flex:"auto",children:(0,F.jsx)(c.Z.Item,{name:"email",rules:[{required:!0,message:"Please input a valid email address",type:"email",min:1,max:128}],style:{marginBottom:"10px"},children:(0,F.jsx)(f.Z,{size:"large",prefix:(0,F.jsx)(Z.Z,{}),placeholder:"[email protected]"})})}),(0,F.jsx)(m.Z,{xs:24,sm:6,children:(0,F.jsx)(c.Z.Item,{style:{marginBottom:0},children:(0,F.jsx)(p.Z,{loading:S,type:"primary",htmlType:"submit",style:{width:"100%",height:"40px",fontSize:"16px"},children:"Get Link"})})})]})]})]}),z&&(0,F.jsx)(x.ZP,{icon:(0,F.jsx)(v,{style:{color:"#52c41a",fontSize:"48px"}}),title:(0,F.jsx)(k,{level:3,children:"Ready! Only one more step"}),subTitle:(0,F.jsx)(w,{style:{margin:0,fontSize:"18px"},children:"Please check your email inbox to activate your link."}),style:{padding:"0",background:"transparent"}})]})}},39384:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/pdf-upload",function(){return n(94191)}])}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=39384)}),_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.