import x from"./Details-utwuEOnl.js";import{A as y}from"./AdminLayout-CAkQ7Os4.js";import{T as g}from"./SectionTitle-B7yJArs8.js";import{_ as b,r as s,d as r,e as n,o as m,a as e,g as i,h as d,t as l,b as f}from"./app-PFKfXWEI.js";import"./JsBarcode-FqNbiSNK.js";import"./TrashedMessage-CoPSjYpa.js";import"./ApplicationLogo-C_9BxMDe.js";import"./ApplicationMark-CKHzDXqr.js";import"./Modal-c7b3PsDt.js";import"./DropdownLink-C4dPXnWr.js";const v={props:{adjustment:Object},components:{AdminLayout:y,AdjustmentDetails:x,TecSectionTitle:g},methods:{print(){window.print()}}},w={class:"px-4 md:px-0"},k={class:"flex items-start justify-between print:hidden"},A={class:"flex items-center"},C={class:"flex"};function N(t,o,a,T,V,p){const c=s("Link"),_=s("tec-section-title"),u=s("icons"),h=s("adjustment-details"),j=s("admin-layout");return m(),r(j,{title:t.$t("Adjustment Details")},{default:n(()=>[e("div",w,[e("div",k,[i(_,{class:"-mx-4 md:mx-0 mb-6"},{title:n(()=>[e("div",A,[i(c,{class:"text-blue-600 hover:text-blue-700",href:t.route("adjustments.index")},{default:n(()=>[d(l(t.$t("Adjustments")),1)]),_:1},8,["href"]),o[1]||(o[1]=e("span",{class:"text-blue-600 font-medium mx-2"},"/",-1)),d(" "+l(a.adjustment.reference),1)])]),description:n(()=>[d(l(t.$t("Please review the adjustment details below")),1)]),_:1}),e("div",C,[e("button",{onClick:o[0]||(o[0]=$=>p.print()),class:"flex items-center justify-center mr-2 h-8 w-8 rounded-full text-gray-600 hover:text-gray-800 bg-gray-200 hover:bg-gray-300 focus:outline-none"},[i(u,{name:"printer",class:"h-5 w-5"})]),t.$can("update-adjustments")?(m(),r(c,{key:0,href:t.route("adjustments.edit",a.adjustment.id),class:"flex items-center justify-center mr-2 h-8 w-8 rounded-full text-gray-600 hover:text-gray-800 bg-gray-200 hover:bg-gray-300 focus:outline-none"},{default:n(()=>[i(u,{name:"edit",class:"h-5 w-5"})]),_:1},8,["href"])):f("",!0)])]),a.adjustment?(m(),r(h,{key:0,adjustment:a.adjustment,class:"mt-0 pt-0"},null,8,["adjustment"])):f("",!0)])]),_:1},8,["title"])}const G=b(v,[["render",N]]);export{G as default};
