PageSourceSearch

https://lovechain.vercel.app/static/js/545.96b5a41c.chunk.js

js lovechain.vercel.app collected 2026-10-03 07:15:39 UTC 9,520 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunklovechain=self.webpackChunklovechain||[]).push([[545],{14100:function(t,r,e){var n=e(70885),i=e(71233),o=e(61486),a=e(37881);r.Z=function(t){var r=t.state,e=t.onClick,l=t.actionButtonMobile,s=t.actionButtonDesktop,u=t.title,f=t.children,m=(0,i.useState)(!1),d=(0,n.Z)(m,2);return d[0],d[1],(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(o.Modal,{isOpen:r,onClose:e,children:[(0,a.jsx)(o.ModalHeader,{children:u}),(0,a.jsx)(o.ModalBody,{children:f}),(0,a.jsxs)(o.ModalFooter,{children:[(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)(o.Button,{layout:"outline",onClick:e,children:"Cancel"})}),s,(0,a.jsx)("div",{className:"block w-full sm:hidden",children:(0,a.jsx)(o.Button,{block:!0,size:"large",layout:"outline",onClick:e,children:"Cancel"})}),l]})]})})}},81671:function(t,r,e){e(71233);var n=e(37881);r.Z=function(t){var r=t.children;return(0,n.jsx)("h1",{className:"my-6 text-2xl font-semibold text-gray-700 dark:text-gray-200",children:r})}},12545:function(t,r,e){e.r(r),e.d(r,{default:function(){return m}});var n=e(74165),i=e(15861),o=e(70885),a=e(71233),l=(e(14100),e(81671)),s=(e(61486),e(57394)),u=e(4406),f=e(37881);function m(){var t=(0,a.useContext)(s.V),r=(t.address,t.signer),e=(t.connect,t.contract,t.provider,(0,a.useState)([])),m=(0,o.Z)(e,2),d=m[0],c=m[1];function h(){return(h=(0,i.Z)((0,n.Z)().mark((function t(){var e;return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===r||void 0===r?void 0:r.fetchMyNFTs();case 2:e=t.sent,c(e),console.log("nft ----------",e);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return(0,a.useEffect)((function(){!function(){h.apply(this,arguments)}()}),[r]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Z,{children:" My Assets"}),(0,f.jsx)("div",{className:"w-max"}),(0,f.jsx)("div",{className:" grid md:grid-cols-3 grid-col-2 lg:grid-cols-4 gap-3 ",children:null===d||void 0===d?void 0:d.map((function(t,r){var e;return(0,f.jsx)("div",{children:(0,f.jsxs)("div",{class:"block overflow-hidden border border-gray-100 rounded-lg shadow-sm",href:"",children:[(0,f.jsx)("img",{class:"object-cover w-full h-56",src:t.image,alt:""}),(0,f.jsxs)("div",{class:"p-4",children:[(0,f.jsx)("div",{className:"flex flex-row items-center justify-between",children:(0,f.jsx)("h5",{class:"text-xl font-bold dark:text-white",children:t.name})}),(0,f.jsxs)("h5",{class:"text-md font-bold w-9/12 dark:text-white text-white rounded-full px-1 bg-yellow-300 ",children:[u.dF(null===t||void 0===t||null===(e=t.price)||void 0===e?void 0:e.toString()),"tFIL"]}),(0,f.jsx)("p",{class:"mt-1 text-sm dark:text-gray-200 text-gray-500",children:t.description})]})]})})}))})]})}},4406:function(t,r,e){e.d(r,{dF:function(){return j},vz:function(){return _}});var n=e(15671),i=e(43144),o=e(53237),a=e(79094),l=e(40164),s=e(96812),u=new a.Yd(l.i),f={},m=s.O$.from(0),d=s.O$.from(-1);function c(t,r,e,n){var i={fault:r,operation:e};return void 0!==n&&(i.value=n),u.throwError(t,a.Yd.errors.NUMERIC_FAULT,i)}for(var h="0";h.length<256;)h+=h;function v(t){if("number"!==typeof t)try{t=s.O$.from(t).toNumber()}catch(r){}return"number"===typeof t&&t>=0&&t<=256&&!(t%1)?"1"+h.substring(0,t):u.throwArgumentError("invalid decimal size","decimals",t)}function g(t,r){null==r&&(r=0);var e=v(r),n=(t=s.O$.from(t)).lt(m);n&&(t=t.mul(d));for(var i=t.mod(e).toString();i.length<e.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];var o=t.div(e).toString();return t=1===e.length?o:o+"."+i,n&&(t="-"+t),t}function x(t,r){null==r&&(r=0);var e=v(r);"string"===typeof t&&t.match(/^-?[0-9.]+$/)||u.throwArgumentError("invalid decimal value","value",t);var n="-"===t.substring(0,1);n&&(t=t.substring(1)),"."===t&&u.throwArgumentError("missing value","value",t);var i=t.split(".");i.length>2&&u.throwArgumentError("too many decimal points","value",t);var o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>e.length-1&&c("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length<e.length-1;)a+="0";var l=s.O$.from(o),f=s.O$.from(a),m=l.mul(e).add(f);return n&&(m=m.mul(d)),m}
1var w=function(){function t(r,e,i,o){(0,n.Z)(this,t),r!==f&&u.throwError("cannot use FixedFormat constructor; use FixedFormat.from",a.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=e,this.width=i,this.decimals=o,this.name=(e?"":"u")+"fixed"+String(i)+"x"+String(o),this._multiplier=v(o),Object.freeze(this)}return(0,i.Z)(t,null,[{key:"from",value:function(r){if(r instanceof t)return r;"number"===typeof r&&(r="fixed128x".concat(r));var e=!0,n=128,i=18;if("string"===typeof r)if("fixed"===r);else if("ufixed"===r)e=!1;else{var o=r.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);o||u.throwArgumentError("invalid fixed format","format",r),e="u"!==o[1],n=parseInt(o[2]),i=parseInt(o[3])}else if(r){var a=function(t,e,n){return null==r[t]?n:(typeof r[t]!==e&&u.throwArgumentError("invalid fixed format ("+t+" not "+e+")","format."+t,r[t]),r[t])};e=a("signed","boolean",e),n=a("width","number",n),i=a("decimals","number",i)}return n%8&&u.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&u.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new t(f,e,n,i)}}]),t}(),y=function(){function t(r,e,i,o){(0,n.Z)(this,t),r!==f&&u.throwError("cannot use FixedNumber constructor; use FixedNumber.from",a.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=o,this._hex=e,this._value=i,this._isFixedNumber=!0,Object.freeze(this)}return(0,i.Z)(t,[{key:"_checkFormat",value:function(t){this.format.name!==t.format.name&&u.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}},{key:"addUnsafe",value:function(r){this._checkFormat(r);var e=x(this._value,this.format.decimals),n=x(r._value,r.format.decimals);return t.fromValue(e.add(n),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(r){this._checkFormat(r);var e=x(this._value,this.format.decimals),n=x(r._value,r.format.decimals);return t.fromValue(e.sub(n),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(r){this._checkFormat(r);var e=x(this._value,this.format.decimals),n=x(r._value,r.format.decimals);return t.fromValue(e.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(r){this._checkFormat(r);var e=x(this._value,this.format.decimals),n=x(r._value,r.format.decimals);return t.fromValue(e.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}},{key:"floor",value:function(){var r=this.toString().split(".");1===r.length&&r.push("0");var e=t.from(r[0],this.format),n=!r[1].match(/^(0*)$/);return this.isNegative()&&n&&(e=e.subUnsafe(p.toFormat(e.format))),e}},{key:"ceiling",value:function(){var r=this.toString().split(".");1===r.length&&r.push("0");var e=t.from(r[0],this.format),n=!r[1].match(/^(0*)$/);return!this.isNegative()&&n&&(e=e.addUnsafe(p.toFormat(e.format))),e}},{key:"round",value:function(r){null==r&&(r=0);var e=this.toString().split(".");if(1===e.length&&e.push("0"),(r<0||r>80||r%1)&&u.throwArgumentError("invalid decimal count","decimals",r),e[1].length<=r)return this;var n=t.from("1"+h.substring(0,r),this.format),i=b.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(t){if(null==t)return this._hex;t%8&&u.throwArgumentError("invalid byte width","width",t);var r=s.O$.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return(0,o.$m)(r,t/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(r){return t.fromString(this._value,r)}}],[{key:"fromValue",value:function(r,e,n){return null!=n||null==e||(0,s.Zm)(e)||(n=e,e=null),null==e&&(e=0),null==n&&(n="fixed"),t.fromString(g(r,e),w.from(n))}},{key:"fromString",value:function(r,e){null==e&&(e="fixed");var n=w.from(e),i=x(r,n.decimals);!n.signed&&i.lt(m)&&c("unsigned value cannot be negative","overflow","value",r);var a=null;n.signed?a=i.toTwos(n.width).toHexString():(a=i.toHexString(),a=(0,o.$m)(a,n.width/8));var l=g(i,n.decimals);return new t(f,a,l,n)}},{key:"fromBytes",value:function(r,e){null==e&&(e="fixed");var n=w.from(e);if((0,o.lE)(r).length>n.width/8)throw new Error("overflow");var i=s.O$.from(r);n.signed&&(i=i.fromTwos(n.width));var a=i.toTwos((n.signed?0:1)+n.width).toHexString(),l=g(i,n.decimals);return new t(f,a,l,n)}},{key:"from",value:function(r,e){if("string"===typeof r)return t.fromString(r,e);if((0,o._t)(r))return t.fromBytes(r,e);try{return t.fromValue(r,0,e)}catch(n){if(n.code!==a.Yd.errors.INVALID_ARGUMENT)throw n}return u.throwArgumentError("invalid FixedNumber value","value",r)}},{key:"isFixedNumber",value:function(t){return!(!t||!t._isFixedNumber)}}]),t}(),p=y.from(1),b=y.from("0.5"),k=new a.Yd("units/5.7.0"),F=["wei","kwei","mwei","gwei","szabo","finney","ether"];function _(t,r){if("string"!==typeof t&&k.throwArgumentError("value must be a string","value",t),"string"===typeof r){var e=F.indexOf(r);-1!==e&&(r=3*e)}return x(t,null!=r?r:18)}function j(t){return function(t,r){if("string"===typeof r){var e=F.indexOf(r);-1!==e&&(r=3*e)}return g(t,null!=r?r:18)}(t,18)}}}]);
2//# sourceMappingURL=545.96b5a41c.chunk.js.map

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.