!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.20.10"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-GHaYbfJZ.js","./constants-legacy-Co_7T-LK.js"],(function(e,t){var n,a;async function s(e,t){let n={};async function a(n,a){const s=await async function(){return await new Promise(((n,a)=>{const s=indexedDB.open(e,1);s.onupgradeneeded=()=>{s.result.createObjectStore(t,{keyPath:"key"})},s.onsuccess=()=>n(s.result),s.onerror=()=>a(s.error)}))}(),o=s.transaction(t,n),i=await a(o.objectStore(t),s);return await new Promise(((e,t)=>{o.oncomplete=()=>{s.close(),e(i)},o.onerror=()=>{s.close(),t(o.error)}}))}return await async function(){await a("readonly",(async(e,t)=>await new Promise(((a,s)=>{const o=e.openCursor();o.onsuccess=e=>{const s=e.target.result;s?(n[s.key]=s.value.value,s.continue()):(t.close(),a())},o.onerror=e=>{t.close(),s(e)}}))))}(),{getItem:function(e){return n[e]??null},removeItem:function(e){delete n[e],async function(e){await a("readwrite",(t=>{t.delete(e)}))}(e)},setItem:function(e,t){n[e]=t,async function(e,t){await a("readwrite",(n=>{n.put({key:e,value:t})}))}(e,t)},clear:function(){n={},async function(){await a("readwrite",(e=>{e.clear()}))}()},getAllWithPrefix:async function(e){const t=IDBKeyRange.bound(e,e+"",!1,!1),n={};return await a("readonly",(async e=>await new Promise(((a,s)=>{const o=e.openCursor(t);o.onsuccess=e=>{const t=e.target.result;t?(n[t.key]=t.value.value,t.continue()):a(n)},o.onerror=()=>{s(o.error)}}))))}}}return e("t",(function(){const e=n(!0),t=n(s("n8n-local","workflows").finally((()=>{e.value=!1})));async function o(){return await t.value}async function i(e){return a((await o()).getItem(e)??"",{fallbackValue:{}})}async function r(e,t){const n=await o(),a=await i(e),s={...a,...t};t.suggestedActions&&(s.suggestedActions={...a.suggestedActions??{},...t.suggestedActions}),n.setItem(e,JSON.stringify(s))}return{getWorkflowSettings:i,getMergedWorkflowSettings:async function(e){const t=await i(e),n=a((await o()).getItem("*")??"",{fallbackValue:{}});return t.suggestedActions={...t.suggestedActions??{},...n.suggestedActions??{}},t},upsertWorkflowSettings:r,updateFirstActivatedAt:async function(e){(await i(e))?.firstActivatedAt||await r(e,{firstActivatedAt:Date.now()})},ignoreSuggestedAction:async function(e,t){await r(e,{suggestedActions:{[t]:{ignored:!0}}})},ignoreAllSuggestedActionsForAllWorkflows:async function(e){await r("*",e.reduce(((e,t)=>(e.suggestedActions=e.suggestedActions??{},e.suggestedActions[t]={ignored:!0},e)),{}))},getEvaluationPreferences:async function(e){return(await i(e))?.evaluationRuns??{order:[],visibility:{}}},saveEvaluationPreferences:async function(e,t){await r(e,{evaluationRuns:t})},isCacheLoading:e}})),{setters:[function(e){n=e.Ft},function(e){a=e.ss}],execute:function(){try{e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(t=(new e.Error).stack)&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="57093a88-4ad0-45d3-bbab-851cf3abf612",e._sentryDebugIdIdentifier="sentry-dbid-57093a88-4ad0-45d3-bbab-851cf3abf612")}catch(e){}var e,t}}}));
//# sourceMappingURL=useWorkflowsCache-legacy-qoDNxoTt.js.map