PageSourceSearch

https://search-intelligence.ai/build/assets/Show-B_2HrhBu.js

js search-intelligence.ai collected 2026-10-05 12:37:55 UTC 4,093 bytes, 1 lines download raw bytes

1import{r as d,i as k,e as a,b as m,a as e,g as _,z as C,t as x,d as g,f as p,n as M,F as H,J as T,o as r}from"./app-svSyUVkq.js";import{_ as V,u as B}from"./ToastNotifications-DWTZVobC.js";/* empty css            */const j={class:"min-h-screen bg-gray-50"},z={class:"bg-white border-b border-gray-200"},F={class:"max-w-5xl mx-auto px-4 py-4"},L={class:"flex items-center justify-between"},S={class:"flex items-center gap-3"},E={class:"text-lg font-semibold text-gray-900"},N={class:"text-xs text-gray-500"},D={key:0,class:"ml-2 text-amber-600"},I={class:"flex items-center gap-2"},O=["disabled"],$={key:0,class:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24"},A={key:1,class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},J={class:"py-8"},P={class:"max-w-4xl mx-auto px-4"},q={class:"bg-white rounded-lg overflow-hidden"},G=["innerHTML"],K=["innerHTML"],W={__name:"Show",props:{share:Object,brief:Object},setup(n){const{success:u,error:h}=B(),l=n,s=d(l.brief.content),v=d(l.brief.content),i=d(!1),c=k(()=>s.value!==v.value),y=o=>{s.value=o.target.innerHTML},f=async()=>{if(!(!l.share.can_edit||!c.value)){i.value=!0;try{const o=window.location.pathname.split("/").pop();await T.put(`/shared/${o}`,{content:s.value}),v.value=s.value,u("Content saved!")}catch(o){console.error("Error saving:",o),h("Failed to save. Please try again.")}finally{i.value=!1}}},b=async()=>{const o=document.createElement("div");o.innerHTML=s.value;const t=o.textContent||o.innerText||"";try{await navigator.clipboard.writeText(t),u("Content copied to clipboard!")}catch(w){console.error("Failed to copy:",w),h("Failed to copy content")}};return(o,t)=>(r(),a(H,null,[m(_(C),{title:n.brief.title},null,8,["title"]),m(V),e("div",j,[e("header",z,[e("div",F,[e("div",L,[e("div",S,[t[0]||(t[0]=e("div",{class:"w-10 h-10 bg-gradient-to-br from-emerald-400 to-teal-500 rounded flex items-center justify-center"},[e("svg",{class:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})])],-1)),e("div",null,[e("h1",E,x(n.brief.title),1),e("p",N,[g(x(n.share.content_type==="content_brief"?"Content Brief":"Final Draft")+" ",1),n.share.can_edit?p("",!0):(r(),a("span",D,"(View only)"))])])]),e("div",I,[n.share.can_edit?(r(),a("button",{key:0,onClick:f,disabled:i.value||!c.value,class:M(["inline-flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-lg transition-colors",c.value?"bg-emerald-500 text-white hover:bg-emerald-600":"bg-gray-100 text-gray-400 cursor-not-allowed"])},[i.value?(r(),a("svg",$,[...t[1]||(t[1]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"},null,-1)])])):(r(),a("svg",A,[...t[2]||(t[2]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 4H6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V8l-4-4H8zM16 20v-6H8v6M8 4v4h6"},null,-1)])])),t[3]||(t[3]=g(" Save ",-1))],10,O)):p("",!0),e("button",{onClick:b,class:"p-2 text-gray-500 hover:text-gray-700 bg-white hover:bg-gray-100 rounded-md transition-colors border border-gray-200",title:"Copy content"},[...t[4]||(t[4]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)])])])])])]),e("main",J,[e("div",P,[e("div",q,[n.share.can_edit?(r(),a("div",{key:0,class:"prose max-w-none p-8",contenteditable:"true",onInput:y,innerHTML:s.value},null,40,G)):(r(),a("div",{key:1,class:"prose max-w-none p-8",innerHTML:s.value},null,8,K))])])]),t[5]||(t[5]=e("footer",{class:"py-6 text-center text-sm text-gray-500"}," Shared via AI Tracking ",-1))])],64))}};export{W as default};

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.