import{j as e,P as p,t as s,u as o,a as h,A as x,e as y,E as j,f as u}from"./index-CzTQZzQy.js";import{r as t}from"./vendor-L5FivjNr.js";import{A as g,F as v,H as _}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 f=()=>e.jsx("div",{className:"paysera-overview-welcome__logo-wrapper",style:{padding:"16px 0"},children:e.jsx("img",{className:"paysera-overview-welcome__logo",src:`${payseraData.pluginUrl}/views/img/paysera.svg`,alt:"Paysera",style:{display:"block",maxWidth:"180px",maxHeight:"75px"}})}),l=t.memo(()=>e.jsxs("div",{className:"paysera-page-header",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",flexWrap:"wrap",gap:"16px"},children:[e.jsx(f,{}),e.jsx(p,{title:s("Welcome to Paysera for %cms_name%"),subtitle:s("Your gateway to professional payment solutions")})]}));l.displayName="Welcome";const N="_card_4xs3m_1",w="_heading_4xs3m_7",P="_divider_4xs3m_11",b="_optionsContainer_4xs3m_17",q="_options_4xs3m_17",C="_option_4xs3m_17",n={card:N,heading:w,divider:P,optionsContainer:b,options:q,option:C},k=()=>{const a=o();return e.jsxs("div",{className:n.card,children:[e.jsxs("div",{className:n.heading,children:[e.jsx("h3",{style:{margin:0},children:s("Set up Paysera in a few steps")}),e.jsx("p",{style:{margin:0},children:s("Connect your Paysera account to start accepting payments.")})]}),e.jsx("hr",{className:n.divider}),e.jsx("div",{className:n.optionsContainer,children:e.jsxs("div",{className:n.options,children:[e.jsx("div",{className:n.option,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:a.spacing.md},children:[e.jsx("h4",{style:{margin:0},children:s("I need to create Paysera account")}),e.jsx("p",{style:{margin:0},children:s("I'll need to register for a Paysera account before continuing with the plugin setup")})]})}),e.jsx("div",{className:n.option,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:a.spacing.md},children:[e.jsx("h4",{style:{margin:0},children:s("I already have a Paysera account")}),e.jsx("p",{style:{margin:0},children:s("I already have a Paysera account and can access my Client ID and Secret from Paysera dashboard")})]})})]})})]})},I="_faq_ovafh_1",H="_header_ovafh_7",D="_body_ovafh_12",S="_questions_ovafh_16",A="_link_ovafh_31",r={faq:I,header:H,body:D,questions:S,link:A},c=t.memo(()=>{const a=payseraData.extra.links;return e.jsxs("div",{className:r.faq,children:[e.jsx("div",{className:r.header,children:e.jsx("h3",{style:{margin:0},children:s("FAQ")})}),e.jsxs("div",{className:r.body,children:[e.jsxs("ol",{className:r.questions,children:[e.jsxs("li",{children:[e.jsx("h4",{style:{margin:0},children:s("How do I get my Client ID and Secret?")}),e.jsx("p",{children:s("You can find these credentials in your Project Dashboard under the Integrations section.")})]}),e.jsxs("li",{children:[e.jsx("h4",{style:{margin:0},children:s("How long does it take to set up Paysera with my CMS?")}),e.jsx("p",{children:s("Setup typically takes 5–10 minutes if you have all required credentials ready.")})]})]}),e.jsx("a",{className:r.link,href:a.faq,target:"_blank",rel:"noopener noreferrer",children:s("Open Help Center ->")})]})]})});c.displayName="Faq";const d=t.memo(()=>{const{user:a}=h(),m=o();return e.jsxs(x,{className:"paysera-overview",spacing:m.spacing.xl,children:[e.jsx(l,{}),!a.authorized&&e.jsxs(e.Fragment,{children:[e.jsx(g,{}),e.jsx(k,{})]}),e.jsx(v,{}),!a.authorized&&e.jsx(c,{}),e.jsx(_,{})]})});d.displayName="OverviewPage";const i=document.getElementById("paysera-react-root");i&&y(i).render(e.jsx(j,{children:e.jsx(u,{children:e.jsx(d,{})})}));
