PageSourceSearch

https://www.mybme.de/vite/assets/api-ZuDw7OHa.js

js mybme.de collected 2026-09-24 14:59:48 UTC 3,219 bytes, 2 lines download raw bytes

1import{s as e}from"./jquery-CQ5NoRPr.js";import{Al as t}from"./pro-duotone-svg-icons-CmsThgj0.js";import{r as n}from"./reactQueryApi-DmXPsiNP.js";import{i as r,o as i,r as a}from"./es-Bxcy4QEl.js";var o=e(t()),s=e=>a(`/api/storage/files/${e}`,{enabled:!!e});function c(e,t){return r(async()=>{let r=new URLSearchParams;return t.forEach(e=>r.append(`actions[]`,e)),(await n(`/api/storage/files/${e}/permissions?${r}`)).permissions??{}})}function l(){let e=i();return r(({fileId:e})=>n(`/api/storage/files/${e}/lock`,{method:`PUT`,body:{locked_until:new Date(Date.now()+(Number(Preload.current_network.config.files?.default_lock_period_in_days)||7)*24*60*60*1e3).toISOString()}}),{onSuccess:(t,{fileId:n})=>{e.invalidateQueries(`/api/storage/files/${n}`)}})}function u(){let e=i();return r(({fileId:e})=>n(`/api/storage/files/${e}/lock`,{method:`DELETE`}),{onSuccess:(t,{fileId:n})=>{e.invalidateQueries(`/api/storage/files/${n}`)}})}function d(){let e=i();return r(({fileId:e})=>n(`/api/storage/files/${e}/finalize`,{method:`PUT`}),{onSuccess:(t,{fileId:n})=>{e.invalidateQueries(`/api/storage/files/${n}`)}})}function f(){let e=i();return r(({fileId:e})=>n(`/api/storage/files/${e}/finalize`,{method:`DELETE`}),{onSuccess:(t,{fileId:n})=>{e.invalidateQueries(`/api/storage/files/${n}`)}})}function p(){let e=i();return r(({fileId:e,versionId:t})=>n(`/api/storage/files/${e}/versions/${t}`,{method:`DELETE`}),{onSuccess:(t,{fileId:n})=>{e.invalidateQueries(`/api/storage/files/${n}/versions`),e.invalidateQueries(`/api/storage/files/${n}`)}})}var m=(e,t=`folders`)=>a(`/api/storage/${t}/${e}?limit=1000`,{enabled:!!e}),h=(e,t=`folders`)=>a(`/api/storage/${t}/${e}?limit=1`,{enabled:!!e});function g(e){let t=i();return r(e=>n(`/api/storage/folders`,{method:`POST`,body:e}),{...e,onSuccess:(n,r,i)=>{t.invalidateQueries(`/api/storage/folders`),e?.onSuccess?.(n,r,i)}})}function _(e){let t=i();return r(({folderId:e,...t})=>n(`/api/storage/folders/${e}`,{method:`PUT`,body:t}),{...e,onSuccess:(n,r,i)=>{t.invalidateQueries(`/api/storage/folders/${r.folderId}`),e?.onSuccess?.(n,r,i)}})}function v(e){let t=i();return r(({fileId:e,...t})=>n(`/api/storage/files/${e}`,{method:`PUT`,body:t}),{...e,onSuccess:(n,r,i)=>{t.invalidateQueries(`/api/storage/files/${r.fileId}`),e?.onSuccess?.(n,r,i)}})}function y(e){let t=i();return r(({fileId:e,uploadedFileId:t,version_description:r,post_to_stream:i})=>n(`/api/storage/files/${e}/versions/publish`,{method:`POST`,body:{file_id:t,version_description:r,post_to_stream:i}}),{...e,onSuccess:(n,r,i)=>{t.invalidateQueries(`/api/storage/files/${r.fileId}`),e?.onSuccess?.(n,r,i)}})}function b(e){let t=i();return r(e=>n(`/api/storage/files/publish`,{method:`POST`,body:e}),{...e,onSuccess:(n,r,i)=>{t.invalidateQueries(`/api/storage/folders`),e?.onSuccess?.(n,r,i)}})}function x(e){return r(e=>Promise.all((0,o.map)(e,({type:e,body:t})=>n(`/api/storage/${e}`,{method:`DELETE`,body:t}))),e)}function S(e){return r(({requests:e})=>Promise.all((0,o.map)(e,({type:e,body:t})=>n(`/api/storage/${e}/move`,{method:`POST`,body:t}))),e)}export{s as a,d as c,y as d,x as f,_ as g,v as h,p as i,l,u as m,b as n,m as o,f as p,g as r,h as s,c as t,S as u};
2//# sourceMappingURL=api-ZuDw7OHa.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.