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