@gearbox-protocol/ui-kit 3.13.0 → 3.14.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/cjs/components/composites/pool-table/columns.cjs +1 -1
  2. package/dist/cjs/components/composites/pool-table/pool-table.cjs +1 -1
  3. package/dist/cjs/components/composites/strategies-table/columns.cjs +1 -1
  4. package/dist/cjs/components/composites/strategies-table/components/cells/cells.cjs +1 -1
  5. package/dist/cjs/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.cjs +1 -1
  6. package/dist/cjs/components/graph/graph.cjs +1 -1
  7. package/dist/cjs/components/layout/main-aside-layout/main-aside-layout.cjs +1 -1
  8. package/dist/cjs/locale/en.json.cjs +1 -1
  9. package/dist/esm/components/composites/pool-table/columns.js +344 -207
  10. package/dist/esm/components/composites/pool-table/pool-table.js +94 -102
  11. package/dist/esm/components/composites/strategies-table/columns.js +1 -1
  12. package/dist/esm/components/composites/strategies-table/components/cells/cells.js +31 -28
  13. package/dist/esm/components/composites/strategies-table/components/rewards-tooltip/tooltip-content.js +131 -122
  14. package/dist/esm/components/graph/graph.js +339 -293
  15. package/dist/esm/components/layout/main-aside-layout/main-aside-layout.js +70 -22
  16. package/dist/esm/locale/en.json.js +1 -0
  17. package/dist/globals.css +1 -1
  18. package/dist/types/components/composites/pool-table/columns.d.ts +0 -2
  19. package/dist/types/components/composites/strategies-table/components/cells/cells.d.ts +2 -1
  20. package/dist/types/components/graph/graph.d.ts +8 -1
  21. package/dist/types/components/layout/main-aside-layout/main-aside-layout.d.ts +46 -5
  22. package/dist/types/components/trading-view/trading-view.d.ts +7 -0
  23. package/dist/types/locale/en.json.d.ts +1 -0
  24. package/package.json +3 -3
  25. package/src/styles/base.css +4 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),j=require("../../assets-list-cell/assets-list-cell.cjs"),k=require("../../compound-apy/compound-apy.cjs"),m=require("../../description/description.cjs"),A=require("../../network-icon/network-icon.cjs"),C=require("../../percent-indicator/percent-indicator.cjs"),_=require("../../pool-apy-tooltip/pool-apy-tooltip.cjs"),I=require("../../pool-indicator-icon/pool-indicator-icon.cjs"),P=require("../../pool-points-indicator/pool-points-indicator.cjs"),q=require("../../rwa-styles/index.cjs"),p=require("../../skeleton/skeleton.cjs");require("react");require("@gearbox-protocol/sdk");const N=require("../../../utils/cn.cjs");require("sonner");const h=require("../../../utils/format-money.cjs"),T=require("../../../utils/templates.cjs");require("luxon");require("../../../utils/z-index.cjs");const v=require("../../token-symbol/token-symbol.cjs"),D=require("../../tooltip/simple-tooltip.cjs");require("../../tooltip/tooltip.cjs");const x=require("../../typed-intl/index.cjs"),S=require("../../../test-ids/pool-table.cjs");function a(e,o,l){const n=e?.header??t.jsx(x.FormattedMessageTyped,{messageId:e?.headerMessageId??o});let i;if(e?.headerTip!==null){const r=e?.headerTipMessageId??l;i=e?.headerTip??(r&&t.jsx(x.FormattedMessageTyped,{messageId:r}))}return{header:n,headerTip:i,mobileTitle:e?.mobileTitle??n}}function M({ctx:e,rwaTooltip:o}){const{pool:l,underlyingToken:n,points:i,apy:r,isMobile:s}=e,c=s?20:24,d=t.jsx(v.TokenSymbol,{token:n,size:c}),f=l.poolType==="rwa",u=i&&i.length>0&&r?t.jsx(_.PoolAPYTooltip,{totalAPY:r.totalAPY,baseAPY:r.baseAPY,extraAPY:r.extraAPY,points:i,tokensList:e.tokensList,children:t.jsx("div",{children:t.jsx(I.PoolIndicatorIcon,{size:c,children:d})})}):l.hasPoints?t.jsx(P.PoolPointsIndicator,{size:c,children:d}):d;return f?t.jsx(D.SimpleTooltip,{placement:"top",useTitleAsTrigger:!0,title:t.jsx("div",{className:N.cn("relative inline-flex rounded-full p-1",q.RWA_GRADIENT_BORDER_CLASS),children:t.jsx("div",{className:"relative z-10",children:u})}),children:o??"RWA market"}):u}function y(e){const o=e.underlyingToken?.title??e.underlyingToken?.symbol??"",l=e.pool.version;return l&&l>=300&&l<310?`${o} v${Math.floor(l/100)}`:o}function z({ctx:e,renderDescription:o,getPoolName:l,rwaTooltip:n}){const{pool:i}=e,r=l?l(e):y(e),s=i.poolType==="rwa";return t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3",children:[s&&t.jsx("span",{className:"hidden","data-rwa-pool-marker":"true"}),t.jsxs("div",{className:"flex items-center gap-3 shrink-0 leading-0",children:[i.network&&t.jsx(A.NetworkIcon,{network:i.network,isTest:!1,size:14,showTooltip:!0}),t.jsx(M,{ctx:e,rwaTooltip:n})]}),t.jsxs("div",{className:"flex md:flex-col min-w-0 overflow-hidden items-center md:items-start gap-2 md:gap-0",children:[t.jsx("span",{className:"truncate max-w-full",children:r}),o&&t.jsx(m.Description,{className:"min-w-0 text-xs",children:o(e)})]})]})}function Y({ctx:e}){const{pool:o,underlyingToken:l,loading:n}=e;return t.jsxs("div",{className:"flex flex-col items-start md:items-end",children:[t.jsx(p.Skeleton,{loading:!!n,width:60,children:h.formatMoney(o.expectedLiquidityInUSD??0)}),t.jsx(m.Description,{children:T.tokenTemplate(o.expectedLiquidity,l)})]})}function B({ctx:e}){const{pool:o,underlyingToken:l,loading:n}=e;return t.jsxs("div",{className:"flex flex-col items-start md:items-end",children:[t.jsx(p.Skeleton,{loading:!!n,width:60,children:h.formatMoney(o.totalBorrowedInUSD??0)}),t.jsx(m.Description,{children:T.tokenTemplate(o.totalBorrowed,l)})]})}function L({ctx:e}){const{pool:o,loading:l,underlyingToken:n}=e,i=n?.decimals??18,r=o.poolTokenSymbol!=null?{title:o.poolTokenSymbol,decimals:i}:n;return t.jsxs("div",{className:"flex flex-col items-start md:items-end","data-testid":S.poolTableTestIds.poolLineCellBalance,children:[t.jsx(p.Skeleton,{loading:!!l,width:60,children:h.formatMoney(o.userBalanceInUSD??0)}),o.userBalance!==void 0&&r&&t.jsx(m.Description,{children:T.tokenTemplate(o.userBalance,r)})]})}function F(e,o,l){const n=e.pool.collateralTokens,{tokensList:i,isMobile:r}=e,{mode:s="cascade",...c}=l??{};return!n?.length||!i?null:t.jsx(j.AssetsListCell,{maxAssets:o,tokensList:i,balances:n.map(d=>({token:d})),iconSize:r?20:24,options:{mode:s,...c}})}function R(e){const{header:o,mobileTitle:l}=a(e,"components.poolTable.pool");return{id:"pool",header:o,width:e?.width??"186px",align:"left",className:"pl-4",cell:n=>t.jsx(z,{ctx:n,renderDescription:e?.renderDescription,getPoolName:e?.getPoolName,rwaTooltip:e?.rwaTooltip}),mobileTitle:l}}function O(e){const{header:o,mobileTitle:l}=a(e,"components.poolTable.supply");return{id:"supply",header:o,width:e?.width??"1fr",align:"right",hideOnMedium:e?.hideOnMedium,sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"supply",defaultDirection:"desc"},cell:n=>t.jsx(Y,{ctx:n}),mobileTitle:l}}function U(e){const{header:o,headerTip:l,mobileTitle:n}=a(e,"components.poolTable.supplyApy","components.poolTable.supplyApy.tip");return{id:"supplyApy",header:o,headerTip:l,width:e?.width??"1.25fr",align:"right",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"apy",defaultDirection:"desc"},cell:i=>{const{apy:r,loading:s,points:c,tokensList:d}=i,{totalAPY:f=0,baseAPY:u=[],extraAPY:g=[],externalAPY:w,apy7DAgo:b}=r??{};return t.jsx(p.Skeleton,{width:60,loading:!!s,children:t.jsx(k.CompoundAPY,{totalAPY:f,totalAPYLoading:!!s,baseAPY:u,extraAPY:g,points:c,apy7DAgo:b,tokensList:d,externalAPY:w})})},mobileTitle:n}}function E(e){const{header:o,mobileTitle:l}=a(e,"components.poolTable.borrowed");return{id:"borrowed",header:o,width:e?.width??"1.15fr",align:"right",cell:n=>t.jsx(B,{ctx:n}),mobileTitle:l}}function W(e){const{header:o,headerTip:l,mobileTitle:n}=a(e,"components.poolTable.borrowApy");return{id:"borrowApy",header:o,headerTip:l,width:e?.width??"150px",align:"right",cell:i=>{const r=i.pool.borrowAPY??e?.getBorrowRate?.(i.pool)??0;return t.jsx("div",{className:"flex justify-start md:justify-end",children:h.percentageTemplate(r)})},mobileTitle:n}}function $(e){const{header:o,mobileTitle:l}=a(e,"components.poolTable.utilization");return{id:"utilization",header:o,width:e?.width??"150px",align:"right",className:"pr-4",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"utilization",defaultDirection:"desc"},cell:n=>{const i=n.pool.utilization??0;return t.jsx("div",{className:"flex justify-start md:justify-end",children:t.jsx(C.PercentIndicator,{percent:i})})},mobileTitle:l}}function G(e){const o=e?.maxAssets??5,l=r=>F(r,o,e?.options),{header:n,mobileTitle:i}=a(e,"components.poolTable.collateral");return{id:"collateral",header:n,width:e?.width??"148px",align:e?.align??"left",gapBefore:e?.gapBefore??"md",cell:e?.cell??l,mobileCell:e?.mobileCell??e?.cell??l,mobileTitle:i}}function H(e){const{header:o,mobileTitle:l}=a(e,"components.poolTable.balance");return{id:"balance",header:o,width:e?.width??"1.15fr",align:"right",className:e?.className??"pr-4",headerClassName:e?.headerClassName??"pr-4",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"balance",defaultDirection:"desc"},cell:e?.cell??(n=>t.jsx(L,{ctx:n})),mobileTitle:l}}function J(e){return e}exports.balanceColumn=H;exports.borrowApyColumn=W;exports.borrowedColumn=E;exports.collateralColumn=G;exports.customColumn=J;exports.defaultPoolName=y;exports.poolColumn=R;exports.supplyApyColumn=U;exports.supplyColumn=O;exports.utilizationColumn=$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),w=require("../../assets-list-cell/assets-list-cell.cjs"),j=require("../../compound-apy/compound-apy.cjs"),d=require("../../description/description.cjs"),k=require("../../network-icon/network-icon.cjs"),C=require("../../percent-indicator/percent-indicator.cjs"),A=require("../../pool-apy-tooltip/pool-apy-tooltip.cjs"),_=require("../../pool-indicator-icon/pool-indicator-icon.cjs"),I=require("../../pool-points-indicator/pool-points-indicator.cjs"),q=require("../../skeleton/skeleton.cjs");require("react");require("@gearbox-protocol/sdk");require("clsx");require("tailwind-merge");require("sonner");const m=require("../../../utils/format-money.cjs"),h=require("../../../utils/templates.cjs");require("luxon");require("../../../utils/z-index.cjs");const P=require("../../token-symbol/token-symbol.cjs"),p=require("../../typed-intl/index.cjs"),N=require("../../../test-ids/pool-table.cjs");require("@gearbox-protocol/static");require("../../base-link/base-link.cjs");require("../../client-adapters/styled-rounded-image/styled-rounded-image.cjs");require("../../tooltip/simple-tooltip.cjs");require("@gearbox-protocol/sdk/common-utils");require("../../table/grid-table.cjs");require("../../typography/typography.cjs");require("@fortawesome/free-solid-svg-icons");require("../../icons/fa-icon.cjs");require("../../help-tip/help-tip.cjs");require("../../tooltip/tooltip.cjs");require("../../card-grid/card-grid.cjs");require("../../checkbox/checkbox-labeled.cjs");require("../../confirm-menu/confirm-menu.cjs");require("../../dialog/dialog-modal-container.cjs");require("../../text-button/text-button.cjs");require("../../accordion/accordion.cjs");require("../../alert-badge/alert-badge.cjs");require("../../alert-dialog/alert-dialog.cjs");require("../../alert-modal/alert-modal.cjs");require("../../arc-loader/arc-loader.cjs");require("../../asset-line/asset-line.cjs");require("wagmi");require("../../auth/wallet-ui-context.cjs");require("../../buttons/back-button/back-button.cjs");require("../../buttons/button/button.cjs");require("../../buttons/copy-button/copy-button.cjs");require("../../buttons/external-button/external-button.cjs");require("../../buttons/filter-button/filter-button.cjs");require("../../buttons/navigation-button/navigation-button.cjs");require("../../buttons/tab-button/tab-button.cjs");require("../../avatar/avatar.cjs");require("../../badge/badge.cjs");require("../../navigation-context/navigation-context.cjs");require("../../button-checkbox/button-checkbox.cjs");require("../../cards/card/card.cjs");require("../../carousel/carousel.cjs");require("../../checkbox/checkbox.cjs");require("../../checkbox-item/checkbox-item.cjs");require("../../client-adapters/styled-button/styled-button.cjs");require("../../client-adapters/styled-dialog-container/styled-dialog-container.cjs");require("../../colored-text/colored-text.cjs");require("../../input/input.cjs");require("../../with-title/with-title.cjs");require("../../smart-number-input/balance-indicator.cjs");require("../../smart-number-input/smart-number-input.cjs");require("../../currency-button/currency-button.cjs");require("../../detailed-apy/detailed-apy.cjs");require("../../detailed-page-title/detailed-page-title.cjs");require("../../detailed-page-title/detailed-page-title-copy-button.cjs");require("../../detailed-page-title/detailed-page-title-explorer-dropdown.cjs");require("../../modal/modal.cjs");require("@radix-ui/react-dialog");require("../../dialog/dialog-container.cjs");require("../../dialog/dialog-content.cjs");require("../../dialog/dialog-description.cjs");require("../../dialog/dialog-footer.cjs");require("../../dialog/dialog-header.cjs");require("../../dialog/dialog-title.cjs");require("../../dialog/dialog-overlay.cjs");require("viem");require("../../label/label.cjs");require("../../dropdown-menu/dropdown-menu.cjs");require("../../dropdown-menu/dropdown-menu-checkbox-item.cjs");require("../../dropdown-menu/dropdown-menu-content.cjs");require("../../dropdown-menu/dropdown-menu-item.cjs");require("../../dropdown-menu/dropdown-menu-label.cjs");require("../../dropdown-menu/dropdown-menu-radio-item.cjs");require("../../dropdown-menu/dropdown-menu-separator.cjs");require("../../dropdown-menu/dropdown-menu-shortcut.cjs");require("../../dropdown-menu/dropdown-menu-sub-content.cjs");require("../../dropdown-menu/dropdown-menu-sub-trigger.cjs");require("../../edit-input/edit-input.cjs");require("react-intl");require("../../fadeout-loading/fadeout-loading.cjs");require("../../filter/filter-block.cjs");require("../../filter/filter-checkbox-item.cjs");require("../../filter/filter-chip.cjs");require("../../filter/filter-chips.cjs");require("../../filter/filter-dropdown-item.cjs");require("../../filter/filter-group.cjs");require("../../filter/filter-label.cjs");require("../../search-line/search-line.cjs");require("../../tabs/tabs.cjs");require("../../filter/filter-modal-item.cjs");require("../../filter/filter-radio-item.cjs");require("../../filter/filter-separator.cjs");require("../../filter/variants.cjs");require("../../graph/formatters.cjs");require("lightweight-charts");require("../../graph/graph-view.cjs");require("../../health-factor/health-factor.cjs");require("../../horizontal-indicator/horizontal-indicator.cjs");require("../../icon-button/icon-button.cjs");require("../../layout/col/col.cjs");require("../../layout/container/container.cjs");require("../../layout/footer/footer.cjs");require("../../layout/grid/grid.cjs");require("../../layout/header/header.cjs");require("../../layout/layout/layout.cjs");require("../../layout/main-aside-layout/main-aside-layout.cjs");require("../../page-title/page-title.cjs");require("../../layout/social-icons/social-icons.cjs");require("../../link/link.cjs");require("../../../utils/reactochart-compat.cjs");require("../../status-elements/status-elements.cjs");require("../../loader/loader.cjs");require("../../loading/loading.cjs");require("../../loading-bar/loading-bar.cjs");require("react-markdown");require("remark-gfm");require("../../navbar/navbar.cjs");require("../../navbar/navbar-indicator-context.cjs");require("../../app-bar/app-bar.cjs");require("../../navitem/navitem.cjs");require("../../simple-dropdown/simple-dropdown.cjs");require("../../points-icon/points-icon.cjs");require("../../progress/progress.cjs");require("../../progress-bar/progress-bar.cjs");require("../../radio-group/radio-group.cjs");require("../../rounded-image/rounded-image.cjs");require("../../search-bar/search-bar.cjs");require("../../segmented-control/segmented-control.cjs");require("../../select/select.cjs");require("../../separate-line/separate-line.cjs");require("../../separator/separator.cjs");require("../../simple-accordion/simple-accordion.cjs");require("../../simple-dropdown/simple-dropdown-menu-item.cjs");require("../../slider/slider.cjs");require("../../slider/slider-context.cjs");require("@radix-ui/react-slider");require("../../spinner/spinner.cjs");require("../../spinner-loader/spinner-loader.cjs");require("../../split-list/split-list.cjs");require("../../stat-badge/stat-badge.cjs");require("../../status-dot/status-dot.cjs");require("../../stepper/stepper.cjs");require("../../switch/switch.cjs");require("../../token-icon/token-icon.cjs");require("../../table/table.cjs");require("../../table/grid-table-loader.cjs");require("../../textarea/textarea.cjs");require("../../theme-provider.cjs");require("../../time-to-liquidation/time-to-liquidation.cjs");require("../../tip-card/tip-card.cjs");require("../../toggle/toggle.cjs");require("../../vertical-indicator/vertical-indicator.cjs");require("../../vertical-list/vertical-list.cjs");require("../../with-filter-button/with-filter-button.cjs");const v=require("../strategies-table/components/cells/cells.cjs");require("../strategies-table/components/feature/feature.styles.cjs");require("../strategies-table/components/rewards-tooltip/rewards-tooltip-root.cjs");function s(e,r,o){const l=e?.header??i.jsx(p.FormattedMessageTyped,{messageId:e?.headerMessageId??r});let t;if(e?.headerTip!==null){const n=e?.headerTipMessageId??o;t=e?.headerTip??(n&&i.jsx(p.FormattedMessageTyped,{messageId:n}))}return{header:l,headerTip:t,mobileTitle:e?.mobileTitle??l}}function D({ctx:e}){const{pool:r,underlyingToken:o,points:l,apy:t,isMobile:n}=e,u=n?20:24,a=i.jsx(P.TokenSymbol,{token:o,size:u});return l&&l.length>0&&t?i.jsx(A.PoolAPYTooltip,{totalAPY:t.totalAPY,baseAPY:t.baseAPY,extraAPY:t.extraAPY,points:l,tokensList:e.tokensList,children:i.jsx("div",{children:i.jsx(_.PoolIndicatorIcon,{size:u,children:a})})}):r.hasPoints?i.jsx(I.PoolPointsIndicator,{size:u,children:a}):a}function f(e){const r=e.underlyingToken?.title??e.underlyingToken?.symbol??"",o=e.pool.version;return o&&o>=300&&o<310?`${r} v${Math.floor(o/100)}`:r}function S({ctx:e,renderDescription:r,getPoolName:o}){const{pool:l}=e,t=o?o(e):f(e),n=l.poolType==="rwa";return i.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3",children:[n&&i.jsx("span",{className:"hidden","data-rwa-pool-marker":"true"}),i.jsxs("div",{className:"flex items-center gap-3 shrink-0 leading-0",children:[l.network&&i.jsx(k.NetworkIcon,{network:l.network,isTest:!1,size:14,showTooltip:!0}),i.jsx(D,{ctx:e})]}),i.jsxs("div",{className:"flex items-center gap-x-2",children:[i.jsxs("div",{className:"flex md:flex-col min-w-0 overflow-hidden items-center md:items-start gap-2 md:gap-0",children:[i.jsx("span",{className:"truncate max-w-full",children:t}),r&&i.jsx(d.Description,{className:"min-w-0 text-xs",children:r(e)})]}),n&&i.jsx(v.RWAFeature,{disabledStyle:!1,tooltip:i.jsx(p.FormattedMessageTyped,{messageId:"components.poolTable.line.rwa.tip"})})]})]})}function M({ctx:e}){const{pool:r,underlyingToken:o,loading:l}=e;return i.jsxs("div",{className:"flex flex-col items-start md:items-end",children:[i.jsx(q.Skeleton,{loading:!!l,width:60,children:m.formatMoney(r.expectedLiquidityInUSD??0)}),i.jsx(d.Description,{children:h.tokenTemplate(r.expectedLiquidity,o)})]})}function Y({ctx:e}){const{pool:r,underlyingToken:o,loading:l}=e;return i.jsxs("div",{className:"flex flex-col items-start md:items-end",children:[i.jsx(q.Skeleton,{loading:!!l,width:60,children:m.formatMoney(r.totalBorrowedInUSD??0)}),i.jsx(d.Description,{children:h.tokenTemplate(r.totalBorrowed,o)})]})}function z({ctx:e}){const{pool:r,loading:o,underlyingToken:l}=e,t=l?.decimals??18,n=r.poolTokenSymbol!=null?{title:r.poolTokenSymbol,decimals:t}:l;return i.jsxs("div",{className:"flex flex-col items-start md:items-end","data-testid":N.poolTableTestIds.poolLineCellBalance,children:[i.jsx(q.Skeleton,{loading:!!o,width:60,children:m.formatMoney(r.userBalanceInUSD??0)}),r.userBalance!==void 0&&n&&i.jsx(d.Description,{children:h.tokenTemplate(r.userBalance,n)})]})}function F(e,r,o){const l=e.pool.collateralTokens,{tokensList:t,isMobile:n}=e,{mode:u="cascade",...a}=o??{};return!l?.length||!t?null:i.jsx(w.AssetsListCell,{maxAssets:r,tokensList:t,balances:l.map(c=>({token:c})),iconSize:n?20:24,options:{mode:u,...a}})}function B(e){const{header:r,mobileTitle:o}=s(e,"components.poolTable.pool");return{id:"pool",header:r,width:e?.width??"234px",align:"left",className:"pl-4",cell:l=>i.jsx(S,{ctx:l,renderDescription:e?.renderDescription,getPoolName:e?.getPoolName}),mobileTitle:o}}function L(e){const{header:r,mobileTitle:o}=s(e,"components.poolTable.supply");return{id:"supply",header:r,width:e?.width??"1fr",align:"right",hideOnMedium:e?.hideOnMedium,sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"supply",defaultDirection:"desc"},cell:l=>i.jsx(M,{ctx:l}),mobileTitle:o}}function O(e){const{header:r,headerTip:o,mobileTitle:l}=s(e,"components.poolTable.supplyApy","components.poolTable.supplyApy.tip");return{id:"supplyApy",header:r,headerTip:o,width:e?.width??"1.25fr",align:"right",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"apy",defaultDirection:"desc"},cell:t=>{const{apy:n,loading:u,points:a,tokensList:c}=t,{totalAPY:x=0,baseAPY:y=[],extraAPY:g=[],externalAPY:T,apy7DAgo:b}=n??{};return i.jsx(q.Skeleton,{width:60,loading:!!u,children:i.jsx(j.CompoundAPY,{totalAPY:x,totalAPYLoading:!!u,baseAPY:y,extraAPY:g,points:a,apy7DAgo:b,tokensList:c,externalAPY:T})})},mobileTitle:l}}function R(e){const{header:r,mobileTitle:o}=s(e,"components.poolTable.borrowed");return{id:"borrowed",header:r,width:e?.width??"1.15fr",align:"right",cell:l=>i.jsx(Y,{ctx:l}),mobileTitle:o}}function U(e){const{header:r,headerTip:o,mobileTitle:l}=s(e,"components.poolTable.borrowApy");return{id:"borrowApy",header:r,headerTip:o,width:e?.width??"150px",align:"right",cell:t=>{const n=t.pool.borrowAPY??e?.getBorrowRate?.(t.pool)??0;return i.jsx("div",{className:"flex justify-start md:justify-end",children:m.percentageTemplate(n)})},mobileTitle:l}}function $(e){const{header:r,mobileTitle:o}=s(e,"components.poolTable.utilization");return{id:"utilization",header:r,width:e?.width??"150px",align:"right",className:"pr-4",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"utilization",defaultDirection:"desc"},cell:l=>{const t=l.pool.utilization??0;return i.jsx("div",{className:"flex justify-start md:justify-end",children:i.jsx(C.PercentIndicator,{percent:t})})},mobileTitle:o}}function H(e){const r=e?.maxAssets??5,o=n=>F(n,r,e?.options),{header:l,mobileTitle:t}=s(e,"components.poolTable.collateral");return{id:"collateral",header:l,width:e?.width??"148px",align:e?.align??"left",gapBefore:e?.gapBefore??"md",cell:e?.cell??o,mobileCell:e?.mobileCell??e?.cell??o,mobileTitle:t}}function W(e){const{header:r,mobileTitle:o}=s(e,"components.poolTable.balance");return{id:"balance",header:r,width:e?.width??"1.15fr",align:"right",className:e?.className??"pr-4",headerClassName:e?.headerClassName??"pr-4",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"balance",defaultDirection:"desc"},cell:e?.cell??(l=>i.jsx(z,{ctx:l})),mobileTitle:o}}function E(e){return e}exports.balanceColumn=W;exports.borrowApyColumn=U;exports.borrowedColumn=R;exports.collateralColumn=H;exports.customColumn=E;exports.defaultPoolName=f;exports.poolColumn=B;exports.supplyApyColumn=O;exports.supplyColumn=L;exports.utilizationColumn=$;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),E=require("react"),F=require("../../head-cell/head-cell.cjs"),P=require("../../help-tip/help-tip.cjs"),W=require("../../rwa-styles/index.cjs"),Q=require("../../table/grid-loading-line.cjs"),u=require("../../table/grid-table.cjs"),V=require("../../table/table-loader-guard.cjs"),v=require("../../table/table-sm.cjs");require("@gearbox-protocol/sdk/common-utils");require("@gearbox-protocol/sdk");const G=require("../../../hooks/use-media-query.cjs"),I=require("../../../test-ids/pool-table.cjs"),b=require("../../../utils/cn.cjs");function X(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const s=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(n,l,s.get?s:{enumerable:!0,get:()=>e[l]})}}return n.default=e,Object.freeze(n)}const C=X(E);function k({last:e,className:n,...l}){return t.jsx(u.GridTableRow,{className:b.cn(e&&"*:after:hidden",n),...l})}function J({columns:e,sort:n,isMedium:l}){return t.jsx(u.GridTableRow,{noHover:!0,height:"35px",children:e.map(s=>{if(s.hideOnMedium&&l)return null;const a=s.sort,o=a&&n?{direction:n.state?.field===a.field?n.state.sort:null,onSort:()=>n.set(a.field,a.defaultDirection??"desc")}:void 0,p=typeof s.header=="function"?s.header(o):s.header;return t.jsx(u.GridTableHead,{justify:s.align==="right"?"end":s.align==="center"?"center":"start",size:"sm",gapBefore:s.gapBefore,className:b.cn(s.className,s.headerClassName),children:o?t.jsxs(t.Fragment,{children:[t.jsx(F.HeadCell,{title:p,sortDirection:o.direction??void 0,onSort:o.onSort}),s.headerTip&&t.jsx(P.HelpTip,{className:"ml-1.5",children:s.headerTip})]}):t.jsxs(t.Fragment,{children:[p,s.headerTip&&t.jsx(P.HelpTip,{className:"ml-1.5",children:s.headerTip})]})},s.id)})})}function K({row:e,columns:n,last:l,rowHeight:s,isSmall:a,isMedium:o,mobileColumnsXs:p,mobileColumnsMd:m,rowTestId:g}){const f=C.useMemo(()=>({pool:e.pool,tokensList:e.tokensList,underlyingToken:e.tokensList?.[e.pool.underlyingToken],apy:e.apy,points:e.points,loading:e.loading,chainId:e.chainId,isMobile:a}),[e,a]),_=o?n.filter(i=>!i.hideOnMedium):n;if(a){const i=n.filter(r=>!r.hideOnMobile),[T,...y]=i,x=r=>r.mobileCell?r.mobileCell(f):r.cell(f);return t.jsx(k,{last:l,href:e.href,"data-testid":g,children:t.jsx(u.GridTableCell,{span:"full",size:"sm",className:"px-3 py-0!",children:t.jsx(v.TableLineSm,{title:T?x(T):void 0,columnsXs:p,columnsMd:m,className:"w-full",children:y.map(r=>t.jsx(v.TableCellSm,{title:r.mobileTitle,children:x(r)},r.id))})})})}return t.jsx(k,{className:b.cn(e.pool.poolType==="rwa"&&"[&>*]:before:bg-[#7fc8ea]/40"),last:l,href:e.href,height:`${s}px`,"data-testid":g,children:_.map(i=>t.jsx(u.GridTableCell,{textAlign:i.align??"left",size:"sm",gapBefore:i.gapBefore,className:i.className,children:i.cell(f)},i.id))})}function U({columns:e,rows:n,loading:l=!1,partialLoading:s=!1,error:a,emptyContent:o,skeletonRows:p=5,rowHeight:m=75,size:g="lg",mobileColumnsXs:f=3,mobileColumnsMd:_=3,className:i,wrapperClassName:T,sort:y,rowTestId:x,loaderTestId:r}){const B=x??I.poolTableTestIds.poolLine,S=r??I.poolTableTestIds.poolLineLoading,h=G.useIsMobile(),j=G.useIsMedium(),c=C.useMemo(()=>j?e.filter(d=>!d.hideOnMedium):e,[e,j]),$=C.useMemo(()=>h?"1fr":c.map(d=>d.width??"1fr").join(" "),[h,c]),q=C.useMemo(()=>{const d=c.map((z,A)=>{const M=z.gapBefore;if(!M||M==="none")return null;const D=M==="md"?"pl-10":"pl-5";return`[&:nth-child(${A+1})]:${D}`}).filter(Boolean).join(" "),N=c[c.length-1]?.className?.includes("pr-4")?"last:pr-4":"";return b.cn("px-1 py-2 first:pl-4",N,d)},[c]),L=l||!n,H=!L&&n&&n.length===0,O=s&&!L;return a?null:H&&o?t.jsx(t.Fragment,{children:o}):t.jsxs(u.GridTable,{cols:$,gap:0,size:g,wrapperClassName:b.cn("overflow-visible",W.RWA_POOL_ROW_HOVER_WRAPPER_CLASS,T),className:i,children:[!h&&t.jsx(u.GridTableHeader,{children:t.jsx(J,{columns:e,sort:y,isMedium:j})}),t.jsx(V.TableLoaderGuard,{showGuard:L,rows:p,columns:h?1:c.length,height:`${m}px`,"data-testid":S,cellClassName:h?"px-1 py-2 first:pl-4 last:pr-4":q,children:t.jsxs(u.GridTableBody,{children:[n?.map((d,R,N)=>t.jsx(K,{row:d,columns:e,last:R===N.length-1&&!O,rowHeight:m,isSmall:h,isMedium:j,mobileColumnsXs:f,mobileColumnsMd:_,rowTestId:B},`${d.chainId}-${d.pool.address}`)),O&&t.jsx(Q.GridLoadingLine,{height:`${m}px`,columns:c.length,cellClassName:q,"data-testid":S,last:!0})]})})]})}exports.PoolTable=U;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),A=require("react"),E=require("../../head-cell/head-cell.cjs"),I=require("../../help-tip/help-tip.cjs"),Q=require("../../table/grid-loading-line.cjs"),u=require("../../table/grid-table.cjs"),X=require("../../table/table-loader-guard.cjs"),O=require("../../table/table-sm.cjs");require("@gearbox-protocol/sdk/common-utils");require("@gearbox-protocol/sdk");const P=require("../../../hooks/use-media-query.cjs"),R=require("../../../test-ids/pool-table.cjs"),C=require("../../../utils/cn.cjs");function J(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const s=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(n,l,s.get?s:{enumerable:!0,get:()=>e[l]})}}return n.default=e,Object.freeze(n)}const j=J(A);function k({last:e,className:n,...l}){return t.jsx(u.GridTableRow,{className:C.cn(e&&"*:after:hidden",n),...l})}function K({columns:e,sort:n,isMedium:l}){return t.jsx(u.GridTableRow,{noHover:!0,height:"35px",children:e.map(s=>{if(s.hideOnMedium&&l)return null;const a=s.sort,o=a&&n?{direction:n.state?.field===a.field?n.state.sort:null,onSort:()=>n.set(a.field,a.defaultDirection??"desc")}:void 0,p=typeof s.header=="function"?s.header(o):s.header;return t.jsx(u.GridTableHead,{justify:s.align==="right"?"end":s.align==="center"?"center":"start",size:"sm",gapBefore:s.gapBefore,className:C.cn(s.className,s.headerClassName),children:o?t.jsxs(t.Fragment,{children:[t.jsx(E.HeadCell,{title:p,sortDirection:o.direction??void 0,onSort:o.onSort}),s.headerTip&&t.jsx(I.HelpTip,{className:"ml-1.5",children:s.headerTip})]}):t.jsxs(t.Fragment,{children:[p,s.headerTip&&t.jsx(I.HelpTip,{className:"ml-1.5",children:s.headerTip})]})},s.id)})})}function U({row:e,columns:n,last:l,rowHeight:s,isSmall:a,isMedium:o,mobileColumnsXs:p,mobileColumnsMd:m,rowTestId:b}){const f=j.useMemo(()=>({pool:e.pool,tokensList:e.tokensList,underlyingToken:e.tokensList?.[e.pool.underlyingToken],apy:e.apy,points:e.points,loading:e.loading,chainId:e.chainId,isMobile:a}),[e,a]),_=o?n.filter(i=>!i.hideOnMedium):n;if(a){const i=n.filter(r=>!r.hideOnMobile),[g,...y]=i,T=r=>r.mobileCell?r.mobileCell(f):r.cell(f);return t.jsx(k,{last:l,href:e.href,"data-testid":b,children:t.jsx(u.GridTableCell,{span:"full",size:"sm",className:"px-3 py-0!",children:t.jsx(O.TableLineSm,{title:g?T(g):void 0,columnsXs:p,columnsMd:m,className:"w-full",children:y.map(r=>t.jsx(O.TableCellSm,{title:r.mobileTitle,children:T(r)},r.id))})})})}return t.jsx(k,{last:l,href:e.href,height:`${s}px`,"data-testid":b,children:_.map(i=>t.jsx(u.GridTableCell,{textAlign:i.align??"left",size:"sm",gapBefore:i.gapBefore,className:i.className,children:i.cell(f)},i.id))})}function V({columns:e,rows:n,loading:l=!1,partialLoading:s=!1,error:a,emptyContent:o,skeletonRows:p=5,rowHeight:m=75,size:b="lg",mobileColumnsXs:f=3,mobileColumnsMd:_=3,className:i,wrapperClassName:g,sort:y,rowTestId:T,loaderTestId:r}){const B=T??R.poolTableTestIds.poolLine,q=r??R.poolTableTestIds.poolLineLoading,h=P.useIsMobile(),x=P.useIsMedium(),c=j.useMemo(()=>x?e.filter(d=>!d.hideOnMedium):e,[e,x]),$=j.useMemo(()=>h?"1fr":c.map(d=>d.width??"1fr").join(" "),[h,c]),v=j.useMemo(()=>{const d=c.map((z,D)=>{const N=z.gapBefore;if(!N||N==="none")return null;const F=N==="md"?"pl-10":"pl-5";return`[&:nth-child(${D+1})]:${F}`}).filter(Boolean).join(" "),M=c[c.length-1]?.className?.includes("pr-4")?"last:pr-4":"";return C.cn("px-1 py-2 first:pl-4",M,d)},[c]),L=l||!n,H=!L&&n&&n.length===0,G=s&&!L;return a?null:H&&o?t.jsx(t.Fragment,{children:o}):t.jsxs(u.GridTable,{cols:$,gap:0,size:b,wrapperClassName:C.cn("overflow-visible",g),className:i,children:[!h&&t.jsx(u.GridTableHeader,{children:t.jsx(K,{columns:e,sort:y,isMedium:x})}),t.jsx(X.TableLoaderGuard,{showGuard:L,rows:p,columns:h?1:c.length,height:`${m}px`,"data-testid":q,cellClassName:h?"px-1 py-2 first:pl-4 last:pr-4":v,children:t.jsxs(u.GridTableBody,{children:[n?.map((d,S,M)=>t.jsx(U,{row:d,columns:e,last:S===M.length-1&&!G,rowHeight:m,isSmall:h,isMedium:x,mobileColumnsXs:f,mobileColumnsMd:_,rowTestId:B},`${d.chainId}-${d.pool.address}`)),G&&t.jsx(Q.GridLoadingLine,{height:`${m}px`,columns:c.length,cellClassName:v,"data-testid":q,last:!0})]})})]})}exports.PoolTable=V;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),p=require("@gearbox-protocol/sdk"),y=require("../../network-icon/network-icon.cjs"),w=require("../../short-string/short-string.cjs"),b=require("../../token-symbol/token-symbol.cjs"),o=require("../../typed-intl/index.cjs"),x=require("../../typography/typography.cjs"),c=require("./components/cells/cells.cjs"),d=require("./components/cells/cells.styles.cjs"),T=require("./components/rewards-tooltip/rewards-tooltip.cjs");require("./components/rewards-tooltip/rewards-tooltip-root.cjs");require("../../tooltip/simple-tooltip.cjs");require("../../tooltip/tooltip.cjs");require("@fortawesome/free-solid-svg-icons");require("viem");require("../../icon-button/icon-button.cjs");require("../../icons/fa-icon.cjs");require("../../separate-line/separate-line.cjs");require("../../skeleton/skeleton.cjs");require("react");require("clsx");require("tailwind-merge");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../utils/z-index.cjs");require("../../tip-card/tip-card.cjs");require("../../vertical-indicator/vertical-indicator.cjs");require("../../vertical-list/vertical-list.cjs");require("../../help-tip/help-tip.cjs");require("./components/feature/feature.styles.cjs");require("../../points-icon/points-icon.cjs");function u(e,a,t){const s=e?.header??r.jsx(o.FormattedMessageTyped,{messageId:e?.headerMessageId??a});let i;if(e?.headerTip!==null){const n=e?.headerTipMessageId??t;i=e?.headerTip??(n&&r.jsx(o.FormattedMessageTyped,{messageId:n}))}return{header:s,headerTip:i,mobileTitle:e?.mobileTitle??s}}function f({ctx:e}){const{strategy:a,targetToken:t,row:s}=e,i=!!s.disabledStyle,n=!!a.strategyMarketType?.includes("rwa"),l=e.isMobile||e.isDesktop?38:26;return r.jsx("div",{className:"flex flex-col-auto",children:r.jsxs(d.TitleGrid,{children:[r.jsxs("div",{className:"flex items-center gap-1.5 pr-2 leading-none",children:[r.jsx(d.DisabledWrap,{disabled:i,children:r.jsx(y.NetworkIcon,{network:a.network,isTest:!1,size:14,showTooltip:!0})}),r.jsx(d.DisabledWrap,{disabled:i,children:r.jsx(b.TokenSymbol,{token:t,size:24})})]}),r.jsxs("div",{className:"flex items-center gap-x-3",children:[r.jsx(w.ShortString,{maxLength:l,children:a.name}),n&&r.jsx(c.RWAFeature,{disabledStyle:i}),s.isZeroSlippagePair&&r.jsx(c.ZeroSlippageFeature,{token:s.zeroSlippageToken,disabledStyle:i})]}),i&&r.jsx("div",{}),i&&r.jsx(x.Typography,{as:"span",variant:"caption",style:{lineHeight:"100%"},children:r.jsx(o.FormattedMessageTyped,{messageId:"components.strategiesTable.line.name.disabled"})})]})})}function h({ctx:e,mobile:a=!1}){const{rewardsCellInfo:t,row:s,targetTokenAddress:i,tokensList:n}=e,l=!!s.disabledStyle,m=r.jsx(c.StrategiesRewardsCell,{maxAPY:t.maxAPY,bonusAPY:t.bonusAPY,rewards:t.rewards,rewardRates:t.rewardRates,debtRewards:t.debtRewards,debtRewardRates:t.debtRewardRates,hasAPY:t.hasAPY??!1,hasRewards:t.hasRewards??!1,hasDebtRewards:t.hasDebtRewards??!1,apyLoading:t.apyLoading,disabledStyle:l}),g=a?r.jsx("div",{className:"pt-1",children:m}):m;return l?g:r.jsx(T.RewardsTooltip,{cellInfo:t,targetToken:i,apyListByNetwork:s.apyListByNetwork,tokensList:n,strategyCreditManagers:s.strategyCreditManagers,children:r.jsx("div",{children:g})})}function q(e){const{header:a,mobileTitle:t}=u(e,"components.strategiesTable.head.name");return{id:"strategy",header:a,width:e?.width??"1fr",mediumWidth:e?.mediumWidth,align:"left",className:"pl-4",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"strategyName",defaultDirection:"desc"},cell:s=>r.jsx(f,{ctx:s}),mobileTitle:t}}function _(e){const{header:a,mobileTitle:t}=u(e,"components.strategiesTable.head.rewards");return{id:"rewards",header:a,width:e?.width??"310px",mediumWidth:e?.mediumWidth??"270px",align:"left",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"apy",defaultDirection:"desc"},cell:s=>r.jsx(h,{ctx:s}),mobileCell:s=>r.jsx(h,{ctx:s,mobile:!0}),mobileTitle:t}}function j(e){const{header:a,mobileTitle:t}=u(e,"components.strategiesTable.head.leverage");return{id:"leverage",header:a,width:e?.width??"150px",mediumWidth:e?.mediumWidth??"76px",align:"right",className:"pr-4",headerClassName:"pr-4",cell:s=>`×${p.formatLeverage(Number(s.row.maxLeverage),0)}`,mobileTitle:t}}function k(e){return e}exports.customStrategyColumn=k;exports.strategyColumn=q;exports.strategyLeverageColumn=j;exports.strategyRewardsColumn=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),p=require("@gearbox-protocol/sdk"),y=require("../../network-icon/network-icon.cjs"),w=require("../../short-string/short-string.cjs"),b=require("../../token-symbol/token-symbol.cjs"),o=require("../../typed-intl/index.cjs"),x=require("../../typography/typography.cjs"),c=require("./components/cells/cells.cjs"),d=require("./components/cells/cells.styles.cjs"),T=require("./components/rewards-tooltip/rewards-tooltip.cjs");require("./components/rewards-tooltip/rewards-tooltip-root.cjs");require("../../tooltip/simple-tooltip.cjs");require("../../tooltip/tooltip.cjs");require("@fortawesome/free-solid-svg-icons");require("viem");require("../../icon-button/icon-button.cjs");require("../../icons/fa-icon.cjs");require("../../separate-line/separate-line.cjs");require("../../skeleton/skeleton.cjs");require("react");require("clsx");require("tailwind-merge");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../utils/z-index.cjs");require("../../tip-card/tip-card.cjs");require("../../vertical-indicator/vertical-indicator.cjs");require("../../vertical-list/vertical-list.cjs");require("../../help-tip/help-tip.cjs");require("./components/feature/feature.styles.cjs");require("../../points-icon/points-icon.cjs");function u(e,a,t){const s=e?.header??r.jsx(o.FormattedMessageTyped,{messageId:e?.headerMessageId??a});let i;if(e?.headerTip!==null){const n=e?.headerTipMessageId??t;i=e?.headerTip??(n&&r.jsx(o.FormattedMessageTyped,{messageId:n}))}return{header:s,headerTip:i,mobileTitle:e?.mobileTitle??s}}function f({ctx:e}){const{strategy:a,targetToken:t,row:s}=e,i=!!s.disabledStyle,n=!!a.strategyMarketType?.includes("rwa"),l=e.isMobile||e.isDesktop?38:26;return r.jsx("div",{className:"flex flex-col-auto",children:r.jsxs(d.TitleGrid,{children:[r.jsxs("div",{className:"flex items-center gap-1.5 pr-2 leading-none",children:[r.jsx(d.DisabledWrap,{disabled:i,children:r.jsx(y.NetworkIcon,{network:a.network,isTest:!1,size:14,showTooltip:!0})}),r.jsx(d.DisabledWrap,{disabled:i,children:r.jsx(b.TokenSymbol,{token:t,size:24})})]}),r.jsxs("div",{className:"flex items-center gap-x-2",children:[r.jsx(w.ShortString,{maxLength:l,children:a.name}),n&&r.jsx(c.RWAFeature,{disabledStyle:i}),s.isZeroSlippagePair&&r.jsx(c.ZeroSlippageFeature,{token:s.zeroSlippageToken,disabledStyle:i})]}),i&&r.jsx("div",{}),i&&r.jsx(x.Typography,{as:"span",variant:"caption",style:{lineHeight:"100%"},children:r.jsx(o.FormattedMessageTyped,{messageId:"components.strategiesTable.line.name.disabled"})})]})})}function h({ctx:e,mobile:a=!1}){const{rewardsCellInfo:t,row:s,targetTokenAddress:i,tokensList:n}=e,l=!!s.disabledStyle,m=r.jsx(c.StrategiesRewardsCell,{maxAPY:t.maxAPY,bonusAPY:t.bonusAPY,rewards:t.rewards,rewardRates:t.rewardRates,debtRewards:t.debtRewards,debtRewardRates:t.debtRewardRates,hasAPY:t.hasAPY??!1,hasRewards:t.hasRewards??!1,hasDebtRewards:t.hasDebtRewards??!1,apyLoading:t.apyLoading,disabledStyle:l}),g=a?r.jsx("div",{className:"pt-1",children:m}):m;return l?g:r.jsx(T.RewardsTooltip,{cellInfo:t,targetToken:i,apyListByNetwork:s.apyListByNetwork,tokensList:n,strategyCreditManagers:s.strategyCreditManagers,children:r.jsx("div",{children:g})})}function q(e){const{header:a,mobileTitle:t}=u(e,"components.strategiesTable.head.name");return{id:"strategy",header:a,width:e?.width??"1fr",mediumWidth:e?.mediumWidth,align:"left",className:"pl-4",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"strategyName",defaultDirection:"desc"},cell:s=>r.jsx(f,{ctx:s}),mobileTitle:t}}function _(e){const{header:a,mobileTitle:t}=u(e,"components.strategiesTable.head.rewards");return{id:"rewards",header:a,width:e?.width??"310px",mediumWidth:e?.mediumWidth??"270px",align:"left",sort:e?.sortField!==void 0?{field:e.sortField,defaultDirection:"desc"}:{field:"apy",defaultDirection:"desc"},cell:s=>r.jsx(h,{ctx:s}),mobileCell:s=>r.jsx(h,{ctx:s,mobile:!0}),mobileTitle:t}}function j(e){const{header:a,mobileTitle:t}=u(e,"components.strategiesTable.head.leverage");return{id:"leverage",header:a,width:e?.width??"150px",mediumWidth:e?.mediumWidth??"76px",align:"right",className:"pr-4",headerClassName:"pr-4",cell:s=>`×${p.formatLeverage(Number(s.row.maxLeverage),0)}`,mobileTitle:t}}function k(e){return e}exports.customStrategyColumn=k;exports.strategyColumn=q;exports.strategyLeverageColumn=j;exports.strategyRewardsColumn=_;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("@gearbox-protocol/sdk"),A=require("../../../../rwa-styles/index.cjs"),P=require("../../../../skeleton/skeleton.cjs");require("react");const q=require("../../../../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../../../utils/z-index.cjs");const T=require("../../../../tooltip/simple-tooltip.cjs");require("../../../../tooltip/tooltip.cjs");const d=require("../../../../typed-intl/index.cjs"),f=require("../apy-feature/apy-feature.cjs"),b=require("../points-feature/points-feature.cjs"),l=require("./cells.styles.cjs");function w({token:r,disabledStyle:n}){const o=()=>e.jsx("span",{className:q.cn(n&&"opacity-60 pointer-events-none"),children:e.jsx(f.APYFeature,{children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.0slippage"})})});return e.jsx(e.Fragment,{children:n?o():e.jsx(T.SimpleTooltip,{placement:"top",triangle:!1,title:o(),children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.0slippage.tip",values:{symbol:r?.title||""}})})})}function R({disabledStyle:r}){const n=e.jsx("span",{className:q.cn("rounded-xl px-[10px] py-1 text-xs leading-none",A.RWA_GRADIENT_BORDER_CLASS,r&&"opacity-60 pointer-events-none"),children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.rwa"})});return e.jsx(e.Fragment,{children:r?n:e.jsx(T.SimpleTooltip,{placement:"top",triangle:!1,title:n,children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.rwa.tip"})})})}function k({maxAPY:r,bonusAPY:n,rewards:o,rewardRates:m,debtRewards:g,debtRewardRates:x,hasAPY:c,hasRewards:a,hasDebtRewards:j,disabledStyle:p,apyLoading:_,apyFormat:t="feature"}){const s=i=>t==="feature"?e.jsxs(f.APYFeature,{children:[u.formatPercentage(i),"% APR"]}):`${u.formatPercentage(i)}%`,S=i=>t==="feature"?e.jsxs(f.APYFeature,{children:["exp. ",u.formatPercentage(i),"% APR"]}):`exp. ${u.formatPercentage(i)}%`,v=()=>{const i=[c?e.jsx(P.Skeleton,{className:"inline-block align-text-bottom",width:50,loading:_,children:s(r)},"apy"):void 0,a||j?e.jsx(y,{rewards:o,rewardRates:m,debtRewards:g,debtRewardRates:x,hasRewards:a,hasDebtRewards:j,disabledStyle:p},"points"):void 0].filter(Boolean);return i.flatMap((h,F)=>F===i.length-1?[h]:[h,e.jsx(l.Plus,{children:"+"},`plus-${F}`)])};return e.jsxs("div",{className:"flex-row-row items-center gap-2",children:[v(),n&&e.jsx(l.Plus,{children:":"}),n&&e.jsx(P.Skeleton,{className:"inline-block align-text-bottom",loading:_,width:50,children:S(n.value)})]})}function y({rewards:r,rewardRates:n,debtRewards:o,debtRewardRates:m,hasRewards:g,hasDebtRewards:x,disabledStyle:c,theme:a}){return(()=>{const p=[g?r.map((t,s)=>e.jsx("span",{children:e.jsx(l.DisabledWrap,{disabled:c,children:e.jsx(b.PointsFeature,{reward:t,points:n?.[s]||0n,theme:a})})},["base",t.multiplier,t.name,t.type,t.units].join("-"))):void 0,x?o.map((t,s)=>e.jsx("span",{children:e.jsx(l.DisabledWrap,{disabled:c,children:e.jsx(b.PointsFeature,{reward:t,points:m?.[s]||0n,theme:a})})},["debt",t.multiplier,t.name,t.type,t.units,t.cm].join("-"))):void 0].filter(Boolean);return p.flatMap((t,s)=>s===p.length-1?[t]:[t,e.jsx(l.Plus,{children:"+"},`plus-points-${s}`)])})()}exports.RWAFeature=R;exports.StrategiesRewardsCell=k;exports.StrategyPoints=y;exports.ZeroSlippageFeature=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("@gearbox-protocol/sdk"),A=require("../../../../rwa-styles/index.cjs"),P=require("../../../../skeleton/skeleton.cjs");require("react");const q=require("../../../../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../../../utils/z-index.cjs");const T=require("../../../../tooltip/simple-tooltip.cjs");require("../../../../tooltip/tooltip.cjs");const d=require("../../../../typed-intl/index.cjs"),f=require("../apy-feature/apy-feature.cjs"),b=require("../points-feature/points-feature.cjs"),l=require("./cells.styles.cjs");function w({token:s,disabledStyle:n}){const r=()=>e.jsx("span",{className:q.cn(n&&"opacity-60 pointer-events-none"),children:e.jsx(f.APYFeature,{children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.0slippage"})})});return e.jsx(e.Fragment,{children:n?r():e.jsx(T.SimpleTooltip,{placement:"top",triangle:!1,title:r(),children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.0slippage.tip",values:{symbol:s?.title||""}})})})}function R({disabledStyle:s,tooltip:n=e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.rwa.tip"})}){const r=e.jsx("span",{className:q.cn("rounded-xl px-[6px] py-1 text-xs leading-none",A.RWA_GRADIENT_BORDER_CLASS,s&&"opacity-60 pointer-events-none"),children:e.jsx(d.FormattedMessageTyped,{messageId:"components.strategiesTable.line.rwa"})});return e.jsx(e.Fragment,{children:s?r:e.jsx(T.SimpleTooltip,{placement:"top",triangle:!1,title:r,children:n})})}function k({maxAPY:s,bonusAPY:n,rewards:r,rewardRates:m,debtRewards:g,debtRewardRates:x,hasAPY:c,hasRewards:a,hasDebtRewards:j,disabledStyle:p,apyLoading:_,apyFormat:t="feature"}){const i=o=>t==="feature"?e.jsxs(f.APYFeature,{children:[u.formatPercentage(o),"% APR"]}):`${u.formatPercentage(o)}%`,S=o=>t==="feature"?e.jsxs(f.APYFeature,{children:["exp. ",u.formatPercentage(o),"% APR"]}):`exp. ${u.formatPercentage(o)}%`,v=()=>{const o=[c?e.jsx(P.Skeleton,{className:"inline-block align-text-bottom",width:50,loading:_,children:i(s)},"apy"):void 0,a||j?e.jsx(y,{rewards:r,rewardRates:m,debtRewards:g,debtRewardRates:x,hasRewards:a,hasDebtRewards:j,disabledStyle:p},"points"):void 0].filter(Boolean);return o.flatMap((h,F)=>F===o.length-1?[h]:[h,e.jsx(l.Plus,{children:"+"},`plus-${F}`)])};return e.jsxs("div",{className:"flex-row-row items-center gap-2",children:[v(),n&&e.jsx(l.Plus,{children:":"}),n&&e.jsx(P.Skeleton,{className:"inline-block align-text-bottom",loading:_,width:50,children:S(n.value)})]})}function y({rewards:s,rewardRates:n,debtRewards:r,debtRewardRates:m,hasRewards:g,hasDebtRewards:x,disabledStyle:c,theme:a}){return(()=>{const p=[g?s.map((t,i)=>e.jsx("span",{children:e.jsx(l.DisabledWrap,{disabled:c,children:e.jsx(b.PointsFeature,{reward:t,points:n?.[i]||0n,theme:a})})},["base",t.multiplier,t.name,t.type,t.units].join("-"))):void 0,x?r.map((t,i)=>e.jsx("span",{children:e.jsx(l.DisabledWrap,{disabled:c,children:e.jsx(b.PointsFeature,{reward:t,points:m?.[i]||0n,theme:a})})},["debt",t.multiplier,t.name,t.type,t.units,t.cm].join("-"))):void 0].filter(Boolean);return p.flatMap((t,i)=>i===p.length-1?[t]:[t,e.jsx(l.Plus,{children:"+"},`plus-points-${i}`)])})()}exports.RWAFeature=R;exports.StrategiesRewardsCell=k;exports.StrategyPoints=y;exports.ZeroSlippageFeature=w;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),z=require("@fortawesome/free-solid-svg-icons"),a=require("@gearbox-protocol/sdk"),k=require("viem"),B=require("../../../../icon-button/icon-button.cjs"),D=require("../../../../icons/fa-icon.cjs"),E=require("../../../../separate-line/separate-line.cjs"),j=require("../../../../skeleton/skeleton.cjs");require("react");const H=require("../../../../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../../../utils/z-index.cjs");const h=require("../../../../tip-card/tip-card.cjs"),o=require("../../../../typed-intl/index.cjs"),l=require("../../../../typography/typography.cjs"),F=require("../../../../vertical-indicator/vertical-indicator.cjs"),I=require("../../../../vertical-list/vertical-list.cjs"),f=require("../../../../vspace/vspace.cjs"),c=require("../apy-feature/apy-feature.cjs"),p=require("../points-feature/points-feature.cjs"),O=require("./rewards-tooltip-root.cjs"),A=0;function U({cellInfo:r,targetToken:n,apyListByNetwork:s,tokensList:d,strategyCreditManagers:T,onClose:b,theme:Y="modal"}){const{maxAPY:R,minCreditManager:i,bonusAPY:w,maxLeverage:_,apyLoading:m,hasPoints:M,isPointsWithAPY:L,rewards:v,debtRewards:P,rewardRates:S,debtRewardRates:N,quotaRate:$}=r,q=s?.[A]?.apyList?.[n]||0,u=s?.[i?.chainId||A]?.extraCollateralAPYList?.[i?.pool||k.zeroAddress]?.[n],V=L||!M;return e.jsxs(O.RewardsTooltipRoot,{theme:Y,children:[b&&e.jsx("div",{style:{position:"absolute",top:"-10px",right:"-10px"},children:e.jsx(B.IconButton,{size:26,buttonType:"filledDark",onClick:b,children:e.jsx(D.FaIcon,{icon:z.faXmark,style:{width:"12px",height:"12px"}})})}),e.jsx(h.TipCard,{textColor:"dark",children:e.jsxs(y,{title:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.without.title"}),children:[q>0&&e.jsx(j.Skeleton,{className:"inline-block align-text-bottom",width:50,loading:m,children:e.jsx(c.APYFeatureTooltip,{value:`${a.formatPercentage(q)}%`})}),u&&u.value>0&&e.jsx(j.Skeleton,{className:"inline-block align-text-bottom",width:50,loading:m,children:e.jsx(c.APYFeatureTooltip,{title:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.without.extra"}),tip:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.without.extra.tip"}),value:`${a.formatPercentage(u.value)}%`})}),v.map(t=>e.jsx(p.PointsFeatureTooltip,{reward:t,points:t.multiplier},["base",t.multiplier,t.name,t.type,t.units].join("-"))),P.map(t=>e.jsx(p.PointsFeatureTooltip,{reward:t,points:t.multiplier,tip:e.jsx(C,{tokensList:d,strategyCreditManagers:T,reward:t})},["debt",t.multiplier,t.name,t.type,t.units,t.cm].join("-")))]})}),e.jsx(f.VSpace,{height:16}),e.jsxs(h.TipCard,{textColor:"dark",borderColor:"gradient",children:[e.jsx(I.VerticalList,{children:e.jsxs(y,{title:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.with.title",values:{leverage:_>0?`${a.formatLeverage(Number(_))}×`:""}}),children:[V&&e.jsx(j.Skeleton,{className:"inline-block align-text-bottom",width:50,loading:m,children:e.jsx(c.APYFeatureTooltip,{value:`${a.formatPercentage(R)}%`})}),v.map((t,x)=>{const g=S?.[x]||0n;return e.jsx(p.PointsFeatureTooltip,{reward:t,points:g},["base",t.multiplier,t.name,t.type,t.units].join("-"))}),P.map((t,x)=>{const g=N?.[x]||0n;return e.jsx(p.PointsFeatureTooltip,{reward:t,points:g,tip:e.jsx(C,{tokensList:d,strategyCreditManagers:T,reward:t})},["debt",t.multiplier,t.name,t.type,t.units,t.cm].join("-"))})]})}),e.jsx(E.SeparateLine,{margin:16}),e.jsxs(I.VerticalList,{children:[i&&e.jsx(F.VerticalIndicator,{label:e.jsx(l.Typography,{as:"span",color:"secondary",children:e.jsx(o.FormattedMessageTyped,{values:{symbol:d?.[i.underlyingToken]?.title||"Utilization"},messageId:"components.rewardsTooltip.with.borrowRate"})}),value:e.jsx(l.Typography,{as:"span",color:"secondary",children:`${a.formatPercentage(i.baseBorrowRate)}%`})}),i&&e.jsx(F.VerticalIndicator,{label:e.jsx(l.Typography,{as:"span",color:"secondary",children:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.with.quotaRate"})}),value:e.jsx(l.Typography,{as:"span",color:"secondary",children:`${a.formatPercentage(Number($))}%`})})]})]}),w&&e.jsxs(e.Fragment,{children:[e.jsx(f.VSpace,{height:16}),e.jsx(h.TipCard,{backgroundColor:"gray-10",textColor:"light",borderColor:"dark",children:e.jsx(y,{title:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.with.bonusAPY.title"}),children:e.jsx("div",{className:"flex-col-12",children:e.jsx(c.APYFeatureTooltip,{theme:"light",tip:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.with.bonusAPY.tip"}),value:`${a.formatPercentage(w.value)}%`})})})})]})]})}function y({title:r,children:n,theme:s="main"}){return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:H.cn("flex-col-12",s==="main"?"mb-3":"mb-2"),children:e.jsx(l.Typography,{as:"span",variant:"bodySmall",weight:s==="main"?"bold":"normal",color:s==="main"?"default":"secondary",children:r})}),e.jsx("div",{className:"flex-row-row gap-2 w-full",children:n})]})}function C({reward:r,strategyCreditManagers:n,tokensList:s}){return r.cm==="any"?e.jsx(o.FormattedMessageTyped,{messageId:"components.strategiesTable.line.points.tipAny"}):e.jsx(o.FormattedMessageTyped,{messageId:"components.strategiesTable.line.points.tip",values:{symbol:s?.[n[r.cm]?.underlyingToken||k.zeroAddress]?.title||"unknown"}})}exports.RewardsTooltipContent=U;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),B=require("@fortawesome/free-solid-svg-icons"),a=require("@gearbox-protocol/sdk"),k=require("viem"),D=require("../../../../icon-button/icon-button.cjs"),E=require("../../../../icons/fa-icon.cjs"),W=require("../../../../separate-line/separate-line.cjs"),T=require("../../../../skeleton/skeleton.cjs");require("react");const H=require("../../../../../utils/cn.cjs");require("sonner");require("@gearbox-protocol/sdk/common-utils");require("luxon");require("../../../../../utils/z-index.cjs");const b=require("../../../../tip-card/tip-card.cjs"),o=require("../../../../typed-intl/index.cjs"),c=require("../../../../typography/typography.cjs"),I=require("../../../../vertical-indicator/vertical-indicator.cjs"),f=require("../../../../vertical-list/vertical-list.cjs"),A=require("../../../../vspace/vspace.cjs"),p=require("../apy-feature/apy-feature.cjs"),d=require("../points-feature/points-feature.cjs"),O=require("./rewards-tooltip-root.cjs"),U=0;function X({cellInfo:n,targetToken:r,apyListByNetwork:s,tokensList:m,strategyCreditManagers:_,onClose:v,theme:Y="modal"}){const{maxAPY:R,minCreditManager:i,bonusAPY:P,maxLeverage:F,apyLoading:u,hasPoints:L,isPointsWithAPY:M,rewards:x,debtRewards:g,rewardRates:S,debtRewardRates:N,quotaRate:$}=n,q=i?.chainId||U,h=s?.[q]?.apyList?.[r]||0,l=s?.[q]?.extraCollateralAPYList?.[i?.pool||k.zeroAddress]?.[r],V=M||!L,z=h>0||l!==void 0&&l.value>0||x.length>0||g.length>0;return e.jsxs(O.RewardsTooltipRoot,{theme:Y,children:[v&&e.jsx("div",{style:{position:"absolute",top:"-10px",right:"-10px"},children:e.jsx(D.IconButton,{size:26,buttonType:"filledDark",onClick:v,children:e.jsx(E.FaIcon,{icon:B.faXmark,style:{width:"12px",height:"12px"}})})}),z&&e.jsxs(e.Fragment,{children:[e.jsx(b.TipCard,{textColor:"dark",children:e.jsxs(w,{title:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.without.title"}),children:[h>0&&e.jsx(T.Skeleton,{className:"inline-block align-text-bottom",width:50,loading:u,children:e.jsx(p.APYFeatureTooltip,{value:`${a.formatPercentage(h)}%`})}),l&&l.value>0&&e.jsx(T.Skeleton,{className:"inline-block align-text-bottom",width:50,loading:u,children:e.jsx(p.APYFeatureTooltip,{title:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.without.extra"}),tip:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.without.extra.tip"}),value:`${a.formatPercentage(l.value)}%`})}),x.map(t=>e.jsx(d.PointsFeatureTooltip,{reward:t,points:t.multiplier},["base",t.multiplier,t.name,t.type,t.units].join("-"))),g.map(t=>e.jsx(d.PointsFeatureTooltip,{reward:t,points:t.multiplier,tip:e.jsx(C,{tokensList:m,strategyCreditManagers:_,reward:t})},["debt",t.multiplier,t.name,t.type,t.units,t.cm].join("-")))]})}),e.jsx(A.VSpace,{height:16})]}),e.jsxs(b.TipCard,{textColor:"dark",borderColor:"gradient",children:[e.jsx(f.VerticalList,{children:e.jsxs(w,{title:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.with.title",values:{leverage:F>0?`${a.formatLeverage(Number(F))}×`:""}}),children:[V&&e.jsx(T.Skeleton,{className:"inline-block align-text-bottom",width:50,loading:u,children:e.jsx(p.APYFeatureTooltip,{value:`${a.formatPercentage(R)}%`})}),x.map((t,j)=>{const y=S?.[j]||0n;return e.jsx(d.PointsFeatureTooltip,{reward:t,points:y},["base",t.multiplier,t.name,t.type,t.units].join("-"))}),g.map((t,j)=>{const y=N?.[j]||0n;return e.jsx(d.PointsFeatureTooltip,{reward:t,points:y,tip:e.jsx(C,{tokensList:m,strategyCreditManagers:_,reward:t})},["debt",t.multiplier,t.name,t.type,t.units,t.cm].join("-"))})]})}),e.jsx(W.SeparateLine,{margin:16}),e.jsxs(f.VerticalList,{children:[i&&e.jsx(I.VerticalIndicator,{label:e.jsx(c.Typography,{as:"span",color:"secondary",children:e.jsx(o.FormattedMessageTyped,{values:{symbol:m?.[i.underlyingToken]?.title||"Utilization"},messageId:"components.rewardsTooltip.with.borrowRate"})}),value:e.jsx(c.Typography,{as:"span",color:"secondary",children:`${a.formatPercentage(i.baseBorrowRate)}%`})}),i&&e.jsx(I.VerticalIndicator,{label:e.jsx(c.Typography,{as:"span",color:"secondary",children:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.with.quotaRate"})}),value:e.jsx(c.Typography,{as:"span",color:"secondary",children:`${a.formatPercentage(Number($))}%`})})]})]}),P&&e.jsxs(e.Fragment,{children:[e.jsx(A.VSpace,{height:16}),e.jsx(b.TipCard,{backgroundColor:"gray-10",textColor:"light",borderColor:"dark",children:e.jsx(w,{title:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.with.bonusAPY.title"}),children:e.jsx("div",{className:"flex-col-12",children:e.jsx(p.APYFeatureTooltip,{theme:"light",tip:e.jsx(o.FormattedMessageTyped,{messageId:"components.rewardsTooltip.with.bonusAPY.tip"}),value:`${a.formatPercentage(P.value)}%`})})})})]})]})}function w({title:n,children:r,theme:s="main"}){return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:H.cn("flex-col-12",s==="main"?"mb-3":"mb-2"),children:e.jsx(c.Typography,{as:"span",variant:"bodySmall",weight:s==="main"?"bold":"normal",color:s==="main"?"default":"secondary",children:n})}),e.jsx("div",{className:"flex-row-row gap-2 w-full",children:r})]})}function C({reward:n,strategyCreditManagers:r,tokensList:s}){return n.cm==="any"?e.jsx(o.FormattedMessageTyped,{messageId:"components.strategiesTable.line.points.tipAny"}):e.jsx(o.FormattedMessageTyped,{messageId:"components.strategiesTable.line.points.tip",values:{symbol:s?.[r[n.cm]?.underlyingToken||k.zeroAddress]?.title||"unknown"}})}exports.RewardsTooltipContent=X;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),fe=require("lightweight-charts"),f=require("react"),Ae=require("../../hooks/use-media-query.cjs"),de=require("../../utils/cn.cjs"),D=require("../../utils/colors.cjs"),U=require("./default-config.cjs"),H=require("./formatters.cjs"),Oe=require("./graph-current-value.cjs"),De=require("./graph-tooltip.cjs"),qe=require("./plugins/vertical-line.cjs");function ze(e){const m=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const N=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(m,s,N.get?N:{enumerable:!0,get:()=>e[s]})}}return m.default=e,Object.freeze(m)}const ge=ze(f);function ke(e,m,s){const N=e.labelText??"",h=e.value,w=h===void 0?"":typeof h=="number"?m==="$"?`$${H.formatExactValue(h,void 0,s)}`:m==="%"?`${H.formatExactValue(h,void 0,s)}%`:H.formatExactValue(h,m!=="none"&&m!=="%"&&m!=="$"?m:void 0,s):String(h);return{labelText:N,valueStr:w}}function je(e,m){for(let s=e.length-1;s>=0;s--)if(Number(e[s].time)<=m)return e[s].value;return 0}const ee=[{line:"#02c39a",top:"rgba(2, 195, 154, 0.56)",bottom:"rgba(2, 195, 154, 0.04)"},{line:"#3b82f6",top:"rgba(59, 130, 246, 0.56)",bottom:"rgba(59, 130, 246, 0.04)"},{line:"#ef4444",top:"rgba(239, 68, 68, 0.56)",bottom:"rgba(239, 68, 68, 0.04)"},{line:"#f59e0b",top:"rgba(245, 158, 11, 0.56)",bottom:"rgba(245, 158, 11, 0.04)"},{line:"#8b5cf6",top:"rgba(139, 92, 246, 0.56)",bottom:"rgba(139, 92, 246, 0.04)"},{line:"#ec4899",top:"rgba(236, 72, 153, 0.56)",bottom:"rgba(236, 72, 153, 0.04)"},{line:"#06b6d4",top:"rgba(6, 182, 212, 0.56)",bottom:"rgba(6, 182, 212, 0.04)"},{line:"#ea580c",top:"rgba(234, 88, 12, 0.56)",bottom:"rgba(234, 88, 12, 0.04)"},{line:"#84cc16",top:"rgba(132, 204, 22, 0.56)",bottom:"rgba(132, 204, 22, 0.04)"},{line:"#d946ef",top:"rgba(217, 70, 239, 0.56)",bottom:"rgba(217, 70, 239, 0.04)"},{line:"#0ea5e9",top:"rgba(14, 165, 233, 0.56)",bottom:"rgba(14, 165, 233, 0.04)"},{line:"#14b8a6",top:"rgba(20, 184, 166, 0.56)",bottom:"rgba(20, 184, 166, 0.04)"},{line:"#eab308",top:"rgba(234, 179, 8, 0.56)",bottom:"rgba(234, 179, 8, 0.04)"},{line:"#f43f5e",top:"rgba(244, 63, 94, 0.56)",bottom:"rgba(244, 63, 94, 0.04)"},{line:"#6366f1",top:"rgba(99, 102, 241, 0.56)",bottom:"rgba(99, 102, 241, 0.04)"},{line:"#10b981",top:"rgba(16, 185, 129, 0.56)",bottom:"rgba(16, 185, 129, 0.04)"},{line:"#78716c",top:"rgba(120, 113, 108, 0.56)",bottom:"rgba(120, 113, 108, 0.04)"},{line:"#64748b",top:"rgba(100, 116, 139, 0.56)",bottom:"rgba(100, 116, 139, 0.04)"},{line:"#475569",top:"rgba(71, 85, 105, 0.56)",bottom:"rgba(71, 85, 105, 0.04)"}],$e=137.5;function be(e){if(e<ee.length)return ee[e];const s=(e-ee.length)*$e%360,N=D.hslToHex(s,70,50),{topColor:h,bottomColor:w}=D.generateColorsFromBase(N);return{line:N,top:h,bottom:w}}function Be({series:e,className:m,showLegend:s=!1,onUnselectSeries:N,xMeasureUnit:h="time",yMeasureUnit:w="token",optionsOverrides:W,verticalLineOptions:S,currentValueDecimals:te,useSharedPriceScale:P=!1,showCurrentValue:Pe=!0,graphTitle:oe,yScaleMin:me,yScaleMinMultiple:he,visibleTimeFrom:A}){const L=f.useRef(null),V=f.useRef(new Map),re=f.useRef(!1),pe=f.useRef(!0),ne=f.useRef(null),Le=f.useRef(null),O=f.useRef(null),ae=f.useRef(null),K=f.useRef(null),y=Ae.useIsMobile(),M=ge.useMemo(()=>e.flatMap(t=>t.data),[e]),Te=ge.useMemo(()=>{if(e.length>0){const t=e[e.length-1];if(t.data.length>0)return t.data[t.data.length-1]}},[e]),[Ce,le]=f.useState(()=>{if(!Te)return;const t=new Map;for(const a of e)a.data.length>0&&t.set(a.label,a.data[a.data.length-1]);return t}),[ve,E]=f.useState(null),[xe,Se]=f.useState([]);f.useEffect(()=>{const t=()=>{try{if(L.current&&O.current){const l=O.current.clientWidth,c=O.current.clientHeight;L.current.resize(l,c)}}catch{}},a=O.current,r=a?new ResizeObserver(t):null;return K.current=r,a&&r?.observe(a),()=>{a&&r?.unobserve(a),r?.disconnect(),K.current=null}},[]),f.useEffect(()=>{if(!ae.current||re.current)return;const t=U.getDefaultOptions(),a=D.resolveCSSColor("hsl(var(--foreground))","rgb(0, 0, 0)"),r=fe.createChart(ae.current,{...t,rightPriceScale:{...t.rightPriceScale||{},visible:!y,textColor:a},...y&&{crosshair:{...t.crosshair,mode:fe.CrosshairMode.Magnet}},...W});return L.current=r,re.current=!0,()=>{K.current?.disconnect(),K.current=null,r.remove(),L.current=null,re.current=!1,V.current.clear()}},[y,W]),f.useEffect(()=>{const t=L.current;if(!t||e.length===0)return;const r=e.filter(o=>o.data.length>0).length<=1?me:he,l=h==="time"?H.getXFormatters(h,M):H.getXFormatters(h),c=M.map(o=>o.value),{formatter:u,tickmarksFormatter:d,updateVisibleRange:T,updateLastValues:p}=H.createAdaptiveYAxisFormatter(c,w,{yScaleMin:r});ne.current=T,Le.current=p;const F=e.filter(o=>o.data.length>0).map(o=>o.data[o.data.length-1].value);p(F);const k=U.getDefaultOptions();t.applyOptions({localization:{...k.localization||{},timeFormatter:o=>l.timeFormatter(parseFloat(o),void 0)},timeScale:{...k.timeScale||{},tickMarkFormatter:l.tickMarkFormatter,minBarSpacing:0}});const b=(M.length>0?Math.min(...M.map(o=>o.value)):0)<0,R=M.some(o=>o.value===0),C=!b&&R,x=e.length>1&&!P,v=e.length>1&&!P||y,_=D.resolveCSSColor("hsl(var(--foreground))","rgb(0, 0, 0)");t.applyOptions({rightPriceScale:{...k.rightPriceScale||{},visible:!v,textColor:_,...C&&{scaleMargins:{top:.3,bottom:0}}}});const X=new Set(V.current.keys()),se=new Set(e.map(o=>o.label));for(const o of X)if(!se.has(o)){const n=V.current.get(o);n&&(t.removeSeries(n),V.current.delete(o))}const Fe=U.getDefaultSeries(),ie=[];let J=0;for(let o=0;o<e.length;o++){const n=e[o],Z=be(o),q=n.lineColor??n.color??Z.line;let I,z;if(n.lineColor??n.color)if(n.topColor&&n.bottomColor)I=n.topColor,z=n.bottomColor;else if(n.topColor){const i=D.generateColorsFromBase(q);I=n.topColor,z=i.bottomColor}else if(n.bottomColor)I=D.generateColorsFromBase(q).topColor,z=n.bottomColor;else{const i=D.generateColorsFromBase(q);I=i.topColor,z=i.bottomColor}else I=n.topColor||Z.top,z=n.bottomColor||Z.bottom;if(n.data.length===0){const i=V.current.get(n.label);i&&(t.removeSeries(i),V.current.delete(n.label));continue}const Me=(n.data.length>0?Math.min(...n.data.map(i=>i.value)):0)<0,Ee=n.data.some(i=>i.value===0),_e=!Me&&Ee,Ne=P||!x||J===0?"right":`scale-${J}`;x&&ie.push({priceScaleId:Ne||"right",shouldPreventNegativeAxis:_e,seriesIndex:J});const we=(P||!x)&&r!==void 0&&typeof r=="number",Ve={lineColor:q,topColor:I,bottomColor:z,priceScaleId:Ne,priceFormat:{type:"custom",minMove:.01,formatter:we&&typeof r=="number"?i=>u(i<r?r:i):u,tickmarksFormatter:d},autoscaleInfoProvider:i=>{if(!we)return i();const G=i();if(G?.priceRange){const Y=r;G.priceRange.minValue=Y}return G}};let $=V.current.get(n.label);const B=n.data.map(i=>({...i,time:i.time}));if(A!==void 0&&B.length>0&&Number(B[0].time)>A){const i=Number(B[0].time),G=i-A,Y=86400,Ie=G>180*Y?7*Y:G>30*Y?Y:6*3600,ye=[];for(let ue=A;ue<i;ue+=Ie)ye.push({time:ue});B.unshift(...ye)}$?($.applyOptions(Ve),$.setData(B)):($=t.addSeries(fe.AreaSeries,{...Fe,...Ve}),$.setData(B),V.current.set(n.label,$)),J++}if(x&&ie.length>0)for(const o of ie)try{const n=t.priceScale(o.priceScaleId);n&&n.applyOptions({visible:!1,autoScale:!0,scaleMargins:{top:.1,bottom:.1,...o.shouldPreventNegativeAxis&&{top:.3,bottom:0}},alignLabels:!0,borderVisible:!0,borderColor:"rgba(224, 227, 235, 0.1)",entireTextOnly:!1,textColor:_})}catch(n){console.warn(`Failed to configure price scale ${o.priceScaleId} for series ${o.seriesIndex}:`,n)}else if(!x)try{const o=t.priceScale("right");o&&o.applyOptions({visible:!y,autoScale:!0,scaleMargins:{top:.1,bottom:r!==void 0||C?0:.1,...C&&{top:.3}},alignLabels:!0,borderVisible:!0,borderColor:"rgba(224, 227, 235, 0.1)",entireTextOnly:!1,textColor:_})}catch{}if(r!==void 0&&!y&&(P||!x)&&t.applyOptions({handleScroll:{vertTouchDrag:!1}}),M.length>0){const o=M.map(I=>Number(I.time)),n=Math.min(...o),Z=A!==void 0?Math.min(A,n):n,q=Math.max(...o);t.timeScale().setVisibleRange({from:Z,to:q})}pe.current&&(pe.current=!1);const ce=new Map;for(const o of e)o.data.length>0&&ce.set(o.label,o.data[o.data.length-1]);le(ce.size>0?ce:void 0)},[e,M,h,w,y,P,me,he,A]),f.useEffect(()=>{const t=L.current;if(!t||e.length===0)return;const a=e.length===1;let r;for(const c of e)if(c.data.length>0){r=c.data[c.data.length-1].time;break}if(!r)return;const l=c=>{const{time:u=r,seriesData:d,point:T}=c||{},p=Array.from(V.current.values());if(!T||!u){const j=new Map;for(const b of e)b.data.length>0&&j.set(b.label,b.data[b.data.length-1]);if(le(j.size>0?j:void 0),a||P)E(null);else if(p[0]&&r){const R=t.timeScale().timeToCoordinate(r),C=e[0];if(C.data.length>0){const x=C.data[C.data.length-1].value,v=p[0].priceToCoordinate(x);R!==null&&v!==null&&E({x:R,y:v})}}return}const F=new Map;let k;for(let j=0;j<e.length;j++){const b=e[j],R=p[j];if(!R)continue;const C=d?.get(R),x=C&&"value"in C?C.value:void 0;let v;if(x!==void 0)v=x;else if(a){const _=Number(u),X=b.data.length>0?Number(b.data[0].time):Number.POSITIVE_INFINITY;_<X?v=Number.NaN:v=b.data[b.data.length-1]?.value??0}else v=je(b.data,Number(u));Number.isNaN(v)||(k===void 0&&(k=v),F.set(b.label,{value:v,time:u}))}if(le(F),k!==void 0&&p[0]){const b=t.timeScale().timeToCoordinate(u),R=p[0].priceToCoordinate(k);if(b!==null&&R!==null){const C=O.current;if(C){const x=C.querySelector(".LightweightChart");if(x){const v=x.getBoundingClientRect(),_=C.getBoundingClientRect(),X=b+(v.left-_.left),se=R+(v.top-_.top);E({x:X,y:se})}else E({x:b,y:R})}else E({x:b,y:R})}else E(null)}else E(null)};return t.subscribeCrosshairMove(l),y&&t.subscribeClick(l),!a&&!P&&requestAnimationFrame(()=>{const c=Array.from(V.current.values());if(c[0]&&r&&e[0]?.data.length>0){const d=t.timeScale().timeToCoordinate(r),T=e[0].data[e[0].data.length-1].value,p=c[0].priceToCoordinate(T);d!==null&&p!==null&&E({x:d,y:p})}}),()=>{t.unsubscribeCrosshairMove(l),y&&t.unsubscribeClick(l)}},[e,P,y]),f.useEffect(()=>{const t=L.current;if(!t||e.length===0)return;const a=t.timeScale(),r=()=>{if(!ne.current)return;const l=a.getVisibleRange();if(!l)return;const c=Number(l.from),u=Number(l.to),d=[];for(const T of e)for(const p of T.data){const F=Number(p.time);F>=c&&F<=u&&d.push(p.value)}d.length>0&&ne.current(d)};return a.subscribeVisibleLogicalRangeChange(r),()=>{a.unsubscribeVisibleLogicalRangeChange(r)}},[e]),f.useEffect(()=>{const t=L.current,a=Array.from(V.current.values()),r=[];if(t&&a.length>0&&S){const l=U.getDefaultVerticalLine(),c=a[0];for(const u of S){const d=new qe.VertLine(t,c,u.xCoordinate,{...l,...u.options||{}});c.attachPrimitive(d),r.push(d)}}return()=>{if(a.length>0){const l=a[0];for(const c of r)l.detachPrimitive(c)}}},[S]),f.useEffect(()=>{const t=L.current;if(!t||!S?.length){Se([]);return}const a=()=>{const c=t.timeScale(),u=S.map(d=>c.timeToCoordinate(d.xCoordinate)??null);Se(u)};a();const r=t.timeScale(),l=()=>{a()};return r.subscribeVisibleLogicalRangeChange(l),()=>{r.unsubscribeVisibleLogicalRangeChange(l)}},[S]);const Q=e.length===1,Re=ge.useMemo(()=>{if(Q&&e.length>0){const t=e[0];if(t.data.length>0)return t.data[t.data.length-1]}},[Q,e]);return g.jsxs("div",{ref:O,className:de.cn("relative z-[1] w-full h-full overflow-hidden p-0",m),children:[oe!=null&&oe!==!1&&Q?g.jsx("div",{className:"absolute top-2 left-2 right-2 z-[100] pointer-events-none",children:g.jsx("div",{className:"text-xl sm:text-2xl font-semibold text-foreground whitespace-nowrap overflow-hidden text-ellipsis",children:oe})}):Pe&&Q&&Re&&g.jsx(Oe.GraphCurrentValue,{point:Re,xMeasureUnit:h,yMeasureUnit:w,decimals:te}),Ce&&ve&&g.jsx(De.GraphTooltip,{points:Ce,xMeasureUnit:h,yMeasureUnit:w,series:e,position:ve,containerRef:O,decimals:te}),s&&g.jsx(Ge,{series:e,onUnselect:N}),S&&S.length>0&&xe.length===S.length&&g.jsx("div",{className:"absolute inset-0 z-[5] pointer-events-none","aria-hidden":!0,children:S.map((t,a)=>{const r=xe[a],l=t.options??{},c=l.showLabel!==!1;if(r===null||!c)return null;const{labelText:u,valueStr:d}=ke(l,w,te);if(!(u||d))return null;const p=l.labelBackgroundColor??l.color??"hsl(var(--background))",F=l.labelTextColor??"hsl(var(--foreground))",k=`${String(t.xCoordinate)}-${u}`;return g.jsxs("div",{className:"absolute top-2 px-2 py-1 rounded text-xs font-medium whitespace-nowrap shadow-sm border border-border",style:{left:r,transform:"translateX(-50%)",backgroundColor:p,color:F},children:[u&&g.jsx("span",{className:"block",children:u}),d&&g.jsx("span",{className:de.cn("block",u&&"mt-0.5"),children:d})]},k)})}),g.jsx("div",{ref:ae,className:"LightweightChart w-full h-full overflow-hidden"})]})}function Ge({series:e,onUnselect:m}){return g.jsx("div",{className:"absolute top-0 left-2 z-[10] flex flex-wrap gap-2",children:e.map((s,N)=>{const h=be(N),w=(s.lineColor??s.color)||h.line,W=s.data.length===0;return g.jsxs("div",{className:de.cn("flex items-center gap-1.5 px-2 py-1 bg-background/80 backdrop-blur-sm rounded border border-border",W&&"opacity-50"),children:[g.jsx("div",{className:"w-3 h-3 rounded-sm",style:{backgroundColor:w}}),g.jsxs("span",{className:"text-[10px] sm:text-xs font-medium text-foreground",children:[s.label,W&&" (no data)"]}),m&&g.jsx("button",{type:"button",onClick:S=>{S.stopPropagation(),m(s.label)},className:"ml-1 flex items-center justify-center w-4 h-4 rounded-sm hover:bg-muted transition-colors cursor-pointer","aria-label":`Remove ${s.label}`,children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-muted-foreground hover:text-foreground","aria-hidden":"true",children:[g.jsx("title",{children:"Close"}),g.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),g.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},s.label)})})}exports.DEFAULT_SERIES_COLORS=ee;exports.Graph=Be;exports.getSeriesColorPalette=be;exports.getStepForwardValue=je;exports.getVerticalLineTooltipContent=ke;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),ge=require("lightweight-charts"),f=require("react"),Oe=require("../../hooks/use-media-query.cjs"),he=require("../../utils/cn.cjs"),z=require("../../utils/colors.cjs"),ee=require("./default-config.cjs"),Y=require("./formatters.cjs"),ze=require("./graph-current-value.cjs"),Ae=require("./graph-tooltip.cjs"),qe=require("./plugins/vertical-line.cjs");function $e(e){const b=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const N=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(b,s,N.get?N:{enumerable:!0,get:()=>e[s]})}}return b.default=e,Object.freeze(b)}const de=$e(f);function Me(e,b,s){const N=e.labelText??"",m=e.value,w=m===void 0?"":typeof m=="number"?b==="$"?`$${Y.formatExactValue(m,void 0,s)}`:b==="%"?`${Y.formatExactValue(m,void 0,s)}%`:Y.formatExactValue(m,b!=="none"&&b!=="%"&&b!=="$"?b:void 0,s):String(m);return{labelText:N,valueStr:w}}function Pe(e,b){for(let s=e.length-1;s>=0;s--)if(Number(e[s].time)<=b)return e[s].value;return 0}const te=[{line:"#02c39a",top:"rgba(2, 195, 154, 0.56)",bottom:"rgba(2, 195, 154, 0.04)"},{line:"#3b82f6",top:"rgba(59, 130, 246, 0.56)",bottom:"rgba(59, 130, 246, 0.04)"},{line:"#ef4444",top:"rgba(239, 68, 68, 0.56)",bottom:"rgba(239, 68, 68, 0.04)"},{line:"#f59e0b",top:"rgba(245, 158, 11, 0.56)",bottom:"rgba(245, 158, 11, 0.04)"},{line:"#8b5cf6",top:"rgba(139, 92, 246, 0.56)",bottom:"rgba(139, 92, 246, 0.04)"},{line:"#ec4899",top:"rgba(236, 72, 153, 0.56)",bottom:"rgba(236, 72, 153, 0.04)"},{line:"#06b6d4",top:"rgba(6, 182, 212, 0.56)",bottom:"rgba(6, 182, 212, 0.04)"},{line:"#ea580c",top:"rgba(234, 88, 12, 0.56)",bottom:"rgba(234, 88, 12, 0.04)"},{line:"#84cc16",top:"rgba(132, 204, 22, 0.56)",bottom:"rgba(132, 204, 22, 0.04)"},{line:"#d946ef",top:"rgba(217, 70, 239, 0.56)",bottom:"rgba(217, 70, 239, 0.04)"},{line:"#0ea5e9",top:"rgba(14, 165, 233, 0.56)",bottom:"rgba(14, 165, 233, 0.04)"},{line:"#14b8a6",top:"rgba(20, 184, 166, 0.56)",bottom:"rgba(20, 184, 166, 0.04)"},{line:"#eab308",top:"rgba(234, 179, 8, 0.56)",bottom:"rgba(234, 179, 8, 0.04)"},{line:"#f43f5e",top:"rgba(244, 63, 94, 0.56)",bottom:"rgba(244, 63, 94, 0.04)"},{line:"#6366f1",top:"rgba(99, 102, 241, 0.56)",bottom:"rgba(99, 102, 241, 0.04)"},{line:"#10b981",top:"rgba(16, 185, 129, 0.56)",bottom:"rgba(16, 185, 129, 0.04)"},{line:"#78716c",top:"rgba(120, 113, 108, 0.56)",bottom:"rgba(120, 113, 108, 0.04)"},{line:"#64748b",top:"rgba(100, 116, 139, 0.56)",bottom:"rgba(100, 116, 139, 0.04)"},{line:"#475569",top:"rgba(71, 85, 105, 0.56)",bottom:"rgba(71, 85, 105, 0.04)"}],We=137.5;function be(e){if(e<te.length)return te[e];const s=(e-te.length)*We%360,N=z.hslToHex(s,70,50),{topColor:m,bottomColor:w}=z.generateColorsFromBase(N);return{line:N,top:m,bottom:w}}function Be({series:e,className:b,showLegend:s=!1,onUnselectSeries:N,xMeasureUnit:m="time",yMeasureUnit:w="token",optionsOverrides:H,verticalLineOptions:S,currentValueDecimals:oe,useSharedPriceScale:j=!1,showCurrentValue:je=!0,graphTitle:re,yScaleMin:me,yScaleMinMultiple:pe,visibleTimeFrom:I,disableZoom:Q=!1}){const V=f.useRef(null),y=f.useRef(new Map),ne=f.useRef(!1),Ce=f.useRef(!0),ae=f.useRef(null),Te=f.useRef(null),O=f.useRef(null),le=f.useRef(null),J=f.useRef(null),k=Oe.useIsMobile(),D=de.useMemo(()=>e.flatMap(t=>t.data),[e]),Le=de.useMemo(()=>{if(e.length>0){const t=e[e.length-1];if(t.data.length>0)return t.data[t.data.length-1]}},[e]),[ve,se]=f.useState(()=>{if(!Le)return;const t=new Map;for(const a of e)a.data.length>0&&t.set(a.label,a.data[a.data.length-1]);return t}),[xe,E]=f.useState(null),[Se,Re]=f.useState([]);f.useEffect(()=>{const t=()=>{try{if(V.current&&O.current){const l=O.current.clientWidth,c=O.current.clientHeight;V.current.resize(l,c)}}catch{}},a=O.current,r=a?new ResizeObserver(t):null;return J.current=r,a&&r?.observe(a),()=>{a&&r?.unobserve(a),r?.disconnect(),J.current=null}},[]),f.useEffect(()=>{if(!le.current||ne.current)return;const t=ee.getDefaultOptions(),a=z.resolveCSSColor("hsl(var(--foreground))","rgb(0, 0, 0)"),r=Q?{handleScale:{mouseWheel:!1,pinch:!1,axisPressedMouseMove:!1,axisDoubleClickReset:!1},handleScroll:{mouseWheel:!1,pressedMouseMove:!1,horzTouchDrag:!1,vertTouchDrag:!1}}:{},l=ge.createChart(le.current,{...t,rightPriceScale:{...t.rightPriceScale||{},visible:!k,textColor:a},...k&&{crosshair:{...t.crosshair,mode:ge.CrosshairMode.Magnet}},...r,...H});return V.current=l,ne.current=!0,()=>{J.current?.disconnect(),J.current=null,l.remove(),V.current=null,ne.current=!1,y.current.clear()}},[k,H,Q]),f.useEffect(()=>{const t=V.current;t&&t.applyOptions(Q?{handleScale:{mouseWheel:!1,pinch:!1,axisPressedMouseMove:!1,axisDoubleClickReset:!1},handleScroll:{mouseWheel:!1,pressedMouseMove:!1,horzTouchDrag:!1,vertTouchDrag:!1}}:{handleScale:{mouseWheel:!0,pinch:!0,axisPressedMouseMove:!0,axisDoubleClickReset:!0},handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!0}})},[Q]),f.useEffect(()=>{const t=V.current;if(!t||e.length===0)return;const r=e.filter(o=>o.data.length>0).length<=1?me:pe,l=m==="time"?Y.getXFormatters(m,D):Y.getXFormatters(m),c=D.map(o=>o.value),{formatter:u,tickmarksFormatter:d,updateVisibleRange:T,updateLastValues:p}=Y.createAdaptiveYAxisFormatter(c,w,{yScaleMin:r});ae.current=T,Te.current=p;const L=e.filter(o=>o.data.length>0).map(o=>o.data[o.data.length-1].value);p(L);const M=ee.getDefaultOptions();t.applyOptions({localization:{...M.localization||{},timeFormatter:o=>l.timeFormatter(parseFloat(o),void 0)},timeScale:{...M.timeScale||{},tickMarkFormatter:l.tickMarkFormatter,minBarSpacing:0}});const h=(D.length>0?Math.min(...D.map(o=>o.value)):0)<0,R=D.some(o=>o.value===0),C=!h&&R,x=e.length>1&&!j,v=e.length>1&&!j||k,F=z.resolveCSSColor("hsl(var(--foreground))","rgb(0, 0, 0)");t.applyOptions({rightPriceScale:{...M.rightPriceScale||{},visible:!v,textColor:F,...C&&{scaleMargins:{top:.3,bottom:0}}}});const X=new Set(y.current.keys()),ie=new Set(e.map(o=>o.label));for(const o of X)if(!ie.has(o)){const n=y.current.get(o);n&&(t.removeSeries(n),y.current.delete(o))}const De=ee.getDefaultSeries(),ce=[];let U=0;for(let o=0;o<e.length;o++){const n=e[o],K=be(o),A=n.lineColor??n.color??K.line;let _,q;if(n.lineColor??n.color)if(n.topColor&&n.bottomColor)_=n.topColor,q=n.bottomColor;else if(n.topColor){const i=z.generateColorsFromBase(A);_=n.topColor,q=i.bottomColor}else if(n.bottomColor)_=z.generateColorsFromBase(A).topColor,q=n.bottomColor;else{const i=z.generateColorsFromBase(A);_=i.topColor,q=i.bottomColor}else _=n.topColor||K.top,q=n.bottomColor||K.bottom;if(n.data.length===0){const i=y.current.get(n.label);i&&(t.removeSeries(i),y.current.delete(n.label));continue}const Ee=(n.data.length>0?Math.min(...n.data.map(i=>i.value)):0)<0,Fe=n.data.some(i=>i.value===0),_e=!Ee&&Fe,we=j||!x||U===0?"right":`scale-${U}`;x&&ce.push({priceScaleId:we||"right",shouldPreventNegativeAxis:_e,seriesIndex:U});const ye=(j||!x)&&r!==void 0&&typeof r=="number",Ve={lineColor:A,topColor:_,bottomColor:q,priceScaleId:we,priceFormat:{type:"custom",minMove:.01,formatter:ye&&typeof r=="number"?i=>u(i<r?r:i):u,tickmarksFormatter:d},autoscaleInfoProvider:i=>{if(!ye)return i();const B=i();if(B?.priceRange){const G=r;B.priceRange.minValue=G}return B}};let $=y.current.get(n.label);const W=n.data.map(i=>({...i,time:i.time}));if(I!==void 0&&W.length>0&&Number(W[0].time)>I){const i=Number(W[0].time),B=i-I,G=86400,Ie=B>180*G?7*G:B>30*G?G:6*3600,ke=[];for(let fe=I;fe<i;fe+=Ie)ke.push({time:fe});W.unshift(...ke)}$?($.applyOptions(Ve),$.setData(W)):($=t.addSeries(ge.AreaSeries,{...De,...Ve}),$.setData(W),y.current.set(n.label,$)),U++}if(x&&ce.length>0)for(const o of ce)try{const n=t.priceScale(o.priceScaleId);n&&n.applyOptions({visible:!1,autoScale:!0,scaleMargins:{top:.1,bottom:.1,...o.shouldPreventNegativeAxis&&{top:.3,bottom:0}},alignLabels:!0,borderVisible:!0,borderColor:"rgba(224, 227, 235, 0.1)",entireTextOnly:!1,textColor:F})}catch(n){console.warn(`Failed to configure price scale ${o.priceScaleId} for series ${o.seriesIndex}:`,n)}else if(!x)try{const o=t.priceScale("right");o&&o.applyOptions({visible:!k,autoScale:!0,scaleMargins:{top:.1,bottom:r!==void 0||C?0:.1,...C&&{top:.3}},alignLabels:!0,borderVisible:!0,borderColor:"rgba(224, 227, 235, 0.1)",entireTextOnly:!1,textColor:F})}catch{}if(r!==void 0&&!k&&(j||!x)&&t.applyOptions({handleScroll:{vertTouchDrag:!1}}),D.length>0){const o=D.map(_=>Number(_.time)),n=Math.min(...o),K=I!==void 0?Math.min(I,n):n,A=Math.max(...o);t.timeScale().setVisibleRange({from:K,to:A})}Ce.current&&(Ce.current=!1);const ue=new Map;for(const o of e)o.data.length>0&&ue.set(o.label,o.data[o.data.length-1]);se(ue.size>0?ue:void 0)},[e,D,m,w,k,j,me,pe,I]),f.useEffect(()=>{const t=V.current;if(!t||e.length===0)return;const a=e.length===1;let r;for(const c of e)if(c.data.length>0){r=c.data[c.data.length-1].time;break}if(!r)return;const l=c=>{const{time:u=r,seriesData:d,point:T}=c||{},p=Array.from(y.current.values());if(!T||!u){const P=new Map;for(const h of e)h.data.length>0&&P.set(h.label,h.data[h.data.length-1]);if(se(P.size>0?P:void 0),a||j)E(null);else if(p[0]&&r){const R=t.timeScale().timeToCoordinate(r),C=e[0];if(C.data.length>0){const x=C.data[C.data.length-1].value,v=p[0].priceToCoordinate(x);R!==null&&v!==null&&E({x:R,y:v})}}return}const L=new Map;let M;for(let P=0;P<e.length;P++){const h=e[P],R=p[P];if(!R)continue;const C=d?.get(R),x=C&&"value"in C?C.value:void 0;let v;if(x!==void 0)v=x;else if(a){const F=Number(u),X=h.data.length>0?Number(h.data[0].time):Number.POSITIVE_INFINITY;F<X?v=Number.NaN:v=h.data[h.data.length-1]?.value??0}else v=Pe(h.data,Number(u));Number.isNaN(v)||(M===void 0&&(M=v),L.set(h.label,{value:v,time:u}))}if(se(L),M!==void 0&&p[0]){const h=t.timeScale().timeToCoordinate(u),R=p[0].priceToCoordinate(M);if(h!==null&&R!==null){const C=O.current;if(C){const x=C.querySelector(".LightweightChart");if(x){const v=x.getBoundingClientRect(),F=C.getBoundingClientRect(),X=h+(v.left-F.left),ie=R+(v.top-F.top);E({x:X,y:ie})}else E({x:h,y:R})}else E({x:h,y:R})}else E(null)}else E(null)};return t.subscribeCrosshairMove(l),k&&t.subscribeClick(l),!a&&!j&&requestAnimationFrame(()=>{const c=Array.from(y.current.values());if(c[0]&&r&&e[0]?.data.length>0){const d=t.timeScale().timeToCoordinate(r),T=e[0].data[e[0].data.length-1].value,p=c[0].priceToCoordinate(T);d!==null&&p!==null&&E({x:d,y:p})}}),()=>{t.unsubscribeCrosshairMove(l),k&&t.unsubscribeClick(l)}},[e,j,k]),f.useEffect(()=>{const t=V.current;if(!t||e.length===0)return;const a=t.timeScale(),r=()=>{if(!ae.current)return;const l=a.getVisibleRange();if(!l)return;const c=Number(l.from),u=Number(l.to),d=[];for(const T of e)for(const p of T.data){const L=Number(p.time);L>=c&&L<=u&&d.push(p.value)}d.length>0&&ae.current(d)};return a.subscribeVisibleLogicalRangeChange(r),()=>{a.unsubscribeVisibleLogicalRangeChange(r)}},[e]),f.useEffect(()=>{const t=V.current,a=Array.from(y.current.values()),r=[];if(t&&a.length>0&&S){const l=ee.getDefaultVerticalLine(),c=a[0];for(const u of S){const d=new qe.VertLine(t,c,u.xCoordinate,{...l,...u.options||{}});c.attachPrimitive(d),r.push(d)}}return()=>{if(a.length>0){const l=a[0];for(const c of r)l.detachPrimitive(c)}}},[S,e]),f.useEffect(()=>{const t=V.current;if(!t||!S?.length){Re([]);return}const a=()=>{const c=t.timeScale(),u=S.map(d=>c.timeToCoordinate(d.xCoordinate)??null);Re(u)};a();const r=t.timeScale(),l=()=>{a()};return r.subscribeVisibleLogicalRangeChange(l),()=>{r.unsubscribeVisibleLogicalRangeChange(l)}},[S,e]);const Z=e.length===1,Ne=de.useMemo(()=>{if(Z&&e.length>0){const t=e[0];if(t.data.length>0)return t.data[t.data.length-1]}},[Z,e]);return g.jsxs("div",{ref:O,className:he.cn("relative z-[1] w-full h-full overflow-hidden p-0",b),children:[re!=null&&re!==!1&&Z?g.jsx("div",{className:"absolute top-2 left-2 right-2 z-[100] pointer-events-none",children:g.jsx("div",{className:"text-xl sm:text-2xl font-semibold text-foreground whitespace-nowrap overflow-hidden text-ellipsis",children:re})}):je&&Z&&Ne&&g.jsx(ze.GraphCurrentValue,{point:Ne,xMeasureUnit:m,yMeasureUnit:w,decimals:oe}),ve&&xe&&g.jsx(Ae.GraphTooltip,{points:ve,xMeasureUnit:m,yMeasureUnit:w,series:e,position:xe,containerRef:O,decimals:oe}),s&&g.jsx(Ge,{series:e,onUnselect:N}),S&&S.length>0&&Se.length===S.length&&g.jsx("div",{className:"absolute inset-0 z-[5] pointer-events-none","aria-hidden":!0,children:S.map((t,a)=>{const r=Se[a],l=t.options??{},c=l.showLabel!==!1;if(r===null||!c)return null;const{labelText:u,valueStr:d}=Me(l,w,oe);if(!(u||d))return null;const p=l.labelBackgroundColor??l.color??"hsl(var(--background))",L=l.labelTextColor??"hsl(var(--foreground))",M=`${String(t.xCoordinate)}-${u}`;return g.jsxs("div",{className:"absolute top-2 px-2 py-1 rounded text-xs font-medium whitespace-nowrap shadow-sm border border-border",style:{left:r,transform:"translateX(-50%)",backgroundColor:p,color:L},children:[u&&g.jsx("span",{className:"block",children:u}),d&&g.jsx("span",{className:he.cn("block",u&&"mt-0.5"),children:d})]},M)})}),g.jsx("div",{ref:le,className:"LightweightChart w-full h-full overflow-hidden"})]})}function Ge({series:e,onUnselect:b}){return g.jsx("div",{className:"absolute top-0 left-2 z-[10] flex flex-wrap gap-2",children:e.map((s,N)=>{const m=be(N),w=(s.lineColor??s.color)||m.line,H=s.data.length===0;return g.jsxs("div",{className:he.cn("flex items-center gap-1.5 px-2 py-1 bg-background/80 backdrop-blur-sm rounded border border-border",H&&"opacity-50"),children:[g.jsx("div",{className:"w-3 h-3 rounded-sm",style:{backgroundColor:w}}),g.jsxs("span",{className:"text-[10px] sm:text-xs font-medium text-foreground",children:[s.label,H&&" (no data)"]}),b&&g.jsx("button",{type:"button",onClick:S=>{S.stopPropagation(),b(s.label)},className:"ml-1 flex items-center justify-center w-4 h-4 rounded-sm hover:bg-muted transition-colors cursor-pointer","aria-label":`Remove ${s.label}`,children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-muted-foreground hover:text-foreground","aria-hidden":"true",children:[g.jsx("title",{children:"Close"}),g.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),g.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},s.label)})})}exports.DEFAULT_SERIES_COLORS=te;exports.Graph=Be;exports.getSeriesColorPalette=be;exports.getStepForwardValue=Pe;exports.getVerticalLineTooltipContent=Me;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),f=require("react"),a=require("../../../utils/cn.cjs");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const m=d(f),c=m.forwardRef(({children:e,aside:r,asidePosition:t="right",asideClassName:n,className:i,...o},u)=>{const s=r==null?null:l.jsx("aside",{className:a.cn("min-w-0 shrink-0",n),children:r});return l.jsxs("div",{ref:u,className:a.cn("flex w-full flex-col-reverse gap-6 lg:flex-row lg:items-start",i),...o,children:[t==="left"&&s,l.jsx("div",{className:"min-w-0 flex-1",children:e}),t==="right"&&s]})});c.displayName="MainAsideLayout";exports.MainAsideLayout=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),w=require("react"),r=require("../../../utils/cn.cjs");function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,n.get?n:{enumerable:!0,get:()=>e[l]})}}return t.default=e,Object.freeze(t)}const d=g(w),m=d.forwardRef(({children:e,aside:t,asidePosition:l="right",asideClassName:n,mainClassName:c,mainRef:o,variant:s="default",className:p,...u},f)=>{const a=s==="detail",x=t==null?null:i.jsx("aside",{className:r.cn("min-w-0 shrink-0",a&&["w-full","z-30 lg:w-[420px] lg:min-w-[420px] lg:max-w-[420px]","xl:w-[460px] xl:min-w-[460px] xl:max-w-[460px]","max-h-full lg:max-h-[100vh] overflow-y-visible lg:overflow-y-auto","lg:max-[2449px]:sticky lg:max-[2449px]:top-4","min-[2450px]:fixed min-[2450px]:top-28 min-[2450px]:right-32"],n),children:t});return i.jsxs("div",{ref:f,className:r.cn("flex w-full flex-col-reverse gap-6 lg:flex-row lg:items-start",a&&["relative mx-auto min-w-0","max-w-[calc(80rem+420px+1.5rem)]","xl:max-w-[calc(80rem+460px+1.5rem)]","min-[2450px]:block min-[2450px]:max-w-none min-[2450px]:gap-0"],p),...u,children:[l==="left"&&x,i.jsx("div",{ref:o,className:r.cn("min-w-0 flex-1",a&&["relative z-0 w-full","min-[2450px]:mx-auto min-[2450px]:flex-none","min-[2450px]:max-w-[min(80rem,calc(100vw-460px-8rem))]"],c),children:e}),l==="right"&&x]})});m.displayName="MainAsideLayout";exports.MainAsideLayout=m;
@@ -1 +1 @@
1
- "use strict";const e={"errors.networkError":"Network error. Can't fetch data","errors.incorrectAddressError":"Incorrect address. Please, check url","errors.noOpenedAccountsError":"You have no opened Credit Accounts. Perhaps, you have recently been liquidated? Check notification centre to see more.","errors.notFound":"Not found","errors.tooManyRequests":"Too many requests","errors.incorrectAddress":"Incorrect address","components.errorMessage.oops":"Oops...","components.alertModal.ok":"Ok","components.footer.privacy":"Privacy Notice","components.footer.terms":"Terms of Service","components.footer.disclosure":"Risk Disclosure Statement","components.footer.legalNotice":"Legal Notice","components.footer.legal":"Legal Info","components.footer.gearbox":"Copyright © Gearbox Foundation 2023-2026.","components.footer.built":"Built at ETHGlobal MarketMake hackathon.","components.footer.version":"Version {value}","components.liquidationPrice.check":"Check Area","components.loading.loading":"Loading","components.loading.loadingPercent":"Loading {percent}%","components.loading.wait":"Please wait...","components.smartNumberInput.balance":"Balance","components.smartNumberInput.inputTitle":"Token Amount","components.smartNumberInput.confirm.input":"Input","components.tipWindow.title":"Tip","components.healthFactor.low":"Extremely low! This HF may not cover possible oracle deviations.","components.headCell":"Sort by {value}","components.graphView.noData":"Can't get data for this graph","components.filterBlock.reset":"Reset All","components.filterModal.searchPlaceholder":"Search options...","components.filterModal.noOptionsAvailable":"No options available","components.filterModal.noOptionsMatchSearch":"No options match your search","components.filterModal.reset":"Reset","components.filterModal.apply":"Apply","components.APY.tip":"These APYs are derived from the underlying protocols’ APIs and may differ in reality. Check respective protocols for their methodology.","components.creditSessionDetailedLiquidation.graph.noData":"No data","components.creditSessionDetailedLiquidation.graph.legend.point":"Current price","components.creditSessionDetailedLiquidation.graph.legend.area":"Liquidation Area","components.creditSessionDetailedLiquidation.graph.tip.hf":"Health Factor","components.creditSessionDetailedLiquidation.graph.tip.price":"Price","components.creditSessionDetailedLiquidation.table.noData":"No data","components.creditSessionDetailedLiquidation.table.seeGraph":"See graph","components.creditSessionDetailedLiquidation.table.asset":"Asset","components.creditSessionDetailedLiquidation.table.currentPrice":"Current price","components.creditSessionDetailedLiquidation.table.modelPrice":"Model price","components.apyParts.features.points":"Points","components.apyParts.features.incent":"Incent.","components.apyParts.supplyAPY":"Organic APY","components.apyParts.title":"APY type","components.apyParts.supplyAPY.tip":"Yield from lending funds","components.apyParts.tokenYield":"Intrinsic APY","components.apyParts.tokenYield.tip":"Yield from holding wstETH","components.apyParts.extraAPY":"{symbol} Incentive","components.apyParts.extraAPY.tip":"Calculated at the current rate","components.apyParts.totalAPY":"Overall APY","components.apyParts.points":"{symbol} Incentive","components.apyParts.points.condition.crossDeposit":"For cross-chain deposits made via Omni","components.openCopyButtons.copy":"Copy to clipboard","components.poolAssetsTable.asset":"Asset","components.poolAssetsTable.rate":"Effective rate","components.poolAssetsTable.limits":"Limits Usage","components.poolAssetsTable.usage":"{amount} of {total}","components.poolAssetsTable.head.name":"Credit Manager","components.poolAssetsTable.head.currentDebt":"Current Debt","components.poolAssetsTable.head.assets":"Asset LT","components.poolCreditManagersTable.assets":"{amount} assets","components.creditManagerInfo.title":"Assets and LT’s","components.creditManagerInfo.info.title":"Credit Managers","components.creditManagerInfo.info.copy.tip":"Copy Credit Manager address","components.creditManagerInfo.info.minDebt":"Min debt","components.creditManagerInfo.info.maxDebt":"Max debt","components.creditManagerInfo.info.liquidationFee":"Liquid. fee","components.creditManagerInfo.info.liquidationPremium":"Liquid. premium","components.creditManagerInfo.info.interestFee":"Interest fee","components.creditManagerInfo.info.debtLimit":"Debt limit","components.creditManagerInfo.info.maxEnabledTokens":"Max tokens","dialogs.oraclesAndLTInfo.filter.hide0Quota":"Hide 0-Quota","components.oraclesAndLTInfo.title":"Oracles and LTs","components.oraclesAndLTTable.head.token":"Token","components.oraclesAndLTTable.head.oracles":"Oracles","components.oraclesAndLTTable.head.lt":"LT","components.poolTable.pool":"Market","components.poolTable.market":"Market","components.poolTable.description.universal":"Universal","components.poolTable.supply":"Supply","components.poolTable.borrowed":"Borrowed","components.poolTable.supplyApy":"Supply APY","components.poolTable.supplyApy.tip":"Annual percentage yield that you earn for supplying capital. This number constantly changes as the utilization of the Markets goes up and down","components.poolTable.depositApy":"Deposit APY","components.poolTable.depositApy.tip":"Deposit APY breakdown: base rate, extra rewards, and points","components.poolTable.borrowApy":"Borrow APY","components.poolTable.utilizationApy":"Utilization APY","components.poolTable.borrowApy.tip":"On top of the utilization borrow APY, there is a borrow quota APY for different assets","components.poolTable.utilization":"Utilization","components.poolTable.collateral":"Collateral","components.poolTable.collateral.showAll":"Show All","components.poolTable.balance":"Your Balance","components.poolTable.balance.tip":`You don't earn token rewards, only organic yield. Please migrate liquidity by using "Migrate" flow above.`,"components.poolTable.emptyList":"No Pools found","components.poolTable.notFound.dashboard":"You currently have no open Market positions.","components.poolTable.notFound.list":"No Markets found","components.poolTable.notFound.description.dashboard":"Choose earn above.","components.poolTable.notFound.description.list":"Choose another chain or toggle Show All Markets","components.poolTable.externalApy.tooltipShort":"{value} APY boost when depositing via {name}","components.rewardsTooltip.without.title":"Without Leverage","components.rewardsTooltip.without.extra":"Extra APY","components.rewardsTooltip.without.extra.tip":"Any deposit through Gearbox","components.rewardsTooltip.with.title":"With {leverage} Leverage","components.rewardsTooltip.with.borrowRate":"{symbol} borrow rate","components.rewardsTooltip.with.quotaRate":"Quota rate","components.rewardsTooltip.with.bonusAPY.title":"Target Bonuses Yield","components.rewardsTooltip.with.bonusAPY.tip":"Expected Bonuses APY is calculated by the Asset Issuer and represents the expected value to be paid out in points.","components.rewardsTooltip.with.extra":"+ Extra APR","components.rewardsTooltip.button":"Click to show rewards details","components.strategiesTable.head.name":"Strategy","components.strategiesTable.head.rewards":"Rewards","components.strategiesTable.head.leverage":"Max Leverage","components.strategiesTable.head.earn":"You Can Earn","components.strategiesTable.body.notFound":"No strategy found","components.strategiesTable.line.disabled":"This strategy is currently not available, cause of lack or quota or liquidity. Please contact us on Discord, and we’ll assist you.","components.strategiesTable.line.name.disabled":"This strategy is currently not available","components.strategiesTable.line.points.tip":"For debt nominated in {symbol}","components.strategiesTable.line.points.tipAny":"For debt","components.strategiesTable.line.0slippage":"0-slippage","components.strategiesTable.line.0slippage.tip":"Wrapping/unwrapping happens directly through smart-contracts, so {symbol} deposits and withdrawals don't incur slippage.","components.strategiesTable.line.rwa":"RWA","components.strategiesTable.line.rwa.tip":"This strategy is available on RWA market."};module.exports=e;
1
+ "use strict";const e={"errors.networkError":"Network error. Can't fetch data","errors.incorrectAddressError":"Incorrect address. Please, check url","errors.noOpenedAccountsError":"You have no opened Credit Accounts. Perhaps, you have recently been liquidated? Check notification centre to see more.","errors.notFound":"Not found","errors.tooManyRequests":"Too many requests","errors.incorrectAddress":"Incorrect address","components.errorMessage.oops":"Oops...","components.alertModal.ok":"Ok","components.footer.privacy":"Privacy Notice","components.footer.terms":"Terms of Service","components.footer.disclosure":"Risk Disclosure Statement","components.footer.legalNotice":"Legal Notice","components.footer.legal":"Legal Info","components.footer.gearbox":"Copyright © Gearbox Foundation 2023-2026.","components.footer.built":"Built at ETHGlobal MarketMake hackathon.","components.footer.version":"Version {value}","components.liquidationPrice.check":"Check Area","components.loading.loading":"Loading","components.loading.loadingPercent":"Loading {percent}%","components.loading.wait":"Please wait...","components.smartNumberInput.balance":"Balance","components.smartNumberInput.inputTitle":"Token Amount","components.smartNumberInput.confirm.input":"Input","components.tipWindow.title":"Tip","components.healthFactor.low":"Extremely low! This HF may not cover possible oracle deviations.","components.headCell":"Sort by {value}","components.graphView.noData":"Can't get data for this graph","components.filterBlock.reset":"Reset All","components.filterModal.searchPlaceholder":"Search options...","components.filterModal.noOptionsAvailable":"No options available","components.filterModal.noOptionsMatchSearch":"No options match your search","components.filterModal.reset":"Reset","components.filterModal.apply":"Apply","components.APY.tip":"These APYs are derived from the underlying protocols’ APIs and may differ in reality. Check respective protocols for their methodology.","components.creditSessionDetailedLiquidation.graph.noData":"No data","components.creditSessionDetailedLiquidation.graph.legend.point":"Current price","components.creditSessionDetailedLiquidation.graph.legend.area":"Liquidation Area","components.creditSessionDetailedLiquidation.graph.tip.hf":"Health Factor","components.creditSessionDetailedLiquidation.graph.tip.price":"Price","components.creditSessionDetailedLiquidation.table.noData":"No data","components.creditSessionDetailedLiquidation.table.seeGraph":"See graph","components.creditSessionDetailedLiquidation.table.asset":"Asset","components.creditSessionDetailedLiquidation.table.currentPrice":"Current price","components.creditSessionDetailedLiquidation.table.modelPrice":"Model price","components.apyParts.features.points":"Points","components.apyParts.features.incent":"Incent.","components.apyParts.supplyAPY":"Organic APY","components.apyParts.title":"APY type","components.apyParts.supplyAPY.tip":"Yield from lending funds","components.apyParts.tokenYield":"Intrinsic APY","components.apyParts.tokenYield.tip":"Yield from holding wstETH","components.apyParts.extraAPY":"{symbol} Incentive","components.apyParts.extraAPY.tip":"Calculated at the current rate","components.apyParts.totalAPY":"Overall APY","components.apyParts.points":"{symbol} Incentive","components.apyParts.points.condition.crossDeposit":"For cross-chain deposits made via Omni","components.openCopyButtons.copy":"Copy to clipboard","components.poolAssetsTable.asset":"Asset","components.poolAssetsTable.rate":"Effective rate","components.poolAssetsTable.limits":"Limits Usage","components.poolAssetsTable.usage":"{amount} of {total}","components.poolAssetsTable.head.name":"Credit Manager","components.poolAssetsTable.head.currentDebt":"Current Debt","components.poolAssetsTable.head.assets":"Asset LT","components.poolCreditManagersTable.assets":"{amount} assets","components.creditManagerInfo.title":"Assets and LT’s","components.creditManagerInfo.info.title":"Credit Managers","components.creditManagerInfo.info.copy.tip":"Copy Credit Manager address","components.creditManagerInfo.info.minDebt":"Min debt","components.creditManagerInfo.info.maxDebt":"Max debt","components.creditManagerInfo.info.liquidationFee":"Liquid. fee","components.creditManagerInfo.info.liquidationPremium":"Liquid. premium","components.creditManagerInfo.info.interestFee":"Interest fee","components.creditManagerInfo.info.debtLimit":"Debt limit","components.creditManagerInfo.info.maxEnabledTokens":"Max tokens","dialogs.oraclesAndLTInfo.filter.hide0Quota":"Hide 0-Quota","components.oraclesAndLTInfo.title":"Oracles and LTs","components.oraclesAndLTTable.head.token":"Token","components.oraclesAndLTTable.head.oracles":"Oracles","components.oraclesAndLTTable.head.lt":"LT","components.poolTable.pool":"Market","components.poolTable.market":"Market","components.poolTable.description.universal":"Universal","components.poolTable.supply":"Supply","components.poolTable.borrowed":"Borrowed","components.poolTable.supplyApy":"Supply APY","components.poolTable.supplyApy.tip":"Annual percentage yield that you earn for supplying capital. This number constantly changes as the utilization of the Markets goes up and down","components.poolTable.depositApy":"Deposit APY","components.poolTable.depositApy.tip":"Deposit APY breakdown: base rate, extra rewards, and points","components.poolTable.borrowApy":"Borrow APY","components.poolTable.utilizationApy":"Utilization APY","components.poolTable.borrowApy.tip":"On top of the utilization borrow APY, there is a borrow quota APY for different assets","components.poolTable.utilization":"Utilization","components.poolTable.collateral":"Collateral","components.poolTable.collateral.showAll":"Show All","components.poolTable.balance":"Your Balance","components.poolTable.balance.tip":`You don't earn token rewards, only organic yield. Please migrate liquidity by using "Migrate" flow above.`,"components.poolTable.emptyList":"No Pools found","components.poolTable.notFound.dashboard":"You currently have no open Market positions.","components.poolTable.notFound.list":"No Markets found","components.poolTable.notFound.description.dashboard":"Choose earn above.","components.poolTable.notFound.description.list":"Choose another chain or toggle Show All Markets","components.poolTable.externalApy.tooltipShort":"{value} APY boost when depositing via {name}","components.poolTable.line.rwa.tip":"This is RWA market.","components.rewardsTooltip.without.title":"Without Leverage","components.rewardsTooltip.without.extra":"Extra APY","components.rewardsTooltip.without.extra.tip":"Any deposit through Gearbox","components.rewardsTooltip.with.title":"With {leverage} Leverage","components.rewardsTooltip.with.borrowRate":"{symbol} borrow rate","components.rewardsTooltip.with.quotaRate":"Quota rate","components.rewardsTooltip.with.bonusAPY.title":"Target Bonuses Yield","components.rewardsTooltip.with.bonusAPY.tip":"Expected Bonuses APY is calculated by the Asset Issuer and represents the expected value to be paid out in points.","components.rewardsTooltip.with.extra":"+ Extra APR","components.rewardsTooltip.button":"Click to show rewards details","components.strategiesTable.head.name":"Strategy","components.strategiesTable.head.rewards":"Rewards","components.strategiesTable.head.leverage":"Max Leverage","components.strategiesTable.head.earn":"You Can Earn","components.strategiesTable.body.notFound":"No strategy found","components.strategiesTable.line.disabled":"This strategy is currently not available, cause of lack or quota or liquidity. Please contact us on Discord, and we’ll assist you.","components.strategiesTable.line.name.disabled":"This strategy is currently not available","components.strategiesTable.line.points.tip":"For debt nominated in {symbol}","components.strategiesTable.line.points.tipAny":"For debt","components.strategiesTable.line.0slippage":"0-slippage","components.strategiesTable.line.0slippage.tip":"Wrapping/unwrapping happens directly through smart-contracts, so {symbol} deposits and withdrawals don't incur slippage.","components.strategiesTable.line.rwa":"RWA","components.strategiesTable.line.rwa.tip":"This strategy is available on RWA market."};module.exports=e;