PageSourceSearch

https://www.solscribe.io/_next/static/chunks/pages/bulk/[id]-62d7576f86372ac4.js

js solscribe.io collected 2026-10-07 16:31:04 UTC 25,715 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7686],{95720:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bulk/[id]",function(){return n(22729)}])},14318:function(e,t,n){"use strict";n.d(t,{z9:function(){return h}});var i=n(85893),s=n(42492),a=n(9581),r=n(96831);n(67294);var l=n(34386),o=n(93946),c=n(96540),d=n(87536),u=n(74286),p=n(68922),m=n(41733),g=n(48764).Buffer;function f(e){return(0,i.jsx)(s.Z,{...e,PaperProps:{style:{backgroundColor:"var(--bg-dialog)"}},children:(0,i.jsx)(a.Z,{children:(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"16px",justifyContent:"center",alignItems:"center",color:"var(--text-primary)",wordBreak:"break-all",textAlign:"center"},children:e.children})})})}function h(e){return(0,i.jsx)(f,{...e,children:(0,i.jsx)(y,{...e})})}function y(e){let{control:t,handleSubmit:n,formState:s}=(0,d.cI)({defaultValues:{attributes:e.attributes,name:e.name,description:e.description}}),{fields:a,append:f,remove:h}=(0,d.Dq)({name:"attributes",control:t});return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:0},children:[(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"center",gap:16,flexWrap:"wrap"},children:[(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:10},children:[(0,i.jsx)("span",{style:{fontSize:14,color:"#9B9EAF"},children:"Name"}),(0,i.jsx)("span",{style:{color:"#9B9EAF",fontSize:12,flex:1},children:(0,i.jsx)(d.Qr,{name:"name",control:t,rules:{validate:{maxLen:e=>!(g.from(e,"utf8").length>32)||"Too long"}},render:e=>{var t,n;let{field:a}=e;return(0,i.jsx)(u.Z,{sx:p.Jp,...a,size:"small",error:!!(null===(t=s.errors.name)||void 0===t?void 0:t.message),helperText:null===(n=s.errors.name)||void 0===n?void 0:n.message})}})})]}),(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:10},children:[(0,i.jsx)("span",{style:{fontSize:14,color:"#9B9EAF"},children:"Description"}),(0,i.jsx)("span",{style:{color:"#9B9EAF",fontSize:12,flex:1},children:(0,i.jsx)(d.Qr,{name:"description",control:t,render:e=>{let{field:t}=e;return(0,i.jsx)(u.Z,{multiline:!0,maxRows:3,sx:p.Jp,...t,size:"small"})}})})]})]}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",paddingBottom:8,paddingTop:16},children:[(0,i.jsx)("span",{style:{fontSize:14,color:"#9B9EAF"},children:"Attributes"}),(0,i.jsx)(l.Z,{title:"Add attribute",children:(0,i.jsx)(o.Z,{onClick:()=>{f({trait_type:"type",value:"value"},{shouldFocus:!0})},children:(0,i.jsx)(c.Z,{style:{color:"white",fontSize:16}})})})]}),(0,i.jsx)("div",{style:{overflow:"hidden"},children:(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8,overflowY:"auto",maxHeight:380},children:a.map((e,n)=>(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:"15px"},children:[(0,i.jsx)("span",{style:{color:"#9B9EAF",fontSize:12,flex:1},children:(0,i.jsx)(d.Qr,{name:"attributes.".concat(n,".trait_type"),control:t,render:e=>{let{field:t}=e;return(0,i.jsx)(u.Z,{sx:p.Jp,...t,size:"small"})}})}),(0,i.jsx)("span",{style:{fontSize:14,lineHeight:"150%",flex:1},children:(0,i.jsx)(d.Qr,{name:"attributes.".concat(n,".value"),control:t,render:e=>{let{field:t}=e;return(0,i.jsx)(u.Z,{sx:p.Jp,...t,size:"small"})}})}),(0,i.jsx)(o.Z,{onClick:()=>{h(n)},children:(0,i.jsx)(m.Z,{style:{fill:"white",fontSize:16}})})]},e.id))})}),(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",paddingTop:10},children:(0,i.jsx)(r.Z,{onClick:n(e.submit),disabled:!s.isValid,children:(0,i.jsx)("span",{children:"Save"})})})]})})}},85926:function(e,t,n){"use strict";var i=n(85893),s=n(67294),a=n(48764).Buffer;t.Z=function(e){let{imageFile:t,parsedJson:n,name:r}=e,l=(0,s.useMemo)(()=>URL.createObjectURL(t),[]);return(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",maxWidth:200,gap:12,width:"100%"},children:[(0,i.jsx)("img",{src:l,style:{width:"100%",maxHeight:200,height:"100%",maxWidth:200,objectFit:"cover",border:a.from(r,"utf8").length>32?"1px solid red":"none"}}),(0,i.jsx)("strong",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:200},children:r})]})}},72611:function(e,t,n){"use strict";var i=n(85893),s=n(30562);n(67294),t.Z=function(e){let{children:t,onClick:n}=e;return(0,i.jsx)(s.E.button,{onClick:n,style:{backgroundColor:"#32343F",borderRadius:0,width:44,height:44,display:"flex",justifyContent:"center",border:"none",alignItems:"center",cursor:"pointer"},whileHover:{backgroundColor:"var(--main-color)"},whileTap:{backgroundColor:"var(--main-color)",scale:.9},children:t})}},80260:function(e,t,n){"use strict";var i=n(85893);n(67294);var s=n(58533);t.Z=e=>{let{dataLength:t,next:n,hasMore:a,endMessage:r,scrollThreshold:l,className:o,children:c}=e;return(0,i.jsx)(s.Z,{className:o,loader:"",dataLength:t,next:n,hasMore:a,endMessage:r,scrollThreshold:l,children:c})}},49608:function(e,t,n){"use strict";let i;n.d(t,{$T:function(){return f},I8:function(){return y},IF:function(){return g},O3:function(){return i},db:function(){return h},wk:function(){return m}});var s=n(47456),a=n(50549),r=n(19),l=n(47210),o=n(90774),c=n(21933),d=n(16033);let u=(0,s.ZF)({apiKey:"AIzaSyChgNb-_mvDph6mcRhmFGJQV0yoTCe6GTw",authDomain:"solscribe-429a6.firebaseapp.com",projectId:"solscribe-429a6",storageBucket:"solscribe-429a6.appspot.com",messagingSenderId:"243250177231",appId:"1:243250177231:web:f5d1825c02a598ed3b43ba",measurementId:"G-GDVS8FQ7N4"}),p="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;p||(i=(0,c.yu)(u,{provider:new c.z9("6Lcpg4keAAAAAPLV0nSDSC-vNebpagdT7Y7_9ObC"),isTokenAutoRefreshEnabled:!0}));let m=(0,a.$C)(u,"europe-west1"),g=(0,a.$C)(u,"us-east1"),f=(0,a.$C)(u,"asia-south1"),h=(0,r.ad)(u),y=(0,l.v0)(u);(0,o.cF)(u),p||(0,d.IH)(u)},86800:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var i=n(49520);class s extends i.U{constructor(){super("mass-inscribes-database"),this.version(2).stores({massInscribes:"id",inscriptionsInProgress:"[massInscribeId+assetName]"})}}},60596:function(e,t,n){"use strict";n.d(t,{a:function(){return g}});var i=n(49608),s=n(47210),a=n(19),r=n(50549);let l=(0,r.V1)(i.wk,"solAuthenticateEU"),o=(0,r.V1)(i.IF,"solAuthenticateUS");async function c(e){try{return await l(e)}catch(t){return console.log(t),await o(e)}}async function d(e){let t=(0,r.V1)(i.wk,"generateNonceEU");return t({address:e})}async function u(e){let t=(0,r.V1)(i.$T,"generateNonceAsia");return t({address:e})}async function p(e){let t=(0,r.V1)(i.IF,"generateNonceUS");return t({address:e})}async function m(e){try{return await d(e)}catch(t){try{return console.log(t),await p(e)}catch(t){return await u(e)}}}async function g(e,t,n){return!!t&&!!e&&(i.I8.currentUser&&i.I8.currentUser.uid!==t&&await i.I8.signOut(),console.log("Starting Sol auth"),m(t).then(e=>{let r=e.data;if(r.uid)return r.uid,r.uid;let l=r.nonce,o=new TextEncoder().encode(l.toString());return n(o).then(e=>c({signature:e,publicKey:t}).then(e=>(0,s._p)(i.I8,e.data).then(async e=>{let n=(0,a.JU)(i.db,"Users",t),s=await (0,a.QT)(n);return s.exists()||await (0,a.pl)(n,{uid:t,type:"Solana"},{merge:!0}),e.user.uid})).catch(e=>{console.log(e)}))}))}},22729:function(e,t,n){"use strict";n.r(t),n.d(t,{MassInscribeInProgress:function(){return et},default:function(){return ee}});var i=n(85893),s=n(67294),a=n(86800),r=n(11163),l=n(80260),o=n(80085),c=n.n(o),d=n(85926),u=n(96831),p=n(48015),m=n(21267),g=n(37447),f=n(54306),h=n(86177),y=n(51987),x=n(29496),b=n(95827),w=n(59917),j=n(98456),I=n(60596),v=n(49608);n(80121);var S=n(93352);(0,S.V1)(v.wk,"getUserUploadToken"),(0,S.V1)(v.IF,"getUserUploadToken");var k=n(5121);async function C(e,t,n,i){let s=await k.Z.post("https://pin.pinit.io",e,{maxBo
1dyLength:1/0,headers:{"Content-Type":"multipart/form-data;"},onUploadProgress:e=>{e.loaded===e.total?(t(),n("Pinning files")):void 0!==i&&i(e)}});if(200!==s.status)throw Error("Error uploading images to IPFS");console.log(s);let a=s.data;return a}var T=n(447),P=n(9828),F=n(1641),z=n(85071),R=n(61112),N=n(40433),B=n(15146),D=n(10566),M=n(77957),A=n(72611),E=n(14318),K=n(41664),U=n.n(K),Z=n(30562),q=function(e){let{text:t,onClick:n,disabled:s,style:a,type:r="button",loading:l=!1}=e;return(0,i.jsxs)(Z.E.button,{type:r,onClick:n,disabled:s,style:{...a,border:"none",padding:"0.7rem 0.9rem",borderRadius:"14px",background:s?"#ededed":"rgba(0, 0, 0, 0) linear-gradient(to right, var(--main-color) -200%, var(--main-color) -100%, var(--main-color) 0%, var(--second-colour) 100%) repeat scroll 0% 0% / auto padding-box border-box",color:s?"#808080":"#ffffff",cursor:s?"default":"pointer",fontWeight:600,fontSize:14},whileHover:{background:s?"#ededed":["rgba(0, 0, 0, 0) linear-gradient(to right, var(--main-color) -200%, var(--second-colour) -100%, var(--main-color) 0%, var(--second-colour) 100%) repeat scroll 0% 0% / auto padding-box border-box","rgba(0, 0, 0, 0) linear-gradient(to right, var(--main-color) -100%, var(--second-colour) 0%, var(--main-color) 100%, var(--second-colour) 200%) repeat scroll 0% 0% / auto padding-box border-box"]},transition:{background:{duration:.5},scale:{duration:.2}},whileTap:{scale:s?1:.95},children:[!l&&(0,i.jsx)(i.Fragment,{children:t}),l&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,i.jsx)(j.Z,{size:"1.25rem"})})})]})},_=n(71410),L=n(64975),V=n(96486),O=n.n(V),W=n(65157),H=n(91062),J=n(84286),G=n(54448),Q=n(48764).Buffer;let Y=async(e,t,n,i,s,a)=>{let r=Q.from(await t.arrayBuffer()),l=[],o=(0,N.E)(n)[0],c=(0,J.XL)(n)[0],d=(0,G.M)(n)[0],u=(0,J.vA)(n)[0],p=(0,H.xh)(i,s);for(let t of e)l.push({ix:await p.methods.writeToLegacyInscriptionAsUauthV3({data:r.subarray(t.start,t.start+D.uO),startPos:t.start,mediaType:a,encodingType:"base64"}).accounts({authority:s.publicKey,mint:n,inscriptionV3:o,inscriptionData:c,legacyInscription:d,legacyMetadata:u,systemProgram:w.SystemProgram.programId,inscriptionsProgram:H.bq}).instruction(),batchStart:t.start});return l};var $=n(90586);let X="QUERY_LOADING";function ee(){return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(x.wT,{maxSnack:window.screen.width<720?2:5,anchorOrigin:{vertical:"top",horizontal:"center"},children:(0,i.jsx)(et,{})})})}function et(){let e=(0,s.useMemo)(()=>new a.s,[]),{setVisible:t}=(0,y.h)(),{enqueueSnackbar:n,closeSnackbar:o}
1=(0,x.Ds)(),[S,k]=(0,s.useState)(!1),[K,Z]=(0,s.useState)(!1),[V,H]=(0,s.useState)(null),[J,G]=(0,s.useState)(null),[Q,ee]=(0,s.useState)(null),[et,en]=(0,s.useState)(null),ei=(0,r.useRouter)(),es=(0,T.yR)(async()=>ei.isReady?ei.query.id?e.massInscribes.get(ei.query.id):void 0:X,[ei.isReady,e],X),ea=(0,T.yR)(async()=>{if(!ei.isReady)return X;let t=await e.inscriptionsInProgress.where("massInscribeId").equals(ei.query.id).toArray();return t},[ei.isReady,e]),er=(0,s.useMemo)(()=>{if(ea!==X&&void 0!==ea)return console.log(ea),ea.filter(e=>e.minted).length},[ea]),el=(0,s.useMemo)(()=>{if(ea!==X&&void 0!==ea)return{batchesWritten:ea.reduce((e,t)=>e+t.batchesWritten.filter(e=>e).length,0),batchesRequired:ea.reduce((e,t)=>e+t.batchesWritten.length,0)}},[ea]),eo=(0,s.useMemo)(()=>{if(ea!==X&&void 0!==ea)return ea.filter(e=>!!e.inscriptionInitialized).length},[ea]),ec=(0,s.useMemo)(()=>{if(ea===X||void 0===ea)return;let e=ea.filter(e=>e.currentSize>=e.asset.size).length,t=ea.reduce((e,t)=>e+(t.currentSize||(t.inscriptionInitialized?8:0)),0),n=ea.reduce((e,t)=>e+t.asset.size+10,0);return{fullyAllocated:e,bytesAllocated:t,bytesRequired:n}},[ea]),ed=(0,s.useMemo)(()=>
1es!==X&&!es,[es]),[eu,ep]=(0,s.useState)(0);(0,s.useEffect)(()=>{ea&&ea!==X&&ep(e=>Math.min(Math.max(e,20),ea.length))},[ea]);let em=(0,s.useCallback)(()=>{ea!==X&&ea&&ep(e=>Math.min(e+8,ea.length))},[ea]),eg=(0,s.useMemo)(()=>{if(ea!==X&&void 0!==ea)return ea.filter(e=>e.immutable).length},[ea]),ef=(0,f.O)(),eh=(0,s.useMemo)(()=>{let e=p.I.make(g.t1);return ef.publicKey&&e.use((0,m.t)(ef)),e},[ef]),[ey,ex]=(0,s.useState)(!1),[eb,ew]=(0,s.useState)(void 0),[ej,eI]=(0,s.useState)(void 0),ev=(0,s.useCallback)(async()=>{let t=await Promise.all(ea.filter(e=>!e.immutable).map(async e=>{let t=(await (0,L.y)({wallet:ef,params:{excludeBHash:!0,metaplex:eh,mint:new w.PublicKey(e.minted)}},g.t1)).data[0].instructions[0];return{assetRef:e,ix:t}})),n=O().chunk(t,3).map(e=>{let t=new w.Transaction().add(...e.map(e=>e.ix));return t.feePayer=ef.publicKey,{tx:t,assetRefs:e.map(e=>e.assetRef)}});for(let t=0;t<n.length;t+=20){ew("Making Inscriptions Immutable");let i=n.slice(t,t+20),s=await g.t1.getLatestBlockhash(),a=await ef.signAllTransactions(i.map(e=>(e.tx.recentBlockhash=s.blockhash,e.tx.lastValidBlockHeight=s.lastValidBlockHeight,e.tx)));await (0,F.Mf)(a.map((t,i)=>async()=>{await (await (0,z.FI)({signedTransaction:t,connection:g.t1})).result;let s=n[i].assetRefs.map(e=>[ei.query.id,e.assetName]);await e.inscriptionsInProgress.where(":id").anyOf(s).modify(e=>{e.immutable=!0})}))}},[e.inscriptionsInProgress,ea,eh,ei.query.id,ef]),eS=(0,s.useCallback)(async()=>{var t;if(ew("Starting up"),(null===(t=v.I8.currentUser)||void 0===t?void 0:t.uid)!==ef.publicKey.toString()){let e=n((0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{style:{display:"flex",gap:"15px",alignItems:"center",justifyContent:"center"},children:[(0,i.jsx)("div",{children:"Sign the message to continue"}),(0,i.jsx)("div",{style:{marginTop:"3px"},children:(0,i.jsx)(j.Z,{size:15})})]})}),{persist:!0,style:{borderRadius:"5px"}});try{await (0,I.a)(g.t1,ef.publicKey.toString(),ef.signMessage)}finally{o(e)}}ew("Starting up");let{collectionNFT:s,collectionName:a,collectionSymbol:r,royaltyPercent:l,enforceRoyalties:c,imagesCID:d,metadataCID:u,immutable:p}=es;if(!s){ew("Creating collection NFT"),console.log("Creating collection NFT");let t=await (0,h.bA)(ef,{enqueueSnackbar:n,closeSnackbar:o},{name:a,symbol:r,assetUrl:ea[0].asset,description:"",attributes:[],royaltyPercent:l,enforceRoyalties:!1,immutable:!1,creators:[{share:100,address:ef.publicKey.toString(),removable:!1}]});console.log(t);let i=w.Keypair.generate(),d=await eh.nfts().builders().create({useNewMint:i,name:a,symbol:r,uri:t,sellerFeeBasisPoints:100*l,isCollection:!0,tokenStandard:c?b.TokenStandard.ProgrammableNonFungible:b.TokenStandard.NonFungible,ruleSet:c?new w.PublicKey("eBJLFYPxJmMGKuFwpDWkzxZeUrad92kZRC5BJLpzyT9"):void 0}),u=new w.Transaction().add(...d.getInstructions());await (0,$._N)([{tx:u,signers:[i]}],g.t1,ef),await e.massInscribes.update(ei.query.id,{collectionNFT:i.publicKey.toString()}),s=i.publicKey.toString()}if(!d){console.log("Uploading Images"),ew("Uploading Images");let t=function(e,t,n){let i=new FormData;return e.forEach((e,s)=>{console.log(e);let a="/".concat(t,"_").concat(n,"_images/").concat(s+1);i.append("file",e,a)}),i}(ea.map(e=>e.asset),ef.publicKey.toString(),a);console.log(t);let n=await C(t,()=>{},()=>{},()=>{});await e.massInscribes.update(ei.query.id,{imagesCID:n}),d=n}if(!u){ew("Uploading JSON");let t=ea.map((e,t)=>{let n=(0,h.Ce)({cidUrl:"".concat(d,"/").concat(t+1),storedByUs:!0}),i={image:n,properties:{files:[{uri:n,type:e.asset.type}]}};return new Blob([JSON.stringify({...e.json,...i})])}),n=new FormData;t.forEach((e,t)=>{n.append("file",e,"".concat(t+1,".json"))}),u=await C(n,()=>{},e=>{},e=>{}),await e.massInscribes.update(ei.query.id,{metadataCID:u})}console.log("Done ".concat(d," ").concat(u)),console.log("Minting NFTs");let m=(await Promise.all(ea.flatMap(async(e,t)=>{if(!e.minted){let n=w.Keypair.generate(),i=await eh.nfts().builders().create({name:e.name?e.name:"".concat(a,"# ").concat(t+1),symbol:r,creators:[{share:100,address:ef.publicKey,authority:eh.identity()}],useNewMint:n,sellerFeeBasisPoints:100*Number(l),mintTokens:!0,uri:(0,h.Ce)({cidUrl:"".concat(u,"/").concat(t+1,".json"),storedByUs:!0}),collection:new w.PublicKey(s),collectionAuthority:eh.identity(),collectionIsSized:!1,primarySaleHappened:!0,isMutable:!p,tokenStandard:c?b.TokenStandard.ProgrammableNonFungible:b.TokenStandard.NonFungible,ruleSet:c?new w.PublicKey("eBJLFYPxJmMGKuFwpDWkzxZeUrad92kZRC5BJLpzyT9"):void 0}),o=new w.Transaction().add(...i.getInstructions()).add(w.SystemProgram.transfer({fromPubkey:ef.publicKey,toPubkey:W.FEE_KEY,lamports:w.LAMPORTS_PER_SOL/200}));return o.feePayer=ef.publicKey,{tx:o,signers:[n],assetInfoRef:e}}return[]}))).flatMap(e=>e);new P.Y7(g.t1,ef,{});for(let t=0;t<m.length;t+=20){ew("Minting NFTs");let n=m.slice(t,t+20),i=await g.t1.getLatestBlockhash(),s=await ef.signAllTransactions(n.map(e=>(e.tx.recentBlockhash=i.blockhash,e.tx.lastValidBlockHeight=i.lastValidBlockHeight,e.tx.partialSign(...e.signers),e.tx)));await (0,F.Mf)(s.map((t,i)=>async()=>{await (await (0,z.FI)({signedTransaction:t,connection:g.t1})).result,await e.inscriptionsInProgress.update([ei.query.id,n[i].assetInfoRef.assetName],{minted:n[i].signers[0].publicKey.toString()}),n[i].assetInfoRef.minted=n[i].signers[0].publicKey.toString()}))}console.log("Minting Done"),console.log("Initing inscriptions");let f=(await Promise.all(ea.map(async(e,t)=>{if(!e.inscriptionInitialized){let t=(await (0,R.P)({wallet:ef,params:{excludeBhash:!0,mint:new w.PublicKey(e.minted)}},g.t1)).data[0].instructions[0],n=new w.Transaction().add(t);return n.feePayer=ef.publicKey,{tx:n,assetInfoRef:e}}}))).filter(e=>!!e);for(let t=0;t<f.length;t+=20){ew("Initialising inscriptions");let n=(await Promise.all(f.slice(t,t+20).map(async e=>{let t=(0,N.E)(new w.PublicKey(e.assetInfoRef.minted))[0],n=await g.t1.getAccountInfo(t);return{...e,exists:!!n}}))).filter(e=>!e.exists),i=await g.t1.getLatestBlockhash(),s=await ef.signAllTransactions(n.map(e=>(e.tx.recentBlockhash=i.blockhash,e.tx.lastValidBlockHeight=i.lastValidBlockHeight,e.tx)));await (0,F.Mf)(s.map((t,i)=>async()=>{await (await (0,z.FI)({signedTransaction:t,connection:g.t1})).result;let s=(0,N.E)(new w.PublicKey(n[i].assetInfoRef.minted))[0];await e.inscriptionsInProgress.update([ei.query.id,n[i].assetInfoRef.assetName],{inscriptionInitialized:s.toString()}),n[i].assetInfoRef.inscriptionInitialized=s.toString()}))}console.log("Initing inscriptions DONE"),console.log("Resizing inscriptions");let y=(await Promise.all(ea.map(async e=>{if(!e.currentSize||e.currentSize<=e.asset.size+10){let t=(await (0,B.Al)({wallet:ef,params:{excludeBHash:!0,mint:new w.PublicKey(e.minted),targetSize:e.asset.size+10,currentSize:e.currentSize||8}},g.t1)).data.map(e=>{let t=new w.Transaction().add(...e.instructions);return t.feePayer=ef.publicKey,{tx:t,sizeChange:e.txSizeChange}});return t.map(t=>({assetInfoRef:e,tx:t}))}}))).filter(e=>!!e).flatMap(e=>e);for(let t=0;t<y.length;t+=20){ew("Resizing inscriptions");let n=y.slice(t,t+20),i=await g.t1.getLatestBlockhash(),s=await ef.signAllTransactions(n.map(e=>(e.tx.tx.recentBlockhash=i.blockhash,e.tx.tx.lastValidBlockHeight=i.lastValidBlockHeight,e.tx.tx)));await (0,F.Mf)(s.map((t,i)=>async()=>{await (await (0,z.FI)({signedTransaction:t,connection:g.t1})).result,await e.inscriptionsInProgress.where(":id").equals([ei.query.id,n[i].assetInfoRef.assetName]).modify(e=>{e.currentSize=(e.currentSize||8)+n[i].tx.sizeChange})}))}console.log("Resizing inscriptions DONE"),console.log("Writing inscription DATA");let x=ea.flatMap(e=>{let t=e.batchesWritten.flatMap((e,t)=>e?[]:{start:t*D.uO});return t.length>0?{assetRef:e,batchesToWriteForAsset:t}:[]}),S=[],k=0;for(let t=0;t<x.length;t++){ew("Uploading inscription data");let n=x[t].batchesToWriteForAsset.length*D.uO;if(S.push(x[t]),(k+=n)+n>=7e7||t===x.length-1){let t=await Promise.all(S.map(async e=>(await Y(e.batchesToWriteForAsset,e.assetRef.asset,new w.PublicKey(e.assetRef.minted),g.t1,ef,e.assetRef.asset.type)).map(t=>{let n=new w.Transaction().add(w.ComputeBudgetProgram.setComputeUnitPrice({microLamports:1e4}),t.ix);return n.feePayer=ef.publicKey,{tx:n,batchStart:t.batchStart,assetRef:e.assetRef}}))),n=t.flatMap(e=>e).flatMap(e=>e);for(let t=0;t<n.length;t+=50){let i=n.slice(t,t+50),s=await g.t1.getLatestBlockhash(),a=await ef.signAllTransactions(i.map(e=>(e.tx.recentBlockhash=s.blockhash,e.tx.lastValidBlockHeight=s.lastValidBlockHeight,e.tx)));await (0,F.Mf)(a.map((t,n)=>async()=>{await (await (0,z.FI)({signedTransaction:t,connection:g.t1})).result,await e.inscriptionsInProgress.where(":id").equals([ei.query.id,i[n].assetRef.assetName]).modify(e=>{e.batchesWritten[Math.floor(i[n].batchStart/700)]=!0})}))}S=[],k=0}}console.log("Writing inscription DONE")},[ef,es,ea,n,o,eh,e.massInscribes,e.inscriptionsInProgress,ei.query.id]);return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("main",{style:{paddingTop:128,paddingLeft:32,paddingRight:32},children:(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",height:"100%"},children:[(0,i.jsx)("h1",{style:{color:"var(--main-color)",marginBottom:64,textAlign:"center"},children:"Bulk Inscriber"}),es===X&&(0,i.jsx)("div",{className:"loader"}),ed&&(0,i.jsx)("span",{children:"Not found"}),es&&es!==X&&(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:12},children:[(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:16,wordBreak:"break-all"},children:[(0,i.jsxs)("strong",{style:{fontSize:"2rem"},children:[es.collectionName," (",es.collectionSymbol,")"]}),es.collectionNFT&&(0,i.jsx)("span",{children:es.collectionNFT}),(0,i.jsxs)("span",{children:[es.royaltyPercent,"% royalties ",es.enforceRoyalties?"":"not"," enforced"]}),es.imagesCID&&(0,i.jsxs)("span",{children:["Images CID: ",es.imagesCID]}),es.metadataCID&&(0,i.jsxs)("span",{children:["JSON CID: ",es.metadataCID]}),void 0!==er&&(0,i.jsxs)("span",{children:["Minted: ",er,"/",ea.length]}),void 0!==eo&&(0,i.jsxs)("span",{children:["Inscriptions initialized: ",eo,"/",ea.length]}),ec&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{children:["Inscriptions Fully allocated: ",ec.fullyAllocated,"/",ea.length]}),(0,i.jsxs)("span",{children:["Inscriptions bytes allocated: ",ec.bytesAllocated,"/",ec.bytesRequired]})]}),el&&(0,i.jsxs)("span",{children:["Inscriptions batche written: ",el.batchesWritten,"/",el.batchesRequired]}),void 0!==eg&&(0,i.jsxs)("span",{children:["Immutable inscriptions: ",eg,"/",ea.length]}),(null==ef?void 0:ef.publicKey)&&(null==el?void 0:el.batchesWritten)!==(null==el?void 0:el.batchesRequired)&&(0,i.jsx)(u.Z,{disabled:ey,onClick:async()=>{ex(!0);try{await eS()}catch(e){console.log(e),n((0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:(0,i.jsxs)("div",{children:["Error: ",e.message||"Unknown error"]})}),{variant:"error"})}finally{ex(!1),ew(void 0)}},children:ey?(0,i.jsx)("span",{className:"loaderSmall"}):(0,i.jsx)("span",{children:"START"})}),!ef.publicKey&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:[(0,i.jsx)(q,{text:"Connect Solana Wallet",onClick:()=>t(!0)}),(0,i.jsx)(_.a,{})]}),(0,i.jsx)("span",{children:eb}),(null==el?void 0:el.batchesWritten)===(null==el?void 0:el.batchesRequired)&&(0,i.jsxs)("div",{style:{display:"flex",gap:20},children:[eg<(null==ea?void 0:ea.length)&&(0,i.jsx)(u.Z,{onClick:async()=>{ex(!0);try{await ev()}catch(e){console.log(e),n((0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:(0,i.jsxs)("div",{children:["Error: ",e.message||"Unknown error"]})}),{variant:"error"})}finally{ex(!1),ew(void 0)}},children:ey?(0,i.jsx)("span",{className:"loaderSmall"}):(0,i.jsx)("span",{children:"Make Immutable"})}),(0,i.jsx)(u.Z,{onClick:async()=>{ex(!0);try{await e.transaction("rw",e.inscriptionsInProgress,e.massInscribes,async t=>{await e.inscriptionsInProgress.where("massInscribeId").equals(ei.query.id).delete(),await e.massInscribes.delete(ei.query.id)}),await ei.push("/bulk")}finally{ex(!1)}},children:(0,i.jsx)("span",{children:"Next mint"})})]})]})}),ea&&ea!==X&&void 0!==ej&&(0,i.jsx)(E.z9,{open:!0,description:ea[ej].json.description,submit:async t=>{await e.inscriptionsInProgress.where(":id").equals([ei.query.id,ea[ej].assetName]).modify(e=>{e.json.attributes=t.attributes,e.name=t.name,e.json.description=t.description}),eI(void 0)},onClose:()=>{eI(void 0)},attributes:ea[ej].json.attributes,name:ea[ej].name}),ea&&ea!==X&&(0,i.jsx)(l.Z,{loader:"Loading",dataLength:eu,hasMore:eu<ea.length,endMessage:"",scrollThreshold:.95,next:()=>em(),className:c().infiniteScroll,children:ea.slice(0,eu).map((e,t)=>(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:6},children:[(0,i.jsx)(d.Z,{name:e.name?e.name:"".concat(es.collectionName,"# ").concat(t),imageFile:e.asset,parsedJson:e.json}),(0,i.jsx)("span",{style:{color:e.minted?"greenyellow":"orange"},children:e.minted?"Inscribed":"Not Inscribed"}),(0,i.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},children:e.minted?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(U(),{target:"_blank",style:{color:"white"},href:"/scanner?mintId=".concat(e.minted),children:"View"})}):(0,i.jsx)(A.Z,{onClick:()=>{eI(t)},children:(0,i.jsx)(M.Z,{style:{color:"white",fontSize:16}})})})]},t))})]})]})})})}},80085:function(e){e.exports={infiniteScroll:"bulkid_infiniteScroll__ul3Nd"}}},function(e){e.O(0,[3662,4140,9967,2016,3096,5226,2855,5687,1902,8015,9520,3576,5677,1326,5121,9130,4286,5180,8063,5157,9774,2888,179],function(){return e(e.s=95720)}),_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.