PageSourceSearch

https://phantom.com/_web_platform_assets/constants-BcLd24ib.js

js phantom.com collected 2026-10-01 08:37:54 UTC 4,420 bytes, 1 lines download raw bytes

1import{r as d,F as S,S as f}from"./analytics-DG8BMyPX.js";import{t as _}from"./phantom-ui-9_ioPNP4.js";const h=e=>e.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"");var o={SANITY_STUDIO_PROJECT_ID:"3nm6d03a",SANITY_STUDIO_DATASET:"production"};const c="https://sanity-proxy-v2.phantom.app";function m(e){var i;const t=(i=e==null?void 0:e.asset)==null?void 0:i._ref;if(!t)return null;const[r,s="",n=""]=t.split("-");return`${c}/files/${o.SANITY_STUDIO_PROJECT_ID}/${o.SANITY_STUDIO_DATASET}/${s}.${n}`}function T(e){var a;const t=(a=e==null?void 0:e.asset)==null?void 0:a._ref;if(!t)return{src:void 0,width:0,height:0};const[r,s,n,i]=t.split("-"),[l,p]=n.split("x").map(u=>parseInt(u,10));return{src:`${c}/images/${o.SANITY_STUDIO_PROJECT_ID}/${o.SANITY_STUDIO_DATASET}/${s}-${n}.${i}`,width:l,height:p}}function O(e){const{src:t}=T(e);return t?`${t}?w=1200&h=630`:void 0}function I({_type:e,slug:t,category:r}){switch(e){case"home":return"/";case"exploreWeb":return"/explore";case"exploreTrendingTokens":return"/explore/trending-tokens";case"getStarted":return"/get-started";case"socialPage":return"/social";case"predictionMarkets":return"/prediction-markets";case"landingPage":return t?`/${t}`:void 0;case"learnCategory":return t?`/learn/${t}`:void 0;case"articleWeb":return t&&r?`/learn/${r}/${t}`:void 0;case"performanceMarketing":return t?`/lp/${t}`:void 0;case"perps":return"/perpetual-futures";default:return e?t?`/${e}/${t}`:`/${e}`:void 0}}const A=new Set(["http:","https:","mailto:","tel:"]);function E(e){try{return A.has(new URL(e).protocol.toLowerCase())?e:void 0}catch{return}}function w(e){if(e)return e.hrefExternal?E(e.hrefExternal):e.hrefInternal?I(e.hrefInternal):e.hrefFile?m(e.hrefFile)??void 0:void 0}function g(e){if(!e)return{href:void 0};const{download:t,hrefInternalAnchor:r}=e,s=w(e);return s?{href:s,...t?{download:t}:{},...r?{hrefInternalAnchor:r}:{}}:(d.addBreadcrumb(S.WebPublicSite,"[sanity/utils] Invalid link, check if query is correct",f.Error,{link:JSON.stringify(e)}),{href:void 0})}function N(e,t){if(e)return!t||t==="en"?e:`/${t}${e}`}const D=(e,t)=>{const r=[...e];for(let s=r.length-1;s>0;s--){const n=Math.floor(t*(s+1));[r[s],r[n]]=[r[n],r[s]]}return r},R=(e,t,r)=>r.findIndex(n=>e._type==="tagMedium"&&n._type==="tagMedium"?e.medium===n.medium:e._type==="tagLevel"&&n._type==="tagLevel"?e.level===n.level:e._type==="tagDefault"&&n._type==="tagDefault"?e.tag===n.tag:!1)===t,x=(e,t)=>{const{article:r}=t;return e.some(({article:s})=>(r==null?void 0:r._id)&&s._id===r._id)?e:[...e,t]},U=({children:e})=>{const r=e.map(s=>"text"in s&&typeof s.text=="string"?s.text.trim().replace(/\n/g," "):"").filter(_).join(" ");return h(r)},P="https://statuspal.io/js/widget.js",$="phantom-app",C="//status.phantom.com",y=["da","de","en","es","fr","nl","pt"],b=[640,750,828,1080,1200,1920,2048,3840],F=/vimeo\.com\/(?!progressive_redirect).+/,B=/\.(mp4|og[gv]|webm|mov|m4v)(?:#t=[0-9,+]*)?(?:\?|$)/i,M=/\.(m3u8)(?:\?|$)/i,G={baseUrl:"https://phantom.com",image:"/_web_platform_assets/images/og-image.jpg"},Y={coin:{white:"coin.lottie",purple:"coin.lottie"},star1:{white:"star1.lottie",purple:"star1.lottie"},star2:{white:"star2.lottie",purple:"star2.lottie"},bounce:{white:"bounce-white.lottie",purple:"bounce-purple.lottie"},success:{white:"success-white.lottie",purple:"success-purple.lottie"},successBounce:{white:"successBounce-white.lottie",purple:"successBounce-purple.lottie"},wink:{white:"wink-white.lottie",purple:"wink-purple.lottie"},hearts:{white:"hearts-white.lottie",purple:"hearts-purple.lottie"},incorrect:{white:"incorrect-white.lottie",purple:"incorrect-purple.lottie"},idle:{white:"idle-white.lottie",purple:"idle-purple.lottie"},idleWithIntro:{white:"idle-with-intro-white.lottie",purple:"idle-with-intro-purple.lottie"},monad:{white:"monad.lottie",purple:"monad.lottie"}},H="/download",W="https://phantom.com/download-redirect",j="1598432977",k={type:"spring",stiffness:160,damping:15,mass:.7},V=.4,q={type:"spring",stiffness:100,damping:15},J={type:"spring",stiffness:80,damping:18,mass:.3},X=["en-GB"],z=["en-GB"],Z={GENERAL_BANNERS_DISMISSED:"general-banners-dismissed"},K={xl:"523px",xs:"335px",md:"465px"},Q={xl:"100vw"};export{j as A,Z as C,G as D,Q as F,M as H,X as I,Y as L,F as M,V as O,z as P,k as S,B as V,I as a,g as b,x as c,q as d,W as e,R as f,N as g,H as h,J as i,K as j,w as k,T as l,C as m,y as n,$ as o,P as p,b as q,O as r,D as s,U as t,m as u};

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.