PageSourceSearch

https://www.ibabbleon.com/dashboard/assets/UserStore-BfTMNyaL.js

js ibabbleon.com collected 2026-09-24 08:43:32 UTC 4,224 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:`282cc9b677652e6fae2b78ae8486f8251e72ce64`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`81b59a36-76a6-4b6e-96dd-49b6d0b86c6f`,e._sentryDebugIdIdentifier=`sentry-dbid-81b59a36-76a6-4b6e-96dd-49b6d0b86c6f`)}catch{}})();import{v as e}from"./reactivity.esm-bundler-CEB7aCG7.js";import{n as t}from"./pinia-Do8zXWST.js";import{E as n,F as r,R as i,ft as a,o,r as s}from"./utils-C95O9vI1.js";var c=e({}),l=e(),u=e(!1),d=e(!1),f=e(!1),p=e(!1),m=e({}),h=e(!1),g=e(null),_=e(0),v=e(!1),y=t(`UserStore`,()=>{async function e(e){if(e){let t=await o(`startImpersonate`,{username:e});if(t?.error)return t.error;let i=r()||n(`BABBLE_SID`);localStorage.setItem(`babble/csrf`,t.csrf),localStorage.setItem(`babble_session`,JSON.stringify({token:i,data:t.user})),g.value=e,a(!1)}else if(g.value){let e=await o(`stopImpersonate`,{});if(e?.error)return e.error;let t=r()||n(`BABBLE_SID`);localStorage.setItem(`babble/csrf`,e.csrf),localStorage.setItem(`babble_session`,JSON.stringify({token:t,data:e.user})),g.value=null,a(!1)}let t=r()||n(`BABBLE_SID`),s=await i(t);if(s?.data&&s?.data.user_level){h.value=!0,c.value=s.data;let e=c.value;return l.value=e.user_level.includes(`1`),d.value=e.user_level.includes(`3`),f.value=e.user_level.includes(`10`),p.value=e.user_level.includes(`101`),u.value=e.user_level.includes(`4`),l.value===!0?g.value=g.value||!0:s.impersonating&&(g.value=e.username),u.value===!0&&localStorage.setItem(`babble/pm`,e.username),C(),c.value}return h.value=!1,localStorage.removeItem(`babble/pm`),!1}async function t(e=c.value.username){return await s(`getTimeClock`,`POST`,{user:e})}async function y(e=c.value.username,t=null){return await s(`punchClock`,`POST`,{user:e,notes:t})}async function b(){_.value=await s(`checkForQuotes`,`GET`)}async function x(e=localStorage.getItem(`babble/pm`)){return await s(`getNotifications`,`POST`,{user:e})}async function S(e=localStorage.getItem(`babble/pm`)){return await s(`getNews`,`POST`,{user:e})}async function C(){let e={},t=await s(`getVacations`,`GET`);t?.length&&t.forEach(t=>{e[t.user]||(e[t.user]=[]),e[t.user].push(t)}),m.value=e}async function w(e,t,n){return await s(`getTimeClockHistory`,`POST`,{user:e,startDate:t,endDate:n})}async function T(e,t,n,r){return await s(`addTimeClockEntry`,`POST`,{user:e,date:t,time:n,sick:r})}async function E(e,t,n){let r={entryId:e};return t!==void 0&&(r.time=t),n!==void 0&&(r.sick=n),await s(`editTimeClockEntry`,`POST`,r)}async function D(e){return await s(`deleteTimeClockEntry`,`POST`,{entryId:e})}async function O(e,t,n){return await s(`getTimeClockRevenue`,`POST`,{user:e,year:t,month:n})}async function k(e,t,n,r,i){return await s(`createTimeClockInvoice`,`POST`,{user:e,year:t,month:n,hours:r,revshare:i})}async function A(e){return await s(`getTranslatorList`,`GET`)}async function j(t){localStorage.setItem(`babble/csrf`,t.csrf),localStorage.setItem(`babble_session`,JSON.stringify({token:t.sessionId,data:t.user})),a(!0),await e()}async function M(){try{let e=r()||n(`BABBLE_SID`);e&&await o(`logout`,{sessionId:e})}catch(e){console.error(`Logout error:`,e)}h.value=!1,c.value={},l.value=!1,u.value=!1,d.value=!1,f.value=!1,_.value=0,g.value=null,a(!1),localStorage.removeItem(`babble/pm`),localStorage.removeItem(`babble_session`),localStorage.removeItem(`babble/csrf`),sessionStorage.clear();let e=[``,window.location.hostname,`.ibabbleon.com`,`ibabbleon.com`,`www.ibabbleon.com`],t=[`/`,`/dashboard`,`/dashboard/`];for(let n of e)for(let e of t){let t=n?`; domain=${n}`:``;document.cookie=`BABBLE_SID=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${e}${t}`}return!0}return{fill:e,setSession:j,logout:M,punchClock:y,getTimeClock:t,getTimeClockHistory:w,addTimeClockEntry:T,editTimeClockEntry:E,deleteTimeClockEntry:D,getTimeClockRevenue:O,createTimeClockInvoice:k,vacations:m,checkForQuotes:b,quotes:_,getNotifications:x,user:c,admin:l,pm:u,translator:d,developer:f,programmer:p,impersonate:g,loggedIn:h,showPMNavOverride:v,getTranslatorList:A,getnews:S}});export{y as t};
2//# sourceMappingURL=UserStore-BfTMNyaL.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.