import{u as c,j as o,e as l}from"./vendor-BKmmeuxg.js";import{T as d}from"./tabs-D0Mbb5M5.js";import{T as u,a as b,b as g}from"./tabs-Ifouhv9A.js";import{D as h}from"./layout-DkwBWm5d.js";import{g as x}from"./route-B4ZMN77y.js";import j from"./google-Doik-LKT.js";import f from"./recaptcha-iaVeOxNs.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"./inertia-SZXqLvQm.js";const N=({auths:s})=>{const{props:a,url:p}=c(),e=x(p),{translate:n}=a,{common:T}=n,i=s.map(r=>{let t;switch(r.sub_type){case"google":t=j;break;case"recaptcha":t=f;break;default:t=({auth:m})=>o.jsx("div",{children:"No component found"});break}return{...r,Component:t}});return o.jsx("section",{className:"md:px-3",children:o.jsxs(d,{value:e.tab??i[0].sub_type,className:"grid grid-rows-1 gap-5 md:grid-cols-4",children:[o.jsx("div",{children:o.jsx(u,{className:"horizontal-tabs-list",children:i.map(({id:r,title:t,sub_type:m})=>o.jsx(b,{value:m,className:"horizontal-tabs-trigger",onClick:()=>l.get(route("settings.auth0",{tab:m})),children:t},r))})}),o.jsx("div",{className:"md:col-span-3",children:i.map(r=>o.jsx(g,{value:r.sub_type,className:"m-0",children:o.jsx(r.Component,{auth:r},r.id)},r.id))})]})})};N.layout=s=>o.jsx(h,{children:s});export{N as default};
