PageSourceSearch

https://www.knightsdefi.com/static/js/23.02ee8de5.chunk.js

js knightsdefi.com collected 2026-10-08 10:14:14 UTC 7,717 bytes, 2 lines download raw bytes

1(this["webpackJsonppancake-frontend"]=this["webpackJsonppancake-frontend"]||[]).push([[23],{1706:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return Y}));var r,a,c,i,s,o,d,l,b,j,u,p=t(19),h=t(0),x=t.n(h),m=t(44),O=t(4),f=t(16),g=t(22),v=t(274),y=t(154),k=t(1),w=t.n(k),B=t(5),S=t(26),N=t(23),C=t(273),F=t(202),G=t(28),M=t(266),T=t(2),z=O.e.div(r||(r=Object(p.a)(["\n  background-color: ",";\n  position: relative;\n  width: 100%;\n  overflow: hidden;\n  padding-bottom: 100%;\n"])),(function(e){return e.theme.colors.borderColor})),H=O.e.img(a||(a=Object(p.a)(["\n  position: absolute;\n  width: 100%;\n  top: 0;\n  left: 0;\n  transition: opacity 1s linear;\n  height: 100%;\n  object-fit: cover;\n"]))),A=function(e){var n=e.src,t=e.alt,r=Object(T.jsx)(H,{src:n,alt:t});return Object(T.jsx)(z,{children:r})},L=(O.e.div(c||(c=Object(p.a)(["\n  margin-top: 24px;\n"]))),Object(O.e)(f.r)(i||(i=Object(p.a)(["\n  box-shadow: none;\n  width: 64px;\n  margin: 0 8px;\n  padding: 0 8px;\n\n  "," {\n    width: 64px;\n  }\n\n  "," {\n    width: 64px;\n  }\n"])),(function(e){return e.theme.mediaQueries.xs}),(function(e){return e.theme.mediaQueries.sm}))),P=Object(O.f)(s||(s=Object(p.a)(["\n\t0% {\n\t\tbackground-position: 0% 50%;\n\t}\n\t50% {\n\t\tbackground-position: 100% 50%;\n\t}\n\t100% {\n\t\tbackground-position: 0% 50%;\n\t}\n"]))),_=(O.e.div(o||(o=Object(p.a)(["\n background: linear-gradient(\n    -45deg,\n    #ff738e,\n    #e4536f 20%,\n    #a34054 40%,\n    #b7eaff 60%,\n    #92cee7 80%,\n    #5dc4d9 100%\n  );\n  background-size: 300% 300%;\n  animation: "," 2s linear infinite;\n  border-radius: 16px;\n  filter: blur(8px);\n  position: absolute;\n  display: none;\n  top: -2px;\n  right: -2px;\n  bottom: -2px;\n  left: -2px;\n  z-index: -1;\n"])),P),O.e.div(d||(d=Object(p.a)(["\n  align-self: baseline;\n  background: ",";\n  border-radius: 32px;\n  box-shadow: 0px 2px 12px -8px rgba(25, 19, 38, 0.1), 0px 1px 1px rgba(25, 19, 38, 0.05);\n  display: flex;\n  flex-direction: column;\n  justify-content: space-around;\n  padding: 24px;\n  position: relative;\n  text-align: center;\n"])),(function(e){return e.theme.card.background}))),I=O.e.div(l||(l=Object(p.a)(["\n  background-color: ",";\n  height: 1px;\n  margin: 28px auto;\n  width: 100%;\n"])),(function(e){return e.theme.colors.borderColor})),J=(O.e.div(b||(b=Object(p.a)(["\n  height: ",";\n  overflow: hidden;\n"])),(function(e){return e.expanded?"100%":"0px"})),O.e.div(j||(j=Object(p.a)(["\n  align-items: center;\n  color: ",";\n  display: flex;\n  margin-left: auto;\n  margin-right: auto;\n  width: 100%;\n  justify-content: center;\n  padding: 8px 0;\n  ul {\n    margin: 0;\n    padding: 0;\n    list-style-type: none;\n    font-size: 16px;\n    li {\n      margin-bottom: 4px;\n    }\n  }\n"])),(function(e){return e.theme.colors.primary}))),Q=function(e){e.ethereum;var n=e.account,t=x.a.useState(0),r=Object(S.a)(t,2),a=r[0],c=r[1],i=x.a.useState(0),s=Object(S.a)(i,2),o=s[0],d=s[1],l=x.a.useState(0),b=Object(S.a)(l,2),j=b[0],u=b[1],p=x.a.useState(0),m=Object(S.a)(p,2),O=m[0],g=m[1],v=x.a.useState(!1),y=Object(S.a)(v,2),k=y[0],z=y[1],H=x.a.useState(1),P=Object(S.a)(H,2),Q=P[0],V=P[1],Y=x.a.useState(!1),E=Object(S.a)(Y,2),R=E[0],q=E[1],D=Object(G.d)(),K=Object(N.b)(),U=Object(C.a)(),W=Object(F.a)().slowRefresh,X=function(){var e=Object(B.a)(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",D.methods.purchaseNfts(Q).send({value:(Q*o).toString(),from:n,to:D.options.address}).on("transactionHash",(function(e){return console.log("method bypassed"),e.transactionHash}),[n,K,D,Q]));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(h.useEffect)((function(){(function(){var e=Object(B.a)(w.a.mark((function e(){var t,r,a,i,s,o;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=0,r=0,a=0,i=!1,s=!1,e.next=7,D.methods.mintCost().call();case 7:return t=e.sent,d(t),e.next=11,D.methods.totalSupply().call();case 11:return r=e.sent,u(r),e.next=15,D.methods.totalAvailable().call();case 15:return a=e.sent,g(a),e.next=19,D.methods.mintingActive().c
1all();case 19:return i=e.sent,z(i),e.next=23,D.methods.isSoldOut().call();case 23:if(s=e.sent,q(s),console.log(s),console.log(i),!n){e.next=33;break}return o=0,e.next=31,D.methods.balanceOf(n).call();case 31:o=e.sent,c(o);case 33:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[W,n,U,D]),Object(T.jsxs)(_,{children:[Object(T.jsx)(f.o,{mb:"8px",children:"Ghost Shiba VIP"}),Object(T.jsx)(A,{src:"images/nfts/ghostshibavip.png",alt:""}),Object(T.jsx)(f.B,{mb:"8px",mt:"12px",children:'"Ghost Shiba VIP" grants access to special Ghost Shiba perks such as free mints on all future NFTs and Passive BNB income.  Limited to 550 total NFTs, 50 are reserved for giveaways.'}),Object(T.jsx)(I,{}),Object(T.jsxs)(f.B,{mb:"8px",children:["Minted: ",j,"/",O]}),Object(T.jsxs)(f.B,{mb:"8px",children:["Mint Cost: ",(o/1e18).toFixed(2)," BNB"]}),n&&k&&!R?Object(T.jsxs)("div",{children:[Object(T.jsxs)(J,{children:[Object(T.jsx)(f.B,{mb:"8px",children:"# to Mint: "}),Object(T.jsx)(L,{id:"number",min:"1",max:"15",type:"number",value:Q,onChange:function(){var e=Object(B.a)(w.a.mark((function e(n){var t;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=n.target.valueAsNumber,V(t);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()})]}),Object(T.jsx)(f.d,{mt:"8px",mb:"8px",variant:"primary",onClick:X,children:Object(T.jsx)(f.B,{color:"tertiary",children:"Mint NFTs"})}),Object(T.jsxs)(f.B,{children:["You Hold: ",a]})]}):Object(T.jsx)(f.B,{}),n&&k&&R?Object(T.jsxs)("div",{children:[Object(T.jsx)(f.d,{mt:"8px",mb:"8px",variant:"tertiary",children:Object(T.jsx)(f.B,{color:"primary",children:"Sold Out"})}),Object(T.jsxs)(f.B,{children:["You Hold: ",a]})]}):Object(T.jsx)(f.B,{}),n&&!k?Object(T.jsx)("div",{children:Object(T.jsx)(f.d,{mt:"8px",mb:"8px",variant:"tertiary",children:Object(T.jsx)(f.B,{color:"primary",children:"Mint Not Started"})})}):Object(T.jsx)(f.B,{}),n?Object(T.jsx)(f.B,{}):Object(T.jsx)(M.a,{}),Object(T.jsx)(I,{}),Object(T.jsx)(f.B,{children:Object(T.jsx)("u",{children:"Links"})}),Object(T.jsx)(f.B,{children:Object(T.jsx)("a",{href:"https://t.me/GhostShibaofficial",target:"_blank",rel:"noreferrer",children:"Telegram"})}),Object(T.jsx)(f.B,{children:Object(T.jsx)("a",{href:"https://lootex.io/stores/ghostshibavip",target:"_blank",rel:"noreferrer",children:"Lootex"})}),Object(T.jsx)(f.B,{children:Object(T.jsx)("a",{href:"https://bscscan.com/address/0x38518cc7b92ec41586d2e4b8e80d022d0a8e3c6e#code",target:"_blank",rel:"noreferrer",children:"NFT Contract"})})]})},V=O.e.div(u||(u=Object(p.a)(["\n  align-items: center;\n  color: ",";\n  display: flex;\n  margin-left: auto;\n  margin-right: auto;\n  width: 100%;\n  justify-content: center;\n  padding: 24px 0;\n  ul {\n    margin: 0;\n    padding: 0;\n    list-style-type: none;\n    font-size: 16px;\n    li {\n      margin-bottom: 4px;\n    }\n  }\n"])),(function(e){return e.theme.colors.primary})),Y=function(){var e=Object(g.c)(),n=e.account,t=e.ethereum,r=Object(m.g)().path;return Object(T.jsx)(y.a,{children:Object(T.jsxs)("div",{children:[Object(T.jsxs)(V,{children:[Object(T.jsx)("img",{src:"https://ghostshiba.money/img/logo.png",alt:"",height:"120px",width:"120px"}),Object(T.jsx)(f.o,{children:"\xa0\xa0Ghost Shiba Collectibles\xa0\xa0"})]}),Object(T.jsx)(v.a,{children:Object(T.jsx)(m.a,{exact:!0,path:"".concat(r),children:Object(T.jsx)(Q,{account:n,ethereum:t})})})]})})}}}]);
2//# sourceMappingURL=23.02ee8de5.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.