import{u as p,j as o,e as l}from"./vendor-BKmmeuxg.js";import{T as c}from"./tabs-D0Mbb5M5.js";import{T as n,a as d,b}from"./tabs-Ifouhv9A.js";import{D as f}from"./layout-DkwBWm5d.js";import{g as u}from"./route-B4ZMN77y.js";import g from"./mollie-CFRj4yeU.js";import x from"./offline-yUXBt5K8.js";import h from"./paypal-CwRkHucj.js";import j from"./paystack-CmlVq4Wp.js";import k from"./razorpay-ZDjho4eA.js";import y from"./sslcommerz-b3CzOCdU.js";import N from"./stripe-Dp0hgqv5.js";import"./utils-DxSsnXxD.js";import"./sidebar-BYcYxQeZ.js";import"./index-WW_1X1qx.js";import"./button-BpNwv2aE.js";import"./separator-_3LZ_wAA.js";import"./sheet-DSvHVmaW.js";import"./tooltip-BsX7Z6vz.js";import"./main-_V386djS.js";import"./index-D9-QKOod.js";import"./appearance-D2z3xcjR.js";import"./dropdown-menu-DO-po5c1.js";import"./app-BytVvUs_.js";/* empty css            */import"./language-BFZ7KItL.js";import"./notification-CYMPYbAP.js";import"./popover-B4kBsMuI.js";import"./scroll-area-C8HGru-R.js";import"./app-logo-CmnEIwal.js";import"./accordion-CNBvFN43.js";import"./avatar-j28afJTV.js";import"./use-lang-YfV87_zl.js";import"./input-error-LaPr_4wd.js";import"./loading-button-BnTVAMJ7.js";import"./switch-Db09nqXX.js";import"./switch-DFFqeub-.js";import"./card-D9_SJYq6.js";import"./input-DM0goJrn.js";import"./label-HmIcv5Yx.js";import"./select-CD9o3HN1.js";import"./inertia-SZXqLvQm.js";import"./richtor-CRcM6Du2.js";const T=({payments:a})=>{const s=p(),e=u(s.url),m=a.map(t=>{let r;switch(t.sub_type){case"paypal":r=h;break;case"stripe":r=N;break;case"mollie":r=g;break;case"paystack":r=j;break;case"sslcommerz":r=y;break;case"razorpay":r=k;break;case"offline":r=x;break;default:r=({payment:i})=>o.jsx("div",{children:"No component found"});break}return{...t,Component:r}});return o.jsx("section",{className:"md:px-3",children:o.jsxs(c,{value:e.tab??m[0].sub_type,className:"grid grid-rows-1 gap-5 md:grid-cols-4",children:[o.jsx("div",{children:o.jsx(n,{className:"horizontal-tabs-list",children:m.map(({id:t,title:r,sub_type:i})=>o.jsx(d,{value:i,className:"horizontal-tabs-trigger",onClick:()=>l.get(route("settings.payment",{tab:i})),children:r},t))})}),o.jsx("div",{className:"md:col-span-3",children:m.map(t=>o.jsx(b,{value:t.sub_type,className:"m-0",children:o.jsx(t.Component,{payment:t})},t.id))})]})})};T.layout=a=>o.jsx(f,{children:a});export{T as default};
