nft-vyapar-kit
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -1,2 +0,2 @@ | ||
"use strict";var Xa=Object.create;var ce=Object.defineProperty;var Ya=Object.getOwnPropertyDescriptor;var Za=Object.getOwnPropertyNames;var Qa=Object.getPrototypeOf,eo=Object.prototype.hasOwnProperty;var i=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),to=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},Re=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Za(t))!eo.call(e,o)&&o!==r&&ce(e,o,{get:()=>t[o],enumerable:!(a=Ya(t,o))||a.enumerable});return e};var E=(e,t,r)=>(r=e!=null?Xa(Qa(e)):{},Re(t||!e||!e.__esModule?ce(r,"default",{value:e,enumerable:!0}):r,e)),ro=e=>Re(ce({},"__esModule",{value:!0}),e);var _e=i((Oc,Be)=>{var ao=Object.prototype;function oo(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ao;return e===r}Be.exports=oo});var Ke=i((Sc,Ve)=>{function so(e,t){return function(r){return e(t(r))}}Ve.exports=so});var Je=i((Cc,We)=>{var io=Ke(),no=io(Object.keys,Object);We.exports=no});var Ye=i((Nc,Xe)=>{var lo=_e(),co=Je(),po=Object.prototype,uo=po.hasOwnProperty;function fo(e){if(!lo(e))return co(e);var t=[];for(var r in Object(e))uo.call(e,r)&&r!="constructor"&&t.push(r);return t}Xe.exports=fo});var je=i((Pc,Ze)=>{var mo=typeof global=="object"&&global&&global.Object===Object&&global;Ze.exports=mo});var _=i((Ec,Qe)=>{var yo=je(),go=typeof self=="object"&&self&&self.Object===Object&&self,ho=yo||go||Function("return this")();Qe.exports=ho});var pe=i((Ic,et)=>{var bo=_(),vo=bo.Symbol;et.exports=vo});var ot=i((Ac,at)=>{var tt=pe(),rt=Object.prototype,xo=rt.hasOwnProperty,wo=rt.toString,X=tt?tt.toStringTag:void 0;function qo(e){var t=xo.call(e,X),r=e[X];try{e[X]=void 0;var a=!0}catch{}var o=wo.call(e);return a&&(t?e[X]=r:delete e[X]),o}at.exports=qo});var it=i((kc,st)=>{var To=Object.prototype,_o=To.toString;function jo(e){return _o.call(e)}st.exports=jo});var L=i((Mc,ct)=>{var nt=pe(),Oo=ot(),So=it(),Co="[object Null]",No="[object Undefined]",lt=nt?nt.toStringTag:void 0;function Po(e){return e==null?e===void 0?No:Co:lt&< in Object(e)?Oo(e):So(e)}ct.exports=Po});var Oe=i((Dc,pt)=>{function Eo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}pt.exports=Eo});var Se=i((Fc,ut)=>{var Io=L(),Ao=Oe(),ko="[object AsyncFunction]",Mo="[object Function]",Do="[object GeneratorFunction]",Fo="[object Proxy]";function zo(e){if(!Ao(e))return!1;var t=Io(e);return t==Mo||t==Do||t==ko||t==Fo}ut.exports=zo});var ft=i((zc,dt)=>{var Lo=_(),$o=Lo["__core-js_shared__"];dt.exports=$o});var gt=i((Lc,yt)=>{var Ce=ft(),mt=function(){var e=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ho(e){return!!mt&&mt in e}yt.exports=Ho});var Ne=i(($c,ht)=>{var Go=Function.prototype,Uo=Go.toString;function Ro(e){if(e!=null){try{return Uo.call(e)}catch{}try{return e+""}catch{}}return""}ht.exports=Ro});var vt=i((Hc,bt)=>{var Bo=Se(),Vo=gt(),Ko=Oe(),Wo=Ne(),Jo=/[\\^$.*+?()[\]{}|]/g,Xo=/^\[object .+?Constructor\]$/,Yo=Function.prototype,Zo=Object.prototype,Qo=Yo.toString,es=Zo.hasOwnProperty,ts=RegExp("^"+Qo.call(es).replace(Jo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rs(e){if(!Ko(e)||Vo(e))return!1;var t=Bo(e)?ts:Xo;return t.test(Wo(e))}bt.exports=rs});var wt=i((Gc,xt)=>{function as(e,t){return e?.[t]}xt.exports=as});var I=i((Uc,qt)=>{var os=vt(),ss=wt();function is(e,t){var r=ss(e,t);return os(r)?r:void 0}qt.exports=is});var _t=i((Rc,Tt)=>{var ns=I(),ls=_(),cs=ns(ls,"DataView");Tt.exports=cs});var Pe=i((Bc,jt)=>{var ps=I(),us=_(),ds=ps(us,"Map");jt.exports=ds});var St=i((Vc,Ot)=>{var fs=I(),ms=_(),ys=fs(ms,"Promise");Ot.exports=ys});var Nt=i((Kc,Ct)=>{var gs=I(),hs=_(),bs=gs(hs,"Set");Ct.exports=bs});var Et=i((Wc,Pt)=>{var vs=I(),xs=_(),ws=vs(xs,"WeakMap");Pt.exports=ws});var Lt=i((Jc,zt)=>{var Ee=_t(),Ie=Pe(),Ae=St(),ke=Nt(),Me=Et(),Ft=L(),$=Ne(),It="[object Map]",qs="[object Object]",At="[object Promise]",kt="[object Set]",Mt="[object WeakMap]",Dt="[object DataView]",Ts=$(Ee),_s=$(Ie),js=$(Ae),Os=$(ke),Ss=$(Me),A=Ft;(Ee&&A(new Ee(new ArrayBuffer(1)))!=Dt||Ie&&A(new Ie)!=It||Ae&&A(Ae.resolve())!=At||ke&&A(new ke)!=kt||Me&&A(new Me)!=Mt)&&(A=function(e){var t=Ft(e),r=t==qs?e.constructor:void 0,a=r?$(r):"";if(a)switch(a){case Ts:return Dt;case _s:return It;case js:return At;case Os:return kt;case Ss:return Mt}return t});zt.exports=A});var Y=i((Xc,$t)=>{function Cs(e){return e!=null&&typeof e=="object"}$t.exports=Cs});var Gt=i((Yc,Ht)=>{var Ns=L(),Ps=Y(),Es="[object Arguments]";function Is(e){return Ps(e)&&Ns(e)==Es}Ht.exports=Is});var Vt=i((Zc,Bt)=>{var Ut=Gt(),As=Y(),Rt=Object.prototype,ks=Rt.hasOwnProperty,Ms=Rt.propertyIsEnumerable,Ds=Ut(function(){return arguments}())?Ut:function(e){return As(e)&&ks.call(e,"callee")&&!Ms.call(e,"callee")};Bt.exports=Ds});var Z=i((Qc,Kt)=>{var Fs=Array.isArray;Kt.exports=Fs});var De=i((ep,Wt)=>{var zs=9007199254740991;function Ls(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zs}Wt.exports=Ls});var Xt=i((tp,Jt)=>{var $s=Se(),Hs=De();function Gs(e){return e!=null&&Hs(e.length)&&!$s(e)}Jt.exports=Gs});var Zt=i((rp,Yt)=>{function Us(){return!1}Yt.exports=Us});var rr=i((Q,H)=>{var Rs=_(),Bs=Zt(),tr=typeof Q=="object"&&Q&&!Q.nodeType&&Q,Qt=tr&&typeof H=="object"&&H&&!H.nodeType&&H,Vs=Qt&&Qt.exports===tr,er=Vs?Rs.Buffer:void 0,Ks=er?er.isBuffer:void 0,Ws=Ks||Bs;H.exports=Ws});var or=i((ap,ar)=>{var Js=L(),Xs=De(),Ys=Y(),Zs="[object Arguments]",Qs="[object Array]",ei="[object Boolean]",ti="[object Date]",ri="[object Error]",ai="[object Function]",oi="[object Map]",si="[object Number]",ii="[object Object]",ni="[object RegExp]",li="[object Set]",ci="[object String]",pi="[object WeakMap]",ui="[object ArrayBuffer]",di="[object DataView]",fi="[object Float32Array]",mi="[object Float64Array]",yi="[object Int8Array]",gi="[object Int16Array]",hi="[object Int32Array]",bi="[object Uint8Array]",vi="[object Uint8ClampedArray]",xi="[object Uint16Array]",wi="[object Uint32Array]",m={};m[fi]=m[mi]=m[yi]=m[gi]=m[hi]=m[bi]=m[vi]=m[xi]=m[wi]=!0;m[Zs]=m[Qs]=m[ui]=m[ei]=m[di]=m[ti]=m[ri]=m[ai]=m[oi]=m[si]=m[ii]=m[ni]=m[li]=m[ci]=m[pi]=!1;function qi(e){return Ys(e)&&Xs(e.length)&&!!m[Js(e)]}ar.exports=qi});var ir=i((op,sr)=>{function Ti(e){return function(t){return e(t)}}sr.exports=Ti});var lr=i((ee,G)=>{var _i=je(),nr=typeof ee=="object"&&ee&&!ee.nodeType&&ee,te=nr&&typeof G=="object"&&G&&!G.nodeType&&G,ji=te&&te.exports===nr,Fe=ji&&_i.process,Oi=function(){try{var e=te&&te.require&&te.require("util").types;return e||Fe&&Fe.binding&&Fe.binding("util")}catch{}}();G.exports=Oi});var dr=i((sp,ur)=>{var Si=or(),Ci=ir(),cr=lr(),pr=cr&&cr.isTypedArray,Ni=pr?Ci(pr):Si;ur.exports=Ni});var ue=i((ip,fr)=>{var Pi=Ye(),Ei=Lt(),Ii=Vt(),Ai=Z(),ki=Xt(),Mi=rr(),Di=_e(),Fi=dr(),zi="[object Map]",Li="[object Set]",$i=Object.prototype,Hi=$i.hasOwnProperty;function Gi(e){if(e==null)return!0;if(ki(e)&&(Ai(e)||typeof e=="string"||typeof e.splice=="function"||Mi(e)||Fi(e)||Ii(e)))return!e.length;var t=Ei(e);if(t==zi||t==Li)return!e.size;if(Di(e))return!Pi(e).length;for(var r in e)if(Hi.call(e,r))return!1;return!0}fr.exports=Gi});var de=i((lp,mr)=>{var Ui=L(),Ri=Y(),Bi="[object Symbol]";function Vi(e){return typeof e=="symbol"||Ri(e)&&Ui(e)==Bi}mr.exports=Vi});var gr=i((cp,yr)=>{var Ki=Z(),Wi=de(),Ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xi=/^\w*$/;function Yi(e,t){if(Ki(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Wi(e)?!0:Xi.test(e)||!Ji.test(e)||t!=null&&e in Object(t)}yr.exports=Yi});var re=i((pp,hr)=>{var Zi=I(),Qi=Zi(Object,"create");hr.exports=Qi});var xr=i((up,vr)=>{var br=re();function en(){this.__data__=br?br(null):{},this.size=0}vr.exports=en});var qr=i((dp,wr)=>{function tn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}wr.exports=tn});var _r=i((fp,Tr)=>{var rn=re(),an="__lodash_hash_undefined__",on=Object.prototype,sn=on.hasOwnProperty;function nn(e){var t=this.__data__;if(rn){var r=t[e];return r===an?void 0:r}return sn.call(t,e)?t[e]:void 0}Tr.exports=nn});var Or=i((mp,jr)=>{var ln=re(),cn=Object.prototype,pn=cn.hasOwnProperty;function un(e){var t=this.__data__;return ln?t[e]!==void 0:pn.call(t,e)}jr.exports=un});var Cr=i((yp,Sr)=>{var dn=re(),fn="__lodash_hash_undefined__";function mn(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=dn&&t===void 0?fn:t,this}Sr.exports=mn});var Pr=i((gp,Nr)=>{var yn=xr(),gn=qr(),hn=_r(),bn=Or(),vn=Cr();function R(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}R.prototype.clear=yn;R.prototype.delete=gn;R.prototype.get=hn;R.prototype.has=bn;R.prototype.set=vn;Nr.exports=R});var Ir=i((hp,Er)=>{function xn(){this.__data__=[],this.size=0}Er.exports=xn});var kr=i((bp,Ar)=>{function wn(e,t){return e===t||e!==e&&t!==t}Ar.exports=wn});var ae=i((vp,Mr)=>{var qn=kr();function Tn(e,t){for(var r=e.length;r--;)if(qn(e[r][0],t))return r;return-1}Mr.exports=Tn});var Fr=i((xp,Dr)=>{var _n=ae(),jn=Array.prototype,On=jn.splice;function Sn(e){var t=this.__data__,r=_n(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():On.call(t,r,1),--this.size,!0}Dr.exports=Sn});var Lr=i((wp,zr)=>{var Cn=ae();function Nn(e){var t=this.__data__,r=Cn(t,e);return r<0?void 0:t[r][1]}zr.exports=Nn});var Hr=i((qp,$r)=>{var Pn=ae();function En(e){return Pn(this.__data__,e)>-1}$r.exports=En});var Ur=i((Tp,Gr)=>{var In=ae();function An(e,t){var r=this.__data__,a=In(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Gr.exports=An});var Br=i((_p,Rr)=>{var kn=Ir(),Mn=Fr(),Dn=Lr(),Fn=Hr(),zn=Ur();function B(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}B.prototype.clear=kn;B.prototype.delete=Mn;B.prototype.get=Dn;B.prototype.has=Fn;B.prototype.set=zn;Rr.exports=B});var Wr=i((jp,Kr)=>{var Vr=Pr(),Ln=Br(),$n=Pe();function Hn(){this.size=0,this.__data__={hash:new Vr,map:new($n||Ln),string:new Vr}}Kr.exports=Hn});var Xr=i((Op,Jr)=>{function Gn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Jr.exports=Gn});var oe=i((Sp,Yr)=>{var Un=Xr();function Rn(e,t){var r=e.__data__;return Un(t)?r[typeof t=="string"?"string":"hash"]:r.map}Yr.exports=Rn});var Qr=i((Cp,Zr)=>{var Bn=oe();function Vn(e){var t=Bn(this,e).delete(e);return this.size-=t?1:0,t}Zr.exports=Vn});var ta=i((Np,ea)=>{var Kn=oe();function Wn(e){return Kn(this,e).get(e)}ea.exports=Wn});var aa=i((Pp,ra)=>{var Jn=oe();function Xn(e){return Jn(this,e).has(e)}ra.exports=Xn});var sa=i((Ep,oa)=>{var Yn=oe();function Zn(e,t){var r=Yn(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}oa.exports=Zn});var na=i((Ip,ia)=>{var Qn=Wr(),el=Qr(),tl=ta(),rl=aa(),al=sa();function V(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}V.prototype.clear=Qn;V.prototype.delete=el;V.prototype.get=tl;V.prototype.has=rl;V.prototype.set=al;ia.exports=V});var pa=i((Ap,ca)=>{var la=na(),ol="Expected a function";function ze(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ol);var r=function(){var a=arguments,o=t?t.apply(this,a):a[0],s=r.cache;if(s.has(o))return s.get(o);var l=e.apply(this,a);return r.cache=s.set(o,l)||s,l};return r.cache=new(ze.Cache||la),r}ze.Cache=la;ca.exports=ze});var da=i((kp,ua)=>{var sl=pa(),il=500;function nl(e){var t=sl(e,function(a){return r.size===il&&r.clear(),a}),r=t.cache;return t}ua.exports=nl});var ma=i((Mp,fa)=>{var ll=da(),cl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pl=/\\(\\)?/g,ul=ll(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cl,function(r,a,o,s){t.push(o?s.replace(pl,"$1"):a||r)}),t});fa.exports=ul});var ga=i((Dp,ya)=>{function dl(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r<a;)o[r]=t(e[r],r,e);return o}ya.exports=dl});var qa=i((Fp,wa)=>{var ha=pe(),fl=ga(),ml=Z(),yl=de(),gl=1/0,ba=ha?ha.prototype:void 0,va=ba?ba.toString:void 0;function xa(e){if(typeof e=="string")return e;if(ml(e))return fl(e,xa)+"";if(yl(e))return va?va.call(e):"";var t=e+"";return t=="0"&&1/e==-gl?"-0":t}wa.exports=xa});var _a=i((zp,Ta)=>{var hl=qa();function bl(e){return e==null?"":hl(e)}Ta.exports=bl});var Oa=i((Lp,ja)=>{var vl=Z(),xl=gr(),wl=ma(),ql=_a();function Tl(e,t){return vl(e)?e:xl(e,t)?[e]:wl(ql(e))}ja.exports=Tl});var Ca=i(($p,Sa)=>{var _l=de(),jl=1/0;function Ol(e){if(typeof e=="string"||_l(e))return e;var t=e+"";return t=="0"&&1/e==-jl?"-0":t}Sa.exports=Ol});var Pa=i((Hp,Na)=>{var Sl=Oa(),Cl=Ca();function Nl(e,t){t=Sl(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[Cl(t[r++])];return r&&r==a?e:void 0}Na.exports=Nl});var Ia=i((Gp,Ea)=>{var Pl=Pa();function El(e,t,r){var a=e==null?void 0:Pl(e,t);return a===void 0?r:a}Ea.exports=El});var qc={};to(qc,{SellNFT:()=>Ra,Textarea:()=>Ua});module.exports=ro(qc);var v=require("react"),Te=require("@heroicons/react/20/solid"),Ga=require("@heroicons/react/24/outline"),qe=E(ue());var U={AI:"AI",Mint:"Mint"};var K=E(ue()),Aa=E(Ia());var ka=(e,t)=>{let{title:r,description:a,file:o}=t;if(e===U.AI){if((0,K.default)(a)||(0,K.default)(r)||(0,K.default)(o))return!1}else if((0,K.default)(a)||(0,K.default)(o))return!1;return!0},fe=e=>{let t=JSON.parse(e);return(0,Aa.default)(t,"signed",null)};var ve=require("react"),ie=require("react"),O=E(require("react"),1);var Il={data:""},Al=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Il;var kl=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ml=/\/\*[^]*?\*\/| +/g,Ma=/\n+/g,S=(e,t)=>{let r="",a="",o="";for(let s in e){let l=e[s];s[0]=="@"?s[1]=="i"?r=s+" "+l+";":a+=s[1]=="f"?S(l,s):s+"{"+S(l,s[1]=="k"?"":t)+"}":typeof l=="object"?a+=S(l,t?t.replace(/([^,])+/g,n=>s.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,n):n?n+" "+c:c)):s):l!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=S.p?S.p(s,l):s+":"+l+";")}return r+(t&&o?t+"{"+o+"}":o)+a},j={},Da=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Da(e[r]);return t}return e},Dl=(e,t,r,a,o)=>{let s=Da(e),l=j[s]||(j[s]=(c=>{let u=0,f=11;for(;u<c.length;)f=101*f+c.charCodeAt(u++)>>>0;return"go"+f})(s));if(!j[l]){let c=s!==e?e:(u=>{let f,d,y=[{}];for(;f=kl.exec(u.replace(Ml,""));)f[4]?y.shift():f[3]?(d=f[3].replace(Ma," ").trim(),y.unshift(y[0][d]=y[0][d]||{})):y[0][f[1]]=f[2].replace(Ma," ").trim();return y[0]})(e);j[l]=S(o?{["@keyframes "+l]:c}:c,r?"":"."+l)}let n=r&&j.g?j.g:null;return r&&(j.g=j[l]),((c,u,f,d)=>{d?u.data=u.data.replace(d,c):u.data.indexOf(c)===-1&&(u.data=f?c+u.data:u.data+c)})(j[l],t,a,n),l},Fl=(e,t,r)=>e.reduce((a,o,s)=>{let l=t[s];if(l&&l.call){let n=l(r),c=n&&n.props&&n.props.className||/^go/.test(n)&&n;l=c?"."+c:n&&typeof n=="object"?n.props?"":S(n,""):n===!1?"":n}return a+o+(l??"")},"");function se(e){let t=this||{},r=e.call?e(t.p):e;return Dl(r.unshift?r.raw?Fl(r,[].slice.call(arguments,1),t.p):r.reduce((a,o)=>Object.assign(a,o&&o.call?o(t.p):o),{}):r,Al(t.target),t.g,t.o,t.k)}var Fa,Le,$e,Bp=se.bind({g:1}),x=se.bind({k:1});function za(e,t,r,a){S.p=t,Fa=e,Le=r,$e=a}function w(e,t){let r=this||{};return function(){let a=arguments;function o(s,l){let n=Object.assign({},s),c=n.className||o.className;r.p=Object.assign({theme:Le&&Le()},n),r.o=/ *go\d+/.test(c),n.className=se.apply(r,a)+(c?" "+c:""),t&&(n.ref=l);let u=e;return e[0]&&(u=n.as||e,delete n.as),$e&&u[0]&&$e(n),Fa(u,n)}return t?t(o):o}}var k=E(require("react"),1);var C=E(require("react"),1),zl=e=>typeof e=="function",be=(e,t)=>zl(e)?e(t):e,Ll=(()=>{let e=0;return()=>(++e).toString()})(),$a=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),$l=20,ye=new Map,Hl=1e3,La=e=>{if(ye.has(e))return;let t=setTimeout(()=>{ye.delete(e),M({type:4,toastId:e})},Hl);ye.set(e,t)},Gl=e=>{let t=ye.get(e);t&&clearTimeout(t)},He=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,$l)};case 1:return t.toast.id&&Gl(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:r}=t;return e.toasts.find(s=>s.id===r.id)?He(e,{type:1,toast:r}):He(e,{type:0,toast:r});case 3:let{toastId:a}=t;return a?La(a):e.toasts.forEach(s=>{La(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===a||a===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+o}))}}},ge=[],he={toasts:[],pausedAt:void 0},M=e=>{he=He(he,e),ge.forEach(t=>{t(he)})},Ul={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Rl=(e={})=>{let[t,r]=(0,ve.useState)(he);(0,ve.useEffect)(()=>(ge.push(r),()=>{let o=ge.indexOf(r);o>-1&&ge.splice(o,1)}),[t]);let a=t.toasts.map(o=>{var s,l;return{...e,...e[o.type],...o,duration:o.duration||((s=e[o.type])==null?void 0:s.duration)||e?.duration||Ul[o.type],style:{...e.style,...(l=e[o.type])==null?void 0:l.style,...o.style}}});return{...t,toasts:a}},Bl=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:r?.id||Ll()}),ne=e=>(t,r)=>{let a=Bl(t,e,r);return M({type:2,toast:a}),a.id},q=(e,t)=>ne("blank")(e,t);q.error=ne("error");q.success=ne("success");q.loading=ne("loading");q.custom=ne("custom");q.dismiss=e=>{M({type:3,toastId:e})};q.remove=e=>M({type:4,toastId:e});q.promise=(e,t,r)=>{let a=q.loading(t.loading,{...r,...r?.loading});return e.then(o=>(q.success(be(t.success,o),{id:a,...r,...r?.success}),o)).catch(o=>{q.error(be(t.error,o),{id:a,...r,...r?.error})}),e};var Vl=(e,t)=>{M({type:1,toast:{id:e,height:t}})},Kl=()=>{M({type:5,time:Date.now()})},Wl=e=>{let{toasts:t,pausedAt:r}=Rl(e);(0,ie.useEffect)(()=>{if(r)return;let s=Date.now(),l=t.map(n=>{if(n.duration===1/0)return;let c=(n.duration||0)+n.pauseDuration-(s-n.createdAt);if(c<0){n.visible&&q.dismiss(n.id);return}return setTimeout(()=>q.dismiss(n.id),c)});return()=>{l.forEach(n=>n&&clearTimeout(n))}},[t,r]);let a=(0,ie.useCallback)(()=>{r&&M({type:6,time:Date.now()})},[r]),o=(0,ie.useCallback)((s,l)=>{let{reverseOrder:n=!1,gutter:c=8,defaultPosition:u}=l||{},f=t.filter(g=>(g.position||u)===(s.position||u)&&g.height),d=f.findIndex(g=>g.id===s.id),y=f.filter((g,N)=>N<d&&g.visible).length;return f.filter(g=>g.visible).slice(...n?[y+1]:[0,y]).reduce((g,N)=>g+(N.height||0)+c,0)},[t]);return{toasts:t,handlers:{updateHeight:Vl,startPause:Kl,endPause:a,calculateOffset:o}}},Jl=x` | ||
"use strict";var Xa=Object.create;var le=Object.defineProperty;var Ya=Object.getOwnPropertyDescriptor;var Za=Object.getOwnPropertyNames;var Qa=Object.getPrototypeOf,eo=Object.prototype.hasOwnProperty;var i=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),to=(e,t)=>{for(var r in t)le(e,r,{get:t[r],enumerable:!0})},Re=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Za(t))!eo.call(e,o)&&o!==r&&le(e,o,{get:()=>t[o],enumerable:!(a=Ya(t,o))||a.enumerable});return e};var E=(e,t,r)=>(r=e!=null?Xa(Qa(e)):{},Re(t||!e||!e.__esModule?le(r,"default",{value:e,enumerable:!0}):r,e)),ro=e=>Re(le({},"__esModule",{value:!0}),e);var we=i((Ol,Be)=>{var ao=Object.prototype;function oo(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ao;return e===r}Be.exports=oo});var Ke=i((Sl,Ve)=>{function no(e,t){return function(r){return e(t(r))}}Ve.exports=no});var Je=i((Cl,We)=>{var io=Ke(),so=io(Object.keys,Object);We.exports=so});var Ye=i((Nl,Xe)=>{var co=we(),lo=Je(),po=Object.prototype,uo=po.hasOwnProperty;function fo(e){if(!co(e))return lo(e);var t=[];for(var r in Object(e))uo.call(e,r)&&r!="constructor"&&t.push(r);return t}Xe.exports=fo});var je=i((Pl,Ze)=>{var mo=typeof global=="object"&&global&&global.Object===Object&&global;Ze.exports=mo});var w=i((El,Qe)=>{var yo=je(),go=typeof self=="object"&&self&&self.Object===Object&&self,bo=yo||go||Function("return this")();Qe.exports=bo});var pe=i((Il,et)=>{var vo=w(),ho=vo.Symbol;et.exports=ho});var ot=i((Al,at)=>{var tt=pe(),rt=Object.prototype,xo=rt.hasOwnProperty,_o=rt.toString,X=tt?tt.toStringTag:void 0;function qo(e){var t=xo.call(e,X),r=e[X];try{e[X]=void 0;var a=!0}catch{}var o=_o.call(e);return a&&(t?e[X]=r:delete e[X]),o}at.exports=qo});var it=i((kl,nt)=>{var To=Object.prototype,wo=To.toString;function jo(e){return wo.call(e)}nt.exports=jo});var L=i((Ml,lt)=>{var st=pe(),Oo=ot(),So=it(),Co="[object Null]",No="[object Undefined]",ct=st?st.toStringTag:void 0;function Po(e){return e==null?e===void 0?No:Co:ct&&ct in Object(e)?Oo(e):So(e)}lt.exports=Po});var Oe=i((Dl,pt)=>{function Eo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}pt.exports=Eo});var Se=i((Fl,ut)=>{var Io=L(),Ao=Oe(),ko="[object AsyncFunction]",Mo="[object Function]",Do="[object GeneratorFunction]",Fo="[object Proxy]";function zo(e){if(!Ao(e))return!1;var t=Io(e);return t==Mo||t==Do||t==ko||t==Fo}ut.exports=zo});var ft=i((zl,dt)=>{var Lo=w(),$o=Lo["__core-js_shared__"];dt.exports=$o});var gt=i((Ll,yt)=>{var Ce=ft(),mt=function(){var e=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ho(e){return!!mt&&mt in e}yt.exports=Ho});var Ne=i(($l,bt)=>{var Go=Function.prototype,Uo=Go.toString;function Ro(e){if(e!=null){try{return Uo.call(e)}catch{}try{return e+""}catch{}}return""}bt.exports=Ro});var ht=i((Hl,vt)=>{var Bo=Se(),Vo=gt(),Ko=Oe(),Wo=Ne(),Jo=/[\\^$.*+?()[\]{}|]/g,Xo=/^\[object .+?Constructor\]$/,Yo=Function.prototype,Zo=Object.prototype,Qo=Yo.toString,en=Zo.hasOwnProperty,tn=RegExp("^"+Qo.call(en).replace(Jo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rn(e){if(!Ko(e)||Vo(e))return!1;var t=Bo(e)?tn:Xo;return t.test(Wo(e))}vt.exports=rn});var _t=i((Gl,xt)=>{function an(e,t){return e?.[t]}xt.exports=an});var I=i((Ul,qt)=>{var on=ht(),nn=_t();function sn(e,t){var r=nn(e,t);return on(r)?r:void 0}qt.exports=sn});var wt=i((Rl,Tt)=>{var cn=I(),ln=w(),pn=cn(ln,"DataView");Tt.exports=pn});var Pe=i((Bl,jt)=>{var un=I(),dn=w(),fn=un(dn,"Map");jt.exports=fn});var St=i((Vl,Ot)=>{var mn=I(),yn=w(),gn=mn(yn,"Promise");Ot.exports=gn});var Nt=i((Kl,Ct)=>{var bn=I(),vn=w(),hn=bn(vn,"Set");Ct.exports=hn});var Et=i((Wl,Pt)=>{var xn=I(),_n=w(),qn=xn(_n,"WeakMap");Pt.exports=qn});var Lt=i((Jl,zt)=>{var Ee=wt(),Ie=Pe(),Ae=St(),ke=Nt(),Me=Et(),Ft=L(),$=Ne(),It="[object Map]",Tn="[object Object]",At="[object Promise]",kt="[object Set]",Mt="[object WeakMap]",Dt="[object DataView]",wn=$(Ee),jn=$(Ie),On=$(Ae),Sn=$(ke),Cn=$(Me),A=Ft;(Ee&&A(new Ee(new ArrayBuffer(1)))!=Dt||Ie&&A(new Ie)!=It||Ae&&A(Ae.resolve())!=At||ke&&A(new ke)!=kt||Me&&A(new Me)!=Mt)&&(A=function(e){var t=Ft(e),r=t==Tn?e.constructor:void 0,a=r?$(r):"";if(a)switch(a){case wn:return Dt;case jn:return It;case On:return At;case Sn:return kt;case Cn:return Mt}return t});zt.exports=A});var Y=i((Xl,$t)=>{function Nn(e){return e!=null&&typeof e=="object"}$t.exports=Nn});var Gt=i((Yl,Ht)=>{var Pn=L(),En=Y(),In="[object Arguments]";function An(e){return En(e)&&Pn(e)==In}Ht.exports=An});var Vt=i((Zl,Bt)=>{var Ut=Gt(),kn=Y(),Rt=Object.prototype,Mn=Rt.hasOwnProperty,Dn=Rt.propertyIsEnumerable,Fn=Ut(function(){return arguments}())?Ut:function(e){return kn(e)&&Mn.call(e,"callee")&&!Dn.call(e,"callee")};Bt.exports=Fn});var Z=i((Ql,Kt)=>{var zn=Array.isArray;Kt.exports=zn});var De=i((ep,Wt)=>{var Ln=9007199254740991;function $n(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ln}Wt.exports=$n});var Xt=i((tp,Jt)=>{var Hn=Se(),Gn=De();function Un(e){return e!=null&&Gn(e.length)&&!Hn(e)}Jt.exports=Un});var Zt=i((rp,Yt)=>{function Rn(){return!1}Yt.exports=Rn});var rr=i((Q,H)=>{var Bn=w(),Vn=Zt(),tr=typeof Q=="object"&&Q&&!Q.nodeType&&Q,Qt=tr&&typeof H=="object"&&H&&!H.nodeType&&H,Kn=Qt&&Qt.exports===tr,er=Kn?Bn.Buffer:void 0,Wn=er?er.isBuffer:void 0,Jn=Wn||Vn;H.exports=Jn});var or=i((ap,ar)=>{var Xn=L(),Yn=De(),Zn=Y(),Qn="[object Arguments]",ei="[object Array]",ti="[object Boolean]",ri="[object Date]",ai="[object Error]",oi="[object Function]",ni="[object Map]",ii="[object Number]",si="[object Object]",ci="[object RegExp]",li="[object Set]",pi="[object String]",ui="[object WeakMap]",di="[object ArrayBuffer]",fi="[object DataView]",mi="[object Float32Array]",yi="[object Float64Array]",gi="[object Int8Array]",bi="[object Int16Array]",vi="[object Int32Array]",hi="[object Uint8Array]",xi="[object Uint8ClampedArray]",_i="[object Uint16Array]",qi="[object Uint32Array]",m={};m[mi]=m[yi]=m[gi]=m[bi]=m[vi]=m[hi]=m[xi]=m[_i]=m[qi]=!0;m[Qn]=m[ei]=m[di]=m[ti]=m[fi]=m[ri]=m[ai]=m[oi]=m[ni]=m[ii]=m[si]=m[ci]=m[li]=m[pi]=m[ui]=!1;function Ti(e){return Zn(e)&&Yn(e.length)&&!!m[Xn(e)]}ar.exports=Ti});var ir=i((op,nr)=>{function wi(e){return function(t){return e(t)}}nr.exports=wi});var cr=i((ee,G)=>{var ji=je(),sr=typeof ee=="object"&&ee&&!ee.nodeType&&ee,te=sr&&typeof G=="object"&&G&&!G.nodeType&&G,Oi=te&&te.exports===sr,Fe=Oi&&ji.process,Si=function(){try{var e=te&&te.require&&te.require("util").types;return e||Fe&&Fe.binding&&Fe.binding("util")}catch{}}();G.exports=Si});var dr=i((np,ur)=>{var Ci=or(),Ni=ir(),lr=cr(),pr=lr&&lr.isTypedArray,Pi=pr?Ni(pr):Ci;ur.exports=Pi});var ue=i((ip,fr)=>{var Ei=Ye(),Ii=Lt(),Ai=Vt(),ki=Z(),Mi=Xt(),Di=rr(),Fi=we(),zi=dr(),Li="[object Map]",$i="[object Set]",Hi=Object.prototype,Gi=Hi.hasOwnProperty;function Ui(e){if(e==null)return!0;if(Mi(e)&&(ki(e)||typeof e=="string"||typeof e.splice=="function"||Di(e)||zi(e)||Ai(e)))return!e.length;var t=Ii(e);if(t==Li||t==$i)return!e.size;if(Fi(e))return!Ei(e).length;for(var r in e)if(Gi.call(e,r))return!1;return!0}fr.exports=Ui});var de=i((cp,mr)=>{var Ri=L(),Bi=Y(),Vi="[object Symbol]";function Ki(e){return typeof e=="symbol"||Bi(e)&&Ri(e)==Vi}mr.exports=Ki});var gr=i((lp,yr)=>{var Wi=Z(),Ji=de(),Xi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yi=/^\w*$/;function Zi(e,t){if(Wi(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ji(e)?!0:Yi.test(e)||!Xi.test(e)||t!=null&&e in Object(t)}yr.exports=Zi});var re=i((pp,br)=>{var Qi=I(),es=Qi(Object,"create");br.exports=es});var xr=i((up,hr)=>{var vr=re();function ts(){this.__data__=vr?vr(null):{},this.size=0}hr.exports=ts});var qr=i((dp,_r)=>{function rs(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}_r.exports=rs});var wr=i((fp,Tr)=>{var as=re(),os="__lodash_hash_undefined__",ns=Object.prototype,is=ns.hasOwnProperty;function ss(e){var t=this.__data__;if(as){var r=t[e];return r===os?void 0:r}return is.call(t,e)?t[e]:void 0}Tr.exports=ss});var Or=i((mp,jr)=>{var cs=re(),ls=Object.prototype,ps=ls.hasOwnProperty;function us(e){var t=this.__data__;return cs?t[e]!==void 0:ps.call(t,e)}jr.exports=us});var Cr=i((yp,Sr)=>{var ds=re(),fs="__lodash_hash_undefined__";function ms(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ds&&t===void 0?fs:t,this}Sr.exports=ms});var Pr=i((gp,Nr)=>{var ys=xr(),gs=qr(),bs=wr(),vs=Or(),hs=Cr();function R(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}R.prototype.clear=ys;R.prototype.delete=gs;R.prototype.get=bs;R.prototype.has=vs;R.prototype.set=hs;Nr.exports=R});var Ir=i((bp,Er)=>{function xs(){this.__data__=[],this.size=0}Er.exports=xs});var kr=i((vp,Ar)=>{function _s(e,t){return e===t||e!==e&&t!==t}Ar.exports=_s});var ae=i((hp,Mr)=>{var qs=kr();function Ts(e,t){for(var r=e.length;r--;)if(qs(e[r][0],t))return r;return-1}Mr.exports=Ts});var Fr=i((xp,Dr)=>{var ws=ae(),js=Array.prototype,Os=js.splice;function Ss(e){var t=this.__data__,r=ws(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Os.call(t,r,1),--this.size,!0}Dr.exports=Ss});var Lr=i((_p,zr)=>{var Cs=ae();function Ns(e){var t=this.__data__,r=Cs(t,e);return r<0?void 0:t[r][1]}zr.exports=Ns});var Hr=i((qp,$r)=>{var Ps=ae();function Es(e){return Ps(this.__data__,e)>-1}$r.exports=Es});var Ur=i((Tp,Gr)=>{var Is=ae();function As(e,t){var r=this.__data__,a=Is(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Gr.exports=As});var Br=i((wp,Rr)=>{var ks=Ir(),Ms=Fr(),Ds=Lr(),Fs=Hr(),zs=Ur();function B(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}B.prototype.clear=ks;B.prototype.delete=Ms;B.prototype.get=Ds;B.prototype.has=Fs;B.prototype.set=zs;Rr.exports=B});var Wr=i((jp,Kr)=>{var Vr=Pr(),Ls=Br(),$s=Pe();function Hs(){this.size=0,this.__data__={hash:new Vr,map:new($s||Ls),string:new Vr}}Kr.exports=Hs});var Xr=i((Op,Jr)=>{function Gs(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Jr.exports=Gs});var oe=i((Sp,Yr)=>{var Us=Xr();function Rs(e,t){var r=e.__data__;return Us(t)?r[typeof t=="string"?"string":"hash"]:r.map}Yr.exports=Rs});var Qr=i((Cp,Zr)=>{var Bs=oe();function Vs(e){var t=Bs(this,e).delete(e);return this.size-=t?1:0,t}Zr.exports=Vs});var ta=i((Np,ea)=>{var Ks=oe();function Ws(e){return Ks(this,e).get(e)}ea.exports=Ws});var aa=i((Pp,ra)=>{var Js=oe();function Xs(e){return Js(this,e).has(e)}ra.exports=Xs});var na=i((Ep,oa)=>{var Ys=oe();function Zs(e,t){var r=Ys(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}oa.exports=Zs});var sa=i((Ip,ia)=>{var Qs=Wr(),ec=Qr(),tc=ta(),rc=aa(),ac=na();function V(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}V.prototype.clear=Qs;V.prototype.delete=ec;V.prototype.get=tc;V.prototype.has=rc;V.prototype.set=ac;ia.exports=V});var pa=i((Ap,la)=>{var ca=sa(),oc="Expected a function";function ze(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(oc);var r=function(){var a=arguments,o=t?t.apply(this,a):a[0],n=r.cache;if(n.has(o))return n.get(o);var c=e.apply(this,a);return r.cache=n.set(o,c)||n,c};return r.cache=new(ze.Cache||ca),r}ze.Cache=ca;la.exports=ze});var da=i((kp,ua)=>{var nc=pa(),ic=500;function sc(e){var t=nc(e,function(a){return r.size===ic&&r.clear(),a}),r=t.cache;return t}ua.exports=sc});var ma=i((Mp,fa)=>{var cc=da(),lc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pc=/\\(\\)?/g,uc=cc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lc,function(r,a,o,n){t.push(o?n.replace(pc,"$1"):a||r)}),t});fa.exports=uc});var ga=i((Dp,ya)=>{function dc(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r<a;)o[r]=t(e[r],r,e);return o}ya.exports=dc});var qa=i((Fp,_a)=>{var ba=pe(),fc=ga(),mc=Z(),yc=de(),gc=1/0,va=ba?ba.prototype:void 0,ha=va?va.toString:void 0;function xa(e){if(typeof e=="string")return e;if(mc(e))return fc(e,xa)+"";if(yc(e))return ha?ha.call(e):"";var t=e+"";return t=="0"&&1/e==-gc?"-0":t}_a.exports=xa});var wa=i((zp,Ta)=>{var bc=qa();function vc(e){return e==null?"":bc(e)}Ta.exports=vc});var Oa=i((Lp,ja)=>{var hc=Z(),xc=gr(),_c=ma(),qc=wa();function Tc(e,t){return hc(e)?e:xc(e,t)?[e]:_c(qc(e))}ja.exports=Tc});var Ca=i(($p,Sa)=>{var wc=de(),jc=1/0;function Oc(e){if(typeof e=="string"||wc(e))return e;var t=e+"";return t=="0"&&1/e==-jc?"-0":t}Sa.exports=Oc});var Pa=i((Hp,Na)=>{var Sc=Oa(),Cc=Ca();function Nc(e,t){t=Sc(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[Cc(t[r++])];return r&&r==a?e:void 0}Na.exports=Nc});var Ia=i((Gp,Ea)=>{var Pc=Pa();function Ec(e,t,r){var a=e==null?void 0:Pc(e,t);return a===void 0?r:a}Ea.exports=Ec});var ql={};to(ql,{SellNFT:()=>Ra,Textarea:()=>Ua});module.exports=ro(ql);var h=require("react"),Te=require("@heroicons/react/20/solid"),Ga=require("@heroicons/react/24/outline"),qe=E(ue());var U={AI:"AI",Mint:"Mint"};var K=E(ue()),Aa=E(Ia());var ka=(e,t)=>{let{title:r,description:a,file:o}=t;if(e===U.AI){if((0,K.default)(a)||(0,K.default)(r)||(0,K.default)(o))return!1}else if((0,K.default)(a)||(0,K.default)(o))return!1;return!0},fe=e=>{let t=JSON.parse(e);return(0,Aa.default)(t,"signed",null)};var he=require("react"),ie=require("react"),O=E(require("react"),1);var Ic={data:""},Ac=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ic;var kc=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Mc=/\/\*[^]*?\*\/| +/g,Ma=/\n+/g,S=(e,t)=>{let r="",a="",o="";for(let n in e){let c=e[n];n[0]=="@"?n[1]=="i"?r=n+" "+c+";":a+=n[1]=="f"?S(c,n):n+"{"+S(c,n[1]=="k"?"":t)+"}":typeof c=="object"?a+=S(c,t?t.replace(/([^,])+/g,s=>n.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):n):c!=null&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=S.p?S.p(n,c):n+":"+c+";")}return r+(t&&o?t+"{"+o+"}":o)+a},j={},Da=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Da(e[r]);return t}return e},Dc=(e,t,r,a,o)=>{let n=Da(e),c=j[n]||(j[n]=(l=>{let u=0,f=11;for(;u<l.length;)f=101*f+l.charCodeAt(u++)>>>0;return"go"+f})(n));if(!j[c]){let l=n!==e?e:(u=>{let f,d,y=[{}];for(;f=kc.exec(u.replace(Mc,""));)f[4]?y.shift():f[3]?(d=f[3].replace(Ma," ").trim(),y.unshift(y[0][d]=y[0][d]||{})):y[0][f[1]]=f[2].replace(Ma," ").trim();return y[0]})(e);j[c]=S(o?{["@keyframes "+c]:l}:l,r?"":"."+c)}let s=r&&j.g?j.g:null;return r&&(j.g=j[c]),((l,u,f,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=f?l+u.data:u.data+l)})(j[c],t,a,s),c},Fc=(e,t,r)=>e.reduce((a,o,n)=>{let c=t[n];if(c&&c.call){let s=c(r),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;c=l?"."+l:s&&typeof s=="object"?s.props?"":S(s,""):s===!1?"":s}return a+o+(c??"")},"");function ne(e){let t=this||{},r=e.call?e(t.p):e;return Dc(r.unshift?r.raw?Fc(r,[].slice.call(arguments,1),t.p):r.reduce((a,o)=>Object.assign(a,o&&o.call?o(t.p):o),{}):r,Ac(t.target),t.g,t.o,t.k)}var Fa,Le,$e,Bp=ne.bind({g:1}),x=ne.bind({k:1});function za(e,t,r,a){S.p=t,Fa=e,Le=r,$e=a}function _(e,t){let r=this||{};return function(){let a=arguments;function o(n,c){let s=Object.assign({},n),l=s.className||o.className;r.p=Object.assign({theme:Le&&Le()},s),r.o=/ *go\d+/.test(l),s.className=ne.apply(r,a)+(l?" "+l:""),t&&(s.ref=c);let u=e;return e[0]&&(u=s.as||e,delete s.as),$e&&u[0]&&$e(s),Fa(u,s)}return t?t(o):o}}var k=E(require("react"),1);var C=E(require("react"),1),zc=e=>typeof e=="function",ve=(e,t)=>zc(e)?e(t):e,Lc=(()=>{let e=0;return()=>(++e).toString()})(),$a=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),$c=20,ye=new Map,Hc=1e3,La=e=>{if(ye.has(e))return;let t=setTimeout(()=>{ye.delete(e),M({type:4,toastId:e})},Hc);ye.set(e,t)},Gc=e=>{let t=ye.get(e);t&&clearTimeout(t)},He=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,$c)};case 1:return t.toast.id&&Gc(t.toast.id),{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case 2:let{toast:r}=t;return e.toasts.find(n=>n.id===r.id)?He(e,{type:1,toast:r}):He(e,{type:0,toast:r});case 3:let{toastId:a}=t;return a?La(a):e.toasts.forEach(n=>{La(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===a||a===void 0?{...n,visible:!1}:n)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(n=>({...n,pauseDuration:n.pauseDuration+o}))}}},ge=[],be={toasts:[],pausedAt:void 0},M=e=>{be=He(be,e),ge.forEach(t=>{t(be)})},Uc={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Rc=(e={})=>{let[t,r]=(0,he.useState)(be);(0,he.useEffect)(()=>(ge.push(r),()=>{let o=ge.indexOf(r);o>-1&&ge.splice(o,1)}),[t]);let a=t.toasts.map(o=>{var n,c;return{...e,...e[o.type],...o,duration:o.duration||((n=e[o.type])==null?void 0:n.duration)||e?.duration||Uc[o.type],style:{...e.style,...(c=e[o.type])==null?void 0:c.style,...o.style}}});return{...t,toasts:a}},Bc=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:r?.id||Lc()}),se=e=>(t,r)=>{let a=Bc(t,e,r);return M({type:2,toast:a}),a.id},q=(e,t)=>se("blank")(e,t);q.error=se("error");q.success=se("success");q.loading=se("loading");q.custom=se("custom");q.dismiss=e=>{M({type:3,toastId:e})};q.remove=e=>M({type:4,toastId:e});q.promise=(e,t,r)=>{let a=q.loading(t.loading,{...r,...r?.loading});return e.then(o=>(q.success(ve(t.success,o),{id:a,...r,...r?.success}),o)).catch(o=>{q.error(ve(t.error,o),{id:a,...r,...r?.error})}),e};var Vc=(e,t)=>{M({type:1,toast:{id:e,height:t}})},Kc=()=>{M({type:5,time:Date.now()})},Wc=e=>{let{toasts:t,pausedAt:r}=Rc(e);(0,ie.useEffect)(()=>{if(r)return;let n=Date.now(),c=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(n-s.createdAt);if(l<0){s.visible&&q.dismiss(s.id);return}return setTimeout(()=>q.dismiss(s.id),l)});return()=>{c.forEach(s=>s&&clearTimeout(s))}},[t,r]);let a=(0,ie.useCallback)(()=>{r&&M({type:6,time:Date.now()})},[r]),o=(0,ie.useCallback)((n,c)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:u}=c||{},f=t.filter(g=>(g.position||u)===(n.position||u)&&g.height),d=f.findIndex(g=>g.id===n.id),y=f.filter((g,N)=>N<d&&g.visible).length;return f.filter(g=>g.visible).slice(...s?[y+1]:[0,y]).reduce((g,N)=>g+(N.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:Vc,startPause:Kc,endPause:a,calculateOffset:o}}},Jc=x` | ||
from { | ||
@@ -9,3 +9,3 @@ transform: scale(0) rotate(45deg); | ||
opacity: 1; | ||
}`,Xl=x` | ||
}`,Xc=x` | ||
from { | ||
@@ -18,3 +18,3 @@ transform: scale(0); | ||
opacity: 1; | ||
}`,Yl=x` | ||
}`,Yc=x` | ||
from { | ||
@@ -27,3 +27,3 @@ transform: scale(0) rotate(90deg); | ||
opacity: 1; | ||
}`,Zl=w("div")` | ||
}`,Zc=_("div")` | ||
width: 20px; | ||
@@ -37,3 +37,3 @@ opacity: 0; | ||
animation: ${Jl} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) | ||
animation: ${Jc} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) | ||
forwards; | ||
@@ -45,3 +45,3 @@ animation-delay: 100ms; | ||
content: ''; | ||
animation: ${Xl} 0.15s ease-out forwards; | ||
animation: ${Xc} 0.15s ease-out forwards; | ||
animation-delay: 150ms; | ||
@@ -59,7 +59,7 @@ position: absolute; | ||
&:before { | ||
animation: ${Yl} 0.15s ease-out forwards; | ||
animation: ${Yc} 0.15s ease-out forwards; | ||
animation-delay: 180ms; | ||
transform: rotate(90deg); | ||
} | ||
`,Ql=x` | ||
`,Qc=x` | ||
from { | ||
@@ -71,3 +71,3 @@ transform: rotate(0deg); | ||
} | ||
`,ec=w("div")` | ||
`,el=_("div")` | ||
width: 12px; | ||
@@ -80,4 +80,4 @@ height: 12px; | ||
border-right-color: ${e=>e.primary||"#616161"}; | ||
animation: ${Ql} 1s linear infinite; | ||
`,tc=x` | ||
animation: ${Qc} 1s linear infinite; | ||
`,tl=x` | ||
from { | ||
@@ -90,3 +90,3 @@ transform: scale(0) rotate(45deg); | ||
opacity: 1; | ||
}`,rc=x` | ||
}`,rl=x` | ||
0% { | ||
@@ -105,3 +105,3 @@ height: 0; | ||
height: 10px; | ||
}`,ac=w("div")` | ||
}`,al=_("div")` | ||
width: 20px; | ||
@@ -115,3 +115,3 @@ opacity: 0; | ||
animation: ${tc} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) | ||
animation: ${tl} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) | ||
forwards; | ||
@@ -122,3 +122,3 @@ animation-delay: 100ms; | ||
box-sizing: border-box; | ||
animation: ${rc} 0.2s ease-out forwards; | ||
animation: ${rl} 0.2s ease-out forwards; | ||
opacity: 0; | ||
@@ -135,5 +135,5 @@ animation-delay: 200ms; | ||
} | ||
`,oc=w("div")` | ||
`,ol=_("div")` | ||
position: absolute; | ||
`,sc=w("div")` | ||
`,nl=_("div")` | ||
position: relative; | ||
@@ -145,3 +145,3 @@ display: flex; | ||
min-height: 20px; | ||
`,ic=x` | ||
`,il=x` | ||
from { | ||
@@ -154,3 +154,3 @@ transform: scale(0.6); | ||
opacity: 1; | ||
}`,nc=w("div")` | ||
}`,sl=_("div")` | ||
position: relative; | ||
@@ -160,11 +160,11 @@ transform: scale(0.6); | ||
min-width: 20px; | ||
animation: ${ic} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) | ||
animation: ${il} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) | ||
forwards; | ||
`,lc=({toast:e})=>{let{icon:t,type:r,iconTheme:a}=e;return t!==void 0?typeof t=="string"?k.createElement(nc,null,t):t:r==="blank"?null:k.createElement(sc,null,k.createElement(ec,{...a}),r!=="loading"&&k.createElement(oc,null,r==="error"?k.createElement(Zl,{...a}):k.createElement(ac,{...a})))},cc=e=>` | ||
`,cl=({toast:e})=>{let{icon:t,type:r,iconTheme:a}=e;return t!==void 0?typeof t=="string"?k.createElement(sl,null,t):t:r==="blank"?null:k.createElement(nl,null,k.createElement(el,{...a}),r!=="loading"&&k.createElement(ol,null,r==="error"?k.createElement(Zc,{...a}):k.createElement(al,{...a})))},ll=e=>` | ||
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} | ||
100% {transform: translate3d(0,0,0) scale(1); opacity:1;} | ||
`,pc=e=>` | ||
`,pl=e=>` | ||
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} | ||
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} | ||
`,uc="0%{opacity:0;} 100%{opacity:1;}",dc="0%{opacity:1;} 100%{opacity:0;}",fc=w("div")` | ||
`,ul="0%{opacity:0;} 100%{opacity:1;}",dl="0%{opacity:1;} 100%{opacity:0;}",fl=_("div")` | ||
display: flex; | ||
@@ -181,3 +181,3 @@ align-items: center; | ||
border-radius: 8px; | ||
`,mc=w("div")` | ||
`,ml=_("div")` | ||
display: flex; | ||
@@ -189,3 +189,3 @@ justify-content: center; | ||
white-space: pre-line; | ||
`,yc=(e,t)=>{let r=e.includes("top")?1:-1,[a,o]=$a()?[uc,dc]:[cc(r),pc(r)];return{animation:t?`${x(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${x(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},gc=O.memo(({toast:e,position:t,style:r,children:a})=>{let o=e.height?yc(e.position||t||"top-center",e.visible):{opacity:0},s=O.createElement(lc,{toast:e}),l=O.createElement(mc,{...e.ariaProps},be(e.message,e));return O.createElement(fc,{className:e.className,style:{...o,...r,...e.style}},typeof a=="function"?a({icon:s,message:l}):O.createElement(O.Fragment,null,s,l))});za(C.createElement);var hc=({id:e,className:t,style:r,onHeightUpdate:a,children:o})=>{let s=C.useCallback(l=>{if(l){let n=()=>{let c=l.getBoundingClientRect().height;a(e,c)};n(),new MutationObserver(n).observe(l,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return C.createElement("div",{ref:s,className:t,style:r},o)},bc=(e,t)=>{let r=e.includes("top"),a=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:$a()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...a,...o}},vc=se` | ||
`,yl=(e,t)=>{let r=e.includes("top")?1:-1,[a,o]=$a()?[ul,dl]:[ll(r),pl(r)];return{animation:t?`${x(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${x(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},gl=O.memo(({toast:e,position:t,style:r,children:a})=>{let o=e.height?yl(e.position||t||"top-center",e.visible):{opacity:0},n=O.createElement(cl,{toast:e}),c=O.createElement(ml,{...e.ariaProps},ve(e.message,e));return O.createElement(fl,{className:e.className,style:{...o,...r,...e.style}},typeof a=="function"?a({icon:n,message:c}):O.createElement(O.Fragment,null,n,c))});za(C.createElement);var bl=({id:e,className:t,style:r,onHeightUpdate:a,children:o})=>{let n=C.useCallback(c=>{if(c){let s=()=>{let l=c.getBoundingClientRect().height;a(e,l)};s(),new MutationObserver(s).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return C.createElement("div",{ref:n,className:t,style:r},o)},vl=(e,t)=>{let r=e.includes("top"),a=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:$a()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...a,...o}},hl=ne` | ||
z-index: 9999; | ||
@@ -195,2 +195,2 @@ > * { | ||
} | ||
`,me=16,xe=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:a,children:o,containerStyle:s,containerClassName:l})=>{let{toasts:n,handlers:c}=Wl(r);return C.createElement("div",{style:{position:"fixed",zIndex:9999,top:me,left:me,right:me,bottom:me,pointerEvents:"none",...s},className:l,onMouseEnter:c.startPause,onMouseLeave:c.endPause},n.map(u=>{let f=u.position||t,d=c.calculateOffset(u,{reverseOrder:e,gutter:a,defaultPosition:t}),y=bc(f,d);return C.createElement(hc,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?vc:"",style:y},u.type==="custom"?be(u.message,u):o?o(u):C.createElement(gc,{toast:u,position:f}))}))},D=q;var F=require("@headlessui/react"),we=require("react"),b=require("react/jsx-runtime");function le(e){let{isOpen:t,setIsOpen:r,qrCode:a}=e;function o(){r(!1)}return(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(F.Transition,{appear:!0,show:t,as:we.Fragment,children:(0,b.jsxs)(F.Dialog,{as:"div",className:"nftvyapar-modal-container",onClose:o,children:[(0,b.jsx)(F.Transition.Child,{as:we.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,b.jsx)("div",{className:"nftvyapar-modal-container__child-1"})}),(0,b.jsx)("div",{className:"nftvyapar-modal-container__child-2",children:(0,b.jsx)("div",{className:"nftvyapar-modal-container__child-3",children:(0,b.jsx)(F.Transition.Child,{as:we.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,b.jsx)(F.Dialog.Panel,{className:"nftvyapar-modal-container__panel",children:(0,b.jsx)("div",{className:"nftvyapar-modal-container__panel-img-container",children:(0,b.jsx)("img",{className:"nftvyapar-modal-container__panel-img-container-block",src:a})})})})})})]})})})}var p=require("react/jsx-runtime"),Ha={name:"",base64String:""},xc={uuid:"",refs:{qr_png:"",websocket_status:""},imageUrl:""};function Ua(e){let{callbackUrl:t,callbackFn:r}=e,a=(0,v.useRef)(null),o=(0,v.useRef)(null),[s,l]=(0,v.useState)(!1),[n,c]=(0,v.useState)(!1),[u,f]=(0,v.useState)(Ha),[d,y]=(0,v.useState)(xc),[g,N]=(0,v.useState)(!1),Ba=()=>{o.current&&(o.current.value=""),a.current&&(a.current.value=""),f(Ha)};(0,v.useEffect)(()=>{if(!(0,qe.default)(d?.refs?.websocket_status)){let h=new WebSocket(d.refs.websocket_status);h.addEventListener("open",T=>{console.log("WebSocket connection established")}),h.addEventListener("message",T=>{let P=fe(T.data);P!==null&&(P?(D.success("nft created successfully!"),r(d)):D.error("something went wrong..."),l(!1),N(!1),h.close())}),h.addEventListener("error",T=>{l(!1)}),h.addEventListener("close",T=>{l(!1)})}},[d]);let Va=(0,v.useMemo)(()=>{let h="inline-flex items-center rounded-md bg-gray-800 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-600";return s?`transition ease-in-out duration-150 cursor-not-allowed ${h}`:h},[s]),Ka=(0,v.useCallback)(h=>{let T=new FileReader;T.onload=async function(){let P=T?.result;f({name:h.target.files[0].name,base64String:P.split(",")[1]})},T.readAsDataURL(h.target.files[0])},[u]),Wa=async()=>{l(!0);let h=n?U.AI:U.Mint,T=o?.current?.value??"",P=a?.current?.value??"",Ue=u.base64String;if(ka(h,{title:P,description:T,file:Ue})){let J=new FormData;J.append("title",P),J.append("file",Ue),J.append("description",T),J.append("option",h);let Ja=await(await fetch(t,{method:"POST",body:J})).json();Ba(),y(Ja),N(!0)}else D.error("Required fields are missing..."),l(!1)};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(xe,{}),(0,p.jsxs)("div",{className:"relative",children:[(0,p.jsxs)("div",{className:"overflow-hidden rounded-lg border border-gray-300 shadow-sm focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[(0,p.jsx)("label",{htmlFor:"title",className:"sr-only",children:"Title"}),(0,p.jsx)("input",{type:"text",name:"title",id:"title",className:"block w-full border-0 pt-2.5 text-lg font-medium placeholder:text-gray-400 focus:ring-0",placeholder:"Title",ref:a}),(0,p.jsx)("label",{htmlFor:"description",className:"sr-only",children:"Description"}),(0,p.jsx)("textarea",{rows:2,name:"description",id:"description",className:"block w-full resize-none border-0 py-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"Write a description...",ref:o}),(0,p.jsxs)("div",{"aria-hidden":"true",className:"bg-white",children:[(0,p.jsx)("div",{className:"py-2",children:(0,p.jsx)("div",{className:"h-9"})}),(0,p.jsx)("div",{className:"h-px"}),(0,p.jsx)("div",{className:"py-2",children:(0,p.jsx)("div",{className:"py-px",children:(0,p.jsx)("div",{className:"h-9"})})})]})]}),(0,p.jsxs)("div",{className:"absolute inset-x-px bottom-0",children:[(0,p.jsx)("div",{className:"flex flex-nowrap justify-end space-x-2 py-2 px-2 sm:px-3",children:(0,p.jsxs)("button",{type:"button",className:"group -my-2 -ml-2 inline-flex items-center rounded-full px-3 py-2 text-left text-gray-400",onClick:()=>c(!n),children:[n?(0,p.jsx)(Te.BoltIcon,{className:"-ml-1 mr-2 h-5 w-5 text-yellow-500 group-hover:text-yellow-200","aria-hidden":"true"}):(0,p.jsx)(Ga.BoltIcon,{className:"-ml-1 mr-2 h-5 w-5 group-hover:text-yellow-200"}),U.AI]})}),(0,p.jsxs)("div",{className:"flex items-center justify-between space-x-3 border-t border-gray-200 px-2 py-2 sm:px-3",children:[(0,p.jsx)("div",{className:"flex",children:(0,p.jsxs)("button",{type:"button",className:"group -my-2 -ml-2 inline-flex items-center rounded-full px-3 py-2 text-left text-gray-400",children:[(0,p.jsx)(Te.PaperClipIcon,{className:"-ml-1 mr-2 h-5 w-5 group-hover:text-gray-500","aria-hidden":"true"}),(0,p.jsxs)("label",{htmlFor:"input-attach-file",className:"cursor-pointer text-sm italic text-gray-500 group-hover:text-gray-600",onChange:h=>Ka(h),children:[(0,qe.default)(u.name)?"Attach a file":u.name,(0,p.jsx)("input",{id:"input-attach-file",className:"hidden",type:"file"})]})]})}),(0,p.jsx)("div",{className:"flex-shrink-0",children:(0,p.jsx)("button",{onClick:()=>Wa(),className:Va,disabled:s,children:s?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,p.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,p.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Creating..."]}):"Create"})})]})]})]}),!(0,qe.default)(d.refs.qr_png)&&(0,p.jsx)(le,{isOpen:g,setIsOpen:N,qrCode:d.refs.qr_png})]})}var W=require("react"),Ge=E(ue());var z=require("react/jsx-runtime"),wc={uuid:"",refs:{qr_png:"",websocket_status:""}};function Ra(e){let{callbackUrl:t,callbackFn:r,address:a,destinationAddress:o,tokenId:s,description:l}=e,[n,c]=(0,W.useState)(wc),[u,f]=(0,W.useState)(!1);return(0,W.useEffect)(()=>{(async()=>{let d=new FormData;d.append("address",a),d.append("destinationAddress",o),d.append("tokenId",s),d.append("description",l);let g=await(await fetch(t,{method:"POST",body:d})).json();c(g),f(!0)})()},[]),(0,W.useEffect)(()=>{if(!(0,Ge.default)(n?.refs?.websocket_status)){let d=new WebSocket(n.refs.websocket_status);d.addEventListener("open",y=>{console.log("WebSocket connection established")}),d.addEventListener("message",y=>{let g=fe(y.data);g!==null&&(g?(D.success("sell offer created successfully!"),r(n)):D.error("something went wrong..."),f(!1),d.close())}),d.addEventListener("error",y=>{f(!1)}),d.addEventListener("close",y=>{f(!1)})}},[n]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(xe,{}),!(0,Ge.default)(n.refs.qr_png)&&(0,z.jsx)(le,{isOpen:u,setIsOpen:f,qrCode:n.refs.qr_png})]})}0&&(module.exports={SellNFT,Textarea}); | ||
`,me=16,xe=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:a,children:o,containerStyle:n,containerClassName:c})=>{let{toasts:s,handlers:l}=Wc(r);return C.createElement("div",{style:{position:"fixed",zIndex:9999,top:me,left:me,right:me,bottom:me,pointerEvents:"none",...n},className:c,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(u=>{let f=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:a,defaultPosition:t}),y=vl(f,d);return C.createElement(bl,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?hl:"",style:y},u.type==="custom"?ve(u.message,u):o?o(u):C.createElement(gl,{toast:u,position:f}))}))},D=q;var F=require("@headlessui/react"),_e=require("react");var v=require("react/jsx-runtime");function ce(e){let{isOpen:t,setIsOpen:r,qrCode:a}=e;function o(){r(!1)}return(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(F.Transition,{appear:!0,show:t,as:_e.Fragment,children:(0,v.jsxs)(F.Dialog,{as:"div",className:"nftvyapar-modal-container",onClose:o,children:[(0,v.jsx)(F.Transition.Child,{as:_e.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,v.jsx)("div",{className:"nftvyapar-modal-container__child-1"})}),(0,v.jsx)("div",{className:"nftvyapar-modal-container__child-2",children:(0,v.jsx)("div",{className:"nftvyapar-modal-container__child-3",children:(0,v.jsx)(F.Transition.Child,{as:_e.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,v.jsx)(F.Dialog.Panel,{className:"nftvyapar-modal-container__panel",children:(0,v.jsx)("div",{className:"nftvyapar-modal-container__panel-img-container",children:(0,v.jsx)("img",{className:"nftvyapar-modal-container__panel-img-container-block",src:a})})})})})})]})})})}var p=require("react/jsx-runtime"),Ha={name:"",base64String:""},xl={uuid:"",refs:{qr_png:"",websocket_status:""},imageUrl:""};function Ua(e){let{callbackUrl:t,callbackFn:r}=e,a=(0,h.useRef)(null),o=(0,h.useRef)(null),[n,c]=(0,h.useState)(!1),[s,l]=(0,h.useState)(!1),[u,f]=(0,h.useState)(Ha),[d,y]=(0,h.useState)(xl),[g,N]=(0,h.useState)(!1),Ba=()=>{o.current&&(o.current.value=""),a.current&&(a.current.value=""),f(Ha)};(0,h.useEffect)(()=>{if(!(0,qe.default)(d?.refs?.websocket_status)){let b=new WebSocket(d.refs.websocket_status);b.addEventListener("open",T=>{console.log("WebSocket connection established")}),b.addEventListener("message",T=>{let P=fe(T.data);P!==null&&(P?(D.success("nft created successfully!"),r(d)):D.error("something went wrong..."),c(!1),N(!1),b.close())}),b.addEventListener("error",T=>{c(!1)}),b.addEventListener("close",T=>{c(!1)})}},[d]);let Va=(0,h.useMemo)(()=>{let b="nftvyapar-textarea-container__sub-controllers-block-create-button";return n?`nftvyapar-textarea-container__sub-controllers-block-create-button-with-loading ${b}`:b},[n]),Ka=(0,h.useCallback)(b=>{let T=new FileReader;T.onload=async function(){let P=T?.result;f({name:b.target.files[0].name,base64String:P.split(",")[1]})},T.readAsDataURL(b.target.files[0])},[u]),Wa=async()=>{c(!0);let b=s?U.AI:U.Mint,T=o?.current?.value??"",P=a?.current?.value??"",Ue=u.base64String;if(ka(b,{title:P,description:T,file:Ue})){let J=new FormData;J.append("title",P),J.append("file",Ue),J.append("description",T),J.append("option",b);let Ja=await(await fetch(t,{method:"POST",body:J})).json();Ba(),y(Ja),N(!0)}else D.error("Required fields are missing..."),c(!1)};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(xe,{}),(0,p.jsxs)("div",{className:"nftvyapar-textarea-container",children:[(0,p.jsxs)("div",{className:"nftvyapar-textarea-container__inputs",children:[(0,p.jsx)("label",{htmlFor:"title",className:"nftvyapar-textarea-container__input--label",children:"Title"}),(0,p.jsx)("input",{type:"text",name:"title",id:"title",className:"nftvyapar-textarea-container__input-title",placeholder:"Title",ref:a}),(0,p.jsx)("label",{htmlFor:"description",className:"nftvyapar-textarea-container__input--label",children:"Description"}),(0,p.jsx)("textarea",{rows:2,name:"description",id:"description",className:"nftvyapar-textarea-container__input-description",placeholder:"Write a description...",ref:o}),(0,p.jsxs)("div",{"aria-hidden":"true",className:"nftvyapar-textarea-container__elements",children:[(0,p.jsx)("div",{className:"nftvyapar-textarea-container__element-1",children:(0,p.jsx)("div",{className:"nftvyapar-textarea-container__inner-1"})}),(0,p.jsx)("div",{className:"nftvyapar-textarea-container__element-2"}),(0,p.jsx)("div",{className:"nftvyapar-textarea-container__element-1",children:(0,p.jsx)("div",{className:"nftvyapar-textarea-container__inner-2",children:(0,p.jsx)("div",{className:"nftvyapar-textarea-container__inner-1"})})})]})]}),(0,p.jsxs)("div",{className:"nftvyapar-textarea-container__controllers",children:[(0,p.jsx)("div",{className:"nftvyapar-textarea-container__option-mode",children:(0,p.jsxs)("button",{type:"button",className:"group nftvyapar-textarea-container__option-button",onClick:()=>l(!s),children:[s?(0,p.jsx)(Te.BoltIcon,{className:"nftvyapar-textarea-container__option-button--bolt-icon","aria-hidden":"true"}):(0,p.jsx)(Ga.BoltIcon,{className:"nftvyapar-textarea-container__option-button--outline-bolt-icon"}),U.AI]})}),(0,p.jsxs)("div",{className:"nftvyapar-textarea-container__sub-controllers",children:[(0,p.jsx)("div",{className:"nftvyapar-textarea-container__sub-controllers-block",children:(0,p.jsxs)("button",{type:"button",className:"group nftvyapar-textarea-container__sub-controllers-block--paperclip-button",children:[(0,p.jsx)(Te.PaperClipIcon,{className:"nftvyapar-textarea-container__sub-controllers-block--paperclip-button--icon group-hover:text-gray-500","aria-hidden":"true"}),(0,p.jsxs)("label",{htmlFor:"input-attach-file",className:"nftvyapar-textarea-container__sub-controllers-block-input-attach",onChange:b=>Ka(b),children:[(0,qe.default)(u.name)?"Attach a file":u.name,(0,p.jsx)("input",{id:"input-attach-file",className:"nftvyapar-textarea-container__sub-controllers-block-input-attach-hide-input",type:"file"})]})]})}),(0,p.jsx)("div",{className:"nftvyapar-textarea-container__sub-controllers-block-mint",children:(0,p.jsx)("button",{onClick:()=>Wa(),className:Va,disabled:n,children:n?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("svg",{className:"nftvyapar-textarea-container__sub-controllers-block-mint--animate-icon",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,p.jsx)("circle",{className:"nftvyapar-textarea-container__sub-controllers-block-mint--animate-circle-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,p.jsx)("path",{className:"nftvyapar-textarea-container__sub-controllers-block-mint--animate-circle-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Creating..."]}):"Create"})})]})]})]}),!(0,qe.default)(d.refs.qr_png)&&(0,p.jsx)(ce,{isOpen:g,setIsOpen:N,qrCode:d.refs.qr_png})]})}var W=require("react"),Ge=E(ue());var z=require("react/jsx-runtime"),_l={uuid:"",refs:{qr_png:"",websocket_status:""}};function Ra(e){let{callbackUrl:t,callbackFn:r,address:a,destinationAddress:o,tokenId:n,description:c}=e,[s,l]=(0,W.useState)(_l),[u,f]=(0,W.useState)(!1);return(0,W.useEffect)(()=>{(async()=>{let d=new FormData;d.append("address",a),d.append("destinationAddress",o),d.append("tokenId",n),d.append("description",c);let g=await(await fetch(t,{method:"POST",body:d})).json();l(g),f(!0)})()},[]),(0,W.useEffect)(()=>{if(!(0,Ge.default)(s?.refs?.websocket_status)){let d=new WebSocket(s.refs.websocket_status);d.addEventListener("open",y=>{console.log("WebSocket connection established")}),d.addEventListener("message",y=>{let g=fe(y.data);g!==null&&(g?(D.success("sell offer created successfully!"),r(s)):D.error("something went wrong..."),f(!1),d.close())}),d.addEventListener("error",y=>{f(!1)}),d.addEventListener("close",y=>{f(!1)})}},[s]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(xe,{}),!(0,Ge.default)(s.refs.qr_png)&&(0,z.jsx)(ce,{isOpen:u,setIsOpen:f,qrCode:s.refs.qr_png})]})}0&&(module.exports={SellNFT,Textarea}); |
{ | ||
"name": "nft-vyapar-kit", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86820
650