1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[511],{1605:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tips/new",function(){return a(1692)}])},1692:function(e,t,a){"use strict";a.r(t);var s=a(5893),n=a(6979),i=a(8723),r=a(3716),p=a(94),c=a(748),o=a(8997),u=a(1163),h=a(7294),f=a(6501),l=a(8100);t.default=()=>{let e=(0,u.useRouter)(),t=h.useCallback(async t=>{try{let a={...(0,p.x9)(t),amount:t.satsAmount,tippeeName:t.tippeeName,passphraseLength:t.passphraseLength,generatePassphrase:t.generatePassphrase,type:t.type},s=await fetch("/api/tipper/tips",{method:"POST",body:JSON.stringify(a),headers:{"Content-Type":"application/json"}});if(s.ok){f.ZP.success("Gift created");let t=await s.json();(0,l.JG)("/api/tipper/tips/".concat(t.id),t),e.push("".concat(c.d.tips,"/").concat(t.id))}else f.ZP.error("Failed to create gift: "+await (0,o.qk)(s))}catch(e){console.error(e),f.ZP.error("Gift creation failed. Please try again.")}},[e]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.Z,{h3:!0,children:"Create a new gift"}),(0,s.jsx)(i.Z,{}),(0,s.jsx)(r.u,{onSubmit:t,mode:"create"})]})}}},function(e){e.O(0,[5,7536,7747,6928,7883,3696,4969,2888,9774,179],function(){return e(e.s=1605)}),_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.