PageSourceSearch

https://skrif.ai/assets/FaqSection-DandpjmO.js

js skrif.ai collected 2026-10-05 13:32:41 UTC 2,927 bytes, 1 lines download raw bytes

1import{a as e}from"./rolldown-runtime-COnpUsM8.js";import{h as t,r as n,t as r}from"./vendor-D-VjDQh9.js";import{t as i}from"./useTranslation-Bmi1j1Zy.js";import{t as a}from"./proxy-q8WOnioT.js";import{t as o}from"./arrow-right-C4YI3pik.js";import{t as s}from"./chevron-down-DpjXdiZ7.js";import{t as c}from"./utils-BGWiJ7Fc.js";import{t as l}from"./AnimatePresence-DZTQhYob.js";import{l as u}from"./index-kN60YZmi.js";import{t as d}from"./Container-XZY3wovF.js";var f=e(t(),1),p=r(),m=({question:e,answer:t,answerLinkText:r,answerLinkHref:i})=>{let[o,u]=(0,f.useState)(!1);return(0,p.jsxs)(`div`,{className:c(`rounded-2xl border transition-colors duration-200`,o?`border-base-200/60 bg-white/80`:`border-transparent bg-transparent hover:bg-white/50`),children:[(0,p.jsxs)(`button`,{type:`button`,onClick:()=>u(!o),className:`flex items-center justify-between w-full px-5 py-4 lg:px-6 lg:py-5 text-left cursor-pointer`,children:[(0,p.jsx)(`span`,{className:`text-base lg:text-lg font-medium text-base-900 pr-4`,children:e}),(0,p.jsx)(a.div,{animate:{rotate:o?180:0},transition:{duration:.2,ease:`easeInOut`},className:`shrink-0`,children:(0,p.jsx)(s,{className:`size-5 text-base-400`})})]}),(0,p.jsx)(l,{initial:!1,children:o&&(0,p.jsx)(a.div,{initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:`easeInOut`},className:`overflow-hidden`,children:(0,p.jsx)(`div`,{className:`px-5 pb-4 lg:px-6 lg:pb-5`,children:(0,p.jsxs)(`p`,{className:`text-sm lg:text-base text-base-600 leading-relaxed`,children:[t,r&&i&&(0,p.jsxs)(p.Fragment,{children:[` `,(0,p.jsx)(n,{to:i,className:`underline hover:text-base-900 transition-colors`,children:r}),`.`]})]})})})})]})},h=({tags:e,showSeeAll:t=!1})=>{let{t:r}=i(`pricing`),a=r(`faq.items`,{returnObjects:!0}),s=e?a.filter(t=>t.tags?.some(t=>e.includes(t))):a;if(s.length===0)return null;let c={"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:s.map(e=>({"@type":`Question`,name:e.question,acceptedAnswer:{"@type":`Answer`,text:e.answerLinkText?`${e.answer} ${e.answerLinkText}.`:e.answer}}))};return(0,p.jsxs)(d,{children:[(0,p.jsx)(`script`,{type:`application/ld+json`,dangerouslySetInnerHTML:{__html:JSON.stringify(c)}}),(0,p.jsx)(`div`,{className:`py-8 md:py-20 lg:py-24`,children:(0,p.jsxs)(`div`,{className:`max-w-3xl mx-auto`,children:[(0,p.jsx)(`h2`,{className:`text-2xl md:text-3xl xl:text-4xl font-semibold text-base-900 text-center mb-10 md:mb-14`,children:r(`faq.title`)}),(0,p.jsx)(`div`,{className:`flex flex-col gap-2`,children:s.map((e,t)=>(0,p.jsx)(m,{question:e.question,answer:e.answer,answerLinkText:e.answerLinkText,answerLinkHref:e.answerLinkHref},t))}),t&&(0,p.jsx)(`div`,{className:`mt-8 md:mt-10 flex justify-center`,children:(0,p.jsx)(u,{asChild:!0,size:`lg`,children:(0,p.jsxs)(n,{to:`/faq`,children:[r(`faq.seeAll`),(0,p.jsx)(o,{className:`size-4`})]})})})]})})]})};export{h as n,m as t};

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.