import{c as a,e as n,f as s,h as _,g as f,a as t,t as o,i as v,o as l,n as w,F as p,k as y}from"./app-DE5EohoY.js";import{_ as k}from"./PublicLayout-DbteHrlL.js";import{u as J,r as L}from"./usePrayerTimes-DzT-IJeY.js";import{r as T}from"./MapPinIcon-N8tokp8Z.js";import"./keyboard-Dv1rPSug.js";import"./transition-DGEEpog3.js";import"./focus-management-kdTTqDTv.js";import"./use-resolve-button-type-DXPQmTZV.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ClockIcon-DItaisvz.js";import"./XMarkIcon-DP8qbKLL.js";import"./BanknotesIcon-F0qhSNAB.js";const B={class:"max-w-3xl mx-auto px-4 py-12 -mt-10"},I={class:"bg-white rounded-3xl shadow-xl overflow-hidden"},j={class:"bg-emerald-600 p-6 text-center text-white"},z={class:"text-2xl font-bold mb-1"},C={class:"p-8 space-y-8"},N={class:"text-center"},P={class:"text-3xl font-bold text-slate-800"},S={class:"grid grid-cols-1 md:grid-cols-2 gap-8 border-t border-slate-100 pt-8"},V={class:"text-center"},A={class:"text-lg font-bold text-slate-700 mt-1"},F={class:"text-center"},H={class:"text-lg font-bold text-slate-700 mt-1"},M={class:"mt-8 bg-white rounded-xl shadow p-6 relative overflow-hidden"},O={class:"flex justify-between items-center mb-4"},U={class:"text-xs text-slate-400 flex items-center gap-1"},$={key:0},D={key:1},E={key:2,class:"ml-2 animate-spin"},K={class:"grid grid-cols-5 gap-2 text-center"},R={class:"text-xs text-slate-500 mb-1 capitalize"},W={class:"font-bold text-slate-800"},it={__name:"Jumat",props:{schedule:Object,prayerTimes:Object},setup(i){const u=i,{currentPrayerTimes:h,isLocating:b,usingUserLocation:r,getUserLocation:c}=J(u.prayerTimes),g=m=>{const{date:e,...d}=m||{};return d};return(m,e)=>(l(),a(p,null,[n(s(_),{title:"Jadwal Jumat"}),n(k,null,{default:f(()=>[e[6]||(e[6]=t("div",{class:"bg-emerald-800 pt-32 pb-16 text-center text-white"},[t("h1",{class:"text-4xl font-bold mb-4"},"Petugas Jumat"),t("p",{class:"text-emerald-200"}," Informasi petugas sholat Jumat minggu ini ")],-1)),t("div",B,[t("div",I,[t("div",j,[t("h2",z,o(i.schedule.date),1),e[1]||(e[1]=t("p",{class:"opacity-90"},"12:00 WIB",-1))]),t("div",C,[t("div",N,[e[2]||(e[2]=t("span",{class:"inline-block px-3 py-1 bg-emerald-100 text-emerald-800 text-xs font-bold rounded-full mb-3"},"KHATIB",-1)),t("h3",P,o(i.schedule.khatib),1)]),t("div",S,[t("div",V,[e[3]||(e[3]=t("span",{class:"text-xs font-bold text-slate-400 uppercase tracking-wider"},"Imam",-1)),t("p",A,o(i.schedule.imam),1)]),t("div",F,[e[4]||(e[4]=t("span",{class:"text-xs font-bold text-slate-400 uppercase tracking-wider"},"Muadzin",-1)),t("p",H,o(i.schedule.muadzin),1)])])])]),t("div",M,[t("div",O,[t("div",null,[e[5]||(e[5]=t("h3",{class:"text-lg font-bold text-slate-800"},"Jadwal Sholat Hari Ini",-1)),t("div",U,[s(r)?(l(),a("span",$,"📍 Sesuai Lokasi Anda")):(l(),a("span",D,"🕌 Jadwal Masjid")),s(b)?(l(),a("span",E,[n(s(L),{class:"w-3 h-3 inline"})])):v("",!0)])]),t("button",{onClick:e[0]||(e[0]=(...d)=>s(c)&&s(c)(...d)),class:"text-slate-400 hover:text-emerald-600 transition-colors p-1 rounded-full hover:bg-slate-100",title:"Refresh Lokasi"},[n(s(T),{class:w(["w-5 h-5",{"text-emerald-500":s(r)}])},null,8,["class"])])]),t("div",K,[(l(!0),a(p,null,y(g(s(h)),(d,x)=>(l(),a("div",{key:x,class:"bg-slate-50 p-2 rounded hover:bg-emerald-50 transition-colors"},[t("div",R,o(x),1),t("div",W,o(d),1)]))),128))])])])]),_:1})],64))}};export{it as default};
