import{a as i}from"./chunk-BTWOJWRN.js";import{bc as u}from"./chunk-RISKGE32.js";import{g as h}from"./chunk-GQY3J744.js";import{d as p,g as s,n as m}from"./chunk-CLPINNGF.js";m();s();var c=p(h());var d=(e,t)=>{let{enabled:o,shortcutUsedTimestamp:n,displayStrategy:a}=e,r=Date.now();switch(a){case"auto":case"short":return!o&&r-n>t.short;case"long":return!o&&r-n>t.long;case"never":return!1}},f=async e=>{let t=await i.getAll();if(!t.enabled){let o=d(t,e);return o&&await i.set("enabled",!0),o}return t.enabled},R=e=>{let{isLoading:t,variant:o}=u("shortcutPromptTimerStrategy");return(0,c.useMemo)(()=>{let a=async g=>{let l=await f(g);e(!l)},r={auto:void 0,short:void 0,long:void 0};return t||(r=JSON.parse(o),a(r)),r},[t,o])};export{R as a};
//# sourceMappingURL=chunk-H2Q7MKM3.js.map
