import{u as x,j as e,t as a,A as _,P as g,e as j,E as w,f as b}from"./index-CzTQZzQy.js";import{r}from"./vendor-L5FivjNr.js";import{T as P}from"./index--b4sRF-y.js";import{A as q,F as C,H}from"./index-CSqFdqRQ.js";/**
 * 2026 Paysera
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 *
 * @author Paysera <plugins@paysera.com>
 * @copyright 2026 Paysera
 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 */const N=()=>{const t=x();return e.jsxs("div",{className:"paysera-help-page__about",style:{display:"flex",flexDirection:"column",justifyContent:"center",gap:t.spacing.xl},children:[e.jsx(q,{}),e.jsx(C,{})]})},l=r.memo(N);l.displayName="AboutTab";const v="_faqPanel_1lxj9_1",A="_accordion_1lxj9_7",I="_accordionHeader_1lxj9_13",k="_accordionHeaderOpen_1lxj9_33",D="_arrow_1lxj9_37",B="_accordionBody_1lxj9_42",T="_questionBlock_1lxj9_49",S="_question_1lxj9_49",V="_answer_1lxj9_62",s={faqPanel:v,accordion:A,accordionHeader:I,accordionHeaderOpen:k,arrow:D,accordionBody:B,questionBlock:T,question:S,answer:V},F=()=>{const[t,p]=r.useState(null),m=[{title:"General",id:1,items:[{question:"How do I get my Client ID and Secret?",answer:"You can find these credentials in your Project Dashboard under the Integrations section."},{question:"How long does it take to set up Paysera with my CMS?",answer:"Setup typically takes 5–10 minutes if you have all required credentials ready."},{question:"Is the plugin compatible with my theme?",answer:"The plugin is compatible with most modern themes across different CMS platforms. Some custom themes may require minor adjustments."}]},{title:"Setup",id:2,items:[{question:"What do I need to start using the Paysera plugin?",answer:"You'll need a Paysera account, your Client ID, Client secret, and an active store."},{question:"I see a Connection failed error. What should I do?",answer:"Make sure your Client ID and Secret are correct."},{question:"Is Paysera Checkout available in multiple languages?",answer:"Yes. Paysera Checkout automatically adapts to your store's language or the customer's browser language, depending on the payment scenario."}]},{title:"Payments",id:3,items:[{question:"What payment methods does Paysera support?",answer:"Paysera supports card payments, bank transfers, e-wallets, and various regional payment methods depending on the country."},{question:"How do I refund a customer through Paysera?",answer:"You can issue refunds directly through your Paysera dashboard. Refund statuses will be reflected in your order list."},{question:"Are there any fees for transactions via Paysera?",answer:"Paysera applies transaction fees depending on your account and the payment method. Please refer to their pricing on the official websites."}]}];return e.jsx("div",{className:s.faqPanel,children:m.map(({title:h,id:o,items:y})=>e.jsxs("div",{className:s.accordion,children:[e.jsxs("button",{type:"button",className:`${s.accordionHeader} ${t===o?s.accordionHeaderOpen:""}`.trim(),onClick:()=>p(t===o?null:o),"aria-expanded":t===o,children:[e.jsx("span",{children:a(h)}),e.jsx("span",{className:s.arrow,children:t===o?"▲":"▼"})]}),t===o&&e.jsx("div",{className:s.accordionBody,children:y.map((i,f)=>e.jsxs("div",{className:s.questionBlock,children:[e.jsx("h3",{className:s.question,children:a(i.question)}),e.jsx("p",{className:s.answer,children:a(i.answer)})]},f))})]},o))})},d=r.memo(F);d.displayName="FAQTab";const O="_footer_asr26_1",E="_footerCard_asr26_5",Q="_footerContent_asr26_11",U="_footerVersion_asr26_19",n={footer:O,footerCard:E,footerContent:Q,footerVersion:U},Y=[{name:"about",title:a("About"),children:e.jsx(l,{})},{name:"faq",title:a("FAQ"),children:e.jsx(d,{})},{name:"help",title:a("Help"),children:e.jsx(H,{})}],M=()=>e.jsxs(_,{className:"paysera-help-page",children:[e.jsx(g,{title:a("Help"),subtitle:a("Find answers to common questions and get assistance with your Paysera payment gateway integration."),className:"paysera-help-page__header"}),e.jsx(P,{tabs:Y,initialTabName:"about"}),e.jsx("div",{className:n.footer,children:e.jsx("div",{className:n.footerCard,children:e.jsxs("div",{className:n.footerContent,children:[e.jsx("p",{className:n.footerVersion,children:a("Plugin version: %pluginVersion%").replace(/%pluginVersion%/g,payseraData.pluginVersion)}),payseraData.pluginUpdateDate&&e.jsx("p",{className:n.footerVersion,children:a("Last updated: %lastUpdateDate%").replace(/%lastUpdateDate%/g,payseraData.pluginUpdateDate)})]})})})]}),u=r.memo(M);u.displayName="HelpPage";const c=document.getElementById("paysera-react-root");c&&j(c).render(e.jsx(w,{children:e.jsx(b,{children:e.jsx(u,{})})}));
