import{c as l,a as _,u as v,Z as y,w as f,b as a,o,t as c,g as h,F as b,e as g,h as k,p as w}from"./app-z_grtNg1.js";import{_ as C}from"./MobileAppLayout-BU3NJWTn.js";import{_ as x}from"./AppCard-C2KBW1s0.js";import"./ToastStack-xenoaUxd.js";import"./AppModal-DLkXyhIS.js";const B={class:"space-y-4"},O={key:0,class:"rounded-2xl border border-emerald-200 bg-emerald-50 p-3 text-xs font-medium text-emerald-900"},A={key:0,class:"space-y-2"},S=["href","target","rel"],N={class:"min-w-0"},T={class:"text-sm font-semibold text-slate-900"},V={class:"truncate text-xs text-slate-600"},W={class:"ml-3 text-lg","aria-hidden":"true"},j={key:1,class:"rounded-xl border border-dashed border-slate-300 p-4 text-sm text-slate-500"},E={class:"space-y-3 text-sm"},F={key:0},I={class:"mt-1 whitespace-pre-line text-slate-800"},U={key:1},$={class:"mt-1 text-slate-800"},L={__name:"Index",props:{contact:{type:Object,required:!0}},setup(s){const e=s,m=w(()=>{var n,i,u,d,t,p;const r=[];return(n=e.contact)!=null&&n.support_phone_url&&r.push({key:"phone",label:"Call Support",value:e.contact.support_phone,href:e.contact.support_phone_url,external:!1,icon:"📞"}),(i=e.contact)!=null&&i.support_email_url&&r.push({key:"email",label:"Send Email",value:e.contact.support_email,href:e.contact.support_email_url,external:!1,icon:"✉️"}),(u=e.contact)!=null&&u.whatsapp_chat_url&&r.push({key:"whatsapp-chat",label:"WhatsApp Chat",value:e.contact.whatsapp_number||"Open chat",href:e.contact.whatsapp_chat_url,external:!0,icon:"💬"}),(d=e.contact)!=null&&d.whatsapp_group_url&&r.push({key:"whatsapp-group",label:"Join WhatsApp Group",value:"Open group invite",href:e.contact.whatsapp_group_url,external:!0,icon:"👥"}),(t=e.contact)!=null&&t.telegram_url&&r.push({key:"telegram",label:"Telegram",value:"Open Telegram channel",href:e.contact.telegram_url,external:!0,icon:"📣"}),(p=e.contact)!=null&&p.website_url&&r.push({key:"website",label:"Website",value:e.contact.website_url,href:e.contact.website_url,external:!0,icon:"🌐"}),r});return(r,n)=>(o(),l(b,null,[_(v(y),{title:"Contact Us"}),_(C,{title:"Contact Us",subtitle:"Reach support through phone, email, and social channels"},{default:f(()=>{var i,u,d;return[a("div",B,[(i=s.contact)!=null&&i.support_note?(o(),l("div",O,c(s.contact.support_note),1)):h("",!0),_(x,{title:"Support Channels",subtitle:"Tap any channel to contact support immediately."},{default:f(()=>[m.value.length?(o(),l("div",A,[(o(!0),l(b,null,g(m.value,t=>(o(),l("a",{key:t.key,href:t.href,target:t.external?"_blank":null,rel:t.external?"noopener noreferrer":null,class:"flex items-center justify-between rounded-xl border border-slate-200 bg-slate-50 px-3 py-3 transition hover:border-slate-300 hover:bg-slate-100"},[a("div",N,[a("div",T,c(t.label),1),a("div",V,c(t.value),1)]),a("span",W,c(t.icon),1)],8,S))),128))])):(o(),l("div",j," Contact details are not published yet. Please check again later. "))]),_:1}),(u=s.contact)!=null&&u.office_address||(d=s.contact)!=null&&d.business_hours?(o(),k(x,{key:1,title:"Office Information",subtitle:"Additional support availability details."},{default:f(()=>{var t,p;return[a("div",E,[(t=s.contact)!=null&&t.office_address?(o(),l("div",F,[n[0]||(n[0]=a("div",{class:"text-xs font-semibold uppercase tracking-[0.14em] text-slate-500"},"Address",-1)),a("div",I,c(s.contact.office_address),1)])):h("",!0),(p=s.contact)!=null&&p.business_hours?(o(),l("div",U,[n[1]||(n[1]=a("div",{class:"text-xs font-semibold uppercase tracking-[0.14em] text-slate-500"},"Business Hours",-1)),a("div",$,c(s.contact.business_hours),1)])):h("",!0)])]}),_:1})):h("",!0)])]}),_:1})],64))}};export{L as default};
