import{c as r,e as o,f as s,h as y,g as k,a as e,t as i,i as S,o as l,m as x,n as g,F as h,k as L}from"./app-DE5EohoY.js";import{_ as T}from"./PublicLayout-DbteHrlL.js";import{u as z,r as J}from"./usePrayerTimes-DzT-IJeY.js";import{r as f}from"./MapPinIcon-N8tokp8Z.js";import{a as N}from"./ClockIcon-DItaisvz.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"./XMarkIcon-DP8qbKLL.js";import"./BanknotesIcon-F0qhSNAB.js";const j={class:"bg-emerald-800 pt-32 pb-16 text-center text-white relative overflow-hidden"},C={class:"relative z-10 px-4"},V={class:"text-white mt-2 font-bold text-xl"},A={class:"max-w-3xl mx-auto px-4 py-12 -mt-10"},B={class:"bg-white rounded-3xl shadow-xl overflow-hidden p-8"},D={class:"flex justify-between items-center mb-8 pb-8 border-b border-slate-100"},M={class:"text-sm text-slate-500 mt-1 flex items-center gap-2"},$={key:0,class:"flex items-center gap-1 text-emerald-600 font-medium"},F={key:1,class:"flex items-center gap-1"},P={key:2,class:"ml-2 animate-spin text-emerald-500"},U=["disabled"],E={class:"space-y-4"},G={class:"flex items-center gap-4"},H={class:"p-3 rounded-full bg-white shadow-sm"},I={class:"text-lg font-bold text-slate-700 capitalize"},O={class:"text-2xl font-bold text-slate-900 font-mono"},re={__name:"Jadwal",props:{prayerTimes:Object},setup(_){const w=_,{currentPrayerTimes:c,isLocating:n,usingUserLocation:u,getUserLocation:p}=z(w.prayerTimes),v=b=>{const{date:t,...d}=b||{};return d};return(b,t)=>(l(),r(h,null,[o(s(y),{title:"Jadwal Sholat"}),o(T,null,{default:k(()=>{var d;return[e("div",j,[t[3]||(t[3]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"absolute inset-0 bg-gradient-to-br from-emerald-900/90 to-emerald-800/80"})],-1)),e("div",C,[t[1]||(t[1]=e("h1",{class:"text-4xl font-bold mb-4"},"Jadwal Sholat",-1)),t[2]||(t[2]=e("p",{class:"text-emerald-200"}," Jadwal sholat 5 waktu hari ini ",-1)),e("p",V,i(((d=s(c))==null?void 0:d.date)||"Hari Ini"),1)])]),e("div",A,[e("div",B,[e("div",D,[e("div",null,[t[5]||(t[5]=e("h2",{class:"text-2xl font-bold text-slate-800"},"Waktu Sholat",-1)),e("div",M,[s(u)?(l(),r("span",$,[o(s(f),{class:"w-4 h-4"}),t[4]||(t[4]=x(" Sesuai Lokasi Anda ",-1))])):(l(),r("span",F," 🕌 Jadwal Masjid (Default) ")),s(n)?(l(),r("span",P,[o(s(J),{class:"w-4 h-4"})])):S("",!0)])]),e("button",{onClick:t[0]||(t[0]=(...m)=>s(p)&&s(p)(...m)),class:"px-4 py-2 bg-slate-100 hover:bg-emerald-50 text-slate-600 hover:text-emerald-600 rounded-lg transition-colors flex items-center gap-2 text-sm font-medium",disabled:s(n)},[o(s(f),{class:g(["w-5 h-5",{"text-emerald-500":s(u)}])},null,8,["class"]),e("span",null,i(s(n)?"Mencari...":"Gunakan Lokasi Saya"),1)],8,U)]),e("div",E,[(l(!0),r(h,null,L(v(s(c)),(m,a)=>(l(),r("div",{key:a,class:g(["flex items-center justify-between p-4 rounded-xl transition-all hover:scale-[1.01]",["hover:shadow-md cursor-default",a==="Subuh"?"bg-indigo-50 border border-indigo-100":a==="Dzuhur"?"bg-amber-50 border border-amber-100":a==="Ashar"?"bg-orange-50 border border-orange-100":a==="Maghrib"?"bg-rose-50 border border-rose-100":"bg-slate-50 border border-slate-100"]])},[e("div",G,[e("div",H,[o(s(N),{class:"w-6 h-6 text-slate-400"})]),e("span",I,i(a),1)]),e("span",O,i(m),1)],2))),128))]),t[6]||(t[6]=e("div",{class:"mt-8 p-4 bg-emerald-50 rounded-xl border border-emerald-100 text-center"},[e("p",{class:"text-emerald-800 text-sm"},[x(' "Sesungguhnya sholat itu adalah fardhu yang ditentukan waktunya atas orang-orang yang beriman." '),e("br"),e("strong",null,"(QS. An-Nisa: 103)")])],-1))])])]}),_:1})],64))}};export{re as default};
