UNPKG

@getontime/cli

Version:

Time keeping for live events

2 lines 1.69 kB
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`f14ad0099eab1969fdd065b56af5fdd3cf530de6`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b1b56670-d301-4288-92f3-02e661bf82d1`,e._sentryDebugIdIdentifier=`sentry-dbid-b1b56670-d301-4288-92f3-02e661bf82d1`)}catch{}})();import{_n as e,b as t,r as n,vn as r}from"./constants-8b9Q9Bj6.js";function i(e){return e instanceof Error?e.message:String(e)}function a(e){let t=e.replace(/[a-zA-Z0-9]/g,e=>/[a-zA-Z]/.test(e)?String.fromCharCode((e<=`Z`?90:122)>=(e=e.charCodeAt(0)+13)?e:e-26):String.fromCharCode((e<=`4`?57:48)>=(e=e.charCodeAt(0)+5)?e:e-10));return e.startsWith(`_`)?t.replace(`_`,``):`_${t}`}function o(e){return e.startsWith(`_`)?a(e):e}var s=`${t}/settings`;async function c(t){return(await e.get(s,{signal:t?.signal})).data}async function l(t){return e.post(s,t)}async function u(t){e.post(`${s}/welcomedialog`,{show:t})}async function d(t){return(await e.get(`${s}/serverport`,{signal:t?.signal})).data}async function f(t){return e.post(`${s}/serverport`,{serverPort:t})}var p={version:`4.0.0`,editorKey:null,operatorKey:null,timeFormat:`24`,language:`en`};function m(){let{data:e,status:t,isFetching:i,isError:a,refetch:s}=r({queryKey:n,queryFn:({signal:e})=>c({signal:e}),placeholderData:(e,t)=>e,select:e=>{let t={...e};return e.editorKey&&(t.editorKey=o(e.editorKey)),e.operatorKey&&(t.operatorKey=o(e.operatorKey)),t}});return{data:e??p,status:t,isFetching:i,isError:a,refetch:s}}export{u as a,l as i,d as n,i as o,f as r,m as t}; //# sourceMappingURL=useSettings-CeUw01Bu.js.map