@donotdev/ui 0.0.31 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +3 -3
- package/dist/{GoToDialog-CR4VOVXT.js → GoToDialog-RU5RP7S2.js} +1 -1
- package/dist/chunk-ETE4RC7M.js +1 -0
- package/dist/components/auth/AuthHeader.d.ts +8 -3
- package/dist/components/auth/AuthHeader.d.ts.map +1 -1
- package/dist/components/auth/AuthHeader.js +6 -6
- package/dist/components/auth/AuthMenu.d.ts +2 -2
- package/dist/components/auth/AuthMenu.js +1 -1
- package/dist/components/common/FeatureCard.d.ts +2 -0
- package/dist/components/common/FeatureCard.d.ts.map +1 -1
- package/dist/components/common/FeatureCard.js +1 -1
- package/dist/components/common/FeatureDisabled.d.ts +2 -1
- package/dist/components/common/FeatureDisabled.d.ts.map +1 -1
- package/dist/components/common/FeatureDisabled.js +2 -2
- package/dist/components/common/ProgressBar.d.ts +1 -1
- package/dist/components/common/ProgressBar.js +2 -2
- package/dist/components/common/RedirectOverlay.d.ts +1 -1
- package/dist/components/common/RedirectOverlay.js +2 -2
- package/dist/components/common/Skeleton.d.ts +7 -7
- package/dist/components/common/Skeleton.js +8 -8
- package/dist/components/common/TechBento.d.ts +1 -0
- package/dist/components/common/TechBento.d.ts.map +1 -1
- package/dist/components/common/icon.d.ts +2 -1
- package/dist/components/common/icon.d.ts.map +1 -1
- package/dist/components/common/icon.js +2 -2
- package/dist/components/common/index.d.ts +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/cookie-consent/ConsentBanner.d.ts +1 -1
- package/dist/components/cookie-consent/ConsentBanner.js +2 -2
- package/dist/components/cookie-consent/CookieConsent.d.ts +1 -0
- package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
- package/dist/components/cookie-consent/index.d.ts +1 -1
- package/dist/components/cookie-consent/index.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/layout/GameContainer.d.ts +1 -1
- package/dist/components/layout/GameContainer.js +2 -2
- package/dist/components/layout/GameFlow.d.ts +2 -2
- package/dist/components/layout/GameFlow.js +2 -2
- package/dist/components/layout/PageConfig.d.ts +25 -0
- package/dist/components/layout/PageConfig.d.ts.map +1 -0
- package/dist/components/layout/PageConfig.js +47 -0
- package/dist/components/layout/PageContainer.d.ts +1 -1
- package/dist/components/layout/PageContainer.js +2 -2
- package/dist/components/layout/components/Breadcrumbs.d.ts +3 -1
- package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/layout/components/Breadcrumbs.js +2 -2
- package/dist/components/layout/components/DropdownNavigation.d.ts +1 -1
- package/dist/components/layout/components/DropdownNavigation.js +2 -2
- package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts +2 -1
- package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts.map +1 -1
- package/dist/components/layout/components/FloatingLanguageSwitcher.js +2 -2
- package/dist/components/layout/components/Notifications.d.ts +4 -4
- package/dist/components/layout/components/Notifications.js +3 -3
- package/dist/components/layout/components/header/AppBranding.d.ts +3 -2
- package/dist/components/layout/components/header/AppBranding.d.ts.map +1 -1
- package/dist/components/layout/components/header/AppBranding.js +2 -2
- package/dist/components/layout/components/header/AppIcon.d.ts +2 -1
- package/dist/components/layout/components/header/AppIcon.d.ts.map +1 -1
- package/dist/components/layout/components/header/AppIcon.js +2 -2
- package/dist/components/layout/components/header/AppTitle.d.ts +2 -1
- package/dist/components/layout/components/header/AppTitle.d.ts.map +1 -1
- package/dist/components/layout/components/header/AppTitle.js +2 -2
- package/dist/components/layout/components/header/CacheSettings.d.ts +1 -1
- package/dist/components/layout/components/header/CacheSettings.js +5 -5
- package/dist/components/layout/components/header/GameTitle.d.ts +2 -1
- package/dist/components/layout/components/header/GameTitle.d.ts.map +1 -1
- package/dist/components/layout/components/header/GameTitle.js +2 -2
- package/dist/components/layout/components/header/HeaderMenu.d.ts +2 -1
- package/dist/components/layout/components/header/HeaderMenu.d.ts.map +1 -1
- package/dist/components/layout/components/header/HeaderMenu.js +2 -2
- package/dist/components/layout/components/header/HeaderNavigation.d.ts +2 -1
- package/dist/components/layout/components/header/HeaderNavigation.d.ts.map +1 -1
- package/dist/components/layout/components/header/HeaderNavigation.js +2 -2
- package/dist/components/layout/components/header/SettingsMenu.d.ts +2 -1
- package/dist/components/layout/components/header/SettingsMenu.d.ts.map +1 -1
- package/dist/components/layout/components/header/SettingsMenu.js +2 -2
- package/dist/components/layout/components/header/ThemeToggle.d.ts +1 -1
- package/dist/components/layout/components/header/ThemeToggle.js +2 -2
- package/dist/components/layout/components/index.d.ts +1 -1
- package/dist/components/layout/components/index.js +1 -1
- package/dist/components/layout/index.d.ts +2 -1
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/index.js +2 -1
- package/dist/components/license/LicenseWatermark.d.ts +1 -1
- package/dist/components/license/LicenseWatermark.js +2 -2
- package/dist/components/license/watermarkData.js +1 -1
- package/dist/crud/components/CrudCardLink.d.ts +1 -1
- package/dist/crud/components/EntityCardList.d.ts +1 -1
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +33 -22
- package/dist/crud/components/EntityDisplayRenderer.d.ts +1 -1
- package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityDisplayRenderer.js +14 -13
- package/dist/crud/components/EntityFormRenderer.d.ts +1 -1
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.js +18 -20
- package/dist/crud/components/EntityList.d.ts +1 -1
- package/dist/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +41 -25
- package/dist/crud/components/EntityRecommendations.d.ts +2 -2
- package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
- package/dist/crud/components/EntityRecommendations.js +6 -6
- package/dist/crud/components/EntityWorkflow.js +1 -1
- package/dist/crud/components/Form.d.ts +10 -10
- package/dist/crud/components/Form.js +12 -12
- package/dist/crud/components/index.d.ts +1 -1
- package/dist/crud/components/index.js +1 -1
- package/dist/crud/crudImports.d.ts +2 -1
- package/dist/crud/crudImports.d.ts.map +1 -1
- package/dist/crud/crudImports.js +2 -1
- package/dist/crud/index.d.ts +1 -1
- package/dist/crud/index.js +1 -1
- package/dist/data/techLogos.d.ts +1 -1
- package/dist/data/techLogos.js +1 -1
- package/dist/dndev-next.css +374 -81
- package/dist/dndev.css +455 -80
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/internal/common/DnDevErrorBoundary.d.ts +2 -2
- package/dist/internal/common/DnDevErrorBoundary.js +2 -2
- package/dist/internal/common/ErrorFallback.d.ts +1 -1
- package/dist/internal/common/ErrorFallback.js +3 -3
- package/dist/internal/common/GlobalErrorFallback.d.ts +1 -1
- package/dist/internal/common/GlobalErrorFallback.js +2 -2
- package/dist/internal/common/RouteErrorFallback.d.ts +1 -1
- package/dist/internal/common/RouteErrorFallback.js +2 -2
- package/dist/internal/devtools/DebugTools.js +2 -2
- package/dist/internal/devtools/components/AuthDebugButton.js +1 -1
- package/dist/internal/devtools/components/ConfigTab.js +1 -1
- package/dist/internal/devtools/components/CookieTab.js +1 -1
- package/dist/internal/devtools/components/DebugDialog.js +1 -1
- package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/DesignTab.js +7 -3
- package/dist/internal/devtools/components/LayoutReset.js +2 -2
- package/dist/internal/devtools/components/MaskedValue.js +1 -1
- package/dist/internal/devtools/components/StoresTab.js +1 -1
- package/dist/internal/devtools/components/index.d.ts +1 -1
- package/dist/internal/devtools/components/index.js +1 -1
- package/dist/internal/devtools/index.d.ts +1 -1
- package/dist/internal/devtools/index.js +1 -1
- package/dist/internal/devtools/types.d.ts +9 -9
- package/dist/internal/devtools/utils/envVarDiscovery.d.ts.map +1 -1
- package/dist/internal/devtools/utils/envVarDiscovery.js +5 -6
- package/dist/internal/devtools/utils/index.d.ts +1 -1
- package/dist/internal/devtools/utils/index.js +1 -1
- package/dist/internal/devtools/utils/maskSensitive.js +1 -1
- package/dist/internal/devtools/utils/virtualModuleInspector.d.ts.map +1 -1
- package/dist/internal/devtools/utils/virtualModuleInspector.js +3 -1
- package/dist/internal/initializers/BaseStoresInitializer.d.ts +3 -3
- package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/BaseStoresInitializer.js +13 -4
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts +1 -1
- package/dist/internal/initializers/NextJsStoresInitializer.js +2 -2
- package/dist/internal/initializers/ViteStoresInitializer.d.ts +1 -1
- package/dist/internal/initializers/ViteStoresInitializer.js +2 -2
- package/dist/internal/initializers/index.d.ts +1 -1
- package/dist/internal/initializers/index.js +1 -1
- package/dist/internal/layout/DnDevLayout.d.ts +2 -2
- package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
- package/dist/internal/layout/DnDevLayout.js +45 -18
- package/dist/internal/layout/components/AutoMetaTags.d.ts +4 -2
- package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/AutoMetaTags.js +193 -57
- package/dist/internal/layout/components/FaviconHead.d.ts +1 -1
- package/dist/internal/layout/components/FaviconHead.js +2 -2
- package/dist/internal/layout/components/FontPreloadLinks.d.ts +1 -1
- package/dist/internal/layout/components/FontPreloadLinks.js +1 -1
- package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts +3 -1
- package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/NextJsAutoMetaTags.js +47 -17
- package/dist/internal/layout/components/PWAUpdateNotification.d.ts +1 -1
- package/dist/internal/layout/components/PWAUpdateNotification.d.ts.map +1 -1
- package/dist/internal/layout/components/PWAUpdateNotification.js +17 -4
- package/dist/internal/layout/components/PerformanceHints.js +1 -1
- package/dist/internal/layout/components/footer/FooterBranding.d.ts +1 -1
- package/dist/internal/layout/components/footer/FooterBranding.js +2 -2
- package/dist/internal/layout/components/footer/FooterCopyright.d.ts +1 -1
- package/dist/internal/layout/components/footer/FooterCopyright.js +2 -2
- package/dist/internal/layout/components/footer/FooterLegalLinks.d.ts +1 -1
- package/dist/internal/layout/components/footer/FooterLegalLinks.js +2 -2
- package/dist/internal/layout/components/index.d.ts +1 -1
- package/dist/internal/layout/components/index.js +1 -1
- package/dist/internal/layout/config/defaults.js +1 -1
- package/dist/internal/layout/config/index.d.ts +1 -1
- package/dist/internal/layout/config/index.js +1 -1
- package/dist/internal/layout/config/presets/admin.d.ts +1 -1
- package/dist/internal/layout/config/presets/blog.d.ts +1 -1
- package/dist/internal/layout/config/presets/docs.js +1 -1
- package/dist/internal/layout/config/presets/game.js +1 -1
- package/dist/internal/layout/config/presets/index.d.ts +1 -1
- package/dist/internal/layout/config/presets/landing.js +1 -1
- package/dist/internal/layout/config/presets/moolti.js +1 -1
- package/dist/internal/layout/config/presets/plain.d.ts +2 -2
- package/dist/internal/layout/config/presets/plain.d.ts.map +1 -1
- package/dist/internal/layout/config/presets/plain.js +12 -1
- package/dist/internal/layout/renderers/index.d.ts +1 -1
- package/dist/internal/layout/renderers/index.js +1 -1
- package/dist/internal/layout/zones/DnDevFooter.d.ts +3 -1
- package/dist/internal/layout/zones/DnDevFooter.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevFooter.js +6 -2
- package/dist/internal/layout/zones/DnDevHeader.d.ts +3 -1
- package/dist/internal/layout/zones/DnDevHeader.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevHeader.js +8 -3
- package/dist/internal/layout/zones/DnDevMergedBar.js +1 -1
- package/dist/internal/layout/zones/DnDevSidebar.d.ts +3 -1
- package/dist/internal/layout/zones/DnDevSidebar.d.ts.map +1 -1
- package/dist/internal/layout/zones/DnDevSidebar.js +10 -4
- package/dist/internal/layout/zones/index.d.ts +1 -1
- package/dist/internal/layout/zones/index.js +1 -1
- package/dist/internal/providers/NavigationProvider.d.ts +1 -1
- package/dist/internal/providers/NavigationProvider.js +2 -2
- package/dist/internal/providers/SentryInitializer.d.ts +1 -1
- package/dist/internal/providers/SentryInitializer.js +2 -2
- package/dist/internal/providers/UIProviders.d.ts +1 -1
- package/dist/internal/providers/UIProviders.js +3 -3
- package/dist/internal/providers/index.d.ts +1 -1
- package/dist/internal/providers/index.js +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/next.js +1 -1
- package/dist/providers/NextJsAppProviders.d.ts +1 -1
- package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
- package/dist/providers/NextJsAppProviders.js +5 -3
- package/dist/providers/ViteAppProviders.d.ts +1 -1
- package/dist/providers/ViteAppProviders.js +2 -2
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/routing/404.d.ts +2 -2
- package/dist/routing/404.js +3 -3
- package/dist/routing/AuthGuard.d.ts +14 -29
- package/dist/routing/AuthGuard.d.ts.map +1 -1
- package/dist/routing/AuthGuard.js +27 -72
- package/dist/routing/AuthGuardFallback.d.ts +1 -1
- package/dist/routing/AuthGuardFallback.js +2 -2
- package/dist/routing/AuthReturnTo.d.ts +13 -0
- package/dist/routing/AuthReturnTo.d.ts.map +1 -0
- package/dist/routing/AuthReturnTo.js +61 -0
- package/dist/routing/DnDevNavigationMenu.d.ts +2 -1
- package/dist/routing/DnDevNavigationMenu.d.ts.map +1 -1
- package/dist/routing/DnDevNavigationMenu.js +2 -2
- package/dist/routing/GoTo.d.ts +1 -0
- package/dist/routing/GoTo.d.ts.map +1 -1
- package/dist/routing/GoTo.js +1 -1
- package/dist/routing/GoToDialog.js +1 -1
- package/dist/routing/GoToInput.js +1 -1
- package/dist/routing/GoToWrapper.d.ts +1 -1
- package/dist/routing/GoToWrapper.js +2 -2
- package/dist/routing/Link.d.ts +2 -2
- package/dist/routing/Link.js +2 -2
- package/dist/routing/NavigationItem.d.ts +1 -1
- package/dist/routing/NavigationItem.js +2 -2
- package/dist/routing/hooks/hooks.next.d.ts +1 -1
- package/dist/routing/hooks/hooks.next.js +1 -1
- package/dist/routing/hooks/hooks.vite.d.ts +1 -1
- package/dist/routing/hooks/hooks.vite.js +1 -1
- package/dist/routing/hooks/index.d.ts +1 -1
- package/dist/routing/hooks/index.js +1 -1
- package/dist/routing/hooks/types.d.ts +1 -1
- package/dist/routing/hooks/useLocation.next.js +1 -1
- package/dist/routing/hooks/useLocation.vite.js +1 -1
- package/dist/routing/hooks/useNavigate.next.d.ts +8 -0
- package/dist/routing/hooks/useNavigate.next.d.ts.map +1 -1
- package/dist/routing/hooks/useNavigate.next.js +59 -9
- package/dist/routing/hooks/useNavigate.vite.d.ts +8 -0
- package/dist/routing/hooks/useNavigate.vite.d.ts.map +1 -1
- package/dist/routing/hooks/useNavigate.vite.js +65 -15
- package/dist/routing/hooks/useQueryParams.next.js +1 -1
- package/dist/routing/hooks/useQueryParams.vite.js +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.d.ts +2 -0
- package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.js +12 -28
- package/dist/routing/hooks/useRedirectGuard.vite.d.ts +2 -0
- package/dist/routing/hooks/useRedirectGuard.vite.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.vite.js +12 -28
- package/dist/routing/hooks/useRouteParam.next.js +1 -1
- package/dist/routing/hooks/useRouteParam.vite.js +1 -1
- package/dist/routing/index.d.ts +2 -1
- package/dist/routing/index.d.ts.map +1 -1
- package/dist/routing/index.js +2 -1
- package/dist/routing/useGoTo.js +1 -1
- package/dist/routing/useNavigation.d.ts +2 -2
- package/dist/routing/useNavigation.js +3 -3
- package/dist/routing/useRouteDiscovery.d.ts +7 -7
- package/dist/routing/useRouteDiscovery.js +6 -6
- package/dist/styles/index.css +455 -80
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/index.js +1 -1
- package/dist/styles/layoutConstants.d.ts +6 -6
- package/dist/styles/layoutConstants.js +5 -5
- package/dist/symbol-index.json +1 -0
- package/dist/utils/assetResolver.d.ts +5 -5
- package/dist/utils/assetResolver.js +4 -4
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -1
- package/dist/utils/sanitizeSvg.d.ts +4 -0
- package/dist/utils/sanitizeSvg.d.ts.map +1 -1
- package/dist/utils/sanitizeSvg.js +5 -1
- package/dist/utils/tList.js +1 -1
- package/dist/utils/useAISafe.d.ts +28 -0
- package/dist/utils/useAISafe.d.ts.map +1 -0
- package/dist/utils/useAISafe.js +53 -0
- package/dist/utils/useAuthSafe.d.ts +39 -0
- package/dist/utils/useAuthSafe.d.ts.map +1 -1
- package/dist/utils/useAuthSafe.js +6 -1
- package/dist/utils/useAuthVisibility.d.ts +1 -0
- package/dist/utils/useAuthVisibility.d.ts.map +1 -1
- package/dist/utils/useAuthVisibility.js +1 -1
- package/dist/utils/useBillingVisibility.d.ts +1 -0
- package/dist/utils/useBillingVisibility.d.ts.map +1 -1
- package/dist/utils/useBillingVisibility.js +1 -1
- package/dist/utils/useCrudSafe.js +1 -1
- package/dist/utils/useFormStoreSafe.js +1 -1
- package/dist/utils/useOAuthSafe.d.ts +1 -1
- package/dist/utils/useSeo.d.ts +121 -0
- package/dist/utils/useSeo.d.ts.map +1 -0
- package/dist/utils/useSeo.js +114 -0
- package/dist/utils/useStripeBillingSafe.js +1 -1
- package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
- package/dist/vite-routing/AppRoutes.js +15 -5
- package/dist/vite-routing/RootLayout.d.ts +1 -1
- package/dist/vite-routing/RootLayout.d.ts.map +1 -1
- package/dist/vite-routing/RootLayout.js +11 -9
- package/dist/vite-routing/index.d.ts +1 -1
- package/dist/vite-routing/index.js +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +1 -1
- package/guidelines/COMPONENTS.md +136 -0
- package/guidelines/GOTCHAS.md +66 -0
- package/guidelines/LAYOUTS.md +310 -0
- package/guidelines/PAGES.md +205 -0
- package/guidelines/ROUTING.md +499 -0
- package/guidelines/SEO.md +275 -0
- package/package.json +12 -7
- package/dist/chunk-XHGRMKOY.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use client";import{a as
|
|
1
|
+
"use client";import{a as W,b as An,c as P,d as Eu,e as Au,f as re,g as ko,h as Iu}from"./chunk-ETE4RC7M.js";import{a as Ke}from"./chunk-O2XFH626.js";import{User as os}from"lucide-react";import{Suspense as Gt,lazy as Xo,useState as rs}from"react";import{Button as ns,BUTTON_VARIANT as jo,DropdownMenu as as,Dialog as is,DISPLAY as ss}from"@donotdev/components";import{useTranslation as ls}from"@donotdev/core";import{useAuthConfig as cs}from"@donotdev/core";import{getEnabledAuthPartners as ds}from"@donotdev/core";import{User as Fi,LogOut as Bi,Settings as Me,UserCheck as Mi,Trash2 as zi}from"lucide-react";import*as Oi from"lucide-react";import rt,{useMemo as Vi,lazy as qo,Suspense as Yo}from"react";import{Avatar as Ui,Button as _i,BUTTON_VARIANT as Hi,DropdownMenu as $i,Text as Gi,DISPLAY as Wi}from"@donotdev/components";import{useTranslation as Ki}from"@donotdev/core";import{getEnabledAuthPartners as Yi,useAuthConfig as qi,isClient as Zi}from"@donotdev/core";import{useBreakpoint as Ji}from"@donotdev/core";import{useNavigate as Qi}from"@donotdev/ui/routing/hooks";import{Link as Ye}from"lucide-react";import"react";import"@donotdev/components";import{useConsent as In}from"@donotdev/core";import{useNavigate as Pn}from"@donotdev/ui/routing/hooks";import{Fragment as Rn,jsx as pe,jsxs as Eo}from"react/jsx-runtime";var k=({path:e,replace:t,prefetch:o=!0,children:r,icon:n,iconEnd:a=!1,label:i,onClick:l,className:d,"aria-label":u,"aria-describedby":s,target:c,rel:p,...f})=>{let m=Pn(),v=In("showCookieBanner");if(e==="#cookie-settings")return Eo("a",{href:"#cookie-settings",onClick:E=>{E.preventDefault(),E.stopPropagation();try{v()}catch{}l&&l(E)},className:d,style:{display:n&&(i||r)?"flex":void 0,alignItems:n&&(i||r)?"center":void 0,gap:n&&(i||r)?"var(--gap-sm)":void 0,...f.style},"aria-label":u||i||"Cookie Settings","aria-describedby":s,...f,children:[n&&!a&&pe(W,{icon:n,fallback:Ye}),i&&pe("span",{children:i}),r,n&&a&&pe(W,{icon:n,fallback:Ye})]});let h=e.startsWith("http://")||e.startsWith("https://")||e.startsWith("mailto:")||e.startsWith("tel:"),g=C=>{if(h){l&&l(C);return}C.preventDefault(),l&&l(C);let E=e.startsWith("/")||e.startsWith(".")?e:`/${e}`;m(E,{replace:t})},S={"aria-label":u||i,"aria-describedby":s},w=Eo(Rn,{children:[n&&!a&&pe(W,{icon:n,fallback:Ye}),i&&pe("span",{children:i}),r,n&&a&&pe(W,{icon:n,fallback:Ye})]});return h?pe("a",{href:e,onClick:g,target:c||"_blank",rel:p||"noopener noreferrer",className:d,style:{display:n&&(i||r)?"flex":void 0,alignItems:n&&(i||r)?"center":void 0,gap:n&&(i||r)?"var(--gap-sm)":void 0},...S,...f,children:w}):pe("a",{href:e,onClick:g,className:d,style:{display:n&&(i||r)?"flex":void 0,alignItems:n&&(i||r)?"center":void 0,gap:n&&(i||r)?"var(--gap-sm)":void 0},...S,...f,children:w})};import{useEffect as Nn}from"react";import{Spinner as Ao}from"@donotdev/components";import{FEATURE_STATUS as Ln,USER_ROLES as qe,SUBSCRIPTION_TIERS as Nt,isClient as Dn,safeSessionStorage as Io}from"@donotdev/core";import{useRedirectGuard as Fn,useNavigate as Bn}from"@donotdev/ui/routing/hooks";import{Fragment as Po,jsx as ye}from"react/jsx-runtime";function Mn({auth:e,children:t,fallback:o=()=>ye(Ao,{overlay:!0})}){let r=Bn(),n=P("user"),a=P("status"),{shouldRedirect:i,redirectTo:l,isChecking:d}=Fn({auth:e});return Nn(()=>{i&&l&&(!n&&Dn()&&(Io.setItem("dndev.auth.returnTo",window.location.pathname+window.location.search),Io.setItem("dndev.auth.guardToast","1")),r(l,{replace:!0}))},[i,l,r,n]),e===!1?ye(Po,{children:t}):i||d?ye(Ao,{overlay:!0}):a===Ln.INITIALIZING?ye(o,{}):ye(Po,{children:t})}function zn(e){return P("can")?.navigate(e)??!1}var $u=zn;function Gu(){return P("user")?.role||qe.GUEST}function Wu(e){return P("user")?.role===e}function Ku(){let e=P("user"),t=P("userSubscription"),o=P("loading");return{authenticated:!!e,role:e?.role,tier:t?.tier||"free",loading:o,userId:e?.id}}function Yu(e,t){return r=>ye(Mn,{auth:t,children:ye(e,{...r})})}var qu={public:()=>!1,required:()=>({required:!0}),user:()=>({required:!0,role:qe.USER}),admin:()=>({required:!0,role:qe.ADMIN}),tier:e=>({required:!0,tier:e}),pro:()=>({required:!0,tier:Nt.PRO}),premium:()=>({required:!0,tier:Nt.PREMIUM}),adminPro:()=>({required:!0,role:qe.ADMIN,tier:Nt.PRO}),custom:e=>({required:!0,validate:e})};import{ArrowLeft as na,Lock as aa}from"lucide-react";import{Suspense as ia,lazy as sa}from"react";import{Card as la,Button as ca,Separator as da,Stack as Ae,cn as ua}from"@donotdev/components";import{useTranslation as pa}from"@donotdev/core";import"@donotdev/core";import{useLocation as ma,useBack as fa}from"@donotdev/ui/routing/hooks";import{Suspense as ta}from"react";import{cn as oa}from"@donotdev/components";import{Component as On}from"react";import{handleError as Vn}from"@donotdev/core";var Lt=class extends On{constructor(o){super(o);Ke(this,"resetError",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:null}}static getDerivedStateFromError(o){return{hasError:!0,error:o}}componentDidCatch(o,r){Vn(o,{userMessage:`A ${this.props.level||"component"} error occurred`,context:{errorInfo:r,component:"DnDevErrorBoundary",level:this.props.level||"component"},showNotification:!1})}render(){return this.state.hasError?this.props.fallback({error:this.state.error,resetError:this.resetError,componentStack:null,eventId:null}):this.props.children}},Ro=Lt;import{AlertTriangle as Un,Home as _n,ArrowLeft as Hn,RotateCw as $n,Copy as Gn,Check as Wn}from"lucide-react";import{useEffect as Kn,useState as Yn}from"react";import{Button as Ze,BUTTON_VARIANT as Je,Card as No,CARD_VARIANT as Lo,Alert as qn,ALERT_VARIANT as Zn,Stack as Ee}from"@donotdev/components";import{handleError as Jn,useTranslation as Qn}from"@donotdev/core";import{useLocation as Xn,useBack as jn}from"@donotdev/ui/routing/hooks";import{jsx as V,jsxs as be}from"react/jsx-runtime";var ea=({error:e,resetError:t,componentStack:o,eventId:r})=>{let{t:n}=Qn("dndev"),[a,i]=Yn(!1),l=jn(),u=Xn()?.pathname||(typeof window<"u"?window.location.pathname:"/"),s=e instanceof Error?e.message:"Unknown error",c=e instanceof Error?e.stack:void 0,p=!1;Kn(()=>{try{Jn(e,{userMessage:"Page encountered an error",context:{component:"RouteErrorFallback",location:u}})}catch{}},[e,u]);let f=async()=>{if(!c)return;let h=[`Error: ${s}`,`Timestamp: ${new Date().toISOString()}`,`User Agent: ${navigator.userAgent}`,r?`Event ID: ${r}`:null,`Path: ${u}`,"","Stack Trace:",c,o?`
|
|
2
2
|
Component Stack:`:null,o||null].filter(Boolean).join(`
|
|
3
|
-
`);try{await navigator.clipboard.writeText(h),i(!0),setTimeout(()=>i(!1),2e3)}catch{}},m=()=>{try{t()}catch{typeof window<"u"&&window.location.reload()}},v=()=>{try{s()}catch{typeof window<"u"&&window.history.back()}};return U("div",{className:"dndev-container","data-variant":"standard","data-centered":"true",children:U(Po,{variant:Ro.DEFAULT,elevated:!0,className:"dndev-w-full",style:{maxWidth:"65ch",margin:"0 auto"},children:pe(Se,{gap:"large",align:"center",className:"dndev-text-center",children:[U(Se,{align:"center",justify:"center",style:{width:"5rem",height:"5rem",backgroundColor:"rgba(220, 38, 38, 0.1)",borderRadius:"50%",border:"1px solid var(--destructive)"},children:U(zn,{style:{width:"2.5rem",height:"2.5rem",color:"var(--destructive)"},"aria-hidden":"true"})}),pe(Se,{children:[U("h1",{className:"dndev-text-base","data-level":"h1",style:{fontSize:"var(--font-size-2xl)",fontWeight:"var(--font-weight-bold)",margin:0},children:n("routeError.title","Something went wrong")}),U("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)",margin:0},children:n("routeError.description","We encountered an error while loading this page.")}),U($n,{variant:Kn.INFO,hideIcon:!0,children:U("div",{style:{fontSize:"var(--font-size-sm)",textAlign:"center"},children:n("routeError.dataSafe","Don't worry, your data is safe.")})})]}),r&&pe("code",{style:{padding:"var(--gap-sm) var(--gap-md)",background:"var(--muted)",borderRadius:"var(--radius-full)",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",color:"var(--foreground)"},children:[n("routeError.errorId","Error ID"),": ",r]}),f&&l&&pe(Po,{variant:Ro.MUTED,className:"dndev-w-full",children:[pe(Se,{direction:"row",align:"center",justify:"between",children:[U("span",{className:"dndev-text-base",style:{fontSize:"var(--font-size-sm)",fontWeight:"var(--font-weight-semibold)",color:"var(--destructive)"},children:"Error Message:"}),U(Ke,{variant:Ye.GHOST,icon:a?Hn:_n,onClick:p,disabled:a,children:a?n("routeError.copied","Copied"):n("routeError.copyDetails","Copy Details")})]}),U("pre",{style:{fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",wordBreak:"break-word",whiteSpace:"pre-wrap",color:"var(--foreground)",margin:0,marginTop:"var(--gap-sm)"},children:l})]}),pe(Se,{className:"dndev-w-full",children:[U(Ke,{variant:Ye.DESTRUCTIVE,icon:Un,onClick:m,fullWidth:!0,children:n("routeError.tryAgain","Try Again")}),pe(Se,{direction:"row",justify:"center",children:[U(E,{path:"/",children:U(Ke,{variant:Ye.DEFAULT,icon:On,fullWidth:!0,children:n("routeError.goHome","Go Home")})}),U(Ke,{variant:Ye.OUTLINE,icon:Vn,onClick:v,fullWidth:!0,children:n("routeError.goBack","Go Back")})]})]}),U("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)",margin:0},children:n("routeError.contactSupport","If the problem persists, please contact support.")})]})})})},Lo=Qn;import{jsx as Le}from"react/jsx-runtime";function ea(e){return Le(Xn,{fallback:Le("div",{children:"Loading error fallback..."}),children:Le(Lo,{...e})})}var qe=({variant:e="standard",density:t,className:o,children:r,centered:n=!0,gapFirst:a=!1})=>Le(No,{level:"route",fallback:ea,children:Le("div",{className:jn("dndev-container",o),"data-variant":e,"data-density":t,"data-centered":n?"true":"false","data-gap-first":a?"true":void 0,children:r})});import{Fragment as ma,jsx as M,jsxs as De}from"react/jsx-runtime";var pa=na(()=>import("@donotdev/auth").then(e=>({default:e.MultipleAuthProviders})));function gp({title:e,description:t,showBackButton:o=!0,onBack:r,className:n=""}){let{t:a}=ca(["auth","common"]),i=da(),s=ua(),c=()=>{r?r():s()};return M(qe,{variant:"docs",children:M(Ce,{align:"center",justify:"center",className:la("dndev-min-h-60",n),style:{paddingTop:"var(--gap-lg)",paddingBottom:"var(--gap-lg)"},children:M(aa,{className:"dndev-w-full",style:{maxWidth:"28rem",border:"none",boxShadow:"var(--shadow-xl)"},title:De(Ce,{children:[M(Ce,{justify:"center",children:M("div",{style:{borderRadius:"9999px",backgroundColor:"color-mix(in oklab, var(--primary) 10%, transparent)",padding:"var(--gap-md)"},children:M(oa,{className:"dndev-size-touch",style:{color:"var(--primary)"}})})}),M("div",{style:{fontSize:"var(--font-size-2xl)",fontWeight:700},children:a("auth.fallback.title","Authentication Required")}),M("p",{style:{color:"var(--muted-foreground)"},children:a("auth.fallback.description","Please sign in to access this page")})]}),children:De(Ce,{children:[De(Ce,{gap:"large",children:[M("div",{children:M("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:a("auth.fallback.chooseProvider")})}),M(ra,{fallback:M("div",{children:"Loading providers..."}),children:M(pa,{layout:"vertical",spacing:"tight",fullWidth:!0,ariaLabel:a("auth.fallback.authOptions")})})]}),o&&De(ma,{children:[M(sa,{}),M("div",{children:M(ia,{onClick:c,className:"dndev-gap-sm",icon:ta,children:a("common.back")})})]}),De(Ce,{gap:"tight",style:{fontSize:"var(--font-size-xs)",color:"var(--muted-foreground)"},children:[M("p",{children:a("auth.fallback.secure")}),M("p",{children:a("auth.fallback.terms")})]})]})})})})}import{Search as fa}from"lucide-react";import{Button as ga,BUTTON_VARIANT as va,DISPLAY as ha}from"@donotdev/components";import{useOverlayStore as ya,useTranslation as ba}from"@donotdev/core";import{jsx as Sa,jsxs as Ca}from"react/jsx-runtime";var Cp=({display:e=ha.AUTO,className:t,onOpen:o})=>{let{t:r}=ba("dndev"),n=ya(c=>c.openCommandDialog),i=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgentData?.platform??navigator.platform)?"\u2318K":"Ctrl+K",s=()=>{n(),o?.()};return Ca(ga,{variant:va.OUTLINE,display:e,icon:fa,onClick:s,className:t,"aria-label":r("goTo.ariaLabel","Go to page"),children:[r("goTo.label","Go to"),Sa("kbd",{style:{marginInlineStart:"var(--gap-sm)",padding:"0.125rem 0.375rem",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",opacity:.5},children:i})]})};import{Suspense as xa,lazy as wa}from"react";import{useEventListener as ka,useOverlayStore as Ta}from"@donotdev/core";import{jsx as Do}from"react/jsx-runtime";var Ea=wa(()=>import("./GoToDialog-CR4VOVXT.js")),Aa=()=>{let e=Ta(t=>t.openCommandDialog);return ka("keydown",t=>{if((t.metaKey||t.ctrlKey)&&t.key==="k"){let o=t.target;if(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable)return;t.preventDefault(),e()}},{target:document,options:{passive:!1,capture:!1}}),Do(xa,{fallback:null,children:Do(Ea,{})})},Ia=Aa;import{Search as Na}from"lucide-react";import{useCallback as Fo,useEffect as Pa,useState as Ra,useRef as La}from"react";import{Stack as Da}from"@donotdev/components";import{useOverlayStore as At}from"@donotdev/core";import{useTranslation as Fa}from"@donotdev/core";import{jsx as Ze,jsxs as Oa}from"react/jsx-runtime";var Ba=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgent),Ma=()=>{let{t:e}=Fa("dndev"),[t,o]=Ra(""),r=La(null),n=At(s=>s.isCommandDialogOpen);Pa(()=>{n||o("")},[n]);let a=Fo(()=>{At.getState().openCommandDialog(t)},[t]),i=Fo(s=>{s.key==="Enter"&&(s.preventDefault(),At.getState().openCommandDialog(t))},[t]);return Oa(Da,{direction:"row",align:"center",className:"dndev-relative dndev-w-full dndev-max-w-sm",role:"search",children:[Ze(Na,{className:"dndev-absolute dndev-size-md",style:{insetInlineStart:"0.75rem",opacity:.5},"aria-hidden":"true"}),Ze("input",{ref:r,type:"text",value:t,onChange:s=>o(s.target.value),onFocus:a,onKeyDown:i,placeholder:e("globalGoTo.searchPlaceholder","Search pages..."),className:"dndev-input dndev-w-full",style:{paddingInlineStart:"2.5rem",paddingInlineEnd:"5rem"},"aria-label":e("globalGoTo.ariaLabel","Search navigation")}),Ze("div",{className:"dndev-absolute dndev-flex dndev-items-center dndev-text-sm",style:{insetInlineEnd:"0.75rem",gap:"0.25rem",opacity:.5},"aria-hidden":"true",children:Ze("kbd",{style:{padding:"0.25rem 0.5rem",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",borderRadius:"var(--radius-sm)"},children:Ba?"\u2318K":"Ctrl+K"})})]})},za=Ma;import{MoreHorizontal as Va,Link as Bo}from"lucide-react";import{useState as Ua,useEffect as Mo,useRef as _a,useMemo as Ha}from"react";import{NavigationMenu as zo,NavigationMenuListPrimitive as Ga,NavigationMenuItemPrimitive as Oo,Button as Wa,DropdownMenu as $a,cn as Je,DISPLAY as Ka}from"@donotdev/components";import{useTranslation as Ya}from"@donotdev/core";import{jsx as q,jsxs as It}from"react/jsx-runtime";var Vo=({routes:e,vertical:t=!1,display:o=Ka.AUTO,overflowDetection:r=!1,showIcons:n=!0,className:a,style:i})=>{let{t:s}=Ya("dndev"),c=J(),d=e??c,l=_a(null),[u,f]=Ua(d.length),p=Ha(()=>d.map(m=>({label:m.label,path:m.path,icon:q(H,{icon:m.icon,fallback:Bo}),children:m.children?m.children.map(v=>({label:v.label,path:v.path,icon:q(H,{icon:v.icon,fallback:Bo})})):void 0})),[d]);if(Mo(()=>{if(!r||d.length===0||t)return;let m=()=>{let h=l.current;if(!h)return;let g=h.getBoundingClientRect(),S=h.querySelectorAll("[data-nav-item]"),w=h.querySelector("[data-more-button]"),b=0,I=w?.offsetWidth||0;for(let T=0;T<S.length;T++){let N=S[T];if(!N)break;if(N.getBoundingClientRect().right-g.left+(T===S.length-1&&w?I:0)<=g.width)b=T+1;else break}f(Math.max(0,b))},v=new ResizeObserver(m);return l.current&&v.observe(l.current),setTimeout(m,0),()=>v.disconnect()},[r,d.length,t]),Mo(()=>{r&&!t&&f(d.length)},[d.length,r,t]),d.length===0)return null;if(r&&!t){let m=Math.min(u,p.length),v=p.slice(0,m),h=p.slice(m);return q(zo,{className:Je(a),style:i||{flex:1},children:It(Ga,{ref:l,"data-vertical":"false",style:{display:"flex",alignItems:"center",gap:"var(--gap-sm)",flexWrap:"nowrap",overflow:"hidden"},children:[v.filter(g=>g.path).map((g,S)=>q(Oo,{"data-nav-item":!0,children:It(E,{path:g.path,className:Je("dndev-interactive"),"data-role":"nav-trigger",children:[n&&g.icon,q("span",{className:"dndev-interactive-label",children:g.label})]})},g.path||S)),h.length>0&&q(Oo,{"data-more-button":!0,children:q($a,{trigger:q(Wa,{className:"dndev-size-touch",style:{flexShrink:0},"aria-label":s("navigation.more","More"),children:q(Va,{className:"dndev-size-md"})}),items:h.filter(g=>g.path).map(g=>({label:g.label,children:It(E,{path:g.path,className:Je("dndev-interactive"),"data-role":"menu-item",children:[n&&g.icon,q("span",{className:"dndev-interactive-label",children:g.label})]}),asChild:!0})),contentWidth:"14rem",contentAlign:"end"})})]})})}return q(zo,{items:p,vertical:t,display:o,className:Je(a,t&&"dndev-sidebar-nav-menu"),LinkComponent:E})};import{Home as qa,ArrowLeft as Za,Link as Ja}from"lucide-react";import{useMemo as Qa}from"react";import{Button as Nt,BUTTON_VARIANT as Pt,Stack as Fe,Text as Rt}from"@donotdev/components";import{useTranslation as Xa}from"@donotdev/core";import{useLocation as ja,useNavigate as ei}from"@donotdev/ui/routing/hooks";import{jsx as $,jsxs as Qe}from"react/jsx-runtime";function Uo(){let{t:e}=Xa("dndev"),t=ja(),o=ei(),r=J(),n=Qa(()=>r.filter(i=>!i.path.includes(":")&&i.path!=="/").slice(0,4),[r]),a=()=>{o("back")};return $(qe,{variant:"docs",centered:!0,children:Qe(Fe,{gap:"large",align:"center",justify:"center",children:[Qe(Fe,{align:"center",children:[$(Rt,{level:"h1",style:{fontSize:"clamp(4rem, 12vw, 8rem)",fontWeight:"var(--font-weight-bold)",lineHeight:1,letterSpacing:"-0.02em",background:"linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",margin:0},children:"404"}),$(Rt,{level:"h2",style:{fontSize:"var(--font-size-2xl)",fontWeight:"var(--font-weight-semibold)",margin:0},children:e("errors.notFound.title","Page Not Found")}),$(Rt,{style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)",textAlign:"center",margin:0},children:e("errors.notFound.description","The page you're looking for doesn't exist or has been moved.")}),t.pathname&&$("code",{style:{padding:"var(--gap-sm) var(--gap-md)",background:"var(--muted)",borderRadius:"var(--radius-md)",fontSize:"var(--font-size-sm)",fontFamily:"var(--font-mono)",color:"var(--foreground)",wordBreak:"break-all",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",border:"1px solid var(--border-hairline)"},children:t.pathname})]}),n.length>0&&Qe(Fe,{align:"center",children:[$("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-md)",fontWeight:"var(--font-weight-semibold)",margin:0,color:"var(--muted-foreground)"},children:e("errors.notFound.suggestions","You might be looking for:")}),$(Fe,{direction:"row",wrap:"wrap",justify:"center",gap:"tight",children:n.map(i=>$(E,{path:i.path,replace:!0,children:$(Nt,{variant:Pt.OUTLINE,icon:$(H,{icon:i.icon,fallback:Ja}),"aria-label":e("errors.notFound.navigateTo",`Navigate to ${i.label}`,{label:i.label}),children:i.label})},i.path))})]}),Qe(Fe,{direction:"row",wrap:"wrap",justify:"center",children:[$(E,{path:"/",replace:!0,children:$(Nt,{variant:Pt.DEFAULT,icon:qa,"aria-label":e("errors.notFound.goHome","Go to home page"),children:e("errors.notFound.goHome","Go Home")})}),$(Nt,{variant:Pt.OUTLINE,icon:Za,onClick:a,"aria-label":e("errors.notFound.goBack","Go back to previous page"),children:e("errors.notFound.goBack","Go Back")})]})]})})}import{useNavigate as xe,useBack as u1,useRefresh as p1,usePrefetch as m1,useLocation as f1,useParams as g1,useRouteParam as v1,useSearchParams as h1,useMatch as y1,useQueryParams as b1,useRedirectGuard as S1}from"@donotdev/ui/routing/hooks";import{getDndevConfig as Lt,isClient as me,isDev as _o}from"@donotdev/core";var G=class{static getBrowserSupport(){if(!me())return{svg:!0,webp:!1,avif:!1};let t=this.cache.get("browser-support");if(t)return t;let o={svg:!0,webp:!1,avif:!1};try{let r=document.createElement("canvas");r.width=1,r.height=1,o.webp=r.toDataURL("image/webp").indexOf("data:image/webp")===0}catch{o.webp=!1}try{let r=document.createElement("canvas");r.width=1,r.height=1,o.avif=r.toDataURL("image/avif").indexOf("data:image/avif")===0}catch{o.avif=!1}return this.cache.set("browser-support",o),o}static extractStringValues(t){let o=[];if(t==null)return o;if(typeof t=="string")o.push(t);else if(Array.isArray(t))for(let r of t)o.push(...this.extractStringValues(r));else if(typeof t=="object")for(let r of Object.values(t))o.push(...this.extractStringValues(r));return o}static assetExists(t){if(!me())return!1;let o=this.getAssetManifest();return o?this.extractStringValues(o).includes(t):!1}static getAssetManifest(){return me()&&Lt()?.assets?.mapping||null}static getLogoSvgContent(){return Lt()?.assets?.logoSvgContent||null}static resolveLogo(t){if(t)return t;let o="logo";if(this.cache.has(o))return this.cache.get(o);let n=this.getAssetManifest()?.logo?.optimal||"/logo.svg";return this.cache.set(o,n),n}static directAssetCheck(t){if(!me())return!1;try{let o=new Image;return o.src=t,!0}catch{return!1}}static resolveFaviconSet(){let t="favicon-set";if(this.cache.has(t))return this.cache.get(t);let o=this.getAssetManifest();if(o?.favicon?.set){let a=o.favicon.set,i=this.assetExists("/icon-512x512.png")?"/icon-512x512.png":this.assetExists("/icon-192x192.png")?"/icon-192x192.png":"/logo.svg",s={svg:a.svg||"/favicon.svg",ico:a.ico||"/favicon.ico",png16:a.png16||i,png32:a.png32||i,apple180:a.apple180||i,android192:a.android192||i,android512:a.android512||i};return this.cache.set(t,s),s}let r=this.assetExists("/icon-512x512.png")?"/icon-512x512.png":this.assetExists("/icon-192x192.png")?"/icon-192x192.png":"/logo.svg",n={svg:this.assetExists("/favicon.svg")?"/favicon.svg":"/logo.svg",ico:this.assetExists("/favicon.ico")?"/favicon.ico":"/favicon.svg",png16:this.assetExists("/favicon-16x16.png")?"/favicon-16x16.png":r,png32:this.assetExists("/favicon-32x32.png")?"/favicon-32x32.png":r,apple180:this.assetExists("/apple-touch-icon.png")?"/apple-touch-icon.png":r,android192:this.assetExists("/icon-192x192.png")?"/icon-192x192.png":r,android512:this.assetExists("/icon-512x512.png")?"/icon-512x512.png":r};return this.cache.set(t,n),n}static resolveFavicon(){let t=this.getAssetManifest();if(t?.favicon?.optimal)return t.favicon.optimal;let o=["/favicon.svg","/favicon.ico","/favicon.png","/logo.svg"];for(let r of o)if(this.assetExists(r))return r;return"/favicon.svg"}static clearCache(){this.cache.clear(),_o()&&me()}static getDebugInfo(){return{browserSupport:this.getBrowserSupport(),detectedAssets:me()?Lt()?.assets?.mapping:null,assetManifest:this.getAssetManifest(),cache:Object.fromEntries(this.cache)}}};Ge(G,"cache",new Map);function k1(e){return G.resolveLogo(e)}function T1(){return G.resolveFaviconSet()}_o()&&(G.clearCache(),me()&&window.addEventListener("DOMContentLoaded",()=>{G.clearCache()}));import*as ti from"@donotdev/crud";var Ho={forms:{},startSubmit:()=>{},setUploading:()=>{},setValidating:()=>{},setSubmitting:()=>{},setSuccess:()=>{},setError:()=>{},reset:()=>{},cleanup:()=>{},setIsDirty:(e,t)=>{},hasDirtyForms:()=>!1,getDirtyFormIds:()=>[],getStatus:()=>"idle",isLoading:()=>!1,getUploadProgress:()=>0,getError:()=>null,getIsDirty:()=>!1},we=ti?.useFormStore,I1=typeof we=="function";function oi(e){return we?we(e):e(Ho)}oi.getState=()=>we&&typeof we.getState=="function"?we.getState():Ho;import{useMemo as ri}from"react";function Xe(){let e=L("status"),t=L("isAvailable"),o=L("user");return ri(()=>({shouldHide:e!=="ready"||!t,isLoading:e==="initializing",isReady:e==="ready"&&t,isAuthenticated:!!o}),[e,t,o])}import*as ni from"@donotdev/billing";import{DEGRADED_BILLING_API as ai}from"@donotdev/core";var Dt=ni?.useStripeBilling;function ii(e){return ai[e]}function Ft(e,t){return Dt?Dt(e,t):ii(e)}var F1=typeof Dt=="function";function O1(){let e=L("user"),t=L("status"),o={user:e,status:t},r=Ft("status",o),n=Ft("isAvailable",o);return{shouldHide:!n,isLoading:r==="initializing",isReady:n&&r==="ready"}}import{DEGRADED_CRUD_API as si}from"@donotdev/core";import*as li from"@donotdev/crud";var Bt=li?.useCrud;function ci(){return si}function _1(e,t={}){return Bt?Bt(e,t):ci()}var H1=typeof Bt=="function";import{DEGRADED_OAUTH_API as di}from"@donotdev/core";import*as ui from"@donotdev/oauth";var Mt=ui?.useOAuth;function pi(e){return di[e]}function $1(e){return Mt?Mt(e):pi(e)}var K1=typeof Mt=="function";import{CheckCircle as mi}from"lucide-react";import{List as fi}from"@donotdev/components";import{translateArray as gi}from"@donotdev/core";import{jsx as Go}from"react/jsx-runtime";var vi=mi,hi=16;function Q1(e,t,o,r=vi,n=hi){let a=r;return Go(fi,{icon:a?Go(a,{size:n}):void 0,items:gi(e,t,o),style:{listStyle:"none",paddingInlineStart:0}})}var yi=/<script[\s\S]*?<\/script>/gi,bi=/<foreignObject[\s\S]*?<\/foreignObject>/gi,Si=/\s+on\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,Ci=/\s+(?:xlink:)?href\s*=\s*["']\s*javascript:[^"']*["']/gi,xi=/\s+(?:xlink:)?href\s*=\s*["']\s*data:(?!image\/(?:png|jpe?g|gif|webp|svg\+xml))[^"']*["']/gi;function ke(e){return e.replace(yi,"").replace(bi,"").replace(Si,"").replace(Ci,"").replace(xi,"")}import{Fragment as Gi,jsx as le,jsxs as Wi}from"react/jsx-runtime";var Ko=()=>null,_i=$o(async()=>{try{return{default:(await import("@donotdev/auth")).ReauthDialog}}catch{return{default:Ko}}}),Hi=$o(async()=>{try{return{default:(await import("@donotdev/auth")).ConfirmDeleteDialog}}catch{return{default:Ko}}}),Yo=()=>{let[e]=je.useState(!1),[t]=je.useState(!1),[o]=je.useState(!1),[r]=je.useState(null);return{showConfirmDialog:e,showPasswordDialog:t,isDeleting:o,error:r,startDeleteFlow:()=>{},confirmDelete:async()=>{},cancel:()=>{}}};Oi()&&import("@donotdev/auth").then(e=>{Yo=e.useDeleteAccount}).catch(e=>{});var et=e=>{if(!e)return Be;if(typeof e=="function")return e;let t=e.replace(/['"]/g,""),o=Ai[t];return o||Be},zt=({loginPath:e,display:t=Fi.AUTO,"no-tooltip":o=!1,customItems:r=[],className:n,style:a})=>{let{t:i}=Bi("dndev"),{shouldHide:s,isReady:c,isAuthenticated:d}=Xe(),l=zi(),u=L("user"),f=L("signOut"),p=Vi("isLaptop"),m=J(),v=Ui(),h=l.profilePath,g=l.authMenuItems||[],S=u?.role,w=Yo(),b=()=>u&&(u.displayName||u.email?.split("@")[0])||"User",I=()=>b().split(" ").map(x=>x.charAt(0)).slice(0,2).join("").toUpperCase(),T=()=>{if(!u)return i("auth.userMenu",{defaultValue:"User menu"});let C=[b()];return u.email&&C.push(u.email),S&&S!=="guest"&&C.push(`Role: ${S}`),C.join(`
|
|
4
|
-
`)},
|
|
5
|
-
${u.email}`:""}`}),disabled:!0}),h&&C.push({label:i("auth.profile",{defaultValue:"Profile"}),icon:wi,onClick:()=>v(h)}),g.forEach(x=>{let A=m.find(F=>F.path===x.path),k=x.label||A?.label||x.path.split("/").pop()||"Menu",R=x.icon?et(x.icon):A?.icon&&(typeof A.icon=="string"||typeof A.icon=="function")?et(A.icon):Be;C.push({label:k,icon:R,onClick:()=>v(x.path)})}),r.forEach(x=>{if(x.path){let A=m.find(F=>F.path===x.path),k=x.label||A?.label||x.path.split("/").pop()||"Menu",R=x.icon?et(x.icon):Be;C.push({label:k,icon:R,onClick:()=>v(x.path),disabled:x.disabled,style:x.style})}else if(x.onClick){let A=x.icon?et(x.icon):Be;C.push({label:x.label,icon:A,onClick:x.onClick,disabled:x.disabled,style:x.style})}}),C.push({label:i("auth.deleteAccount.label",{defaultValue:"Delete Account"}),icon:Ei,onClick:w.startDeleteFlow,variant:"destructive"}),C.push({label:i("auth.signOut",{defaultValue:"Sign Out"}),icon:ki,onClick:()=>f(),variant:"destructive"}),C},[h,g,r,f,w,i,m,p,u,S,b,v]);return Mi().length===0||s||!c||!d?null:Wi(Gi,{children:[le(Wo,{fallback:null,children:le(_i,{open:w.showPasswordDialog,isLoading:w.isDeleting,error:w.error,onReauth:C=>w.confirmDelete(C),onCancel:w.cancel})}),le(Wo,{fallback:null,children:le(Hi,{open:w.showConfirmDialog,isLoading:w.isDeleting,error:w.error,onConfirm:()=>w.confirmDelete(),onCancel:w.cancel})}),le(Li,{trigger:le(Pi,{variant:Ri.OUTLINE,icon:u?le(Ni,{src:u.photoURL??void 0,fallback:I(),alt:b(),style:{margin:"-4px 0"}}):Ti,display:t,"aria-label":i("auth.userMenu",{defaultValue:"User menu"}),tooltip:!o&&p&&u?T():o?void 0:i("auth.userMenu",{defaultValue:"User menu"}),className:n,style:a,children:b()}),items:N,contentAlign:"end"})]})};import{jsx as O}from"react/jsx-runtime";var Jo=()=>null;function tt({display:e,signInLabel:t,className:o,style:r,children:n,...a}){return O(Yi,{variant:qi.OUTLINE,icon:$i,display:e,tooltip:t,className:o,style:r,...a,children:n??t})}var ts=Zo(async()=>{try{return{default:(await import("@donotdev/auth")).AuthPartnerButton}}catch{return{default:Jo}}}),qo=Zo(async()=>{try{return{default:(await import("@donotdev/auth")).MultipleAuthProviders}}catch{return{default:Jo}}}),Vt=({display:e=Qi.AUTO,className:t,style:o})=>{let{t:r}=Xi("dndev"),{shouldHide:n,isLoading:a,isReady:i,isAuthenticated:s}=Xe(),c=ji(),d=es(),[l,u]=Ki(!1),f=c.loginPath,p=r("auth.signIn",{defaultValue:"Sign In"}),m=r("auth.loading",{defaultValue:"Loading..."}),v=d.includes("password")||d.includes("emailLink");if(n||!i)return null;if(!s){if(f!==void 0)return O(E,{path:f,prefetch:!0,children:O(tt,{display:e,signInLabel:p,className:t,style:o})});let h=d[0];return v?O(Ji,{trigger:O(tt,{display:e,signInLabel:p,className:t,style:o}),title:p,open:l,onOpenChange:u,"data-content-size":"form",children:O(Ot,{fallback:O("div",{style:{padding:"var(--gap-md)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:m}),children:O(qo,{spacing:"medium",onSuccess:()=>u(!1)})})}):d.length>1?O(Zi,{trigger:O(tt,{display:e,signInLabel:p,className:t,style:o}),children:O(Ot,{fallback:O("div",{style:{padding:"var(--gap-md)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:m}),children:O(qo,{spacing:"tight"})})}):O(Ot,{fallback:O(tt,{display:e,signInLabel:p,className:t,style:o,disabled:a,tooltip:a?m:p,children:a?m:p}),children:O(ts,{partnerId:h,display:e,className:t,style:o})})}return O(zt,{display:e,loginPath:f,className:t,style:o})};import{AlertCircle as os,RefreshCw as rs,Mail as ns,Cookie as as}from"lucide-react";import{Card as is,Button as Ut,BUTTON_VARIANT as _t,Stack as Qo}from"@donotdev/components";import{useTranslation as ss}from"@donotdev/core";import{jsx as Me,jsxs as ot}from"react/jsx-runtime";function ls({featureName:e,title:t,description:o,showReviewCookies:r=!1,showContactSupport:n=!0,showRetry:a=!1,supportEmail:i="support@example.com",onRetry:s,onReviewCookies:c,customActions:d,className:l=""}){let{t:u}=ss("ui"),f=o||u("featureDisabled.description","{featureName} is not available. This may be due to missing configuration or disabled features.",{featureName:e}),p=()=>{if(c)c();else{let v=new CustomEvent("openCookieConsent");window.dispatchEvent(v)}},m=()=>{window.location.href=`mailto:${i}?subject=${encodeURIComponent(`Feature Unavailable: ${e}`)}&body=${encodeURIComponent(`I'm experiencing an issue with ${e} not being available.`)}`};return ot(is,{className:l,title:ot(Qo,{direction:"row",align:"center",gap:"tight",children:[Me(os,{className:"dndev-size-md",style:{color:"var(--destructive)"}}),t||e]}),subtitle:f,children:[" ",ot("div",{style:{display:"grid",gap:"var(--gap-md)"},children:[(r||n||a||d)&&ot(Qo,{direction:"row",wrap:"wrap",gap:"tight",children:[r&&Me(Ut,{variant:_t.OUTLINE,onClick:p,icon:as,children:u("featureDisabled.reviewCookies","Review Cookies")}),n&&Me(Ut,{variant:_t.OUTLINE,onClick:m,icon:ns,children:u("featureDisabled.contactSupport","Contact Support")}),a&&Me(Ut,{variant:_t.OUTLINE,onClick:s,icon:rs,children:u("featureDisabled.retry","Retry")}),d]}),Me("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:u("featureDisabled.helpText","If you believe this is an error, please contact support or try refreshing the page.")})]})]})}var cs=ls;import{Lock as rt,Shield as Xo}from"lucide-react";import{useEffect as Ht,useRef as jo,useCallback as ds}from"react";import{Portal as us,Spinner as ps,Stack as ms,Text as ze,Button as fs}from"@donotdev/components";import{useTranslation as gs,useOverlay as re}from"@donotdev/core";import{jsx as Q,jsxs as tr}from"react/jsx-runtime";var er={connecting:0,preparing:2e3,redirecting:5e3},vs=1e4;function hs(e,t){return t==="none"?null:t==="shield"?Xo:t==="lock"?rt:e?e.startsWith("stripe-")||e.includes("payment")||e.includes("checkout")?rt:e.startsWith("oauth-")||e.startsWith("auth-")?Xo:rt:rt}function ys(e){return e||"default"}function bs(){let{t:e}=gs("dndev"),t=re("isRedirectOverlayOpen"),o=re("redirectOperation"),r=re("redirectPhase"),n=re("showCancelButton"),a=re("redirectConfig"),i=re("redirectStartTime"),s=re("setRedirectPhase"),c=re("setShowCancelButton"),d=re("hideRedirectOverlay"),l=jo([]),u=jo(null),f=ds(()=>{d()},[d]);if(Ht(()=>{if(!t||!i)return;let b=a?.cancelTimeout??vs,I=Date.now()-i;l.current.forEach(clearTimeout),l.current=[],u.current&&(clearTimeout(u.current),u.current=null);let T=(y,C)=>{let x=Math.max(0,C-I);if(x>0){let A=setTimeout(()=>{s(y)},x);l.current.push(A)}else s(y)};T("preparing",er.preparing),T("redirecting",er.redirecting);let N=Math.max(0,b-I);return u.current=setTimeout(()=>{c(!0),s("timeout")},N),()=>{l.current.forEach(clearTimeout),l.current=[],u.current&&(clearTimeout(u.current),u.current=null)}},[t,i,a?.cancelTimeout,s,c]),Ht(()=>{if(!t)return;let b=()=>{d()};return window.addEventListener("popstate",b),()=>window.removeEventListener("popstate",b)},[t,d]),Ht(()=>{if(!t)return;let b=()=>{};return document.addEventListener("visibilitychange",b),()=>document.removeEventListener("visibilitychange",b)},[t]),!t)return null;let p=ys(o),m=a?.title??e(`redirectOverlay.${p}.title`,{defaultValue:e("redirectOverlay.default.title")}),v=a?.message??e(`redirectOverlay.${p}.message`,{defaultValue:e("redirectOverlay.default.message")}),h=a?.subtitle??e(`redirectOverlay.${p}.subtitle`,{defaultValue:e("redirectOverlay.default.subtitle")}),g=e(`redirectOverlay.${p}.ariaLabel`,{defaultValue:e("redirectOverlay.default.ariaLabel")}),S=e(`redirectOverlay.phases.${r}`),w=hs(o,a?.icon);return Q(us,{children:Q("div",{className:"dndev-spinner-overlay",role:"status","aria-busy":"true","aria-label":g,style:{zIndex:"var(--z-overlay, 9999)"},children:tr("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"var(--gap-md)",textAlign:"center",maxWidth:"400px",padding:"var(--gap-lg)"},children:[tr(ms,{direction:"row",align:"center",children:[w&&Q(w,{style:{width:"1.5rem",height:"1.5rem",color:"var(--primary)"},"aria-hidden":"true"}),Q(ps,{variant:"primary"})]}),Q(ze,{as:"h3",style:{color:"var(--foreground)",margin:0},children:m}),Q(ze,{variant:"muted",style:{color:"var(--foreground)",minHeight:"1.5em"},children:S}),Q(ze,{variant:"muted",level:"small",style:{opacity:.8},children:v}),Q(ze,{variant:"muted",level:"small",style:{opacity:.6},children:h}),Q(ze,{variant:"muted",level:"small",style:{opacity:.5,marginTop:"var(--gap-sm)"},children:e("redirectOverlay.doNotRefresh")}),n&&Q(fs,{variant:"ghost",onClick:f,style:{marginTop:"var(--gap-md)"},children:e("redirectOverlay.cancel")})]})})})}import{useEffect as Gt,useState as or}from"react";import{cn as Ss}from"@donotdev/components";import{jsx as rr}from"react/jsx-runtime";var Cs=({isActive:e=!1,progress:t,useFakeProgress:o=!0,duration:r=2e3,className:n,show:a=!0})=>{let[i,s]=or(0),[c,d]=or(!1);Gt(()=>{if(!e||!o||t!==void 0)return;d(!0),s(0);let u=Date.now(),f=setInterval(()=>{let p=Date.now()-u,m=Math.min(p/r*90,90);s(m)},16);return()=>{clearInterval(f)}},[e,o,t,r]),Gt(()=>{t!==void 0&&d(t>0&&t<100)},[t]),Gt(()=>{if(!e){let u=setTimeout(()=>{d(!1),s(0)},300);return()=>clearTimeout(u)}},[e]);let l=t??i;return!a||!c?null:rr("div",{className:Ss(n),style:{position:"fixed",insetInlineStart:0,insetInlineEnd:0,zIndex:9999,height:"4px",backgroundColor:"transparent",top:"var(--header-height, 0px)"},role:"progressbar","aria-valuenow":Math.round(l),"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Page loading progress",children:rr("div",{style:{height:"100%",width:`${l}%`,background:"linear-gradient(to right, var(--primary), color-mix(in srgb, var(--primary) 80%, transparent), color-mix(in srgb, var(--primary) 60%, transparent))",transition:e?"width 0.3s ease-out":"width 0.2s ease-in",boxShadow:"var(--shadow-sm)"}})})},xs=Cs;import{cn as nt,Stack as ws}from"@donotdev/components";import{jsx as Oe,jsxs as $m}from"react/jsx-runtime";var ks=({variant:e="text",width:t,height:o,lines:r=1,show:n=!0,className:a,animation:i="pulse",style:s})=>{if(!n)return null;let c={backgroundColor:"var(--muted)",opacity:"var(--opacity-muted)",borderRadius:"var(--radius)",animation:i==="pulse"||i==="wave"?"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite":"none",...i==="wave"&&{background:"linear-gradient(to right, color-mix(in srgb, var(--muted) 50%, transparent), color-mix(in srgb, var(--muted) 30%, transparent), color-mix(in srgb, var(--muted) 50%, transparent))"}},d=()=>{let l={};return t&&(l.width=typeof t=="number"?`${t}px`:t),o&&(l.height=typeof o=="number"?`${o}px`:o),l};return e==="text"?Oe(ws,{gap:"tight",children:Array.from({length:r}).map((l,u)=>Oe("div",{className:nt("dndev-skeleton",a),style:{...c,height:"var(--gap-md)",width:u===r-1?"75%":"100%",...d(),...s}},u))}):e==="circular"?Oe("div",{className:nt("dndev-skeleton",a),style:{...c,borderRadius:"var(--radius-full)",width:t||o||"40px",height:o||t||"40px",...d(),...s}}):e==="rectangular"?Oe("div",{className:nt("dndev-skeleton",a),style:{...c,width:t||"100%",height:o||"200px",...d(),...s}}):Oe("div",{className:nt("dndev-skeleton",a),style:{...c,borderRadius:"var(--radius-lg)",width:t||"100%",height:o||"20px",...d(),...s}})};var Ts=ks;import{Card as Es,IconBox as As,Stack as Is,Text as Wt,renderCardContent as Ns}from"@donotdev/components";import{jsx as X,jsxs as nr}from"react/jsx-runtime";var Ps=({icon:e,title:t,subtitle:o,content:r,href:n,variant:a,elevated:i,onClick:s,className:c,footer:d,style:l,clickable:u,...f})=>{let p=Ns(r),h=`calc(var(--font-size-lg) * var(--line-height) * 2 + var(--gap-md)) calc(var(--font-size-base) * var(--line-height) * 2 + var(--gap-md)) 1fr${d?" auto":""}`,g={display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-word",lineHeight:"var(--line-height)"},S={...g,fontSize:"var(--font-size-lg)",fontWeight:600,color:"inherit",margin:0,textAlign:"start",flex:1,minWidth:0},w={...g,fontSize:"var(--font-size-base)",fontWeight:600,color:"var(--muted-foreground)",margin:0},b=e?nr(Is,{direction:"row",align:"center",style:{width:"100%"},children:[X(As,{icon:e}),X(Wt,{as:"div",level:"h3",style:S,children:t})]}):X(Wt,{as:"div",level:"h3",style:S,children:t}),I=X(Es,{variant:a,elevated:i,onClick:s,className:c,"data-clickable":n||s||u?"true":void 0,style:{paddingInlineStart:"var(--gap-md)",paddingInlineEnd:"var(--gap-md)",gap:"var(--gap-md)",height:"100%",textAlign:"start",...l},...f,children:nr("div",{style:{display:"grid",gridTemplateRows:h,gap:"var(--gap-md)",width:"100%"},children:[X("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:b}),X("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start"},children:X(Wt,{as:"div",level:"body",style:w,children:o})}),X("div",{children:p}),d&&X("div",{children:d})]})});return n&&!s?X(E,{path:n,style:{display:"block",textDecoration:"none",height:"100%"},"aria-label":t?`Learn more about ${t}`:void 0,children:I}):I},Rs=Ps;import{useState as Gs}from"react";import{Bento as Ws,Card as $s,Section as Ks,Stack as Ys,Text as qs,TONE as Zs,cn as Js}from"@donotdev/components";var Ls='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#3178C6" d="M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"/></svg>',Ds='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#61DAFB" d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></svg>',Fs='<svg role="img" viewBox="0 0 410 404" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="vite-a" x1="6" y1="33" x2="235" y2="344" gradientUnits="userSpaceOnUse"><stop stop-color="#41D1FF"/><stop offset="1" stop-color="#BD34FE"/></linearGradient><linearGradient id="vite-b" x1="195" y1="9" x2="236" y2="293" gradientUnits="userSpaceOnUse"><stop stop-color="#FFEA83"/><stop offset=".08" stop-color="#FFDD35"/><stop offset="1" stop-color="#FFA800"/></linearGradient></defs><path fill="url(#vite-a)" d="M399.641 59.525 215.643 388.545c-3.799 6.793-13.559 6.833-17.415.073L10.582 59.556c-4.201-7.366 2.098-16.29 10.446-14.797l184.195 32.923c1.175.21 2.378.208 3.553-.006l180.343-32.87c8.32-1.517 14.649 7.337 10.522 14.72z"/><path fill="url(#vite-b)" d="M292.965 1.574 156.801 28.255c-2.238.439-3.895 2.335-4.03 4.611l-8.376 141.465c-.197 3.332 2.863 5.918 6.115 5.168l37.91-8.749c3.547-.818 6.752 2.306 6.023 5.873l-11.263 55.153c-.758 3.712 2.727 6.886 6.352 5.785l23.415-7.114c3.63-1.102 7.118 2.081 6.35 5.796l-17.899 86.633c-1.12 5.42 6.088 8.374 9.094 3.728l2.008-3.103 110.954-221.428c1.858-3.707-1.346-7.935-5.418-7.15l-39.022 7.532c-3.667.707-6.787-2.708-5.752-6.296l25.469-88.291c1.036-3.594-2.095-6.612-5.764-5.891z"/></svg>',Bs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M18.665 21.978C16.758 23.255 14.465 24 12 24 5.377 24 0 18.623 0 12S5.377 0 12 0s12 5.377 12 12c0 3.583-1.574 6.801-4.067 9.001L9.219 7.2H7.2v9.596h1.615V9.251l9.85 12.727Zm-3.332-8.533 1.6 2.061V7.2h-1.6v6.245Z"/></svg>',Ms='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#339933" d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></svg>',zs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#DD2C00" d="M19.455 8.369c-.538-.748-1.778-2.285-3.681-4.569-.826-.991-1.535-1.832-1.884-2.245a146 146 0 0 0-.488-.576l-.207-.245-.113-.133-.022-.032-.01-.005L12.57 0l-.609.488c-1.555 1.246-2.828 2.851-3.681 4.64-.523 1.064-.864 2.105-1.043 3.176-.047.241-.088.489-.121.738-.209-.017-.421-.028-.632-.033-.018-.001-.035-.002-.059-.003a7.46 7.46 0 0 0-2.28.274l-.317.089-.163.286c-.765 1.342-1.198 2.869-1.252 4.416-.07 2.01.477 3.954 1.583 5.625 1.082 1.633 2.61 2.882 4.42 3.611l.236.095.071.025.003-.001a9.59 9.59 0 0 0 2.941.568q.171.006.342.006c1.273 0 2.513-.249 3.69-.742l.008.004.313-.145a9.63 9.63 0 0 0 3.927-3.335c1.01-1.49 1.577-3.234 1.641-5.042.075-2.161-.643-4.304-2.133-6.371m-7.083 6.695c.328 1.244.264 2.44-.191 3.558-1.135-1.12-1.967-2.352-2.475-3.665-.543-1.404-.87-2.74-.974-3.975.48.157.922.366 1.315.622 1.132.737 1.914 1.902 2.325 3.461zm.207 6.022c.482.368.99.712 1.513 1.028-.771.21-1.565.302-2.369.273a8 8 0 0 1-.373-.022c.458-.394.869-.823 1.228-1.279zm1.347-6.431c-.516-1.957-1.527-3.437-3.002-4.398-.647-.421-1.385-.741-2.194-.95.011-.134.026-.268.043-.4.014-.113.03-.216.046-.313.133-.689.332-1.37.589-2.025.099-.25.206-.499.321-.74l.004-.008c.177-.358.376-.719.61-1.105l.092-.152-.003-.001c.544-.851 1.197-1.627 1.942-2.311l.288.341c.672.796 1.304 1.548 1.878 2.237 1.291 1.549 2.966 3.583 3.612 4.48 1.277 1.771 1.893 3.579 1.83 5.375-.049 1.395-.461 2.755-1.195 3.933-.694 1.116-1.661 2.05-2.8 2.708-.636-.318-1.559-.839-2.539-1.599.79-1.575.952-3.28.479-5.072zm-2.575 5.397c-.725.939-1.587 1.55-2.09 1.856-.081-.029-.163-.06-.243-.093l-.065-.026c-1.49-.616-2.747-1.656-3.635-3.01-.907-1.384-1.356-2.993-1.298-4.653.041-1.19.338-2.327.882-3.379.316-.07.638-.114.96-.131l.084-.002c.162-.003.324-.003.478 0 .227.011.454.035.677.07.073 1.513.445 3.145 1.105 4.852.637 1.644 1.694 3.162 3.144 4.515z"/></svg>',Os='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="m12 1.608 12 20.784H0Z"/></svg>',Vs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#635BFF" d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"/></svg>',Us='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><defs><linearGradient id="vb-a" x1="0.414" y1="0.255" x2="0" y2="0.932" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#eab308"/><stop offset="1" stop-color="#ca8a04"/></linearGradient><linearGradient id="vb-b" x1="0.338" y1="0.02" x2="0.664" y2="0.966" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#fde68a"/><stop offset="1" stop-color="#fbbf24"/></linearGradient><linearGradient id="vb-c" y1="0.5" x2="1" y2="0.5" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#7dd3fc"/><stop offset="1" stop-color="#0ea5e9"/></linearGradient></defs><g transform="translate(-2056 -1899)"><path d="M742.271,987.024c-66.706,0-119.121,54.673-121.874,126.408l-2.551,95.471c-3.967,78.653,71.961,105.52,126.936,105.52Z" transform="translate(1463.458 1004.277)" fill="url(#vb-a)"/><path d="M92.616.01H319.894c54.53-.8,95.624,40.1,98.381,93.335l6.144,135.76c.732,67.368-48.116,94.95-104.525,95.335L92.616,327.374C34.061,327.8-1.063,283.663.022,229.105l3.8-135.76C7.41,33.54,33.3,1.093,92.616.01Z" transform="translate(2118.42 1991.302)" fill="url(#vb-b)"/><path d="M86.844.009H299.958c51.132-.746,89.665,37.307,92.25,86.824l5.761,126.29c.686,62.669-45.117,88.326-98.011,88.685L86.844,304.537C31.938,304.933-1,263.875.02,213.123L3.58,86.834C6.948,31.2,31.222,1.016,86.844.009Z" transform="translate(2136.977 2001.737)" fill="#111827"/><circle cx="27.626" cy="27.626" r="27.626" transform="translate(2421.148 2104.357)" fill="url(#vb-c)"/><circle cx="27.626" cy="27.626" r="27.626" transform="translate(2208.034 2104.357)" fill="url(#vb-c)"/></g></svg>',_s='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#3FCF8E" d="M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"/></svg>',Hs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#FBF0DF" d="M12 22.596c6.628 0 12-4.338 12-9.688 0-3.318-2.057-6.248-5.219-7.986-1.286-.715-2.297-1.357-3.139-1.89C14.058 2.025 13.08 1.404 12 1.404c-1.097 0-2.334.785-3.966 1.821a49.92 49.92 0 0 1-2.816 1.697C2.057 6.66 0 9.59 0 12.908c0 5.35 5.372 9.687 12 9.687v.001ZM10.599 4.715c.334-.759.503-1.58.498-2.409 0-.145.202-.187.23-.029.658 2.783-.902 4.162-2.057 4.624-.124.048-.199-.121-.103-.209a5.763 5.763 0 0 0 1.432-1.977Zm2.058-.102a5.82 5.82 0 0 0-.782-2.306v-.016c-.069-.123.086-.263.185-.172 1.962 2.111 1.307 4.067.556 5.051-.082.103-.23-.003-.189-.126a5.85 5.85 0 0 0 .23-2.431Zm1.776-.561a5.727 5.727 0 0 0-1.612-1.806v-.014c-.112-.085-.024-.274.114-.218 2.595 1.087 2.774 3.18 2.459 4.407a.116.116 0 0 1-.049.071.11.11 0 0 1-.153-.026.122.122 0 0 1-.022-.083a5.891 5.891 0 0 0-.737-2.331Zm-5.087.561c-.617.546-1.282.76-2.063 1-.117 0-.195-.078-.156-.181 1.752-.909 2.376-1.649 2.999-2.778 0 0 .155-.118.188.085 0 .304-.349 1.329-.968 1.874Zm4.945 11.237a2.957 2.957 0 0 1-.937 1.553c-.346.346-.8.565-1.286.62a2.178 2.178 0 0 1-1.327-.62 2.955 2.955 0 0 1-.925-1.553.244.244 0 0 1 .064-.198.234.234 0 0 1 .193-.069h3.965a.226.226 0 0 1 .19.07c.05.053.073.125.063.197Zm-5.458-2.176a1.862 1.862 0 0 1-2.384-.245 1.98 1.98 0 0 1-.233-2.447c.207-.319.503-.566.848-.713a1.84 1.84 0 0 1 1.092-.11c.366.075.703.261.967.531a1.98 1.98 0 0 1 .408 2.114 1.931 1.931 0 0 1-.698.869v.001Zm8.495.005a1.86 1.86 0 0 1-2.381-.253 1.964 1.964 0 0 1-.547-1.366c0-.384.11-.76.32-1.079.207-.319.503-.567.849-.713a1.844 1.844 0 0 1 1.093-.108c.367.076.704.262.968.534a1.98 1.98 0 0 1 .4 2.117 1.932 1.932 0 0 1-.702.868Z"/></svg>',$t={bun:{svg:`data:image/svg+xml,${encodeURIComponent(Hs)}`,color:"#FBF0DF",name:"Bun"},typescript:{svg:`data:image/svg+xml,${encodeURIComponent(Ls)}`,color:"#3178C6",name:"TypeScript"},react:{svg:`data:image/svg+xml,${encodeURIComponent(Ds)}`,color:"#61DAFB",name:"React"},vite:{svg:`data:image/svg+xml,${encodeURIComponent(Fs)}`,color:"#BD34FE",name:"Vite"},nextjs:{svg:`data:image/svg+xml,${encodeURIComponent(Bs)}`,color:"var(--foreground, #000000)",name:"Next.js"},nodejs:{svg:`data:image/svg+xml,${encodeURIComponent(Ms)}`,color:"#339933",name:"Node.js"},firebase:{svg:`data:image/svg+xml,${encodeURIComponent(zs)}`,color:"#DD2C00",name:"Firebase"},supabase:{svg:`data:image/svg+xml,${encodeURIComponent(_s)}`,color:"#3FCF8E",name:"Supabase"},vercel:{svg:`data:image/svg+xml,${encodeURIComponent(Os)}`,color:"var(--foreground, #000000)",name:"Vercel"},stripe:{svg:`data:image/svg+xml,${encodeURIComponent(Vs)}`,color:"#635BFF",name:"Stripe"},valibot:{svg:`data:image/svg+xml,${encodeURIComponent(Us)}`,color:"#FBBF24",name:"Valibot"}};import{jsx as fe,jsxs as el}from"react/jsx-runtime";function Qs({techKey:e,variant:t}){let o=$t[e],[r,n]=Gs(!1);if(!o)return null;let a=decodeURIComponent(o.svg.replace("data:image/svg+xml,","")),i=ke(a);return fe($s,{variant:t,className:"dndev-tech-card",style:{"--tech-color":o.color},"data-hover":r,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:el(Ys,{direction:"column",align:"center",gap:"tight",children:[fe("div",{className:"dndev-tech-card-logo","data-tech":e,dangerouslySetInnerHTML:{__html:i}}),fe(qs,{as:"span",level:"small",children:o.name})]})})}function Xs({title:e,techs:t,cols:o=3,columns:r,gap:n="medium",separator:a=!1,tone:i=Zs.GHOST,align:s,collapsible:c,open:d,onOpenChange:l,defaultOpen:u,className:f}){let p=r||(typeof o=="number"?{mobile:o,tablet:o,desktop:o,wide:o}:{mobile:o[0],tablet:o[1],desktop:o[2],wide:o[3]}),m=g=>{if(g==="long")return{cols:2,rows:1};if(g==="high")return{cols:1,rows:2};if(g==="huge")return{cols:2,rows:2}},v=t.filter(g=>$t[g.name]).map(g=>({id:g.name,content:fe(Qs,{techKey:g.name,variant:g.variant}),span:m(g.size)})),h=fe(Ws,{items:v,columns:p,gap:n,ariaLabel:"Technology stack"});return fe(Ks,{title:e,separator:a,tone:i,align:s,collapsible:c,open:d,onOpenChange:l,defaultOpen:u,className:Js("dndev-tech-bento",f),children:fe("div",{className:"dndev-tech-bento-grid",children:h})})}var js=Xs;import{Suspense as tl,lazy as ol}from"react";import{useConsent as ar}from"@donotdev/core";import{jsx as ir}from"react/jsx-runtime";var rl=ol(()=>import("./CookieConsent-UVTR7CWW.js"));function gf(){let e=ar("hasConsented"),t=ar("showBanner");return e&&!t?null:ir(tl,{fallback:null,children:ir(rl,{})})}import{Button as sr,ScrollArea as nl}from"@donotdev/components";import{cn as lr}from"@donotdev/components";import{jsx as ne,jsxs as al}from"react/jsx-runtime";function Sf({content:e,cta:t,align:o="center",justify:r="center",disableScrollArea:n=!1,contentVariant:a="narrow",contentClassName:i,ctaClassName:s}){let d=a==="narrow"?a==="narrow"&&ne("div",{className:"dndev-game-container__content-narrow",children:e}):e,l=n?ne("div",{style:{overflow:"auto",overscrollBehavior:"contain",height:"100%"},children:d}):ne(nl,{className:"dndev-game-container__scroll",children:d});return al("div",{className:"dndev-game-container",children:[ne("div",{className:lr("dndev-game-container__content",i),"data-align":o,"data-justify":r,"data-content-variant":a,children:ne("div",{className:"dndev-game-container__scroll-wrapper",children:l})}),t&&ne("div",{className:lr("dndev-game-container__cta",s),children:Array.isArray(t)?ne("div",{className:"dndev-game-container__cta-buttons",children:t.map((u,f)=>ne(sr,{onClick:u.onClick,disabled:u.disabled??!1,variant:u.variant??"default",className:"dndev-game-container__cta-button",fullWidth:!0,children:u.label},f))}):ne(sr,{onClick:t.onClick,disabled:t.disabled??!1,variant:t.variant??"default",className:"dndev-game-container__cta-button",children:t.label})})]})}import{useEffect as il,Suspense as sl,lazy as ll}from"react";import{jsx as Kt}from"react/jsx-runtime";var cr=new Set,dr=new Map;function cl(e,t){let o=dr.get(e);if(o)return o;let r=t[e];if(!r)return null;let n=ll(r);return dr.set(e,n),n}function kf({screenRegistry:e,currentScreen:t,nextScreen:o,fallback:r=null}){il(()=>{if(o&&!cr.has(o)){cr.add(o);let a=e[o];a&&a().catch(()=>{})}},[o,e]);let n=t?cl(t,e):null;return!t||!n?null:Kt("div",{style:{height:"100%"},children:Kt(sl,{fallback:r,children:Kt(n,{})})})}import{cn as dl,DISPLAY as Yt}from"@donotdev/components";import{useAppConfig as ur}from"@donotdev/core";import{jsx as at,jsxs as ml}from"react/jsx-runtime";var ul=({display:e=Yt.AUTO,linkToHome:t=!0,className:o})=>{let r=ur("name"),a=ur("shortName")||r||"App",i=G.getLogoSvgContent(),s=G.resolveLogo(),c=e===Yt.FULL||e===Yt.AUTO,d=i?at("div",{className:"app-branding-logo",role:"img","aria-label":a,dangerouslySetInnerHTML:{__html:ke(i)}}):G.assetExists(s)?at("img",{src:s,alt:a,className:"app-branding-logo"}):null,l=c&&at("span",{className:"app-branding-title","data-display":e,children:a}),u=ml("div",{className:dl("app-branding",o),"data-display":e,children:[d,l]});return t?at(E,{path:"/",className:"app-branding-link",children:u}):u},pl=ul;import{cn as pr}from"@donotdev/components";import{useAppConfig as mr}from"@donotdev/core";import{jsx as gr}from"react/jsx-runtime";var fr={sm:{width:"var(--icon-md)",height:"var(--icon-md)"},md:{width:"var(--icon-touch)",height:"var(--icon-touch)"},lg:{width:"var(--icon-touch)",height:"var(--icon-touch)"},xl:{width:"var(--touch-target)",height:"var(--touch-target)"},header:{height:"var(--icon-touch)",width:"auto"}},fl=({alt:e,size:t="header",className:o})=>{let r=mr("name"),n=mr("shortName"),a=e||r||n||"App",i=G.getLogoSvgContent(),s=G.resolveLogo(),c=typeof t=="string"&&t in fr?fr[t]:typeof t=="string"?{}:{width:t,height:t};return i?gr("div",{className:pr("app-icon-header",o),style:{display:"inline-flex",...c},role:"img","aria-label":a,dangerouslySetInnerHTML:{__html:ke(i)}}):gr("img",{src:s,alt:a,className:pr(o),style:{objectFit:"contain",...c}})},gl=fl;import{cn as vr}from"@donotdev/components";import{useAppConfig as hr,useBreakpoint as vl}from"@donotdev/core";import{jsx as yr}from"react/jsx-runtime";var hl=({title:e,className:t,linkToHome:o=!0})=>{let r=vl("isMobileOrTablet"),n=hr("name"),a=hr("shortName"),i=e||r&&a||n||"App",s=yr("div",{className:vr("dndev-text-base",t),style:{fontSize:"var(--font-size-xl)",fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:i});return o?yr(E,{path:"/",className:vr("dndev-inline-block",t),children:s}):s},yl=hl;import{ChevronRight as kl}from"lucide-react";import{useMemo as Tl}from"react";import{cn as El}from"@donotdev/components";import{useTranslation as Al}from"@donotdev/core";import{useLocation as Il}from"@donotdev/ui/routing/hooks";import{useMemo as br}from"react";import{useNavigationStore as Yf,getRoutes as bl,getRouteManifest as qf}from"@donotdev/core";function Sl(){return br(()=>{try{let e=bl();return!e||e.length===0?[]:Cl(e)}catch{return[]}},[])}function Sr(){let e=Sl();return br(()=>e.flatMap(t=>t.routes),[e])}function Cl(e){let t=new Map;return e.forEach(o=>{let r=typeof o.path=="string"?o.path:String(o.path);if(!r||r==="undefined"||r==="null")return;let n=o.meta?.entity||xl(r)||"other",a={path:r,label:o.meta?.title||wl(r),icon:o.meta?.icon,component:o.component,importPath:o.importPath,exportName:o.exportName,auth:o.auth,meta:o.meta};t.has(n)||t.set(n,{label:n.charAt(0).toUpperCase()+n.slice(1),routes:[]}),t.get(n)?.routes.push(a)}),Array.from(t.values())}function xl(e){return e.split("/").filter(Boolean)[0]||null}function wl(e){let t=e.split("/").filter(Boolean),o=t[t.length-1];return o?o.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "):"Home"}import{jsx as Ve,jsxs as Rl}from"react/jsx-runtime";var Nl=({items:e,separator:t=kl,showHome:o=!0,homeHref:r="/",variant:n="default",className:a})=>{let{t:i}=Al("dndev"),s=Il(),c=Sr(),d=Tl(()=>new Set(c.map(f=>f.path)),[c]),l=e||(()=>{let f=s.pathname.split("/").filter(Boolean),p=[],m="";return f.forEach(v=>{m+=`/${v}`;let h=v.split("-").map(S=>S.charAt(0).toUpperCase()+S.slice(1)).join(" "),g=d.has(m)?m:void 0;p.push({label:h,href:g})}),p})(),u=o?[{label:i("navigation.home","Home"),href:r},...l]:l;return n==="smart"&&s.pathname.split("/").filter(Boolean).length<2?null:Ve("nav",{role:"navigation","aria-label":"Breadcrumb navigation",className:El("breadcrumbs",a),children:u.map((f,p)=>{let v=p===u.length-1||!f.href;return Rl("span",{className:"breadcrumb-item",children:[p>0&&Ve(t,{className:"dndev-size-md separator"}),f.icon&&Ve(f.icon,{className:"dndev-size-md icon"}),f.href&&!v?Ve(E,{path:f.href,className:"breadcrumb-link",children:f.label}):Ve("span",{className:"breadcrumb-label",children:f.label})]},p)})})},Pl=Nl;import{useTranslation as Ll,maybeTranslate as Cr,useLayout as qt,useAppConfig as Dl}from"@donotdev/core";import{jsx as Te,jsxs as Bl}from"react/jsx-runtime";var Fl=({asLink:e=!1,className:t})=>{let o=Dl("app"),r=qt("gameTitle"),n=qt("gameSubtitle"),a=qt("gameNamespace"),{t:i}=Ll(a||"dndev"),s=Cr(i,r??void 0),c=Cr(i,n??void 0),d=o?.name||"Game";if(s)return Te("div",{className:t,children:Bl("div",{style:{textAlign:"center"},children:[Te("h2",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s}),c&&Te("p",{style:{color:"var(--muted-foreground)",fontSize:"var(--font-size-sm)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c})]})});let l=Te("h2",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d});return e?Te(E,{path:"/",className:t,style:{fontSize:"var(--font-size-2xl)",fontWeight:700,transition:"color var(--dur-fast) ease-out"},onMouseEnter:u=>u.currentTarget.style.color="var(--primary)",onMouseLeave:u=>u.currentTarget.style.color="var(--foreground)",children:d}):Te("div",{className:t,children:l})};import{Trash2 as Ml}from"lucide-react";import{useState as xr}from"react";import{Button as zl,BUTTON_VARIANT as Ol,Checkbox as Vl,Stack as Zt,useToast as Ul}from"@donotdev/components";import{useTranslation as _l}from"@donotdev/core";import{useRefresh as Hl}from"@donotdev/ui/routing/hooks";import{jsx as it,jsxs as wr}from"react/jsx-runtime";function Gl(){let{t:e}=_l("dndev"),{toast:t}=Ul(),[o,r]=xr(!1),n=Hl(),[a,i]=xr({localStorage:!0,sessionStorage:!0,applicationCache:!0,serviceWorker:!0,cookies:!0,indexedDB:!0,webSQL:!0,memoryCache:!0}),s=async()=>{try{r(!0);let c=[];if(a.localStorage&&typeof window<"u")try{localStorage.clear(),c.push("localStorage")}catch{}if(a.sessionStorage&&typeof window<"u")try{sessionStorage.clear(),c.push("sessionStorage")}catch{}if(a.indexedDB&&typeof window<"u"&&"indexedDB"in window)try{if("databases"in indexedDB){let l=await indexedDB.databases();await Promise.all(l.map(async u=>{if(u.name){let f=indexedDB.deleteDatabase(u.name);await new Promise((p,m)=>{f.onsuccess=()=>p(void 0),f.onerror=()=>m(f.error)})}}))}c.push("IndexedDB")}catch{}if(a.webSQL&&"openDatabase"in window)try{let l=globalThis.openDatabase("","","","");l&&l.transaction&&l.transaction(u=>{u.executeSql('SELECT name FROM sqlite_master WHERE type="table"',[],(f,p)=>{for(let m=0;m<p.rows.length;m++){let v=p.rows.item(m).name;/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(v)&&f.executeSql(`DROP TABLE IF EXISTS ${v}`)}})}),c.push("WebSQL")}catch{}if(a.applicationCache&&"caches"in window)try{let l=await caches.keys();await Promise.all(l.map(async u=>{try{await caches.delete(u)}catch{}})),c.push("Application Cache")}catch{}if(a.serviceWorker&&"serviceWorker"in navigator)try{let l=await navigator.serviceWorker.getRegistrations();await Promise.all(l.map(async u=>{try{await u.unregister()}catch{}})),c.push("Service Workers")}catch{}if(a.cookies)try{document.cookie.split(";").forEach(l=>{let u=l.indexOf("="),f=u>-1?l.substr(0,u):l;document.cookie=`${f.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`,document.cookie=`${f.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${window.location.hostname}`,document.cookie=`${f.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.${window.location.hostname}`}),c.push("Cookies")}catch{}if(a.memoryCache)try{"gc"in window&&typeof globalThis.gc=="function"&&globalThis.gc(),c.push("Memory Cache")}catch{}let d=c.length>0?e("settings.clearCache.success","Cache cleared successfully: {{items}}",{items:c.join(", ")}):e("settings.clearCache.noItemsCleared","No cache items were cleared");t("success",d),c.length>0&&setTimeout(()=>{typeof globalThis<"u"&&globalThis._DNDEV_STORES_&&(globalThis._DNDEV_STORES_={}),typeof window<"u"?window.location.href=window.location.href:n()},1e3)}catch{t("error",e("settings.clearCache.error","Error clearing cache"))}finally{r(!1)}};return wr(Zt,{children:[it(Zt,{children:Object.entries(a).map(([c,d])=>wr(Zt,{direction:"row",align:"center",gap:"tight",children:[it(Vl,{id:c,checked:d,onCheckedChange:l=>i(u=>({...u,[c]:!!l}))}),it("label",{htmlFor:c,style:{fontSize:"var(--font-size-sm)",fontWeight:500,lineHeight:1,cursor:"pointer"},children:e(`settings.clearCache.${c}`,c.charAt(0).toUpperCase()+c.slice(1))})]},c))}),it(zl,{variant:Ol.DESTRUCTIVE,style:{margin:"0 auto"},disabled:o||!Object.values(a).some(Boolean),onClick:s,icon:Ml,children:o?e("settings.clearCache.clearing","Clearing..."):e("settings.clearCache.button","Clear Cache")})]})}var Jt=Gl;import{DropdownMenu as Yl,Button as Qt,Stack as ql}from"@donotdev/components";import{Link as Wl}from"lucide-react";import{navigationMenuTriggerStylePrimitive as $l}from"@donotdev/components";import{jsx as kr,jsxs as Kl}from"react/jsx-runtime";var st=({path:e,route:t,showIcons:o=!0})=>{let r=J(),n=t??r.find(s=>s.path===e);if(!n)return null;let a=o&&!!n.icon,i=!!n.label;return Kl(E,{path:n.path,className:$l(),...a&&!i&&{"data-display":"compact"},children:[o&&kr(H,{icon:n.icon,fallback:Wl}),kr("span",{children:n.label})]})};import{jsx as ge}from"react/jsx-runtime";var Zl=({navigation:e,className:t})=>ge(ql,{role:"navigation",direction:"row",align:"center",className:t,style:{gap:"var(--gap-sm)"},children:e.map((o,r)=>o.routes&&o.routes.length>0?ge(Yl,{trigger:ge(Qt,{icon:o.icon,children:o.label}),items:o.routes.map(n=>({label:n.label,children:ge(st,{route:n}),asChild:!!n.path})),contentAlign:"start"},o.label+r):o.path?ge(Qt,{icon:o.icon,"aria-label":o.label,render:({children:n,...a})=>ge(E,{path:o.path,...a,children:n}),children:o.label},o.label+r):ge(Qt,{icon:o.icon,disabled:!0,"aria-label":o.label,children:o.label},o.label+r))}),Jl=Zl;import{Card as Ql,cn as Xl}from"@donotdev/components";import{jsx as Xt}from"react/jsx-runtime";var jl=({languages:e,currentLanguage:t,onLanguageChange:o,className:r})=>Xt(Ql,{className:Xl("dndev-z-modal",r),style:{position:"fixed",bottom:"var(--gap-md)",insetInlineEnd:"var(--gap-md)",display:"flex",alignItems:"center",gap:"var(--gap-sm)",transition:"var(--dur-fast) ease-out"},role:"region","aria-label":"Language selector","data-role":"floating",children:Xt("select",{style:{backgroundColor:"transparent",outline:"none",fontSize:"var(--font-size-base)",cursor:"pointer"},value:t,onChange:n=>o?.(n.target.value),"aria-label":"Select language",children:e.map(n=>Xt("option",{value:n,children:n},n))})}),ec=jl;import{MoreHorizontal as tc}from"lucide-react";import{Button as oc,BUTTON_VARIANT as rc,DropdownMenu as nc}from"@donotdev/components";import{jsx as Tr}from"react/jsx-runtime";var ac=({children:e,className:t})=>Tr(nc,{trigger:Tr(oc,{variant:rc.GHOST,icon:tc,"aria-label":"Menu",className:t}),contentAlign:"end",children:e}),ic=ac;import{MoreHorizontal as sc}from"lucide-react";import{Link as lc}from"lucide-react";import{DISPLAY as Ue,DropdownMenu as cc,Button as Er}from"@donotdev/components";import{cn as dc}from"@donotdev/components";import{useBreakpoint as Ar,useTranslation as uc}from"@donotdev/core";import{jsx as ve}from"react/jsx-runtime";var pc=({className:e="",showIcons:t=!0,display:o=Ue.AUTO,path:r})=>{let{t:n}=uc("dndev"),a=Ar("isMobile"),i=Ar("isTablet"),s=J(),c=xo(r??"");return r?c?ve(Er,{variant:"ghost",display:o,icon:t?ve(H,{icon:c.icon,fallback:lc}):void 0,className:e,render:({children:l,...u})=>ve(E,{path:c.path,...u,children:l}),children:c.label}):null:(o===Ue.AUTO?a||i?Ue.COMPACT:Ue.FULL:o)===Ue.COMPACT?ve(cc,{trigger:ve(Er,{variant:"ghost",icon:sc,"aria-label":n("navigation.menu","Navigation"),className:e}),contentAlign:"end",items:s.map(l=>({label:l.label,children:ve(st,{route:l,showIcons:t}),asChild:!0}))}):ve(Vo,{overflowDetection:!0,showIcons:t,className:dc(e),style:{flex:1}})},mc=pc;import{Bell as fc}from"lucide-react";import{useMemo as gc,useEffect as vc,useRef as hc}from"react";import{Button as yc,cn as bc,toast as Sc,Stack as Cc}from"@donotdev/components";import{jsx as jt}from"react/jsx-runtime";var xc={sm:{button:{width:"var(--icon-md)",height:"var(--icon-md)"},icon:{width:"var(--icon-md)",height:"var(--icon-md)"},badge:{width:"var(--icon-md)",height:"var(--icon-md)",fontSize:"var(--font-size-xs)"}},md:{button:{width:"var(--touch-target)",height:"var(--touch-target)"},icon:{width:"var(--icon-md)",height:"var(--icon-md)"},badge:{width:"var(--icon-md)",height:"var(--icon-md)",fontSize:"var(--font-size-xs)"}},lg:{button:{width:"var(--touch-target)",height:"var(--touch-target)"},icon:{width:"var(--icon-touch)",height:"var(--icon-touch)"},badge:{width:"var(--icon-touch)",height:"var(--icon-touch)",fontSize:"var(--font-size-sm)"}}},wc=({notifications:e=[],count:t=0,loading:o=!1,onNotificationClick:r,onDropdownOpen:n,className:a,maxVisible:i=10,alwaysShow:s=!1,size:c="md",disabled:d=!1})=>{let l=xc[c],u=hc(new Set),f=gc(()=>t===0?null:t>99?"99+":t.toString(),[t]),p=t>0||s;return vc(()=>{e.forEach(m=>{if(!u.current.has(m.id)){u.current.add(m.id);let v=m.type==="error"?"error":m.type==="warning"?"warning":m.type==="success"?"success":"info";Sc({title:m.title,description:m.message,toastType:v,duration:0,onDismiss:()=>{u.current.delete(m.id),r&&r(m)}})}})},[e,r]),p?jt("div",{className:bc(a),style:{position:"relative"},children:jt(yc,{disabled:d,style:{...l.button,position:"relative"},onClick:()=>{n?.()},onFocus:m=>{m.currentTarget.style.outline="2px solid var(--ring)",m.currentTarget.style.outlineOffset="2px"},onBlur:m=>{m.currentTarget.style.outline="none"},"aria-label":`${t} notification${t!==1?"s":""}`,icon:fc,children:f&&jt(Cc,{align:"center",justify:"center",style:{position:"absolute",top:"-0.25rem",insetInlineEnd:"-0.25rem",backgroundColor:"var(--destructive)",color:"var(--destructive-foreground)",borderRadius:"var(--radius-full)",fontWeight:600,lineHeight:1,minWidth:0,...l.badge},"aria-hidden":"true",children:f})})}):null},kc=wc;import{Settings as Tc,Check as Ec}from"lucide-react";import*as lt from"lucide-react";import{Button as Ac,BUTTON_VARIANT as Ic,DropdownMenu as Nc,Stack as Pc,DISPLAY as Rc}from"@donotdev/components";import{useTranslation as Lc}from"@donotdev/core";import{useLanguageSelector as Dc,useTheme as eo,Flag as Fc}from"@donotdev/core";import{jsx as ce,jsxs as zc}from"react/jsx-runtime";function Bc({variant:e=Ic.OUTLINE}={}){let{t}=Lc("dndev"),{languages:o,currentLanguage:r,changeLanguage:n,isLoading:a}=Dc(),i=eo("availableThemes"),s=eo("currentTheme"),c=eo("setTheme"),d=p=>{if(!p)return lt.Palette;let m=p.replace(/['"]/g,"");return lt[m]||lt.Palette},l=i.map(p=>{let m=d(p.meta?.icon),v=p.name===s;return{label:p.displayName||p.name,icon:m,onClick:()=>c(p.name),checked:v}}),u=o.map(p=>{let m=p.id===r;return{label:p.name,onClick:()=>n(p.id),disabled:a,checked:m,className:m?"bg-accent":void 0,iconEnd:m&&!a?Ec:void 0,children:zc(Pc,{direction:"row",align:"center",gap:"tight",children:[ce(Fc,{code:p.flagCode||p.id,title:`${p.name} flag`}),ce("span",{children:p.name}),a&&m&&ce("div",{style:{marginInlineStart:"auto"},children:ce("div",{style:{width:"0.5rem",height:"0.5rem",borderRadius:"50%",backgroundColor:"var(--primary)"}})})]})}}),f=[{label:t("auth.title","Authentication"),subContent:ce(Vt,{display:Rc.COMPACT})},{label:t("settings.theme","Theme"),subItems:l},{label:t("settings.language","Language"),subItems:u},{label:t("settings.clearCache.title","Clear Cache"),subContent:ce(Jt,{})}];return ce(Nc,{trigger:ce(Ac,{variant:e,"aria-label":t("settings.title","Settings"),icon:Tc}),items:f,contentWidth:"14rem",contentAlign:"end"})}var Mc=Bc;import*as ct from"lucide-react";import{Button as Ir,BUTTON_VARIANT as Oc,DropdownMenu as Vc,DISPLAY as Uc}from"@donotdev/components";import{useTranslation as _c}from"@donotdev/core";import{useTheme as to}from"@donotdev/core";import{jsx as ro}from"react/jsx-runtime";var oo=e=>{if(!e)return ct.Palette;let t=e.replace(/['"]/g,"");return ct[t]||ct.Palette},Hc=({display:e=Uc.AUTO,"no-tooltip":t=!1})=>{let{t:o}=_c("dndev"),r=to("availableThemes"),n=to("currentTheme"),a=to("setTheme");if(r.length<=1)return null;let i=r.find(g=>g.name===n)||r[0],s=r.length===2?r.find(g=>g.name!==i?.name)||r[0]:null,c=i?oo(i.meta?.icon):null,d=s?oo(s.meta?.icon):null,l=i?.displayName||i?.name||"Theme",u=s?.displayName||s?.name||"Theme",f=r.length===2&&s&&d,p=f?d:c,m=f?t?void 0:o("common.themeSelector.tooltipWithNext","Change Theme: Switch to {{next}}",{next:s?.displayName||s?.name}):t?void 0:o("common.themeSelector.changeTheme","Change Theme"),v={variant:Oc.OUTLINE,"aria-label":o("common.themeSelector.changeTheme","Change Theme"),tooltip:m,icon:p,display:e};if(f&&s)return ro(Ir,{...v,onClick:()=>a(s.name),children:u});if(!i||!c)return null;let h=r.map(g=>{let S=oo(g.meta?.icon),w=g.name===n;return{label:g.displayName||g.name,icon:S,onClick:()=>a(g.name),checked:w}});return ro(Vc,{trigger:ro(Ir,{...v,children:l}),items:h,contentWidth:"10rem"})},Gc=Hc;import{ExternalLink as Wc}from"lucide-react";import{getPlatformEnvVar as $c}from"@donotdev/core";import{jsx as Kc,jsxs as Yc}from"react/jsx-runtime";var no=({className:e})=>{let o=$c("APP_URL")==="https://donotdev.com";return Yc("a",{href:o?"https://www.ambroise-park.com":"https://donotdev.com",target:"_blank",rel:"noopener noreferrer",className:e,style:{display:"inline-flex",alignItems:"center",gap:"var(--gap-sm)",fontSize:"var(--font-size-xs)"},children:[o?"AMBROISE-PARK":"DoNotDev",Kc(Wc,{style:{width:"12px",height:"12px"},"aria-hidden":"true"})]})};import{cn as qc}from"@donotdev/components";import{useTranslation as Zc,useAppConfig as Jc}from"@donotdev/core";import{jsxs as Xc}from"react/jsx-runtime";var Qc=({appName:e,year:t=new Date().getFullYear(),className:o})=>{let{t:r}=Zc("dndev"),n=Jc("app"),a=e||n?.name||"App";return Xc("span",{className:qc(o),style:{flexShrink:0,color:"var(--muted-foreground)",fontSize:"var(--font-size-xs)"},children:["\xA9 ",t," ",a,". ",r("footer.legal.allRightsReserved")]})};import{Stack as td}from"@donotdev/components";import{useTranslation as od,maybeTranslate as rd,useAppConfig as nd}from"@donotdev/core";var jc=[{path:"#cookie-settings",label:"footer.legal.cookieSettings"},{label:"footer.legal.privacyPolicy",path:"/privacy"},{label:"footer.legal.termsOfService",path:"/terms"}],ed=e=>e?.legalLinks===null?[]:e?.legalLinks??jc,Nr=ed;import{jsx as Pr,jsxs as id}from"react/jsx-runtime";var ad=({app:e,direction:t="column",gap:o="tight",align:r="stretch"})=>{let{t:n}=od("dndev"),a=nd("app"),s=Nr((e||a||{}).footer),c={transition:"color var(--dur-fast) ease-out",textDecoration:"underline",textUnderlineOffset:"2px",color:"var(--muted-foreground)",fontSize:"var(--font-size-xs)"};return s.length===0?null:id(td,{direction:t,gap:o,align:r,children:[s.map(d=>Pr(E,{path:d.path,style:c,onMouseEnter:l=>l.currentTarget.style.color="var(--primary)",onMouseLeave:l=>l.currentTarget.style.color="var(--muted-foreground)",children:rd(n,d.label)},d.path)),Pr(no,{})]})};import{useEffect as ld}from"react";import{checkLicense as cd}from"@donotdev/core";var sd='<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512"><title>logo</title><style>.s0{opacity:.98;fill:#f23d29}.s1{opacity:.99;fill:#03bec4}.s2{opacity:.97;fill:#27494a}</style><g id="Background"><path id="Path 0" fill-rule="evenodd" class="s0" d="m254 41.1c5.8-0.1 15.2 0.4 21 0.9 5.8 0.6 16 2.2 22.8 3.5 6.7 1.4 17.5 4.2 23.9 6.4 6.5 2.1 16.7 6.1 22.8 8.8 6.1 2.7 15.5 7.6 21 10.8 5.5 3.3 14.3 9.2 19.5 13 5.2 3.9 13.8 11.2 19 16.2 5.2 5 12.2 12.3 15.5 16.2 3.3 4 8.8 11.1 12.2 15.9 3.4 4.8 8.7 13.2 11.7 18.7 3 5.5 6.9 13.4 8.7 17.5 1.7 4.1 4.7 12 6.6 17.5 1.9 5.5 4.5 14.5 5.8 20 1.3 5.5 3.1 15.3 3.9 21.8 0.9 6.6 1.6 19 1.6 28.7 0 9.4-0.7 22.1-1.5 28.3-0.8 6.1-3 17.3-4.8 24.7-1.9 7.4-5.5 18.9-8.2 25.5-2.6 6.6-7 16.3-9.8 21.5-2.8 5.2-8 13.8-11.5 19-3.6 5.2-9.3 12.9-12.7 17-3.5 4.1-10.7 11.8-16.2 17-5.4 5.3-12.7 11.9-16.3 14.7-3.6 2.8-11.4 8.3-17.5 12.2-6.1 4-16.4 9.8-23 13.1-6.6 3.2-17.4 7.6-24 9.8-6.6 2.3-17.2 5.2-23.5 6.6-6.3 1.4-16.2 3-22 3.7-6.4 0.7-17.5 1-28.5 0.6-11.9-0.3-21.7-1.2-29-2.6-6.1-1.1-15.9-3.4-22-5.1-6.1-1.7-15.9-5.2-22-7.6-6.1-2.5-15.5-6.9-21-9.8-5.5-2.9-14.1-8-19-11.3-4.9-3.3-12.4-8.7-16.5-12-4.1-3.4-12.5-11.2-18.6-17.4-6.1-6.3-13.9-15.2-17.3-19.9-3.5-4.7-8.8-12.6-11.9-17.5-3-4.9-7.9-13.9-10.8-20-2.9-6.1-7.1-16.4-9.3-23-2.2-6.6-5.1-17.6-6.5-24.5-1.4-6.9-3-17.4-3.7-23.5-0.7-6.7-0.9-17.2-0.6-27 0.4-8.8 1.3-20.5 2.2-26 0.8-5.5 2.7-14.5 4.1-20 1.4-5.5 3.9-14.1 5.5-19 1.7-4.9 6.3-15.8 10.4-24 4-8.3 10-19.1 13.3-24 3.3-4.9 9-12.6 12.5-17 3.6-4.4 11.4-12.8 17.3-18.6 6-5.8 15.4-13.9 20.9-18 5.5-4.1 14.5-10 20-13.2 5.5-3.1 14.5-7.6 20-10.1 5.5-2.4 15.1-6 21.3-8 6.1-2 16.7-4.7 23.5-6.1 6.7-1.3 16.3-2.8 21.2-3.3 4.9-0.5 13.7-1 19.5-1.1zm-21 38c-4.7 0.5-12.1 1.9-16.5 3-4.4 1.1-11.6 3.1-16 4.5-4.4 1.5-13.8 5.4-21 8.9-7.2 3.5-16.1 8.5-20 11.1-3.8 2.6-10 7.2-13.8 10.3-3.7 3.1-6.7 5.9-6.7 6.3 0 0.5 9.3 10.3 20.8 21.9l20.7 21c5.5-10.5 9-16.5 11.5-20.1 2.4-3.6 7.2-9.6 10.5-13.5 3.3-3.8 9.4-9.6 13.5-12.9 4.1-3.2 10.7-7.4 14.5-9.2 3.9-1.8 9.7-4 13-4.9 3.3-0.8 9.6-1.5 14-1.5 4.4 0 10.7 0.7 14 1.6 3.3 0.9 9.1 3.2 13 5.1 3.9 2 9.3 5.2 12 7.3 2.8 2 8.5 7.5 12.9 12.1 4.3 4.6 10.2 11.8 13.1 15.9 2.9 4.1 7.8 12.2 10.8 18 3 5.8 7.1 14.8 9 20 2 5.2 4.2 13 5.1 17.3 0.9 4.2 1.6 11.4 1.6 15.9 0 5.6-0.6 10.6-2.1 15.3-1.1 3.8-3.8 9.9-5.9 13.5-2.1 3.6-5.8 8.9-8.4 11.7-2.5 2.9-4.6 5.6-4.6 6 0 0.5 1.4 1.2 3.2 1.6 1.8 0.4 6.4 2.4 10.3 4.4 3.9 1.9 9 4.9 11.5 6.6 2.5 1.8 7.1 5.9 10.4 9.2 4.2 4.3 7.1 8.6 10.1 15 2.4 4.9 5 11.9 5.9 15.5 0.9 3.6 2.3 11.9 3.2 18.5 1.1 8 1.4 15.9 1.1 23.5l-0.5 11.5 6.3 6.4c6.3-8.1 10.4-13.8 13.1-17.9 2.8-4.1 6.4-10 8.1-13 1.7-3 5.1-10.2 7.6-16 2.5-5.8 5.8-15.2 7.5-21 1.7-5.8 3.7-13.9 4.6-18 0.8-4.1 2-11.9 2.5-17.3 0.6-5.3 1.1-13.5 1.1-18.2 0-4.7-0.5-12.9-1.1-18.3-0.6-5.3-1.9-13.5-2.9-18.2-1-4.7-3.1-12.3-4.5-17-1.5-4.7-5.1-13.4-7.9-19.5-2.9-6.1-7.6-14.8-10.6-19.5-2.9-4.7-7.2-11-9.5-14-2.3-3-7.8-9.3-12.1-13.9-4.3-4.6-12-11.6-16.9-15.6-4.9-4.1-13.1-9.9-18-13-4.9-3.1-13.3-7.7-18.5-10.2-5.2-2.5-13.6-6.1-18.5-7.8-4.9-1.8-14.2-4.5-20.5-5.9-6.3-1.4-17.1-3-24-3.6-6.9-0.5-13.4-0.9-14.5-0.8-1.1 0.1-4.5 0.3-7.5 0.5-3 0.2-9.3 0.8-14 1.4zm-125.4 79.6c-4.3 6.5-9.8 15.9-12.1 20.8-2.4 4.9-5.9 13.7-7.9 19.5-1.9 5.8-4.4 15-5.5 20.5-1.1 5.5-2.5 15.8-3.1 23-0.6 7.2-0.8 16.8-0.5 21.5 0.4 4.7 1.5 13.9 2.5 20.5 1.1 6.6 3.5 17.3 5.4 23.8 2 6.4 5.5 16.1 7.9 21.5 2.3 5.3 6.7 13.8 9.7 18.7 3 4.9 8.1 12.4 11.4 16.5 3.3 4.1 9.8 11.5 14.5 16.3 4.7 4.9 11.8 11.2 15.6 14.2 3.9 2.9 11.1 7.9 16 11 4.9 3.1 13.1 7.6 18 10 4.9 2.4 13.7 5.9 19.5 7.9 5.8 1.9 14.6 4.4 19.5 5.5 4.9 1.1 13.7 2.5 19.5 3.2 6.6 0.7 16.1 0.9 25.5 0.6 9.8-0.4 19.1-1.5 27-3.1 6.6-1.4 16.7-4.1 22.5-6.1 5.8-2 15-5.8 20.5-8.5 5.5-2.7 13.8-7.4 18.5-10.5 4.7-3.2 9.3-6.5 10.3-7.4 1.6-1.5 1.6-1.7-0.5-3.9-1.3-1.2-2.6-2.2-3-2.2-0.5 0-3.4 2-6.5 4.4-3.2 2.4-9.4 6.4-13.8 8.9-4.4 2.6-12.7 6.4-18.5 8.6-5.8 2.2-15.2 5.1-21 6.5-5.8 1.4-14.6 3-19.5 3.7-4.9 0.6-15.7 1.1-24 1.1-8.2 0-19.5-0.7-25-1.6-5.5-0.8-14.7-2.7-20.5-4.1-5.8-1.5-15-4.5-20.5-6.6-5.5-2.2-12.9-5.6-16.5-7.5-3.6-2-10.3-6.1-15-9.2-4.7-3.1-12.7-9.7-17.8-14.7-7.5-7.2-9.5-9.8-10.2-13-0.5-2.2-1-9.9-1-17 0-7.1 0.7-17.3 1.5-22.5 0.8-5.2 2.3-12.8 3.5-16.8 1.1-3.9 3.3-9.8 4.9-12.9 1.6-3.2 4.5-7.8 6.5-10.3 1.9-2.5 6.1-6.6 9.3-9.3 3.2-2.6 9.2-6.5 13.3-8.6 4.1-2.1 9.3-4.4 11.5-5.1 2.2-0.7 4.3-1.5 4.7-1.9 0.4-0.3-1.3-3.1-3.8-6.1-2.5-3-6.1-8.4-8.2-12-2-3.6-4.7-9.9-6-14-1.8-5.6-2.5-10-2.6-17 0-5.2 0.2-11.7 0.5-14.5l0.6-5-49.2-48.5zm117.6 8.2c-4 1.1-9.8 3.1-13 4.3-3.2 1.3-8.4 4.1-11.6 6.3l-5.8 3.9 6.7 6.5c7.5-3.7 9.9-4 24.2-4 13.2 0 17 0.4 20.4 1.8 2.3 0.9 4.5 2.5 5 3.5 0.6 1.2 2 1.7 4.9 1.7 2.8 0 4.2-0.5 4.8-1.7 0.5-1 2.5-2.6 4.5-3.5 3.1-1.5 6.6-1.8 21.7-1.8 9.9 0 19.1 0.5 20.5 1 1.3 0.6 3.1 2 4 3.3 1.1 1.6 1.5 4.8 1.5 11.7 0 7.9-0.4 10.3-2.3 14-1.2 2.4-3.4 5.3-4.7 6.3-1.4 1-4.3 2.2-6.5 2.7-2.2 0.6-7.9 1-12.5 1-4.7 0-10.3-0.4-12.5-1-2.2-0.5-5.2-1.8-6.5-2.8-1.4-1-3.6-3.6-4.8-5.8-1.2-2.1-2.6-6-3-8.6-0.7-4.6-0.9-4.8-4-4.8-3.2 0-3.3 0.2-4.4 5.8-0.6 3.1-1.7 6.9-2.4 8.2-0.7 1.4-2.5 3.7-4.1 5.2-1.6 1.4-4 2.9-5.3 3.3-2.4 0.7-1 2.2 20.5 23.6 12.6 12.6 23.3 22.9 23.7 22.9 0.4 0 4.4-3.5 8.9-7.7 4.5-4.3 10-10.5 12.2-13.8 2.2-3.3 5.5-9.1 7.3-13 1.8-3.8 4.5-11 5.9-16 1.5-4.9 2.9-12.8 3.2-17.5 0.5-6.5 0.2-9.5-1-13-1-2.6-3.5-6.2-5.9-8.5-2.4-2.3-7.7-5.8-11.8-7.8-4.2-2-10.9-4.5-15-5.5-4.2-1.1-11.6-2.5-16.5-3.1-5-0.6-12.6-1-17-0.9-4.4 0-11.2 0.5-15 1-3.9 0.5-10.3 1.8-14.3 2.8zm-13.7 29.2c-0.5 0.9 2 4.1 8.1 10.1 7.5 7.4 9.4 8.7 12.1 8.7 1.8 0 4.2-0.4 5.3-1 1.1-0.5 2.8-2.9 3.9-5.2 1.1-2.4 2-5.8 2-7.8 0.1-1.9-0.6-4.4-1.3-5.5-1.3-1.8-2.8-2-13.3-2.2-6.5-0.1-12.8 0.2-13.9 0.7-1.2 0.5-2.5 1.5-2.9 2.2zm58.5 1.1c-0.8 2.3-0.8 4.4-0.1 7.5 0.6 2.3 2.1 5.3 3.3 6.6 1.6 1.7 3.9 2.6 8.3 3.1 3.3 0.4 8.2 0.5 11 0.1 2.7-0.4 5.7-1.1 6.7-1.7 1-0.5 2.4-2.4 3.3-4.4 0.8-1.9 1.5-5.2 1.5-7.2 0-2.1-0.7-4.8-1.5-6-1.5-2.2-2.1-2.3-15.3-2.2-7.6 0.1-14.3 0.3-14.9 0.6-0.7 0.2-1.7 1.9-2.3 3.6zm-71.9 38c1.7 3.4 5 8.9 7.4 12.2 2.3 3.3 6.9 8.5 10.1 11.6 3.2 3.1 7.9 6.8 10.4 8.2 2.4 1.4 6.5 3.3 9 4.2 2.4 0.8 4.5 1.4 4.7 1.3 0.1-0.2-9.9-10.4-22.3-22.8-12.3-12.3-22.5-22.1-22.5-21.7 0.1 0.4 1.5 3.5 3.2 7z"/><path id="Path 1" class="s1" d="m243 105.6c-3 0.8-8.7 2.9-12.5 4.8-3.8 1.8-10.4 6-14.5 9.2-4.1 3.3-10.2 9.1-13.5 12.9-3.4 3.9-8.4 10.4-11.1 14.5-2.8 4.1-6.5 10.2-8.2 13.5l-3.1 6 14.8 15c9-6.2 15.4-9.4 20.1-11.1 4.7-1.8 12-3.9 16.2-4.8 4.3-0.9 12.4-1.9 18-2.2 6.2-0.4 14.5-0.2 20.8 0.6 5.8 0.6 13.9 2.1 18 3.1 4.1 1.1 10.9 3.6 15 5.6 4.1 2 9.4 5.5 11.8 7.7 2.5 2.4 5 6 5.9 8.6 1.3 3.4 1.5 6.5 1.1 13-0.4 4.7-1.8 12.6-3.2 17.5-1.5 4.9-4.2 12.2-6 16-1.8 3.9-5 9.7-7.3 13-2.2 3.3-8 9.7-12.9 14.3l-8.9 8.3c76.3 76.3 98.8 98 99.2 97.6 0.4-0.5 1-5.7 1.2-11.5 0.2-6.2-0.4-15.7-1.3-22.7-0.9-6.6-2.3-14.9-3.2-18.5-0.9-3.6-3.5-10.6-5.9-15.5-3-6.4-5.9-10.7-10.1-15-3.3-3.3-7.9-7.4-10.4-9.2-2.5-1.7-7.6-4.7-11.5-6.6-3.9-2-8.5-4-10.3-4.4-1.8-0.4-3.2-1.1-3.2-1.5 0-0.5 2.1-3.2 4.6-6 2.6-2.9 6.3-8.2 8.4-11.8 2.1-3.6 4.8-9.6 5.9-13.5 1.5-4.7 2.1-9.7 2.1-15.2 0-4.6-0.7-11.8-1.6-16-0.9-4.3-3.1-12.1-5.1-17.3-1.9-5.2-6-14.2-9-20-3-5.8-7.9-13.9-10.8-18-2.9-4.1-8.8-11.3-13.1-15.9-4.4-4.6-10.2-10.1-12.9-12.1-2.8-2.1-8.1-5.3-12-7.3-3.9-1.9-9.7-4.2-13-5.1-3.3-0.9-9.8-1.5-14.5-1.5-4.7 0-11 0.7-14 1.5zm-78.7 93.9c-0.4 2.2-0.8 8.7-0.7 14.5 0.1 8.3 0.6 12.1 2.5 18 1.4 4.1 4.1 10.4 6.1 14 2.1 3.6 5.7 9 8.2 12 2.5 3 4.2 5.8 3.8 6.1-0.4 0.4-2.5 1.2-4.7 1.9-2.2 0.7-7.4 3-11.5 5.1-4.1 2.1-10.1 6-13.3 8.6-3.2 2.7-7.4 6.8-9.3 9.3-2 2.5-4.9 7.1-6.5 10.3-1.6 3.1-3.8 9-4.9 13-1.2 3.9-2.7 11.5-3.5 16.7-0.8 5.2-1.5 15.4-1.5 22.5 0 7.1 0.5 14.8 1 17 0.7 3.2 2.7 5.8 10.2 13 5.1 5 13.1 11.6 17.8 14.7 4.7 3.1 11.4 7.2 15 9.2 3.6 1.9 11 5.3 16.5 7.5 5.5 2.1 14.7 5.1 20.5 6.6 5.8 1.4 15 3.3 20.5 4.1 5.5 0.9 16.8 1.6 25 1.6 8.3 0 19.1-0.5 24-1.1 4.9-0.7 13.7-2.3 19.5-3.7 5.8-1.4 15.2-4.3 21-6.5 5.8-2.2 14.1-6 18.5-8.6 4.4-2.5 10.8-6.7 14.2-9.2 3.5-2.5 6.3-4.9 6.3-5.3 0-0.5-26.5-27-58.8-59-54.3-53.8-59.2-58.4-63.8-59.8-2.7-0.8-7.4-3-10.4-4.8-3-1.8-7.9-5.7-10.8-8.5-3-2.9-7.3-7.9-9.7-11.2-2.4-3.3-6.4-10.3-8.9-15.5-4.2-8.7-5.6-10.6-18-23l-13.5-13.5z"/><path id="Path 2" fill-rule="evenodd" class="s2" d="m225.8 184c13.2 0 17 0.3 20.3 1.8 2.3 0.9 4.6 2.5 5 3.5 0.6 1.2 2.1 1.7 4.9 1.7 2.8 0 4.3-0.5 4.9-1.8 0.4-0.9 2.5-2.5 4.5-3.5 3-1.4 6.5-1.7 21.6-1.7 9.9 0 19.1 0.4 20.5 1 1.4 0.6 3.2 2 4 3.3 1.2 1.6 1.6 4.8 1.6 11.7-0.1 7.9-0.4 10.3-2.3 13.9-1.3 2.5-3.4 5.3-4.8 6.3-1.4 1-4.3 2.3-6.5 2.8-2.2 0.5-7.8 1-12.5 1-4.7 0-10.3-0.5-12.5-1-2.2-0.5-5.1-1.8-6.5-2.8-1.4-1-3.5-3.6-4.7-5.8-1.3-2.1-2.6-6-3-8.7-0.8-4.5-0.9-4.7-4.1-4.7-3.1 0-3.2 0.2-4.3 5.8-0.6 3.1-1.7 6.8-2.4 8.2-0.7 1.4-2.6 3.7-4.2 5.2-1.5 1.5-3.9 3-5.3 3.3-2 0.6-3.3 0-6.8-3.1-2.4-2.2-4.3-4.2-4.2-4.6 0-0.5 1.3-0.8 3-0.8 1.6 0 3.9-0.4 5-1 1.1-0.6 2.9-2.9 4-5.2 1.1-2.4 2-5.9 2-7.8 0-1.9-0.6-4.4-1.4-5.5-1.3-1.8-2.6-2-14.4-2-11.6 0-13.2 0.2-17.1 4l-4-4.5c-2.1-2.5-3.7-4.8-3.5-5.2 0.2-0.5 1.9-1.5 3.6-2.3 2.5-1 7.5-1.4 19.5-1.5zm44.3 13.3c-0.8 2.3-0.8 4.4-0.1 7.5 0.6 2.3 2.1 5.3 3.3 6.6 1.7 1.7 3.9 2.5 8.3 3.1 3.3 0.4 8.2 0.4 11 0 2.7-0.3 5.8-1.1 6.7-1.6 1-0.5 2.5-2.5 3.3-4.4 0.8-1.9 1.5-5.2 1.5-7.2 0-2.1-0.7-4.8-1.5-6-1.4-2.2-2.1-2.3-15.3-2.2-7.5 0-14.2 0.3-14.9 0.5-0.6 0.3-1.7 2-2.3 3.7zm-40 126.7c0.3-0.1 2.2 2 8 9l-23.5 22.7 22.4 23.8-7.8 8-16.1-15.5c-8.8-8.5-16.2-15.8-16.3-16.2-0.1-0.3 7.3-7.6 16.3-16.2 9.1-8.6 16.7-15.6 17-15.6zm33.5 0l4 0.1c2.2 0.1 5 0.4 6.1 0.7 2.1 0.7 1.8 1.7-19.4 62.7l-5.3-0.3c-3-0.2-5.6-0.5-5.9-0.7-0.3-0.2 4.2-14.4 10-31.4zm20.7 3.9l2.7 1.9c1.4 1.1 8.2 7.3 27.6 26l-15.5 15.6c-8.5 8.6-16 15.6-16.7 15.6-0.7 0-2.9-2-8.3-8.5l23.2-22-6.8-6.7c-3.8-3.7-8.1-7.6-9.6-8.8-1.5-1.1-2.8-2.5-2.9-3.1 0-0.6 1.4-3.1 3.1-5.5z"/></g></svg>',Rr=`data:image/svg+xml,${encodeURIComponent(sd)}`;import{jsx as ao,jsxs as Lr}from"react/jsx-runtime";function Jg(){let e=cd();return ld(()=>{e.isValid},[e.isValid]),e.isValid?null:Lr("a",{href:"https://donotdev.com/pricing",target:"_blank",rel:"noopener noreferrer",style:{position:"fixed",insetInlineEnd:"20px",top:"50%",transform:"translateY(-50%)",zIndex:9999,display:"flex",alignItems:"center",gap:"12px",padding:"12px 16px",backgroundColor:"rgba(255, 255, 255, 0.95)",border:"2px solid rgba(242, 61, 41, 0.3)",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",textDecoration:"none",transition:"all 0.2s ease",cursor:"pointer",opacity:.9},onMouseEnter:t=>{t.currentTarget.style.opacity="1",t.currentTarget.style.transform="translateY(-50%) scale(1.05)"},onMouseLeave:t=>{t.currentTarget.style.opacity="0.9",t.currentTarget.style.transform="translateY(-50%) scale(1)"},children:[ao("img",{src:Rr,alt:"DoNotDev Logo",style:{width:"48px",height:"48px",flexShrink:0}}),Lr("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:[ao("div",{style:{fontFamily:"system-ui, sans-serif",fontSize:"13px",fontWeight:"600",color:"#27494a",lineHeight:"1.2"},children:"DoNotDev"}),ao("div",{style:{fontFamily:"system-ui, sans-serif",fontSize:"11px",fontWeight:"500",color:"#f23d29",lineHeight:"1.2"},children:"Get License"})]})]})}import{useEffect as dd,useState as io,useMemo as ud}from"react";import{Stack as so,Spinner as pd}from"@donotdev/components";import{useTranslation as Yr,isFieldVisible as md}from"@donotdev/core";import*as B from"@donotdev/crud";var W=typeof B?.useCrud=="function",Dr=B?.useEntityForm,Fr=B?.useUnsavedChangesWarning,Br=B?.useFormStore,Mr=B?.useFieldConditions,dt=B?.useCrud,zr=B?.useCrudList,ut=B?.useCrudCardList,Or=B?.useEntityFavorites,Vr=B?.useCrudFilters,Ur=B?.useEntityWorkflow,_r=B?.useReferenceResolver,pt=B?.DisplayFieldRenderer,Hr=B?.FormFieldRenderer,Gr=B?.UploadProvider,mt=B?.EntityFilters,Wr=B?.CrudCard,$r=B?.translateFieldLabel,Kr=B?.formatValue;import{jsx as he,jsxs as gd}from"react/jsx-runtime";function fd({entity:e,id:t,t:o,className:r="",loadingMessage:n,notFoundMessage:a,viewerRole:i,excludeFields:s}){if(!W)return null;let c=L("userRole"),d=i??c,{get:l,loading:u,data:f,error:p,isAvailable:m}=dt(e),[v,h]=io(!1),[g,S]=io(null),[w,b]=io(null),{t:I}=Yr([e.namespace,"crud"]),{t:T}=Yr("crud"),N=o||I;dd(()=>{if(!t){b(null),S(null),h(!1);return}if(!m||!l)return;let k=!1;return h(!0),S(null),l(t).then(R=>{k||(h(!1),R?(b(R),S(null)):(b(null),S(new Error("Entity not found"))))}).catch(R=>{k||(h(!1),S(R instanceof Error?R:new Error(String(R))),b(null))}),()=>{k=!0}},[t,l,m]);let y=f||w,C=p||g,x=u||v||!t,A=ud(()=>y?Object.entries(e.fields).filter(([k,R])=>{if(s?.includes(k)||!md(R.visibility,d)||R.visibility==="hidden")return!1;let F=y[k];return!(F==null||typeof F=="string"&&F.trim()===""||Array.isArray(F)&&F.length===0||typeof F=="object"&&!Array.isArray(F)&&F!==null&&Object.keys(F).length===0)}):[],[e.fields,d,y,s]);return x?he("div",{style:{position:"relative",width:"100%",gridColumn:"1 / -1",display:"contents"},className:r,children:he(pd,{overlay:!0,"aria-label":n||T("form.loading",{defaultValue:"Loading..."})})}):C||!y?he(so,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},className:r,children:gd(so,{direction:"column",gap:"tight",children:[he("h3",{style:{color:"var(--muted-foreground)"},children:a||T("errors.notFound",{defaultValue:`${e.name} not found`})}),C&&he("p",{style:{color:"var(--destructive)",fontSize:"var(--font-size-sm)"},children:C instanceof Error?C.message:String(C)})]})}):he(so,{direction:"column",className:r,children:A.map(([k,R])=>he(pt,{name:k,config:R,value:y[k],t:N},k))})}import{RefreshCw as vd,Plus as hd,Trash2 as yd,Edit as bd,Search as Sd}from"lucide-react";import{useMemo as Cd,useCallback as _e,useState as lo}from"react";import{DataTable as xd,Button as co,Stack as uo,ActionButton as wd,Section as qr,Input as kd}from"@donotdev/components";import{useTranslation as Zr}from"@donotdev/core";import{Fragment as Ed,jsx as ae,jsxs as ft}from"react/jsx-runtime";function Td({entity:e,basePath:t,onClick:o,hideFilters:r=!1,pagination:n="auto",pageSize:a,queryOptions:i,exportable:s=!0}){if(!W)return null;let c=xe(),d=t??`/${e.collection}`,l=_r(e),[u,f]=lo(1),[p,m]=lo(a),[v,h]=lo(""),{data:g,items:S,processed:w,loading:b,mutate:I,effectiveMode:T}=zr(e,{pagination:n,searchQuery:v,...i&&{queryOptions:i},...(n==="server"||n==="auto")&&{page:u,pageSize:p}}),{delete:N}=dt(e),{t:y}=Zr("crud"),{t:C}=Zr([e.namespace,"crud"]),x=_e(async()=>{await I()},[I]),A=_e(_=>{c(`${d}/${_}`)},[d,c]),k=_e(_=>{o?o(_):c(`${d}/${_}`)},[d,c,o]),R=_e(()=>{c(`${d}/new`)},[d,c]),F=_e(async _=>{await N(_)},[N]),Z=Cd(()=>{let be=(e.listFields||Object.keys(e.fields)).map(ee=>{let te=e.fields[ee];if(!te)return null;let ue=$r(ee,te,C),Ie=te.type||"text";return{key:ee,title:ue,dataIndex:ee,sortable:!0,filterable:!0,align:Ie==="number"||Ie==="range"?"end":"start",render:(Ne,Pe)=>Kr(Ne,te,C,{compact:!0,referenceData:l})}}).filter(Boolean);return be.unshift({key:"_actions",title:y("actions.label",{defaultValue:"Actions"}),dataIndex:void 0,sortable:!1,width:120,align:"center",render:(ee,te)=>ft(uo,{direction:"row",gap:"tight",align:"center",justify:"center",children:[ae(co,{variant:"outline",icon:bd,onClick:ue=>{ue.stopPropagation(),A(te.id)},"aria-label":y("edit",{defaultValue:"Edit"})}),ae(wd,{action:async()=>{await F(te.id)},confirmText:y("delete.confirm",{defaultValue:"Are you sure you want to delete this item?"}),confirmTitle:y("delete.title",{defaultValue:"Delete Item"}),loadingText:y("delete.loading",{defaultValue:"Deleting..."}),variant:"destructive",icon:yd,"aria-label":y("delete",{defaultValue:"Delete"}),children:y("delete",{defaultValue:"Delete"})})]})}),be},[e,C,y,A,F]),j=C("name",{defaultValue:e.name}),Ae=w.length;return ft(Ed,{children:[ae(qr,{title:y("filters.title",{entity:j,defaultValue:`Browse ${j} - Filters`}),collapsible:!0,defaultOpen:!0,children:ft(uo,{children:[ft(uo,{direction:"row",gap:"tight",align:"center",className:"dndev-w-full",style:{display:"grid",gridTemplateColumns:"1fr auto auto"},children:[ae(kd,{placeholder:y("search.placeholder",{defaultValue:"Search..."}),value:v,onChange:_=>h(_.target.value),icon:Sd,className:"dndev-w-full"}),ae(co,{icon:vd,variant:"outline",onClick:x,disabled:b,display:"compact","aria-label":y("refresh",{defaultValue:"Refresh"})}),ae(co,{icon:hd,onClick:R,display:"compact",children:y("addNew",{defaultValue:"Add New"})})]}),!r&&ae(mt,{entity:e,data:S,fieldsToFilter:e.listFields})]})}),ae(qr,{title:b?y("results.title.fetching",{defaultValue:"Fetching..."}):y("results.title.count",{count:Ae,defaultValue:Ae===1?"Found 1 occurrence":`Found ${Ae} occurrences`}),collapsible:!0,defaultOpen:!0,children:ae(xd,{data:w,columns:Z,sortable:!0,searchable:!1,pagination:!0,loading:b,onRowClick:_=>k(_.id),showingLabel:y("pagination.showing",{defaultValue:"Showing {{from}} to {{to}} of {{total}} entries"}),paginationPreviousLabel:y("pagination.previous",{defaultValue:"Previous"}),paginationNextLabel:y("pagination.next",{defaultValue:"Next"}),paginationItemsPerPagePlaceholder:y("pagination.itemsPerPagePlaceholder",{defaultValue:"Items per page"}),...a&&{pageSize:a},...T==="server"&&{currentPage:u,pageSize:p,total:g?.total,onPageChange:f,onPageSizeChange:m},exportable:s,exportFilename:`${e.collection}-export`,exportLabel:y("export",{defaultValue:"Export"})})})]})}import{Heart as Qr}from"lucide-react";import{useMemo as Ad,useCallback as Id}from"react";import{Card as en,Grid as tn,Stack as po,Text as He,Skeleton as Ee,Section as Xr,Button as Nd}from"@donotdev/components";import{useTranslation as jr,getListCardFieldNames as on,useBreakpoint as Pd}from"@donotdev/core";import{jsx as Jr}from"react/jsx-runtime";function gt({detailHref:e,onClick:t,...o}){if(!W)return null;let r=Jr(Wr,{...o,onClick:e?void 0:t});return e?Jr(E,{path:e,"aria-label":o.item?.id?`View ${o.item.id}`:void 0,children:r}):r}import{Fragment as Bd,jsx as D,jsxs as vt}from"react/jsx-runtime";function Rd(e){let t=e.listCardFields;if(t&&!Array.isArray(t)){let i=t;return{titleFields:i.title??[],subtitleFields:i.subtitle??[],contentFields:i.content??[],footerFields:i.footer??[]}}let o=on(e),r=i=>{let s=e.fields[i]?.type;return s==="image"||s==="images"},n=o.filter(i=>!r(i)),a=o.filter(r);return{titleFields:n.length>0?[n[0]]:[],subtitleFields:[],contentFields:[...n.slice(1,4),...a],footerFields:[]}}var Ld={mobile:0,tablet:1,laptop:2,desktop:3};function Dd({cols:e,entity:t}){let o=Rd(t),r=Pd("current"),a=((Array.isArray(e)?e[Ld[r]??3]:e)??1)*3,i=d=>{let l=t.fields[d]?.type;return l==="image"||l==="images"},s=o.contentFields.length>0?D(po,{direction:"column",gap:"tight",children:o.contentFields.map(d=>i(d)?D(Ee,{height:120},d):vt("div",{children:[D(He,{level:"small",variant:"muted",children:D(Ee,{})}),D(He,{children:D(Ee,{})})]},d))}):void 0,c=o.footerFields.length>0?D(He,{level:"small",children:D(Ee,{})}):void 0;return D(tn,{cols:e,children:Array.from({length:a},(d,l)=>D(en,{title:D(Ee,{}),subtitle:o.subtitleFields.length>0?D(Ee,{}):void 0,content:s,footer:c,elevated:!0},l))})}function Fd({entity:e,basePath:t,onClick:o,cols:r=[1,2,3,4],staleTime:n=1e3*60*30,queryOptions:a,filter:i,hideFilters:s=!1,resultLabel:c,tone:d,collapsible:l=!1,defaultOpen:u}){if(!W)return null;let f=xe(),p=t??`/${e.collection}`,{items:m,processed:v,loading:h}=ut(e,{staleTime:n,queryOptions:a}),{isFavorite:g,toggleFavorite:S,favoritesFilter:w}=Or({collection:e.collection}),{showFavoritesOnly:b,setShowFavoritesOnly:I}=Vr({collection:e.collection}),T=v;b&&(T=T.filter(w)),i&&(T=T.filter(i)),T=T.toSorted((k,R)=>{let F=g(String(k.id))?0:1,Z=g(String(R.id))?0:1;return F-Z});let{t:N}=jr([e.namespace,"crud"]),{t:y}=jr("crud"),C=Id(k=>{o?o(k):f(`${p}/${k}`)},[p,f,o]),x=Ad(()=>on(e),[e]),A=N("name",{defaultValue:e.name});return vt(Bd,{children:[!s&&D(Xr,{title:y("filters.title",{entity:A,defaultValue:`Browse ${A} - Filters`}),collapsible:l,defaultOpen:u,tone:d,children:D(en,{children:vt(po,{direction:"column",children:[D(Nd,{variant:b?"primary":"outline",icon:D(Qr,{size:18}),onClick:()=>I(!b),children:b?y("favorites.showAll",{defaultValue:"Show All"}):y("favorites.showFavorites",{defaultValue:"Show Favorites"})}),D(mt,{entity:e,data:m,fieldsToFilter:x})]})})}),D(Xr,{title:h?y("results.title.fetching",{defaultValue:"Fetching..."}):c?c(T.length):y("results.title.count",{count:T.length,defaultValue:T.length===1?"Found 1 occurrence":`Found ${T.length} occurrences`}),collapsible:l,defaultOpen:l?!0:void 0,tone:d,children:h?D(Dd,{cols:r,entity:e}):T.length===0?vt(po,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},children:[D(He,{level:"h3",style:{color:"var(--muted-foreground)"},children:y("emptyState.title",{defaultValue:`No ${e.name.toLowerCase()} found`})}),D(He,{style:{color:"var(--muted-foreground)"},children:y("emptyState.description",{defaultValue:`No ${e.name.toLowerCase()} available at this time.`})})]}):D(tn,{cols:r,children:T.map(k=>{let R=g(k.id),F=o?void 0:`${p}/${k.id}`;return D(gt,{item:k,entity:e,detailHref:F,onClick:o?()=>C(k.id):void 0,renderActions:D(Qr,{fill:R?"#ef4444":"#ffffff",stroke:R?"#ef4444":"var(--muted-foreground)",onClick:Z=>{Z.preventDefault(),Z.stopPropagation(),S(k.id)},style:{cursor:"pointer",width:"var(--icon-md)",height:"var(--icon-md)",transition:"fill 0.2s, stroke 0.2s"},"aria-label":R?y("favorites.remove",{defaultValue:"Remove from favorites"}):y("favorites.add",{defaultValue:"Add to favorites"})})},k.id)})})})]})}import{useEffect as rn,useId as Md,useMemo as ht,useState as zd}from"react";import{FormProvider as Od}from"react-hook-form";import{Badge as Vd,Button as yt,DropdownMenu as Ud,Grid as _d,Stack as Hd,Spinner as Gd}from"@donotdev/components";import{hasRoleAccess as Wd,useTranslation as nn}from"@donotdev/core";import{jsx as Y,jsxs as bt}from"react/jsx-runtime";function mo({entity:e,onSubmit:t,t:o,className:r="",submitText:n,loading:a=!1,defaultValues:i,submitVariant:s="primary",secondaryButtonText:c,secondaryButtonVariant:d="outline",onSecondarySubmit:l,viewerRole:u,operation:f=i?"edit":"create",formId:p,cancelText:m,cancelPath:v,successPath:h,onCancel:g,warnOnUnsavedChanges:S=!0,unsavedChangesMessage:w,hideVisibilityInfo:b=!1}){if(!W)return null;let I=xe(),T=L("userRole"),N=u??T,y=Md(),C=p??`entity-form-${e.name}-${y}`,{t:x}=nn([e.namespace,"crud"]),{t:A}=nn("crud"),k=o||x,F=!b&&(N==="admin"||N==="super"),Z=N==="user"||N==="admin"||N==="super",[j,Ae]=zd(N==="admin"||N==="super"||N==="user"?N:"guest"),_={guest:"muted",user:"secondary",admin:"warning",super:"destructive",technical:"accent",owner:"secondary"},be=["guest","user","admin","super"],ee={guest:"Guest",user:"User",admin:"Admin",super:"Super",technical:"System"},te=ht(()=>be.filter(P=>Wd(N,P)).map(P=>({label:ee[P],checked:j===P,onClick:()=>Ae(P)})),[j,N]),ue=Dr(e,{formId:C,operation:f,defaultValues:i,viewerRole:N,t:k}),{control:Ie,handleSubmit:fo,formState:{errors:go},fields:Ne,formStatus:Pe,uploadProgress:Re,cleanup:vo,isDirty:dn,hasUserInteracted:un,resetForm:pn}=ue,wt=dn&&un,ho=ht(()=>{if(!Z)return Ne;let P=be.indexOf(j);return Ne.filter(({config:V})=>{let oe=V.visibility;return oe==="hidden"?!1:oe==="technical"?!0:be.indexOf(oe)<=P})},[Ne,Z,j]),mn=Mr(ho,Ie);rn(()=>{C&&Br.getState().setIsDirty(C,wt)},[C,wt]),rn(()=>vo,[vo]);let fn=ht(()=>w||A("messages.unsavedChangesLeave",{defaultValue:"You have unsaved changes. Are you sure you want to leave?"}),[w,A]);Fr({isDirty:wt,enabled:S,message:fn});let gn=()=>{pn(),g?g():I(v||"back")},vn=async P=>{try{await t(P),I(h||"back")}catch{}},hn=m!==null,yo=m??A("form.cancel",{defaultValue:"Cancel"}),bo={gridColumn:"1 / -1",position:"sticky",bottom:0,backgroundColor:"var(--background)",borderTop:"1px solid var(--border)",paddingTop:"var(--gap-md)",paddingBottom:"var(--gap-md)",zIndex:10,marginTop:"var(--gap-lg)"},yn=a||f==="edit"&&!i,ie=ht(()=>Pe==="uploading"?{loading:!0,loadingText:Re<100?A("form.uploading",{progress:Math.round(Re),defaultValue:`Uploading ${Math.round(Re)}%...`}):A("form.processing",{defaultValue:"Processing..."}),progress:Re}:Pe==="validating"?{loading:!0,loadingText:A("form.validating",{defaultValue:"Validating..."})}:Pe==="submitting"?{loading:!0,loadingText:A("form.saving",{defaultValue:"Saving..."})}:{loading:!1},[Pe,Re,A]);return Y(Od,{...ue,children:Y(Gr,{formId:C,children:bt("div",{style:{position:"relative",width:"100%",gridColumn:"1 / -1",display:"contents"},children:[yn&&Y(Gd,{overlay:!0}),bt("form",{onSubmit:fo(vn),noValidate:!0,className:r,style:{width:"100%",gridColumn:"1 / -1",display:"contents"},children:[ho.map(({name:P,config:V,editable:oe})=>{let K=mn[P];if(K&&!K.visible)return null;let So=K?{...V,...K.required&&V.validation?{validation:{...V.validation,required:!0}}:K.required?{validation:{required:!0}}:{}}:V,bn=oe&&!K?.disabled&&!K?.readonly,Sn=F&&V.visibility!=="guest",Cn=V.visibility!=="hidden"?_[V.visibility]:void 0,xn=ee[V.visibility]??V.visibility,Co=bn?Y(Hr,{name:P,config:So,control:Ie,errors:go,t:k},P):Y(pt,{name:P,config:So,value:i?.[P],t:k},P);return Sn?bt("div",{style:{position:"relative"},children:[Y(Vd,{as:"span",variant:Cn,style:{position:"absolute",top:0,insetInlineEnd:0,fontSize:"var(--font-size-xs)",zIndex:1},children:xn}),Co]},P):Co}),(()=>{let P=[];if(hn&&yo&&P.push(Y(yt,{type:"button",onClick:gn,disabled:ie.loading,variant:"outline",className:"dndev-w-full",children:yo},"cancel")),Z){let K=_[j]||"muted";P.push(Y(Ud,{trigger:bt(yt,{type:"button",variant:K,disabled:ie.loading,className:"dndev-w-full",children:[A("visibility.preview",{defaultValue:"Preview"}),": ",ee[j]]}),items:te},"preview"))}c&&P.push(Y(yt,{type:"button",onClick:()=>{if(l){let K=ue.getValues();l(K)}},loading:ie.loading,loadingText:ie.loadingText,progress:ie.progress,variant:d,className:"dndev-w-full",children:c},"secondary")),P.push(Y(yt,{type:"submit",loading:ie.loading,loadingText:ie.loadingText,progress:ie.progress,variant:s,className:"dndev-w-full",children:n||A("form.submit",{defaultValue:"Submit"})},"submit"));let V=P.length;if(V===1)return Y(Hd,{direction:"column",gap:"tight",style:bo,children:P[0]});let oe=V===2?"1fr 2fr":V===3?"1fr 1fr 2fr":"1fr 1fr 1fr 2fr";return Y(_d,{cols:["1fr",oe,oe,oe],gap:"tight",style:bo,children:P})})()]})]})})})}import{Card as $d,Section as Kd,Skeleton as St,Stack as Yd}from"@donotdev/components";import{useTranslation as qd,useBreakpoint as Zd}from"@donotdev/core";import{jsx as ye,jsxs as Qd}from"react/jsx-runtime";function Jd({entity:e,queryOptions:t,title:o,basePath:r,cols:n=[1,1,3,3],className:a}){if(!W)return null;let{t:i}=qd([e.namespace,"crud"]),{items:s,loading:c}=ut(e,{queryOptions:t});if(!c&&s.length===0)return null;let d=r??`/${e.collection}`,l=o??i("recommendations.title",{defaultValue:"You may also like"}),u=Zd("current"),f={mobile:0,tablet:1,laptop:2,desktop:3},p=(Array.isArray(n)?n[f[u]??3]:typeof n=="number"?n:3)??1,m=(typeof p=="number"?p:3)*3;return ye(Kd,{title:l,gridCols:n,className:a,children:c?Array.from({length:m},(v,h)=>ye($d,{title:ye(St,{width:"60%"}),subtitle:ye(St,{width:"40%"}),content:Qd(Yd,{direction:"column",gap:"tight",children:[ye(St,{width:"80%"}),ye(St,{width:"50%"})]}),elevated:!0},h)):s.map(v=>ye(gt,{item:v,entity:e,detailHref:`${d}/${v.id}`},v.id))})}import{Button as Xd,Stack as jd,Stepper as eu}from"@donotdev/components";import{useTranslation as tu}from"@donotdev/core";import{Fragment as ru,jsx as Ct,jsxs as nu}from"react/jsx-runtime";function ou({workflow:e,onComplete:t,onStepChange:o,defaultValues:r,viewerRole:n,children:a,className:i}){if(!W)return null;let{t:s}=tu("crud"),c=Ur(e,{onComplete:t,onStepChange:o,defaultValues:r});if(a)return Ct(ru,{children:a(c)});let{currentStep:d,currentStepIndex:l,visibleSteps:u,isFirst:f,isLast:p,isSubmitting:m,stepData:v}=c,h=u.map((g,S)=>({number:S+1,title:g.title,content:null}));return nu(jd,{className:i,gap:"large",children:[Ct(eu,{steps:h,activeStep:l,showStepNumbers:!0,onStepChange:g=>{g<=l&&c.goToStep(g)}}),d.custom?d.custom(c.allData):d.entity?Ct(mo,{entity:d.entity,operation:"create",viewerRole:n,defaultValues:{...v[d.id],...!p&&{status:"draft"}},onSubmit:async g=>{await c.goNext(g)},submitText:p?s("workflow.submit",{defaultValue:"Submit"}):s("workflow.next",{defaultValue:"Next"}),cancelText:f?null:s("workflow.previous",{defaultValue:"Previous"}),onCancel:f?void 0:c.goPrevious,loading:m,warnOnUnsavedChanges:!1,hideVisibilityInfo:!0}):null,d.allowSkip&&!p&&Ct(Xd,{variant:"ghost",onClick:c.skipStep,className:"dndev-w-full",children:s("workflow.skip",{defaultValue:"Skip this step"})})]})}import{createContext as sn,useId as au,use as an}from"react";import{Controller as iu,FormProvider as su,useFormContext as lu}from"react-hook-form";import{Label as cu,Slot as du,cn as uu,Stack as pu}from"@donotdev/components";import{jsx as de}from"react/jsx-runtime";var X0=su,ln=sn({}),j0=({...e})=>de(ln.Provider,{value:{name:e.name},children:de(iu,{...e})}),cn=sn({}),e3=({className:e,...t})=>{let o=au();return de(cn.Provider,{value:{id:o},children:de(pu,{className:e,...t})})},xt=()=>{let e=an(ln);if(!e||!e.name)return null;let t=an(cn);if(!t)return null;let{getFieldState:o,formState:r}=lu(),n=o(e.name,r),{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...n}},t3=({className:e,...t})=>{let o=xt();if(!o)return null;let{error:r,formItemId:n}=o;return de(cu,{className:uu(r&&"text-destructive",e),htmlFor:n,...t})},o3=({...e})=>{let t=xt();if(!t)return null;let{error:o,formItemId:r,formDescriptionId:n,formMessageId:a}=t;return de(du,{id:r,"aria-describedby":o?`${n} ${a}`:`${n}`,"aria-invalid":!!o,...e})},r3=({className:e,...t})=>{let o=xt();if(!o)return null;let{formDescriptionId:r}=o;return de("p",{id:r,className:e,style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},...t})},n3=({className:e,children:t,...o})=>{let r=xt();if(!r)return null;let{error:n,formMessageId:a}=r,i=n?String(n?.message):t;return i?de("p",{id:a,className:e,style:{fontSize:"var(--font-size-sm)",fontWeight:500,color:"var(--destructive)"},...o,children:i}):null};var mu={layoutContainer:"dndev-layout",sidebar:"sidebar",sidebarTop:"sidebar-top",sidebarContent:"sidebar-content",sidebarBottom:"sidebar-bottom",sidebarResizeHandle:"dndev-sidebar-resize-handle",header:"header",main:"main",footer:"footer",container:"dndev-container",pageContainer:"dndev-container",breadcrumbsContainer:"breadcrumbs-container"},fu={zHeader:"dndev-z-header",zSidebar:"dndev-z-sidebar",zOverlay:"dndev-z-overlay",zModal:"dndev-z-modal",zTooltip:"dndev-z-tooltip",zToast:"dndev-z-toast"},g3={...mu,...fu},v3={headerHeight:"--header-height",headerPadding:"--header-padding",headerIconSize:"--header-icon-size",headerLogoMaxHeight:"--header-logo-max-height",sidebarWidth:"--sidebar-width",sidebarPadding:"--sidebar-padding",mainPadding:"--main-padding",mainMaxWidth:"--main-max-width",contentWidth:"--content-width",contentPadding:"--content-padding",footerHeight:"--footer-height",footerPadding:"--footer-padding",zHeader:"--z-header",zSidebar:"--z-sidebar",zFooter:"--z-footer",zOverlay:"--z-overlay",zModal:"--z-modal",zTooltip:"--z-tooltip",zToast:"--z-toast"},h3={headerHeight:"--header-height",headerPadding:"--header-padding",logoSize:"--logo-size",sidebarWidth:"--sidebar-width",sidebarPadding:"--sidebar-padding",footerHeight:"--footer-height",footerPadding:"--footer-padding",layoutGap:"--layout-gap",sectionGap:"--gap-lg",contentGap:"--content-gap",zHeader:"--z-header",zSidebar:"--z-sidebar",zFooter:"--z-footer",zModal:"--z-modal",zTooltip:"--z-tooltip"};export{pl as AppBranding,gl as AppIcon,yl as AppTitle,G as AssetResolver,Dn as AuthGuard,gp as AuthGuardFallback,Vt as AuthHeader,zt as AuthMenu,Pl as Breadcrumbs,Jt as CacheSettings,gf as ConsentBanner,Vo as DnDevNavigationMenu,Jl as DropdownNavigation,Fd as EntityCardList,fd as EntityDisplayRenderer,mo as EntityFormRenderer,Td as EntityList,Jd as EntityRecommendations,ou as EntityWorkflow,Rs as FeatureCard,cs as FeatureDisabled,ec as FloatingLanguageSwitcher,no as FooterBranding,Qc as FooterCopyright,ad as FooterLegalLinks,X0 as Form,o3 as FormControl,r3 as FormDescription,j0 as FormField,e3 as FormItem,t3 as FormLabel,n3 as FormMessage,Sf as GameContainer,kf as GameFlow,Fl as GameTitle,Cp as GoTo,za as GoToInput,Ia as GoToWrapper,ic as HeaderMenu,mc as HeaderNavigation,wn as Icon,Jg as LicenseWatermark,E as Link,Uo as NotFoundPage,kc as Notifications,qe as PageContainer,xs as ProgressBar,bs as RedirectOverlay,Mc as SettingsMenu,Ts as Skeleton,js as TechBento,Gc as ThemeToggle,g3 as allLayoutClasses,zu as createAuthConfig,h3 as cssVariables,gu as isAuthAvailable,F1 as isBillingAvailable,H1 as isCrudAvailable,I1 as isFormStoreAvailable,K1 as isOAuthAvailable,mu as layoutClasses,fu as layoutUtilities,v3 as layoutVariables,T1 as resolveFaviconSet,k1 as resolveLogo,ke as sanitizeSvg,Q1 as tList,$t as techLogos,L as useAuthSafe,Bu as useAuthState,Xe as useAuthVisibility,u1 as useBack,O1 as useBillingVisibility,Lu as useCanAccess,Fn as useCanNavigate,_1 as useCrudSafe,xt as useFormField,oi as useFormStoreSafe,vu as useGoTo,Fu as useHasRole,f1 as useLocation,y1 as useMatch,xe as useNavigate,J as useNavigationItems,xo as useNavigationRoute,$1 as useOAuthSafe,g1 as useParams,m1 as usePrefetch,b1 as useQueryParams,S1 as useRedirectGuard,p1 as useRefresh,v1 as useRouteParam,h1 as useSearchParams,Ft as useStripeBillingSafe,Du as useUserRole,Mu as withAuth};
|
|
3
|
+
`);try{await navigator.clipboard.writeText(h),i(!0),setTimeout(()=>i(!1),2e3)}catch{}},m=()=>{try{t()}catch{typeof window<"u"&&window.location.reload()}},v=()=>{try{l()}catch{typeof window<"u"&&window.history.back()}};return V("div",{className:"dndev-container","data-variant":"standard","data-centered":"true",children:V(No,{variant:Lo.DEFAULT,elevated:!0,className:"dndev-w-full",style:{maxWidth:"65ch",margin:"0 auto"},children:be(Ee,{gap:"large",align:"center",className:"dndev-text-center",children:[V(Ee,{align:"center",justify:"center",style:{width:"5rem",height:"5rem",backgroundColor:"rgba(220, 38, 38, 0.1)",borderRadius:"50%",border:"1px solid var(--destructive)"},children:V(Un,{style:{width:"2.5rem",height:"2.5rem",color:"var(--destructive)"},"aria-hidden":"true"})}),be(Ee,{children:[V("h1",{className:"dndev-text-base","data-level":"h1",style:{fontSize:"var(--font-size-2xl)",fontWeight:"var(--font-weight-bold)",margin:0},children:n("routeError.title","Something went wrong")}),V("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)",margin:0},children:n("routeError.description","We encountered an error while loading this page.")}),V(qn,{variant:Zn.INFO,hideIcon:!0,children:V("div",{style:{fontSize:"var(--font-size-sm)",textAlign:"center"},children:n("routeError.dataSafe","Don't worry, your data is safe.")})})]}),r&&be("code",{style:{padding:"var(--gap-sm) var(--gap-md)",background:"var(--muted)",borderRadius:"var(--radius-full)",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",color:"var(--foreground)"},children:[n("routeError.errorId","Error ID"),": ",r]}),p&&s&&be(No,{variant:Lo.MUTED,className:"dndev-w-full",children:[be(Ee,{direction:"row",align:"center",justify:"between",children:[V("span",{className:"dndev-text-base",style:{fontSize:"var(--font-size-sm)",fontWeight:"var(--font-weight-semibold)",color:"var(--destructive)"},children:"Error Message:"}),V(Ze,{variant:Je.GHOST,icon:a?Wn:Gn,onClick:f,disabled:a,children:a?n("routeError.copied","Copied"):n("routeError.copyDetails","Copy Details")})]}),V("pre",{style:{fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",wordBreak:"break-word",whiteSpace:"pre-wrap",color:"var(--foreground)",margin:0,marginTop:"var(--gap-sm)"},children:s})]}),be(Ee,{className:"dndev-w-full",children:[V(Ze,{variant:Je.DESTRUCTIVE,icon:$n,onClick:m,fullWidth:!0,children:n("routeError.tryAgain","Try Again")}),be(Ee,{direction:"row",justify:"center",children:[V(k,{path:"/",children:V(Ze,{variant:Je.DEFAULT,icon:_n,fullWidth:!0,children:n("routeError.goHome","Go Home")})}),V(Ze,{variant:Je.OUTLINE,icon:Hn,onClick:v,fullWidth:!0,children:n("routeError.goBack","Go Back")})]})]}),V("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)",margin:0},children:n("routeError.contactSupport","If the problem persists, please contact support.")})]})})})},Do=ea;import{jsx as De}from"react/jsx-runtime";function ra(e){return De(ta,{fallback:De("div",{children:"Loading error fallback..."}),children:De(Do,{...e})})}var Qe=({variant:e="standard",density:t,className:o,children:r,centered:n=!0,gapFirst:a=!1})=>De(Ro,{level:"route",fallback:ra,children:De("div",{className:oa("dndev-container",o),"data-variant":e,"data-density":t,"data-centered":n?"true":"false","data-gap-first":a?"true":void 0,children:r})});import{Fragment as va,jsx as M,jsxs as Fe}from"react/jsx-runtime";var ga=sa(()=>import("@donotdev/auth").then(e=>({default:e.MultipleAuthProviders})));function Ep({title:e,description:t,showBackButton:o=!0,onBack:r,className:n=""}){let{t:a}=pa(["auth","common"]),i=ma(),l=fa(),d=()=>{r?r():l()};return M(Qe,{variant:"docs",children:M(Ae,{align:"center",justify:"center",className:ua("dndev-min-h-60",n),style:{paddingTop:"var(--gap-lg)",paddingBottom:"var(--gap-lg)"},children:M(la,{className:"dndev-w-full",style:{maxWidth:"28rem",border:"none",boxShadow:"var(--shadow-xl)"},title:Fe(Ae,{children:[M(Ae,{justify:"center",children:M("div",{style:{borderRadius:"9999px",backgroundColor:"color-mix(in oklab, var(--primary) 10%, transparent)",padding:"var(--gap-md)"},children:M(aa,{className:"dndev-size-touch",style:{color:"var(--primary)"}})})}),M("div",{style:{fontSize:"var(--font-size-2xl)",fontWeight:700},children:a("auth.fallback.title","Authentication Required")}),M("p",{style:{color:"var(--muted-foreground)"},children:a("auth.fallback.description","Please sign in to access this page")})]}),children:Fe(Ae,{children:[Fe(Ae,{gap:"large",children:[M("div",{children:M("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:a("auth.fallback.chooseProvider")})}),M(ia,{fallback:M("div",{children:"Loading providers..."}),children:M(ga,{layout:"vertical",spacing:"tight",fullWidth:!0,ariaLabel:a("auth.fallback.authOptions")})})]}),o&&Fe(va,{children:[M(da,{}),M("div",{children:M(ca,{onClick:d,className:"dndev-gap-sm",icon:na,children:a("common.back")})})]}),Fe(Ae,{gap:"tight",style:{fontSize:"var(--font-size-xs)",color:"var(--muted-foreground)"},children:[M("p",{children:a("auth.fallback.secure")}),M("p",{children:a("auth.fallback.terms")})]})]})})})})}import{useEffect as Fo}from"react";import{useToast as ha}from"@donotdev/components";import{isClient as Bo,safeSessionStorage as Xe,useTranslation as ya}from"@donotdev/core";import{useNavigate as ba}from"@donotdev/ui/routing/hooks";function Sa(){let e=P("user"),t=ba(),{t:o}=ya("dndev"),{toast:r}=ha();return Fo(()=>{!Bo()||!Xe.getItem("dndev.auth.guardToast")||(Xe.removeItem("dndev.auth.guardToast"),r("warning",o("guard.signInRequired","Please sign in to access this page")))},[]),Fo(()=>{if(!e||!Bo())return;let n=Xe.getItem("dndev.auth.returnTo");n&&(Xe.removeItem("dndev.auth.returnTo"),n!==window.location.pathname&&t(n,{replace:!0}))},[e,t]),null}import{Search as Ca}from"lucide-react";import{Button as xa,BUTTON_VARIANT as wa,DISPLAY as Ta}from"@donotdev/components";import{useOverlayStore as ka,useTranslation as Ea}from"@donotdev/core";import{jsx as Aa,jsxs as Ia}from"react/jsx-runtime";var Op=({display:e=Ta.AUTO,className:t,onOpen:o})=>{let{t:r}=Ea("dndev"),n=ka(d=>d.openCommandDialog),i=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgentData?.platform??navigator.platform)?"\u2318K":"Ctrl+K",l=()=>{n(),o?.()};return Ia(xa,{variant:wa.OUTLINE,display:e,icon:Ca,onClick:l,className:t,"aria-label":r("goTo.ariaLabel","Go to page"),children:[r("goTo.label","Go to"),Aa("kbd",{style:{marginInlineStart:"var(--gap-sm)",padding:"0.125rem 0.375rem",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",opacity:.5},children:i})]})};import{Suspense as Pa,lazy as Ra}from"react";import{useEventListener as Na,useOverlayStore as La}from"@donotdev/core";import{jsx as Mo}from"react/jsx-runtime";var Da=Ra(()=>import("./GoToDialog-RU5RP7S2.js")),Fa=()=>{let e=La(t=>t.openCommandDialog);return Na("keydown",t=>{if((t.metaKey||t.ctrlKey)&&t.key==="k"){let o=t.target;if(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable)return;t.preventDefault(),e()}},{target:document,options:{passive:!1,capture:!1}}),Mo(Pa,{fallback:null,children:Mo(Da,{})})},Ba=Fa;import{Search as Ma}from"lucide-react";import{useCallback as zo,useEffect as za,useState as Oa,useRef as Va}from"react";import{Stack as Ua}from"@donotdev/components";import{useOverlayStore as Dt}from"@donotdev/core";import{useTranslation as _a}from"@donotdev/core";import{jsx as je,jsxs as Wa}from"react/jsx-runtime";var Ha=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgent),$a=()=>{let{t:e}=_a("dndev"),[t,o]=Oa(""),r=Va(null),n=Dt(l=>l.isCommandDialogOpen);za(()=>{n||o("")},[n]);let a=zo(()=>{Dt.getState().openCommandDialog(t)},[t]),i=zo(l=>{l.key==="Enter"&&(l.preventDefault(),Dt.getState().openCommandDialog(t))},[t]);return Wa(Ua,{direction:"row",align:"center",className:"dndev-relative dndev-w-full dndev-max-w-sm",role:"search",children:[je(Ma,{className:"dndev-absolute dndev-size-md",style:{insetInlineStart:"0.75rem",opacity:.5},"aria-hidden":"true"}),je("input",{ref:r,type:"text",value:t,onChange:l=>o(l.target.value),onFocus:a,onKeyDown:i,placeholder:e("globalGoTo.searchPlaceholder","Search pages..."),className:"dndev-input dndev-w-full",style:{paddingInlineStart:"2.5rem",paddingInlineEnd:"5rem"},"aria-label":e("globalGoTo.ariaLabel","Search navigation")}),je("div",{className:"dndev-absolute dndev-flex dndev-items-center dndev-text-sm",style:{insetInlineEnd:"0.75rem",gap:"0.25rem",opacity:.5},"aria-hidden":"true",children:je("kbd",{style:{padding:"0.25rem 0.5rem",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",borderRadius:"var(--radius-sm)"},children:Ha?"\u2318K":"Ctrl+K"})})]})},Ga=$a;import{MoreHorizontal as Ka,Link as Oo}from"lucide-react";import{useState as Ya,useEffect as Vo,useRef as qa,useMemo as Za}from"react";import{NavigationMenu as Uo,NavigationMenuListPrimitive as Ja,NavigationMenuItemPrimitive as _o,Button as Qa,DropdownMenu as Xa,cn as et,DISPLAY as ja}from"@donotdev/components";import{useTranslation as ei}from"@donotdev/core";import{jsx as j,jsxs as Ft}from"react/jsx-runtime";var Ho=({routes:e,vertical:t=!1,display:o=ja.AUTO,overflowDetection:r=!1,showIcons:n=!0,className:a,style:i})=>{let{t:l}=ei("dndev"),d=re(),u=e??d,s=qa(null),[c,p]=Ya(u.length),f=Za(()=>u.map(m=>({label:m.label,path:m.path,icon:j(W,{icon:m.icon,fallback:Oo}),children:m.children?m.children.map(v=>({label:v.label,path:v.path,icon:j(W,{icon:v.icon,fallback:Oo})})):void 0})),[u]);if(Vo(()=>{if(!r||u.length===0||t)return;let m=()=>{let h=s.current;if(!h)return;let g=h.getBoundingClientRect(),S=h.querySelectorAll("[data-nav-item]"),w=h.querySelector("[data-more-button]"),C=0,E=w?.offsetWidth||0;for(let R=0;R<S.length;R++){let A=S[R];if(!A)break;if(A.getBoundingClientRect().right-g.left+(R===S.length-1&&w?E:0)<=g.width)C=R+1;else break}p(Math.max(0,C))},v=new ResizeObserver(m);return s.current&&v.observe(s.current),setTimeout(m,0),()=>v.disconnect()},[r,u.length,t]),Vo(()=>{r&&!t&&p(u.length)},[u.length,r,t]),u.length===0)return null;if(r&&!t){let m=Math.min(c,f.length),v=f.slice(0,m),h=f.slice(m);return j(Uo,{className:et(a),style:i||{flex:1},children:Ft(Ja,{ref:s,"data-vertical":"false",style:{display:"flex",alignItems:"center",gap:"var(--gap-sm)",flexWrap:"nowrap",overflow:"hidden"},children:[v.filter(g=>g.path).map((g,S)=>j(_o,{"data-nav-item":!0,children:Ft(k,{path:g.path,className:et("dndev-interactive"),"data-role":"nav-trigger",children:[n&&g.icon,j("span",{className:"dndev-interactive-label",children:g.label})]})},g.path||S)),h.length>0&&j(_o,{"data-more-button":!0,children:j(Xa,{trigger:j(Qa,{className:"dndev-size-touch",style:{flexShrink:0},"aria-label":l("navigation.more","More"),children:j(Ka,{className:"dndev-size-md"})}),items:h.filter(g=>g.path).map(g=>({label:g.label,children:Ft(k,{path:g.path,className:et("dndev-interactive"),"data-role":"menu-item",children:[n&&g.icon,j("span",{className:"dndev-interactive-label",children:g.label})]}),asChild:!0})),contentWidth:"14rem",contentAlign:"end"})})]})})}return j(Uo,{items:f,vertical:t,display:o,className:et(a,t&&"dndev-sidebar-nav-menu"),LinkComponent:k})};import{Home as ti,ArrowLeft as oi,Link as ri}from"lucide-react";import{useMemo as ni}from"react";import{Button as Bt,BUTTON_VARIANT as Mt,Stack as Be,Text as zt}from"@donotdev/components";import{useTranslation as ai}from"@donotdev/core";import{useLocation as ii,useNavigate as si}from"@donotdev/ui/routing/hooks";import{jsx as q,jsxs as tt}from"react/jsx-runtime";function $o(){let{t:e}=ai("dndev"),t=ii(),o=si(),r=re(),n=ni(()=>r.filter(i=>!i.path.includes(":")&&i.path!=="/").slice(0,4),[r]),a=()=>{o("back")};return q(Qe,{variant:"docs",centered:!0,children:tt(Be,{gap:"large",align:"center",justify:"center",children:[tt(Be,{align:"center",children:[q(zt,{level:"h1",style:{fontSize:"clamp(4rem, 12vw, 8rem)",fontWeight:"var(--font-weight-bold)",lineHeight:1,letterSpacing:"-0.02em",background:"linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",margin:0},children:"404"}),q(zt,{level:"h2",style:{fontSize:"var(--font-size-2xl)",fontWeight:"var(--font-weight-semibold)",margin:0},children:e("errors.notFound.title","Page Not Found")}),q(zt,{style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)",textAlign:"center",margin:0},children:e("errors.notFound.description","The page you're looking for doesn't exist or has been moved.")}),t.pathname&&q("code",{style:{padding:"var(--gap-sm) var(--gap-md)",background:"var(--muted)",borderRadius:"var(--radius-md)",fontSize:"var(--font-size-sm)",fontFamily:"var(--font-mono)",color:"var(--foreground)",wordBreak:"break-all",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",border:"1px solid var(--border-hairline)"},children:t.pathname})]}),n.length>0&&tt(Be,{align:"center",children:[q("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-md)",fontWeight:"var(--font-weight-semibold)",margin:0,color:"var(--muted-foreground)"},children:e("errors.notFound.suggestions","You might be looking for:")}),q(Be,{direction:"row",wrap:"wrap",justify:"center",gap:"tight",children:n.map(i=>q(k,{path:i.path,replace:!0,children:q(Bt,{variant:Mt.OUTLINE,icon:q(W,{icon:i.icon,fallback:ri}),"aria-label":e("errors.notFound.navigateTo",`Navigate to ${i.label}`,{label:i.label}),children:i.label})},i.path))})]}),tt(Be,{direction:"row",wrap:"wrap",justify:"center",children:[q(k,{path:"/",replace:!0,children:q(Bt,{variant:Mt.DEFAULT,icon:ti,"aria-label":e("errors.notFound.goHome","Go to home page"),children:e("errors.notFound.goHome","Go Home")})}),q(Bt,{variant:Mt.OUTLINE,icon:oi,onClick:a,"aria-label":e("errors.notFound.goBack","Go back to previous page"),children:e("errors.notFound.goBack","Go Back")})]})]})})}import{useNavigate as Ie,useBack as P1,useRefresh as R1,usePrefetch as N1,useLocation as L1,useParams as D1,useRouteParam as F1,useSearchParams as B1,useMatch as M1,useQueryParams as z1,useRedirectGuard as O1}from"@donotdev/ui/routing/hooks";import{getDndevConfig as Ot,isClient as Se,isDev as Go}from"@donotdev/core";var K=class{static getBrowserSupport(){if(!Se())return{svg:!0,webp:!1,avif:!1};let t=this.cache.get("browser-support");if(t)return t;let o={svg:!0,webp:!1,avif:!1};try{let r=document.createElement("canvas");r.width=1,r.height=1,o.webp=r.toDataURL("image/webp").indexOf("data:image/webp")===0}catch{o.webp=!1}try{let r=document.createElement("canvas");r.width=1,r.height=1,o.avif=r.toDataURL("image/avif").indexOf("data:image/avif")===0}catch{o.avif=!1}return this.cache.set("browser-support",o),o}static extractStringValues(t){let o=[];if(t==null)return o;if(typeof t=="string")o.push(t);else if(Array.isArray(t))for(let r of t)o.push(...this.extractStringValues(r));else if(typeof t=="object")for(let r of Object.values(t))o.push(...this.extractStringValues(r));return o}static assetExists(t){if(!Se())return!1;let o=this.getAssetManifest();return o?this.extractStringValues(o).includes(t):!1}static getAssetManifest(){return Se()&&Ot()?.assets?.mapping||null}static getLogoSvgContent(){return Ot()?.assets?.logoSvgContent||null}static resolveLogo(t){if(t)return t;let o="logo";if(this.cache.has(o))return this.cache.get(o);let n=this.getAssetManifest()?.logo?.optimal||"/logo.svg";return this.cache.set(o,n),n}static directAssetCheck(t){if(!Se())return!1;try{let o=new Image;return o.src=t,!0}catch{return!1}}static resolveFaviconSet(){let t="favicon-set";if(this.cache.has(t))return this.cache.get(t);let o=this.getAssetManifest();if(o?.favicon?.set){let a=o.favicon.set,i=this.assetExists("/icon-512x512.png")?"/icon-512x512.png":this.assetExists("/icon-192x192.png")?"/icon-192x192.png":"/logo.svg",l={svg:a.svg||"/favicon.svg",ico:a.ico||"/favicon.ico",png16:a.png16||i,png32:a.png32||i,apple180:a.apple180||i,android192:a.android192||i,android512:a.android512||i};return this.cache.set(t,l),l}let r=this.assetExists("/icon-512x512.png")?"/icon-512x512.png":this.assetExists("/icon-192x192.png")?"/icon-192x192.png":"/logo.svg",n={svg:this.assetExists("/favicon.svg")?"/favicon.svg":"/logo.svg",ico:this.assetExists("/favicon.ico")?"/favicon.ico":"/favicon.svg",png16:this.assetExists("/favicon-16x16.png")?"/favicon-16x16.png":r,png32:this.assetExists("/favicon-32x32.png")?"/favicon-32x32.png":r,apple180:this.assetExists("/apple-touch-icon.png")?"/apple-touch-icon.png":r,android192:this.assetExists("/icon-192x192.png")?"/icon-192x192.png":r,android512:this.assetExists("/icon-512x512.png")?"/icon-512x512.png":r};return this.cache.set(t,n),n}static resolveFavicon(){let t=this.getAssetManifest();if(t?.favicon?.optimal)return t.favicon.optimal;let o=["/favicon.svg","/favicon.ico","/favicon.png","/logo.svg"];for(let r of o)if(this.assetExists(r))return r;return"/favicon.svg"}static clearCache(){this.cache.clear(),Go()&&Se()}static getDebugInfo(){return{browserSupport:this.getBrowserSupport(),detectedAssets:Se()?Ot()?.assets?.mapping:null,assetManifest:this.getAssetManifest(),cache:Object.fromEntries(this.cache)}}};Ke(K,"cache",new Map);function H1(e){return K.resolveLogo(e)}function $1(){return K.resolveFaviconSet()}Go()&&(K.clearCache(),Se()&&window.addEventListener("DOMContentLoaded",()=>{K.clearCache()}));import*as li from"@donotdev/crud";var Wo={forms:{},startSubmit:()=>{},setUploading:()=>{},setValidating:()=>{},setSubmitting:()=>{},setSuccess:()=>{},setError:()=>{},reset:()=>{},cleanup:()=>{},setIsDirty:(e,t)=>{},hasDirtyForms:()=>!1,getDirtyFormIds:()=>[],getStatus:()=>"idle",isLoading:()=>!1,getUploadProgress:()=>0,getError:()=>null,getIsDirty:()=>!1},Pe=li?.useFormStore,K1=typeof Pe=="function";function ci(e){return Pe?Pe(e):e(Wo)}ci.getState=()=>Pe&&typeof Pe.getState=="function"?Pe.getState():Wo;import{useMemo as di}from"react";function ot(){let e=P("status"),t=P("isAvailable"),o=P("user");return di(()=>({shouldHide:e!=="ready"||!t,isLoading:e==="initializing",isReady:e==="ready"&&t,isAuthenticated:!!o}),[e,t,o])}import*as ui from"@donotdev/billing";import{DEGRADED_BILLING_API as pi}from"@donotdev/core";var Vt=ui?.useStripeBilling;function mi(e){return pi[e]}function Ut(e,t){return Vt?Vt(e,t):mi(e)}var X1=typeof Vt=="function";function om(){let e=P("user"),t=P("status"),o={user:e,status:t},r=Ut("status",o),n=Ut("isAvailable",o);return{shouldHide:!n,isLoading:r==="initializing",isReady:n&&r==="ready"}}import{DEGRADED_CRUD_API as fi}from"@donotdev/core";import*as gi from"@donotdev/crud";var _t=gi?.useCrud;function vi(){return fi}function am(e,t={}){return _t?_t(e,t):vi()}var im=typeof _t=="function";import{DEGRADED_OAUTH_API as hi}from"@donotdev/core";import*as yi from"@donotdev/oauth";var Ht=yi?.useOAuth;function bi(e){return hi[e]}function cm(e){return Ht?Ht(e):bi(e)}var dm=typeof Ht=="function";import{CheckCircle as Si}from"lucide-react";import{List as Ci}from"@donotdev/components";import{translateArray as xi}from"@donotdev/core";import{jsx as Ko}from"react/jsx-runtime";var wi=Si,Ti=16;function gm(e,t,o,r=wi,n=Ti){let a=r;return Ko(Ci,{icon:a?Ko(a,{size:n}):void 0,items:xi(e,t,o),style:{listStyle:"none",paddingInlineStart:0}})}var ki=/<script[\s\S]*?<\/script>/gi,Ei=/<foreignObject[\s\S]*?<\/foreignObject>/gi,Ai=/\s+on\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,Ii=/\s+(?:xlink:)?href\s*=\s*["']\s*javascript:[^"']*["']/gi,Pi=/\s+(?:xlink:)?href\s*=\s*["']\s*data:(?!image\/(?:png|jpe?g|gif|webp|svg\+xml))[^"']*["']/gi;function Re(e){return e.replace(ki,"").replace(Ei,"").replace(Ai,"").replace(Ii,"").replace(Pi,"")}import{Helmet as Ri}from"react-helmet-async";import{useAppConfig as Ni}from"@donotdev/core";import{jsx as U,jsxs as Di}from"react/jsx-runtime";function Li({title:e,fullTitle:t,description:o,image:r,type:n="website",keywords:a,noindex:i,canonicalUrl:l,publishDate:d,modifiedDate:u}){let s=Ni("name")||"",c=t||(e?`${e} | ${s}`:s),p=[];if(o&&p.push(U("meta",{name:"description",content:o},"description"),U("meta",{property:"og:description",content:o},"og:description"),U("meta",{name:"twitter:description",content:o},"twitter:description")),r&&p.push(U("meta",{property:"og:image",content:r},"og:image"),U("meta",{name:"twitter:image",content:r},"twitter:image"),U("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card")),n&&p.push(U("meta",{property:"og:type",content:n},"og:type")),a&&a.length>0){let f=Array.isArray(a)?a.join(", "):a;p.push(U("meta",{name:"keywords",content:f},"keywords"))}return i&&p.push(U("meta",{name:"robots",content:"noindex, nofollow"},"robots")),n==="article"&&(d&&p.push(U("meta",{property:"article:published_time",content:d},"article:published_time")),u&&p.push(U("meta",{property:"article:modified_time",content:u},"article:modified_time"))),p.push(U("meta",{property:"og:title",content:c},"og:title"),U("meta",{name:"twitter:title",content:c},"twitter:title")),Di(Ri,{children:[U("title",{children:c}),l&&U("link",{rel:"canonical",href:l}),p]})}function Cm(e){return e===null?()=>null:()=>U(Li,{...e})}import{Fragment as es,jsx as me,jsxs as ts}from"react/jsx-runtime";var Zo=()=>null,Xi=qo(async()=>{try{return{default:(await import("@donotdev/auth")).ReauthDialog}}catch{return{default:Zo}}}),ji=qo(async()=>{try{return{default:(await import("@donotdev/auth")).ConfirmDeleteDialog}}catch{return{default:Zo}}}),Jo=()=>{let[e]=rt.useState(!1),[t]=rt.useState(!1),[o]=rt.useState(!1),[r]=rt.useState(null);return{showConfirmDialog:e,showPasswordDialog:t,isDeleting:o,error:r,startDeleteFlow:()=>{},confirmDelete:async()=>{},cancel:()=>{}}};Zi()&&import("@donotdev/auth").then(e=>{Jo=e.useDeleteAccount}).catch(e=>{});var nt=e=>{if(!e)return Me;if(typeof e=="function")return e;let t=e.replace(/['"]/g,""),o=Oi[t];return o||Me},$t=({loginPath:e,display:t=Wi.AUTO,"no-tooltip":o=!1,customItems:r=[],className:n,style:a})=>{let{t:i}=Ki("dndev"),{shouldHide:l,isReady:d,isAuthenticated:u}=ot(),s=qi(),c=P("user"),p=P("signOut"),f=Ji("isLaptop"),m=re(),v=Qi(),h=s.profilePath,g=s.authMenuItems||[],S=c?.role,w=Jo(),C=()=>c&&(c.displayName||c.email?.split("@")[0])||"User",E=()=>C().split(" ").map(b=>b.charAt(0)).slice(0,2).join("").toUpperCase(),R=()=>{if(!c)return i("auth.userMenu",{defaultValue:"User menu"});let T=[C()];return c.email&&T.push(c.email),S&&S!=="guest"&&T.push(`Role: ${S}`),T.join(`
|
|
4
|
+
`)},A=Vi(()=>{let T=[];return!f&&c&&T.push({children:me(Gi,{variant:"muted",as:"span",children:`${C()}${c.email?`
|
|
5
|
+
${c.email}`:""}`}),disabled:!0}),h&&T.push({label:i("auth.profile",{defaultValue:"Profile"}),icon:Fi,onClick:()=>v(h)}),g.forEach(b=>{let y=m.find(L=>L.path===b.path),$=b.label||y?.label||b.path.split("/").pop()||"Menu",x=b.icon?nt(b.icon):y?.icon&&(typeof y.icon=="string"||typeof y.icon=="function")?nt(y.icon):Me;T.push({label:$,icon:x,onClick:()=>v(b.path)})}),r.forEach(b=>{if(b.path){let y=m.find(L=>L.path===b.path),$=b.label||y?.label||b.path.split("/").pop()||"Menu",x=b.icon?nt(b.icon):Me;T.push({label:$,icon:x,onClick:()=>v(b.path),disabled:b.disabled,style:b.style})}else if(b.onClick){let y=b.icon?nt(b.icon):Me;T.push({label:b.label,icon:y,onClick:b.onClick,disabled:b.disabled,style:b.style})}}),T.push({label:i("auth.deleteAccount.label",{defaultValue:"Delete Account"}),icon:zi,onClick:w.startDeleteFlow,variant:"destructive"}),T.push({label:i("auth.signOut",{defaultValue:"Sign Out"}),icon:Bi,onClick:()=>p(),variant:"destructive"}),T},[h,g,r,p,w,i,m,f,c,S,C,v]);return Yi().length===0||l||!d||!u?null:ts(es,{children:[me(Yo,{fallback:null,children:me(Xi,{open:w.showPasswordDialog,isLoading:w.isDeleting,error:w.error,onReauth:T=>w.confirmDelete(T),onCancel:w.cancel})}),me(Yo,{fallback:null,children:me(ji,{open:w.showConfirmDialog,isLoading:w.isDeleting,error:w.error,onConfirm:()=>w.confirmDelete(),onCancel:w.cancel})}),me($i,{trigger:me(_i,{variant:Hi.OUTLINE,icon:c?me(Ui,{src:c.photoURL??void 0,fallback:E(),alt:C(),style:{margin:"-4px 0"}}):Mi,display:t,"aria-label":i("auth.userMenu",{defaultValue:"User menu"}),tooltip:!o&&f&&c?R():o?void 0:i("auth.userMenu",{defaultValue:"User menu"}),className:n,style:a,children:C()}),items:A,contentAlign:"end"})]})};import{jsx as z}from"react/jsx-runtime";var er=()=>null;function at({display:e,variant:t=jo.OUTLINE,signInLabel:o,className:r,style:n,children:a,...i}){return z(ns,{variant:t,icon:os,display:e,tooltip:o,className:r,style:n,...i,children:a??o})}var us=Xo(async()=>{try{return{default:(await import("@donotdev/auth")).AuthPartnerButton}}catch{return{default:er}}}),Qo=Xo(async()=>{try{return{default:(await import("@donotdev/auth")).MultipleAuthProviders}}catch{return{default:er}}}),Wt=({display:e=ss.AUTO,variant:t=jo.OUTLINE,className:o,style:r})=>{let{t:n}=ls("dndev"),{shouldHide:a,isLoading:i,isReady:l,isAuthenticated:d}=ot(),u=cs(),s=ds(),[c,p]=rs(!1),f=u.loginPath,m=n("auth.signIn",{defaultValue:"Sign In"}),v=n("auth.loading",{defaultValue:"Loading..."}),h=s.includes("password")||s.includes("emailLink");if(a||!l)return null;if(!d){if(f!==void 0)return z(k,{path:f,prefetch:!0,children:z(at,{display:e,variant:t,signInLabel:m,className:o,style:r})});let g=s[0];return h?z(is,{trigger:z(at,{display:e,signInLabel:m,className:o,style:r}),title:m,open:c,onOpenChange:p,"data-content-size":"form",children:z(Gt,{fallback:z("div",{style:{padding:"var(--gap-md)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:v}),children:z(Qo,{spacing:"medium",onSuccess:()=>p(!1)})})}):s.length>1?z(as,{trigger:z(at,{display:e,signInLabel:m,className:o,style:r}),children:z(Gt,{fallback:z("div",{style:{padding:"var(--gap-md)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:v}),children:z(Qo,{spacing:"tight"})})}):z(Gt,{fallback:z(at,{display:e,signInLabel:m,className:o,style:r,disabled:i,tooltip:i?v:m,children:i?v:m}),children:z(us,{partnerId:g,display:e,className:o,style:r})})}return z($t,{display:e,loginPath:f,className:o,style:r})};import{AlertCircle as ps,RefreshCw as ms,Mail as fs,Cookie as gs}from"lucide-react";import{Card as vs,Button as Kt,BUTTON_VARIANT as Yt,Stack as tr}from"@donotdev/components";import{useTranslation as hs}from"@donotdev/core";import{jsx as ze,jsxs as it}from"react/jsx-runtime";function ys({featureName:e,title:t,description:o,showReviewCookies:r=!1,showContactSupport:n=!0,showRetry:a=!1,supportEmail:i="support@example.com",onRetry:l,onReviewCookies:d,customActions:u,className:s=""}){let{t:c}=hs("ui"),p=o||c("featureDisabled.description","{featureName} is not available. This may be due to missing configuration or disabled features.",{featureName:e}),f=()=>{if(d)d();else{let v=new CustomEvent("openCookieConsent");window.dispatchEvent(v)}},m=()=>{window.location.href=`mailto:${i}?subject=${encodeURIComponent(`Feature Unavailable: ${e}`)}&body=${encodeURIComponent(`I'm experiencing an issue with ${e} not being available.`)}`};return it(vs,{className:s,title:it(tr,{direction:"row",align:"center",gap:"tight",children:[ze(ps,{className:"dndev-size-md",style:{color:"var(--destructive)"}}),t||e]}),subtitle:p,children:[" ",it("div",{style:{display:"grid",gap:"var(--gap-md)"},children:[(r||n||a||u)&&it(tr,{direction:"row",wrap:"wrap",gap:"tight",children:[r&&ze(Kt,{variant:Yt.OUTLINE,onClick:f,icon:gs,children:c("featureDisabled.reviewCookies","Review Cookies")}),n&&ze(Kt,{variant:Yt.OUTLINE,onClick:m,icon:fs,children:c("featureDisabled.contactSupport","Contact Support")}),a&&ze(Kt,{variant:Yt.OUTLINE,onClick:l,icon:ms,children:c("featureDisabled.retry","Retry")}),u]}),ze("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:c("featureDisabled.helpText","If you believe this is an error, please contact support or try refreshing the page.")})]})]})}var bs=ys;import{Lock as st,Shield as or}from"lucide-react";import{useEffect as qt,useRef as rr,useCallback as Ss}from"react";import{Portal as Cs,Spinner as xs,Stack as ws,Text as Oe,Button as Ts}from"@donotdev/components";import{useTranslation as ks,useOverlay as le}from"@donotdev/core";import{jsx as ne,jsxs as ar}from"react/jsx-runtime";var nr={connecting:0,preparing:2e3,redirecting:5e3},Es=1e4;function As(e,t){return t==="none"?null:t==="shield"?or:t==="lock"?st:e?e.startsWith("stripe-")||e.includes("payment")||e.includes("checkout")?st:e.startsWith("oauth-")||e.startsWith("auth-")?or:st:st}function Is(e){return e||"default"}function Ps(){let{t:e}=ks("dndev"),t=le("isRedirectOverlayOpen"),o=le("redirectOperation"),r=le("redirectPhase"),n=le("showCancelButton"),a=le("redirectConfig"),i=le("redirectStartTime"),l=le("setRedirectPhase"),d=le("setShowCancelButton"),u=le("hideRedirectOverlay"),s=rr([]),c=rr(null),p=Ss(()=>{u()},[u]);if(qt(()=>{if(!t||!i)return;let C=a?.cancelTimeout??Es,E=Date.now()-i;s.current.forEach(clearTimeout),s.current=[],c.current&&(clearTimeout(c.current),c.current=null);let R=(H,T)=>{let b=Math.max(0,T-E);if(b>0){let y=setTimeout(()=>{l(H)},b);s.current.push(y)}else l(H)};R("preparing",nr.preparing),R("redirecting",nr.redirecting);let A=Math.max(0,C-E);return c.current=setTimeout(()=>{d(!0),l("timeout")},A),()=>{s.current.forEach(clearTimeout),s.current=[],c.current&&(clearTimeout(c.current),c.current=null)}},[t,i,a?.cancelTimeout,l,d]),qt(()=>{if(!t)return;let C=()=>{u()};return window.addEventListener("popstate",C),()=>window.removeEventListener("popstate",C)},[t,u]),qt(()=>{if(!t)return;let C=()=>{};return document.addEventListener("visibilitychange",C),()=>document.removeEventListener("visibilitychange",C)},[t]),!t)return null;let f=Is(o),m=a?.title??e(`redirectOverlay.${f}.title`,{defaultValue:e("redirectOverlay.default.title")}),v=a?.message??e(`redirectOverlay.${f}.message`,{defaultValue:e("redirectOverlay.default.message")}),h=a?.subtitle??e(`redirectOverlay.${f}.subtitle`,{defaultValue:e("redirectOverlay.default.subtitle")}),g=e(`redirectOverlay.${f}.ariaLabel`,{defaultValue:e("redirectOverlay.default.ariaLabel")}),S=e(`redirectOverlay.phases.${r}`),w=As(o,a?.icon);return ne(Cs,{children:ne("div",{className:"dndev-spinner-overlay",role:"status","aria-busy":"true","aria-label":g,style:{zIndex:"var(--z-overlay, 9999)"},children:ar("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"var(--gap-md)",textAlign:"center",maxWidth:"400px",padding:"var(--gap-lg)"},children:[ar(ws,{direction:"row",align:"center",children:[w&&ne(w,{style:{width:"1.5rem",height:"1.5rem",color:"var(--primary)"},"aria-hidden":"true"}),ne(xs,{variant:"primary"})]}),ne(Oe,{as:"h3",style:{color:"var(--foreground)",margin:0},children:m}),ne(Oe,{variant:"muted",style:{color:"var(--foreground)",minHeight:"1.5em"},children:S}),ne(Oe,{variant:"muted",level:"small",style:{opacity:.8},children:v}),ne(Oe,{variant:"muted",level:"small",style:{opacity:.6},children:h}),ne(Oe,{variant:"muted",level:"small",style:{opacity:.5,marginTop:"var(--gap-sm)"},children:e("redirectOverlay.doNotRefresh")}),n&&ne(Ts,{variant:"ghost",onClick:p,style:{marginTop:"var(--gap-md)"},children:e("redirectOverlay.cancel")})]})})})}import{useEffect as Zt,useState as ir}from"react";import{cn as Rs}from"@donotdev/components";import{jsx as sr}from"react/jsx-runtime";var Ns=({isActive:e=!1,progress:t,useFakeProgress:o=!0,duration:r=2e3,className:n,show:a=!0})=>{let[i,l]=ir(0),[d,u]=ir(!1);Zt(()=>{if(!e||!o||t!==void 0)return;u(!0),l(0);let c=Date.now(),p=setInterval(()=>{let f=Date.now()-c,m=Math.min(f/r*90,90);l(m)},16);return()=>{clearInterval(p)}},[e,o,t,r]),Zt(()=>{t!==void 0&&u(t>0&&t<100)},[t]),Zt(()=>{if(!e){let c=setTimeout(()=>{u(!1),l(0)},300);return()=>clearTimeout(c)}},[e]);let s=t??i;return!a||!d?null:sr("div",{className:Rs(n),style:{position:"fixed",insetInlineStart:0,insetInlineEnd:0,zIndex:9999,height:"4px",backgroundColor:"transparent",top:"var(--header-height, 0px)"},role:"progressbar","aria-valuenow":Math.round(s),"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Page loading progress",children:sr("div",{style:{height:"100%",width:`${s}%`,background:"linear-gradient(to right, var(--primary), color-mix(in srgb, var(--primary) 80%, transparent), color-mix(in srgb, var(--primary) 60%, transparent))",transition:e?"width 0.3s ease-out":"width 0.2s ease-in",boxShadow:"var(--shadow-sm)"}})})},Ls=Ns;import{cn as lt,Stack as Ds}from"@donotdev/components";import{jsx as Ve,jsxs as gf}from"react/jsx-runtime";var Fs=({variant:e="text",width:t,height:o,lines:r=1,show:n=!0,className:a,animation:i="pulse",style:l})=>{if(!n)return null;let d={backgroundColor:"var(--muted)",opacity:"var(--opacity-muted)",borderRadius:"var(--radius)",animation:i==="pulse"||i==="wave"?"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite":"none",...i==="wave"&&{background:"linear-gradient(to right, color-mix(in srgb, var(--muted) 50%, transparent), color-mix(in srgb, var(--muted) 30%, transparent), color-mix(in srgb, var(--muted) 50%, transparent))"}},u=()=>{let s={};return t&&(s.width=typeof t=="number"?`${t}px`:t),o&&(s.height=typeof o=="number"?`${o}px`:o),s};return e==="text"?Ve(Ds,{gap:"tight",children:Array.from({length:r}).map((s,c)=>Ve("div",{className:lt("dndev-skeleton",a),style:{...d,height:"var(--gap-md)",width:c===r-1?"75%":"100%",...u(),...l}},c))}):e==="circular"?Ve("div",{className:lt("dndev-skeleton",a),style:{...d,borderRadius:"var(--radius-full)",width:t||o||"40px",height:o||t||"40px",...u(),...l}}):e==="rectangular"?Ve("div",{className:lt("dndev-skeleton",a),style:{...d,width:t||"100%",height:o||"200px",...u(),...l}}):Ve("div",{className:lt("dndev-skeleton",a),style:{...d,borderRadius:"var(--radius-lg)",width:t||"100%",height:o||"20px",...u(),...l}})};var Bs=Fs;import{Card as Ms,IconBox as zs,Stack as Os,Text as Jt,renderCardContent as Vs}from"@donotdev/components";import{jsx as ae,jsxs as lr}from"react/jsx-runtime";var Us=({icon:e,title:t,subtitle:o,content:r,href:n,variant:a,elevated:i,onClick:l,className:d,footer:u,style:s,clickable:c,...p})=>{let f=Vs(r),h=`calc(var(--font-size-lg) * var(--line-height) * 2 + var(--gap-md)) calc(var(--font-size-base) * var(--line-height) * 2 + var(--gap-md)) 1fr${u?" auto":""}`,g={display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-word",lineHeight:"var(--line-height)"},S={...g,fontSize:"var(--font-size-lg)",fontWeight:600,color:"inherit",margin:0,textAlign:"start",flex:1,minWidth:0},w={...g,fontSize:"var(--font-size-base)",fontWeight:600,color:"var(--muted-foreground)",margin:0},C=e?lr(Os,{direction:"row",align:"center",style:{width:"100%"},children:[ae(zs,{icon:e}),ae(Jt,{as:"div",level:"h3",style:S,children:t})]}):ae(Jt,{as:"div",level:"h3",style:S,children:t}),E=ae(Ms,{variant:a,elevated:i,onClick:l,className:d,"data-clickable":n||l||c?"true":void 0,style:{paddingInlineStart:"var(--gap-md)",paddingInlineEnd:"var(--gap-md)",gap:"var(--gap-md)",height:"100%",textAlign:"start",...s},...p,children:lr("div",{style:{display:"grid",gridTemplateRows:h,gap:"var(--gap-md)",width:"100%"},children:[ae("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:C}),ae("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start"},children:ae(Jt,{as:"div",level:"body",style:w,children:o})}),ae("div",{children:f}),u&&ae("div",{children:u})]})});return n&&!l?ae(k,{path:n,style:{display:"block",textDecoration:"none",height:"100%"},"aria-label":t?`Learn more about ${t}`:void 0,children:E}):E},_s=Us;import{useState as js}from"react";import{Bento as el,Card as tl,Section as ol,Stack as rl,Text as nl,TONE as al,cn as il}from"@donotdev/components";var Hs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#3178C6" d="M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"/></svg>',$s='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#61DAFB" d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></svg>',Gs='<svg role="img" viewBox="0 0 410 404" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="vite-a" x1="6" y1="33" x2="235" y2="344" gradientUnits="userSpaceOnUse"><stop stop-color="#41D1FF"/><stop offset="1" stop-color="#BD34FE"/></linearGradient><linearGradient id="vite-b" x1="195" y1="9" x2="236" y2="293" gradientUnits="userSpaceOnUse"><stop stop-color="#FFEA83"/><stop offset=".08" stop-color="#FFDD35"/><stop offset="1" stop-color="#FFA800"/></linearGradient></defs><path fill="url(#vite-a)" d="M399.641 59.525 215.643 388.545c-3.799 6.793-13.559 6.833-17.415.073L10.582 59.556c-4.201-7.366 2.098-16.29 10.446-14.797l184.195 32.923c1.175.21 2.378.208 3.553-.006l180.343-32.87c8.32-1.517 14.649 7.337 10.522 14.72z"/><path fill="url(#vite-b)" d="M292.965 1.574 156.801 28.255c-2.238.439-3.895 2.335-4.03 4.611l-8.376 141.465c-.197 3.332 2.863 5.918 6.115 5.168l37.91-8.749c3.547-.818 6.752 2.306 6.023 5.873l-11.263 55.153c-.758 3.712 2.727 6.886 6.352 5.785l23.415-7.114c3.63-1.102 7.118 2.081 6.35 5.796l-17.899 86.633c-1.12 5.42 6.088 8.374 9.094 3.728l2.008-3.103 110.954-221.428c1.858-3.707-1.346-7.935-5.418-7.15l-39.022 7.532c-3.667.707-6.787-2.708-5.752-6.296l25.469-88.291c1.036-3.594-2.095-6.612-5.764-5.891z"/></svg>',Ws='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M18.665 21.978C16.758 23.255 14.465 24 12 24 5.377 24 0 18.623 0 12S5.377 0 12 0s12 5.377 12 12c0 3.583-1.574 6.801-4.067 9.001L9.219 7.2H7.2v9.596h1.615V9.251l9.85 12.727Zm-3.332-8.533 1.6 2.061V7.2h-1.6v6.245Z"/></svg>',Ks='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#339933" d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></svg>',Ys='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#DD2C00" d="M19.455 8.369c-.538-.748-1.778-2.285-3.681-4.569-.826-.991-1.535-1.832-1.884-2.245a146 146 0 0 0-.488-.576l-.207-.245-.113-.133-.022-.032-.01-.005L12.57 0l-.609.488c-1.555 1.246-2.828 2.851-3.681 4.64-.523 1.064-.864 2.105-1.043 3.176-.047.241-.088.489-.121.738-.209-.017-.421-.028-.632-.033-.018-.001-.035-.002-.059-.003a7.46 7.46 0 0 0-2.28.274l-.317.089-.163.286c-.765 1.342-1.198 2.869-1.252 4.416-.07 2.01.477 3.954 1.583 5.625 1.082 1.633 2.61 2.882 4.42 3.611l.236.095.071.025.003-.001a9.59 9.59 0 0 0 2.941.568q.171.006.342.006c1.273 0 2.513-.249 3.69-.742l.008.004.313-.145a9.63 9.63 0 0 0 3.927-3.335c1.01-1.49 1.577-3.234 1.641-5.042.075-2.161-.643-4.304-2.133-6.371m-7.083 6.695c.328 1.244.264 2.44-.191 3.558-1.135-1.12-1.967-2.352-2.475-3.665-.543-1.404-.87-2.74-.974-3.975.48.157.922.366 1.315.622 1.132.737 1.914 1.902 2.325 3.461zm.207 6.022c.482.368.99.712 1.513 1.028-.771.21-1.565.302-2.369.273a8 8 0 0 1-.373-.022c.458-.394.869-.823 1.228-1.279zm1.347-6.431c-.516-1.957-1.527-3.437-3.002-4.398-.647-.421-1.385-.741-2.194-.95.011-.134.026-.268.043-.4.014-.113.03-.216.046-.313.133-.689.332-1.37.589-2.025.099-.25.206-.499.321-.74l.004-.008c.177-.358.376-.719.61-1.105l.092-.152-.003-.001c.544-.851 1.197-1.627 1.942-2.311l.288.341c.672.796 1.304 1.548 1.878 2.237 1.291 1.549 2.966 3.583 3.612 4.48 1.277 1.771 1.893 3.579 1.83 5.375-.049 1.395-.461 2.755-1.195 3.933-.694 1.116-1.661 2.05-2.8 2.708-.636-.318-1.559-.839-2.539-1.599.79-1.575.952-3.28.479-5.072zm-2.575 5.397c-.725.939-1.587 1.55-2.09 1.856-.081-.029-.163-.06-.243-.093l-.065-.026c-1.49-.616-2.747-1.656-3.635-3.01-.907-1.384-1.356-2.993-1.298-4.653.041-1.19.338-2.327.882-3.379.316-.07.638-.114.96-.131l.084-.002c.162-.003.324-.003.478 0 .227.011.454.035.677.07.073 1.513.445 3.145 1.105 4.852.637 1.644 1.694 3.162 3.144 4.515z"/></svg>',qs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="m12 1.608 12 20.784H0Z"/></svg>',Zs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#635BFF" d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"/></svg>',Js='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><defs><linearGradient id="vb-a" x1="0.414" y1="0.255" x2="0" y2="0.932" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#eab308"/><stop offset="1" stop-color="#ca8a04"/></linearGradient><linearGradient id="vb-b" x1="0.338" y1="0.02" x2="0.664" y2="0.966" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#fde68a"/><stop offset="1" stop-color="#fbbf24"/></linearGradient><linearGradient id="vb-c" y1="0.5" x2="1" y2="0.5" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#7dd3fc"/><stop offset="1" stop-color="#0ea5e9"/></linearGradient></defs><g transform="translate(-2056 -1899)"><path d="M742.271,987.024c-66.706,0-119.121,54.673-121.874,126.408l-2.551,95.471c-3.967,78.653,71.961,105.52,126.936,105.52Z" transform="translate(1463.458 1004.277)" fill="url(#vb-a)"/><path d="M92.616.01H319.894c54.53-.8,95.624,40.1,98.381,93.335l6.144,135.76c.732,67.368-48.116,94.95-104.525,95.335L92.616,327.374C34.061,327.8-1.063,283.663.022,229.105l3.8-135.76C7.41,33.54,33.3,1.093,92.616.01Z" transform="translate(2118.42 1991.302)" fill="url(#vb-b)"/><path d="M86.844.009H299.958c51.132-.746,89.665,37.307,92.25,86.824l5.761,126.29c.686,62.669-45.117,88.326-98.011,88.685L86.844,304.537C31.938,304.933-1,263.875.02,213.123L3.58,86.834C6.948,31.2,31.222,1.016,86.844.009Z" transform="translate(2136.977 2001.737)" fill="#111827"/><circle cx="27.626" cy="27.626" r="27.626" transform="translate(2421.148 2104.357)" fill="url(#vb-c)"/><circle cx="27.626" cy="27.626" r="27.626" transform="translate(2208.034 2104.357)" fill="url(#vb-c)"/></g></svg>',Qs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#3FCF8E" d="M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"/></svg>',Xs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#FBF0DF" d="M12 22.596c6.628 0 12-4.338 12-9.688 0-3.318-2.057-6.248-5.219-7.986-1.286-.715-2.297-1.357-3.139-1.89C14.058 2.025 13.08 1.404 12 1.404c-1.097 0-2.334.785-3.966 1.821a49.92 49.92 0 0 1-2.816 1.697C2.057 6.66 0 9.59 0 12.908c0 5.35 5.372 9.687 12 9.687v.001ZM10.599 4.715c.334-.759.503-1.58.498-2.409 0-.145.202-.187.23-.029.658 2.783-.902 4.162-2.057 4.624-.124.048-.199-.121-.103-.209a5.763 5.763 0 0 0 1.432-1.977Zm2.058-.102a5.82 5.82 0 0 0-.782-2.306v-.016c-.069-.123.086-.263.185-.172 1.962 2.111 1.307 4.067.556 5.051-.082.103-.23-.003-.189-.126a5.85 5.85 0 0 0 .23-2.431Zm1.776-.561a5.727 5.727 0 0 0-1.612-1.806v-.014c-.112-.085-.024-.274.114-.218 2.595 1.087 2.774 3.18 2.459 4.407a.116.116 0 0 1-.049.071.11.11 0 0 1-.153-.026.122.122 0 0 1-.022-.083a5.891 5.891 0 0 0-.737-2.331Zm-5.087.561c-.617.546-1.282.76-2.063 1-.117 0-.195-.078-.156-.181 1.752-.909 2.376-1.649 2.999-2.778 0 0 .155-.118.188.085 0 .304-.349 1.329-.968 1.874Zm4.945 11.237a2.957 2.957 0 0 1-.937 1.553c-.346.346-.8.565-1.286.62a2.178 2.178 0 0 1-1.327-.62 2.955 2.955 0 0 1-.925-1.553.244.244 0 0 1 .064-.198.234.234 0 0 1 .193-.069h3.965a.226.226 0 0 1 .19.07c.05.053.073.125.063.197Zm-5.458-2.176a1.862 1.862 0 0 1-2.384-.245 1.98 1.98 0 0 1-.233-2.447c.207-.319.503-.566.848-.713a1.84 1.84 0 0 1 1.092-.11c.366.075.703.261.967.531a1.98 1.98 0 0 1 .408 2.114 1.931 1.931 0 0 1-.698.869v.001Zm8.495.005a1.86 1.86 0 0 1-2.381-.253 1.964 1.964 0 0 1-.547-1.366c0-.384.11-.76.32-1.079.207-.319.503-.567.849-.713a1.844 1.844 0 0 1 1.093-.108c.367.076.704.262.968.534a1.98 1.98 0 0 1 .4 2.117 1.932 1.932 0 0 1-.702.868Z"/></svg>',Qt={bun:{svg:`data:image/svg+xml,${encodeURIComponent(Xs)}`,color:"#FBF0DF",name:"Bun"},typescript:{svg:`data:image/svg+xml,${encodeURIComponent(Hs)}`,color:"#3178C6",name:"TypeScript"},react:{svg:`data:image/svg+xml,${encodeURIComponent($s)}`,color:"#61DAFB",name:"React"},vite:{svg:`data:image/svg+xml,${encodeURIComponent(Gs)}`,color:"#BD34FE",name:"Vite"},nextjs:{svg:`data:image/svg+xml,${encodeURIComponent(Ws)}`,color:"var(--foreground, #000000)",name:"Next.js"},nodejs:{svg:`data:image/svg+xml,${encodeURIComponent(Ks)}`,color:"#339933",name:"Node.js"},firebase:{svg:`data:image/svg+xml,${encodeURIComponent(Ys)}`,color:"#DD2C00",name:"Firebase"},supabase:{svg:`data:image/svg+xml,${encodeURIComponent(Qs)}`,color:"#3FCF8E",name:"Supabase"},vercel:{svg:`data:image/svg+xml,${encodeURIComponent(qs)}`,color:"var(--foreground, #000000)",name:"Vercel"},stripe:{svg:`data:image/svg+xml,${encodeURIComponent(Zs)}`,color:"#635BFF",name:"Stripe"},valibot:{svg:`data:image/svg+xml,${encodeURIComponent(Js)}`,color:"#FBBF24",name:"Valibot"}};import{jsx as Ce,jsxs as dl}from"react/jsx-runtime";function sl({techKey:e,variant:t}){let o=Qt[e],[r,n]=js(!1);if(!o)return null;let a=decodeURIComponent(o.svg.replace("data:image/svg+xml,","")),i=Re(a);return Ce(tl,{variant:t,className:"dndev-tech-card",style:{"--tech-color":o.color},"data-hover":r,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:dl(rl,{direction:"column",align:"center",gap:"tight",children:[Ce("div",{className:"dndev-tech-card-logo","data-tech":e,dangerouslySetInnerHTML:{__html:i}}),Ce(nl,{as:"span",level:"small",children:o.name})]})})}function ll({title:e,techs:t,cols:o=3,columns:r,gap:n="medium",separator:a=!1,tone:i=al.GHOST,align:l,collapsible:d,open:u,onOpenChange:s,defaultOpen:c,className:p}){let f=r||(typeof o=="number"?{mobile:o,tablet:o,desktop:o,wide:o}:{mobile:o[0],tablet:o[1],desktop:o[2],wide:o[3]}),m=g=>{if(g==="long")return{cols:2,rows:1};if(g==="high")return{cols:1,rows:2};if(g==="huge")return{cols:2,rows:2}},v=t.filter(g=>Qt[g.name]).map(g=>({id:g.name,content:Ce(sl,{techKey:g.name,variant:g.variant}),span:m(g.size)})),h=Ce(el,{items:v,columns:f,gap:n,ariaLabel:"Technology stack"});return Ce(ol,{title:e,separator:a,tone:i,align:l,collapsible:d,open:u,onOpenChange:s,defaultOpen:c,className:il("dndev-tech-bento",p),children:Ce("div",{className:"dndev-tech-bento-grid",children:h})})}var cl=ll;import{Suspense as ul,lazy as pl}from"react";import{useConsent as cr}from"@donotdev/core";import{jsx as dr}from"react/jsx-runtime";var ml=pl(()=>import("./CookieConsent-UVTR7CWW.js"));function Of(){let e=cr("hasConsented"),t=cr("showBanner");return e&&!t?null:dr(ul,{fallback:null,children:dr(ml,{})})}import{useLayoutEffect as fl}from"react";import{useLayout as ur}from"@donotdev/core";function $f({hideBreadcrumbs:e,preset:t}){let o=ur("setRouteHideBreadcrumbs"),r=ur("setRoutePresetOverride");return fl(()=>(e!=null&&o(e),t!=null&&r(t),()=>{o(!1),r(null)}),[e,t,o,r]),null}import{Button as pr,ScrollArea as gl}from"@donotdev/components";import{cn as mr}from"@donotdev/components";import{jsx as ce,jsxs as vl}from"react/jsx-runtime";function Yf({content:e,cta:t,align:o="center",justify:r="center",disableScrollArea:n=!1,contentVariant:a="narrow",contentClassName:i,ctaClassName:l}){let u=a==="narrow"?a==="narrow"&&ce("div",{className:"dndev-game-container__content-narrow",children:e}):e,s=n?ce("div",{style:{overflow:"auto",overscrollBehavior:"contain",height:"100%"},children:u}):ce(gl,{className:"dndev-game-container__scroll",children:u});return vl("div",{className:"dndev-game-container",children:[ce("div",{className:mr("dndev-game-container__content",i),"data-align":o,"data-justify":r,"data-content-variant":a,children:ce("div",{className:"dndev-game-container__scroll-wrapper",children:s})}),t&&ce("div",{className:mr("dndev-game-container__cta",l),children:Array.isArray(t)?ce("div",{className:"dndev-game-container__cta-buttons",children:t.map((c,p)=>ce(pr,{onClick:c.onClick,disabled:c.disabled??!1,variant:c.variant??"default",className:"dndev-game-container__cta-button",fullWidth:!0,children:c.label},p))}):ce(pr,{onClick:t.onClick,disabled:t.disabled??!1,variant:t.variant??"default",className:"dndev-game-container__cta-button",children:t.label})})]})}import{useEffect as hl,Suspense as yl,lazy as bl}from"react";import{jsx as Xt}from"react/jsx-runtime";var fr=new Set,gr=new Map;function Sl(e,t){let o=gr.get(e);if(o)return o;let r=t[e];if(!r)return null;let n=bl(r);return gr.set(e,n),n}function Qf({screenRegistry:e,currentScreen:t,nextScreen:o,fallback:r=null}){hl(()=>{if(o&&!fr.has(o)){fr.add(o);let a=e[o];a&&a().catch(()=>{})}},[o,e]);let n=t?Sl(t,e):null;return!t||!n?null:Xt("div",{style:{height:"100%"},children:Xt(yl,{fallback:r,children:Xt(n,{})})})}import{cn as Cl,DISPLAY as jt}from"@donotdev/components";import{useAppConfig as vr}from"@donotdev/core";import{jsx as ct,jsxs as Tl}from"react/jsx-runtime";var xl=({display:e=jt.AUTO,linkToHome:t=!0,className:o})=>{let r=vr("name"),a=vr("shortName")||r||"App",i=K.getLogoSvgContent(),l=K.resolveLogo(),d=e===jt.FULL||e===jt.AUTO,u=i?ct("div",{className:"app-branding-logo",role:"img","aria-label":a,dangerouslySetInnerHTML:{__html:Re(i)}}):K.assetExists(l)?ct("img",{src:l,alt:a,className:"app-branding-logo"}):null,s=d&&ct("span",{className:"app-branding-title","data-display":e,children:a}),c=Tl("div",{className:Cl("app-branding",o),"data-display":e,children:[u,s]});return t?ct(k,{path:"/",className:"app-branding-link",children:c}):c},wl=xl;import{cn as hr}from"@donotdev/components";import{useAppConfig as yr}from"@donotdev/core";import{jsx as Sr}from"react/jsx-runtime";var br={sm:{width:"var(--icon-md)",height:"var(--icon-md)"},md:{width:"var(--icon-touch)",height:"var(--icon-touch)"},lg:{width:"var(--icon-touch)",height:"var(--icon-touch)"},xl:{width:"var(--touch-target)",height:"var(--touch-target)"},header:{height:"var(--icon-touch)",width:"auto"}},kl=({alt:e,size:t="header",className:o})=>{let r=yr("name"),n=yr("shortName"),a=e||r||n||"App",i=K.getLogoSvgContent(),l=K.resolveLogo(),d=typeof t=="string"&&t in br?br[t]:typeof t=="string"?{}:{width:t,height:t};return i?Sr("div",{className:hr("app-icon-header",o),style:{display:"inline-flex",...d},role:"img","aria-label":a,dangerouslySetInnerHTML:{__html:Re(i)}}):Sr("img",{src:l,alt:a,className:hr(o),style:{objectFit:"contain",...d}})},El=kl;import{cn as Cr}from"@donotdev/components";import{useAppConfig as xr,useBreakpoint as Al}from"@donotdev/core";import{jsx as wr}from"react/jsx-runtime";var Il=({title:e,className:t,linkToHome:o=!0})=>{let r=Al("isMobileOrTablet"),n=xr("name"),a=xr("shortName"),i=e||r&&a||n||"App",l=wr("div",{className:Cr("dndev-text-base",t),style:{fontSize:"var(--font-size-xl)",fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:i});return o?wr(k,{path:"/",className:Cr("dndev-inline-block",t),children:l}):l},Pl=Il;import{ChevronRight as Bl}from"lucide-react";import{useMemo as Ml}from"react";import{cn as zl}from"@donotdev/components";import{useTranslation as Ol}from"@donotdev/core";import{useLocation as Vl}from"@donotdev/ui/routing/hooks";import{useMemo as Tr}from"react";import{useNavigationStore as Sg,getRoutes as Rl,getRouteManifest as Cg}from"@donotdev/core";function Nl(){return Tr(()=>{try{let e=Rl();return!e||e.length===0?[]:Ll(e)}catch{return[]}},[])}function kr(){let e=Nl();return Tr(()=>e.flatMap(t=>t.routes),[e])}function Ll(e){let t=new Map;return e.forEach(o=>{let r=typeof o.path=="string"?o.path:String(o.path);if(!r||r==="undefined"||r==="null")return;let n=o.meta?.entity||Dl(r)||"other",a={path:r,label:o.meta?.title||Fl(r),icon:o.meta?.icon,component:o.component,importPath:o.importPath,exportName:o.exportName,auth:o.auth,meta:o.meta};t.has(n)||t.set(n,{label:n.charAt(0).toUpperCase()+n.slice(1),routes:[]}),t.get(n)?.routes.push(a)}),Array.from(t.values())}function Dl(e){return e.split("/").filter(Boolean)[0]||null}function Fl(e){let t=e.split("/").filter(Boolean),o=t[t.length-1];return o?o.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "):"Home"}import{jsx as Ue,jsxs as Hl}from"react/jsx-runtime";var Ul=({items:e,separator:t=Bl,showHome:o=!0,homeHref:r="/",variant:n="default",className:a})=>{let{t:i}=Ol("dndev"),l=Vl(),d=kr(),u=Ml(()=>new Set(d.map(p=>p.path)),[d]),s=e||(()=>{let p=l.pathname.split("/").filter(Boolean),f=[],m="";return p.forEach(v=>{m+=`/${v}`;let h=v.split("-").map(S=>S.charAt(0).toUpperCase()+S.slice(1)).join(" "),g=u.has(m)?m:void 0;f.push({label:h,href:g})}),f})(),c=o?[{label:i("navigation.home","Home"),href:r},...s]:s;return n==="smart"&&l.pathname.split("/").filter(Boolean).length<2?null:Ue("nav",{role:"navigation","aria-label":"Breadcrumb navigation",className:zl("breadcrumbs",a),children:c.map((p,f)=>{let v=f===c.length-1||!p.href;return Hl("span",{className:"breadcrumb-item",children:[f>0&&Ue(t,{className:"dndev-size-md separator"}),p.icon&&Ue(p.icon,{className:"dndev-size-md icon"}),p.href&&!v?Ue(k,{path:p.href,className:"breadcrumb-link",children:p.label}):Ue("span",{className:"breadcrumb-label",children:p.label})]},f)})})},_l=Ul;import{useTranslation as $l,maybeTranslate as Er,useLayout as eo,useAppConfig as Gl}from"@donotdev/core";import{jsx as Ne,jsxs as Kl}from"react/jsx-runtime";var Wl=({asLink:e=!1,className:t})=>{let o=Gl("app"),r=eo("gameTitle"),n=eo("gameSubtitle"),a=eo("gameNamespace"),{t:i}=$l(a||"dndev"),l=Er(i,r??void 0),d=Er(i,n??void 0),u=o?.name||"Game";if(l)return Ne("div",{className:t,children:Kl("div",{style:{textAlign:"center"},children:[Ne("h2",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l}),d&&Ne("p",{style:{color:"var(--muted-foreground)",fontSize:"var(--font-size-sm)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d})]})});let s=Ne("h2",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u});return e?Ne(k,{path:"/",className:t,style:{fontSize:"var(--font-size-2xl)",fontWeight:700,transition:"color var(--dur-fast) ease-out"},onMouseEnter:c=>c.currentTarget.style.color="var(--primary)",onMouseLeave:c=>c.currentTarget.style.color="var(--foreground)",children:u}):Ne("div",{className:t,children:s})};import{Trash2 as Yl}from"lucide-react";import{useState as Ar}from"react";import{Button as ql,BUTTON_VARIANT as Zl,Checkbox as Jl,Stack as to,useToast as Ql}from"@donotdev/components";import{useTranslation as Xl}from"@donotdev/core";import{useRefresh as jl}from"@donotdev/ui/routing/hooks";import{jsx as dt,jsxs as Ir}from"react/jsx-runtime";function ec(){let{t:e}=Xl("dndev"),{toast:t}=Ql(),[o,r]=Ar(!1),n=jl(),[a,i]=Ar({localStorage:!0,sessionStorage:!0,applicationCache:!0,serviceWorker:!0,cookies:!0,indexedDB:!0,webSQL:!0,memoryCache:!0}),l=async()=>{try{r(!0);let d=[];if(a.localStorage&&typeof window<"u")try{localStorage.clear(),d.push("localStorage")}catch{}if(a.sessionStorage&&typeof window<"u")try{sessionStorage.clear(),d.push("sessionStorage")}catch{}if(a.indexedDB&&typeof window<"u"&&"indexedDB"in window)try{if("databases"in indexedDB){let s=await indexedDB.databases();await Promise.all(s.map(async c=>{if(c.name){let p=indexedDB.deleteDatabase(c.name);await new Promise((f,m)=>{p.onsuccess=()=>f(void 0),p.onerror=()=>m(p.error)})}}))}d.push("IndexedDB")}catch{}if(a.webSQL&&typeof window<"u"&&"openDatabase"in window)try{let s=globalThis.openDatabase("","","","");s&&s.transaction&&s.transaction(c=>{c.executeSql('SELECT name FROM sqlite_master WHERE type="table"',[],(p,f)=>{for(let m=0;m<f.rows.length;m++){let v=f.rows.item(m).name;/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(v)&&p.executeSql(`DROP TABLE IF EXISTS ${v}`)}})}),d.push("WebSQL")}catch{}if(a.applicationCache&&typeof window<"u"&&"caches"in window)try{let s=await caches.keys();await Promise.all(s.map(async c=>{try{await caches.delete(c)}catch{}})),d.push("Application Cache")}catch{}if(a.serviceWorker&&"serviceWorker"in navigator)try{let s=await navigator.serviceWorker.getRegistrations();await Promise.all(s.map(async c=>{try{await c.unregister()}catch{}})),d.push("Service Workers")}catch{}if(a.cookies)try{document.cookie.split(";").forEach(s=>{let c=s.indexOf("="),p=c>-1?s.slice(0,c):s;document.cookie=`${p.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`,document.cookie=`${p.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${window.location.hostname}`,document.cookie=`${p.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.${window.location.hostname}`}),d.push("Cookies")}catch{}if(a.memoryCache)try{"gc"in window&&typeof globalThis.gc=="function"&&globalThis.gc(),d.push("Memory Cache")}catch{}let u=d.length>0?e("settings.clearCache.success","Cache cleared successfully: {{items}}",{items:d.join(", ")}):e("settings.clearCache.noItemsCleared","No cache items were cleared");t("success",u),d.length>0&&setTimeout(()=>{typeof globalThis<"u"&&globalThis._DNDEV_STORES_&&(globalThis._DNDEV_STORES_={}),typeof window<"u"?window.location.href=window.location.href:n()},1e3)}catch{t("error",e("settings.clearCache.error","Error clearing cache"))}finally{r(!1)}};return Ir(to,{children:[dt(to,{children:Object.entries(a).map(([d,u])=>Ir(to,{direction:"row",align:"center",gap:"tight",children:[dt(Jl,{id:d,checked:u,onCheckedChange:s=>i(c=>({...c,[d]:!!s}))}),dt("label",{htmlFor:d,style:{fontSize:"var(--font-size-sm)",fontWeight:500,lineHeight:1,cursor:"pointer"},children:e(`settings.clearCache.${d}`,d.charAt(0).toUpperCase()+d.slice(1))})]},d))}),dt(ql,{variant:Zl.DESTRUCTIVE,style:{margin:"0 auto"},disabled:o||!Object.values(a).some(Boolean),onClick:l,icon:Yl,children:o?e("settings.clearCache.clearing","Clearing..."):e("settings.clearCache.button","Clear Cache")})]})}var oo=ec;import{DropdownMenu as nc,Button as ro,Stack as ac}from"@donotdev/components";import{Link as tc}from"lucide-react";import{navigationMenuTriggerStylePrimitive as oc}from"@donotdev/components";import{jsx as Pr,jsxs as rc}from"react/jsx-runtime";var ut=({path:e,route:t,showIcons:o=!0})=>{let r=re(),n=t??r.find(l=>l.path===e);if(!n)return null;let a=o&&!!n.icon,i=!!n.label;return rc(k,{path:n.path,className:oc(),...a&&!i&&{"data-display":"compact"},children:[o&&Pr(W,{icon:n.icon,fallback:tc}),Pr("span",{children:n.label})]})};import{jsx as xe}from"react/jsx-runtime";var ic=({navigation:e,className:t})=>xe(ac,{role:"navigation",direction:"row",align:"center",className:t,style:{gap:"var(--gap-sm)"},children:e.map((o,r)=>o.routes&&o.routes.length>0?xe(nc,{trigger:xe(ro,{icon:o.icon,children:o.label}),items:o.routes.map(n=>({label:n.label,children:xe(ut,{route:n}),asChild:!!n.path})),contentAlign:"start"},o.label+r):o.path?xe(ro,{icon:o.icon,"aria-label":o.label,render:({children:n,...a})=>xe(k,{path:o.path,...a,children:n}),children:o.label},o.label+r):xe(ro,{icon:o.icon,disabled:!0,"aria-label":o.label,children:o.label},o.label+r))}),sc=ic;import{Card as lc,cn as cc}from"@donotdev/components";import{jsx as no}from"react/jsx-runtime";var dc=({languages:e,currentLanguage:t,onLanguageChange:o,className:r})=>no(lc,{className:cc("dndev-z-modal",r),style:{position:"fixed",bottom:"var(--gap-md)",insetInlineEnd:"var(--gap-md)",display:"flex",alignItems:"center",gap:"var(--gap-sm)",transition:"var(--dur-fast) ease-out"},role:"region","aria-label":"Language selector","data-role":"floating",children:no("select",{style:{backgroundColor:"transparent",outline:"none",fontSize:"var(--font-size-base)",cursor:"pointer"},value:t,onChange:n=>o?.(n.target.value),"aria-label":"Select language",children:e.map(n=>no("option",{value:n,children:n},n))})}),uc=dc;import{MoreHorizontal as pc}from"lucide-react";import{Button as mc,BUTTON_VARIANT as fc,DropdownMenu as gc}from"@donotdev/components";import{jsx as Rr}from"react/jsx-runtime";var vc=({children:e,className:t})=>Rr(gc,{trigger:Rr(mc,{variant:fc.GHOST,icon:pc,"aria-label":"Menu",className:t}),contentAlign:"end",children:e}),hc=vc;import{MoreHorizontal as yc}from"lucide-react";import{Link as bc}from"lucide-react";import{DISPLAY as _e,DropdownMenu as Sc,Button as Nr}from"@donotdev/components";import{cn as Cc}from"@donotdev/components";import{useBreakpoint as Lr,useTranslation as xc}from"@donotdev/core";import{jsx as we}from"react/jsx-runtime";var wc=({className:e="",showIcons:t=!0,display:o=_e.AUTO,path:r})=>{let{t:n}=xc("dndev"),a=Lr("isMobile"),i=Lr("isTablet"),l=re(),d=ko(r??"");return r?d?we(Nr,{variant:"ghost",display:o,icon:t?we(W,{icon:d.icon,fallback:bc}):void 0,className:e,render:({children:s,...c})=>we(k,{path:d.path,...c,children:s}),children:d.label}):null:(o===_e.AUTO?a||i?_e.COMPACT:_e.FULL:o)===_e.COMPACT?we(Sc,{trigger:we(Nr,{variant:"ghost",icon:yc,"aria-label":n("navigation.menu","Navigation"),className:e}),contentAlign:"end",items:l.map(s=>({label:s.label,children:we(ut,{route:s,showIcons:t}),asChild:!0}))}):we(Ho,{overflowDetection:!0,showIcons:t,className:Cc(e),style:{flex:1}})},Tc=wc;import{Bell as kc}from"lucide-react";import{useMemo as Ec,useEffect as Ac,useRef as Ic}from"react";import{Button as Pc,cn as Rc,toast as Nc,Stack as Lc}from"@donotdev/components";import{jsx as ao}from"react/jsx-runtime";var Dc={sm:{button:{width:"var(--icon-md)",height:"var(--icon-md)"},icon:{width:"var(--icon-md)",height:"var(--icon-md)"},badge:{width:"var(--icon-md)",height:"var(--icon-md)",fontSize:"var(--font-size-xs)"}},md:{button:{width:"var(--touch-target)",height:"var(--touch-target)"},icon:{width:"var(--icon-md)",height:"var(--icon-md)"},badge:{width:"var(--icon-md)",height:"var(--icon-md)",fontSize:"var(--font-size-xs)"}},lg:{button:{width:"var(--touch-target)",height:"var(--touch-target)"},icon:{width:"var(--icon-touch)",height:"var(--icon-touch)"},badge:{width:"var(--icon-touch)",height:"var(--icon-touch)",fontSize:"var(--font-size-sm)"}}},Fc=({notifications:e=[],count:t=0,loading:o=!1,onNotificationClick:r,onDropdownOpen:n,className:a,maxVisible:i=10,alwaysShow:l=!1,size:d="md",disabled:u=!1})=>{let s=Dc[d],c=Ic(new Set),p=Ec(()=>t===0?null:t>99?"99+":t.toString(),[t]),f=t>0||l;return Ac(()=>{e.forEach(m=>{if(!c.current.has(m.id)){c.current.add(m.id);let v=m.type==="error"?"error":m.type==="warning"?"warning":m.type==="success"?"success":"info";Nc({title:m.title,description:m.message,toastType:v,duration:0,onDismiss:()=>{c.current.delete(m.id),r&&r(m)}})}})},[e,r]),f?ao("div",{className:Rc(a),style:{position:"relative"},children:ao(Pc,{disabled:u,style:{...s.button,position:"relative"},onClick:()=>{n?.()},onFocus:m=>{m.currentTarget.style.outline="2px solid var(--ring)",m.currentTarget.style.outlineOffset="2px"},onBlur:m=>{m.currentTarget.style.outline="none"},"aria-label":`${t} notification${t!==1?"s":""}`,icon:kc,children:p&&ao(Lc,{align:"center",justify:"center",style:{position:"absolute",top:"-0.25rem",insetInlineEnd:"-0.25rem",backgroundColor:"var(--destructive)",color:"var(--destructive-foreground)",borderRadius:"var(--radius-full)",fontWeight:600,lineHeight:1,minWidth:0,...s.badge},"aria-hidden":"true",children:p})})}):null},Bc=Fc;import{Settings as Mc,Check as zc}from"lucide-react";import*as pt from"lucide-react";import{Button as Oc,BUTTON_VARIANT as Vc,DropdownMenu as Uc,Stack as _c,DISPLAY as Hc}from"@donotdev/components";import{useTranslation as $c}from"@donotdev/core";import{useLanguageSelector as Gc,useTheme as io,Flag as Wc}from"@donotdev/core";import{jsx as fe,jsxs as qc}from"react/jsx-runtime";function Kc({variant:e=Vc.OUTLINE}={}){let{t}=$c("dndev"),{languages:o,currentLanguage:r,changeLanguage:n,isLoading:a}=Gc(),i=io("availableThemes"),l=io("currentTheme"),d=io("setTheme"),u=f=>{if(!f)return pt.Palette;let m=f.replace(/['"]/g,"");return pt[m]||pt.Palette},s=i.map(f=>{let m=u(f.meta?.icon),v=f.name===l;return{label:f.displayName||f.name,icon:m,onClick:()=>d(f.name),checked:v}}),c=o.map(f=>{let m=f.id===r;return{label:f.name,onClick:()=>n(f.id),disabled:a,checked:m,className:m?"bg-accent":void 0,iconEnd:m&&!a?zc:void 0,children:qc(_c,{direction:"row",align:"center",gap:"tight",children:[fe(Wc,{code:f.flagCode||f.id,title:`${f.name} flag`}),fe("span",{children:f.name}),a&&m&&fe("div",{style:{marginInlineStart:"auto"},children:fe("div",{style:{width:"0.5rem",height:"0.5rem",borderRadius:"50%",backgroundColor:"var(--primary)"}})})]})}}),p=[{label:t("auth.title","Authentication"),subContent:fe(Wt,{display:Hc.COMPACT})},{label:t("settings.theme","Theme"),subItems:s},{label:t("settings.language","Language"),subItems:c},{label:t("settings.clearCache.title","Clear Cache"),subContent:fe(oo,{})}];return fe(Uc,{trigger:fe(Oc,{variant:e,"aria-label":t("settings.title","Settings"),icon:Mc}),items:p,contentWidth:"14rem",contentAlign:"end"})}var Yc=Kc;import*as mt from"lucide-react";import{Button as Dr,BUTTON_VARIANT as Zc,DropdownMenu as Jc,DISPLAY as Qc}from"@donotdev/components";import{useTranslation as Xc}from"@donotdev/core";import{useTheme as so}from"@donotdev/core";import{jsx as co}from"react/jsx-runtime";var lo=e=>{if(!e)return mt.Palette;let t=e.replace(/['"]/g,"");return mt[t]||mt.Palette},jc=({display:e=Qc.AUTO,"no-tooltip":t=!1})=>{let{t:o}=Xc("dndev"),r=so("availableThemes"),n=so("currentTheme"),a=so("setTheme");if(r.length<=1)return null;let i=r.find(g=>g.name===n)||r[0],l=r.length===2?r.find(g=>g.name!==i?.name)||r[0]:null,d=i?lo(i.meta?.icon):null,u=l?lo(l.meta?.icon):null,s=i?.displayName||i?.name||"Theme",c=l?.displayName||l?.name||"Theme",p=r.length===2&&l&&u,f=p?u:d,m=p?t?void 0:o("common.themeSelector.tooltipWithNext","Change Theme: Switch to {{next}}",{next:l?.displayName||l?.name}):t?void 0:o("common.themeSelector.changeTheme","Change Theme"),v={variant:Zc.OUTLINE,"aria-label":o("common.themeSelector.changeTheme","Change Theme"),tooltip:m,icon:f,display:e};if(p&&l)return co(Dr,{...v,onClick:()=>a(l.name),children:c});if(!i||!d)return null;let h=r.map(g=>{let S=lo(g.meta?.icon),w=g.name===n;return{label:g.displayName||g.name,icon:S,onClick:()=>a(g.name),checked:w}});return co(Jc,{trigger:co(Dr,{...v,children:s}),items:h,contentWidth:"10rem"})},ed=jc;import{ExternalLink as td}from"lucide-react";import{getPlatformEnvVar as od}from"@donotdev/core";import{jsx as rd,jsxs as nd}from"react/jsx-runtime";var uo=({className:e})=>{let o=od("APP_URL")==="https://donotdev.com";return nd("a",{href:o?"https://www.ambroise-park.com":"https://donotdev.com",target:"_blank",rel:"noopener noreferrer",className:e,style:{display:"inline-flex",alignItems:"center",gap:"var(--gap-sm)",fontSize:"var(--font-size-xs)"},children:[o?"AMBROISE-PARK":"DoNotDev",rd(td,{style:{width:"12px",height:"12px"},"aria-hidden":"true"})]})};import{cn as ad}from"@donotdev/components";import{useTranslation as id,useAppConfig as sd}from"@donotdev/core";import{jsxs as cd}from"react/jsx-runtime";var ld=({appName:e,year:t=new Date().getFullYear(),className:o})=>{let{t:r}=id("dndev"),n=sd("app"),a=e||n?.name||"App";return cd("span",{className:ad(o),style:{flexShrink:0,color:"var(--muted-foreground)",fontSize:"var(--font-size-xs)"},children:["\xA9 ",t," ",a,". ",r("footer.legal.allRightsReserved")]})};import{Stack as pd}from"@donotdev/components";import{useTranslation as md,maybeTranslate as fd,useAppConfig as gd}from"@donotdev/core";var dd=[{path:"#cookie-settings",label:"footer.legal.cookieSettings"},{label:"footer.legal.privacyPolicy",path:"/privacy"},{label:"footer.legal.termsOfService",path:"/terms"}],ud=e=>e?.legalLinks===null?[]:e?.legalLinks??dd,Fr=ud;import{jsx as Br,jsxs as hd}from"react/jsx-runtime";var vd=({app:e,direction:t="column",gap:o="tight",align:r="stretch"})=>{let{t:n}=md("dndev"),a=gd("app"),l=Fr((e||a||{}).footer),d={transition:"color var(--dur-fast) ease-out",textDecoration:"underline",textUnderlineOffset:"2px",color:"var(--muted-foreground)",fontSize:"var(--font-size-xs)"};return l.length===0?null:hd(pd,{direction:t,gap:o,align:r,children:[l.map(u=>Br(k,{path:u.path,style:d,onMouseEnter:s=>s.currentTarget.style.color="var(--primary)",onMouseLeave:s=>s.currentTarget.style.color="var(--muted-foreground)",children:fd(n,u.label)},u.path)),Br(uo,{})]})};import{useEffect as bd}from"react";import{checkLicense as Sd}from"@donotdev/core";var yd='<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512"><title>logo</title><style>.s0{opacity:.98;fill:#f23d29}.s1{opacity:.99;fill:#03bec4}.s2{opacity:.97;fill:#27494a}</style><g id="Background"><path id="Path 0" fill-rule="evenodd" class="s0" d="m254 41.1c5.8-0.1 15.2 0.4 21 0.9 5.8 0.6 16 2.2 22.8 3.5 6.7 1.4 17.5 4.2 23.9 6.4 6.5 2.1 16.7 6.1 22.8 8.8 6.1 2.7 15.5 7.6 21 10.8 5.5 3.3 14.3 9.2 19.5 13 5.2 3.9 13.8 11.2 19 16.2 5.2 5 12.2 12.3 15.5 16.2 3.3 4 8.8 11.1 12.2 15.9 3.4 4.8 8.7 13.2 11.7 18.7 3 5.5 6.9 13.4 8.7 17.5 1.7 4.1 4.7 12 6.6 17.5 1.9 5.5 4.5 14.5 5.8 20 1.3 5.5 3.1 15.3 3.9 21.8 0.9 6.6 1.6 19 1.6 28.7 0 9.4-0.7 22.1-1.5 28.3-0.8 6.1-3 17.3-4.8 24.7-1.9 7.4-5.5 18.9-8.2 25.5-2.6 6.6-7 16.3-9.8 21.5-2.8 5.2-8 13.8-11.5 19-3.6 5.2-9.3 12.9-12.7 17-3.5 4.1-10.7 11.8-16.2 17-5.4 5.3-12.7 11.9-16.3 14.7-3.6 2.8-11.4 8.3-17.5 12.2-6.1 4-16.4 9.8-23 13.1-6.6 3.2-17.4 7.6-24 9.8-6.6 2.3-17.2 5.2-23.5 6.6-6.3 1.4-16.2 3-22 3.7-6.4 0.7-17.5 1-28.5 0.6-11.9-0.3-21.7-1.2-29-2.6-6.1-1.1-15.9-3.4-22-5.1-6.1-1.7-15.9-5.2-22-7.6-6.1-2.5-15.5-6.9-21-9.8-5.5-2.9-14.1-8-19-11.3-4.9-3.3-12.4-8.7-16.5-12-4.1-3.4-12.5-11.2-18.6-17.4-6.1-6.3-13.9-15.2-17.3-19.9-3.5-4.7-8.8-12.6-11.9-17.5-3-4.9-7.9-13.9-10.8-20-2.9-6.1-7.1-16.4-9.3-23-2.2-6.6-5.1-17.6-6.5-24.5-1.4-6.9-3-17.4-3.7-23.5-0.7-6.7-0.9-17.2-0.6-27 0.4-8.8 1.3-20.5 2.2-26 0.8-5.5 2.7-14.5 4.1-20 1.4-5.5 3.9-14.1 5.5-19 1.7-4.9 6.3-15.8 10.4-24 4-8.3 10-19.1 13.3-24 3.3-4.9 9-12.6 12.5-17 3.6-4.4 11.4-12.8 17.3-18.6 6-5.8 15.4-13.9 20.9-18 5.5-4.1 14.5-10 20-13.2 5.5-3.1 14.5-7.6 20-10.1 5.5-2.4 15.1-6 21.3-8 6.1-2 16.7-4.7 23.5-6.1 6.7-1.3 16.3-2.8 21.2-3.3 4.9-0.5 13.7-1 19.5-1.1zm-21 38c-4.7 0.5-12.1 1.9-16.5 3-4.4 1.1-11.6 3.1-16 4.5-4.4 1.5-13.8 5.4-21 8.9-7.2 3.5-16.1 8.5-20 11.1-3.8 2.6-10 7.2-13.8 10.3-3.7 3.1-6.7 5.9-6.7 6.3 0 0.5 9.3 10.3 20.8 21.9l20.7 21c5.5-10.5 9-16.5 11.5-20.1 2.4-3.6 7.2-9.6 10.5-13.5 3.3-3.8 9.4-9.6 13.5-12.9 4.1-3.2 10.7-7.4 14.5-9.2 3.9-1.8 9.7-4 13-4.9 3.3-0.8 9.6-1.5 14-1.5 4.4 0 10.7 0.7 14 1.6 3.3 0.9 9.1 3.2 13 5.1 3.9 2 9.3 5.2 12 7.3 2.8 2 8.5 7.5 12.9 12.1 4.3 4.6 10.2 11.8 13.1 15.9 2.9 4.1 7.8 12.2 10.8 18 3 5.8 7.1 14.8 9 20 2 5.2 4.2 13 5.1 17.3 0.9 4.2 1.6 11.4 1.6 15.9 0 5.6-0.6 10.6-2.1 15.3-1.1 3.8-3.8 9.9-5.9 13.5-2.1 3.6-5.8 8.9-8.4 11.7-2.5 2.9-4.6 5.6-4.6 6 0 0.5 1.4 1.2 3.2 1.6 1.8 0.4 6.4 2.4 10.3 4.4 3.9 1.9 9 4.9 11.5 6.6 2.5 1.8 7.1 5.9 10.4 9.2 4.2 4.3 7.1 8.6 10.1 15 2.4 4.9 5 11.9 5.9 15.5 0.9 3.6 2.3 11.9 3.2 18.5 1.1 8 1.4 15.9 1.1 23.5l-0.5 11.5 6.3 6.4c6.3-8.1 10.4-13.8 13.1-17.9 2.8-4.1 6.4-10 8.1-13 1.7-3 5.1-10.2 7.6-16 2.5-5.8 5.8-15.2 7.5-21 1.7-5.8 3.7-13.9 4.6-18 0.8-4.1 2-11.9 2.5-17.3 0.6-5.3 1.1-13.5 1.1-18.2 0-4.7-0.5-12.9-1.1-18.3-0.6-5.3-1.9-13.5-2.9-18.2-1-4.7-3.1-12.3-4.5-17-1.5-4.7-5.1-13.4-7.9-19.5-2.9-6.1-7.6-14.8-10.6-19.5-2.9-4.7-7.2-11-9.5-14-2.3-3-7.8-9.3-12.1-13.9-4.3-4.6-12-11.6-16.9-15.6-4.9-4.1-13.1-9.9-18-13-4.9-3.1-13.3-7.7-18.5-10.2-5.2-2.5-13.6-6.1-18.5-7.8-4.9-1.8-14.2-4.5-20.5-5.9-6.3-1.4-17.1-3-24-3.6-6.9-0.5-13.4-0.9-14.5-0.8-1.1 0.1-4.5 0.3-7.5 0.5-3 0.2-9.3 0.8-14 1.4zm-125.4 79.6c-4.3 6.5-9.8 15.9-12.1 20.8-2.4 4.9-5.9 13.7-7.9 19.5-1.9 5.8-4.4 15-5.5 20.5-1.1 5.5-2.5 15.8-3.1 23-0.6 7.2-0.8 16.8-0.5 21.5 0.4 4.7 1.5 13.9 2.5 20.5 1.1 6.6 3.5 17.3 5.4 23.8 2 6.4 5.5 16.1 7.9 21.5 2.3 5.3 6.7 13.8 9.7 18.7 3 4.9 8.1 12.4 11.4 16.5 3.3 4.1 9.8 11.5 14.5 16.3 4.7 4.9 11.8 11.2 15.6 14.2 3.9 2.9 11.1 7.9 16 11 4.9 3.1 13.1 7.6 18 10 4.9 2.4 13.7 5.9 19.5 7.9 5.8 1.9 14.6 4.4 19.5 5.5 4.9 1.1 13.7 2.5 19.5 3.2 6.6 0.7 16.1 0.9 25.5 0.6 9.8-0.4 19.1-1.5 27-3.1 6.6-1.4 16.7-4.1 22.5-6.1 5.8-2 15-5.8 20.5-8.5 5.5-2.7 13.8-7.4 18.5-10.5 4.7-3.2 9.3-6.5 10.3-7.4 1.6-1.5 1.6-1.7-0.5-3.9-1.3-1.2-2.6-2.2-3-2.2-0.5 0-3.4 2-6.5 4.4-3.2 2.4-9.4 6.4-13.8 8.9-4.4 2.6-12.7 6.4-18.5 8.6-5.8 2.2-15.2 5.1-21 6.5-5.8 1.4-14.6 3-19.5 3.7-4.9 0.6-15.7 1.1-24 1.1-8.2 0-19.5-0.7-25-1.6-5.5-0.8-14.7-2.7-20.5-4.1-5.8-1.5-15-4.5-20.5-6.6-5.5-2.2-12.9-5.6-16.5-7.5-3.6-2-10.3-6.1-15-9.2-4.7-3.1-12.7-9.7-17.8-14.7-7.5-7.2-9.5-9.8-10.2-13-0.5-2.2-1-9.9-1-17 0-7.1 0.7-17.3 1.5-22.5 0.8-5.2 2.3-12.8 3.5-16.8 1.1-3.9 3.3-9.8 4.9-12.9 1.6-3.2 4.5-7.8 6.5-10.3 1.9-2.5 6.1-6.6 9.3-9.3 3.2-2.6 9.2-6.5 13.3-8.6 4.1-2.1 9.3-4.4 11.5-5.1 2.2-0.7 4.3-1.5 4.7-1.9 0.4-0.3-1.3-3.1-3.8-6.1-2.5-3-6.1-8.4-8.2-12-2-3.6-4.7-9.9-6-14-1.8-5.6-2.5-10-2.6-17 0-5.2 0.2-11.7 0.5-14.5l0.6-5-49.2-48.5zm117.6 8.2c-4 1.1-9.8 3.1-13 4.3-3.2 1.3-8.4 4.1-11.6 6.3l-5.8 3.9 6.7 6.5c7.5-3.7 9.9-4 24.2-4 13.2 0 17 0.4 20.4 1.8 2.3 0.9 4.5 2.5 5 3.5 0.6 1.2 2 1.7 4.9 1.7 2.8 0 4.2-0.5 4.8-1.7 0.5-1 2.5-2.6 4.5-3.5 3.1-1.5 6.6-1.8 21.7-1.8 9.9 0 19.1 0.5 20.5 1 1.3 0.6 3.1 2 4 3.3 1.1 1.6 1.5 4.8 1.5 11.7 0 7.9-0.4 10.3-2.3 14-1.2 2.4-3.4 5.3-4.7 6.3-1.4 1-4.3 2.2-6.5 2.7-2.2 0.6-7.9 1-12.5 1-4.7 0-10.3-0.4-12.5-1-2.2-0.5-5.2-1.8-6.5-2.8-1.4-1-3.6-3.6-4.8-5.8-1.2-2.1-2.6-6-3-8.6-0.7-4.6-0.9-4.8-4-4.8-3.2 0-3.3 0.2-4.4 5.8-0.6 3.1-1.7 6.9-2.4 8.2-0.7 1.4-2.5 3.7-4.1 5.2-1.6 1.4-4 2.9-5.3 3.3-2.4 0.7-1 2.2 20.5 23.6 12.6 12.6 23.3 22.9 23.7 22.9 0.4 0 4.4-3.5 8.9-7.7 4.5-4.3 10-10.5 12.2-13.8 2.2-3.3 5.5-9.1 7.3-13 1.8-3.8 4.5-11 5.9-16 1.5-4.9 2.9-12.8 3.2-17.5 0.5-6.5 0.2-9.5-1-13-1-2.6-3.5-6.2-5.9-8.5-2.4-2.3-7.7-5.8-11.8-7.8-4.2-2-10.9-4.5-15-5.5-4.2-1.1-11.6-2.5-16.5-3.1-5-0.6-12.6-1-17-0.9-4.4 0-11.2 0.5-15 1-3.9 0.5-10.3 1.8-14.3 2.8zm-13.7 29.2c-0.5 0.9 2 4.1 8.1 10.1 7.5 7.4 9.4 8.7 12.1 8.7 1.8 0 4.2-0.4 5.3-1 1.1-0.5 2.8-2.9 3.9-5.2 1.1-2.4 2-5.8 2-7.8 0.1-1.9-0.6-4.4-1.3-5.5-1.3-1.8-2.8-2-13.3-2.2-6.5-0.1-12.8 0.2-13.9 0.7-1.2 0.5-2.5 1.5-2.9 2.2zm58.5 1.1c-0.8 2.3-0.8 4.4-0.1 7.5 0.6 2.3 2.1 5.3 3.3 6.6 1.6 1.7 3.9 2.6 8.3 3.1 3.3 0.4 8.2 0.5 11 0.1 2.7-0.4 5.7-1.1 6.7-1.7 1-0.5 2.4-2.4 3.3-4.4 0.8-1.9 1.5-5.2 1.5-7.2 0-2.1-0.7-4.8-1.5-6-1.5-2.2-2.1-2.3-15.3-2.2-7.6 0.1-14.3 0.3-14.9 0.6-0.7 0.2-1.7 1.9-2.3 3.6zm-71.9 38c1.7 3.4 5 8.9 7.4 12.2 2.3 3.3 6.9 8.5 10.1 11.6 3.2 3.1 7.9 6.8 10.4 8.2 2.4 1.4 6.5 3.3 9 4.2 2.4 0.8 4.5 1.4 4.7 1.3 0.1-0.2-9.9-10.4-22.3-22.8-12.3-12.3-22.5-22.1-22.5-21.7 0.1 0.4 1.5 3.5 3.2 7z"/><path id="Path 1" class="s1" d="m243 105.6c-3 0.8-8.7 2.9-12.5 4.8-3.8 1.8-10.4 6-14.5 9.2-4.1 3.3-10.2 9.1-13.5 12.9-3.4 3.9-8.4 10.4-11.1 14.5-2.8 4.1-6.5 10.2-8.2 13.5l-3.1 6 14.8 15c9-6.2 15.4-9.4 20.1-11.1 4.7-1.8 12-3.9 16.2-4.8 4.3-0.9 12.4-1.9 18-2.2 6.2-0.4 14.5-0.2 20.8 0.6 5.8 0.6 13.9 2.1 18 3.1 4.1 1.1 10.9 3.6 15 5.6 4.1 2 9.4 5.5 11.8 7.7 2.5 2.4 5 6 5.9 8.6 1.3 3.4 1.5 6.5 1.1 13-0.4 4.7-1.8 12.6-3.2 17.5-1.5 4.9-4.2 12.2-6 16-1.8 3.9-5 9.7-7.3 13-2.2 3.3-8 9.7-12.9 14.3l-8.9 8.3c76.3 76.3 98.8 98 99.2 97.6 0.4-0.5 1-5.7 1.2-11.5 0.2-6.2-0.4-15.7-1.3-22.7-0.9-6.6-2.3-14.9-3.2-18.5-0.9-3.6-3.5-10.6-5.9-15.5-3-6.4-5.9-10.7-10.1-15-3.3-3.3-7.9-7.4-10.4-9.2-2.5-1.7-7.6-4.7-11.5-6.6-3.9-2-8.5-4-10.3-4.4-1.8-0.4-3.2-1.1-3.2-1.5 0-0.5 2.1-3.2 4.6-6 2.6-2.9 6.3-8.2 8.4-11.8 2.1-3.6 4.8-9.6 5.9-13.5 1.5-4.7 2.1-9.7 2.1-15.2 0-4.6-0.7-11.8-1.6-16-0.9-4.3-3.1-12.1-5.1-17.3-1.9-5.2-6-14.2-9-20-3-5.8-7.9-13.9-10.8-18-2.9-4.1-8.8-11.3-13.1-15.9-4.4-4.6-10.2-10.1-12.9-12.1-2.8-2.1-8.1-5.3-12-7.3-3.9-1.9-9.7-4.2-13-5.1-3.3-0.9-9.8-1.5-14.5-1.5-4.7 0-11 0.7-14 1.5zm-78.7 93.9c-0.4 2.2-0.8 8.7-0.7 14.5 0.1 8.3 0.6 12.1 2.5 18 1.4 4.1 4.1 10.4 6.1 14 2.1 3.6 5.7 9 8.2 12 2.5 3 4.2 5.8 3.8 6.1-0.4 0.4-2.5 1.2-4.7 1.9-2.2 0.7-7.4 3-11.5 5.1-4.1 2.1-10.1 6-13.3 8.6-3.2 2.7-7.4 6.8-9.3 9.3-2 2.5-4.9 7.1-6.5 10.3-1.6 3.1-3.8 9-4.9 13-1.2 3.9-2.7 11.5-3.5 16.7-0.8 5.2-1.5 15.4-1.5 22.5 0 7.1 0.5 14.8 1 17 0.7 3.2 2.7 5.8 10.2 13 5.1 5 13.1 11.6 17.8 14.7 4.7 3.1 11.4 7.2 15 9.2 3.6 1.9 11 5.3 16.5 7.5 5.5 2.1 14.7 5.1 20.5 6.6 5.8 1.4 15 3.3 20.5 4.1 5.5 0.9 16.8 1.6 25 1.6 8.3 0 19.1-0.5 24-1.1 4.9-0.7 13.7-2.3 19.5-3.7 5.8-1.4 15.2-4.3 21-6.5 5.8-2.2 14.1-6 18.5-8.6 4.4-2.5 10.8-6.7 14.2-9.2 3.5-2.5 6.3-4.9 6.3-5.3 0-0.5-26.5-27-58.8-59-54.3-53.8-59.2-58.4-63.8-59.8-2.7-0.8-7.4-3-10.4-4.8-3-1.8-7.9-5.7-10.8-8.5-3-2.9-7.3-7.9-9.7-11.2-2.4-3.3-6.4-10.3-8.9-15.5-4.2-8.7-5.6-10.6-18-23l-13.5-13.5z"/><path id="Path 2" fill-rule="evenodd" class="s2" d="m225.8 184c13.2 0 17 0.3 20.3 1.8 2.3 0.9 4.6 2.5 5 3.5 0.6 1.2 2.1 1.7 4.9 1.7 2.8 0 4.3-0.5 4.9-1.8 0.4-0.9 2.5-2.5 4.5-3.5 3-1.4 6.5-1.7 21.6-1.7 9.9 0 19.1 0.4 20.5 1 1.4 0.6 3.2 2 4 3.3 1.2 1.6 1.6 4.8 1.6 11.7-0.1 7.9-0.4 10.3-2.3 13.9-1.3 2.5-3.4 5.3-4.8 6.3-1.4 1-4.3 2.3-6.5 2.8-2.2 0.5-7.8 1-12.5 1-4.7 0-10.3-0.5-12.5-1-2.2-0.5-5.1-1.8-6.5-2.8-1.4-1-3.5-3.6-4.7-5.8-1.3-2.1-2.6-6-3-8.7-0.8-4.5-0.9-4.7-4.1-4.7-3.1 0-3.2 0.2-4.3 5.8-0.6 3.1-1.7 6.8-2.4 8.2-0.7 1.4-2.6 3.7-4.2 5.2-1.5 1.5-3.9 3-5.3 3.3-2 0.6-3.3 0-6.8-3.1-2.4-2.2-4.3-4.2-4.2-4.6 0-0.5 1.3-0.8 3-0.8 1.6 0 3.9-0.4 5-1 1.1-0.6 2.9-2.9 4-5.2 1.1-2.4 2-5.9 2-7.8 0-1.9-0.6-4.4-1.4-5.5-1.3-1.8-2.6-2-14.4-2-11.6 0-13.2 0.2-17.1 4l-4-4.5c-2.1-2.5-3.7-4.8-3.5-5.2 0.2-0.5 1.9-1.5 3.6-2.3 2.5-1 7.5-1.4 19.5-1.5zm44.3 13.3c-0.8 2.3-0.8 4.4-0.1 7.5 0.6 2.3 2.1 5.3 3.3 6.6 1.7 1.7 3.9 2.5 8.3 3.1 3.3 0.4 8.2 0.4 11 0 2.7-0.3 5.8-1.1 6.7-1.6 1-0.5 2.5-2.5 3.3-4.4 0.8-1.9 1.5-5.2 1.5-7.2 0-2.1-0.7-4.8-1.5-6-1.4-2.2-2.1-2.3-15.3-2.2-7.5 0-14.2 0.3-14.9 0.5-0.6 0.3-1.7 2-2.3 3.7zm-40 126.7c0.3-0.1 2.2 2 8 9l-23.5 22.7 22.4 23.8-7.8 8-16.1-15.5c-8.8-8.5-16.2-15.8-16.3-16.2-0.1-0.3 7.3-7.6 16.3-16.2 9.1-8.6 16.7-15.6 17-15.6zm33.5 0l4 0.1c2.2 0.1 5 0.4 6.1 0.7 2.1 0.7 1.8 1.7-19.4 62.7l-5.3-0.3c-3-0.2-5.6-0.5-5.9-0.7-0.3-0.2 4.2-14.4 10-31.4zm20.7 3.9l2.7 1.9c1.4 1.1 8.2 7.3 27.6 26l-15.5 15.6c-8.5 8.6-16 15.6-16.7 15.6-0.7 0-2.9-2-8.3-8.5l23.2-22-6.8-6.7c-3.8-3.7-8.1-7.6-9.6-8.8-1.5-1.1-2.8-2.5-2.9-3.1 0-0.6 1.4-3.1 3.1-5.5z"/></g></svg>',Mr=`data:image/svg+xml,${encodeURIComponent(yd)}`;import{jsx as po,jsxs as zr}from"react/jsx-runtime";function w0(){let e=Sd();return bd(()=>{e.isValid},[e.isValid]),e.isValid?null:zr("a",{href:"https://donotdev.com/pricing",target:"_blank",rel:"noopener noreferrer",style:{position:"fixed",insetInlineEnd:"20px",top:"50%",transform:"translateY(-50%)",zIndex:9999,display:"flex",alignItems:"center",gap:"12px",padding:"12px 16px",backgroundColor:"rgba(255, 255, 255, 0.95)",border:"2px solid rgba(242, 61, 41, 0.3)",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",textDecoration:"none",transition:"all 0.2s ease",cursor:"pointer",opacity:.9},onMouseEnter:t=>{t.currentTarget.style.opacity="1",t.currentTarget.style.transform="translateY(-50%) scale(1.05)"},onMouseLeave:t=>{t.currentTarget.style.opacity="0.9",t.currentTarget.style.transform="translateY(-50%) scale(1)"},children:[po("img",{src:Mr,alt:"DoNotDev Logo",style:{width:"48px",height:"48px",flexShrink:0}}),zr("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:[po("div",{style:{fontFamily:"system-ui, sans-serif",fontSize:"13px",fontWeight:"600",color:"#27494a",lineHeight:"1.2"},children:"DoNotDev"}),po("div",{style:{fontFamily:"system-ui, sans-serif",fontSize:"11px",fontWeight:"500",color:"#f23d29",lineHeight:"1.2"},children:"Get License"})]})]})}import{useEffect as Cd,useState as mo,useMemo as xd}from"react";import{Stack as fo,Spinner as wd}from"@donotdev/components";import{useTranslation as jr,isFieldVisible as Td}from"@donotdev/core";import*as F from"@donotdev/crud";var Y=typeof F?.useCrud=="function",Or=F?.useEntityForm,Vr=F?.useUnsavedChangesWarning,Ur=F?.useFormStore,_r=F?.useFieldConditions,ft=F?.useCrud,Hr=F?.useCrudList,gt=F?.useCrudCardList,$r=F?.useEntityFavorites,Gr=F?.useCrudFilters,Wr=F?.useCrudPageSize,Kr=F?.useEntityWorkflow,Yr=F?.useReferenceResolver,vt=F?.DisplayFieldRenderer,qr=F?.FormFieldRenderer,Zr=F?.UploadProvider,ht=F?.EntityFilters,Jr=F?.CrudCard,Qr=F?.translateFieldLabel,Xr=F?.formatValue;import{jsx as Te,jsxs as Ed}from"react/jsx-runtime";function kd({entity:e,id:t,t:o,className:r="",loadingMessage:n,notFoundMessage:a,viewerRole:i,excludeFields:l,preview:d}){if(!Y)return null;let u=!!d,s=P("userRole"),c=i??(u?"super":s),{get:p,loading:f,data:m,error:v,isAvailable:h}=ft(e),[g,S]=mo(!1),[w,C]=mo(null),[E,R]=mo(null),{t:A}=jr([e.namespace,"crud"]),{t:H}=jr("crud"),T=o||A;Cd(()=>{if(u)return;if(!t){R(null),C(null),S(!1);return}if(!h||!p)return;let L=!1;return S(!0),C(null),p(t).then(B=>{L||(S(!1),B?(R(B),C(null)):(R(null),C(new Error("Entity not found"))))}).catch(B=>{L||(S(!1),C(B instanceof Error?B:new Error(String(B))),R(null))}),()=>{L=!0}},[t,p,h,u]);let b=u?d:m||E,y=u?null:v||w,$=u?!1:f||g||!t,x=xd(()=>b?Object.entries(e.fields).filter(([L,B])=>{if(l?.includes(L)||!Td(B.visibility,c)||B.visibility==="hidden")return!1;let D=b[L];return!(D==null||typeof D=="string"&&D.trim()===""||Array.isArray(D)&&D.length===0||typeof D=="object"&&!Array.isArray(D)&&D!==null&&Object.keys(D).length===0)}):[],[e.fields,c,b,l]);return $?Te("div",{style:{position:"relative",width:"100%",gridColumn:"1 / -1",display:"contents"},className:r,children:Te(wd,{overlay:!0,"aria-label":n||H("form.loading",{defaultValue:"Loading..."})})}):y||!b?Te(fo,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},className:r,children:Ed(fo,{direction:"column",gap:"tight",children:[Te("h3",{style:{color:"var(--muted-foreground)"},children:a||H("errors.notFound",{defaultValue:`${e.name} not found`})}),y&&Te("p",{style:{color:"var(--destructive)",fontSize:"var(--font-size-sm)"},children:y instanceof Error?y.message:String(y)})]})}):Te(fo,{direction:"column",className:r,children:x.map(([L,B])=>Te(vt,{name:L,config:B,value:b[L],t:T},L))})}import{RefreshCw as Ad,Plus as Id,Trash2 as Pd,Edit as Rd,Search as Nd}from"lucide-react";import{useMemo as Ld,useCallback as He,useState as en}from"react";import{DataTable as Dd,Button as go,Stack as vo,ActionButton as Fd,Section as tn,Input as Bd}from"@donotdev/components";import{useTranslation as on}from"@donotdev/core";import{Fragment as zd,jsx as de,jsxs as yt}from"react/jsx-runtime";function Md({entity:e,basePath:t,onClick:o,hideFilters:r=!1,pagination:n="auto",pageSize:a,queryOptions:i,exportable:l=!0,preview:d,tone:u}){if(!Y)return null;let s=!!d,c=Ie(),p=t??`/${e.collection}`,f=Yr(e,!s),[m,v]=en(1),{pageSize:h,setPageSize:g}=Wr({collection:e.collection,...a!=null&&{defaultPageSize:a}}),[S,w]=en(""),{data:C,items:E,processed:R,loading:A,mutate:H,effectiveMode:T}=Hr(e,{enabled:!s,pagination:n,searchQuery:S,...i&&{queryOptions:i},...(n==="server"||n==="auto")&&{page:m,pageSize:h}}),b=s?d:R,y=s?!1:A,{delete:$}=ft(e),{t:x}=on("crud"),{t:L}=on([e.namespace,"crud"]),B=He(async()=>{await H()},[H]),D=He(G=>{s||c(`${p}/${G}`)},[p,c,s]),O=He(G=>{s||(o?o(G):c(`${p}/${G}`))},[p,c,o,s]),ee=He(()=>{s||c(`${p}/new`)},[p,c,s]),te=He(async G=>{s||await $(G)},[$,s]),oe=Ld(()=>{let We=(e.listFields||Object.keys(e.fields)).map(he=>{let Q=e.fields[he];if(!Q)return null;let ie=Qr(he,Q,L),ue=Q.type||"text";return{key:he,title:ie,dataIndex:he,sortable:!s,filterable:!s,align:ue==="number"||ue==="range"?"end":"start",render:(It,Pt)=>Xr(It,Q,L,{compact:!0,referenceData:f,item:Pt})}}).filter(Boolean);return We.unshift({key:"_actions",title:x("actions.label",{defaultValue:"Actions"}),dataIndex:void 0,sortable:!1,width:120,align:"center",render:(he,Q)=>yt(vo,{direction:"row",gap:"tight",align:"center",justify:"center",children:[de(go,{variant:"outline",icon:Rd,disabled:s,onClick:ie=>{ie.stopPropagation(),D(Q.id)},"aria-label":x("edit",{defaultValue:"Edit"})}),de(Fd,{action:async()=>{await te(Q.id)},confirmText:x("delete.confirm",{defaultValue:"Are you sure you want to delete this item?"}),confirmTitle:x("delete.title",{defaultValue:"Delete Item"}),loadingText:x("delete.loading",{defaultValue:"Deleting..."}),variant:"destructive",icon:Pd,disabled:s,"aria-label":x("delete",{defaultValue:"Delete"}),children:x("delete",{defaultValue:"Delete"})})]})}),We},[e,L,x,D,te,s]),Ge=L("name",{defaultValue:e.name}),ve=b.length;return yt(zd,{children:[de(tn,{title:x("filters.title",{entity:Ge,defaultValue:`Browse ${Ge} - Filters`}),collapsible:!0,defaultOpen:!0,tone:u,children:yt(vo,{children:[yt(vo,{direction:"row",gap:"tight",align:"center",className:"dndev-w-full",style:{display:"grid",gridTemplateColumns:"1fr auto auto"},children:[de(Bd,{placeholder:x("search.placeholder",{defaultValue:"Search..."}),value:S,onChange:G=>w(G.target.value),icon:Nd,className:"dndev-w-full",disabled:s}),de(go,{icon:Ad,variant:"outline",onClick:B,disabled:s||y,display:"compact","aria-label":x("refresh",{defaultValue:"Refresh"})}),de(go,{icon:Id,onClick:ee,display:"compact",disabled:s,children:x("addNew",{defaultValue:"Add New"})})]}),!r&&de(ht,{entity:e,data:E,fieldsToFilter:e.listFields})]})}),de(tn,{title:y?x("results.title.fetching",{defaultValue:"Fetching..."}):x("results.title.count",{count:ve,defaultValue:ve===1?"Found 1 occurrence":`Found ${ve} occurrences`}),collapsible:!0,defaultOpen:!0,tone:u,children:de(Dd,{data:b,columns:oe,sortable:!s,searchable:!1,pagination:!0,loading:y,onRowClick:s?void 0:G=>O(G.id),showingLabel:x("pagination.showing",{defaultValue:"Showing {{from}} to {{to}} of {{total}} entries"}),paginationPreviousLabel:x("pagination.previous",{defaultValue:"Previous"}),paginationNextLabel:x("pagination.next",{defaultValue:"Next"}),paginationItemsPerPagePlaceholder:x("pagination.itemsPerPagePlaceholder",{defaultValue:"Items per page"}),pageSize:h,onPageSizeChange:g,...!s&&T==="server"&&{currentPage:m,total:C?.total,onPageChange:v},exportable:s?!1:l,exportFilename:`${e.collection}-export`,exportLabel:x("export",{defaultValue:"Export"})})})]})}import{Heart as nn}from"lucide-react";import{useMemo as Od,useCallback as Vd}from"react";import{Card as ln,Grid as cn,Stack as ho,Text as $e,Skeleton as Le,Section as an,Button as Ud}from"@donotdev/components";import{useTranslation as sn,getListCardFieldNames as dn,useBreakpoint as _d}from"@donotdev/core";import{jsx as rn}from"react/jsx-runtime";function bt({detailHref:e,onClick:t,...o}){if(!Y)return null;let r=rn(Jr,{...o,onClick:e?void 0:t});return e?rn(k,{path:e,"aria-label":o.item?.id?`View ${o.item.id}`:void 0,children:r}):r}import{Fragment as Kd,jsx as N,jsxs as St}from"react/jsx-runtime";function Hd(e){let t=e.listCardFields;if(t&&!Array.isArray(t)){let i=t;return{titleFields:i.title??[],subtitleFields:i.subtitle??[],contentFields:i.content??[],footerFields:i.footer??[]}}let o=dn(e),r=i=>{let l=e.fields[i]?.type;return l==="image"||l==="images"},n=o.filter(i=>!r(i)),a=o.filter(r);return{titleFields:n.length>0?[n[0]]:[],subtitleFields:[],contentFields:[...n.slice(1,4),...a],footerFields:[]}}var $d={mobile:0,tablet:1,laptop:2,desktop:3};function Gd({cols:e,entity:t}){let o=Hd(t),r=_d("current"),a=((Array.isArray(e)?e[$d[r]??3]:e)??1)*3,i=u=>{let s=t.fields[u]?.type;return s==="image"||s==="images"},l=o.contentFields.length>0?N(ho,{direction:"column",gap:"tight",children:o.contentFields.map(u=>i(u)?N(Le,{height:120},u):St("div",{children:[N($e,{level:"small",variant:"muted",children:N(Le,{})}),N($e,{children:N(Le,{})})]},u))}):void 0,d=o.footerFields.length>0?N($e,{level:"small",children:N(Le,{})}):void 0;return N(cn,{cols:e,children:Array.from({length:a},(u,s)=>N(ln,{title:N(Le,{}),subtitle:o.subtitleFields.length>0?N(Le,{}):void 0,content:l,footer:d,elevated:!0},s))})}function Wd({entity:e,basePath:t,onClick:o,cols:r=[1,2,3,4],staleTime:n=1e3*60*30,queryOptions:a,filter:i,hideFilters:l=!1,resultLabel:d,tone:u,renderCardOverlay:s,clientSort:c,collapsible:p=!1,defaultOpen:f,preview:m}){if(!Y)return null;let v=!!m,h=Ie(),g=t??`/${e.collection}`,{items:S,processed:w,loading:C}=gt(e,{enabled:!v,staleTime:n,queryOptions:a,clientSort:c}),E=v?!1:C,{isFavorite:R,toggleFavorite:A,favoritesFilter:H}=$r({collection:e.collection}),{showFavoritesOnly:T,setShowFavoritesOnly:b}=Gr({collection:e.collection}),y=v?m:w;v||(T&&(y=y.filter(H)),i&&(y=y.filter(i)),y=y.toSorted((O,ee)=>{let te=R(String(O.id))?0:1,oe=R(String(ee.id))?0:1;return te-oe}));let{t:$}=sn([e.namespace,"crud"]),{t:x}=sn("crud"),L=Vd(O=>{v||(o?o(O):h(`${g}/${O}`))},[g,h,o,v]),B=Od(()=>dn(e),[e]),D=$("name",{defaultValue:e.name});return St(Kd,{children:[!l&&N(an,{title:x("filters.title",{entity:D,defaultValue:`Browse ${D} - Filters`}),collapsible:p,defaultOpen:f,tone:u,children:N(ln,{children:St(ho,{direction:"column",children:[N(Ud,{variant:!v&&T?"primary":"outline",icon:N(nn,{size:18}),onClick:()=>b(!T),disabled:v,children:T?x("favorites.showAll",{defaultValue:"Show All"}):x("favorites.showFavorites",{defaultValue:"Show Favorites"})}),!v&&N(ht,{entity:e,data:S,fieldsToFilter:B})]})})}),N(an,{title:E?x("results.title.fetching",{defaultValue:"Fetching..."}):d?d(y.length):x("results.title.count",{count:y.length,defaultValue:y.length===1?"Found 1 occurrence":`Found ${y.length} occurrences`}),collapsible:p,defaultOpen:p?!0:void 0,tone:u,children:E?N(Gd,{cols:r,entity:e}):y.length===0?St(ho,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},children:[N($e,{level:"h3",style:{color:"var(--muted-foreground)"},children:x("emptyState.title",{defaultValue:`No ${e.name.toLowerCase()} found`})}),N($e,{style:{color:"var(--muted-foreground)"},children:x("emptyState.description",{defaultValue:`No ${e.name.toLowerCase()} available at this time.`})})]}):N(cn,{cols:r,children:y.map(O=>{let ee=R(O.id),te=v||o?void 0:`${g}/${O.id}`;return N(bt,{item:O,entity:e,detailHref:te,onClick:v?void 0:o?()=>L(O.id):void 0,renderOverlay:s?.(O),renderActions:N(nn,{fill:ee?"#ef4444":"#ffffff",stroke:ee?"#ef4444":"var(--muted-foreground)",onClick:oe=>{oe.preventDefault(),oe.stopPropagation(),v||A(O.id)},style:{cursor:v?"default":"pointer",width:"var(--icon-md)",height:"var(--icon-md)",transition:"fill 0.2s, stroke 0.2s",opacity:v?.5:1},"aria-label":ee?x("favorites.remove",{defaultValue:"Remove from favorites"}):x("favorites.add",{defaultValue:"Add to favorites"})})},O.id)})})})]})}import{useEffect as un,useId as Yd,useMemo as Ct,useState as qd}from"react";import{FormProvider as Zd}from"react-hook-form";import{Badge as Jd,Button as xt,DropdownMenu as Qd,Grid as Xd,Stack as jd,Spinner as eu}from"@donotdev/components";import{hasRoleAccess as tu,useTranslation as pn}from"@donotdev/core";import{jsx as J,jsxs as wt}from"react/jsx-runtime";function yo({entity:e,onSubmit:t,t:o,className:r="",submitText:n,loading:a=!1,defaultValues:i,submitVariant:l="primary",secondaryButtonText:d,secondaryButtonVariant:u="outline",onSecondarySubmit:s,viewerRole:c,operation:p=i?"edit":"create",formId:f,cancelText:m,cancelPath:v,successPath:h,onCancel:g,warnOnUnsavedChanges:S=!0,unsavedChangesMessage:w,hideVisibilityInfo:C=!1}){if(!Y)return null;let E=Ie(),R=P("userRole"),A=c??R,H=Yd(),T=f??`entity-form-${e.name}-${H}`,{t:b}=pn([e.namespace,"crud"]),{t:y}=pn("crud"),$=o||b,L=!C&&(A==="admin"||A==="super"),B=A==="user"||A==="admin"||A==="super",[D,O]=qd(A==="admin"||A==="super"||A==="user"?A:"guest"),ee={guest:"muted",user:"secondary",admin:"warning",super:"destructive",technical:"accent",owner:"secondary"},te=["guest","user","admin","super"],oe={guest:"Guest",user:"User",admin:"Admin",super:"Super",technical:"System"},Ge=Ct(()=>te.filter(I=>tu(A,I)).map(I=>({label:oe[I],checked:D===I,onClick:()=>O(I)})),[D,A]),ve=Or(e,{formId:T,operation:p,defaultValues:i,viewerRole:A,t:$}),{control:G,handleSubmit:We,formState:{errors:he},fields:Q,formStatus:ie,uploadProgress:ue,cleanup:At,isDirty:bo,hasUserInteracted:It,resetForm:Pt}=ve,Rt=bo&&It,So=Ct(()=>{if(!B)return Q;let I=te.indexOf(D);return Q.filter(({config:_})=>{let se=_.visibility;return se==="hidden"?!1:se==="technical"?!0:te.indexOf(se)<=I})},[Q,B,D]),hn=_r(So,G);un(()=>{T&&Ur.getState().setIsDirty(T,Rt)},[T,Rt]),un(()=>At,[At]);let yn=Ct(()=>w||y("messages.unsavedChangesLeave",{defaultValue:"You have unsaved changes. Are you sure you want to leave?"}),[w,y]);Vr({isDirty:Rt,enabled:S,message:yn});let bn=()=>{Pt(),g?g():E(v||"back")},Sn=async I=>{await t(I),h&&E(h)},Cn=m!==null,Co=m??y("form.cancel",{defaultValue:"Cancel"}),xo={gridColumn:"1 / -1",position:"sticky",bottom:0,backgroundColor:"var(--background)",borderTop:"1px solid var(--border)",paddingTop:"var(--gap-md)",paddingBottom:"var(--gap-md)",zIndex:10,marginTop:"var(--gap-lg)"},xn=a||p==="edit"&&!i,X=Ct(()=>ie==="uploading"?{loading:!0,loadingText:ue<100?y("form.uploading",{progress:Math.round(ue),defaultValue:`Uploading ${Math.round(ue)}%...`}):y("form.processing",{defaultValue:"Processing..."}),progress:ue}:ie==="validating"?{loading:!0,loadingText:y("form.validating",{defaultValue:"Validating..."})}:ie==="submitting"?{loading:!0,loadingText:y("form.saving",{defaultValue:"Saving..."})}:ie==="success"?{loading:!1,successText:y("form.saved",{defaultValue:"Saved"})}:{loading:!1},[ie,ue,y]);return J(Zd,{...ve,children:J(Zr,{formId:T,children:wt("div",{style:{position:"relative",width:"100%",gridColumn:"1 / -1",display:"contents"},children:[xn&&J(eu,{overlay:!0}),wt("form",{onSubmit:We(Sn),noValidate:!0,className:r,style:{width:"100%",gridColumn:"1 / -1",display:"contents"},children:[So.map(({name:I,config:_,editable:se})=>{let Z=hn[I];if(Z&&!Z.visible)return null;let wo=Z?{..._,...Z.required&&_.validation?{validation:{..._.validation,required:!0}}:Z.required?{validation:{required:!0}}:{}}:_,wn=se&&!Z?.disabled&&!Z?.readonly,Tn=L&&_.visibility!=="guest",kn=_.visibility!=="hidden"?ee[_.visibility]:void 0,En=oe[_.visibility]??_.visibility,To=wn?J(qr,{name:I,config:wo,control:G,errors:he,t:$},I):J(vt,{name:I,config:wo,value:i?.[I],t:$},I);return Tn?wt("div",{style:{position:"relative"},children:[J(Jd,{as:"span",variant:kn,style:{position:"absolute",top:0,insetInlineEnd:0,fontSize:"var(--font-size-xs)",zIndex:1},children:En}),To]},I):To}),(()=>{let I=[];if(Cn&&Co&&I.push(J(xt,{type:"button",onClick:bn,disabled:X.loading,variant:"outline",className:"dndev-w-full",children:Co},"cancel")),B){let Z=ee[D]||"muted";I.push(J(Qd,{trigger:wt(xt,{type:"button",variant:Z,disabled:X.loading,className:"dndev-w-full",children:[y("visibility.preview",{defaultValue:"Preview"}),": ",oe[D]]}),items:Ge},"preview"))}d&&I.push(J(xt,{type:"button",onClick:()=>{if(s){let Z=ve.getValues();s(Z)}},loading:X.loading,loadingText:X.loadingText,progress:X.progress,variant:u,className:"dndev-w-full",children:d},"secondary")),I.push(J(xt,{type:"submit",loading:X.loading,loadingText:X.loadingText,progress:X.progress,variant:X.successText?"success":l,disabled:!!X.successText,className:"dndev-w-full",children:X.successText||n||y("form.submit",{defaultValue:"Submit"})},"submit"));let _=I.length;if(_===1)return J(jd,{direction:"column",gap:"tight",style:xo,children:I[0]});let se=_===2?"1fr 2fr":_===3?"1fr 1fr 2fr":"1fr 1fr 1fr 2fr";return J(Xd,{cols:["1fr",se,se,se],gap:"tight",style:xo,children:I})})()]})]})})})}import{Card as ou,Section as ru,Skeleton as Tt,Stack as nu}from"@donotdev/components";import{useTranslation as au,useBreakpoint as iu}from"@donotdev/core";import{jsx as ke,jsxs as lu}from"react/jsx-runtime";function su({entity:e,queryOptions:t,title:o,basePath:r,cols:n=[1,1,3,3],tone:a,className:i}){if(!Y)return null;let{t:l}=au([e.namespace,"crud"]),{items:d,loading:u}=gt(e,{queryOptions:t}),s=iu("current");if(!u&&d.length===0)return null;let c=r??`/${e.collection}`,p=o??l("recommendations.title",{defaultValue:"You may also like"}),f={mobile:0,tablet:1,laptop:2,desktop:3},m=(Array.isArray(n)?n[f[s]??3]:typeof n=="number"?n:3)??1,v=(typeof m=="number"?m:3)*3;return ke(ru,{title:p,gridCols:n,tone:a,className:i,children:u?Array.from({length:v},(h,g)=>ke(ou,{title:ke(Tt,{width:"60%"}),subtitle:ke(Tt,{width:"40%"}),content:lu(nu,{direction:"column",gap:"tight",children:[ke(Tt,{width:"80%"}),ke(Tt,{width:"50%"})]}),elevated:!0},g)):d.map(h=>ke(bt,{item:h,entity:e,detailHref:`${c}/${h.id}`},h.id))})}import{Button as cu,Stack as du,Stepper as uu}from"@donotdev/components";import{useTranslation as pu}from"@donotdev/core";import{Fragment as fu,jsx as kt,jsxs as gu}from"react/jsx-runtime";function mu({workflow:e,onComplete:t,onStepChange:o,defaultValues:r,viewerRole:n,children:a,className:i}){if(!Y)return null;let{t:l}=pu("crud"),d=Kr(e,{onComplete:t,onStepChange:o,defaultValues:r});if(a)return kt(fu,{children:a(d)});let{currentStep:u,currentStepIndex:s,visibleSteps:c,isFirst:p,isLast:f,isSubmitting:m,stepData:v}=d,h=c.map((g,S)=>({number:S+1,title:g.title,content:null}));return gu(du,{className:i,gap:"large",children:[kt(uu,{steps:h,activeStep:s,showStepNumbers:!0,onStepChange:g=>{g<=s&&d.goToStep(g)}}),u.custom?u.custom(d.allData):u.entity?kt(yo,{entity:u.entity,operation:"create",viewerRole:n,defaultValues:{...v[u.id],...!f&&{status:"draft"}},onSubmit:async g=>{await d.goNext(g)},submitText:f?l("workflow.submit",{defaultValue:"Submit"}):l("workflow.next",{defaultValue:"Next"}),cancelText:p?null:l("workflow.previous",{defaultValue:"Previous"}),onCancel:p?void 0:d.goPrevious,loading:m,warnOnUnsavedChanges:!1,hideVisibilityInfo:!0}):null,u.allowSkip&&!f&&kt(cu,{variant:"ghost",onClick:d.skipStep,className:"dndev-w-full",children:l("workflow.skip",{defaultValue:"Skip this step"})})]})}import{createContext as fn,useId as vu,use as mn}from"react";import{Controller as hu,FormProvider as yu,useFormContext as bu}from"react-hook-form";import{Label as Su,Slot as Cu,cn as xu,Stack as wu}from"@donotdev/components";import{jsx as ge}from"react/jsx-runtime";var k3=yu,gn=fn({}),E3=({...e})=>ge(gn.Provider,{value:{name:e.name},children:ge(hu,{...e})}),vn=fn({}),A3=({className:e,...t})=>{let o=vu();return ge(vn.Provider,{value:{id:o},children:ge(wu,{className:e,...t})})},Et=()=>{let e=mn(gn);if(!e||!e.name)return null;let t=mn(vn);if(!t)return null;let{getFieldState:o,formState:r}=bu(),n=o(e.name,r),{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...n}},I3=({className:e,...t})=>{let o=Et();if(!o)return null;let{error:r,formItemId:n}=o;return ge(Su,{className:xu(r&&"text-destructive",e),htmlFor:n,...t})},P3=({...e})=>{let t=Et();if(!t)return null;let{error:o,formItemId:r,formDescriptionId:n,formMessageId:a}=t;return ge(Cu,{id:r,"aria-describedby":o?`${n} ${a}`:`${n}`,"aria-invalid":!!o,...e})},R3=({className:e,...t})=>{let o=Et();if(!o)return null;let{formDescriptionId:r}=o;return ge("p",{id:r,className:e,style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},...t})},N3=({className:e,children:t,...o})=>{let r=Et();if(!r)return null;let{error:n,formMessageId:a}=r,i=n?String(n?.message):t;return i?ge("p",{id:a,className:e,style:{fontSize:"var(--font-size-sm)",fontWeight:500,color:"var(--destructive)"},...o,children:i}):null};var Tu={layoutContainer:"dndev-layout",sidebar:"sidebar",sidebarTop:"sidebar-top",sidebarContent:"sidebar-content",sidebarBottom:"sidebar-bottom",sidebarResizeHandle:"dndev-sidebar-resize-handle",header:"header",main:"main",footer:"footer",container:"dndev-container",pageContainer:"dndev-container",breadcrumbsContainer:"breadcrumbs-container"},ku={zHeader:"dndev-z-header",zSidebar:"dndev-z-sidebar",zOverlay:"dndev-z-overlay",zModal:"dndev-z-modal",zTooltip:"dndev-z-tooltip",zToast:"dndev-z-toast"},H3={...Tu,...ku},$3={headerHeight:"--header-height",headerPadding:"--header-padding",headerIconSize:"--header-icon-size",headerLogoMaxHeight:"--header-logo-max-height",sidebarWidth:"--sidebar-width",sidebarPadding:"--sidebar-padding",mainPadding:"--main-padding",mainMaxWidth:"--main-max-width",contentWidth:"--content-width",contentPadding:"--content-padding",footerHeight:"--footer-height",footerPadding:"--footer-padding",zHeader:"--z-header",zSidebar:"--z-sidebar",zFooter:"--z-footer",zOverlay:"--z-overlay",zModal:"--z-modal",zTooltip:"--z-tooltip",zToast:"--z-toast"},G3={headerHeight:"--header-height",headerPadding:"--header-padding",logoSize:"--logo-size",sidebarWidth:"--sidebar-width",sidebarPadding:"--sidebar-padding",footerHeight:"--footer-height",footerPadding:"--footer-padding",layoutGap:"--layout-gap",sectionGap:"--gap-lg",contentGap:"--content-gap",zHeader:"--z-header",zSidebar:"--z-sidebar",zFooter:"--z-footer",zModal:"--z-modal",zTooltip:"--z-tooltip"};export{wl as AppBranding,El as AppIcon,Pl as AppTitle,K as AssetResolver,Mn as AuthGuard,Ep as AuthGuardFallback,Wt as AuthHeader,$t as AuthMenu,Sa as AuthReturnTo,_l as Breadcrumbs,oo as CacheSettings,Of as ConsentBanner,Ho as DnDevNavigationMenu,sc as DropdownNavigation,Wd as EntityCardList,kd as EntityDisplayRenderer,yo as EntityFormRenderer,Md as EntityList,su as EntityRecommendations,mu as EntityWorkflow,_s as FeatureCard,bs as FeatureDisabled,uc as FloatingLanguageSwitcher,uo as FooterBranding,ld as FooterCopyright,vd as FooterLegalLinks,k3 as Form,P3 as FormControl,R3 as FormDescription,E3 as FormField,A3 as FormItem,I3 as FormLabel,N3 as FormMessage,Yf as GameContainer,Qf as GameFlow,Wl as GameTitle,Op as GoTo,Ga as GoToInput,Ba as GoToWrapper,hc as HeaderMenu,Tc as HeaderNavigation,An as Icon,w0 as LicenseWatermark,k as Link,$o as NotFoundPage,Bc as Notifications,$f as PageConfig,Qe as PageContainer,Au as PasswordResetCallback,Ls as ProgressBar,Ps as RedirectOverlay,Li as Seo,Yc as SettingsMenu,Bs as Skeleton,cl as TechBento,ed as ThemeToggle,H3 as allLayoutClasses,qu as createAuthConfig,G3 as cssVariables,Eu as isAuthAvailable,X1 as isBillingAvailable,im as isCrudAvailable,K1 as isFormStoreAvailable,dm as isOAuthAvailable,Tu as layoutClasses,ku as layoutUtilities,$3 as layoutVariables,$1 as resolveFaviconSet,H1 as resolveLogo,Re as sanitizeSvg,gm as tList,Qt as techLogos,P as useAuthSafe,Ku as useAuthState,ot as useAuthVisibility,P1 as useBack,om as useBillingVisibility,$u as useCanAccess,zn as useCanNavigate,am as useCrudSafe,Et as useFormField,ci as useFormStoreSafe,Iu as useGoTo,Wu as useHasRole,L1 as useLocation,M1 as useMatch,Ie as useNavigate,re as useNavigationItems,ko as useNavigationRoute,cm as useOAuthSafe,D1 as useParams,N1 as usePrefetch,z1 as useQueryParams,O1 as useRedirectGuard,R1 as useRefresh,F1 as useRouteParam,B1 as useSearchParams,Cm as useSeo,Ut as useStripeBillingSafe,Gu as useUserRole,Yu as withAuth};
|