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