PageSourceSearch

https://app.seoondemand.ai/assets/WorkspacePublishLauncher-yTze2eo0.js

js seoondemand.ai collected 2026-10-05 15:02:28 UTC 12,056 bytes, 2 lines download raw bytes

1import{r as g,o as M,b as o,d as l,e as t,l as n,t as c,f as u,F as B,m as j,h as _,k as L,p as S,A as I,q as N,n as D}from"./index-BwRSq4Ge.js";import{d as k}from"./dayjs.min-DvNQraLC.js";import{r as E}from"./relativeTime-yYF2xlFv.js";import{_ as P}from"./AddBulkArticle-Dp_hy1mE.js";import V from"./CreateArticle-BNu7ezGB.js";import"./vee-validate-BxmaaOfV.js";import"./UseApi-hCEFH7R2.js";import"./useQueryClient-VSM6_GLk.js";import"./useQuery-Ci1XgXvp.js";import"./useMutation-Bfb-XaC3.js";import"./BaseSelect-cG8UYT-B.js";/* empty css                                                                   */import"./BaseInput-B9rLB7uw.js";import"./DeleteIcon-B3muWGF6.js";import"./UserLayouts-B9D9WvhH.js";/* empty css                                                                    */const W={key:0},z={class:"text-[13px] text-gray-500 mb-6"},F={class:"font-medium text-gray-700"},R={class:"grid lg:grid-cols-2 gap-5"},T={class:"dashboardCards px-6 py-6 flex flex-col"},U={class:"dashboardCards px-6 py-6 flex flex-col"},$={class:"grid lg:grid-cols-3 gap-5 mt-5"},O={class:"dashboardCards px-5 py-5"},q={key:0,class:"text-[13px] text-gray-400"},H={key:1,class:"text-[13px] text-gray-400"},G={key:2,class:"flex flex-col divide-y divide-gray-100"},J={key:0,width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},K={key:1,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Q={key:2,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},X={key:3,class:"w-1.5 h-1.5 rounded-full bg-white"},Y={class:"min-w-0 flex-1"},Z=["title"],ee={class:"font-medium"},te={class:"text-[11px] text-gray-400"},se={key:1},ie={key:1,class:"dashboardCards px-5 py-5"},we={__name:"WorkspacePublishLauncher",props:{webData:{type:Object,default:null},websiteId:{type:[String,Number],default:null}},setup(a){k.extend(E);const h=a,m=N(),d=g(null),p=g([]),x=g(!0);async function w(){var s;if(h.websiteId){x.value=!0;try{const e=await S.get(I.dashboardOverview,{website_id:h.websiteId});p.value=(((s=e==null?void 0:e.data)==null?void 0:s.recent_activity)??[]).slice(0,5)}catch{p.value=[]}finally{x.value=!1}}}function r(s){return s==="article_published"?"published":s==="sent_to_schedule"?"scheduled":s==="audit_completed"?"audit":"default"}function b(s){return s.type==="article_published"?"Article published":s.type==="sent_to_schedule"?"Sent to Schedule":s.type==="audit_completed"?"Audit completed":s.type}function y(s){return s!=null&&s.timestamp?k(s.timestamp).fromNow():""}function C(){m.push({name:"WorkspaceArticles",params:{websiteId:h.websiteId}})}return M(w),(s,e)=>{var f,v;return l(),o("div",null,[d.value?(l(),o("div",se,[t("button",{type:"button",class:"text-xs font-semibold text-gray-500 hover:text-gray-700 cursor-pointer mb-3 flex items-center gap-1",onClick:e[2]||(e[2]=i=>d.value=null)}," ← Back "),d.value==="single"?(l(),_(V,{key:0,embedded:!0,websiteId:a.websiteId},null,8,["websiteId"])):(l(),o("div",ie,[L(P,{embedded:!0,data:{website:a.websiteId}},null,8,["data"])]))])):(l(),o("div",W,[e[15]||(e[15]=t("p",{class:"text-[16px] font-semibold mb-1"},"Create Article",-1)),t("p",z,[e[3]||(e[3]=n(" Choose how you want to create content for ")),t("span",F,c(((f=a.webData)==null?void 0:f.name)||((v=a.webData)==null?void 0:v.url)||"this website"),1),e[4]||(e[4]=n(". "))]),t("div",R,[t("div",T,[e[6]||(e[6]=u('<span class="inline-flex self-start items-center px-2.5 py-1 rounded-full text-[11px] font-medium bg-violet-50 text-[#40008A] mb-3"> Create and publish one article at a time </span><div class="flex items-start gap-4 mb-4"><span class="w-11 h-11 rounded-full bg-violet-50 text-[#40008A] flex items-center justify-center flex-shrink-0"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 4.5l3 3L7 20l-4 1 1-4L16.5 4.5z"></path></svg></span><div><p class="text-[16px] font-bold text-gray-900">Publish Single Article</p><p class="text-[13px] text-gray-500 mt-0.5">Write and publish one article with a keyword, title, and full article details.</p></div></div><ul class="text-[13px] text-gray-600 flex flex-col gap-2 mb-5"><li class="flex items-center gap-2"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" class="text-green-500 flex-shrink-0"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"></path></svg> Enter a keyword, title &amp; article type </li><li class="flex items-center gap-2"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" class="text-green-500 flex-shrink-0"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"></path></svg> Set article intent &amp; publication date </li><li class="flex items-center gap-2"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" class="text-green-500 flex-shrink-0"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"></path></svg> Add media &amp; internal links </li></ul>',3)),t("button",{type:"button",class:"mt-auto px-4 py-2.5 rounded-lg bg-[#40008A] text-white text-[13px] font-medium hover:bg-[#2f0066] flex items-center justify-center gap-2",onClick:e[0]||(e[0]=i=>d.value="single")},e[5]||(e[5]=[n(" Create Single Article "),t("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 12h14M13 6l6 6-6 6"})],-1)]))]),t("div",U,[e[8]||(e[8]=u('<span class="inline-flex self-start items-center px-2.5 py-1 rounded-full text-[11px] font-medium bg-violet-50 text-[#40008A] mb-3"> Create multiple articles at once </span><div class="flex items-start gap-4 mb-4"><span class="w-11 h-11 rounded-full bg-violet-50 text-[#40008A] flex items-center justify-center flex-shrink-0"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><rect x="4.5" y="3.5" width="13" height="17" rx="1.5"></rect><path stroke-linecap="round" d="M8 8h6M8 11.5h6M8 15h4"></path></svg></span><div><p class="text-[16px] font-bold text-gray-900">Bulk Publish</p><p class="text-[13px] text-gray-500 mt-0.5">Upload an Excel sheet to create multiple articles in one workflow.</p></div></div><ul class="text-[13px] text-gray-600 flex flex-col gap-2 mb-5"><li class="flex items-center gap-2"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" class="text-green-500 flex-shrink-0"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"></path></svg> Download our sample Excel template </li><li class="flex items-center gap-2"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" class="text-green-500 flex-shrink-0"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"></path></svg> Fill in keywords, titles &amp; article details </li><li class="flex items-center gap-2"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" class="text-green-500 flex-shrink-0"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"></path></svg> Upload the file to publish in bulk </li></ul>',3)),t("button",{type:"button",class:"mt-auto px-4 py-2.5 rounded-lg bg-[#40008A] text-white text-[13px] font-medium hover:bg-[#2f0066] flex items-center justify-center gap-2",onClick:e[1]||(e[1]=i=>d.value="bulk")},e[7]||(e[7]=[n(" Bulk Publish "),t("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 12h14M13 6l6 6-6 6"})],-1)]))])]),t("div",$,[e[14]||(e[14]=u('<div class="dashboardCards px-6 py-5 lg:col-span-2"><div class="flex items-center gap-3 mb-4"><span class="w-9 h-9 rounded-lg bg-violet-50 text-[#40008A] flex items-center justify-center flex-shrink-0"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path stroke-linecap="round" stroke-linejoin="round" d="M9 18h6M10 21h4M12 3a6 6 0 00-3.6 10.8c.5.4.6.9.6 1.2v.5h6v-.5c0-.3.1-.8.6-1.2A6 6 0 0012 3z"></path></svg></span>
1<p class="text-[15px] font-bold text-gray-900">Which option is right for you?</p></div><div class="grid sm:grid-cols-2 gap-4"><div><p class="text-[13px] font-semibold text-gray-800 flex items-center gap-2 mb-2 pb-2 border-b border-gray-100"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" class="text-[#40008A] flex-shrink-0"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 4.5l3 3L7 20l-4 1 1-4L16.5 4.5z"></path></svg><span class="text-[#40008A]">Single Article</span> is best when you want to: </p><ul class="text-[13px] text-gray-600 flex flex-col gap-1.5 list-disc list-inside"><li>Create a specific article on a particular topic</li><li>Have a new idea to publish immediately</li><li>Write and publish with full control</li></ul></div><div><p class="text-[13px] font-semibold text-gray-800 flex items-center gap-2 mb-2 pb-2 border-b border-gray-100"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" class="text-[#40008A] flex-shrink-0"><rect x="4.5" y="3.5" width="13" height="17" rx="1.5"></rect><path stroke-linecap="round" d="M8 8h6M8 11.5h6M8 15h4"></path></svg><span class="text-[#40008A]">Bulk Creation</span> is best when you want to: </p><ul class="text-[13px] text-gray-600 flex flex-col gap-1.5 list-disc list-inside"><li>Create many articles at once</li><li>Use a list of keywords or topics</li><li>Save time and scale your content</li></ul></div></div></div>',1)),t("div",O,[t("div",{class:"flex items-center justify-between mb-3"},[e[10]||(e[10]=u('<div class="flex items-center gap-3"><span class="w-9 h-9 rounded-lg bg-violet-50 text-[#40008A] flex items-center justify-center flex-shrink-0"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><circle cx="12" cy="12" r="9"></circle><path stroke-linecap="round" stroke-linejoin="round" d="M12 7v5l3.5 2"></path></svg></span><p class="text-[15px] font-bold text-gray-900">Recent Activity</p></div>',1)),t("button",{type:"button",class:"text-[12px] font-semibold text-[#40008A] cursor-pointer flex items-center gap-1",onClick:C},e[9]||(e[9]=[n(" View All "),t("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 12h14M13 6l6 6-6 6"})],-1)]))]),x.value?(l(),o("p",q,"Loading…")):p.value.length===0?(l(),o("p",H,"No recent activity yet.")):(l(),o("div",G,[(l(!0),o(B,null,j(p.value,(i,A)=>(l(),o("div",{key:A,class:"py-2.5 flex items-start gap-2"},[t("span",{class:D(["w-6 h-6 rounded-full text-white flex items-center justify-center flex-shrink-0 mt-0.5",{"bg-green-500":r(i.type)==="published","bg-blue-500":r(i.type)==="scheduled","bg-[#40008A]":r(i.type)==="audit","bg-gray-300":r(i.type)==="default"}])},[r(i.type)==="published"?(l(),o("svg",J,e[11]||(e[11]=[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"},null,-1)]))):r(i.type)==="scheduled"?(l(),o("svg",K,e[12]||(e[12]=[t("rect",{x:"3.5",y:"5",width:"17",height:"15.5",rx:"2"},null,-1),t("path",{"stroke-linecap":"round",d:"M3.5 9.5h17M8 3v3.5M16 3v3.5"},null,-1)]))):r(i.type)==="audit"?(l(),o("svg",Q,e[13]||(e[13]=[t("circle",{cx:"10.5",cy:"10.5",r:"6.5"},null,-1),t("path",{"stroke-linecap":"round",d:"M20 20l-4.5-4.5"},null,-1)]))):(l(),o("span",X))],2),t("div",Y,[t("p",{class:"text-[13px] text-gray-800 truncate",title:i.message},[t("span",ee,c(b(i)),1),n(" — "+c(i.message),1)],8,Z),t("p",te,c(y(i)),1)])]))),128))]))])])]))])}}};export{we as default};
2//# sourceMappingURL=WorkspacePublishLauncher-yTze2eo0.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.