PageSourceSearch

https://www.passcard.ai/_next/static/chunks/pages/creator-8ed48837fc69d785.js

js passcard.ai collected 2026-10-05 12:26:09 UTC 53,846 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9881],{55481:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/creator",function(){return s(34593)}])},12258:function(e,t,s){"use strict";var a=s(85893),n=s(67294);t.Z=function(e){var t=e.textToCopy,s=(0,n.useState)(!1),r=s[0],l=s[1],i=r?"bg-gray-500 text-white":"";return(0,a.jsx)("button",{onClick:function(){navigator.clipboard.writeText(t).then((function(){l(!0),setTimeout((function(){l(!1)}),2e3)}),(function(e){console.log("failed to copy",e.mesage)}))},className:i+" text-sm border w-36 border-gray-500 rounded-md p-2 transition my-2",children:r?"Copied":"Copy"})}},38947:function(e,t,s){"use strict";var a=s(85893),n=s(18346),r=s(49196),l=s(67294),i=s(6244);t.Z=function(e){var t=e.open,s=e.setOpen;return(0,a.jsx)(r.u.Root,{show:t,as:l.Fragment,children:(0,a.jsx)(n.V,{as:"div",className:"fixed z-10 inset-0 overflow-y-auto",onClose:s,children:(0,a.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,a.jsx)(r.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(n.V.Overlay,{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,a.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),(0,a.jsx)(r.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,a.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100",children:(0,a.jsx)(i.Z,{className:"h-6 w-6 text-red-600","aria-hidden":"true"})}),(0,a.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,a.jsx)(n.V.Title,{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:"Oops!"}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"There are problems with your form submission. Please review and try again."})})]})]}),(0,a.jsx)("div",{className:"mt-5 sm:mt-6",children:(0,a.jsx)("button",{type:"button",className:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm",onClick:function(){return s(!1)},children:"Close"})})]})})]})})})}},59042:function(e,t,s){"use strict";var a=s(85893),n=s(18346),r=s(49196),l=s(67294),i=s(44648);t.Z=function(e){var t=e.canClose,s=(0,l.useState)(!0),o=s[0];s[1];return(0,a.jsx)(r.u.Root,{show:o,as:l.Fragment,children:(0,a.jsx)(n.V,{as:"div",className:"fixed z-10 
1inset-0 overflow-y-auto",onClose:function(){},children:(0,a.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,a.jsx)(r.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(n.V.Overlay,{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,a.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),(0,a.jsx)(r.u.Child,{as:l.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,a.jsx)("div",{className:"inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6",children:(0,a.jsxs)("div",{className:"pt-2",children:[(0,a.jsx)("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-nftyverse-secondary-action animate-bounce",children:(0,a.jsx)(i.Z,{className:"h-6 w-6 text-nftyverse-brand","aria-hidden":"true"})}),(0,a.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,a.jsx)(n.V.Title,{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:"Creating PassCard!"}),(0,a.jsxs)("div",{className:"mt-2",children:[(0,a.jsx)("p",{className:"text-sm text-gray-500",children:t?(0,a.jsx)(a.Fragment,{children:"Your new PassCard is being created now!"}):(0,a.jsx)(a.Fragment,{children:"Hang tight! This might take a few minutes."})}),(0,a.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:t?(0,a.jsx)(a.Fragment,{children:"You can safely leave this page and check back later, or wait until processing has completed."}):(0,a.jsx)(a.Fragment,{children:"Do not close your browser or navigate away from this page until creation has completed."})})]})]})]})})})]})})})}},21692:function(e,t,s){"use strict";var a=s(85893);t.Z=function(e){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex justify-center animate-pulse",children:(0,a.jsx)("div",{className:"rounded-full bg-purple-600 h-12 w-12"})})})}},54306:function(e,t,s){"use strict";var a=s(85893),n=s(75872);t.Z=function(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"animate-bounce mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-indigo-100",children:(0,a.jsx)(n.Z,{className:"h-6 w-6 text-indigo-600","aria-hidden":"true"})})})}},34593:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return U}});var a=s(47568),n=s(14924),r=s(26042),l=s(69396),i=s(20414),o=s(85893),c=s(23077),d=s(67294);var m=d.forwardRef((function({title:e,titleId:t,...s},a){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},s),e?d.createElement("title",{id:t},e):null,d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"}))})),x=s(11163),u=[{name:"Create/Add To A Drop",type:"link",href:"#",priceMonthly:49,description:"You'll get an easy-to-use drop link for anyone to claim your NFTs. Send it to your users and community or share it on social media.",features:["Your own NFT collection & smart contract","Get a custom NFT claim link to share","* Free for a limited time + 1% royalty fee"],button:"Create/Manage Your NFT Drop!"},{name:"Mint To Wallet",type:"wallet",href:"#",priceMonthly:79,description:"Mint custom NFTs into your own wallet. Easily transfer them, sell them on marketplaces, or just keep them for yourself.",features:["Your own NFT collection & smart contract","Mint NFTs into your PassCard Wallet","* Free for a limited time + 1% royalty fee"],button:"Mint NFTs to Your Wallet!"}],h=function(e){var t=e.nextPage,s=e.nft,a=e.setNft,n=(0,x.useRouter)();return(0,d.useEffect)((function(){n.push("",void 0,{shallow:!0})}),[]),(0,o.jsxs)("div",{className:"bg-gray-900",children:[(0,o.jsx)("div",{className:"pt-12 sm:pt-16 lg:pt-24",children:(0,o.jsx)("div",{className:"max-w-7xl mx-auto text-center px-4 sm:px-6 lg:px-8",children:(0,o.jsxs)("div",{className:"max-w-3xl mx-auto 
1space-y-2 lg:max-w-none",children:[(0,o.jsx)("h2",{className:"text-lg leading-6 font-semibold text-gray-300 uppercase tracking-wider",children:"PassCard NFT Collection Creator"}),(0,o.jsx)("p",{className:"text-3xl font-extrabold text-white sm:text-4xl lg:text-5xl",children:"Create your own NFT collection"}),(0,o.jsx)("p",{className:"text-xl text-gray-300",children:"Drop your NFTs to others or mint them into your own wallet"})]})})}),(0,o.jsx)("div",{className:"mt-8 pb-12 bg-white sm:mt-12 sm:pb-16 lg:mt-16 lg:pb-24",children:(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("div",{className:"absolute inset-0 h-3/4 bg-gray-900"}),(0,o.jsx)("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,o.jsx)("div",{className:"max-w-md mx-auto space-y-4 lg:max-w-5xl lg:grid lg:grid-cols-2 lg:gap-5 lg:space-y-0",children:u.map((function(e){return(0,o.jsxs)("div",{className:"flex flex-col rounded-lg shadow-lg overflow-hidden",children:[(0,o.jsxs)("div",{className:"px-6 py-8 bg-white sm:p-10 sm:pb-6",children:[(0,o.jsx)("div",{children:(0,o.jsx)("h3",{className:"inline-flex px-4 py-1 rounded-full text-sm font-semibold tracking-wide uppercase bg-indigo-100 text-indigo-600",id:"tier-standard",children:e.name})}),(0,o.jsx)("div",{className:"mt-4 flex items-baseline text-6xl font-extrabold",children:"Free*"}),(0,o.jsx)("p",{className:"mt-5 text-lg text-gray-500",children:e.description})]}),(0,o.jsxs)("div",{className:"flex-1 flex flex-col justify-between px-6 pt-6 pb-8 bg-gray-50 space-y-6 sm:p-10 sm:pt-6",children:[(0,o.jsx)("ul",{role:"list",className:"space-y-4",children:e.features.map((function(e){return(0,o.jsxs)("li",{className:"flex items-start",children:[(0,o.jsx)("div",{className:"flex-shrink-0",children:(0,o.jsx)(m,{className:"h-6 w-6 text-green-500","aria-hidden":"true"})}),(0,o.jsx)("p",{className:"ml-3 text-base text-gray-700",children:e})]},e)}))}),(0,o.jsx)("div",{className:"rounded-md shadow",children:(0,o.jsx)("a",{href:e.href,onClick:function(){a((0,l.Z)((0,r.Z)({},s),{type:e.type})),t(),window.scrollTo(0,0)},className:"flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-gray-800 hover:bg-gray-900","aria-describedby":"tier-standard",children:e.button})})]})]},e.name)}))})})]})}),(0,o.jsx)("div",{className:"bg-white",children:(0,o.jsxs)("div",{className:"max-w-7xl mx-auto text-center py-12 px-4 sm:px-6 lg:py-16 lg:px-8",children:[(0,o.jsxs)("h2",{className:"text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl",children:[(0,o.jsx)("span",{className:"block",children:"Need more help?"}),(0,o.jsx)("span",{className:"block",children:"Read our step-by-step guide."})]}),(0,o.jsx)("div",{className:"mt-8 flex justify-center",children:(0,o.jsx)("div",{className:"inline-flex rounded-md shadow",children:(0,o.jsx)("a",{href:"/creator/intro",className:"inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700",children:"Creator Guide"})})})]})})]})},f=s(30124),g=s(49196),p=s(21228),j=s(60662),N=s(22536),y=s(90461),b=s(13245),v=s(32866),w=s(57283),T=s(21692),F=s(12258),k=s(38947);function C(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter(Boolean).join(" ")}var Z=function(e){var t=e.nextPage,s=e.prevPage,n=(e.handleFormData,e.nft),c=e.setNft,m=e.collections,u=e.register,h=e.errors,Z=e.getValues,_=e.getFieldState,V=e.trigger,S=(0,w.dy)(),E=S.FileInput,R=S.openFileDialog,I=S.uploadToS3,D=(0,d.useState)(!1),P=D[0],L=D[1],M=(0,d.useState)(!1),O=M[0],B=M[1],Y=(0,x.useRouter)(),A=m.length>2,U=function(){var e=(0,a.Z)((function(e){var t,s,a;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return L(!0),[4,I(e)];case 1:return t=i.sent().url,s={},a={},c((0,l.Z)((0,r.Z)(s,n),(a.collectionImage=t,a))),L(!1),[2]}}))}));return function(t){return e.apply(this,arguments)}}();return(0,d.useEffect)((function(){Y.push("?step=collection",void 0,{shallow:!0})}),[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(k.Z,{open:O,setOpen:B}),(0,o.jsxs)("div",{className:"space-y-8 divide-y divide-gray-200",children:[(0,o.jsxs)("div",{className:"space-y-8 divide-y divide-gray-200",children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:A?"Choose Your NFT Collection":"Create Your NFT Collection"}),(0,o.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:A?"Select an existing collection or create a new collection to add NFTs.":"Create a new collection for your NFTs."})]}),(0,o.jsxs)("div",{className:"mt-6 grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6",children:[m.length>2&&(0,o.jsxs)("div",{className:"sm:col-span-6",children:[(0,o.jsx)(f.R,{value:n.collection,onChange:function(e){return c((0,l.Z)((0,r.Z)({}
1,n),{collection:e}))},children:function(e){var t=e.open;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(f.R.Label,{className:"block text-sm font-medium text-gray-700",children:["Collection ",(0,o.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,o.jsxs)("div",{className:"mt-1 relative",children:[(0,o.jsxs)(f.R.Button,{className:"bg-white relative w-full border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",children:[(0,o.jsx)("span",{className:"block truncate",children:n.collection.name}),(0,o.jsx)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none",children:(0,o.jsx)(j.Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),(0,o.jsx)(g.u,{show:t,as:d.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,o.jsx)(f.R.Options,{className:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm",children:m.map((function(e){return(0,o.jsx)(f.R.Option,{className:function(e){return C(e.active?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9")},value:e,children:function(t){var s=t.selected,a=t.active;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:C(s?"font-semibold":"font-normal","block truncate"),children:e.name}),s?(0,o.jsx)("span",{className:C(a?"text-white":"text-indigo-600","absolute inset-y-0 right-0 flex items-center pr-4"),children:(0,o.jsx)(N.Z,{className:"h-5 w-5","aria-hidden":"true"})}):null]})}},e.name+e.address)}))})})]})]})}}),"link"==n.type&&n.collection.address&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"Claim link for this drop/collection:"}),(0,o.jsxs)("p",{className:"text-sm text-blue-500",children:[window.location.origin,"/drop/",n.collection.address]}),(0,o.jsx)(F.Z,{textToCopy:window.location.origin+"/drop/"+n.collection.address})]})]}),!n.collection.address&&("Select"!=n.collection.name||2==m.length)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"sm:col-span-6",children:[(0,o.jsxs)("label",{htmlFor:"collectionName",className:"block text-sm font-medium text-gray-700",children:["Collection Name ",(0,o.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("input",(0,r.Z)({type:"text",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},u("collectionName",{required:"Collection Name is required.",maxLength:{value:255,message:"255 character max."}})))}),(0,o.jsx)(v.B,{errors:h,name:"collectionName",render:function(e){var t=e.message;return(0,o.jsx)("p",{className:"mt-2 text-sm text-red-600",children:t})}})]}),(0,o.jsxs)("div",{className:"sm:col-span-6",children:[(0,o.jsxs)("label",{htmlFor:"photo",className:"block text-sm font-medium text-gray-700",children:["Image ",(0,o.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,o.jsxs)("div",{className:"mt-1 flex items-center",children:[(0,o.jsx)("span",{className:"h-12 w-12 rounded-full overflow-hidden bg-gray-100",children:P?(0,o.jsx)(T.Z,{}):n.collectionImage?(0,o.jsx)("img",{src:n.collectionImage}):(0,o.jsx)("svg",{className:"h-full w-full text-gray-300",fill:"currentColor",viewBox:"0 0 24 24",children:(0,o.jsx)(y.Z,{className:"h-12 w-12 text-white","aria-hidden":"true"})})}),(0,o.jsx)(E,{onChange:U}),(0,o.jsx)("button",{type:"button",className:"ml-5 bg-white py-2 px-3 border border-gray-300 rounded-md shadow-sm text-sm leading-4 font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:R,children:"Change"})]})]}),(0,o.jsxs)("div",{className:"sm:col-span-3",children:[(0,o.jsx)("label",{htmlFor:"collectionBlockchain",className:"block text-sm font-medium text-gray-700",children:"Blockchain"}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("select",(0,l.Z)((0,r.Z)({value:"Polygon",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},u("collectionBlockchain")),{children:(0,o.jsx)("option",{value:"Polygon",children:"Polygon"})}))})]})]})]})]}),!n.collection.address&&("Select"!=n.collection.name||2==m.length)&&(0,o.jsx)(p.p,{as:"div",className:"pt-8",defaultOpen:Z("collectionExternalLink")||Z("collectionMax")||Z("collectionFee")||Z("collectionFeeRecipient"),children:function(e){var t=e.open;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(p.p.Button,{className:"text-left w-full flex justify-between items-start",children:[(0,o.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Advanced Settings"}),(0,o.jsx)("span",{className:"ml-6 h-7 flex items-center text-gray-400",children:(0,o.jsx)("div",{className:"mx-auto flex items-center justify-center h-7 w-7 rounded-full bg-gray-100",children:(0,o.jsx)(b.Z,{className:C(t?"-rotate-180":"rotate-0","h-5 w-5 transform"),"aria-hidden":"true"})})})]}),(0,o.jsxs)(p.p.Panel,{children:[(0,o.jsx)("p",{className:"text-sm text-gray-500",children:"Optional settings to further customize your collection."}),(0,o.jsxs)("div",{className:"mt-6 grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6",children:[(0,o.jsxs)("div",{className:"sm:col-span-6",children:[(0,o.jsx)("label",{htmlFor:"collectionExternalLink",className:"block text-sm font-medium text-gray-700",children:"Exter
1nal Link"}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("input",(0,r.Z)({type:"text",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},u("collectionExternalLink")))}),(0,o.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"Link this collection to your own website or social profile."})]}),(0,o.jsxs)("div",{className:"sm:col-span-6",children:[(0,o.jsx)("label",{htmlFor:"collectionMax",className:"block text-sm font-medium text-gray-700",children:"Maximum # of NFTs in Collection"}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("input",(0,r.Z)({type:"text",placeholder:"0-1000000",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},u("collectionMax",{pattern:{value:/^(1000000|[0-9]?[0-9]?[0-9]?[0-9]?[0-9]?[0-9])$/,message:"Max must be between 0 and 1000000."}})))}),(0,o.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"Set the maximum number of NFTs that can exist in this collection. Use this to limit supply and create scarcity. Once set, the max can not be changed. Entering 0 or leaving this blank means the collection does not have a limit."}),(0,o.jsx)(v.B,{errors:h,name:"collectionMax",render:function(e){var t=e.message;return(0,o.jsx)("p",{className:"mt-2 text-sm text-red-600 whitespace-nowrap",children:t})}})]}),(0,o.jsxs)("div",{className:"sm:col-span-6",children:[(0,o.jsx)("label",{htmlFor:"collectionFee",className:"block text-sm font-medium text-gray-700",children:"Royalty Fee Percentage"}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("input",(0,r.Z)({type:"text",placeholder:"0-9",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},u("collectionFee",{pattern:{value:/^([0-9])$/,message:"Fee must be between 0 and 9."}})))}),(0,o.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"Collect a creator royalty fee when your NFTs are sold on Opensea. Fee is deducted from the final sale price and paid to the specified address. In addition, NFTYverse receives a 1% royalty on all secondary sales as well. Payouts are sent after the minimum threshold is reached."}),(0,o.jsx)(v.B,{errors:h,name:"collectionFee",render:function(e){var t=e.message;return(0,o.jsx)("p",{className:"mt-2 text-sm text-red-600 whitespace-nowrap",children:t})}})]}),(0,o.jsxs)("div",{className:"sm:col-span-6",children:[(0,o.jsx)("label",{htmlFor:"collectionFeeRecipient",className:"block text-sm font-medium text-gray-700",children:"Royalty Fee Recipient"}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("input",(0,r.Z)({type:"text",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"0x"},u("collectionFeeRecipient",{pattern:{value:/^0x[a-fA-F0-9]{40}$/,message:"Valid address required."}})))}),(0,o.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"Wallet address for Royalty Fees. Only required when Royalty Fee Percentage is set."}),(0,o.jsx)(v.B,{errors:h,name:"collectionFeeRecipient",render:function(e){var t=e.message;return(0,o.jsx)("p",{className:"mt-2 text-sm text-red-600 whitespace-nowrap",children:t})}})]})]})]})]})}},"collection-advanced")]}),(0,o.jsx)("div",{className:"pt-5",children:(0,o.jsxs)("div",{className:"flex justify-end",children:[(0,o.jsx)("button",{type:"button",className:"bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:function(){s(),window.scrollTo(0,0)},children:"Cancel"}),(0,o.jsx)("button",{type:"button",className:"ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:function(){V(),n.collection.address||Z("collectionName")&&!_("collectionName").error&&n.collectionImage&&!_("collectionMax").error&&!_("collectionFee").error&&!_("collectionFeeRecipient").error?(t(),window.scrollTo(0,0)):B(!0)},children:"Next"})]})})]})]})},_=s(88005),V=function(e){var t=e.i,s=e.register,a=e.errors,n=e.getValues;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"sm:col-start-1 sm:col-span-2",children:[(0,o.jsx)("label",{htmlFor:"nftTrait"+t,className:"block text-sm font-medium text-gray-700",children:"Trait"}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("input",(0,r.Z)({type:"text",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},s("nftTrait"+t,{maxLength:{value:80,message:"80 character max."},validate:{required:function(e){return!(!e&&n("nftTraitValue"+t))||"Required when value is set."}}}
1)))},t),(0,o.jsx)(v.B,{errors:a,name:"nftTrait"+t,render:function(e){var t=e.message;return(0,o.jsx)("p",{className:"mt-2 text-sm text-red-600",children:t})}})]}),(0,o.jsxs)("div",{className:"sm:col-span-2",children:[(0,o.jsx)("label",{htmlFor:"nftTraitValue"+t,className:"block text-sm font-medium text-gray-700",children:"Value"}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("input",(0,r.Z)({type:"text",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},s("nftTraitValue"+t,{maxLength:{value:80,message:"80 character max."},validate:function(e){return console.log("VALIDATE TRAIT VALUE "+t),!(!e&&n("nftTrait"+t))||(console.log("SHOW ERROR FOR TRAIT VALUE"),"Required when value is set.")}})))}),(0,o.jsx)(v.B,{errors:a,name:"nftTraitValue"+t,render:function(e){var t=e.message;return(0,o.jsx)("p",{className:"mt-2 text-sm text-red-600",children:t})}})]})]})},S=s(54306);function E(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter(Boolean).join(" ")}var R=function(e){var t=e.nextPage,s=e.prevPage,n=(e.handleFormData,e.nft),c=e.setNft,m=e.moreTraits,u=e.setMoreTraits,h=e.register,f=e.errors,g=e.getValues,j=e.getFieldState,N=e.trigger,y=(0,w.dy)(),T=y.FileInput,F=(y.openFileDialog,y.uploadToS3),C=(0,d.useState)(!1),Z=C[0],R=C[1],I=(0,d.useState)(!1),D=I[0],P=I[1],L=(0,x.useRouter)(),M=function(){var e=(0,a.Z)((function(e){var t,s,a;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return R(!0),[4,F(e)];case 1:return t=i.sent().url,s={},a={},c((0,l.Z)((0,r.Z)(s,n),(a.nftImage=t,a))),R(!1),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),O=function(){N(),!n.nftImage||!g("nftName")||j("nftName").error||j("nftDescription").error||function(){for(var e=1;e<=5;e++)if(j("nftTrait"+e).error||j("nftTraitValue"+e).error)return!0;return!1}()?P(!0):(t(),window.scrollTo(0,0))};return(0,d.useEffect)((function(){L.push("?step=nft",void 0,{shallow:!0})}),[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(k.Z,{open:D,setOpen:P}),(0,o.jsxs)("div",{className:"space-y-8 divide-y divide-gray-200",children:[(0,o.jsxs)("div",{className:"space-y-8 divide-y divide-gray-200",children:[(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Add Your NFTs"}),(0,o.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:"Create your NFTs and add them to your collection!"})]}),(0,o.jsxs)("div",{className:"mt-6 grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6",children:[(0,o.jsxs)("div",{className:"sm:col-span-6",onDrop:function(e){e.preventDefault();var t=e.dataTransfer.files;t.length&&M(t[0])},onDragOver:function(e){e.preventDefault()},onDragLeave:function(e){e.preventDefault()},onDragEnter:function(e){e.preventDefault()},children:[(0,o.jsxs)("label",{htmlFor:"cover-photo",className:"block text-sm font-medium text-gray-700",children:["Image, Video, Audio, or 3D Model ",(0,o.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,o.jsx)("div",{className:"mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md",children:(0,o.jsxs)("div",{className:"space-y-1 text-center",children:[Z?(0,o.jsx)(S.Z,{}):n.nftImage?(0,o.jsx)("img",{src:n.nftImage}):(0,o.jsx)("svg",{className:"mx-auto h-12 w-12 text-gray-400",stroke:"currentColor",fill:"none",viewBox:"0 0 48 48","aria-hidden":"true",children:(0,o.jsx)("path",{d:"M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),(0,o.jsxs)("div",{className:"flex text-sm text-gray-600 justify-center",children:[(0,o.jsxs)("label",{htmlFor:"file-upload",className:"relative cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500",children:[(0,o.jsx)("span",{children:"Upload a file"}),(0,o.jsx)(T,{onChange:M,id:"file-upload",name:"file-upload",className:"sr-only"})]}),(0,o.jsx)("p",{className:"pl-1",children:"or drag and drop"})]}),(0,o.jsx)("p",{className:"text-xs text-gray-500",children:"PNG, JPG, GIF up to 10MB"})]})})]}),(0,o.jsxs)("div",{className:"sm:col-span-6",children:[(0,o.jsxs)("label",{htmlFor:"nftName",className:"block text-sm font-medium text-gray-700",children:["Name ",(0,o.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("input",(0,r.Z)({type:"text",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},h("nftName",{required:"NFT name is required.",maxLength:{value:255,message:"255 character max."}})))}),(0,o.jsxs)("p",{className:"mt-2 text-sm text-gray-500",children:["You can use ",(0,o.jsx)("i",{children:"{token_id}"}),' to insert the token ID in the name. eg, "My NFT #{token_id}" would show up as "My NFT #1"']}),(0,o.jsx)(v.B,{errors:f,name:"nftName",render:function(e){var t=e.message;return(0,o.jsx)("p",{className:"mt-2 text-sm text-red-600",children:t})}})]}),(0,o.jsxs)("div",{className:"sm:col-span-6",children:[(0,o.jsx)("label",{htmlFor:"nftDescription",className:"block text-sm font-medium text-gray-700",children:"Description"}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("textarea",(0,r.Z)({rows:3,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border border-gray-300 rounded-md"},h("nftDescription",{maxLength:{value:1e3,message:"1000 character max."}})))}),(0,o.jsxs)("p",{className:"mt-2 text-sm text-gray-500",children:["Write a few sentences about your NFT. You can use ",(0,o.jsx)("i",{children:"{token_id}"})," to insert the token ID."]}),(0,o.jsx)(v.B,{errors:f,name:"nftDescription",render:function(e){var t=e.message;return(0,o.jsx)("p",{className:"mt-2 text-sm text-red-600",children:t})}})]})]})]}),(0,o.jsx)(p.p,{as:"div",defaultOpen:g("nftExternalLink")||g("nftUnlockableContent")||g("nftQuantity")||g("nftTrait1")||g("nftTraitValue1")||g("nftTrait2")||g("nftTraitValue2")||g("nftTrait3")||g("nftTraitValue3")||g("nftTrait4")||g("nftTraitValue4")||g("nftTrait5")||g("nftTraitValue5"),children:function(e){var t=e.open;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"pt-8",children:[(0,o.jsxs)(p.p.Button,{className:"text-left w-full flex justify-between items-start",children:[(0,o.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Advanced Settings"}),(0,o.jsx)("span",{className:"ml-6 h-7 flex items-center text-gray-400",children:(0,o.jsx)("div",{className:"mx-auto flex items-center justify-center h-7 w-7 rounded-full bg-gray-100",children:(0,o.jsx)(b.Z,{className:E(t?"-rotate-180":"rotate-0","h-5 w-5 transform"),"aria-hidden":"true"})})})]}),(0,o.jsxs)(p.p.Panel,{children:[(0,o.jsx)("p",{className:"text-sm text-gray-500",children:"Optional settings to further customize your NFT."}),(0,o.jsxs)("div",{className:"mt-6 grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6",children:[(0,o.jsxs)("div",{className:"sm:col-span-6",children:[(0,o.jsx)("label",{htmlFor:"nftExternalLink",className:"block text-sm font-medium text-gray-700",children:"Exter
1nal Link"}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("input",(0,r.Z)({type:"text",className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},h("nftExternalLink")))}),(0,o.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"Link this NFT to a website."})]}),(0,o.jsxs)("div",{className:"sm:col-span-6",children:[(0,o.jsx)("label",{htmlFor:"nftUnlockableContent",className:"block text-sm font-medium text-gray-700",children:"Unlockable Content"}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("textarea",(0,r.Z)({rows:2,className:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border border-gray-300 rounded-md"},h("nftUnlockableContent")))}),(0,o.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"Add secret content to this NFT. Only owners of the NFT can unlock and view this content on NFTYverse.io - it can be text or a link, etc."})]})]})]})]}),(0,o.jsx)(p.p.Panel,{children:(0,o.jsxs)("div",{className:"pt-8",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Attributes"}),(0,o.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:"Add custom attributes to your NFT. You can currently add up to 5."})]}),(0,o.jsxs)("div",{className:"mt-6 grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6",children:[(0,o.jsx)(V,{i:1,register:h,errors:f,getValues:g}),!m&&(0,o.jsx)("div",{className:"sm:col-span-2",children:(0,o.jsx)("div",{className:"mt-6",children:(0,o.jsxs)("button",{type:"button",className:"bg-white inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500",onClick:function(){return u(!0)},children:[(0,o.jsx)(_.Z,{className:"-ml-2 mr-1 h-5 w-5 text-gray-400","aria-hidden":"true"}),"Add More"]})})}),m&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(V,{i:2,register:h,errors:f,getValues:g}),(0,o.jsx)(V,{i:3,register:h,errors:f,getValues:g}),(0,o.jsx)(V,{i:4,register:h,errors:f,getValues:g}),(0,o.jsx)(V,{i:5,register:h,errors:f,getValues:g})]})]})]})})]})}},"collection-advanced")]}),(0,o.jsx)("div",{className:"pt-5",children:(0,o.jsxs)("div",{className:"flex justify-end",children:[(0,o.jsx)("button",{type:"button",className:"bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:function(){s(),window.scrollTo(0,0)},children:"Back"}),(0,o.jsx)("button",{type:"button",className:"ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:function(){O()},children:"Review"})]})})]})]})},I=function(e){var t=e.nextPage,s=e.prevPage,a=e.nft,n=e.getValues,r=(e.errors,(0,x.useRouter)());return(0,d.useEffect)((function(){r.push("?step=review",void 0,{shallow:!0})}),[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("main",{className:"bg-white pt-8 sm:pt-24 lg:pt-16",children:(0,o.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,o.jsxs)("div",{className:"max-w-xl",children:["wallet"==a.type&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h1",{className:"text-sm font-semibold uppercase tracking-wide text-indigo-600",children:"Mint to wallet"}),(0,o.jsx)("p",{className:"mt-2 text-3xl font-extrabold tracking-tight sm:text-4xl",children:"Review & mint your NFT!"}),(0,o.jsx)("p",{className:"mt-2 text-base text-gray-500",children:"Check the details of your NFT collection and NFT below. Your NFT will be added to your NFTYverse wallet after minting has completed."})]}),"link"==a.type&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h1",{className:"text-sm font-semibold uppercase tracking-wide text-indigo-600",children:"Create a drop"}),(0,o.jsx)("p",{className:"mt-2 text-3xl font-extrabold tracking-tight sm:text-4xl",children:"Your NFT drop is almost ready!"}),(0,o.jsx)("p",{className:"mt-2 text-base text-gray-500",children:"Check the details of your NFT drop below. You'll get receive a claim link for your NFT after minting has completed."})]})]}),a.collection.address&&(0,o.jsxs)("section",{"aria-labelledby":"order-heading",className:"mt-10",children:[(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,o.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,o.jsx)("div",{className:"relative flex justify-start",children:(0,o.jsx)("span",{className:"pr-3 bg-white text-lg font-medium text-gray-900",children:"Add to NFT Collection"})})]}),(0,o.jsx)("div",{className:"pt-10",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dl",{className:"text-sm pb-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"Name"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:a.collection.name})})})]})}),(0,o.jsx)("dl",{className:"text-sm py-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"Address"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:a.collection.address})})})]})})]})},a.collection.name)]}),!a.collection.address&&(0,o.jsxs)("section",{"aria-labelledby":"order-heading",className:"mt-10",children:[(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,o.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,o.jsx)("div",{className:"relative flex justify-start",children:(0,o.jsx)("span",{className:"pr-3 bg-white text-lg font-medium text-gray-900",children:"New NFT Collection"})})]}),(0,o.jsxs)("div",{className:"pt-10 flex space-x-6",children:[a.collectionImage&&(0,o.jsx)("img",{src:a.c
1ollectionImage,className:"flex-none w-20 h-20 object-center object-cover bg-gray-100 rounded-lg sm:w-40 sm:h-40"}),(0,o.jsxs)("div",{className:"sm:ml-40 sm:pl-6",children:[n("collectionName")&&(0,o.jsx)("dl",{className:"text-sm pb-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"Name"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:n("collectionName")})})})]})}),n("collectionBlockchain")&&(0,o.jsx)("dl",{className:"text-sm py-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"Blockchain"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:n("collectionBlockchain")})})})]})}),n("collectionExternalLink")&&(0,o.jsx)("dl",{className:"text-sm py-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"External Link"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:n("collectionExternalLink")})})})]})}),n("collectionMax")&&(0,o.jsx)("dl",{className:"text-sm py-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"Maximum # of NFTs"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:n("collectionMax")})})})]})}),n("collectionFee")&&(0,o.jsx)("dl",{className:"text-sm py-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"Royalty Fee"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:n("collectionFee")})})})]})}),n("collectionFeeRecipient")&&(0,o.jsx)("dl",{className:"text-sm py-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"Royalty Fee Recipient"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:n("collectionFeeRecipient")})})})]})})]})]},n("collectionName"))]}),(0,o.jsxs)("section",{"aria-labelledby":"order-heading",className:"mt-10",children:[(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("div",{className:"absolute inset-0 flex items-center","aria-hidden":"true",children:(0,o.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,o.jsx)("div",{className:"relative flex justify-start",children:(0,o.jsx)("span",{className:"pr-3 bg-white text-lg font-medium text-gray-900",children:"NFT Details"})})]}),(0,o.jsxs)("div",{className:"py-10 border-b border-gray-200 flex space-x-6",children:[a.nftImage&&(0,o.jsx)("img",{src:a.nftImage,className:"flex-none w-20 h-20 object-center object-cover bg-gray-100 rounded-lg sm:w-40 sm:h-40"}),(0,o.jsxs)("div",{className:"sm:ml-40 sm:pl-6",children:[n("nftName")&&(0,o.jsx)("dl",{className:"text-sm pb-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"Name"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:n("nftName")})})})]})}),n("nftDescription")&&(0,o.jsx)("dl",{className:"text-sm py-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"Description"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:n("nftDescription")})})})]})}),n("nftExternalLink")&&(0,o.jsx)("dl",{className:"text-sm py-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"External Link"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:n("nftExternalLink")})})})]})}),n("nftUnlockableContent")&&(0,o.jsx)("dl",{className:"text-sm py-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"Unlockable Content"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsx)("address",{className:"not-italic",children:(0,o.jsx)("span",{className:"block",children:n("nftUnlockableContent")})})})]})}),(n("nftTrait1")||n("nftTrait2")||n("nftTrait3")||n("nftTrait4")||n("nftTrait5"))&&(0,o.jsx)("dl",{className:"text-sm py-3",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("dt",{className:"font-medium text-gray-900",children:"Attributes"}),(0,o.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,o.jsxs)("address",{className:"not-italic",children:[n("nftTrait1")&&n("nftTraitValue1")&&(0,o.jsxs)("span",{className:"block",children:[n("nftTrait1"),": ",n("nftTraitValue1")]}),n("nftTrait2")&&n("nftTraitValue2")&&(0,o.jsxs)("span",{className:"block",children:[n("nftTrait2"),": ",n("nftTraitValue2")]}),n("nftTrait3")&&n("nftTraitValue3")&&(0,o.jsxs)("span",{className:"block",children:[n("nftTrait3"),": ",n("nftTraitValue3")]}),n("nftTrait4")&&n("nftTraitValue4")&&(0,o.jsxs)("span",{className:"block",children:[n("nftTrait4"),": ",n("nftTraitValue4")]}),n("nftTrait5")&&n("nftTraitValue5")&&(0,o.jsxs)("span",{className:"block",children:[n("nftTrait5"),": ",n("nftTraitValue5")]})]})})]})})]})]},n("collectionName"))]})]})}),(0,o.jsxs)("div",{className:"pt-5",children:[(0,o.jsxs)("div",{className:"flex justify-end",children:[(0,o.jsx)("button",{type:"button",className:"bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:function(){s(),window.scrollTo(0,0)},children:"Back"}),(0,o.jsx)("button",{type:"submit",className:"ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:function(){return t()},children:"Mint"})]}),(0,o.jsx)("div",{className:"flex justify-end",children:(0,o.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:"By minting, you are agreeing to our terms of use and 1% royalty fee on sales."})})]})]})},D=s(2481),P=s(9669),L=s.n(P),M=s(59042),O=s(70256),B=s(75012),Y=function(e){var t=e.nft,s=e.getValues,n=function(){var e=[];return s("nftTrait1")&&s("nftTraitValue1")&&e.push({trait_type:s("nftTrait1"),value:s("nftTraitValue1")}),s("nftTrait2")&&s("nftTraitValue2")&&e.push({trait_type:s("nftTrait2"),value:s("nftTraitValue2")}),s("nftTrait3")&&s("nftTraitValue3")&&e.push({trait_type:s("nftTrait3"),value:s("nftTraitValue3")}),s("nftTrait4")&&s("nftTraitValue4")&&e.push({trait_type:s("nftTrait4"),value:s("nftTraitValue4")}),s("nftTrait5")&&s("nftTraitValue5")&&e.push({trait_type:s("nftTrait5"),value:s("nftTraitValue5")}),e},r=(0,D.aF)(),l=(0,d.useState)(!1),c=l[0],m=l[1],u=(0,d.useState)(!1),h=u[0],f=u[1],g=(0,d.useState)(!1),p=g[0],j=g[1],N=(0,d.useState)(!1),y=N[0],b=N[1],v=(0,d.useState)(!1),w=v[0],T=v[1],k=(0,d.useState)(!1),C=k[0],Z=k[1],_=(0,d.useState)(null),V=_[0],S=_[1],E=0,R=(0,d.useState)(""),I=R[0],P=R[1],Y="/api/creator/collections",A="/api/creator/newcollection",U="/api/creator/nft",q="/api/nftyrequest",W="",G=(0,x.useRouter)();function z(){return J.apply(this,arguments)}function J(){return J=(0,a.Z)((function(){var e,t,s,a=arguments;return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:Y,t=[],s={},[4,L()((s.method="GET",s.url=e,s)).then((function(e){console.log("getCollections response: "+JSON.stringify(e)),t=e.data}
1)).catch((function(e){console.log(e)}))];case 1:return n.sent(),[2,t]}}))})),J.apply(this,arguments)}function H(){return H=(0,a.Z)((function(){var e,a,n=arguments;return(0,i.__generator)(this,(function(r){return e=n.length>0&&void 0!==n[0]?n[0]:A,j(!0),c||(m(!0),a={},L()((a.method="POST",a.url=e,a.data={name:s("collectionName"),description:"",symbol:"NFTY",image:t.collectionImage,external_link:s("collectionExternalLink"),mint_supply_count:s("collectionMax")?parseInt(s("collectionMax")):0,seller_fee_basis_points:100*(parseInt(s("collectionFee"))+1),fee_recipient:"0xe3Ca71F5D505937959893CdEFd2704f062E14833",creator_fee_recipient:s("collectionFeeRecipient")},a)).then((function(e){console.log("createCollection response: "+JSON.stringify(e)),W=e.data.request_id,E=setInterval((function(){ee(q)}),1e4)})).catch((function(e){console.log(e),m(!1),P("Could not create collection.")}))),[2]}))})),H.apply(this,arguments)}function $(e){return X.apply(this,arguments)}function X(){return X=(0,a.Z)((function(e){var a,r,l=arguments;return(0,i.__generator)(this,(function(i){return a=l.length>1&&void 0!==l[1]?l[1]:U,j(!0),h||(f(!0),r={},L()((r.method="POST",r.url=a,r.data={mint_to_treasury:"link"==t.type,collection_address:e,image:t.nftImage,name:s("nftName"),description:s("nftDescription"),attributes:n(),unlockable_content:s("nftUnlockableContent"),animation_url:null,external_url:s("nftExternalLink")},r)).then((function(e){console.log("createNFT response: "+JSON.stringify(e)),b(!0),W=e.data.request_id,E=setInterval((function(){ee(q)}),1e4)})).catch((function(e){console.log(e),f(!1),P("Could not create NFT.")}))),[2]}))})),X.apply(this,arguments)}function Q(e,t){return K.apply(this,arguments)}function K(){return K=(0,a.Z)((function(e,t){var s,a,n=arguments;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return n.length>2&&void 0!==n[2]?n[2]:U,[4,z()];case 1:return(s=r.sent())?(console.log("collections: "+JSON.stringify(s)),(a=s.find((function(s){return s.name==e&&s.symbol==t})))?$(a.address):P("Could not create NFT. No collection found.")):P("Could not create NFT. No collections found."),[2]}}))})),K.apply(this,arguments)}function ee(e){return te.apply(this,arguments)}function te(){return(te=(0,a.Z)((function(e){var t;return(0,i.__generator)(this,(function(a){return t={},L()((t.method="GET",t.url=e,t.params={request_id:W},t)).then((function(e){console.log("checkStatus response: "+JSON.stringify(e)),"completed"==e.data.status?(console.log("checkStatus completed"),e.data.nft_token_id?(console.log("checkStatus out"),f(!1),clearInterval(E),T(!0),S(e.data)):(console.log("checkStatus in"),m(!1),clearInterval(E),Q(s("collectionName"),"NFTY"))):"failed"==e.data.status&&(m(!1),f(!1),clearInterval(E),P(c?"Collection failed.":"NFT failed."),Z(!0))})).catch((function(e){console.log(e),m(!1),f(!1),clearInterval(E),P(c?"Error creating Collection.":"Error creating NFT."),Z(!0)})),[2]}))}))).apply(this,arguments)}return(0,d.useEffect)((function(){G.push("?step=mint",void 0,{shallow:!0})}),[]),(0,d.useEffect)((function(){return p||t.collection.address||!s("collectionName")?!p&&t.collection.address&&s("nftName")&&$(t.collection.address):function(){H.apply(this,arguments)}(),function(){clearInterval(E)}}),[]),r&&void 0!==r?!r||w||C?r?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"space-y-6",children:I&&(0,o.jsx)("div",{className:"rounded-md bg-red-50 p-4",children:(0,o.jsxs)("div",{className:"flex",children:[(0,o.jsx)("div",{className:"flex-shrink-0",children:(0,o.jsx)(O.Z,{className:"h-5 w-5 text-red-400","aria-hidden":"true"})}),(0,o.jsx)("div",{className:"ml-3",children:(0,o.jsx)("h3",{className:"text-sm font-medium text-red-800",children:I})})]})})}),(0,o.jsx)("main",{className:"bg-white pt-4 sm:pt-12 lg:pt-8",children:(0,o.jsxs)("div",{className:"max-w-3xl mx-auto",children:[w&&(0,o.jsxs)(o.Fragment,{children:["wallet"==t.type&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex",children:[(0,o.jsx)("div",{className:"flex-shrink-0",children:(0,o.jsx)(B.Z,{className:"h-12 w-12 text-green-400","aria-hidden":"true"})}),(0,o.jsx)("div",{className:"ml-2",children:(0,o.jsx)("p",{className:"mt-1 text-3xl font-extrabold tracking-tight sm:text-4xl",children:"NFT minted to your wallet!"})})]}),(0,o.jsx)("p",{className:"mt-2 text-base text-gray-500",children:"Your new NFT has been added to the collection and is now available in your NFTYverse wallet. You can keep it in the wallet or transfer it at any time."}),(0,o.jsx)("button",{className:"mt-4 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",onClick:function(){return G.push("/")},children:"View Wallet"}),(0,o.jsx)("button",{className:"ml-2 mt-4 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:function(){return G.reload()},children:"Create another NFT"})]}),"link"==t.type&&V&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex",children:[(0,o.jsx)("div",{className:"flex-shrink-0",children:(0,o.jsx)(B.Z,{className:"h-12 w-12 text-green-400","aria-hidden":"true"})}),(0,o.jsx)("div",{className:"ml-2",children:(0,o.jsx)("p",{className:"mt-1 text-3xl font-extrabold tracking-tight sm:text-4xl",children:"NFT added to your drop!"})})]}),(0,o.jsxs)("p",{className:"mt-2 text-base text-gray-500",children:["Your new NFT has been added to the collection and is now available in your drop.",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),"Here is the special claim link for your drop. You can share it with your users & c
1ommunity or post it on social media for anyone to claim:"]}),(0,o.jsxs)("p",{className:"mt-2 text-base text-blue-500",children:[window.location.origin,"/drop/",V.nft_collection]}),(0,o.jsx)(F.Z,{textToCopy:window.location.origin+"/drop/"+V.nft_collection}),(0,o.jsx)("button",{className:"mt-4 ml-4 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:function(){return G.reload()},children:"Add another NFT to this Drop"}),(0,o.jsx)("p",{className:"mt-2 text-base text-gray-500",children:"Note: Users who claim an NFT using the link will receive 1 random unclaimed NFT from your collection, sent to their email address."})]})]}),C&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"mt-2 text-3xl font-extrabold tracking-tight sm:text-4xl",children:"Unable to create your NFT"}),(0,o.jsx)("p",{className:"mt-2 text-base text-gray-500",children:"An error occurred and we were not able to mint your new NFT. Details may be in the status message above. Please try again or reach out to us if the error persists. Thank you!"})]})]})})]}):void 0:(0,o.jsx)(M.Z,{canClose:y}):null},A=s(87536),U=function(){var e=(0,A.cI)({mode:"onBlur"}),t=e.register,s=e.getValues,m=e.getFieldState,u=e.handleSubmit,f=(e.watch,e.trigger),g=e.formState.errors,p=(0,x.useRouter)(),j=(0,D.aF)(),N={name:"+ Create New Collection",address:""},y={name:"Select",address:""},b=(0,d.useState)([N]),v=b[0],w=b[1],T=(0,d.useState)(!1),F=T[0],k=T[1],C="NFTYverse NFT Collection Creator",_=(0,d.useState)({type:"",collection:y,collectionImage:"",nftImage:""}),V=_[0],S=_[1],E=(0,d.useState)(0),P=E[0],M=E[1],O="/api/creator/collections";function B(){return B=(0,a.Z)((function(){var e,t,s=arguments;return(0,i.__generator)(this,(function(a){return e=s.length>0&&void 0!==s[0]?s[0]:O,t={},L()((t.method="GET",t.url=e,t)).then((function(e){w([y].concat(e.data.concat([N])))})).catch((function(e){console.log(e)})),[2]}))})),B.apply(this,arguments)}var U=function(){j?M(P+1):p.push("/creator_login")},q=function(){M(P-1)},W=function(e){return function(t){var s=t.target.value;S((function(t){return(0,l.Z)((0,r.Z)({},t),(0,n.Z)({},e,s))}))}};return(0,d.useEffect)((function(){!function(){B.apply(this,arguments)}()}),[]),(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("form",{onSubmit:u((function(e){return console.log(e)})),children:0==P?(0,o.jsx)(c.Z,{width:"max-w-6xl",title:C,children:(0,o.jsx)(h,{nextPage:U,nft:V,setNft:S})}):1==P?(0,o.jsx)(c.Z,{title:C,children:(0,o.jsx)(Z,{nextPage:U,prevPage:q,handleFormData:W,nft:V,setNft:S,collections:v,register:t,errors:g,getValues:s,getFieldState:m,trigger:f})}):2==P?(0,o.jsx)(c.Z,{title:C,children:(0,o.jsx)(R,{nextPage:U,prevPage:q,handleFormData:W,nft:V,setNft:S,moreTraits:F,setMoreTraits:k,register:t,errors:g,getValues:s,getFieldState:m,trigger:f})}):3==P?(0,o.jsx)(c.Z,{title:C,children:(0,o.jsx)(I,{nextPage:U,prevPage:q,nft:V,getValues:s,errors:g})}):4==P?(0,o.jsx)(c.Z,{title:C,children:(0,o.jsx)(Y,{nft:V,getValues:s})}):null})})}},58921:function(){}},function(e){e.O(0,[4605,5646,750,2626,3319,4496,3077,9774,2888,179],(function(){return t=55481,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.