PageSourceSearch

https://www.deribit.com/assets/useComponentSettings-CBWp4PH1.js

js deribit.com collected 2026-09-24 09:24:27 UTC 1,324 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`3dcc281a8e79fff17adf3e75579634b27b7debb6`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d2fa811f-1592-4657-9a16-7dd2754c935c`,e._sentryDebugIdIdentifier=`sentry-dbid-d2fa811f-1592-4657-9a16-7dd2754c935c`)})()}catch{}import{s as e}from"./rolldown-runtime-Dm_dodAQ.js";import{k as t}from"./dist-kP4lwCLB.js";import{On as n,kn as r}from"./formatInstrumentName-BdL2ER9e.js";import{J as i,X as a,t as o,v as s}from"./settings-TfkyLzTl.js";var c=e(t());function useComponentSettings({componentId:e,initialState:t}){let l=n(),u=r(a),d=r(t=>i(t,e||``)),f=(0,c.useMemo)(()=>({...t,...d}),[d]),p=s(t=>{if(e&&u){let n;n=t instanceof Function?t(f):t,l(o.updateComponentSettings({componentId:e,settings:n}))}}),m=s(n=>{!e||!u||l((r,a)=>{let s=i(a(),e);l(o.updateComponentSettings({componentId:e,settings:n({...t,...s})}))})});return(0,c.useMemo)(()=>({areSettingsFetched:u,componentSettings:f,setComponentSettings:p,setComponentSettingsWithLatestUpdate:m}),[u,f,p,m])}export{useComponentSettings as t};

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.