PageSourceSearch

https://app.riskledger.com/assets/api-CbuzYWHe.js

js riskledger.com collected 2026-10-01 15:05:52 UTC 2,565 bytes, 2 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:`e2be2c1406b220ea6d44040825a512cf2eda6c2b`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d505eb52-97c9-4125-8497-7fedcde16341`,e._sentryDebugIdIdentifier=`sentry-dbid-d505eb52-97c9-4125-8497-7fedcde16341`)}catch{}})();import{At as e,P as t,_t as n,b as r}from"./vue.runtime.esm-bundler-BEYrJSOn.js";import{c as i}from"./analytics-Bp4glgtD.js";import{t as a}from"./useQueryClient-GNHuw6Mb.js";import{n as o,t as s}from"./utils-DUYw48xO.js";import{t as c}from"./useQuery-BfVWerBR.js";import{t as l}from"./useMutation-eHXdFtDo.js";import{u}from"./queryKeys-BNEqWh_3.js";import{r as d}from"./queryKeys-DQD5dzSV.js";import{t as f}from"./queryKeys-Wr2CIj8M.js";import{t as p}from"./complianceConsistency-CD9mpI0K.js";var m=`/labels`,h=`/supplier/:id/labels`;t();function g(e){let t=c(o(e,{queryKey:[m],async queryFn(){return(await i(`GET`,`/labels`)).data}})),n=r(()=>t.data.value||[]),a=r(()=>Object.fromEntries(n.value.map(e=>[e.id,e])));return{...t,query:t,labelList:n,labelsByID:a}}function _(e){let t=a();return l(s(e,{async mutationFn(e){return(await i(`POST`,`/labels`,e)).data},async onSuccess(e){await t.setQueryData([m],t=>{if(t)return t.concat(e)}),await t.invalidateQueries({queryKey:[f]})}}))}function v(e){let t=a();return l(s(e,{async mutationFn(e){return(await i(`PUT`,`/labels/${e.id}`,e)).data},async onSuccess(e){await t.setQueryData([m],t=>{if(t)return t.map(t=>t.id===e.id?e:t)}),await t.invalidateQueries({queryKey:[f]})}}))}function y(e){let t=a();return l(s(e,{async mutationFn(e){return(await i(`DELETE`,`/labels/${e}`)).data},async onSuccess(e,n){await t.setQueryData([m],e=>{if(e)return e.filter(e=>e.id!==n)}),await t.invalidateQueries({queryKey:[f]})}}))}n(),t();function b(t,n){let a=c(o(n,{queryKey:[h,e(t)],async queryFn({queryKey:e}){return(await i(`GET`,`/supplier/${e[1]}/labels`)).data}})),s=r(()=>a.data.value||[]),l=r(()=>Object.fromEntries(s.value.map(e=>[e.id,e])));return{...a,labels:s,labelsByID:l}}function x(e){let t=a();return l(s(e,{async mutationFn(e){return(await i(`PUT`,`/supplier/${e.supplierID}/labels`,{labelIDs:e.labelIDs})).data},async onSuccess(e,n){await Promise.all([t.invalidateQueries({queryKey:[h,n.supplierID]}),t.invalidateQueries({queryKey:[d]}),t.invalidateQueries({queryKey:[u,n.supplierID]})]),p(t,n.supplierID)}}))}export{y as a,_ as i,x as n,v as o,g as r,b as t};
2//# sourceMappingURL=api-CbuzYWHe.js.map

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.