PageSourceSearch

https://app.encord.com/assets/nba480FpsEfficientCarouselConfig-t0YmTGZJ.js

js encord.com collected 2026-09-24 08:29:44 UTC 2,151 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:`079f119005c16c7ba474b5568b4202418d006b3c`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`34ae830f-ed45-4c0e-b44f-562f725ef835`,e._sentryDebugIdIdentifier=`sentry-dbid-34ae830f-ed45-4c0e-b44f-562f725ef835`)}catch{}})();import{o as e}from"./chunk-Bdzr1zoH.js";import{a as t}from"./clsx-sH5o5_O3.js";import{c as n,s as r,w as i}from"./context-CuA7alBS.js";import{I as a}from"./useEditorParams-QslG4kXB.js";import{V as o}from"./react-DJ9_MFfo.js";import{n as s}from"./useProjectBaseInfo-BLWtG08n.js";var c=e(t()),l=async({projectHash:e,settings:t})=>r(o.projectPatchSettings({path:{project_hash:e},body:t}));function u(){let e=i();return n({mutationFn:l,onMutate:async({projectHash:t,settings:n})=>{let r=[a.baseInfo({projectHash:t}),a.infoWithParams({projectHash:t})];await Promise.all(r.map(async t=>e.cancelQueries({queryKey:t})));let i=r.map(t=>({queryKey:t,project:e.getQueryData(t)}));if(`predefinedLayoutTemplate`in n)for(let t of r)e.setQueryData(t,e=>e===void 0?e:{...e,settings:{...e.settings,predefined_layout_template:n.predefinedLayoutTemplate}});return{previousProjects:i}},onError:(t,n,r)=>{for(let{queryKey:t,project:n}of r?.previousProjects??[])e.setQueryData(t,n)},onSettled:async(t,n,{projectHash:r})=>{let i=[a.baseInfo({projectHash:r}),a.infoWithParams({projectHash:r})];await Promise.all(i.map(async t=>e.invalidateQueries({queryKey:t})))}})}function d(e,t){return(e??{})[t]}function f(e,t){let{data:n}=s({projectHash:e});return d(n?.settings?.custom_editor_config,t)}function p(e){let{mutate:t,isPending:n}=u(),r=(0,c.useCallback)((n,r)=>{t({projectHash:e,settings:{customEditorConfig:n}},{...r?.onSuccess!=null&&{onSuccess:r.onSuccess},...r?.onError!=null&&{onError:r.onError}})},[e,t]);return{setSlice:(0,c.useCallback)((e,t,n)=>{r({[e]:t},n)},[r]),setSlices:r,isPending:n}}var m=`nba_480fps_custom_editor_efficient_carousel`,h=e=>({v2:typeof e==`object`&&!!e&&`v2`in e&&e.v2===!0});export{p as a,f as i,h as n,u as o,d as r,m 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.