import{p as f,J as u,c as n,a as d,g as c,e as p,O as _,t as h,j as i,s as v,o as r}from"./app-CYVHboi-.js";import{_ as g}from"./Loading-C17YK6G3.js";import{_ as x,a as w,b as y}from"./TemplateTwo-D1yIj8Ou.js";import{_ as k}from"./TemplateOne-CqNNof5p.js";import"./browser-BwNzv7vE.js";import"./Modal-oUJ1UwGv.js";import"./Attachments-CeMFdFu2.js";import"./DialogModal-BGpz32gV.js";import"./SecondaryButton-CHQvCfls.js";import"./DangerButton-dMO1Xwz1.js";import"./ViewCustomFields-CiekLLjv.js";const $={key:0,class:"relative h-64"},R={key:2,class:"flex min-h-64 items-center justify-center p-6 text-lg font-thin"},P={__name:"QuickView",props:["current","custom_fields","editRow","xfetch"],setup(e){const l=v(),a=e,t=i(!0),s=i(null),m={One:k,Two:y,Three:w,Minimal:x};return f(async()=>{a.xfetch?(s.value=a.current,t.value=!1):await u.get(route("transfers.show",{transfer:a.current.id,json:!0})).then(o=>{s.value=o.data,t.value=!1}).catch(()=>t.value=!1)}),(o,j)=>t.value?(r(),n("div",$,[d(c(g))])):s.value?(r(),p(_(m[c(l).props.settings?.sale_template||"One"]),{key:1,type:"transfer",xfetch:e.xfetch,record:s.value,editRow:e.editRow,custom_fields:e.custom_fields},null,8,["xfetch","record","editRow","custom_fields"])):(r(),n("div",R,h(o.$t("No data found, the record might not belong to the selected store.")),1))}};export{P as default};
