PageSourceSearch

https://app.torque.fi/_next/static/chunks/092q4edtxqvm1.js?dpl=dpl_F6kvBrggES4KrM9amRV2AvCMws9D

js torque.fi collected 2026-10-02 01:57:20 UTC 32,719 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,727612,e=>{"use strict";let t=(0,e.i(475254).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],727612)},523849,520914,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(174080),l=e.i(88653),r=e.i(846932),i=e.i(115057),n=e.i(10813),o=e.i(643531),d=e.i(727612),c=e.i(37727),x=e.i(555436),u=e.i(495836),h=e.i(167881),m=e.i(23750),f=e.i(10708),b=e.i(176081);e.i(582619);var p=e.i(838172),g=e.i(659197),y=e.i(310160),v=e.i(414086),k=e.i(759218),w=e.i(448118),j=e.i(62870);function N(){return"u">typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():`rule-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}let C={warnHealthFactor:1.15,criticalHealthFactor:1.05},S={chainId:1,symbols:["USDC","USDT","DAI"],minBpsChange:50};e.s(["DEFAULT_POSITION_HEALTH_ALERT_CONFIG",0,C,"DEFAULT_RATE_YIELD_ALERT_CONFIG",0,S,"createPriceAlertRuleId",0,N],520914);var A=e.i(293576),_=e.i(411500);let L="text-xs font-semibold tracking-wide text-gray-500 dark:text-[#959595]",H=(0,u.cn)("h-11 rounded-full text-base border-[#efefef] bg-white/65 backdrop-blur-xl","dark:border-[#1c1c1c] dark:bg-[#0e0e0e]/80","shadow-[inset_0_1px_2px_rgba(0,0,0,0.03)] dark:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.04)]","outline-none ring-0 focus:outline-none focus:ring-0 focus:border-[#aa5bff]","focus-visible:outline-none focus-visible:ring-0 focus-visible:border-[#aa5bff]"),M=(0,u.cn)("rounded-2xl border border-[#efefef] dark:border-[#1c1c1c]","bg-white/65 dark:bg-[#0e0e0e]/75 backdrop-blur-xl"),D=[{id:"all",label:"All"},{id:"cash",label:"Cash"},{id:"stocks",label:"Stocks"},{id:"commodities",label:"Commodities"}],E=(0,u.cn)("w-full max-w-lg rounded-2xl border","border-[#efefef] dark:border-[#1c1c1c]","bg-white/52 dark:bg-[#0e0e0e]/64 backdrop-blur-2xl","shadow-[0_2px_18px_-8px_rgba(0,0,0,0.1),inset_0_1px_0_0_rgba(255,255,255,0.48)]","dark:shadow-[0_2px_24px_-10px_rgba(0,0,0,0.45),inset_0_1px_0_0_rgba(255,255,255,0.06)]");function I({open:e,onClose:i,title:n,titleId:o,titleVariant:d="bar",children:x}){let[h,m]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{if(!e||"u"<typeof document)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),(0,a.useLayoutEffect)(()=>{m(!0)},[]),!h||"u"<typeof document)?null:(0,s.createPortal)((0,t.jsx)(l.AnimatePresence,{mode:"wait",presenceAffectsLayout:!1,children:e&&(0,t.jsxs)(r.motion.div,{role:"dialog","aria-modal":"true","aria-labelledby":o,initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-[100] flex min-h-0 flex-col",children:[(0,t.jsx)("button",{type:"button",className:"absolute inset-0 z-0 cursor-default bg-white/20 dark:bg-black/40 backdrop-blur-sm","aria-label":"Close",onClick:i}),(0,t.jsx)("div",{className:"relative z-10 pointer-events-none flex min-h-0 flex-1 flex-col items-center justify-end p-4 pb-[max(1rem,env(safe-area-inset-bottom))] sm:justify-center sm:py-8",children:"chip"===d?(0,t.jsxs)(r.motion.div,{initial:!1,animate:{opacity:1,y:0},transition:{duration:.22,ease:[.16,1,.3,1]},className:"pointer-events-auto flex max-h-full min-h-0 w-full max-w-lg flex-col gap-4 overflow-y-auto overscroll-y-contain sm:gap-5",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("div",{className:"flex w-full shrink-0 justify-center px-2 sm:mb-0.5",children:(0,t.jsx)(A.OverlayHeadlineChip,{id:o,className:"max-w-[min(100vw-32px,440px)]",children:n})}),(0,t.jsx)("div",{className:(0,u.cn)(E,"max-h-[min(85dvh,640px)] w-full max-w-full overflow-hidden flex flex-col"),children:(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-y-contain px-4 py-4",children:x})})]}):(0,t.jsxs)(r.motion.div,{initial:!1,animate:{opacity:1,y:0},transition:{duration:.22,ease:[.16,1,.3,1]},className:(0,u.cn)(E,"pointer-events-auto relative max-h-[min(85dvh,640px)] min-h-0 w-full max-w-full overflow-hidden flex flex-col"),onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between gap-3 border-b border-[#efefef] px-4 py-3 dark:border-[#1c1c1c]",children:[(0,t.jsx)("div",{className:"flex min-w-0 items-center",children:(0,t.jsx)("h2",{id:o,className:"truncate text-base font-semibold text-gray-900 dark:text-white",children:n})}),(0,t.jsx)("button",{type:"button",onClick:i,className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-gray-500 transition-colors hover:bg-black/[0.06] hover:text-gray-900 dark:hover:bg-white/10 dark:hover:text-white","aria-label":"Close",children:(0,t.jsx)(c.X,{className:"h-5 w-5"})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-y-contain px-4 py-4",children:x})]})})]},"alert-target-glass-overlay")}),document.body)}function P(){let e=(0,k.buildSortedUnifiedSelectAssetCatalog)(),t=new Map,a=[];for(let s of e){let e=s.symbol;if("TORQ"===e||"stTORQ"===e||!(0,g.hasPriceableSpotQuote)(e))continue;let l=(0,g.getAssetDisplaySymbol)(e).toUpperCase();if(!l)continue;let r=t.get(l);r||a.push(l);let i=r?function(e,t,a){let s=e=>{let t=e.toUpperCase(),s=a.toUpperCase();return t===s?0:t===`${s}X`?1:t===`W${s}X`||t===`W${s}`?3:t.startsWith("W")?4:2};return s(e)<=s(t)?e:t}(r.symbol,e,l):e;t.set(l,{symbol:i,name:(0,g.getAssetCurrencyDisplayName)(i,s.name)})}let s=[],l=[];for(let e of a){let a=t.get(e);a&&((0,p.isStockAsset)(a.symbol)||(0,p.isStockAsset)((0,g.getAssetDisplaySymbol)(a.symbol))?l.push(a):s.push(a))}return{crypto:s,stocks:l}}let R=[{id:1,label:"Ethereum"},{id:42161,label:"Arbitrum"},{id:8453,label:"Base"}],T=["USDC","USDT","DAI","WETH","WBTC","GHO","USDS"];e.s(["PositionHealthModal",0,function({open:e,onClose:s,config:l,onSave:r}){let[i,n]=(0,a.useState)("1.15"),[o,d]=(0,a.useState)("1.05"),[c,x]=(0,a.useState)(!1);(0,a.useEffect)(()=>{e&&(n(String(l?.warnHealthFactor??C.warnHealthFactor)),d(String(l?.criticalHealthFactor??C.criticalHealthFactor??1.05)))},[e,l]);let u=async()=>{let e=parseFloat(i),t=parseFloat(o);if(Number.isFinite(e)&&!(e<=1)&&Number.isFinite(t)&&!(t<=1)&&!(t>=e)){x(!0);try{await r({warnHealthFactor:e,criticalHealthFactor:t}),s()}finally{x(!1)}}};return(0,t.jsxs)(I,{open:e,onClose:s,title:"Position Health",titleId:"position-health-modal-title",children:[(0,t.jsxs)("p",{className:"mb-4 text-sm leading-snug text-gray-600 dark:text-[#959595]",children:["We email when a ",(0,t.jsx)("strong",{children:"borrow"})," position you are tracking in Torque falls below your health factor lines. We run checks about every 30 minutes, with a 4-hour cooldown per position. If health recovers above the warning line, we can alert again on the next dip."]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(f.Label,{className:"text-xs text-gray-500 dark:text-[#959595]",children:"Warning health factor"}
1),(0,t.jsx)(m.Input,{type:"text",inputMode:"decimal",className:"rounded-full",value:i,onChange:e=>n(e.target.value),"aria-label":"Warning health factor"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(f.Label,{className:"text-xs text-gray-500 dark:text-[#959595]",children:"Critical (stricter) line"}),(0,t.jsx)(m.Input,{type:"text",inputMode:"decimal",className:"rounded-full",value:o,onChange:e=>d(e.target.value),"aria-label":"Critical health factor"})]}),(0,t.jsx)("p",{className:"text-xs text-amber-700/90 dark:text-amber-200/80",children:"Critical must stay below the warning value (e.g. warn 1.15, critical 1.05). Both must be > 1."}),(0,t.jsx)(h.Button,{type:"button",onClick:()=>void u(),disabled:c,className:"w-full rounded-full bg-[#aa5bff] text-white hover:bg-[#994fef]",children:c?(0,t.jsx)("span",{className:"loading loading-spinner loading-xs","aria-hidden":!0}):"Save Thresholds"})]})]})},"PriceTargetsModal",0,function({open:e,onClose:s,priceRules:l,onSavePriceRules:r}){let c=(0,a.useMemo)(()=>{let{crypto:e,stocks:t}=P();return[...e,...t]},[]),[p,k]=(0,a.useState)(l??[]),[j,C]=(0,a.useState)(""),[S,A]=(0,a.useState)("above"),[E,I]=(0,a.useState)(""),[R,T]=(0,a.useState)(!1),[O,F]=(0,a.useState)(""),[B,U]=(0,a.useState)("all"),{formatUsdSpotQuote:z}=(0,w.useFiatQuoteFormat)();(0,a.useEffect)(()=>{e&&k(l??[])},[e,l]),(0,a.useEffect)(()=>{e&&(F(""),U("all"))},[e]),(0,a.useEffect)(()=>{if(!e||0===c.length)return;let t=c.map(e=>e.symbol);C(e=>e&&t.includes(e)?e:t[0])},[e,c]);let W=(0,a.useMemo)(()=>{let e=O.trim().toLowerCase();return c.filter(({symbol:t,name:a})=>{if(!function(e,t){if("all"===t)return!0;let a=(0,y.resolveCanonicalSymbol)(e);return((0,v.getAssetCategory)(a)??"commodities")===t}(t,B))return!1;if(!e)return!0;let s=(0,g.getAssetDisplaySymbol)(t).toLowerCase();return t.toLowerCase().includes(e)||a.toLowerCase().includes(e)||s.includes(e)})},[c,O,B]),Y=(0,a.useMemo)(()=>c.find(e=>e.symbol===j)??null,[c,j]),$=(0,a.useCallback)(async e=>{T(!0);try{await r(e),k(e)}finally{T(!1)}},[r]),X=async()=>{if(!j||!E.trim())return;let e=parseFloat(E.replace(/,/g,""));if(!Number.isFinite(e)||e<=0)return;let t=[...p,{id:N(),symbol:j.trim().toUpperCase(),side:S,targetPrice:e,createdAt:Date.now()}];await $(t),I("")},q=async e=>{await $(p.filter(t=>t.id!==e))};return(0,t.jsx)(_.ResponsivePickerSheet,{isOpen:e,onClose:s,title:"Price Targets",children:(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto bg-transparent px-3 pb-4 pt-2",children:0===c.length?(0,t.jsx)("div",{className:(0,u.cn)(M,"px-4 py-8 text-center text-sm text-gray-500 dark:text-[#959595]"),children:"No priced assets are configured. Try again later."}):(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)("div",{className:(0,u.cn)(M,"overflow-hidden p-3 sm:p-4"),children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{className:L,children:"Asset"}),Y?(0,t.jsxs)("div",{className:"flex items-center gap-2.5 rounded-xl border border-[#efefef]/80 bg-white/50 px-3 py-2 dark:border-white/[0.06] dark:bg-white/[0.03]",children:[(0,t.jsx)("div",{className:"h-8 w-8 shrink-0 overflow-hidden rounded-full",children:(0,t.jsx)(b.AssetIcon,{symbol:Y.symbol,icon:(0,g.getAssetLogo)(Y.symbol)??"",size:32})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-semibold text-gray-900 dark:text-white",children:(0,g.getAssetDisplaySymbol)(Y.symbol)}),(0,t.jsx)("p",{className:"truncate text-xs text-gray-500 dark:text-[#959595]",children:Y.name})]}),(0,t.jsx)(o.Check,{className:"h-4 w-4 shrink-0 text-[#aa5bff]",strokeWidth:3,"aria-hidden":!0})]}):null,(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(x.Search,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400 dark:text-[#555]"}),(0,t.jsx)(m.Input,{type:"search",placeholder:"Search",value:O,onChange:e=>F(e.target.value),autoComplete:"off",className:(0,u.cn)(H,"pl-10")})]}),(0,t.jsx)("div",{className:"-mx-0.5 flex gap-2 overflow-x-auto pb-0.5 pt-0.5",children:D.map(({id:e,label:a})=>{let s=B===e;return(0,t.jsx)("button",{type:"button","aria-label":s?`${a} assets, selected`:`Show ${a} assets`,onClick:()=>U(e),className:(0,u.cn)("flex-shrink-0 rounded-full border px-3 py-1.5 text-xs font-semibold transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-[#aa5bff]/40 focu
1s-visible:ring-offset-2 dark:focus-visible:ring-offset-[#0e0e0e]",s?"border-[#aa5bff] bg-[#aa5bff]/15 text-gray-900 dark:border-[#aa5bff] dark:bg-[#aa5bff]/20 dark:text-white":"border-[#efefef] bg-white/60 text-gray-700 backdrop-blur-xl dark:border-[#1c1c1c] dark:bg-[#0e0e0e]/80 dark:text-gray-300 dark:hover:bg-[#1c1c1c]"),children:a},e)})}),0===W.length?(0,t.jsx)("p",{className:"px-1 py-6 text-center text-sm text-gray-500 dark:text-[#959595]",children:"No matching assets."}):(0,t.jsx)("div",{className:(0,u.cn)("max-h-[min(36vh,14rem)] overflow-y-auto overscroll-y-contain rounded-xl","[scrollbar-gutter:stable]","[&::-webkit-scrollbar]:w-[5px] [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-200 dark:[&::-webkit-scrollbar-thumb]:bg-[#2a2a2a] [&::-webkit-scrollbar-track]:bg-transparent"),role:"listbox","aria-label":"Supported asset",children:W.map(({symbol:e,name:a})=>{let s=j===e,l=(0,g.getAssetDisplaySymbol)(e),r=a.trim()!==l.trim();return(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":s,onClick:()=>C(e),className:(0,u.cn)("flex w-full items-center gap-2.5 rounded-xl px-2.5 py-2 text-left transition-colors",s?"bg-[#aa5bff]/10 dark:bg-[#aa5bff]/15":"hover:bg-black/[0.03] dark:hover:bg-white/[0.05]"),children:[(0,t.jsx)("div",{className:"h-8 w-8 shrink-0 overflow-hidden rounded-full",children:(0,t.jsx)(b.AssetIcon,{symbol:e,icon:(0,g.getAssetLogo)(e)??"",size:32})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-semibold text-gray-900 dark:text-white",children:l}),r?(0,t.jsx)("p",{className:"truncate text-xs text-gray-500 dark:text-[#959595]",children:a}):null]}),s?(0,t.jsx)("div",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-[#aa5bff]",children:(0,t.jsx)(o.Check,{className:"h-3 w-3 text-white",strokeWidth:3})}):null]},e)})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{className:L,children:"Condition"}),(0,t.jsx)("div",{className:"flex w-full rounded-full border border-[#efefef] bg-gray-100 p-1 dark:border-[#1c1c1c] dark:bg-[#0e0e0e]",role:"group","aria-label":"Price condition",children:[{id:"above",label:"Goes Above",Icon:i.ArrowUpRight},{id:"below",label:"Goes Below",Icon:n.ArrowDownRight}].map(({id:e,label:a,Icon:s})=>{let l=S===e;return(0,t.jsxs)("button",{type:"button",onClick:()=>A(e),className:(0,u.cn)("flex flex-1 items-center justify-center gap-1.5 rounded-full px-3 py-2 text-sm font-semibold transition-colors",l?"bg-white text-gray-900 shadow-sm dark:bg-[#1c1c1c] dark:text-white":"text-gray-500 hover:text-gray-900 dark:text-[#959595] dark:hover:text-white"),children:[(0,t.jsx)(s,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),a]},e)})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(f.Label,{className:L,children:"Price (USD)"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m.Input,{type:"text",inputMode:"decimal",placeholder:"e.g. 3200.50",value:E,onChange:e=>I(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),X())},className:(0,u.cn)(H,"min-w-0 flex-1")}),(0,t.jsx)(h.Button,{type:"button",onClick:()=>void X(),disabled:R||!j||!E.trim(),className:(0,u.cn)("shrink-0 px-5","min-h-11 text-sm font-semibold rounded-full border border-[#aa5bff]/30 bg-[#aa5bff] text-white shadow-[0_4px_20px_-6px_rgba(170,91,255,0.55),inset_0_1px_0_0_rgba(255,255,255,0.22)] hover:bg-[#bb7cff] dark:border-[#bb7cff]/25"),children:"Add Target"})]})]})]})}),p.length>0?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("p",{className:(0,u.cn)(L,"px-0.5"),children:["Your Targets · ",p.length]}),(0,t.jsx)("ul",{className:"flex flex-col gap-2",role:"list",children:p.map(e=>{let a=(0,g.getAssetDisplaySymbol)(e.symbol),s="above"===e.side?i.ArrowUpRight:n.ArrowDownRight;return(0,t.jsx)("li",{className:(0,u.cn)(M,"px-3 py-3"),children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,t.jsx)(b.AssetIcon,{symbol:e.symbol,icon:(0,g.getAssetLogo)(e.symbol)??"",size:36})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-semibold text-gray-900 dark:text-white",children:a}),(0,t.jsxs)("p",{className:"flex items-center gap-1 truncate text-xs text-gray-500 dark:text-[#959595]",children:[(0,t.jsx)(s,{className:"h-3 w-3 shrink-0","aria-hidden":!0}),"above"===e.side?"Above":"Below"," ",(0,t.jsx)("span",{className:"font-medium tabular-nums text-gray-800 dark:text-gray-200",children:z(e.targetPrice)}),null!=e.lastFiredAt?(0,t.jsxs)("span",{className:"text-gray-400 dark:text-white/35",children:["· sent"," ",new Date(e.lastFiredAt).toLocaleDateString(void 0,{month:"short",day:"numeric"})]}):null]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>void q(e.id),disabled:R,className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-gray-400 transition-colors hover:bg-black/[0.05] hover:text-red-600 dark:hover:bg-white/10 dark:hover:text-red-400","aria-label":`Remove ${a} target`,children:(0,t.jsx)(d.Trash2,{className:"h-4 w-4"})})]})},e.id)})})]}):(0,t.jsx)("div",{className:(0,u.cn)(M,"px-4 py-6 text-center text-sm text-gray-500 dark:text-[#959595]"),children:"No price targets yet. Pick an asset and set a level above."})]})})})},"RateYieldModal",0,function({open:e,onClose:s,config:l,onSave:r}){let[i,n]=(0,a.useState)(1),[o,d]=(0,a.useState)([...S.symbols]),[c,x]=(0,a.useState)("50"),[b,p]=(0,a.useState)(!1);(0,a.useEffect)(()=>{e&&(n(l?.chainId??S.chainId),d(l?.symbols?.length?[...l.symbols]:[...S.symbols]),x(String(l?.minBpsChange??S.minBpsChange)))},[e,l]);let y=async()=>
1{if(0===o.length)return;let e=parseFloat(c);if(Number.isFinite(e)&&!(e<1)){p(!0);try{await r({chainId:i,symbols:o.map(e=>e.toUpperCase()),minBpsChange:e}),s()}finally{p(!1)}}};return(0,t.jsxs)(I,{open:e,onClose:s,title:"Rate & Yield",titleId:"rate-yield-modal-title",children:[(0,t.jsxs)("p",{className:"mb-4 text-sm leading-snug text-gray-600 dark:text-[#959595]",children:["Aave v3 ",(0,t.jsx)("strong",{children:"supply"})," APY from our market data is compared to the last snapshot. We email when the move is at least your minimum (basis points of APY, where 50 bps = 0.50 percentage point). The first run after you enable this only records baselines; the next check can notify. Runs about every 4 hours."]}),(0,t.jsxs)("div",{className:"mb-3 space-y-1.5",children:[(0,t.jsx)(f.Label,{className:"text-xs text-gray-500 dark:text-[#959595]",children:"Network"}),(0,t.jsxs)(j.Select,{value:String(i),onValueChange:e=>n(parseInt(e,10)),children:[(0,t.jsx)(j.SelectTrigger,{className:"rounded-full",children:(0,t.jsx)(j.SelectValue,{})}),(0,t.jsx)(j.SelectContent,{children:R.map(e=>(0,t.jsx)(j.SelectItem,{value:String(e.id),children:e.label},e.id))})]})]}),(0,t.jsx)("p",{className:"mb-1 text-xs text-gray-500 dark:text-[#959595]",children:"Markets to watch (underlying)"}),(0,t.jsx)("div",{className:"mb-4 flex flex-wrap gap-2",children:T.map(e=>{let a=o.includes(e);return(0,t.jsx)("button",{type:"button",onClick:()=>{d(t=>t.includes(e)?1===t.length?t:t.filter(t=>t!==e):[...t,e])},className:(0,u.cn)("rounded-full border px-3 py-1 text-sm font-medium transition-colors",a?"border-[#aa5bff] bg-[#aa5bff]/10 text-gray-900 dark:text-white":"border-[#efefef] text-gray-500 hover:border-[#aa5bff]/40 dark:border-[#2a2a2a] dark:hover:border-[#aa5bff]/40"),children:(0,g.getAssetDisplaySymbol)(e)},e)})}),(0,t.jsxs)("div",{className:"mb-4 space-y-1.5",children:[(0,t.jsx)(f.Label,{className:"text-xs text-gray-500 dark:text-[#959595]",children:"Minimum move (bps of APY)"}),(0,t.jsx)(m.Input,{type:"text",inputMode:"numeric",className:"rounded-full",value:c,onChange:e=>x(e.target.value),"aria-label":"Minimum basis point change"})]}),(0,t.jsx)(h.Button,{type:"button",onClick:()=>void y(),disabled:b,className:"w-full rounded-full bg-[#aa5bff] text-white hover:bg-[#994fef]",children:b?(0,t.jsx)("span",{className:"loading loading-spinner loading-xs","aria-hidden":!0}):"Save Preferences"})]})},"buildSignalAssets",0,P],523849)},649582,e=>{"use strict";let t=(0,e.i(475254).default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);e.s(["SlidersHorizontal",0,t],649582)},131346,967375,e=>{"use strict";e.s(["HOME_RAIL_EXPANDED_MODAL_SCROLL_BODY_CLASS",()=>p,"HOME_RAIL_MOBILE_SHEET_MAX_H",()=>y,"HomeRailWidgetFrame",()=>w],131346);var t=e.i(843476),a=e.i(271645),s=e.i(174080),l=e.i(618566),r=e.i(495836),i=e.i(733668),n=e.i(781199),o=e.i(925510),d=e.i(638754),c=e.i(411500),x=e.i(829939),u=e.i(50279),h=e.i(972040);let m=(0,a.createContext)(null);function f({dismiss:e,children:a}){return(0,t.jsx)(m.Provider,{value:e,children:a})}e.s(["HomeRailExpandDismissProvider",0,f,"useDismissHomeRailExpand",0,function(){return(0,a.useContext)(m)??(()=>{})}],967375);var b=e.i(226358);let p=u.HOME_RAIL_BODY_SCROLL_CLASS,g="max-h-[min(85dvh,720px)]",y="max-h-[min(85dvh,720px)]";function v(e,t){return"function"==typeof e?e({layout:t}):e}function k({children:e,footer:a,bodyClassName:s,footerClassName:l}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,r.cn)("flex min-h-0 flex-1 flex-col overflow-hidden",s),children:v(e,"modal")}),null!=a&&(0,t.jsx)("div",{className:(0,r.cn)("shrink-0",l),children:v(a,"modal")})]})}function w({title:e,hideHeading:u=!1,titleAccessory:m,headerActions:p,outlookAssetsCustomizeWalletAddress:j,className:N,children:C,expandedTitle:S,expandedHeight:A="auto",footer
1:_}){let L,H=(0,l.usePathname)(),M=(0,x.useIsBelowLg)(),[D,E]=(0,a.useState)(!1),I="fill"===A,P=(0,b.resolveHomeWidgetAnalyticsId)(e),R=()=>E(!1);(0,a.useLayoutEffect)(()=>{(0,i.isHomeRailPickerHostPath)(H)||E(!1)},[H]),(0,a.useEffect)(()=>{if(!D)return;let e=e=>{"Escape"===e.key&&R()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[D]),(0,a.useEffect)(()=>{if(!D||M)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[D,M]);let T=S??e,O=(0,t.jsxs)("div",{className:(0,r.cn)(n.cardHeaderControlRowClass,"shrink-0"),children:[j?(0,t.jsx)(d.HomeRailOutlookAssetsButton,{walletAddress:j}):null,p,(0,t.jsx)(o.CardHeaderExpandIconButton,{onClick:()=>{(0,b.trackHomeWidgetExpanded)(P),E(!0)}})]}),F=(0,t.jsxs)("div",{className:(0,r.cn)(n.cardHeaderControlRowClass,"shrink-0"),children:[j?(0,t.jsx)(d.HomeRailOutlookAssetsButton,{walletAddress:j}):null,p,(0,t.jsx)(o.RailModalCloseIconButton,{onClick:R,buttonClassName:n.cardHeaderControlButtonClass,iconClassName:n.cardHeaderControlIconClass})]}),B=j?(0,t.jsx)(d.HomeRailOutlookAssetsButton,{walletAddress:j}):void 0,U=u&&!m?null:(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2 overflow-hidden",children:[u?null:(0,t.jsx)("h3",{className:"shrink-0 truncate text-base font-semibold text-gray-900 dark:text-white",children:e}),m?(0,t.jsx)("div",{className:"min-w-0 shrink",children:m}):null]}),z=m?(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2 overflow-hidden",children:[(0,t.jsx)("h2",{className:"shrink-0 truncate text-base font-semibold text-gray-900 dark:text-white",children:T}),(0,t.jsx)("div",{className:"min-w-0 shrink",children:m})]}):(0,t.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-2 overflow-hidden",children:(0,t.jsx)("h2",{className:"shrink-0 truncate text-base font-semibold text-gray-900 dark:text-white",children:T})}),W=null!=m?(0,t.jsxs)("div",{className:"relative z-20 mb-2 flex shrink-0 flex-col gap-2",children:[(0,t.jsxs)("div",{className:(0,r.cn)("flex items-center gap-2",u?"justify-end":"justify-between"),children:[u?null:(0,t.jsx)("h3",{className:"min-w-0 truncate text-base font-semibold text-gray-900 dark:text-white",children:e}),O]}),null!=m?(0,t.jsx)("div",{className:"w-full min-w-0",children:m}):null]}):(0,t.jsxs)("div",{className:(0,r.cn)("relative z-20 mb-2 flex shrink-0 items-center gap-2",u&&!m?"justify-end":"justify-between"),children:[U,O]});return(0,t.jsxs)(h.HomeRailWidgetAnalyticsProvider,{widgetId:P,children:[(L={compact:!0},(0,t.jsxs)("div",{className:(0,r.cn)("bg-white/60 dark:bg-[#0e0e0e] backdrop-blur-xl border border-[#efefef] dark:border-[#1c1c1c] rounded-2xl px-4 pt-3 pb-2 flex flex-col h-full min-h-0 overflow-hidden",!L.compact&&"shadow-sm",N),children:[W,(0,t.jsx)("div",{className:"relative z-0 flex min-h-0 flex-1 flex-col overflow-hidden",children:v(C,"rail")}),null!=_&&v(_,"rail")]})),M?(0,t.jsx)(c.ResponsivePickerSheet,{isOpen:D,onClose:R,title:T,ariaLabel:T,headerLeading:B,headerTrailing:p,zIndexLayer:"home-rail",mobileMaxHeightClassName:I?"h-[min(85dvh,720px)]":y,children:(0,t.jsxs)(f,{dismiss:R,children:[m?(0,t.jsx)("div",{className:"mb-3 w-full min-w-0 shrink-0",children:m}):null,(0,t.jsx)(k,{footer:_,bodyClassName:null!=_?"pb-2":"pb-1",footerClassName:"pb-1",children:C})]})}):null,D&&!M&&"u">typeof document&&(0,s.createPortal)((0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center overflow-hidden px-4 py-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-white/30 dark:bg-black/30 backdrop-blur-sm",onClick:R,"aria-hidden":!0}),(0,t.jsx)("div",{className:(0,r.cn)("relative flex w-full max-w-2xl min-h-0 flex-col overflow-hidden pointer-events-auto",g,I&&"h-[min(85dvh,720px)]"),onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":T,children:(0,t.jsxs)("div",{className:(0,r.cn)("flex min-h-0 w-full flex-col overflow-hidden rounded-2xl border border-[#efefef] bg-white/60 backdrop-blur-xl dark:border-[#1c1c1c] dark:bg-[#0e0e0e]",g,I&&"h-full"),children:[null!=m?(0,t.jsxs)("div",{className:"flex shrink-0 flex-col gap-2 px-5 pt-5 pb-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("h2",{className:"min-w-0 truncate text-base font-semibold text-gray-900 dark:text-white",children:T}),F]}),(0,t.jsx)("div",{className:"w-full min-w-0",children:m})]}):(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between gap-2 px-5 pt-5 pb-3",children:[z,F]}),(0,t.jsx)(k,{footer:_,bodyClassName:(0,r.cn)("px-5",null!=_?"pb-3":"pb-5"),footerClassName:"px-5 pb-4",children:C})]})})]}),document.body)]})}},638754,e=>{"use strict";e.s(["HomeRailOutlookAssetsButton",()=>w],638754);var t=e.i(843476),a=e.i(271645),s=e.i(649582);e.i(250711);var l=e.i(982045),r=e.i(883394),i=e.i(174080),n=e.i(846932),o=e.i(88653),d=e.i(555436),c=e.i(355819),x=e.i(495836),u=e.i(523849),h=e.i(176081);e.i(582619);var m=e.i(659197),f=e.i(925510),b=e.i(131346);function p({isOpen:e,onClose:s,walletAddress:l,selectedAssets:g,onAssetsChange:y}){let v=(0,c.useAuthenticatedUserMutation)(r.api.tracked.setOutlookAssets),{crypto:k,stocks:w}=(0,a.useMemo)(()=>(0,u.buildSignalAssets)(),[]),[j,N]=(0,a.useState)(()=>new Set(g)),[C,S]=(0,a.useState)(""),A=(0,a.useRef)(g);(0,a.useEffect)(()=>{A.current!==g&&(A.current=g,N(new Set(g)))},[g]),(0,a.useEffect)(()=>{e&&S("")},[e]);let _=e=>{let t=Array.from(e);y(t),v({walletAddress:l,assets:t}).catch(()=>{})},L=j.size,H=(0,t.jsx)(o.AnimatePresence,{children:e&&(0,t.jsxs)(n.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-[9999] flex items-center justify-center px-4 py-2",children:[(0,t.jsx)(n.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:s,className:"absolute inset-0 bg-white/30 dark:bg-black/30 backdrop-blur-sm"}),(0,t.jsx)(n.motion.div,{initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{type:"spring",damping:25,stiffness:300,delay:.05},onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Preferences",className:"pointer-events-auto relative flex w-full max-w-lg max-h-[90vh] flex-col overflow-hidden",children:(0,t.jsxs)("div",{className:"flex max-h-[min(85vh,720px)] min-h-0 w-full flex-col overflow-hidden rounded-2xl border border-[#efefef] bg-white/60 backdrop-blur-xl dark:border-[#1c1c1c] dark:bg-[#0e0e0e]",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-start justify-between gap-3 px-5 pt-5 pb-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h2",{className:"text-base font-semibold text-gray-900 dark:text-white",children:"Preferences"}),(0,t.jsx)("p",{className:"mt-0.5 text-xs text-gray-500 dark:text-[#959595]",children:"Focus for Market Outlook & home widgets"})]}),(0,t.jsx)(f.RailModalCloseIconButton,{onClick:s})]}),(0,t.jsxs)("div",{className:(0,x.cn)(b.HOME_RAIL_EXPANDED_MODAL_SCROLL_BODY_CLASS,"flex flex-col gap-5 px-5 pb-5"),children:[L>0&&(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("p",{className:"text-sm text-gray-500 dark:text-[#959595]",children:[L," asset",1===L?"":"s"," selected"]}),(0,t.jsx)("button",{type:"button",onClick:()=>{let e=new Set;N(e),_(e)},className:"rounded-full border border-[#aa5bff]/40 px-2.5 py-0.5 text-xs font-medium text-[#aa5bff] transition-colors hover:bg-[#aa5bff]/10",children:"Reset to Default"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(d.Search,{className:"absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-gray-400 dark:text-[#555]"}),(0,t.jsx)("input",{type:"text",placeholder:"Search assets…",value:C,onChange:e=>S(e.target.value),className:"w-full rounded-2xl border border-gray-200 bg-white/60 py-2.5 pl-9 pr-3 text-sm outline-none transition-colors placeholder:text-gray-400 focus:border-[#aa5bff]/60 dark:border-[#2a2a2a] dark:bg-[#141414]/60 dark:placeholder:text-[#555]"})]}),["Stocks & ETFs","Commodities"].map(e=>{let a=("Stocks & ETFs"===e?w:k).filter(({symbol:e,name:t})=>!C.trim()||e.toLowerCase().includes(C.toLowerCase())||t.toLowerCase().includes(C.toLowerCase()));return 0===a.length?null:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-wider text-gray-400 dark:text-[#666]",children:e}),(0,t.jsx)("div",{className:"grid grid-cols-3 gap-2",children:a.map(({symbol:e,name:a})=>{let s=j.has(e);return(0,t.jsxs)("button",{type:"button",onClick:()=>{N(t=>{let a=new Set(t);return a.has(e)?a.delete(e):a.add(e),_(a),a})},className:(0,x.cn)("relative flex items-center gap-2 rounded-xl border px-2.5 py-2 text-left transition-colors",s?"border-[#aa5bff] bg-[#aa5bff]/5":"border-[#efefef] hover:border-[#aa5bff]/40 dark:border-[#2a2a2a] dark:hover:border-[#aa5bff]/40"),children:[(0,t.jsx)("div",{className:(0,x.cn)("absolute right-1.5 top-1.5 flex h-3 w-3 items-center justify-center rounded-full border-2",s?"border-[#aa5bff]":"border-gray-300 dark:border-[#3a3a3a]"),children:s&&(0,t.jsx)("div",{className:"h-1.5 w-1.5 rounded-full bg-[#aa5bff]"})}),(0,t.jsx)("div",{className:"h-7 w-7 shrink-0 overflow-hidden rounded-full",children:(0,t.jsx)(h.AssetIcon,{symbol:e,icon:"",size:28})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-xs font-semibold leading-tight text-gray-900 dark:text-white",children:(0,m.getAssetDisplaySymbol)(e)}),(0,t.jsx)("p",{className:"truncate text-[10px] leading-tight text-gray-400 dark:text-[#666]",children:a.length>10?a.slice(0,10)+"…":a})]})]},e)})})]},e)})]})]})})]},"outlook-assets-modal")});return"u"<typeof document?null:(0,i.createPortal)(H,document.body)}var g=e.i(728231),y=e.i(722331),v=e.i(781199);let k=(0,x.cn)("inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg","text-gray-600 dark:text-[#959595] bg-gray-100 dark:bg-[#1c1c1c]","hover:bg-gray-200 dark:hover:bg-[#2a2a2a] transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-[#aa5bff]/50 focus-visible:ring-offset-2","focus-visible:ring-offset-white dark:focus-visible:ring-offset-[#0e0e0e]");function w({walletAddress:e,variant:i="header"}){let{authProof:n}=(0,y.useWalletMutationAuth)(),o=(0,l.useQuery)(r.api.tracked.getOutlookAssets,n?{walletAddress:e,authProof:n}:"skip"),[d,c]=(0,a.useState)([]),[u,h]=(0,a.useState)(!1);(0,a.useEffect)(()=>{Array.isArray(o)&&o.length>0?c(o):null===o&&c([])},[o]);let m=(0,a.useCallback)(e=>{c(e)},[]),f="footer"===i?k:v.cardHeaderControlButtonClass,b="footer"===i?"h-4 w-4":v.cardHeaderControlIconClass;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.TooltipProvider,{delayDuration:200,children:(0,t.jsxs)(g.Tooltip,{children:[(0,t.jsx)(g.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",onClick:()=>h(!0),"aria-label":"Preferences",className:f,children:(0,t.jsx)(s.SlidersHorizontal,{className:(0,x.cn)(b,"shrink-0 block"),"aria-hidden":!0})})}),(0,t.jsx)(g.TooltipContent,{side:"top",children:"Preferences"})]})}),(0,t.jsx)(p,{isOpen:u,onClose:()=>h(!1),walletAddress:e,selectedAssets:d,onAssetsChange:m})]})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.