import{o as n,c as o,a as t,b as r,u as s,t as d,g as l,d as i,i as c,j as u,l as m}from"./app-BUUOu4k-.js";import{u as f}from"./useOfflineManager-e4N0logt.js";const g={class:"min-h-screen bg-gray-100 flex items-center justify-center p-4"},p={class:"bg-white rounded-2xl shadow-xl p-8 max-w-md w-full text-center"},b={key:0,class:"bg-blue-50 rounded-lg p-4 mb-4"},h={class:"text-sm text-blue-700"},x={class:"font-bold"},v={__name:"Offline",setup(k){const{pendingOrders:a}=f();return(_,e)=>(n(),o("div",g,[t("div",p,[e[2]||(e[2]=r('<div class="w-24 h-24 bg-yellow-100 rounded-full flex items-center justify-center mx-auto mb-4"><svg class="w-12 h-12 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path></svg></div><h1 class="text-2xl font-bold text-gray-800 mb-2">Anda Sedang Offline</h1><p class="text-gray-600 mb-6"> Silakan periksa koneksi internet Anda. Data order akan disimpan secara lokal dan di-sync otomatis saat online. </p>',3)),s(a).length>0?(n(),o("div",b,[t("p",h,[t("span",x,d(s(a).length),1),e[0]||(e[0]=l(" order pending menunggu sync ",-1))])])):i("",!0),c(s(m),{href:"/sales/taking-order/dashboard",class:"block w-full bg-blue-600 text-white py-3 rounded-lg font-semibold hover:bg-blue-700 transition"},{default:u(()=>[...e[1]||(e[1]=[l(" Kembali ke Dashboard ",-1)])]),_:1})])]))}};export{v as default};
