1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};e[`__faroBundleId_product-web`]=`e313db1808d5d556`}catch{}})(),function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`e313db1808d5d556`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`cba7b7e5-3b18-41d9-afd2-553907163b5f`,e._sentryDebugIdIdentifier=`sentry-dbid-cba7b7e5-3b18-41d9-afd2-553907163b5f`)}catch{}}();import{o as e}from"./rolldown-runtime-ClMc49ay.js";import{t}from"./react-DtsBbjZH.js";import{t as n}from"./js.cookie-CK1Zdi6y.js";import{n as r,t as i}from"./shared-96WYTR03.js";var a=e(t());function o(e){return toString.call(e)===`[object Function]`||typeof e==`function`}var s=`persisted_state_hook:`;function c(e,t){let n=`${s}${e}`,r=()=>{try{let e=t.getItem(n);if(!e)return{};let r=JSON.parse(e);return typeof r==`object`&&r&&!Array.isArray(r)?r:{}}catch{return{}}};return[(e,i)=>{let s=r(),c=i;s&&e in s&&(c=s[e]||i);let[l,u]=(0,a.useState)(c),d=(0,a.useCallback)(i=>{let a;o(i)?(a=i(l),u(a)):(u(i),a=i);let s=r(),c=JSON.stringify(Object.assign(s,{[e]:a}));t.setItem(n,c),window.dispatchEvent(new StorageEvent(`storage`,{key:n,newValue:c}))},[e,l]);return(0,a.useEffect)(()=>{let t=t=>{if(t.key===n){let n=JSON.parse(t.newValue),r=n&&e in n?n[e]:i;u(r)}};return window.addEventListener(`storage`,t),()=>{window.removeEventListener(`storage`,t)}},[]),[l,d]},()=>{t.removeItem(n),window.dispatchEvent(new StorageEvent(`storage`,{key:n}))},e=>()=>{let r=t.getItem(n);return r?JSON.parse(r)[e]:{}}]}var l=e(n()),u=[`userParams`,`persisted_state_hook:userParams`,`company-signup-wizard-data`,/^vrpTransferRuleSettings_/,`@pleo/datev/token/short`,`@pleo/datev/token/long`,`rou-offer-banner`];function d(e){return u.some(t=>typeof t==`string`?e===t:t.test(e))}var f=`local@pleo/`,p=7300,m=`v1:`,h=i();function g(e){try{let t=encodeURIComponent(e);return m+(typeof btoa==`function`?btoa(t):t)}catch{return m+e}}function _(e){if(e===null)return null;if(!e.startsWith(m))return e;let t=e.slice(3);try{let e=typeof atob==`function`?atob(t):t;return decodeURIComponent(e)}catch{return t}}function v(e,t){let n=d(e)?g(t):t;h?window.localStorage.setItem(e,n):l.default.set(f+e,n,{path:``,expires:p})}function y(e){let t=h?window.localStorage.getItem(e):l.default.get(f+e)||null;return d(e)?_(t):t}function b(e){h?window.localStorage.removeItem(e):l.default.remove(f+e,{path:`/`})}function x(){h?window.localStorage.clear():r(f)}var S={getItem:y,setItem:v,removeItem:b,clear:x};export{c as n,S as t}; 2//# sourceMappingURL=local-DWRydmG0.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.