import{_ as m}from"./icon-pencil-8922e06b.js";import{o as s,h as c,f as t,d as f,n as g,G as v,c as o,b as a,w as l,t as r,p as w,P as x}from"./app-e2c1adb4.js";import{_ as y}from"./icon-language-56d3f627.js";import{_ as b}from"./_plugin-vue_export-helper-c27b6911.js";const k={},z={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},j=t("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),B=t("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"},null,-1),C=[j,B];function L(d,e){return s(),c("svg",z,C)}const $=b(k,[["render",L]]),D={class:"w-full hover:bg-gray-100"},I={class:"flex h-14 w-full divide-x"},P={class:"flex w-full items-center justify-start px-4"},E={class:"truncate rounded-md border bg-white px-1.5 py-0.5 text-sm font-medium text-gray-600 hover:border-blue-400 hover:bg-blue-50 hover:text-blue-600"},M={class:"hidden w-full items-center justify-start px-4 md:flex"},N={class:"truncate whitespace-nowrap text-sm font-medium text-gray-400"},V={class:"flex w-full items-center justify-start px-4"},G={class:"w-full truncate whitespace-nowrap text-sm font-medium text-gray-600"},H={class:"grid w-[67px] grid-cols-1 divide-x"},K=f({__name:"phrase-item",props:{phrase:{},translation:{}},setup(d){return(e,S)=>{const p=$,_=y,n=x,h=m,u=g("tooltip");return s(),c("div",D,[t("div",I,[t("div",{class:v(["hidden w-20 items-center justify-center px-4 md:flex",{"bg-green-50":e.phrase.state,"hover:bg-green-100":e.phrase.state}])},[e.phrase.state?(s(),o(p,{key:0,class:"size-5 text-green-600"})):(s(),o(_,{key:1,class:"size-5 text-gray-500"}))],2),a(n,{href:e.route("ltu.phrases.edit",{translation:e.translation.id,phrase:e.phrase.uuid}),class:"grid w-full grid-cols-2 divide-x md:grid-cols-3"},{default:l(()=>{var i;return[t("div",P,[t("div",E,r(e.phrase.key),1)]),t("div",M,[t("div",N,r((i=e.phrase.source)==null?void 0:i.value),1)]),t("div",V,[t("div",G,r(e.phrase.value),1)])]}),_:1},8,["href"]),t("div",H,[w((s(),o(n,{href:e.route("ltu.phrases.edit",{translation:e.translation.id,phrase:e.phrase.uuid}),class:"group flex items-center justify-center px-3 hover:bg-blue-50"},{default:l(()=>[a(h,{class:"size-5 text-gray-400 group-hover:text-blue-600"})]),_:1},8,["href"])),[[u,"Edit"]])])])])}}});export{K as _};
