import{An as e,E as t,Nn as n,On as r,Ut as i,W as a,_n as o,a as s,c,d as l,l as u,mn as d,o as f,on as p,rn as m,s as h,tn as g,u as _,xn as v}from"./app-4kCgdoJR.js";var y={key:0,class:`relative h-64`},b={key:2,class:`flex min-h-64 items-center justify-center p-6 text-lg font-thin`},x={__name:`QuickView`,props:[`current`,`custom_fields`,`editRow`,`xfetch`],setup(x){let S=i(),C=x,w=r(!0),T=r(null),E={One:c,Two:s,Three:f,Four:_,Five:l,Six:h,Minimal:u};return d(async()=>{C.xfetch?(T.value=C.current,w.value=!1):await a.get(route(`adjustments.show`,{adjustment:C.current.id,json:!0})).then(e=>{T.value=e.data,w.value=!1}).catch(()=>w.value=!1)}),(r,i)=>w.value?(o(),m(`div`,y,[p(e(t))])):T.value?(o(),g(v(E[e(S).props.settings?.sale_template||`One`]),{key:1,xfetch:x.xfetch,type:`adjustment`,editRow:x.editRow,record:T.value,custom_fields:x.custom_fields},null,8,[`xfetch`,`editRow`,`record`,`custom_fields`])):(o(),m(`div`,b,n(r.$t(`No data found, the record might not belong to the selected store.`)),1))}};export{x as default};