PageSourceSearch

https://typus.finance/_next/static/chunks/1983.c72df332af873981.js

js typus.finance collected 2026-10-04 00:07:37 UTC 4,871 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1983],{11983:function(e,o,t){t.r(o);var s=t(85893),r=t(57747),n=t(93717),i=t(6089),l=t(71293),x=t(67421),p=t(64520),c=t(55400),d=t(70794),a=t(67294),u=t(68575),h=t(15270),j=t(64387),b=t(256),f=t(79987);o.default=e=>{let o=(0,u.Z)(e=>e.iW),[t,k]=(0,a.useState)([]),{t:m}=(0,x.$G)("calculator");(0,f._)({token:e.oToken,wrapped:!0});let C=0;(C=88/Number(e.strikePrice)*Number(e.spotPrice))<=0&&(C=10),C>=150&&(C=150);let g=()=>{let e=[];for(let o=0;o<100;o++){let t={};o<50?(t={name:o,pv:50},e.push(t)):o>50&&(t={name:o,pv:50-(o-50)*2},e.push(t))}return e};return(0,a.useEffect)(()=>{k(g())},[]),(0,s.jsx)(r.xu,{position:"relative",display:"inline-block",w:o>=768?"296px":"240px",h:"172px",bg:"#fff",...e,transform:o<768?"scale(0.92)":"",children:(0,s.jsx)(r.xu,{children:(0,s.jsxs)(n.k,{flexDirection:"column",justifyContent:"space-between",position:"relative",w:"100%",h:"17.2rem",children:[(0,s.jsx)(r.xu,{h:"3.2rem"}),(0,s.jsxs)(n.k,{w:"100%",h:"132px",justifyContent:"center",alignItems:"center",children:[(0,s.jsxs)(n.k,{flexDirection:"column",justifyContent:"space-between",className:"".concat(o>=768?"c3":"c4"),h:"100%",padding:"15px 0",children:[(0,s.jsx)(i.E,{src:"/icon/plus.svg",alt:"plus",w:"15px",h:"15px"}),(0,s.jsxs)(r.xu,{children:[(0,s.jsx)(r.xu,{children:"PNL"}),(0,s.jsx)(r.xu,{children:"IN"}),(0,s.jsx)(r.xu,{children:(0,b.WQ)(e.dToken)?(0,f._)({token:e.dToken,wrapped:!0}):(0,s.jsxs)(s.Fragment,{children:[h.cB[e.dToken.toUpperCase()]?h.cB[e.dToken.toUpperCase()]:e.dToken.toUpperCase()," "]})})]}),(0,s.jsx)(i.E,{src:"/icon/minus.svg",alt:"minus",w:"15px",h:"15px"})]}),(0,s.jsxs)(r.xu,{position:"relative",m:"0 4px",children:[(0,s.jsxs)(r.xu,{w:"200px",className:"".concat(o>=768?"b29":"b30"),flexDir:"column",justifyContent:"flex-start",alignItems:"center",color:"#5056EA",h:"3.2rem",position:"absolute",left:"".concat(C,"px"),transform:"translateX(-50%)",bottom:"105%",textAlign:"center",children:[(0,s.jsxs)(l.x,{children:[(0,b.WQ)(e.oToken)?(0,s.jsxs)(s.Fragment,{children:[(0,f._)({token:e.oToken,wrapped:!0})," "]}):(0,s.jsxs)(s.Fragment,{children:[h.cB[e.oToken.toUpperCase()]?h.cB[e.oToken.toUpperCase()]:e.oToken.toUpperCase()," "]}),"PRICE NOW"]}),(0,s.jsx)(n.k,{w:"100%",justifyContent:"center",children:(0,s.jsxs)(l.x,{children:["$",(0,b.WQ)(e.oToken)?(0,j.mu)((0,d.Z)(e.spotPrice).div((0,d.Z)(10).pow(6)).toFixed(10),6):e.spotPrice]})})]}),(0,s.jsx)(r.xu,{position:"absolute",top:"0",w:"8px",h:"100%",left:"0px",bg:"#0A2037",zIndex:"1"}),(0,s.jsx)(r.xu,{position:"absolute",w:"100%",h:"8px",top:"50%",left:"0px",bg:"#0A2037",zIndex:"1"}),(0,s.jsx)(r.xu,{zIndex:9,position:"absolute",display:"inline-block",top:"0",left:"".concat(C,"px"),border:"solid",borderStyle:"solid",borderColor:"#5056EA",borderTop:"none",borderRight:"none",borderBottom:"none",borderWidth:"2px",h:"100%"}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.xu,{position:"absolute",display:"inline-block",top:"20px",left:"88px",border:"solid",borderStyle:"dashed",borderColor:"#090e11",borderTop:"none",borderRight:"none",borderBottom:"none",borderWidth:"3px",h:"50px",zIndex:"1"}),(0,s.jsx)(r.xu,{className:"".concat(o>=768?"c2":"c3"),position:"absolute",top:"80px",left:"60px",children:(0,s.jsx)(n.k,{alignItems:"center",justifyContent:"center",children:(0,s.jsxs)(l.x,{children:["$",(0,b.WQ)(e.oToken)?(0,j.mu)(e.strikePrice.div((0,d.Z)(10).pow(6)).toFixed(10),6):Number(e.strikePrice)]})})})]}),(0,s.jsx)(r.xu,{position:"absolute",top:"8px",left:"82px",id:"dot",w:{base:"14px"},h:{base:"14px"},borderColor:"#0A2037",borderWidth:{base:"5px"},borderRadius:"40px",bg:"#1D252D",zIndex:"1"}),(0,s.jsx)(r.xu,{h:"100%",children:(0,s.jsxs)(p.T,{width:180,height:132,data:t,margin:{top:15,right:0,left:0,bottom:10},children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:"depositorSplitColor",x1:"0",y1:"0",x2:"0",y2:"0.85",children:[(0,s.jsx)("stop",{offset:"".concat(60,"%"),stopColor:"rgba(80, 86, 234, 0.3)"}),(0,s.jsx)("stop",{offset:"".concat(60,"%"),stopColor:"rgba(10, 32, 55,0.3)"})]}),(0,s.jsxs)("linearGradient",{id:"depositorBorderColor",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,s.jsx)("stop",{offset:"".concat(50,"%"),stopColor:"#5056EA"}),(0,s.jsx)("stop",{offset:"".concat(50,"%"),stopColor:"#0A2037"}),(0,s.jsx)("stop",{offset:"".concat(50,"%"),stopColor:"#0A2037"})]})]}
1),(0,s.jsx)(c.u,{type:"monotone",dataKey:"pv",stroke:"url(#depositorBorderColor)",strokeWidth:"4",fill:"url(#depositorSplitColor)"})]})})]}),(0,s.jsxs)(r.xu,{className:"".concat(o>=768?"c3":"c4"),children:[(0,b.WQ)(e.oToken)?(0,f._)({token:e.oToken,wrapped:!0}):(0,s.jsxs)(s.Fragment,{children:[h.cB[e.oToken.toUpperCase()]?h.cB[e.oToken.toUpperCase()]:e.oToken.toUpperCase()," "]}),(0,s.jsx)(r.xu,{children:"PRICE"}),(0,s.jsx)(r.xu,{children:"AT"}),(0,s.jsx)(r.xu,{children:"EXPIRY"})]})]})]})})})}}}]);

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.