import{a2 as l,a3 as g,B as a,F as m,j as s,T as c,D as r,ar as u,N as p}from"./main-crazy-owls-work.js";import{u as d}from"./useSettings-B38Kxbj2.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function C({type:e="warning"}){var o,i;const{wpCronStatus:t}=l(g),{allSettings:n}=d(),h=(i=(o=n==null?void 0:n.proSettings)==null?void 0:o.cron)==null?void 0:i.isExternalCronEnabled;if(!t&&!h)return a(m,{children:[a(c.Text,{mark:!0,children:[s("span",{dangerouslySetInnerHTML:{__html:r("Your <b>WP_CRON</b> are disabled")}}),e!=="settings"&&s("b",{children:a(u,{className:"mt-2",to:"/settings",children:[r("Cron Settings"),s(p,{style:{transform:"translateY(-2px)"}})]})}),e!=="message"&&r("the scheduled post or share now post may not publish on time!")]}),e!=="message"&&s(c.Link,{href:"https://bit-social.com/documentation/setting/setup-cron-jobs/",rel:"noopener noreferrer nofollow",target:"_blank",underline:!0,children:r("Learn more")})]})}export{C};
