PageSourceSearch

https://rafaelgiupponi.com.br/assets/useTags-Biuf7vVb.js

js rafaelgiupponi.com.br collected 2026-10-06 04:33:56 UTC 796 bytes, 1 lines download raw bytes

1import{t as e}from"./useQuery-DBpwxTnJ.js";import{t}from"./useMutation-CspRMlJa.js";import{f as n,nt as r}from"./index-BB4Q0gnZ.js";var i=()=>e({queryKey:[`tags`],queryFn:async()=>{let{data:e,error:t}=await n.from(`media_tags`).select(`*`).order(`name`);if(t)throw t;return e}}),a=()=>{let e=r();return t({mutationFn:async e=>{let{data:t,error:r}=await n.from(`media_tags`).insert(e).select().single();if(r)throw r;return t},onSuccess:()=>{e.invalidateQueries({queryKey:[`tags`]})}})},o=()=>{let e=r();return t({mutationFn:async e=>{let{data:t,error:r}=await n.from(`media_tags`).delete().eq(`id`,e).select();if(r)throw r;if(!t||t.length===0)throw Error(`Você não tem permissão para excluir esta tag.`)},onSuccess:()=>{e.invalidateQueries({queryKey:[`tags`]})}})};export{o as n,i as r,a 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.