1import{o,c as f,w as c,a as e,d as s,t as r,e as x,b as d,h as u,f as h,u as i}from"./app-49265ad1.js";import{u as y}from"./useClipboard-5919e315.js";import{u as v}from"./document-677b3c2a.js";import{_ as m}from"./Tooltip-f4e1b632.js";import g from"./Modal-6a8dce15.js";import"./floating-ui.dom-a5fd4560.js";const w={class:"space-y-5 p-5"},B={class:"flex items-center justify-between border-b pb-2"},M={key:0,class:"flex items-center space-x-1"},H=["innerHTML"],T={key:1,class:"flex items-center space-x-1"},L={class:"group p-0.5 text-xs text-neutral-500"},N={class:"block group-hover:hidden"},V={class:"hidden group-hover:block"},$={class:"flex space-x-1"},D=["onClick"],z={key:0,class:"i-ic:sharp-star block"},S={key:1,class:"i-ic:sharp-star-border block"},j=["disabled"],q={key:0,class:"i-material-symbols:content-copy block"},E={key:1,class:"i-bi-check block"},F=["innerHTML"],Q={__name:"HistoryItemFullModal",props:{currentChoice:{required:!0,default:{}}},emits:["clearChoice"],setup(t,{emit:k}){const{copy:_,copied:l}=y(),b=k;v();const n=t,p=()=>{axios.put(route("choices.toggleBookmark",n.currentChoice.id)).then(()=>{n.currentChoice.bookmarked_at=n.currentChoice.bookmarked_at?null:new Date})};return(I,a)=>(o(),f(g,{show:!!t.currentChoice,onClose:a[1]||(a[1]=C=>b("clearChoice"))},{default:c(()=>[e("div",w,[e("div",B,[e("div",null,[t.currentChoice.template?(o(),s("div",M,[e("span",{innerHTML:t.currentChoice.template.icon,class:"block h-4 w-4"},null,8,H),e("span",null,r(t.currentChoice.template.name),1)])):t.currentChoice.command?(o(),s("div",T,[e("span",null,r(t.currentChoice.command),1)])):x("",!0),e("div",L,[e("span",N,r(t.currentChoice.created_at_for_humans),1),e("span",V,r(t.currentChoice.created_at),1)])]),e("div",$,[d(m,{size:"sm"},{activator:c(()=>[e("button",{onClick:u(p,["prevent"]),class:"rounded-3xl bg-gray-50 p-1 text-secondary-1000 shadow hover:bg-gray-100"},[t.currentChoice.bookmarked_at?(o(),s("span",z)):(o(),s("span",S))],8,D)]),default:c(()=>[h(" Bookmark ")]),_:1}),d(m,{size:"sm"},{activator:c(()=>[e("button",{onClick:a[0]||(a[0]=u(C=>i(_)(t.currentChoice.full_text),["prevent"])),disabled:i(l),class:"rounded-3xl bg-gray-50 p-1 text-blue-600 text-white shadow hover:bg-gray-100"},[i(l)?(o(),s("span",E)):(o(),s("span",q))],8,j)]),default:c(()=>[h(" Copy ")]),_:1})])]),e("div",{class:"prose prose-sm",innerHTML:t.currentChoice.full_text},null,8,F)])]),_:1},8,["show"]))}};export{Q 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.