const t="hoodwallet_overlay_settings",i={shell:"side-panel",mode:"floating",side:"right",width:390,alwaysOpen:!1,theme:"violet",chainAmbientTint:!1};function n(e){return{shell:e?.shell==="overlay"?"overlay":"side-panel",mode:e?.mode==="docked"?"docked":"floating",side:e?.side==="left"?"left":"right",width:Math.max(320,Math.min(560,Number(e?.width)||i.width)),alwaysOpen:!!e?.alwaysOpen,theme:e?.theme==="midnight"||e?.theme==="graphite"?e.theme:"violet",chainAmbientTint:e?.chainAmbientTint===!0}}async function a(){const e=await chrome.storage.local.get([t]);return n(e[t])}function s(e){return e.shell==="overlay"}async function o(e){await chrome.storage.local.set({[t]:n(e)})}export{i as D,t as O,a as g,n,o as s,s as u};
