1import{a as s,u as j,j as r,g as n,l as k,s as x}from"./index-WXqAjLLd.js";import{I as w}from"./lucide-react-q8CNSUqN.js";import{S as N}from"./SmartVideoPlayer-DDLJzcGN.js";import{L as _}from"./link-D2uvPsEj.js";import"./store-CZuiQaQR.js";import"./wifi-CKpkMoPp.js";import"./arrow-up-circle-s9att6SW.js";import"./arrow-down-right-B24r48Bm.js";import"./arrow-right-DGP5fRGX.js";import"./arrow-up-right-BVPyLLrK.js";import"./arrow-up-DBtBiIzO.js";import"./thumbs-up-xA-b861T.js";import"./bar-chart-3-xhGf3P44.js";import"./graduation-cap-Cx4n6L1S.js";import"./calendar-DyyBuNNH.js";import"./quote-t3dmpShC.js";import"./undo-B4l0aQbv.js";import"./check-circle-2-BYxk3Xdv.js";import"./check-circle-CTolFltB.js";import"./check-DvfqpSbU.js";import"./chevron-left-C-AuR_Pm.js";import"./chevron-right-Dpz6XquG.js";import"./clipboard-list-CEp6SYPd.js";import"./clock-AQg9J35L.js";import"./copy-Ddz8PoUw.js";import"./credit-card-Bgnnsh-m.js";import"./dollar-sign-KWUVu5S8.js";import"./file-text-Bp5tg47i.js";import"./filter-krQ_aHvg.js";import"./globe-CwcJyl17.js";import"./handshake-CWwt9d4I.js";import"./hash-CGOrge4J.js";import"./headphones-xgx2A2BW.js";import"./heart-B2dcbcnF.js";import"./history-B-M1FYLt.js";import"./layout-dashboard-CoCwQHaG.js";import"./user-plus-CMOyNfPj.js";import"./menu-C3A3bMmC.js";import"./message-circle-DhKXYcVT.js";import"./minus-C4VId8Ct.js";import"./monitor-CLjhkaDD.js";import"./sun-Dsi-Qn6a.js";import"./more-vertical-D2tmfcHV.js";import"./navigation-CE0idu7b.js";import"./pen-Dw6ql_ZG.js";import"./percent-CrrD6mop.js";import"./plane-hP08ZVg3.js";import"./play-DY7fAHYQ.js";import"./plus-Cw03IAwU.js";import"./power-C39kvSZh.js";import"./refresh-ccw-DiEYEqRv.js";import"./save-DVNPgJu2.js";import"./scan-D6x2dSS2.js";import"./shield-check-C1H07e-J.js";import"./shopping-bag-BX1Aamd3.js";import"./signal-u1JAfvcY.js";import"./smartphone-CmUUh3sd.js";import"./square-pen-Dtm-eL2p.js";import"./star-Dvys6OPS.js";import"./tag-CqGT9SKl.js";import"./toggle-right-Bv2zBkrq.js";import"./trending-down-CVWMpqJC.js";import"./trending-up-DPEc5ppB.js";import"./upload-XaDX6mtA.js";import"./user-x-DVg14PqU.js";import"./video-Bnb0c2ej.js";import"./volume-x-CZdZPWjr.js";import"./wifi-off-Do-zsY7a.js";import"./x-circle-ClV1d2B_.js";function Hr(){const[d,g]=s.useState(null),[i,h]=s.useState(null),[l,y]=s.useState([]),[u,b]=s.useState([]),o=j(),c=s.useRef(null);s.useEffect(()=>{const e=async()=>{const{data:a}=await x.from("homepage_settings").select("video_title, video_url, video_thumbnail_url, video_description, social_links").eq("is_active",!0).maybeSingle();a&&h(a)},t=async()=>{const{data:a}=await x.from("partners").select("*").eq("is_active",!0).order("display_order");a&&y(a)},m=async()=>{try{const a=await fetch("https://image.a2zworkhub.com/media/api/faqs.php");if(a.ok){const p=await a.json();Array.isArray(p)&&b(p)}}catch(a){console.error("Failed to fetch FAQs",a)}};e(),t(),m()},[]),s.useEffect(()=>{const e=c.current;if(!e)return;const t=setInterval(()=>{e&&(e.scrollBy({left:120,behavior:"smooth"}),e.scrollLeft+e.clientWidth>=e.scrollWidth-5&&e.scrollTo({left:0,behavior:"smooth"}))},2e3);return()=>clearInterval(t)},[l]);const f=e=>{g(d===e?null:e)},v=e=>w[e]||_;return r.jsxs("div",{className:"bg-gray-50 dark:bg-gray-900 py-2 px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"w-full lg:w-[97%] mx-auto space-y-6",children:[l.length>0&&r.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-2xl shadow-lg p-4 sm:p-6 overflow-hidden",children:[r.jsx("h4",{className:"text-lg font-bold text-gray-900 dark:text-white mb-6 text-center",children:"Our Partner Companies"}),r.jsx("div",{ref:c,className:"sm:hidden flex overflow-x-auto gap-6 pb-2 px-2 snap-x snap-mandatory scrollbar-hide",children:l.map(e=>r.jsxs("div",{className:"snap-start w-[33.33%] flex flex-col items-center justify-center",children:[r.jsx("div",{className:"w-20 h-20 rounded-full bg-gray-50 dark:bg-gray-700 flex items-center justify-center mb-2 shadow-sm border border-gray-100 dark:border-gray-600 p-2",children:r.jsx("img",{src:e.logo_url,alt:e.name,className:"w-full h-full object-contain rounded-full"})}),r.jsx("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 text-center",children:e.name})]},e.id))}),r.jsx("div",{className:"hidden sm:block relative w-full overflow-hidden",children:r.jsxs("div",{className:"flex animate-marquee whitespace-nowrap",children:[l.map(e=>r.jsxs("div",{className:"mx-8 flex flex-col items-center justify-center min-w-[120px]",children:[r.jsx("div",{className:"w-20 h-20 rounded-full bg-gray-50 dark:bg-gray-700 flex items-center justify-center mb-2 shadow-sm border border-gray-100 dark:border-gray-600 p-2",children:r.jsx("img",{src:e.logo_url,alt:e.name,className:"w-full h-full object-contain rounded-full"})}),r.jsx("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:e.name})]},e.id)),l.map(e=>r.jsxs("div",{className:"mx-8 flex flex-col items-center justify-center min-w-[120px]",children:[r.jsx("div",{className:"w-20 h-20 rounded-full bg-gray-50 dark:bg-gray-700 flex items-center justify-center mb-2 shadow-sm border border-gray-100 dark:border-gray-600 p-2",children:r.jsx("img",{src:e.logo_url,alt:e.name,className:"w-full h-full object-contain rounded-full"})}),r.jsx("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:e.name})]},e.id+"-dup"))]})})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-2xl shadow-lg p-4 sm:p-6",children:[r.jsx("h3",{className:"text-base font-bold text-gray-900 dark:text-white mb-4 text-center",children:i?.video_title||`What is ${n.appName} and How It Works`}),r.jsx("div",{className:"relative aspect-video w-full mb-4 overflow-hidden rounded-lg",children:r.jsx(N,{url:i?.video_url||"https://www.youtube.com/embed/dQw4w9WgXcQ",thumbnailUrl:i?.video_thumbnail_url,title:i?.video_title||`What is ${n.appName}`,className:"w-full h-full"})}),r.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300 text-center",children:i?.video_description||`Learn everything about ${n.appName} in this quick video guide.`})]}),r.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-2xl shadow-lg p-4 sm:p-6",children:[r.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white mb-4 text-center",children:"Frequently Asked Questions"}),r.jsx("div",{className:"space-y-3",children:u.map((e,t)=>r.jsxs("div",{className:"border-b border-gray-200 dark:border-gray-700 pb-3 last:border-b-0",children:[r.jsxs("button",{onClick:()=>f(t),className:"w-full text-left flex items-center justify-between py-2",children:[r.jsx("span",{className:"font-medium text-gray-900 dark:text-white",children:e.question}),r.jsx(k,{className:`w-5 h-5 text-gray-500 transition-transform duration-200 ${d===t?"rotate-180":""}`})]}),d===t&&r.jsx("div",{className:"mt-2 p-3 bg-gray-50 dark:bg-gray-700/50 rounded-lg",children:r.jsx("p",{className:"text-sm text-gray-700 dark:text-gray-300",children:e.answer})})]},t))})]})]}),r.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-2xl shadow-lg p-4 sm:p-6",children:[r.jsx("h4",{className:"text-lg font-bold text-gray-900 dark:text-white mb-4 text-center",children:"Connect With Us"}),r.jsx("div",{className:"flex overflow-x-auto sm:flex-wrap justify-start sm:justify-center gap-4 sm:gap-6 px-4 sm:px-0 scrollbar-hide snap-x",children:i?.social_links?.map((e,t)=>{const m=v(e.icon);return r.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:`group flex items-center justify-center w-12 h-12 ${e.color} hover:opacity-90 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg transform hover:scale-110 flex-shrink-0 snap-center`,"aria-label":e.name,children:r.jsx(m,{className:"w-6 h-6 text-white group-hover:scale-110 transition-transform"})},t)})})]})]}),r.jsxs("div",{className:"mt-2 border-t border-gray-200 dark:border-gray-700 pt-6",children:[r.jsxs("div",{className:"w-full lg:w-[97%] mx-auto",children:[r.jsx("h4",{className:"text-sm font-semibold text-gray-600 dark:text-gray-400 text-center mb-4 uppercase tracking-wide",children:"Qu
1ick Links"}),r.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2 sm:gap-3 text-sm md:flex md:flex-wrap md:justify-center",children:[r.jsx("button",{onClick:()=>o("/about-us"),className:"px-3 py-2 bg-gray-100 dark:bg-gray-800 hover:bg-primary-50 dark:hover:bg-primary-900/30 text-gray-700 dark:text-gray-300 hover:text-primary-600 dark:hover:text-primary-400 rounded-lg transition-colors text-center",children:"About Us"}),r.jsx("button",{onClick:()=>o("/contact-us"),className:"px-3 py-2 bg-gray-100 dark:bg-gray-800 hover:bg-primary-50 dark:hover:bg-primary-900/30 text-gray-700 dark:text-gray-300 hover:text-primary-600 dark:hover:text-primary-400 rounded-lg transition-colors text-center",children:"Contact Us"}),r.jsx("button",{onClick:()=>o("/terms-and-conditions"),className:"px-3 py-2 bg-gray-100 dark:bg-gray-800 hover:bg-primary-50 dark:hover:bg-primary-900/30 text-gray-700 dark:text-gray-300 hover:text-primary-600 dark:hover:text-primary-400 rounded-lg transition-colors text-center",children:"Terms & Conditions"}),r.jsx("button",{onClick:()=>o("/privacy-policy"),className:"px-3 py-2 bg-gray-100 dark:bg-gray-800 hover:bg-primary-50 dark:hover:bg-primary-900/30 text-gray-700 dark:text-gray-300 hover:text-primary-600 dark:hover:text-primary-400 rounded-lg transition-colors text-center",children:"Privacy Policy"}),r.jsx("button",{onClick:()=>o("/refund-policy"),className:"px-3 py-2 bg-gray-100 dark:bg-gray-800 hover:bg-primary-50 dark:hover:bg-primary-900/30 text-gray-700 dark:text-gray-300 hover:text-primary-600 dark:hover:text-primary-400 rounded-lg transition-colors text-center",children:"Refund Policy"}),r.jsx("button",{onClick:()=>o("/shipping-and-delivery"),className:"px-3 py-2 bg-gray-100 dark:bg-gray-800 hover:bg-primary-50 dark:hover:bg-primary-900/30 text-gray-700 dark:text-gray-300 hover:text-primary-600 dark:hover:text-primary-400 rounded-lg transition-colors text-center",children:"Shipping & Delivery"})]})]}),r.jsxs("p",{className:"mt-4 text-xs text-gray-400 text-center",children:["© ",new Date().getFullYear()," ",n.appName,". All rights reserved."]})]})]})}export{Hr as HelpSection};
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.