import { jsxs, jsx } from "react/jsx-runtime"; import { A as Accordion, a as AccordionItem, b as AccordionTrigger, c as AccordionContent } from "./accordion-cIAfVfPq.js"; import { g as getPageSection, S as Section, a as getPropertyArray } from "./section-DPFpz4mP.js"; import { usePage } from "@inertiajs/react"; import "react"; import "@radix-ui/react-accordion"; import "lucide-react"; import "./utils-DLCPGU0v.js"; import "clsx"; import "tailwind-merge"; import "./dialog-DGP_3dPQ.js"; import "@radix-ui/react-dialog"; import "./use-lang-44ndmTOc.js"; import "./chunked-uploader-input-CZfv7yqS.js"; import "./button-CdJZJLGw.js"; import "@radix-ui/react-slot"; import "class-variance-authority"; import "./input-BsvJqbcd.js"; import "axios"; import "sonner"; import "./input-error-D1JIzedA.js"; import "./loading-button-CCIxhJrY.js"; import "./label-0rIIfpX0.js"; import "@radix-ui/react-label"; import "./textarea-Z0d4V-ti.js"; import "./inertia-BtwbgBI3.js"; import "./card-B-gBwpxd.js"; import "./icon-picker-dialog-Bc1iwzL6.js"; import "./icon-picker-C-E-UbjO.js"; import "./debounce-ZFxqVthq.js"; import "./tooltip-BYKuzaoQ.js"; import "@radix-ui/react-tooltip"; import "lucide-react/dynamic"; import "./scroll-area-CDdrLubh.js"; import "@radix-ui/react-scroll-area"; import "./table-header-CdEXSV6s.js"; import "./table-BMWNGY4o.js"; import "@tanstack/react-table"; import "./table-page-size-CF314lUl.js"; import "./dropdown-menu-msun3TP8.js"; import "@radix-ui/react-dropdown-menu"; import "./route-DlE7FdTW.js"; import "./avatar-C8iCpF5R.js"; import "@radix-ui/react-avatar"; const FAQs = () => { const { props } = usePage(); const { page, customize } = props; const faqsCoursesSection = getPageSection(page, "faqs"); return /* @__PURE__ */ jsxs(Section, { customize, pageSection: faqsCoursesSection, containerClass: "py-20", contentClass: "relative", children: [ /* @__PURE__ */ jsxs("div", { className: "relative z-10 mx-auto max-w-3xl", children: [ /* @__PURE__ */ jsxs("div", { className: "relative z-10 mx-auto mb-10 max-w-lg text-center", children: [ /* @__PURE__ */ jsx("p", { className: "text-secondary-foreground mb-1 font-medium", children: faqsCoursesSection == null ? void 0 : faqsCoursesSection.title }), /* @__PURE__ */ jsx("h2", { className: "mb-4 text-2xl font-bold sm:text-3xl", children: faqsCoursesSection == null ? void 0 : faqsCoursesSection.sub_title }), /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: faqsCoursesSection == null ? void 0 : faqsCoursesSection.description }) ] }), /* @__PURE__ */ jsx(Accordion, { type: "single", collapsible: true, defaultValue: "faq-0", className: "w-full", children: getPropertyArray(faqsCoursesSection).map((faq, index) => /* @__PURE__ */ jsxs( AccordionItem, { value: `faq-${index}`, className: "bg-background border-border mb-4 rounded-lg border px-6 shadow-sm", children: [ /* @__PURE__ */ jsx(AccordionTrigger, { className: "cursor-pointer py-4 text-base font-semibold hover:no-underline", children: faq.title }), /* @__PURE__ */ jsx(AccordionContent, { className: "text-muted-foreground pt-0 pb-4 text-sm", children: faq.description }) ] }, `faq-${index}` )) }) ] }), /* @__PURE__ */ jsx("div", { className: "after:pointer-events-none after:absolute after:top-0 after:left-0 after:h-[240px] after:w-[240px] after:rounded-full after:bg-[rgba(0,167,111,1)] after:blur-[290px] after:content-['']" }), /* @__PURE__ */ jsx("div", { className: "after:pointer-events-none after:absolute after:top-1/2 after:right-20 after:h-[290px] after:w-[290px] after:-translate-y-1/2 after:rounded-full after:bg-[rgba(97,95,255,1))] after:blur-[290px] after:content-['']" }) ] }); }; export { FAQs as default };