import{r as i,c as a,b as t,a as c,t as s,d as m,g as l,F as r,o as u}from"./app-CYVHboi-.js";import{_ as x}from"./ViewCustomFields-CiekLLjv.js";import"./browser-BwNzv7vE.js";import"./Modal-oUJ1UwGv.js";const p={class:"absolute end-12 top-4 inline-flex items-center sm:end-14"},_={class:"border-b border-gray-200 px-4 py-4 sm:px-6 dark:border-gray-700"},h={class:"sm:flex sm:items-baseline sm:justify-between"},g={class:"sm:w-0 sm:flex-1"},f={class:"text-focus text-base font-semibold"},y={class:"text-mute mt-1 truncate text-sm"},b={class:"pb-2"},v={class:"divide-y divide-gray-100 dark:divide-gray-700/50"},$={class:"grid grid-cols-3 gap-4 px-4 py-2.5 sm:px-6"},w={class:"text-sm font-medium"},k={class:"text-focus col-span-2 mt-0 text-sm/6"},C={class:"grid grid-cols-3 gap-4 px-4 py-2.5 sm:px-6"},N={class:"text-sm font-medium"},V={class:"text-focus col-span-2 mt-0 text-sm/6"},B={class:"grid grid-cols-3 gap-4 px-4 py-2.5 sm:px-6"},D={class:"text-sm font-medium"},F={class:"text-focus col-span-2 mt-0 text-sm/6"},j={class:"grid grid-cols-3 gap-4 px-4 py-2.5 sm:px-6"},A={class:"text-sm font-medium"},E={class:"text-focus col-span-2 mt-0 text-sm/6"},I={class:"grid grid-cols-3 gap-4 px-4 py-2.5 sm:px-6"},P={class:"text-sm font-medium"},R={class:"text-focus col-span-2 mt-0 text-sm/6"},z={class:"grid grid-cols-3 gap-4 px-4 py-2.5 sm:px-6"},L={class:"text-sm font-medium"},S={class:"text-focus col-span-2 mt-0 text-sm/6"},T={class:"grid grid-cols-3 gap-4 px-4 py-2.5 sm:px-6"},q={class:"text-sm font-medium"},G={class:"text-focus col-span-2 mt-0 flex gap-2 text-sm/6"},H={class:"-mt-0.5 text-2xl"},J={class:"grid grid-cols-3 gap-4 px-4 py-2.5 sm:px-6"},K={class:"text-sm font-medium"},M={class:"text-focus col-span-2 mt-0 text-sm/6"},X={__name:"View",props:["current","custom_fields","editRow"],setup(e){return(o,d)=>{const n=i("Icon");return u(),a(r,null,[t("span",p,[t("button",{type:"button",onClick:d[0]||(d[0]=()=>e.editRow(e.current)),class:"link -m-2 p-2"},[c(n,{name:"edit-o",class:"size-5"})])]),t("div",_,[t("div",h,[t("div",g,[t("h1",f,s(e.current?.name)+" "+s(e.current?.company?` (${e.current?.company})`:""),1),t("p",y,s(o.$t("Please view the details below")),1)])])]),t("div",b,[t("dl",v,[t("div",$,[t("dt",w,s(o.$t("Name")),1),t("dd",k,s(e.current.name),1)]),t("div",C,[t("dt",N,s(o.$t("Company")),1),t("dd",V,s(e.current.company||""),1)]),t("div",B,[t("dt",D,s(o.$t("Phone")),1),t("dd",F,s(e.current.phone||""),1)]),t("div",j,[t("dt",A,s(o.$t("Email")),1),t("dd",E,s(e.current.email||""),1)]),t("div",I,[t("dt",P,s(o.$t("Due Amount")),1),t("dd",R,s(o.$currency(e.current.balance)),1)]),t("div",z,[t("dt",L,s(o.$t("Due Limit")),1),t("dd",S,s(e.current.due_limit?o.$number(e.current.due_limit):""),1)]),t("div",T,[t("dt",q,s(o.$t("Address")),1),t("dd",G,[t("span",H,s(e.current?.country.emoji),1),m(" "+s(o.$address(e.current)),1)])]),t("div",J,[t("dt",K,s(o.$t("Custom Fields")),1),t("dd",M,[c(l(x),{modal:!1,title:e.current.company||e.current.name,extra_attributes:e.current.extra_attributes},null,8,["title","extra_attributes"])])])])])],64)}}};export{X as default};
