1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[121],{1010:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/add",function(){return r(2422)}])},3757:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var s=r(1799),n=r(9396),i=r(9534),a=r(5893),c=r(9008),o=r.n(c),l=r(2317),u=r(8272),d=r(2962),m={siteName:"Aucoin.com",title:"Aucoin",description:"Subastas online seguras, de monedas",url:"https://molus.co",imageUrl:"/og.jpeg",twitter:"@moluscomx"},g=function(e){var t=e.subtitle,r=e.description,s=void 0===r?m.description:r,n=e.url,i=void 0===n?m.url:n,c=e.imageUrl,o=void 0===c?m.imageUrl:c,l=t?"".concat(m.title," | ").concat(t):"".concat(m.title);return(0,a.jsx)(d.PB,{title:l,description:s,openGraph:{url:i,locale:"es",title:l,description:s,images:[{url:o,width:800,height:600,alt:l}],site_name:m.siteName},twitter:{handle:m.twitter,site:m.twitter,cardType:"summary_large_image"}})},h=function(e){var t=e.title,r=e.description,c=e.children,d=(0,i.Z)(e,["title","description","children"]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o(),{children:(0,a.jsx)("link",{rel:"icon",href:"/favicon.ico"})}),(0,a.jsx)(g,{subtitle:t,description:r}),(0,a.jsxs)("div",(0,n.Z)((0,s.Z)({className:"flex flex-col w-full"},d),{children:[(0,a.jsx)(l.Z,{}),(0,a.jsx)("div",{className:"my-0",children:c}),(0,a.jsx)(u.Z,{})]}))]})}},2422:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return g}});var s=r(5893),n=r(3757),i=r(7568),a=r(1799),c=r(603),o=r(655),l=r(7536),u=r(5454);r(9669);var d=r(7294);r(6501),r(1163),(0,i.Z)(function(e){var t,r,s;return(0,o.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),t=getProvider(),r=new Program(idl,programID,t),[4,PublicKey.findProgramAddressSync([utils.bytes.utf8.encode("COLLECTABLE_DEMO"),t.wallet.publicKey.toBuffer()],r.programId)];case 1:return s=c.Z.apply(void 0,[n.sent(),1])[0],[4,r.rpc.create(e.name,e.description,{accounts:{collectable:s,user:t.wallet.publicKey,systemProgram:SystemProgram.programId}})];case 2:return n.sent(),console.log("Created a new collectable w/ address:",s.toString()),[3,4];case 3:return console.error("Error creating collectable acount",n.sent()),[3,4];case 4:return[2]}})});var m=function(e){var t=e.type,r=(0,l.cI)(),n=r.register,i=r.handleSubmit,o=r.setValue;r.reset,r.formState.errors;var m=(0,c.Z)((0,d.useState)(!1),2),g=m[0];m[1];var h={name:"",description:""};return(0,s.jsxs)("form",{onSubmit:i,children:[(0,s.jsxs)("div",{className:"inputcontainer",children:[(0,s.jsx)(u.II,{label:"Name",name:"name",type:"text",register:(0,a.Z)({},n("name",{minLength:{value:3,message:"The name must be at least 3 characters long"},maxLength:{value:18,message:"The name must be less than 18 characters long"},required:{value:!0,message:"Name is required"}}))}),(0,s.jsx)(u.Kx,{label:"Description",name:"description",type:"text",register:(0,a.Z)({},n("description",{minLength:{value:15,message:"The description must be at least 15 characters long"},maxLength:{value:100,message:"The name must be less than 100 characters long"},required:{value:!0,message:"Description is required"}}))})]}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)("button",{type:"submit",onClick:function(){o("name",h.name),o("description",h.description)},className:"inline-flex items-center px-2.5 py-1.5 border border-transparent text-xs font-medium rounded shadow-sm text-white bg-yellow-600 hover:bg-buttonhover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-buttonhover",disabled:g,children:g?"Cargando...":"new"===(void 0===t?"new":t)?"Add":"Actualizar"})})]})};function g(){return(0,s.jsx)(n.Z,{title:"Subastas",description:"p\xe1gina de subastas",children:(0,s.jsx)("div",{className:"content flex justify-center items-center w-full my-16",children:(0,s.jsx)("div",{className:"mt-10 sm:flex sm:justify-center lg:justify-start",children:(0,s.jsx)(m,{})})})})}r(1664),r(5675)}},function(e){e.O(0,[675,424,274,962,669,536,783,559,774,888,179],function(){return e(e.s=1010)}),_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.