import{a4 as l,J as g,ac as u,ad as d,M as r,F as m,j as s,T as c,N as a,aO as p,a0 as b}from"./main-fine-mails-rush.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(){const{data:e,isLoading:t}=l({queryFn:async()=>g("all-settings",void 0,void 0,"GET"),queryKey:["all-settings"]});return{allSettings:e==null?void 0:e.data,isLoadingSettings:t}}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 T({type:e="warning"}){var o,i;const{wpCronStatus:t}=u(d),{allSettings:n}=C(),h=(i=(o=n==null?void 0:n.proSettings)==null?void 0:o.cron)==null?void 0:i.isExternalCronEnabled;if(!t&&!h)return r(m,{children:[r(c.Text,{mark:!0,children:[s("span",{dangerouslySetInnerHTML:{__html:a("Your <b>WP_CRON</b> are disabled")}}),e!=="settings"&&s("b",{children:r(p,{className:"mt-2",to:"/settings",children:[a("Cron Settings"),s(b,{style:{transform:"translateY(-2px)"}})]})}),e!=="message"&&a("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:a("Learn more")})]})}export{T as C,C as u};
