import{d as y,i as p,s as C,m as a,n as e,A as o,v as k,z as c,u as s,l as i,x as m,F as f,T as _,q as u,X as A,S as B}from"../../../../common/index.CPcBO1Os.js";import I from"../components/AiAgentBox.CElRRhiz.js";import{u as b,s as S,g as T,b as V}from"../index.CjI1uML7.js";import O from"../components/integration-agents/WcVendorsProductModerator.D5r36m9w.js";import P from"../components/integration-agents/CouponGeneratorAi.Cz_bmbSi.js";import{_ as F}from"../../../../common/_plugin-vue_export-helper.DlAUqK2U.js";import"../../../../common/vue-router.jJOaD9p9.js";import"../../../../common/index.BA7kDUNA.js";import"../../../../common/index.B24w2ZeB.js";import"../components/AIAgentIcon.BOnBhzPT.js";import"../../../../common/index.CXHDE9hf.js";import"../../../../common/index.TkDYtvUB.js";import"../../../../common/KeyCode.D63Tfrq7.js";import"../../../../common/index.B91jMiUk.js";import"../../../../common/_getTag.5j88QV3u.js";import"../../../../common/useState.DXwtWea_.js";import"../../../../common/FormItemContext.Bd2ze9Fn.js";import"../../../../common/compact-item.BK6dH04p.js";import"../../../../common/omit.ddwJ_9WE.js";import"../../../../common/index.B1jVoQr7.js";import"../../../../common/devWarning.DpJYEIzv.js";import"../../../../common/Compact.B3btkLRg.js";import"../../../../common/index.B0UuxB9L.js";import"../../../../common/Portal.B2TrUL41.js";import"../../../../common/InfoCircleFilled.DFXLEYKe.js";import"../../../../common/CloseOutlined.gy8y5blQ.js";import"../../../../common/ExclamationCircleFilled.CnnwVzET.js";import"../../../../common/CloseCircleFilled.DsHyRhur.js";import"../../../../common/index.BtaMLWKH.js";const N={class:"saai-agents-container"},W={class:"settings-title"},G={class:"ai-agents-boxes"},j={key:0,class:"inactive-ai-agents-boxes"},q={class:"integration-agents-section"},z={class:"section-title"},D={class:"section-description"},E={class:"integration-agents-container"},L=y({__name:"AiAgentsPage",setup(M){const h=T("components/OfflineAiAgentBox.vue"),{__:r}=window.wp.i18n,v=b(),{aiAgents:l}=S(v),w=["wc-vendors-product-moderator-ai","coupon-generator-ai"],x=p(()=>l.value.filter(t=>!w.includes(t.id))),g=l.value.filter(t=>t.status==="inactive");return p(()=>l.value.filter(t=>{var d;return((d=t==null?void 0:t.settings)==null?void 0:d.enabled)!=="yes"})),p(()=>{var t;return((t=C())==null?void 0:t.isWcVendorsActive)||!1}),(t,d)=>(e(),a("div",N,[o("h1",W,c(s(r)("AI Content Tools For Your WooCommerce Store","storeagent-ai-for-woocommerce")),1),o("div",G,[i(A,{name:"agent-fade",tag:"div",class:"agent-transition-container"},{default:m(()=>[(e(!0),a(f,null,_(x.value,n=>(e(),u(I,{key:n.id,agentId:n.id},null,8,["agentId"]))),128))]),_:1})]),s(g).length?(e(),a("div",j,[o("h3",null,c(s(r)("Offline Agents","storeagent-ai-for-woocommerce")),1),(e(),u(B,null,{fallback:m(()=>[i(V)]),default:m(()=>[i(A,{name:"agent-fade",tag:"div",class:"agent-transition-container"},{default:m(()=>[(e(!0),a(f,null,_(s(g),n=>(e(),u(s(h),{key:n.id,agent:n},null,8,["agent"]))),128))]),_:1})]),_:1}))])):k("",!0),o("div",q,[o("h2",z,c(s(r)("Third Party AI Content Tools","storeagent-ai-for-woocommerce")),1),o("p",D,c(s(r)("AI agents that integrate with third-party plugins to enhance your store functionality.","storeagent-ai-for-woocommerce")),1),o("div",E,[i(O),i(P)])])]))}}),vt=F(L,[["__scopeId","data-v-d7f7900a"]]);export{vt as default};
