1import{j as e,r as l}from"./app-DwcbBWW5.js";import{F as r}from"./index.es-GRK07U53.js";import{a as h,b as j,c as b}from"./index-BSFw04T8.js";import"./index-crRXG26Y.js";const i=a=>{const{link:s,label:t}=a;return e.jsx("li",{className:"my-1",children:e.jsx("a",{className:"text-white text-decoration-none link-light",href:s,target:"_blank",children:t})})};function v({lembaga:a}){const[s,t]=l.useState({}),x=new Date().getFullYear(),[c,m]=l.useState(""),[o,p]=l.useState("");return l.useEffect(()=>{(async()=>{try{const n=await(await fetch(`${a.apiUrl}/api/v2/lembaga/profile?kodeLembaga=${a.kode_lembaga}`,{method:"GET",headers:{Accept:"application/json"}})).json();t(n),m(n.logo),p(n.info_footer||"")}catch(d){console.error("Error fetching data:",d)}})()},[]),s.nama_lembaga?e.jsxs("footer",{id:"footer",className:"text-white",style:{backgroundColor:s.warna_utama||"#333",marginTop:"60px"},children:[e.jsx("div",{className:"px-8 md:px-24 py-5",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h6",{className:"fw-bold text-uppercase mb-3",children:"TENTANG LEMBAGA"}),e.jsx("div",{className:"mb-4",style:{height:"2px",backgroundColor:"rgba(255,255,255,0.3)",width:"40px"}})]}),e.jsxs("div",{className:"d-flex align-items-center mb-4",children:[c&&e.jsx("img",{src:c,alt:"Logo",style:{width:"60px",height:"60px",objectFit:"contain",marginRight:"20px",minWidth:"60px"}}),e.jsxs("div",{children:[e.jsx("h6",{className:"mb-2 fw-bold",children:s.nama_lembaga}),e.jsx("p",{className:"small mb-0",style:{fontSize:"14px",opacity:"0.9"},children:s.keterangan})]})]}),s.bio&&e.jsx("div",{style:{fontSize:"15px",lineHeight:"1.8",opacity:"0.95"},children:e.jsx("p",{dangerouslySetInnerHTML:{__html:s.bio}})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h6",{className:"fw-bold text-uppercase mb-3",children:"HUBUNGI KAMI"}),e.jsx("div",{className:"mb-4",style:{height:"2px",backgroundColor:"rgba(255,255,255,0.3)",width:"40px"}})]}),s.alamat&&e.jsx("div",{className:"mb-4",children:e.jsx("p",{style:{fontSize:"15px",lineHeight:"1.8",opacity:"0.95"},className:"mb-0",children:s.alamat})}),s.email&&e.jsx("div",{className:"mb-3",style:{fontSize:"15px"},children:e.jsxs("div",{className:"d-flex align-items-center mb-2",children:[e.jsx(r,{icon:h,className:"me-3",style:{width:"18px",opacity:"0.9"}}),e.jsx("span",{style:{opacity:"0.95"},children:s.email})]})}),s.telp&&e.jsx("div",{style:{fontSize:"15px"},children:e.jsxs("div",{className:"d-flex align-items-center",children:[e.jsx(r,{icon:j,className:"me-3",style:{width:"18px",opacity:"0.9"}}),e.jsx("span",{style:{opacity:"0.95"},children:s.telp})]})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h6",{className:"fw-bold text-uppercase mb-3",children:"INFORMASI PENTING"}),e.jsx("div",{className:"mb-4",style:{height:"2px",backgroundColor:"rgba(255,255,255,0.3)",width:"40px"}})]}),s.links&&e.jsxs("ul",{className:"list-unstyled",children:[e.jsx("li",{className:"mb-3",children:e.jsx(i,{link:s.links.profile,label:"Profile"})}),e.jsx("li",{className:"mb-3",children:e.jsx(i,{link:s.links.kebijakan_privacy,label:"Kebijakan Privacy"})}),e.jsx("li",{className:"mb-3",children:e.jsx(i,{link:s.links.syarat_ketentuan,label:"Syarat & Ketentuan"})}),e.jsx("li",{children:e.jsx(i,{link:s.links.faq,label:"FAQ"})})]})]})]})}),e.jsx("div",{style:{borderTop:"1px solid rgba(0,0,0,0.12)",borderBottom:"1px solid rgba(0,0,0,0.12)"},children:e.jsx("div",{className:"px-8 md:px-24 py-4",children:e.jsxs("div",{className:"d-flex align-items-start gap-3",style:{padding:"14px 16px",borderRadius:"12px",borderLeft:"6px solid #b91c1c",backgroundColor:"rgba(255,255,255,0.75)",boxShadow:"0 8px 24px rgba(0,0,0,0.12)"},children:[e.jsx("div",{style:{minWidth:"24px",marginTop:"2px"},children:e.jsx(r,{icon:b,style:{fontSize:"20px",color:"#b91c1c"}})}),e.jsxs("div",{children:[e.jsx("h6",{className:"mb-2 fw-bold",style:{letterSpacing:"0.3px",color:"#111827"},children:"INFORMASI PENTING"}),e.jsx("p",{style:{fontSize:"15px",lineHeight:"1.6",margin:"0",color:"#111827"},children:o?e.jsx("span",{dangerouslySetInnerHTML:{__html:o}}):"Semua dana donasi yang terhimpun murni disalurkan untuk kepentingan sosial, dan BUKAN untuk tujuan pencucian uang, terorisme, maupun tindak kejahatan lainnya."})]})]})})}),e.jsx("div",{className:"border-top",style:{borderTopColor:"rgba(255,255,255,0.2)",backgroundColor:"rgba(0,0,0,0.2)"},children:e.jsx("div",{className:"px-8 md:px-24 py-4",children:e.jsx("div",{className:"text-center",children:e.jsx("a",{className:"text-decoration-none",style:{color:"white",fontSize:"14px",opacity:"0.9"},href:a.appUrl,children:`© ${x} ${a.namaLembaga}. All rights reserved.`})})})})]}):null}export{v as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.