var b=Object.defineProperty,h=Object.defineProperties;var f=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var n=(o,r,t)=>r in o?b(o,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[r]=t,l=(o,r)=>{for(var t in r||(r={}))N.call(r,t)&&n(o,t,r[t]);if(c)for(var t of c(r))v.call(r,t)&&n(o,t,r[t]);return o},d=(o,r)=>h(o,f(r));import{jsx as i,jsxs as y}from"react/jsx-runtime";import{T}from"./tabs-DqFmhKFO.js";import{x,y as k,z as C}from"./ui-components-B24mpb8o.js";import{D as z}from"./layout-CZk01yM3.js";import{g as j}from"./route-D0xh7FtZ.js";import{usePage as w,router as D}from"@inertiajs/react";import L from"./google-ClICtnsS.js";import P from"./recaptcha-LW-hHFvV.js";import"next-themes";import"sonner";import"react";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"lucide-react";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./main-Cv60h411.js";import"./theme-colors-CLpwvDr4.js";import"./appearance-zLWEcDPI.js";import"./language-79bZLpyc.js";import"./notification-BBQVVMqD.js";import"date-fns";import"./app-logo-CAnM-q9p.js";import"./use-lang-Cw_jKJYs.js";import"./input-error-BbsDx4-P.js";import"./loading-button-B_LaGOAp.js";import"./switch-r95oaeM6.js";import"./inertia-FIn3q7f1.js";const _=({auths:o})=>{var e;const{props:r,url:t}=w(),g=j(t),{translate:u}=r,{common:A}=u,a=o.map(m=>{let p;switch(m.sub_type){case"google":p=L;break;case"recaptcha":p=P;break;default:p=({auth:s})=>i("div",{children:"No component found"});break}return d(l({},m),{Component:p})});return i("section",{className:"md:px-3",children:y(T,{value:(e=g.tab)!=null?e:a[0].sub_type,className:"grid grid-rows-1 gap-5 md:grid-cols-4",children:[i("div",{children:i(x,{className:"horizontal-tabs-list",children:a.map(({id:m,title:p,sub_type:s})=>i(k,{value:s,className:"horizontal-tabs-trigger",onClick:()=>D.get(route("settings.auth0",{tab:s})),children:p},m))})}),i("div",{className:"md:col-span-3",children:a.map(m=>i(C,{value:m.sub_type,className:"m-0",children:i(m.Component,{auth:m},m.id)},m.id))})]})})};_.layout=o=>i(z,{children:o});export{_ as default};
