PageSourceSearch

https://www.weex.com/trade_static/_next/static/chunks/00jov_f4mmzaa.js

js weex.com collected 2026-10-02 16:37:56 UTC 23,139 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="a7596c68-7dc0-9252-b383-71a6f085699f")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,548894,e=>{"use strict";var t=e.i(843476),o=e.i(104348),r=e.i(271645),n=e.i(157470),i=e.i(623325),a=e.i(243098),s=e.i(430281),l=e.i(480648),u=e.i(333883),c=e.i(955321),p=e.i(949088);e.i(540307);var d=e.i(745485);let g={coinList:[],symbolList:[],symbolListMap:new Map,coinListOrigin:[],symbolListOrigin:[],symbolListMapOrigin:new Map,coinMetaData:[]},f=(0,r.createContext)(g),m={coinList:[],symbolList:[],symbolListMap:new Map},w=new i.CacheData,h=new i.CacheData,v=new i.CacheData;e.s(["SpotMetaDataProvider",0,({children:e})=>{let{spot:i}=(0,p.useFeeLabels)(),{user:g,isAuthenticated:y}=(0,l.useAuth)(),b=JSON.stringify([y,g?.userId??""]),[D,C]=(0,r.useState)(()=>w.get()??{accountKey:b,data:m}),{coinList:S,symbolList:I}=D.accountKey===b?D.data:m,[P,R]=(0,r.useState)(h.get()??[]),[$,E]=(0,r.useState)(v.get()??[]);(0,r.useEffect)(()=>{let e=!1;w.get()?.accountKey!==b&&w.delete(),C(e=>e.accountKey===b?e:{accountKey:b,data:m});let t=e=>{var t,o;t=e.coinList,h.set(t),R(t),o=e.symbolList,v.set(o),E(o)},o=e=>{let t={accountKey:b,data:{...e,symbolListMap:e.symbolListMap??new Map}};w.set(t),C(t)};return(async()=>{let r=(0,a.loadSpotMetaData)(),n=await s.default.getOrigninalSpotMeta();if(e)return;if(n){t({...n,symbolListMap:n.symbolListMap??new Map});let r=await s.default.onFilterSpot(n,y);if(e)return;o(r)}let i=await r;if(e)return;t(i);let l=await s.default.onFilterSpot(i,y);e||(o(l),await Promise.all([u.SpotDB.setSpotCoinListProcessed(l.coinList),u.SpotDB.setSpotSymbolListProcessed(l.symbolList)]))})().catch(e=>c.default.warn("Failed to load spot metadata:",e)),()=>{e=!0}},[b,y]);let x=(0,o.usePublicCoinList)(b,P,S),L=(0,r.useSyncExternalStore)(n.subscribeSpotCoinIcons,n.getSpotCoinIcons,n.getServerSpotCoinIcons),T=(0,r.useMemo)(()=>L??(0,n.buildSpotCoinIconMap)(P),[L,P]),A=(0,r.useMemo)(()=>x.coinList.map(e=>({...e,iconUrl:(0,n.getSpotCoinIcon)(T,e.coinId)})),[x.coinList,T]),M=(0,r.useMemo)(()=>x.coinListOrigin.map(e=>({...e,iconUrl:(0,n.getSpotCoinIcon)(T,e.coinId)})),[x.coinListOrigin,T]),j=(0,r.useMemo)(()=>I.map(e=>(0,d.applySpotFeeLabels)((0,n.withSpotSymbolIcon)(e,T),i)),[I,T,i]),O=(0,r.useMemo)(()=>new Map(j.map(e=>[e.symbolId,e])),[j]),F=(0,r.useMemo)(()=>$.map(e=>(0,n.withSpotSymbolIcon)(e,T)),[$,T]),_=(0,r.useMemo)(()=>new Map(F.map(e=>[e.symbolId,e])),[F]),k=(0,r.useMemo)(()=>({coinList:A,symbolList:j,symbolListMap:O,coinListOrigin:M,symbolListOrigin:F,symbolListMapOrigin:_,coinMetaData:M}),[A,j,O,M,F,_]);return(0,t.jsx)(f.Provider,{value:k,children:e})},"useSpotMetaData",0,()=>(0,r.useContext)(f)])},42111,e=>{"use strict";var t=e.i(703543);let o=e=>{if(null==e||""===e)return;let t=Number(e);return Number.isFinite(t)?t:void 0},r=(e,t)=>{let r=o(e?.coinType);return void 0!==r?r:o(t?.get(String(e?.baseCoinId))?.coinType)};e.s(["STOCK_COIN_TYPE",0,1,"getStockSymbolCoinType",0,r,"isStockSymbol",0,(e,t)=>1===r(e,t),"resolveStockSpotPath",0,(e,o,n)=>{let i=e.match(/^\/(spot|stocks)\/([^/?#]+)([?#].*)?$/);if(!i)return e;let[,a,s,l=""]=i;if(!s)return e;let u=(0,t.decodeSymbol)(s),c=o.find(e=>e.symbolName===u);if(!c)return e;let p=r(c,new Map(n.map(e=>[String(e.coinId),e])));return"spot"===a&&1===p?`/stocks/${s}${l}`:"stocks"===a&&0===p?`/spot/${s}${l}`:e}])},625999,376053,e=>{"use strict";var t=e.i(861745),o=e.i(703543),r=e.i(676623),n=e.i(671707),i=e.i(738169),a=e.i(70610),s=e.i(608751);let l="weex:auth-dialog-open",u="weex:auth-dialog-close",c="weex:auth-dialog-success",p="weex:auth-dialog-register-completed",d="weex:auth-dialog-register-success-pending",g="weex:auth-page-login-language-sync",f=new Set(["/login","/register","/reset-password"]),m=new Map,w=0,h=(e,t)=>{if(/^https?:\/\//i.test(e))return e;let[o="",r=""]=e.split("#"),[i="/",a=""]=o.split("?"),s=i.split("/").filter(
2Boolean);if(s.length>0&&n.Langs.includes(s[0]))return e;let l=t===n.LangKey.en?i:`/${t}${i}`,u=a?`${l}?${a}`:l;return r?`${u}#${r}`:u},v=e=>{let t,o,r=(t=/^https?:\/\//i.test(e)?e:new URL(e,window.location.origin).toString(),(o=(new URL(t,"https://www.example.com").pathname||"/").split("/").filter(Boolean)).length>0&&n.Langs.includes(o[0])&&o.shift(),`/${o.join("/")||""}`.replace(/\/+$/,"")||"/");return f.has(r)?"/register"===r?"register":"/reset-password"===r?"reset-password":"login":null},y=e=>(0,s.getPopupThemeByPathname)(e),b=(e,t,n={})=>{if(n.disabled)return!1;let s=(e=>{if("register"!==v(e))return e;let t=new URLSearchParams(window.location.search).get("vipCode");if(!t)return e;let o=new URL(e,window.location.origin);return o.searchParams.has("vipCode")?e:(o.searchParams.set("vipCode",t),/^https?:\/\//i.test(e))?o.toString():`${o.pathname}${o.search}${o.hash}`})(e);if((0,a.checkIsMobile)())return window.location.href=((e,t)=>{let n=h(e,t);if(/^https?:\/\//i.test(n))return n;if((0,o.isProjectPage)(n))return r.isClient?`${window.location.origin}${n}`:`https://www.${i.MAIN_DOMAIN}${n}`;if(r.isDev){let e=(0,o.getPortByPath)(n);return`${location.protocol}//${location.hostname}:${e}${n}`}return r.isClient?`${window.location.origin}${n}`:`https://www.${i.MAIN_DOMAIN}${n}`})(s,t),!0;let u=v(s);if(!u)return!1;let c=(w+=1,`auth-dialog-${Date.now()}-${w}`),p=n.theme??y(window.location.pathname);n.onResult&&m.set(c,n.onResult);let d={mode:u,requestId:c,url:((e,t)=>{let n=h(e,t),a=(0,o.setQueryParams)(n,{dialog:"1"});if(/^https?:\/\//i.test(a))return a;if((0,o.isProjectPage)(n))return r.isClient?`${window.location.origin}${a}`:`https://www.${i.MAIN_DOMAIN}${a}`;if(r.isDev){let e=(0,o.getPortByPath)(n);return`${location.protocol}//${location.hostname}:${e}${a}`}return r.isClient?`${window.location.origin}${a}`:`https://www.${i.MAIN_DOMAIN}${a}`})(s,t),...p?{theme:p}:{},...n.preserveResultCallbackFromRequestId?{preserveResultCallbackFromRequestId:n.preserveResultCallbackFromRequestId}:{}};return window.dispatchEvent(new CustomEvent(l,{detail:d})),!0},D=e=>"string"==typeof e?e:(0,o.setQueryParams)(e.pathname,e.query||{});e.s(["AUTH_DIALOG_CLOSE_EVENT",0,u,"AUTH_DIALOG_OPEN_EVENT",0,l,"AUTH_DIALOG_REGISTER_COMPLETED_EVENT",0,p,"AUTH_DIALOG_REGISTER_LEAVE_CONFIRM_EVENT",0,"weex:auth-dialog-register-leave-confirm","AUTH_DIALOG_SUCCESS_EVENT",0,c,"buildHrefWithQuery",0,D,"clearAuthDialogRegisterSuccessPending",0,()=>{window.sessionStorage.removeItem(d)},"closeAuthDialog",0,()=>{window.dispatchEvent(new Event(u))},"consumeAuthPageLoginLanguageSyncPending",0,()=>{try{let e=Number(window.sessionStorage.getItem(g));return window.sessionStorage.removeItem(g),e>0&&Date.now()-e<=6e4}catch{return!1}},"getDefaultAuthDialogTheme",0,y,"isAuthDialogLoginSuccess",0,e=>"login"===e||"object"==typeof e&&null!==e&&"mode"in e&&"login"===e.mode,"isAuthDialogRegisterSuccessPending",0,()=>"true"===window.sessionStorage.getItem(d),"markAuthDialogRegisterSuccessPending",0,()=>{window.sessionStorage.setItem(d,"true")},"markAuthPageLoginLanguageSyncPending",0,()=>{try{window.sessionStorage.setItem(g,String(Date.now()))}catch{}},"moveAuthDialogResultCallback",0,(e,t)=>{if(e===t)return;let o=m.get(e);o&&(m.delete(e),m.set(t,o))},"notifyAuthDialogRegisterCompleted",0,()=>{window.dispatchEvent(new Event(p))},"notifyAuthDialogResult",0,e=>{let t=m.get(e.requestId);t&&(m.delete(e.requestId),t(e)),window.dispatchEvent(new CustomEvent("weex:auth-dialog-result",{detail:e}))},"notifyAuthDialogSuccess",0,e=>{window.dispatchEvent(new CustomEvent(c,{detail:e}))},"openAuthDialog",0,b,"openAuthDialogForced",0,(e,t={})=>{let o=new URLSearchParams({dialog:"1"});t.userName&&o.set("userName",t.userName),t.vipCode&&o.set("vipCode",t.vipCode),t.areaCode&&o.set("areaCode",t.areaCode),t.buttonText&&o.set("buttonText",t.buttonText);let r=`${window.location.origin}${h("/register",e)}?${o.toString()}`,n=`auth-dialog-forced-${Date.now()}`;window.dispatchEvent(new CustomEvent(l,{detail:{mode:"register",requestId:n,url:r,forceDialog:!0}}))}],376053);var C=e.i(548894),S=e.i(42111),I=e.i(618566);e.s(["useWeexRouter",0,()=>{let e=(0,I.useRouter)(),i=(0,t.useLocale)(),{symbolList:a=[],coinMetaData:s=[]}=(0,C.useSpotMetaData)(),l=e=>(0,S.resolveStockSpotPath)(e,a,s),u=(e,t,o)=>b(D(e),t,{disabled:o?.disableAuthDialog,preserveResultCallbackFromRequestId:o?.preserveResultCallbackFromRequestId});return{...e,push:(t,a)=>{let s=l("string"==typeof t?t:t.pathname),c="string"==typeof t?{}:t.query||{}
2,p="string"==typeof t?s:{...t,pathname:s},d=a?.locale||i;if(!u(p,d,a))if((0,o.isProjectPage)(s)){let t="string"==typeof p?{pathname:p}:p,r=(0,o.setQueryParams)(t.pathname,t.query||{});e.push(`${d===n.LangKey.en?"":"/"+d}${r}`,{scroll:a?.scroll??!0})}else{let e=d;if(e=e==n.LangKey.en?"":`/${e}`,r.isDev){let t=(0,o.getPortByPath)(s);window.location.href=(0,o.setQueryParams)(`${location.protocol}//${location.hostname}:${t}${e}${s}`,c)}else window.location.href=(0,o.setQueryParams)(`${location.origin}${e}${s}`,c)}},replace:(t,a)=>{let s="string"==typeof t?t:t.pathname,c=l(s),p="string"==typeof t?{}:t.query||{},d="string"==typeof t?c:{...t,pathname:c},g=a?.locale||i;if(!u(d,g,a))if((0,o.isProjectPage)(c)){let t=g;if(t=t===n.LangKey.en?r.isDev?`/${t}`:"":`/${t}`,c!==s)return void e.replace((0,o.setQueryParams)(`${t}${c}`,p),{scroll:a?.scroll??!1});let i=(0,o.setQueryParams)(`${location.origin}${t}${c}`,p);window.history.replaceState({path:i},"",i);let l=new CustomEvent("weexRouteChange",{detail:{path:c,url:i,query:p}});window.dispatchEvent(l)}else{let e=g;if(e=e==n.LangKey.en?"":`/${e}`,r.isDev){let t=(0,o.getPortByPath)(c);window.location.href=(0,o.setQueryParams)(`${location.protocol}//${location.hostname}:${t}${e}${c}`,p)}else window.location.href=(0,o.setQueryParams)(`${location.origin}${e}${c}`,p)}}}}],625999)},326999,e=>{"use strict";var t=e.i(271645),o=e.i(981140),r=e.i(820783),n=e.i(30030),i=e.i(610772),a=e.i(369340),s=e.i(726330),l=e.i(765491),u=e.i(774606),c=e.i(296626),p=e.i(248425),d=e.i(303536),g=e.i(934620),f=e.i(985369),m=e.i(186312),w=e.i(991918),h=e.i(843476),v=Object.defineProperty,y=(e,t)=>v(e,"name",{value:t,configurable:!0}),b="Dialog",[D,C]=(0,n.createContextScope)(b),[S,I]=D(b),P=y(e=>{let{__scopeDialog:o,children:r,open:n,defaultOpen:s,onOpenChange:l,modal:u=!0}=e,c=t.useRef(null),p=t.useRef(null),[d,g]=(0,a.useControllableState)({prop:n,defaultProp:s??!1,onChange:l,caller:b}),[f,m]=t.useState(0),[w,v]=t.useState(0);return(0,h.jsx)(S,{scope:o,triggerRef:c,contentRef:p,contentId:(0,i.useId)(),titleId:(0,i.useId)(),descriptionId:(0,i.useId)(),titlePresent:f>0,descriptionPresent:w>0,setTitleCount:m,setDescriptionCount:v,open:d,onOpenChange:g,onOpenToggle:t.useCallback(()=>g(e=>!e),[g]),modal:u,children:r})},"Dialog"),R=t.forwardRef(y(function(e,t){let{__scopeDialog:n,...i}=e,a=I("DialogTrigger",n),s=(0,r.useComposedRefs)(t,a.triggerRef);return(0,h.jsx)(p.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":U(a.open),...i,ref:s,onClick:(0,o.composeEventHandlers)(e.onClick,a.onOpenToggle)})},"DialogTrigger")),$="DialogPortal",[E,x]=D($,{forceMount:void 0}),L=y(e=>{let{__scopeDialog:o,forceMount:r,children:n,container:i}=e,a=I($,o);return(0,h.jsx)(E,{scope:o,forceMount:r,children:t.Children.map(n,e=>(0,h.jsx)(c.Presence,{present:r||a.open,children:(0,h.jsx)(u.Portal,{asChild:!0,container:i,children:e})}))})},"DialogPortal"),T="DialogOverlay",A=t.forwardRef(y(function(e,t){let o=x(T,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,i=I(T,e.__scopeDialog);return i.modal?(0,h.jsx)(c.Presence,{present:r||i.open,children:(0,h.jsx)(j,{...n,ref:t})}):null},"DialogOverlay")),M=(0,w.createSlot)("DialogOverlay.RemoveScroll"),j=t.forwardRef(y(function(e,t){let{__scopeDialog:o,...n}=e,i=I(T,o),a=(0,s.useDismissableLayerSurface)(),l=(0,r.useComposedRefs)(t,a);return(0,h.jsx)(f.RemoveScroll,{as:M,allowPinchZoom:!0,shards:[i.contentRef],children:(0,h.jsx)(p.Primitive.div,{"data-state":U(i.open),...n,ref:l,style:{pointerEvents:"auto",...n.style}})})},"DialogOverlayImpl")),O="DialogContent",F=t.forwardRef(y(function(e,t){let o=x(O,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,i=I(O,e.__scopeDialog);return(0,h.jsx)(c.Presence,{present:r||i.open,children:i.modal?(0,h.jsx)(_,{...n,ref:t}):(0,h.jsx)(k,{...n,ref:t})})},"DialogContent")),_=t.forwardRef(y(function(e,n){let i=I(O,e.__scopeDialog),a=t.useRef(null),s=(0,r.useComposedRefs)(n,i.contentRef,a);return t.useEffect(()=>{let e=a.current;if(e)return(0,m.hideOthers)(e)},[]),(0,h.jsx)(G,{...e,ref:s,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:(0,o.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,o=0===t.button&&!0===t.ctrlKey;(2===t.button||o)&&e.preventDefault()}),onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}
2,"DialogContentModal")),k=t.forwardRef(y(function(e,o){let r=I(O,e.__scopeDialog),n=t.useRef(!1),i=t.useRef(!1);return(0,h.jsx)(G,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let o=t.target;r.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"DialogContentNonModal")),G=t.forwardRef(y(function(e,t){let{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:i,...a}=e,u=I(O,o);return(0,d.useFocusGuards)(),(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:i,children:(0,h.jsx)(s.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionPresent?u.descriptionId:void 0,"aria-labelledby":u.titlePresent?u.titleId:void 0,"data-state":U(u.open),...a,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})},"DialogContentImpl")),N=t.forwardRef(y(function(e,t){let{__scopeDialog:o,...r}=e,n=I("DialogTitle",o),{setTitleCount:i}=n;return(0,g.useLayoutEffect)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,h.jsx)(p.Primitive.h2,{id:n.titleId,...r,ref:t})},"DialogTitle")),H=t.forwardRef(y(function(e,t){let{__scopeDialog:o,...r}=e,n=I("DialogDescription",o),{setDescriptionCount:i}=n;return(0,g.useLayoutEffect)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,h.jsx)(p.Primitive.p,{id:n.descriptionId,...r,ref:t})},"DialogDescription")),K=t.forwardRef(y(function(e,t){let{__scopeDialog:r,...n}=e,i=I("DialogClose",r);return(0,h.jsx)(p.Primitive.button,{type:"button",...n,ref:t,onClick:(0,o.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function U(e){return e?"open":"closed"}y(U,"getState"),e.s(["Close",0,K,"Content",0,F,"Description",0,H,"Dialog",0,P,"DialogClose",0,K,"DialogContent",0,F,"DialogDescription",0,H,"DialogOverlay",0,A,"DialogPortal",0,L,"DialogTitle",0,N,"DialogTrigger",0,R,"Overlay",0,A,"Portal",0,L,"Root",0,P,"Title",0,N,"Trigger",0,R,"createDialogScope",0,C])},842727,e=>{"use strict";var t=e.i(271645),o=e.i(981140),r=e.i(75830),n=e.i(820783),i=e.i(30030),a=e.i(610772),s=e.i(248425),l=e.i(30207),u=e.i(369340),c=e.i(586318),p=e.i(934620),d=Object.defineProperty,g=(e,t)=>d(e,"name",{value:t,configurable:!0}),f=!1;function m(){let[e,o]=t.useState(f);return t.useEffect(()=>{f||(f=!0,o(!0))},[]),e}g(m,"useIsHydrated");var w=t[" useSyncExternalStore ".trim().toString()];function h(){return()=>{}}function v(){return w(h,()=>!0,()=>!1)}g(h,"subscribe"),g(v,"useIsHydratedModern");var y="function"==typeof w?v:m,b=e.i(843476),D=Object.defineProperty,C=(e,t)=>D(e,"name",{value:t,configurable:!0}),S="rovingFocusGroup.onEntryFocus",I={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[R,$,E]=(0,r.createCollection)(P),[x,L]=(0,i.createContextScope)(P,[E]),[T,A]=x(P),M=t.forwardRef(C(function(e,t){return(0,b.jsx)(R.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(R.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(j,{...e,ref:t})})})},"RovingFocusGroup")),j=t.forwardRef(C(function(e,r){let{__scopeRovingFocusGroup:i,orientation:a,loop:p=!1,dir:d,currentTabStopId:g,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:m,onEntryFocus:w,preventScrollOnEntryFocus:h=!1,...v}=e,y=t.useRef(null),D=(0,n.useComposedRefs)(r,y),C=(0,c.useDirection)(d),[R,E]=(0,u.useControllableState)({prop:g,defaultProp:f??null,onChange:m,caller:P}),[x,L]=t.useState(!1),A=(0,l.useCallbackRef)(w),M=$(i),j=t.useRef(!1),[O,F]=t.useState(0);return t.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(S,A),()=>e.removeEventListener(S,A)},[A]),(0,b.jsx)(T,{scope:i,orientation:a,dir:C,loop:p,currentTabStopId:R,onItemFocus:t.useCallback(e=>E(e),[E]),onItemShiftTab:t.useCallback(()=>L(!0),[]),onFocusableItemAdd:t.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>F(e=>e-1),[]),children:(0,b.jsx)(s.Primitive.div,{tabIndex:x||0===O?-1:0,"data-orientation":a,...v,ref:D,style:{outline:"none",...e.style},onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,o.composeEventHandlers)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!x){let t=new CustomEvent(S,I);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>
2e.focusable);G([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),h)}}j.current=!1}),onBlur:(0,o.composeEventHandlers)(e.onBlur,()=>L(!1))})})},"RovingFocusGroupImpl")),O=t.forwardRef(C(function(e,r){let{__scopeRovingFocusGroup:n,focusable:i=!0,active:l=!1,tabStopId:u,children:c,...d}=e,g=(0,a.useId)(),f=u||g,m=A("RovingFocusGroupItem",n),w=m.currentTabStopId===f,h=$(n),{onFocusableItemAdd:v,onFocusableItemRemove:D,currentTabStopId:C}=m,S=y();return(0,p.useLayoutEffect)(()=>{if(S&&i)return v(),()=>D()},[S,i,v,D]),t.useEffect(()=>{if(!S&&i)return v(),()=>D()},[S,i,v,D]),(0,b.jsx)(R.ItemSlot,{scope:n,id:f,focusable:i,active:l,children:(0,b.jsx)(s.Primitive.span,{tabIndex:w?0:-1,"data-orientation":m.orientation,...d,ref:r,onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,e=>{i?m.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=k(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();let r=o.indexOf(e.currentTarget);o=m.loop?N(o,r+1):o.slice(r+1)}setTimeout(()=>G(o))}}),children:"function"==typeof c?c({isCurrentTabStop:w,hasTabStop:null!=C}):c})})},"RovingFocusGroupItem")),F={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function k(e,t,o){let r=_(e.key,o);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return F[r]}function G(e,t=!1){let o=document.activeElement;for(let r of e)if(r===o||(r.focus({preventScroll:t}),document.activeElement!==o))return}function N(e,t){return e.map((o,r)=>e[(t+r)%e.length])}C(_,"getDirectionAwareKey"),C(k,"getFocusIntent"),C(G,"focusFirst"),C(N,"wrapArray"),e.s(["Item",0,O,"Root",0,M,"createRovingFocusGroupScope",0,L],842727)},459881,e=>{"use strict";var t=e.i(271645),o=e.i(30030),r=e.i(248425),n=e.i(842727),i=e.i(981140),a=e.i(369340),s=e.i(843476),l=Object.defineProperty,u=t.forwardRef(l(function(e,t){let{pressed:o,defaultPressed:n,onPressedCh
2ange:l,...u}=e,[c,p]=(0,a.useControllableState)({prop:o,onChange:l,defaultProp:n??!1,caller:"Toggle"});return(0,s.jsx)(r.Primitive.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...u,ref:t,onClick:(0,i.composeEventHandlers)(e.onClick,()=>{e.disabled||p(!c)})})},"name",{value:"Toggle",configurable:!0})),c=e.i(586318),p=Object.defineProperty,d=(e,t)=>p(e,"name",{value:t,configurable:!0}),g="ToggleGroup",[f,m]=(0,o.createContextScope)(g,[n.createRovingFocusGroupScope]),w=(0,n.createRovingFocusGroupScope)(),h=t.forwardRef(d(function(e,t){let{type:o,...r}=e;if("single"===o)return(0,s.jsx)(b,{role:"radiogroup",...r,ref:t});if("multiple"===o)return(0,s.jsx)(D,{role:"toolbar",...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${g}\``)},"ToggleGroup")),[v,y]=f(g),b=t.forwardRef(d(function(e,o){let{value:r,defaultValue:n,onValueChange:i=d(()=>{},"onValueChange"),...l}=e,[u,c]=(0,a.useControllableState)({prop:r,defaultProp:n??"",onChange:i,caller:g});return(0,s.jsx)(v,{scope:e.__scopeToggleGroup,type:"single",value:t.useMemo(()=>u?[u]:[],[u]),onItemActivate:c,onItemDeactivate:t.useCallback(()=>c(""),[c]),children:(0,s.jsx)(I,{...l,ref:o})})},"ToggleGroupImplSingle")),D=t.forwardRef(d(function(e,o){let{value:r,defaultValue:n,onValueChange:i=d(()=>{},"onValueChange"),...l}=e,[u,c]=(0,a.useControllableState)({prop:r,defaultProp:n??[],onChange:i,caller:g}),p=t.useCallback(e=>c((t=[])=>[...t,e]),[c]),f=t.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,s.jsx)(v,{scope:e.__scopeToggleGroup,type:"multiple",value:u,onItemActivate:p,onItemDeactivate:f,children:(0,s.jsx)(I,{...l,ref:o})})},"ToggleGroupImplMultiple")),[C,S]=f(g),I=t.forwardRef(d(function(e,t){let{__scopeToggleGroup:o,disabled:i=!1,rovingFocus:a=!0,orientation:l,dir:u,loop:p=!0,...d}=e,g=w(o),f=(0,c.useDirection)(u),m={dir:f,...d};return(0,s.jsx)(C,{scope:o,rovingFocus:a,disabled:i,children:a?(0,s.jsx)(n.Root,{asChild:!0,...g,orientation:l,dir:f,loop:p,children:(0,s.jsx)(r.Primitive.div,{...m,ref:t})}):(0,s.jsx)(r.Primitive.div,{...m,ref:t})})},"ToggleGroupImpl")),P="ToggleGroupItem",R=t.forwardRef(d(function(e,o){let r=y(P,e.__scopeToggleGroup),i=S(P,e.__scopeToggleGroup),a=w(e.__scopeToggleGroup),l=r.value.includes(e.value),u=i.disabled||e.disabled,c={...e,pressed:l,disabled:u},p=t.useRef(null);return i.rovingFocus?(0,s.jsx)(n.Item,{asChild:!0,...a,focusable:!u,active:l,ref:p,children:(0,s.jsx)($,{...c,ref:o})}):(0,s.jsx)($,{...c,ref:o})},"ToggleGroupItem")),$=t.forwardRef(d(function(e,t){let{__scopeToggleGroup:o,value:r,...n}=e,i=y(P,o),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l="single"===i.type?a:void 0;return(0,s.jsx)(u,{...l,...n,ref:t,onPressedChange:e=>{e?i.onItemActivate(r):i.onItemDeactivate(r)}})},"ToggleGroupItemImpl"));e.s(["Item",0,R,"Root",0,h,"ToggleGroup",0,h,"ToggleGroupItem",0,R],459881)}]);
3
4//# debugId=a7596c68-7dc0-9252-b383-71a6f085699f

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.