From 4fd3c7a035ca1662751348572cca5608367ea2fc Mon Sep 17 00:00:00 2001 From: Maaxxs <61059039+MaaxxsDev@users.noreply.github.com> Date: Tue, 13 Oct 2026 21:16:34 +0200 Subject: [PATCH] Let admins hide whole site areas (pages and home sections) from the dashboard Co-Authored-By: Claude Opus 5.5 --- hifi-src/src/components/Footer.jsx | 6 +- hifi-src/src/components/Navbar.jsx | 38 +- hifi-src/src/components/PublicLayout.jsx | 18 +- hifi-src/src/context/SiteSettingsContext.jsx | 7 + hifi-src/src/pages/admin/Dashboard.jsx | 83 +++ hifi-src/src/pages/public/Home.jsx | 478 +++++++++--------- hifi-src/src/utils/siteAreas.js | 44 ++ hifi/api/database/migration_hidden_areas.sql | 10 + hifi/api/database/schema.sql | 1 + hifi/api/public/index.php | 1 + hifi/api/public/sitemap.php | 19 +- .../src/Controllers/SettingsController.php | 2 +- .../Controllers/SiteSettingsController.php | 52 +- hifi/api/src/Support/Schema.php | 2 + ...MihbnHe.js => AccountSettings-3Az7PIEf.js} | 2 +- ...ers-9iDwQGfx.js => AdminUsers-Dk5C74Dp.js} | 2 +- ...{Brands-C6eVwhOd.js => Brands-iEolLqPk.js} | 2 +- ...vNwUpVJ.js => ContactRequests-DdKiRF9Y.js} | 2 +- hifi/assets/Dashboard-CnATY8Tr.js | 1 + hifi/assets/Dashboard-bbSgJcnm.js | 1 - ...cZKDfK.js => DatabaseSettings-BJdW7tk9.js} | 2 +- ...oads-B-dRPpYw.js => Downloads-4-kfkPkq.js} | 2 +- ...-Bbqu3Noj.js => EmailSettings-DixrL0D8.js} | 2 +- ...yq.js => ExportImportSettings-D1vWoWVP.js} | 2 +- .../{Faqs-Bl6JUAuu.js => Faqs-CXlyRVeG.js} | 2 +- ...-DeSW9tLo.js => GalleryBrands-BKk_jSpw.js} | 2 +- ...-Cx15BFfB.js => GalleryPhotos-DupxhhRN.js} | 2 +- ...rxLi25V.js => GalleryProjects-6TCFmGT7.js} | 2 +- ...s-Du6kmhHi.js => HomeSections-BBMip_Nb.js} | 2 +- ...zU8Hmm.js => ImageUploadField-oqjVVSSG.js} | 2 +- ...-DAfuQqrY.js => LegalSettings-DGN-Kl_a.js} | 2 +- .../{Login-B4YL4ltB.js => Login-pbnF9xt-.js} | 2 +- ...unE.js => MaintenanceSettings-DhcTJBUJ.js} | 2 +- ...{Models-CwWP_c2v.js => Models-Dd9dRX1L.js} | 2 +- ...kages-By73LRCs.js => Packages-DAaVovhO.js} | 2 +- ...tners-D1IaNCA2.js => Partners-DL_4PdP7.js} | 2 +- ...FgNp_l.js => PermissionGroups-_i9KMBTo.js} | 2 +- ...-B4htaA5Y.js => ResetSettings-c6DDNkFb.js} | 2 +- ...BR1AFZHM.js => RichTextEditor-DTscIhNf.js} | 2 +- ...vices-Dnq8KYw0.js => Services-D3kYNcAF.js} | 2 +- ...NML5nqk_.js => SettingsLayout-DQStnLDk.js} | 2 +- ...rd-Dp_SZURq.js => SetupWizard-DcHkEIZ7.js} | 2 +- ...ErOyFHL.js => TextStyleWidget-CkwixV2h.js} | 2 +- ...9sbkjR1K.js => UpdateSettings-Cz_YKsj0.js} | 2 +- ...wL06xkK.js => WebsiteSettings-Yhbh_5yo.js} | 2 +- .../{eye-B3iFgvk-.js => eye-CZFeBsZS.js} | 2 +- ...y-B8BVNGep.js => iconRegistry-BJRytynd.js} | 2 +- hifi/assets/index-BNAemH7C.css | 1 + hifi/assets/index-CeNRYcbS.js | 303 ----------- hifi/assets/index-DM5dAVp5.js | 303 +++++++++++ hifi/assets/index-DszEoLNc.css | 1 - ...rash-2-CR1es5DZ.js => trash-2-CQGOvKRj.js} | 2 +- hifi/index.html | 4 +- 53 files changed, 847 insertions(+), 592 deletions(-) create mode 100644 hifi-src/src/utils/siteAreas.js create mode 100644 hifi/api/database/migration_hidden_areas.sql rename hifi/assets/{AccountSettings-BMihbnHe.js => AccountSettings-3Az7PIEf.js} (99%) rename hifi/assets/{AdminUsers-9iDwQGfx.js => AdminUsers-Dk5C74Dp.js} (99%) rename hifi/assets/{Brands-C6eVwhOd.js => Brands-iEolLqPk.js} (95%) rename hifi/assets/{ContactRequests-BvNwUpVJ.js => ContactRequests-DdKiRF9Y.js} (98%) create mode 100644 hifi/assets/Dashboard-CnATY8Tr.js delete mode 100644 hifi/assets/Dashboard-bbSgJcnm.js rename hifi/assets/{DatabaseSettings-BLcZKDfK.js => DatabaseSettings-BJdW7tk9.js} (99%) rename hifi/assets/{Downloads-B-dRPpYw.js => Downloads-4-kfkPkq.js} (98%) rename hifi/assets/{EmailSettings-Bbqu3Noj.js => EmailSettings-DixrL0D8.js} (98%) rename hifi/assets/{ExportImportSettings-DGzBdtyq.js => ExportImportSettings-D1vWoWVP.js} (99%) rename hifi/assets/{Faqs-Bl6JUAuu.js => Faqs-CXlyRVeG.js} (98%) rename hifi/assets/{GalleryBrands-DeSW9tLo.js => GalleryBrands-BKk_jSpw.js} (96%) rename hifi/assets/{GalleryPhotos-Cx15BFfB.js => GalleryPhotos-DupxhhRN.js} (97%) rename hifi/assets/{GalleryProjects-DrxLi25V.js => GalleryProjects-6TCFmGT7.js} (97%) rename hifi/assets/{HomeSections-Du6kmhHi.js => HomeSections-BBMip_Nb.js} (98%) rename hifi/assets/{ImageUploadField-DZzU8Hmm.js => ImageUploadField-oqjVVSSG.js} (99%) rename hifi/assets/{LegalSettings-DAfuQqrY.js => LegalSettings-DGN-Kl_a.js} (95%) rename hifi/assets/{Login-B4YL4ltB.js => Login-pbnF9xt-.js} (98%) rename hifi/assets/{MaintenanceSettings-DfLGBunE.js => MaintenanceSettings-DhcTJBUJ.js} (98%) rename hifi/assets/{Models-CwWP_c2v.js => Models-Dd9dRX1L.js} (96%) rename hifi/assets/{Packages-By73LRCs.js => Packages-DAaVovhO.js} (99%) rename hifi/assets/{Partners-D1IaNCA2.js => Partners-DL_4PdP7.js} (96%) rename hifi/assets/{PermissionGroups-DjFgNp_l.js => PermissionGroups-_i9KMBTo.js} (98%) rename hifi/assets/{ResetSettings-B4htaA5Y.js => ResetSettings-c6DDNkFb.js} (99%) rename hifi/assets/{RichTextEditor-BR1AFZHM.js => RichTextEditor-DTscIhNf.js} (99%) rename hifi/assets/{Services-Dnq8KYw0.js => Services-D3kYNcAF.js} (96%) rename hifi/assets/{SettingsLayout-NML5nqk_.js => SettingsLayout-DQStnLDk.js} (95%) rename hifi/assets/{SetupWizard-Dp_SZURq.js => SetupWizard-DcHkEIZ7.js} (98%) rename hifi/assets/{TextStyleWidget-DErOyFHL.js => TextStyleWidget-CkwixV2h.js} (97%) rename hifi/assets/{UpdateSettings-9sbkjR1K.js => UpdateSettings-Cz_YKsj0.js} (98%) rename hifi/assets/{WebsiteSettings-BwL06xkK.js => WebsiteSettings-Yhbh_5yo.js} (99%) rename hifi/assets/{eye-B3iFgvk-.js => eye-CZFeBsZS.js} (95%) rename hifi/assets/{iconRegistry-B8BVNGep.js => iconRegistry-BJRytynd.js} (99%) create mode 100644 hifi/assets/index-BNAemH7C.css delete mode 100644 hifi/assets/index-CeNRYcbS.js create mode 100644 hifi/assets/index-DM5dAVp5.js delete mode 100644 hifi/assets/index-DszEoLNc.css rename hifi/assets/{trash-2-CR1es5DZ.js => trash-2-CQGOvKRj.js} (97%) diff --git a/hifi-src/src/components/Footer.jsx b/hifi-src/src/components/Footer.jsx index d20129a..143f632 100644 --- a/hifi-src/src/components/Footer.jsx +++ b/hifi-src/src/components/Footer.jsx @@ -1,7 +1,7 @@ import { Link, useLocation } from 'react-router-dom'; import { Clock, MapPin, Navigation, Phone } from 'lucide-react'; import { useCookieConsent } from '../context/CookieConsentContext.jsx'; -import { useSiteSettings } from '../context/SiteSettingsContext.jsx'; +import { useIsAreaHidden, useSiteSettings } from '../context/SiteSettingsContext.jsx'; import { useLanguage } from '../context/LanguageContext.jsx'; import { isOpenNow, formatBusinessHours } from '../utils/businessHours.js'; @@ -17,6 +17,8 @@ export default function Footer() { business_hours: businessHours, has_downloads: hasDownloads, } = useSiteSettings(); + const isHidden = useIsAreaHidden(); + const showDownloads = hasDownloads && !isHidden('page.downloads'); const open = isOpenNow(businessHours); const { openSettings } = useCookieConsent(); // Auf der Startseite blendet sich unten eine fixierte CTA-Leiste ein, die @@ -113,7 +115,7 @@ export default function Footer() { · {t('footer.terms')} · - {hasDownloads && ( + {showDownloads && ( <> {t('footer.downloads')} · diff --git a/hifi-src/src/components/Navbar.jsx b/hifi-src/src/components/Navbar.jsx index 67d95bc..8b1790b 100644 --- a/hifi-src/src/components/Navbar.jsx +++ b/hifi-src/src/components/Navbar.jsx @@ -4,7 +4,7 @@ import { Link, useLocation } from 'react-router-dom'; import { LayoutDashboard, MessageCircle, Phone, ShoppingBag } from 'lucide-react'; import ThemeToggle from './ThemeToggle.jsx'; import { useAuth } from '../context/AuthContext.jsx'; -import { useSiteSettings } from '../context/SiteSettingsContext.jsx'; +import { useIsAreaHidden, useSiteSettings } from '../context/SiteSettingsContext.jsx'; import { useLanguage } from '../context/LanguageContext.jsx'; import logoDark from '../assets/logo-dark.png'; @@ -124,9 +124,15 @@ export default function Navbar() { const [menuVisible, setMenuVisible] = useState(false); const { user } = useAuth(); const { phone, whatsapp, logo_dark_path: logoDarkPath, has_downloads: hasDownloads } = useSiteSettings(); + const isHidden = useIsAreaHidden(); const { t } = useLanguage(); - // 4 Hauptlinks + Trennlinie + Shop, dazu die optionalen Eintraege. - const totalItems = 6 + (hasDownloads ? 1 : 0) + (phone ? 1 : 0) + (whatsapp ? 1 : 0); + // Hauptlinks, die im Dashboard ausgeblendet werden koennen, fallen hier raus. + const showVehicles = !isHidden('page.vehicles'); + const showServices = !isHidden('page.services'); + const showGallery = !isHidden('page.gallery'); + const showDownloads = hasDownloads && !isHidden('page.downloads'); + // Kontakt + Trennlinie + Shop, dazu die optionalen Eintraege. + const totalItems = 3 + [showVehicles, showServices, showGallery, showDownloads, phone, whatsapp].filter(Boolean).length; const location = useLocation(); const isHome = location.pathname === '/'; const [scrolled, setScrolled] = useState(!isHome); @@ -252,19 +258,25 @@ export default function Navbar() { {t('nav.close')} - setOpen(false)} className={`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${flyIn()}`} style={nextFly()}> - {t('nav.vehicles')} - - setOpen(false)} className={`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${flyIn()}`} style={nextFly()}> - {t('nav.services')} - - setOpen(false)} className={`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${flyIn()}`} style={nextFly()}> - {t('nav.gallery')} - + {showVehicles && ( + setOpen(false)} className={`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${flyIn()}`} style={nextFly()}> + {t('nav.vehicles')} + + )} + {showServices && ( + setOpen(false)} className={`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${flyIn()}`} style={nextFly()}> + {t('nav.services')} + + )} + {showGallery && ( + setOpen(false)} className={`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${flyIn()}`} style={nextFly()}> + {t('nav.gallery')} + + )} setOpen(false)} className={`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${flyIn()}`} style={nextFly()}> {t('nav.contact')} - {hasDownloads && ( + {showDownloads && ( setOpen(false)} className={`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${flyIn()}`} style={nextFly()}> {t('nav.downloads')} diff --git a/hifi-src/src/components/PublicLayout.jsx b/hifi-src/src/components/PublicLayout.jsx index af9a4d1..cfbc562 100644 --- a/hifi-src/src/components/PublicLayout.jsx +++ b/hifi-src/src/components/PublicLayout.jsx @@ -1,5 +1,5 @@ import { useEffect, useState } from 'react'; -import { Outlet, useLocation } from 'react-router-dom'; +import { Navigate, Outlet, useLocation } from 'react-router-dom'; import Navbar from './Navbar.jsx'; import Footer from './Footer.jsx'; import ScrollProgress from './ScrollProgress.jsx'; @@ -16,6 +16,7 @@ import PageImageLoader from './PageImageLoader.jsx'; import { LanguageProvider } from '../context/LanguageContext.jsx'; import { useAuth } from '../context/AuthContext.jsx'; import { api } from '../api/client.js'; +import { isPathHidden } from '../utils/siteAreas.js'; const FALLBACK_STATUS = { global: { enabled: false, message: null }, @@ -57,6 +58,7 @@ const DEFAULT_SITE_SETTINGS = { site_font: null, page_loader_enabled: 1, has_downloads: false, + hidden_areas: [], }; // Das Impressum (und die anderen rechtlichen Pflichtseiten) müssen laut § 5 DDG @@ -68,6 +70,9 @@ const LEGAL_PATHS = ['/impressum', '/datenschutz', '/agb']; export default function PublicLayout() { const [status, setStatus] = useState(null); const [siteSettings, setSiteSettings] = useState(DEFAULT_SITE_SETTINGS); + // Erst rendern, wenn klar ist, welche Bereiche ausgeblendet sind - sonst blitzt eine + // ausgeblendete Seite/Sektion kurz auf, bevor die Einstellungen da sind. + const [siteSettingsLoaded, setSiteSettingsLoaded] = useState(false); const [textStyles, setTextStyles] = useState({}); const [customFonts, setCustomFonts] = useState([]); const { loading: authLoading, hasPermission } = useAuth(); @@ -75,7 +80,11 @@ export default function PublicLayout() { useEffect(() => { api.get('/maintenance').then(setStatus).catch(() => setStatus(FALLBACK_STATUS)); - api.get('/site-settings').then(setSiteSettings).catch(() => {}); + api + .get('/site-settings') + .then(setSiteSettings) + .catch(() => {}) + .finally(() => setSiteSettingsLoaded(true)); api.get('/text-styles').then(setTextStyles).catch(() => {}); api.get('/custom-fonts').then(setCustomFonts).catch(() => {}); }, []); @@ -91,7 +100,7 @@ export default function PublicLayout() { } }, [siteSettings.site_font]); - if (status === null || authLoading) { + if (status === null || !siteSettingsLoaded || authLoading) { return
; } @@ -122,7 +131,8 @@ export default function PublicLayout() { Seite, auf der das Warten am wenigsten lohnt. Ueberall sonst greift weiterhin die globale Einstellung. */} - + {/* Im Dashboard ausgeblendete Seiten (inkl. Unterseiten) -> Startseite. */} + {isPathHidden(location.pathname, siteSettings.hidden_areas) ? : }
diff --git a/hifi-src/src/context/SiteSettingsContext.jsx b/hifi-src/src/context/SiteSettingsContext.jsx index 8096bf6..d47d7e1 100644 --- a/hifi-src/src/context/SiteSettingsContext.jsx +++ b/hifi-src/src/context/SiteSettingsContext.jsx @@ -22,6 +22,7 @@ const SiteSettingsContext = createContext({ package_card_height: 480, vehicle_tile_width: 240, vehicle_tile_height: 180, + hidden_areas: [], }); export const SiteSettingsProvider = SiteSettingsContext.Provider; @@ -29,3 +30,9 @@ export const SiteSettingsProvider = SiteSettingsContext.Provider; export function useSiteSettings() { return useContext(SiteSettingsContext); } + +/** true, wenn der Bereich (z. B. 'home.faq') im Dashboard ausgeblendet wurde - siehe utils/siteAreas.js. */ +export function useIsAreaHidden() { + const { hidden_areas: hiddenAreas } = useContext(SiteSettingsContext); + return (area) => (hiddenAreas || []).includes(area); +} diff --git a/hifi-src/src/pages/admin/Dashboard.jsx b/hifi-src/src/pages/admin/Dashboard.jsx index 4a10c71..50f5d9b 100644 --- a/hifi-src/src/pages/admin/Dashboard.jsx +++ b/hifi-src/src/pages/admin/Dashboard.jsx @@ -2,6 +2,7 @@ import { useEffect, useState } from 'react'; import { Link } from 'react-router-dom'; import { api } from '../../api/client.js'; import { useAuth } from '../../context/AuthContext.jsx'; +import { SITE_AREA_GROUPS } from '../../utils/siteAreas.js'; const ICONS = { tag: 'M4 4h7l9 9-7 7-9-9V4Zm3.5 3.5h.01', @@ -16,6 +17,87 @@ const Icon = ({ path, className = 'h-6 w-6' }) => ( ); +/** Schalter zum Ein-/Ausblenden ganzer Bereiche der Website - speichert jeden Klick sofort. */ +function VisibilityWidget() { + const [hidden, setHidden] = useState(null); + const [savingKey, setSavingKey] = useState(null); + const [error, setError] = useState(''); + + useEffect(() => { + api + .get('/site-settings') + .then((res) => setHidden(res.hidden_areas || [])) + .catch((e) => setError(e.message)); + }, []); + + const toggle = async (key) => { + const previous = hidden; + const next = hidden.includes(key) ? hidden.filter((k) => k !== key) : [...hidden, key]; + setHidden(next); + setSavingKey(key); + setError(''); + try { + const res = await api.put('/site-settings/visibility', { hidden_areas: next }); + setHidden(res.hidden_areas); + } catch (err) { + setHidden(previous); + setError(err.message); + } finally { + setSavingKey(null); + } + }; + + return ( +
+

Sichtbarkeit der Website

+

+ Schalte Bereiche aus, die Besucher gerade nicht sehen sollen. Die Inhalte bleiben gespeichert und sind nach dem + Wiedereinschalten sofort wieder da. Änderungen gelten sofort. +

+ {error &&

{error}

} + {hidden === null ? ( + !error &&

Lädt…

+ ) : ( +
+ {SITE_AREA_GROUPS.map((group) => ( +
+

{group.title}

+

{group.hint}

+
    + {group.areas.map((area) => { + const visible = !hidden.includes(area.key); + return ( +
  • +
    +

    + {area.label} +

    + {area.note &&

    {area.note}

    } +
    +
  • + ); + })} +
+
+ ))} +
+ )} +
+ ); +} + function AnalyticsWidget() { const [report, setReport] = useState(null); const [error, setError] = useState(''); @@ -159,6 +241,7 @@ export default function Dashboard() {
)} + {(hasPermission('content.manage') || hasPermission('settings.manage')) && } {hasPermission('settings.manage') && } ); diff --git a/hifi-src/src/pages/public/Home.jsx b/hifi-src/src/pages/public/Home.jsx index f944d74..8201251 100644 --- a/hifi-src/src/pages/public/Home.jsx +++ b/hifi-src/src/pages/public/Home.jsx @@ -7,7 +7,8 @@ import Reveal from '../../components/Reveal.jsx'; import Accordion from '../../components/Accordion.jsx'; import StarRating from '../../components/StarRating.jsx'; import TestimonialSlider from '../../components/TestimonialSlider.jsx'; -import { useSiteSettings } from '../../context/SiteSettingsContext.jsx'; +import { useIsAreaHidden, useSiteSettings } from '../../context/SiteSettingsContext.jsx'; +import { isPathHidden } from '../../utils/siteAreas.js'; import { useTextStyle } from '../../context/TextStylesContext.jsx'; import { useLanguage } from '../../context/LanguageContext.jsx'; import { dragAnchorStyle } from '../../utils/dragAnchorPosition.js'; @@ -35,9 +36,12 @@ const EMPTY_SECTION = { }; /** Rendert nur, wenn sowohl Beschriftung als auch Ziel gesetzt sind - interne Ziele (mit "/") - * bleiben in der SPA, alles andere oeffnet extern in einem neuen Tab. */ + * bleiben in der SPA, alles andere oeffnet extern in einem neuen Tab. Zeigt das Ziel auf eine + * im Dashboard ausgeblendete Seite, entfaellt der Button (er wuerde nur zur Startseite fuehren). */ function SectionButton({ label, url, className, style }) { + const { hidden_areas: hiddenAreas } = useSiteSettings(); if (!label || !url) return null; + if (isPathHidden(url, hiddenAreas)) return null; if (url.startsWith('/')) { return ( @@ -69,6 +73,8 @@ export default function Home() { const { hero_image_path: heroImagePath } = useSiteSettings(); const heroImage = heroImagePath || defaultHeroImage; const { t, language } = useLanguage(); + const isHidden = useIsAreaHidden(); + const showVehicles = !isHidden('page.vehicles'); const stats = t('home.stats'); const galleryAlts = t('home.galleryAlts'); @@ -162,7 +168,7 @@ export default function Home() { }); useEffect(() => { - if (faqs.length === 0) return; + if (faqs.length === 0 || isHidden('home.faq')) return; const script = document.createElement('script'); script.type = 'application/ld+json'; @@ -222,12 +228,14 @@ export default function Home() { {t('home.stickyCta')}

- - {t('home.selectVehicle')} - + {showVehicles && ( + + {t('home.selectVehicle')} + + )}
- - {t('home.selectVehicle')} - + {showVehicles && ( + + {t('home.selectVehicle')} + + )} -
-
- {stats.map((stat, i) => ( - -

{stat.value}

-

{stat.label}

-
- ))} -
-
- -
-
-

- {t('home.brandsHeading')} -

-
- {partners.map((partner, i) => ( - - {partner.logo_path ? ( - {partner.name} - ) : ( - {partner.name} - )} + {!isHidden('home.stats') && ( +
+
+ {stats.map((stat, i) => ( + +

{stat.value}

+

{stat.label}

))}
-
-
+ + )} -
-
- -
-
-
- - {t('home.craftImageAlt')} - - - {section('craft').eyebrow && ( -

{section('craft').eyebrow}

- )} -

{section('craft').title}

-
- -
- -
- - {section('advice').eyebrow && ( -

{section('advice').eyebrow}

- )} -

{section('advice').title}

-
- - - {t('home.adviceImageAlt')} - -
-
-
- -
- - {section('insights').eyebrow && ( -

{section('insights').eyebrow}

- )} -

{section('insights').title}

-
- -
- {gallery.map((img, i) => ( - - {img.alt} - - ))} -
-
- -
-
- -
- + {!isHidden('home.partners') && ( +
+
+

+ {t('home.brandsHeading')} +

+
+ {partners.map((partner, i) => ( + + {partner.logo_path ? ( + {partner.name} + ) : ( + {partner.name} + )} + + ))}
-

- {googleReviews ? t('home.reviewsRatingDynamic')(googleReviews.rating, googleReviews.rating_count) : t('home.reviewsRating')} -

-

{t('home.reviewsText')}

- - {t('home.reviewsLink')} - - - - - -
-
+
+
+ )} -
-
- - {t('home.moreImageAlt')} - - +
+ + {section('youtube').eyebrow && ( +

+ {section('youtube').eyebrow} +

+ )} +

+ {section('youtube').title} +

+
+ + +
+ + )} -
-
- -

{t('home.faqHeading')}

+ {!isHidden('home.craft') && ( +
+
+
+ + {t('home.craftImageAlt')} + + + {section('craft').eyebrow && ( +

{section('craft').eyebrow}

+ )} +

{section('craft').title}

+
+ +
+ +
+ + {section('advice').eyebrow && ( +

{section('advice').eyebrow}

+ )} +

{section('advice').title}

+
+ + + {t('home.adviceImageAlt')} + +
+
+
+ )} + + {!isHidden('home.insights') && ( +
+ + {section('insights').eyebrow && ( +

{section('insights').eyebrow}

+ )} +

{section('insights').title}

+
- - - -
-
+
+ {gallery.map((img, i) => ( + + {img.alt} + + ))} +
+
+ )} + + {!isHidden('home.reviews') && ( +
+
+ +
+ +
+

+ {googleReviews ? t('home.reviewsRatingDynamic')(googleReviews.rating, googleReviews.rating_count) : t('home.reviewsRating')} +

+

{t('home.reviewsText')}

+ + {t('home.reviewsLink')} + +
+ + + +
+
+ )} + + {!isHidden('home.more') && ( +
+
+ + {t('home.moreImageAlt')} + + + {section('more').eyebrow && ( +

{section('more').eyebrow}

+ )} +

{section('more').title}

+
+ + +
+
+ )} + + {!isHidden('home.faq') && ( +
+
+ +

{t('home.faqHeading')}

+
+ + + +
+
+ )}
); } diff --git a/hifi-src/src/utils/siteAreas.js b/hifi-src/src/utils/siteAreas.js new file mode 100644 index 0000000..12f29fd --- /dev/null +++ b/hifi-src/src/utils/siteAreas.js @@ -0,0 +1,44 @@ +// Bereiche, die im Dashboard per Schalter ausgeblendet werden koennen. Die Schluessel muessen +// mit SiteSettingsController::AREAS im Backend uebereinstimmen. Gespeichert wird nur die Liste +// der ausgeblendeten Schluessel (site-settings.hidden_areas) - alles andere ist sichtbar. +export const SITE_AREA_GROUPS = [ + { + title: 'Seiten', + hint: 'Ausgeblendete Seiten verschwinden aus dem Menü und leiten Besucher auf die Startseite um.', + areas: [ + { key: 'page.vehicles', label: 'Fahrzeuge & Pakete', path: '/fahrzeuge' }, + { key: 'page.services', label: 'Leistungen', path: '/leistungen' }, + { key: 'page.gallery', label: 'Galerie', path: '/galerie' }, + { key: 'page.downloads', label: 'Downloads', path: '/downloads', note: 'Erscheint ohnehin nur, wenn Downloads hinterlegt sind.' }, + ], + }, + { + title: 'Startseite', + hint: 'Einzelne Abschnitte der Startseite. Das große Titelbild oben bleibt immer sichtbar.', + areas: [ + { key: 'home.stats', label: 'Zahlen-Leiste' }, + { key: 'home.partners', label: 'Marken / Partner-Logos' }, + { key: 'home.youtube', label: 'Video-Abschnitt' }, + { key: 'home.craft', label: 'Handwerk & Beratung' }, + { key: 'home.insights', label: 'Einblicke (Bilder)' }, + { key: 'home.reviews', label: 'Kundenbewertungen' }, + { key: 'home.more', label: '„Mehr als Car-Hifi"' }, + { key: 'home.faq', label: 'Häufige Fragen (FAQ)' }, + ], + }, +]; + +const PAGE_AREAS = SITE_AREA_GROUPS[0].areas; + +/** Liefert den Seiten-Bereich zu einem internen Pfad (inkl. Unterseiten), sonst null. */ +export function areaForPath(path) { + if (!path) return null; + const match = PAGE_AREAS.find((a) => path === a.path || path.startsWith(`${a.path}/`)); + return match ? match.key : null; +} + +/** true, wenn der interne Link auf eine ausgeblendete Seite zeigt. */ +export function isPathHidden(path, hiddenAreas = []) { + const area = areaForPath(path); + return !!area && hiddenAreas.includes(area); +} diff --git a/hifi/api/database/migration_hidden_areas.sql b/hifi/api/database/migration_hidden_areas.sql new file mode 100644 index 0000000..6c0574c --- /dev/null +++ b/hifi/api/database/migration_hidden_areas.sql @@ -0,0 +1,10 @@ +USE hifi_shop; + +-- Bereiche (Seiten wie Galerie/Leistungen und einzelne Startseiten-Abschnitte), die der Admin +-- per Schalter im Dashboard ausblenden kann - JSON-Liste der ausgeblendeten Schluessel, siehe +-- SiteSettingsController::AREAS. Additiv, nichts wird geloescht. +-- Hinweis: Auf der Live-Seite reicht stattdessen ein Klick auf "Datenbankstruktur aktualisieren" +-- unter Admin-Panel -> Einstellungen -> Datenbank. + +ALTER TABLE app_settings + ADD COLUMN IF NOT EXISTS hidden_areas TEXT NULL AFTER page_loader_enabled; diff --git a/hifi/api/database/schema.sql b/hifi/api/database/schema.sql index f06b1b4..ee0b605 100644 --- a/hifi/api/database/schema.sql +++ b/hifi/api/database/schema.sql @@ -44,6 +44,7 @@ CREATE TABLE app_settings ( gallery_card_text_y TINYINT UNSIGNED NOT NULL DEFAULT 100, site_font VARCHAR(255) NULL, page_loader_enabled TINYINT(1) NOT NULL DEFAULT 1, + hidden_areas TEXT NULL, downloads_password VARCHAR(100) NULL, mail_host VARCHAR(255) NULL, mail_port INT NULL, diff --git a/hifi/api/public/index.php b/hifi/api/public/index.php index dc11a19..6c3a4d6 100644 --- a/hifi/api/public/index.php +++ b/hifi/api/public/index.php @@ -276,6 +276,7 @@ $router->post('/maintenance', $perm('settings.manage', fn($p) => MaintenanceCont $router->get('/site-settings', fn($p) => SiteSettingsController::show()); $router->post('/site-settings', $perm('settings.manage', fn($p) => SiteSettingsController::update())); +$router->put('/site-settings/visibility', $anyPerm(['content.manage', 'settings.manage'], fn($p) => SiteSettingsController::updateVisibility())); $router->get('/legal-pages', fn($p) => PageContentController::index()); $router->get('/legal-pages/{slug}', fn($p) => PageContentController::show($p)); diff --git a/hifi/api/public/sitemap.php b/hifi/api/public/sitemap.php index e2a5277..d74d450 100644 --- a/hifi/api/public/sitemap.php +++ b/hifi/api/public/sitemap.php @@ -4,6 +4,7 @@ require __DIR__ . '/../vendor/autoload.php'; use App\Config\Database; use App\Controllers\DownloadController; +use App\Controllers\SiteSettingsController; $config = require __DIR__ . '/../config/config.php'; $siteUrl = rtrim($config['app']['site_url'], '/'); @@ -15,14 +16,20 @@ $models = $db->query( )->fetchAll(); $brands = $db->query('SELECT slug, updated_at FROM brands')->fetchAll(); -$urls = [ - ['loc' => '/', 'priority' => '1.0'], - ['loc' => '/fahrzeuge', 'priority' => '0.9'], - ['loc' => '/kontakt', 'priority' => '0.5'], -]; +// Im Dashboard ausgeblendete Bereiche leiten auf die Startseite um - gehoeren nicht in die Sitemap. +$vehiclesHidden = SiteSettingsController::isHidden('page.vehicles'); +if ($vehiclesHidden) { + $models = $brands = []; +} + +$urls = [['loc' => '/', 'priority' => '1.0']]; +if (!$vehiclesHidden) { + $urls[] = ['loc' => '/fahrzeuge', 'priority' => '0.9']; +} +$urls[] = ['loc' => '/kontakt', 'priority' => '0.5']; // Passwortgeschuetzt zeigt die Seite nur ein Eingabefeld - nichts, was ein Suchmaschinen- // Eintrag wert waere. -if (DownloadController::hasVisible() && !DownloadController::isProtected()) { +if (DownloadController::hasVisible() && !DownloadController::isProtected() && !SiteSettingsController::isHidden('page.downloads')) { $urls[] = ['loc' => '/downloads', 'priority' => '0.4']; } diff --git a/hifi/api/src/Controllers/SettingsController.php b/hifi/api/src/Controllers/SettingsController.php index 794a873..64e6b45 100644 --- a/hifi/api/src/Controllers/SettingsController.php +++ b/hifi/api/src/Controllers/SettingsController.php @@ -46,7 +46,7 @@ class SettingsController 'ga_measurement_id', 'ga_property_id', 'google_place_id', 'package_card_theme', 'package_card_layout', 'package_wheel_hint_interval', 'package_card_width', 'package_card_height', 'vehicle_tile_width', 'vehicle_tile_height', - 'gallery_card_text_x', 'gallery_card_text_y', 'site_font', 'page_loader_enabled', + 'gallery_card_text_x', 'gallery_card_text_y', 'site_font', 'page_loader_enabled', 'hidden_areas', 'mail_host', 'mail_port', 'mail_username', 'mail_encryption', 'mail_from_email', 'mail_from_name', 'mail_notify_email', 'mail_customer_subject', 'mail_customer_body', 'mail_owner_subject', 'mail_owner_body', diff --git a/hifi/api/src/Controllers/SiteSettingsController.php b/hifi/api/src/Controllers/SiteSettingsController.php index 4f23859..cc88917 100644 --- a/hifi/api/src/Controllers/SiteSettingsController.php +++ b/hifi/api/src/Controllers/SiteSettingsController.php @@ -52,7 +52,17 @@ class SiteSettingsController logo_path, logo_dark_path, business_hours, hero_image_path, ga_measurement_id, package_card_theme, package_card_layout, package_wheel_hint_interval, package_card_width, package_card_height, vehicle_tile_width, vehicle_tile_height, - gallery_card_text_x, gallery_card_text_y, site_font, page_loader_enabled'; + gallery_card_text_x, gallery_card_text_y, site_font, page_loader_enabled, hidden_areas'; + + // Bereiche, die der Admin per Schalter im Dashboard ausblenden kann (siehe Dashboard.jsx + // und utils/siteAreas.js im Frontend - die Schluessel muessen dort identisch sein). + // Seiten verschwinden aus Menue/Links und leiten auf die Startseite um, Startseiten- + // Abschnitte werden einfach nicht gerendert. + public const AREAS = [ + 'page.vehicles', 'page.services', 'page.gallery', 'page.downloads', + 'home.stats', 'home.partners', 'home.youtube', 'home.craft', 'home.insights', + 'home.reviews', 'home.more', 'home.faq', + ]; public static function show(): void { @@ -72,12 +82,52 @@ class SiteSettingsController } $decodedHours = is_string($row['business_hours'] ?? null) ? json_decode($row['business_hours'], true) : null; $result['business_hours'] = is_array($decodedHours) ? $decodedHours : self::DEFAULT_BUSINESS_HOURS; + $result['hidden_areas'] = self::decodeHiddenAreas($row['hidden_areas'] ?? null); // Navbar/Footer zeigen "Downloads" nur, wenn dort auch etwas zu finden ist. $result['has_downloads'] = DownloadController::hasVisible(); Http::send($result); } + /** Gespeicherte Liste auf bekannte Schluessel filtern - alte/unbekannte Eintraege fallen raus. */ + public static function decodeHiddenAreas($raw): array + { + $decoded = is_string($raw) ? json_decode($raw, true) : null; + if (!is_array($decoded)) { + return []; + } + return array_values(array_intersect(self::AREAS, $decoded)); + } + + /** Liefert true, wenn der Bereich (z. B. 'page.vehicles') gerade ausgeblendet ist. */ + public static function isHidden(string $area): bool + { + try { + $raw = Database::connection()->query('SELECT hidden_areas FROM app_settings WHERE id = 1')->fetchColumn(); + } catch (\Throwable $e) { + return false; + } + return in_array($area, self::decodeHiddenAreas($raw), true); + } + + /** + * Eigener Endpunkt statt Teil von update(): die Schalter im Dashboard speichern sofort + * einzeln, ohne das komplette Website-Einstellungsformular mitschicken zu muessen. + */ + public static function updateVisibility(): void + { + $body = Http::jsonBody(); + $hidden = is_array($body['hidden_areas'] ?? null) ? $body['hidden_areas'] : []; + $hidden = array_values(array_intersect(self::AREAS, $hidden)); + + $db = Database::connection(); + $db->exec('INSERT IGNORE INTO app_settings (id) VALUES (1)'); + $stmt = $db->prepare('UPDATE app_settings SET hidden_areas = ? WHERE id = 1'); + $stmt->execute([json_encode($hidden)]); + + Http::send(['hidden_areas' => $hidden]); + } + private const PACKAGE_CARD_THEMES = ['graphite', 'deep-blue', 'warm-bronze']; private const PACKAGE_CARD_LAYOUTS = ['grid', 'strip', 'coverflow']; diff --git a/hifi/api/src/Support/Schema.php b/hifi/api/src/Support/Schema.php index 8e0fb13..b94cfd1 100644 --- a/hifi/api/src/Support/Schema.php +++ b/hifi/api/src/Support/Schema.php @@ -61,6 +61,7 @@ class Schema gallery_card_text_y TINYINT UNSIGNED NOT NULL DEFAULT 100, site_font VARCHAR(255) NULL, page_loader_enabled TINYINT(1) NOT NULL DEFAULT 1, + hidden_areas TEXT NULL, downloads_password VARCHAR(100) NULL, mail_host VARCHAR(255) NULL, mail_port INT NULL, @@ -420,6 +421,7 @@ class Schema 'gallery_card_text_y' => 'TINYINT UNSIGNED NOT NULL DEFAULT 100', 'site_font' => 'VARCHAR(255) NULL', 'page_loader_enabled' => 'TINYINT(1) NOT NULL DEFAULT 1', + 'hidden_areas' => 'TEXT NULL', 'downloads_password' => 'VARCHAR(100) NULL', 'mail_host' => 'VARCHAR(255) NULL', 'mail_port' => 'INT NULL', diff --git a/hifi/assets/AccountSettings-BMihbnHe.js b/hifi/assets/AccountSettings-3Az7PIEf.js similarity index 99% rename from hifi/assets/AccountSettings-BMihbnHe.js rename to hifi/assets/AccountSettings-3Az7PIEf.js index 13c1935..56ccef6 100644 --- a/hifi/assets/AccountSettings-BMihbnHe.js +++ b/hifi/assets/AccountSettings-3Az7PIEf.js @@ -1,4 +1,4 @@ -import{b as De,r as I,j as u,a as V}from"./index-CeNRYcbS.js";var Y={},Fe=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ye={},S={};let de;const Ue=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];S.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};S.getSymbolTotalCodewords=function(t){return Ue[t]};S.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};S.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');de=t};S.isKanjiModeEnabled=function(){return typeof de<"u"};S.toSJIS=function(t){return de(t)};var W={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+s)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})(W);function xe(){this.buffer=[],this.length=0}xe.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let s=0;s>>t-s-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var ze=xe;function O(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}O.prototype.set=function(e,t,s,n){const r=e*this.size+t;this.data[r]=s,n&&(this.reservedBit[r]=!0)};O.prototype.get=function(e,t){return this.data[e*this.size+t]};O.prototype.xor=function(e,t,s){this.data[e*this.size+t]^=s};O.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ke=O,Ce={};(function(e){const t=S.getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,o=t(n),i=o===145?26:Math.ceil((o-13)/(2*r-2))*2,l=[o-7];for(let a=1;a=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const o=r.size;let i=0,l=0,a=0,c=null,d=null;for(let x=0;x=5&&(i+=t.N1+(l-5)),c=f,l=1),f=r.get(y,x),f===d?a++:(a>=5&&(i+=t.N1+(a-5)),d=f,a=1)}l>=5&&(i+=t.N1+(l-5)),a>=5&&(i+=t.N1+(a-5))}return i},e.getPenaltyN2=function(r){const o=r.size;let i=0;for(let l=0;l=10&&(l===1488||l===93)&&i++,a=a<<1&2047|r.get(d,c),d>=10&&(a===1488||a===93)&&i++}return i*t.N3},e.getPenaltyN4=function(r){let o=0;const i=r.data.length;for(let a=0;a=0;){const i=o[0];for(let a=0;a0){const o=new Uint8Array(this.degree);return o.set(n,r),o}return n};var He=ce,ke={},R={},fe={};fe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var _={};const Se="[0-9]+",Je="[A-Z $%*+\\-./:]+";let J="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";J=J.replace(/u/g,"\\u");const Ye="(?:(?![A-Z0-9 $%*+\\-./:]|"+J+`)(?:.|[\r +import{b as De,r as I,j as u,a as V}from"./index-DM5dAVp5.js";var Y={},Fe=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ye={},S={};let de;const Ue=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];S.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};S.getSymbolTotalCodewords=function(t){return Ue[t]};S.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};S.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');de=t};S.isKanjiModeEnabled=function(){return typeof de<"u"};S.toSJIS=function(t){return de(t)};var W={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+s)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})(W);function xe(){this.buffer=[],this.length=0}xe.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let s=0;s>>t-s-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var ze=xe;function O(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}O.prototype.set=function(e,t,s,n){const r=e*this.size+t;this.data[r]=s,n&&(this.reservedBit[r]=!0)};O.prototype.get=function(e,t){return this.data[e*this.size+t]};O.prototype.xor=function(e,t,s){this.data[e*this.size+t]^=s};O.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ke=O,Ce={};(function(e){const t=S.getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,o=t(n),i=o===145?26:Math.ceil((o-13)/(2*r-2))*2,l=[o-7];for(let a=1;a=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const o=r.size;let i=0,l=0,a=0,c=null,d=null;for(let x=0;x=5&&(i+=t.N1+(l-5)),c=f,l=1),f=r.get(y,x),f===d?a++:(a>=5&&(i+=t.N1+(a-5)),d=f,a=1)}l>=5&&(i+=t.N1+(l-5)),a>=5&&(i+=t.N1+(a-5))}return i},e.getPenaltyN2=function(r){const o=r.size;let i=0;for(let l=0;l=10&&(l===1488||l===93)&&i++,a=a<<1&2047|r.get(d,c),d>=10&&(a===1488||a===93)&&i++}return i*t.N3},e.getPenaltyN4=function(r){let o=0;const i=r.data.length;for(let a=0;a=0;){const i=o[0];for(let a=0;a0){const o=new Uint8Array(this.degree);return o.set(n,r),o}return n};var He=ce,ke={},R={},fe={};fe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var _={};const Se="[0-9]+",Je="[A-Z $%*+\\-./:]+";let J="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";J=J.replace(/u/g,"\\u");const Ye="(?:(?![A-Z0-9 $%*+\\-./:]|"+J+`)(?:.|[\r ]))+`;_.KANJI=new RegExp(J,"g");_.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");_.BYTE=new RegExp(Ye,"g");_.NUMERIC=new RegExp(Se,"g");_.ALPHANUMERIC=new RegExp(Je,"g");const Oe=new RegExp("^"+J+"$"),$e=new RegExp("^"+Se+"$"),qe=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");_.testKanji=function(t){return Oe.test(t)};_.testNumeric=function(t){return $e.test(t)};_.testAlphanumeric=function(t){return qe.test(t)};(function(e){const t=fe,s=_;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,i){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?o.ccBits[0]:i<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return s.testNumeric(o)?e.NUMERIC:s.testAlphanumeric(o)?e.ALPHANUMERIC:s.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function n(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+r)}}e.from=function(o,i){if(e.isValid(o))return o;try{return n(o)}catch{return i}}})(R);(function(e){const t=S,s=Z,n=W,r=R,o=fe,i=7973,l=t.getBCHDigit(i);function a(y,f,p){for(let w=1;w<=40;w++)if(f<=e.getCapacity(w,p,y))return w}function c(y,f){return r.getCharCountIndicator(y,f)+4}function d(y,f){let p=0;return y.forEach(function(w){const B=c(w.mode,f);p+=B+w.getBitsLength()}),p}function x(y,f){for(let p=1;p<=40;p++)if(d(y,p)<=e.getCapacity(p,f,r.MIXED))return p}e.from=function(f,p){return o.isValid(f)?parseInt(f,10):p},e.getCapacity=function(f,p,w){if(!o.isValid(f))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=r.BYTE);const B=t.getSymbolTotalCodewords(f),h=s.getTotalCodewordsCount(f,p),b=(B-h)*8;if(w===r.MIXED)return b;const g=b-c(w,f);switch(w){case r.NUMERIC:return Math.floor(g/10*3);case r.ALPHANUMERIC:return Math.floor(g/11*2);case r.KANJI:return Math.floor(g/13);case r.BYTE:default:return Math.floor(g/8)}},e.getBestVersionForData=function(f,p){let w;const B=n.from(p,n.M);if(Array.isArray(f)){if(f.length>1)return x(f,B);if(f.length===0)return 1;w=f[0]}else w=f;return a(w.mode,w.getLength(),B)},e.getEncodedBits=function(f){if(!o.isValid(f)||f<7)throw new Error("Invalid QR Code version");let p=f<<12;for(;t.getBCHDigit(p)-l>=0;)p^=i<=0;)r^=Ie<0&&(n=this.data.substr(s),r=parseInt(n,10),t.put(r,o*3+1))};var We=D;const Ze=R,te=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function F(e){this.mode=Ze.ALPHANUMERIC,this.data=e}F.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(t){let s;for(s=0;s+2<=this.data.length;s+=2){let n=te.indexOf(this.data[s])*45;n+=te.indexOf(this.data[s+1]),t.put(n,11)}this.data.length%2&&t.put(te.indexOf(this.data[s]),6)};var Xe=F;const et=R;function U(e){this.mode=et.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}U.getBitsLength=function(t){return t*8};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(e){for(let t=0,s=this.data.length;t=33088&&s<=40956)s-=33088;else if(s>=57408&&s<=60351)s-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),e.put(s,13)}};var ot=z,Me={exports:{}};(function(e){var t={single_source_shortest_paths:function(s,n,r){var o={},i={};i[n]=0;var l=t.PriorityQueue.make();l.push(n,0);for(var a,c,d,x,y,f,p,w,B;!l.empty();){a=l.pop(),c=a.value,x=a.cost,y=s[c]||{};for(d in y)y.hasOwnProperty(d)&&(f=y[d],p=x+f,w=i[d],B=typeof i[d]>"u",(B||w>p)&&(i[d]=p,l.push(d,p),o[d]=c))}if(typeof r<"u"&&typeof i[r]>"u"){var h=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(h)}return o},extract_shortest_path_from_predecessor_list:function(s,n){for(var r=[],o=n;o;)r.push(o),s[o],o=s[o];return r.reverse(),r},find_path:function(s,n,r){var o=t.single_source_shortest_paths(s,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(s){var n=t.PriorityQueue,r={},o;s=s||{};for(o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);return r.queue=[],r.sorter=s.sorter||n.default_sorter,r},default_sorter:function(s,n){return s.cost-n.cost},push:function(s,n){var r={value:s,cost:n};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Me);var st=Me.exports;(function(e){const t=R,s=We,n=Xe,r=tt,o=ot,i=_,l=S,a=st;function c(h){return unescape(encodeURIComponent(h)).length}function d(h,b,g){const m=[];let C;for(;(C=h.exec(g))!==null;)m.push({data:C[0],index:C.index,mode:b,length:C[0].length});return m}function x(h){const b=d(i.NUMERIC,t.NUMERIC,h),g=d(i.ALPHANUMERIC,t.ALPHANUMERIC,h);let m,C;return l.isKanjiModeEnabled()?(m=d(i.BYTE,t.BYTE,h),C=d(i.KANJI,t.KANJI,h)):(m=d(i.BYTE_KANJI,t.BYTE,h),C=[]),b.concat(g,m,C).sort(function(A,k){return A.index-k.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function y(h,b){switch(b){case t.NUMERIC:return s.getBitsLength(h);case t.ALPHANUMERIC:return n.getBitsLength(h);case t.KANJI:return o.getBitsLength(h);case t.BYTE:return r.getBitsLength(h)}}function f(h){return h.reduce(function(b,g){const m=b.length-1>=0?b[b.length-1]:null;return m&&m.mode===g.mode?(b[b.length-1].data+=g.data,b):(b.push(g),b)},[])}function p(h){const b=[];for(let g=0;g=0&&l<=6&&(a===0||a===6)||a>=0&&a<=6&&(l===0||l===6)||l>=2&&l<=4&&a>=2&&a<=4?e.set(o+l,i+a,!0,!0):e.set(o+l,i+a,!1,!0))}}function gt(e){const t=e.size;for(let s=8;s>l&1)===1,e.set(r,o,i,!0),e.set(o,r,i,!0)}function oe(e,t,s){const n=e.size,r=ct.getEncodedBits(t,s);let o,i;for(o=0;o<15;o++)i=(r>>o&1)===1,o<6?e.set(o,8,i,!0):o<8?e.set(o+1,8,i,!0):e.set(n-15+o,8,i,!0),o<8?e.set(8,n-o-1,i,!0):o<9?e.set(8,15-o-1+1,i,!0):e.set(8,15-o-1,i,!0);e.set(n-8,8,1,!0)}function wt(e,t){const s=e.size;let n=-1,r=s-1,o=7,i=0;for(let l=s-1;l>0;l-=2)for(l===6&&l--;;){for(let a=0;a<2;a++)if(!e.isReserved(r,l-a)){let c=!1;i>>o&1)===1),e.set(r,l-a,c),o--,o===-1&&(i++,o=7)}if(r+=n,r<0||s<=r){r-=n,n=-n;break}}}function pt(e,t,s){const n=new it;s.forEach(function(a){n.put(a.mode.bit,4),n.put(a.getLength(),ft.getCharCountIndicator(a.mode,e)),a.write(n)});const r=ee.getSymbolTotalCodewords(e),o=le.getTotalCodewordsCount(e,t),i=(r-o)*8;for(n.getLengthInBits()+4<=i&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const l=(i-n.getLengthInBits())/8;for(let a=0;a{i.get("/admin-users").then(y),i.get("/permissions/catalog").then(_),(o("permission_groups.manage")||o("users.manage"))&&i.get("/permission-groups").then(w)};n.useEffect(m,[]);const v=t=>{h(t.id),b(t.is_primary),d({username:t.username,password:"",is_super_admin:t.is_super_admin,permissions:t.permissions,group_ids:t.groups.map(s=>s.id)})},N=()=>{h(null),b(!1),d(k)},S=t=>{d(s=>({...s,permissions:s.permissions.includes(t)?s.permissions.filter(u=>u!==t):[...s.permissions,t]}))},B=t=>{d(s=>({...s,group_ids:s.group_ids.includes(t)?s.group_ids.filter(u=>u!==t):[...s.group_ids,t]}))},E=async t=>{t.preventDefault(),c("");try{if(l)await i.put(`/admin-users/${l}`,a);else{if(a.password.length<8){c("Passwort muss mindestens 8 Zeichen lang sein");return}await i.post("/admin-users",a)}N(),m()}catch(s){c(s.message)}},A=async t=>{if(confirm("Diesen Benutzer wirklich löschen?"))try{await i.delete(`/admin-users/${t}`),m()}catch(s){alert(s.message)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Benutzer"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Jeder Mitarbeiter bekommt ein eigenes Konto mit genau den Rechten, die er braucht."}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Benutzername"}),e.jsx("th",{className:"px-4 py-2",children:"Rolle"}),e.jsx("th",{className:"px-4 py-2",children:"Berechtigungsgruppen"}),e.jsx("th",{className:"px-4 py-2",children:"Zuletzt aktiv"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[x.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsxs("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:[t.username,t.id===(r==null?void 0:r.id)&&e.jsx("span",{className:"ml-1 text-xs text-neutral-400",children:"(du)"}),t.is_primary&&e.jsx("span",{className:"ml-1 text-xs text-neutral-400",children:"(Erst-Administrator)"})]}),e.jsx("td",{className:"px-4 py-2",children:t.is_super_admin?e.jsx("span",{className:"rounded-full bg-brand-100 px-2 py-0.5 text-xs font-medium text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",children:"Super-Admin"}):e.jsxs("span",{className:"text-neutral-500 dark:text-neutral-400",children:[t.permissions.length," Einzelrechte"]})}),e.jsx("td",{className:"px-4 py-2",children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[t.groups.map(s=>e.jsx("span",{className:"rounded-full bg-neutral-100 px-2 py-0.5 text-xs text-neutral-600 dark:bg-neutral-800 dark:text-neutral-300",children:s.name},s.id)),t.groups.length===0&&"–"]})}),e.jsx("td",{className:"px-4 py-2 text-neutral-500 dark:text-neutral-400",children:C(t.last_active_at)}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>v(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),t.id!==(r==null?void 0:r.id)&&!t.is_primary&&e.jsx("button",{onClick:()=>A(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),x.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:5,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Benutzer angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:E,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Benutzer bearbeiten":"Neuer Benutzer"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername *"}),e.jsx("input",{required:!0,value:a.username,onChange:t=>d({...a,username:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",l?"(leer lassen = unverändert)":"*"]}),e.jsx("input",{type:"password",required:!l,value:a.password,onChange:t=>d({...a,password:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),(r==null?void 0:r.is_super_admin)&&e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:a.is_super_admin,disabled:g,onChange:t=>d({...a,is_super_admin:t.target.checked}),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500 disabled:opacity-50"}),"Super-Admin (hat automatisch alle Rechte)"]}),g&&e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Der Erst-Administrator behält immer den Super-Admin-Status."})]}),!a.is_super_admin&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Einzelne Berechtigungen"}),e.jsx("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:f.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:a.permissions.includes(t.key),onChange:()=>S(t.key),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.label]},t.key))})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Berechtigungsgruppen"}),e.jsxs("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:[p.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:a.group_ids.includes(t.id),onChange:()=>B(t.id),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.name]},t.id)),p.length===0&&e.jsx("p",{className:"text-sm text-neutral-400",children:"Noch keine Berechtigungsgruppen angelegt."})]})]})]}),j&&e.jsx("p",{className:"text-sm text-red-600",children:j}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:N,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{P as default}; +import{b as z,r as n,j as e,a as i}from"./index-DM5dAVp5.js";const k={username:"",password:"",is_super_admin:!1,permissions:[],group_ids:[]};function C(r){return r?new Date(r.replace(" ","T")).toLocaleString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"Noch nie"}function P(){const{user:r,hasPermission:o}=z(),[x,y]=n.useState([]),[f,_]=n.useState([]),[p,w]=n.useState([]),[a,d]=n.useState(k),[l,h]=n.useState(null),[g,b]=n.useState(!1),[j,c]=n.useState(""),m=()=>{i.get("/admin-users").then(y),i.get("/permissions/catalog").then(_),(o("permission_groups.manage")||o("users.manage"))&&i.get("/permission-groups").then(w)};n.useEffect(m,[]);const v=t=>{h(t.id),b(t.is_primary),d({username:t.username,password:"",is_super_admin:t.is_super_admin,permissions:t.permissions,group_ids:t.groups.map(s=>s.id)})},N=()=>{h(null),b(!1),d(k)},S=t=>{d(s=>({...s,permissions:s.permissions.includes(t)?s.permissions.filter(u=>u!==t):[...s.permissions,t]}))},B=t=>{d(s=>({...s,group_ids:s.group_ids.includes(t)?s.group_ids.filter(u=>u!==t):[...s.group_ids,t]}))},E=async t=>{t.preventDefault(),c("");try{if(l)await i.put(`/admin-users/${l}`,a);else{if(a.password.length<8){c("Passwort muss mindestens 8 Zeichen lang sein");return}await i.post("/admin-users",a)}N(),m()}catch(s){c(s.message)}},A=async t=>{if(confirm("Diesen Benutzer wirklich löschen?"))try{await i.delete(`/admin-users/${t}`),m()}catch(s){alert(s.message)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Benutzer"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Jeder Mitarbeiter bekommt ein eigenes Konto mit genau den Rechten, die er braucht."}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Benutzername"}),e.jsx("th",{className:"px-4 py-2",children:"Rolle"}),e.jsx("th",{className:"px-4 py-2",children:"Berechtigungsgruppen"}),e.jsx("th",{className:"px-4 py-2",children:"Zuletzt aktiv"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[x.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsxs("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:[t.username,t.id===(r==null?void 0:r.id)&&e.jsx("span",{className:"ml-1 text-xs text-neutral-400",children:"(du)"}),t.is_primary&&e.jsx("span",{className:"ml-1 text-xs text-neutral-400",children:"(Erst-Administrator)"})]}),e.jsx("td",{className:"px-4 py-2",children:t.is_super_admin?e.jsx("span",{className:"rounded-full bg-brand-100 px-2 py-0.5 text-xs font-medium text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",children:"Super-Admin"}):e.jsxs("span",{className:"text-neutral-500 dark:text-neutral-400",children:[t.permissions.length," Einzelrechte"]})}),e.jsx("td",{className:"px-4 py-2",children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[t.groups.map(s=>e.jsx("span",{className:"rounded-full bg-neutral-100 px-2 py-0.5 text-xs text-neutral-600 dark:bg-neutral-800 dark:text-neutral-300",children:s.name},s.id)),t.groups.length===0&&"–"]})}),e.jsx("td",{className:"px-4 py-2 text-neutral-500 dark:text-neutral-400",children:C(t.last_active_at)}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>v(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),t.id!==(r==null?void 0:r.id)&&!t.is_primary&&e.jsx("button",{onClick:()=>A(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),x.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:5,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Benutzer angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:E,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Benutzer bearbeiten":"Neuer Benutzer"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername *"}),e.jsx("input",{required:!0,value:a.username,onChange:t=>d({...a,username:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",l?"(leer lassen = unverändert)":"*"]}),e.jsx("input",{type:"password",required:!l,value:a.password,onChange:t=>d({...a,password:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),(r==null?void 0:r.is_super_admin)&&e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:a.is_super_admin,disabled:g,onChange:t=>d({...a,is_super_admin:t.target.checked}),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500 disabled:opacity-50"}),"Super-Admin (hat automatisch alle Rechte)"]}),g&&e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Der Erst-Administrator behält immer den Super-Admin-Status."})]}),!a.is_super_admin&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Einzelne Berechtigungen"}),e.jsx("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:f.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:a.permissions.includes(t.key),onChange:()=>S(t.key),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.label]},t.key))})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Berechtigungsgruppen"}),e.jsxs("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:[p.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:a.group_ids.includes(t.id),onChange:()=>B(t.id),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.name]},t.id)),p.length===0&&e.jsx("p",{className:"text-sm text-neutral-400",children:"Noch keine Berechtigungsgruppen angelegt."})]})]})]}),j&&e.jsx("p",{className:"text-sm text-red-600",children:j}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:N,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{P as default}; diff --git a/hifi/assets/Brands-C6eVwhOd.js b/hifi/assets/Brands-iEolLqPk.js similarity index 95% rename from hifi/assets/Brands-C6eVwhOd.js rename to hifi/assets/Brands-iEolLqPk.js index b70b99e..16005f9 100644 --- a/hifi/assets/Brands-C6eVwhOd.js +++ b/hifi/assets/Brands-iEolLqPk.js @@ -1 +1 @@ -import{r as l,j as e,L as k,a as n}from"./index-CeNRYcbS.js";import{I as N}from"./ImageUploadField-DZzU8Hmm.js";import{T as f}from"./TextStyleWidget-DErOyFHL.js";const u={name:"",image_path:"",sort_order:0};function _(){const[i,h]=l.useState([]),[r,s]=l.useState(u),[a,o]=l.useState(null),[c,m]=l.useState(""),d=()=>n.get("/brands").then(h);l.useEffect(()=>{d()},[]);const p=t=>{o(t.id),s({name:t.name,image_path:t.image_path||"",sort_order:t.sort_order})},x=()=>{o(null),s(u)},b=async t=>{t.preventDefault(),m("");try{a?await n.put(`/brands/${a}`,r):await n.post("/brands",r),x(),d()}catch(j){m(j.message)}},g=async t=>{confirm("Marke inkl. aller Modelle/Pakete/Produkte wirklich löschen?")&&(await n.delete(`/brands/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Marken"}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2",children:"Sortierung"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[i.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:t.image_path?e.jsx("img",{src:t.image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:e.jsx(k,{to:`/marken/${t.slug}`,target:"_blank",className:"hover:text-brand-500",children:t.name})}),e.jsx("td",{className:"px-4 py-2",children:t.sort_order}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>p(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>g(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),i.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Marken angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:b,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:a?"Marke bearbeiten":"Neue Marke"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>s({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),a&&e.jsx(f,{fieldKey:`brands.${a}.name`,previewText:r.name||"Beispieltext"})]}),e.jsx(N,{value:r.image_path,onChange:t=>s({...r,image_path:t}),label:"Bild (optional)"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>s({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),c&&e.jsx("p",{className:"text-sm text-red-600",children:c}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:a?"Speichern":"Anlegen"}),a&&e.jsx("button",{type:"button",onClick:x,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{_ as default}; +import{r as l,j as e,L as k,a as n}from"./index-DM5dAVp5.js";import{I as N}from"./ImageUploadField-oqjVVSSG.js";import{T as f}from"./TextStyleWidget-CkwixV2h.js";const u={name:"",image_path:"",sort_order:0};function _(){const[i,h]=l.useState([]),[r,s]=l.useState(u),[a,o]=l.useState(null),[c,m]=l.useState(""),d=()=>n.get("/brands").then(h);l.useEffect(()=>{d()},[]);const p=t=>{o(t.id),s({name:t.name,image_path:t.image_path||"",sort_order:t.sort_order})},x=()=>{o(null),s(u)},b=async t=>{t.preventDefault(),m("");try{a?await n.put(`/brands/${a}`,r):await n.post("/brands",r),x(),d()}catch(j){m(j.message)}},g=async t=>{confirm("Marke inkl. aller Modelle/Pakete/Produkte wirklich löschen?")&&(await n.delete(`/brands/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Marken"}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2",children:"Sortierung"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[i.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:t.image_path?e.jsx("img",{src:t.image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:e.jsx(k,{to:`/marken/${t.slug}`,target:"_blank",className:"hover:text-brand-500",children:t.name})}),e.jsx("td",{className:"px-4 py-2",children:t.sort_order}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>p(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>g(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),i.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Marken angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:b,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:a?"Marke bearbeiten":"Neue Marke"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>s({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),a&&e.jsx(f,{fieldKey:`brands.${a}.name`,previewText:r.name||"Beispieltext"})]}),e.jsx(N,{value:r.image_path,onChange:t=>s({...r,image_path:t}),label:"Bild (optional)"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>s({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),c&&e.jsx("p",{className:"text-sm text-red-600",children:c}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:a?"Speichern":"Anlegen"}),a&&e.jsx("button",{type:"button",onClick:x,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{_ as default}; diff --git a/hifi/assets/ContactRequests-BvNwUpVJ.js b/hifi/assets/ContactRequests-DdKiRF9Y.js similarity index 98% rename from hifi/assets/ContactRequests-BvNwUpVJ.js rename to hifi/assets/ContactRequests-DdKiRF9Y.js index afb1b0c..99c53c4 100644 --- a/hifi/assets/ContactRequests-BvNwUpVJ.js +++ b/hifi/assets/ContactRequests-DdKiRF9Y.js @@ -1 +1 @@ -import{b as f,r as l,j as t,a as c}from"./index-CeNRYcbS.js";const j=d=>new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(d),k={new:"Neu",in_progress:"In Bearbeitung",done:"Erledigt"},v={new:"bg-brand-100 text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",in_progress:"bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-300",done:"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300"},N=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:"h-4 w-4",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7h16M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2m3 0-.8 12.1a1 1 0 0 1-1 .9H7.8a1 1 0 0 1-1-.9L6 7h12ZM10 11v6M14 11v6"})});function _(){const{hasPermission:d}=f(),[n,u]=l.useState([]),[s,m]=l.useState("all"),i=()=>c.get("/contact").then(u);l.useEffect(()=>{i()},[]);const x=async(e,r)=>{await c.patch(`/contact/${e}`,{status:r}),i()},h=async e=>{confirm("Diese Kontaktanfrage wirklich unwiderruflich löschen?")&&(await c.delete(`/contact/${e}`),i())},g=l.useMemo(()=>({all:n.length,new:n.filter(e=>e.status==="new").length,in_progress:n.filter(e=>e.status==="in_progress").length,done:n.filter(e=>e.status==="done").length}),[n]),o=s==="all"?n:n.filter(e=>e.status===s),b=[{value:"all",label:"Alle"},{value:"new",label:"Neu"},{value:"in_progress",label:"In Bearbeitung"},{value:"done",label:"Erledigt"}];return t.jsxs("div",{children:[t.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Kontaktanfragen"}),t.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Alle Anfragen deiner Kunden. Wähle oben einen Reiter, um nur bestimmte Anfragen zu sehen."}),t.jsx("div",{className:"mb-5 flex flex-wrap gap-2",children:b.map(e=>t.jsxs("button",{onClick:()=>m(e.value),className:`rounded-full px-4 py-1.5 text-sm font-medium transition ${s===e.value?"bg-brand-500 text-white":"bg-neutral-100 text-neutral-600 hover:bg-neutral-200 dark:bg-neutral-800 dark:text-neutral-300 dark:hover:bg-neutral-700"}`,children:[e.label," (",g[e.value],")"]},e.value))}),t.jsxs("div",{className:"space-y-3",children:[o.map(e=>{var r;return t.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-4 dark:border-neutral-800 dark:bg-neutral-900",children:[t.jsxs("div",{className:"mb-2 flex flex-wrap items-start justify-between gap-2",children:[t.jsxs("div",{children:[t.jsxs("p",{className:"font-semibold text-neutral-800 dark:text-neutral-100",children:[e.name," · ",e.email,e.phone?` · ${e.phone}`:""]}),e.vin&&t.jsxs("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:["FIN: ",t.jsx("span",{className:"font-mono",children:e.vin})]}),t.jsx("p",{className:"text-xs text-neutral-400",children:new Date(e.created_at.replace(" ","T")).toLocaleString("de-DE")})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("select",{value:e.status,onChange:a=>x(e.id,a.target.value),className:`rounded-full border-0 px-3 py-1 text-xs font-medium ${v[e.status]}`,children:Object.entries(k).map(([a,p])=>t.jsx("option",{value:a,children:p},a))}),d("contact.delete")&&t.jsx("button",{onClick:()=>h(e.id),"aria-label":"Anfrage löschen",title:"Anfrage löschen",className:"rounded-md p-1.5 text-neutral-400 hover:bg-red-50 hover:text-red-600 dark:hover:bg-red-900/20",children:t.jsx(N,{})})]})]}),(e.brand_name||e.model_name||e.package_name||e.product_name)&&t.jsx("p",{className:"mb-2 text-sm text-neutral-500 dark:text-neutral-400",children:[e.brand_name,e.model_name,e.package_name,e.product_name].filter(Boolean).join(" · ")}),((r=e.selected_upgrades)==null?void 0:r.length)>0&&t.jsxs("div",{className:"mb-2 rounded-md bg-brand-50 p-2 text-sm text-brand-800 dark:bg-brand-900/20 dark:text-brand-200",children:[t.jsx("p",{className:"font-semibold",children:"Gewünschte Upgrades:"}),t.jsx("ul",{className:"list-disc pl-5",children:e.selected_upgrades.map(a=>t.jsxs("li",{children:[a.name," – ",j(a.price)]},a.id))})]}),e.message&&t.jsx("p",{className:"text-sm text-neutral-700 dark:text-neutral-300",children:e.message})]},e.id)}),o.length===0&&t.jsx("p",{className:"text-neutral-400",children:s==="all"?"Noch keine Kontaktanfragen eingegangen.":"Keine Anfragen mit diesem Status."})]})]})}export{_ as default}; +import{b as f,r as l,j as t,a as c}from"./index-DM5dAVp5.js";const j=d=>new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(d),k={new:"Neu",in_progress:"In Bearbeitung",done:"Erledigt"},v={new:"bg-brand-100 text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",in_progress:"bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-300",done:"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300"},N=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:"h-4 w-4",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7h16M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2m3 0-.8 12.1a1 1 0 0 1-1 .9H7.8a1 1 0 0 1-1-.9L6 7h12ZM10 11v6M14 11v6"})});function _(){const{hasPermission:d}=f(),[n,u]=l.useState([]),[s,m]=l.useState("all"),i=()=>c.get("/contact").then(u);l.useEffect(()=>{i()},[]);const x=async(e,r)=>{await c.patch(`/contact/${e}`,{status:r}),i()},h=async e=>{confirm("Diese Kontaktanfrage wirklich unwiderruflich löschen?")&&(await c.delete(`/contact/${e}`),i())},g=l.useMemo(()=>({all:n.length,new:n.filter(e=>e.status==="new").length,in_progress:n.filter(e=>e.status==="in_progress").length,done:n.filter(e=>e.status==="done").length}),[n]),o=s==="all"?n:n.filter(e=>e.status===s),b=[{value:"all",label:"Alle"},{value:"new",label:"Neu"},{value:"in_progress",label:"In Bearbeitung"},{value:"done",label:"Erledigt"}];return t.jsxs("div",{children:[t.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Kontaktanfragen"}),t.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Alle Anfragen deiner Kunden. Wähle oben einen Reiter, um nur bestimmte Anfragen zu sehen."}),t.jsx("div",{className:"mb-5 flex flex-wrap gap-2",children:b.map(e=>t.jsxs("button",{onClick:()=>m(e.value),className:`rounded-full px-4 py-1.5 text-sm font-medium transition ${s===e.value?"bg-brand-500 text-white":"bg-neutral-100 text-neutral-600 hover:bg-neutral-200 dark:bg-neutral-800 dark:text-neutral-300 dark:hover:bg-neutral-700"}`,children:[e.label," (",g[e.value],")"]},e.value))}),t.jsxs("div",{className:"space-y-3",children:[o.map(e=>{var r;return t.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-4 dark:border-neutral-800 dark:bg-neutral-900",children:[t.jsxs("div",{className:"mb-2 flex flex-wrap items-start justify-between gap-2",children:[t.jsxs("div",{children:[t.jsxs("p",{className:"font-semibold text-neutral-800 dark:text-neutral-100",children:[e.name," · ",e.email,e.phone?` · ${e.phone}`:""]}),e.vin&&t.jsxs("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:["FIN: ",t.jsx("span",{className:"font-mono",children:e.vin})]}),t.jsx("p",{className:"text-xs text-neutral-400",children:new Date(e.created_at.replace(" ","T")).toLocaleString("de-DE")})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("select",{value:e.status,onChange:a=>x(e.id,a.target.value),className:`rounded-full border-0 px-3 py-1 text-xs font-medium ${v[e.status]}`,children:Object.entries(k).map(([a,p])=>t.jsx("option",{value:a,children:p},a))}),d("contact.delete")&&t.jsx("button",{onClick:()=>h(e.id),"aria-label":"Anfrage löschen",title:"Anfrage löschen",className:"rounded-md p-1.5 text-neutral-400 hover:bg-red-50 hover:text-red-600 dark:hover:bg-red-900/20",children:t.jsx(N,{})})]})]}),(e.brand_name||e.model_name||e.package_name||e.product_name)&&t.jsx("p",{className:"mb-2 text-sm text-neutral-500 dark:text-neutral-400",children:[e.brand_name,e.model_name,e.package_name,e.product_name].filter(Boolean).join(" · ")}),((r=e.selected_upgrades)==null?void 0:r.length)>0&&t.jsxs("div",{className:"mb-2 rounded-md bg-brand-50 p-2 text-sm text-brand-800 dark:bg-brand-900/20 dark:text-brand-200",children:[t.jsx("p",{className:"font-semibold",children:"Gewünschte Upgrades:"}),t.jsx("ul",{className:"list-disc pl-5",children:e.selected_upgrades.map(a=>t.jsxs("li",{children:[a.name," – ",j(a.price)]},a.id))})]}),e.message&&t.jsx("p",{className:"text-sm text-neutral-700 dark:text-neutral-300",children:e.message})]},e.id)}),o.length===0&&t.jsx("p",{className:"text-neutral-400",children:s==="all"?"Noch keine Kontaktanfragen eingegangen.":"Keine Anfragen mit diesem Status."})]})]})}export{_ as default}; diff --git a/hifi/assets/Dashboard-CnATY8Tr.js b/hifi/assets/Dashboard-CnATY8Tr.js new file mode 100644 index 0000000..91b0471 --- /dev/null +++ b/hifi/assets/Dashboard-CnATY8Tr.js @@ -0,0 +1 @@ +import{b,r as c,a as x,j as e,L as m,S as g}from"./index-DM5dAVp5.js";const p={tag:"M4 4h7l9 9-7 7-9-9V4Zm3.5 3.5h.01",car:"M3 13.5 4.5 9A2 2 0 0 1 6.4 7.5h11.2A2 2 0 0 1 19.5 9L21 13.5M3 13.5v4a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1h12v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-4M3 13.5h18M6.5 16.5h.01M17.5 16.5h.01",box:"M12 3 4 7.5v9L12 21l8-4.5v-9L12 3Zm0 9 8-4.5M12 12v9M12 12 4 7.5",mail:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Zm0 0 8 7 8-7"},k=({path:a,className:s="h-6 w-6"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:s,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:a})});function j(){const[a,s]=c.useState(null),[r,l]=c.useState(null),[o,t]=c.useState("");c.useEffect(()=>{x.get("/site-settings").then(n=>s(n.hidden_areas||[])).catch(n=>t(n.message))},[]);const i=async n=>{const d=a,h=a.includes(n)?a.filter(u=>u!==n):[...a,n];s(h),l(n),t("");try{const u=await x.put("/site-settings/visibility",{hidden_areas:h});s(u.hidden_areas)}catch(u){s(d),t(u.message)}finally{l(null)}};return e.jsxs("section",{className:"mt-8 rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Sichtbarkeit der Website"}),e.jsx("p",{className:"mb-5 text-sm text-neutral-500 dark:text-neutral-400",children:"Schalte Bereiche aus, die Besucher gerade nicht sehen sollen. Die Inhalte bleiben gespeichert und sind nach dem Wiedereinschalten sofort wieder da. Änderungen gelten sofort."}),o&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:o}),a===null?!o&&e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:g.map(n=>e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-neutral-400",children:n.title}),e.jsx("p",{className:"mb-3 text-xs text-neutral-500 dark:text-neutral-400",children:n.hint}),e.jsx("ul",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:n.areas.map(d=>{const h=!a.includes(d.key);return e.jsxs("li",{className:"flex items-center justify-between gap-3 py-2.5",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:`text-sm font-medium ${h?"text-neutral-800 dark:text-neutral-100":"text-neutral-400 line-through dark:text-neutral-500"}`,children:d.label}),d.note&&e.jsx("p",{className:"text-xs text-neutral-400",children:d.note})]}),e.jsxs("label",{className:"relative inline-flex shrink-0 cursor-pointer items-center",title:h?"Sichtbar – zum Ausblenden klicken":"Ausgeblendet – zum Einblenden klicken",children:[e.jsxs("span",{className:"sr-only",children:[d.label," sichtbar"]}),e.jsx("input",{type:"checkbox",checked:h,disabled:r!==null,onChange:()=>i(d.key),className:"peer sr-only"}),e.jsx("div",{className:"h-6 w-11 rounded-full bg-neutral-200 transition peer-checked:bg-brand-500 peer-disabled:opacity-60 dark:bg-neutral-700"}),e.jsx("div",{className:"absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"})]})]},d.key)})})]},n.title))})]})}function f(){const[a,s]=c.useState(null),[r,l]=c.useState("");if(c.useEffect(()=>{x.get("/analytics/report").then(s).catch(t=>l(t.message))},[]),r)return e.jsxs("section",{className:"mt-8 rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"text-sm text-red-600",children:r})]});if(!a)return null;if(!a.configured)return e.jsxs("section",{className:"mt-8 rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Noch nicht eingerichtet. Unter"," ",e.jsx(m,{to:"/admin/settings/website",className:"text-brand-600 hover:underline dark:text-brand-400",children:"Einstellungen → Website"})," ","kannst du die Dashboard-Anbindung konfigurieren, um hier Besucherzahlen zu sehen."]})]});const o=Math.max(1,...a.daily.map(t=>t.pageviews));return e.jsxs("section",{className:"mt-8 rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"mb-5 text-sm text-neutral-500 dark:text-neutral-400",children:"Letzte 7 Tage."}),e.jsxs("div",{className:"mb-6 grid grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.users}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Nutzer"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.sessions}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Sitzungen"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.pageviews}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Seitenaufrufe"})]})]}),a.daily.length>0&&e.jsx("div",{className:"mb-6 flex h-24 items-end gap-1.5",children:a.daily.map(t=>e.jsxs("div",{className:"flex flex-1 flex-col items-center gap-1",children:[e.jsx("div",{className:"w-full rounded-t bg-brand-400 dark:bg-brand-500",style:{height:`${Math.max(4,t.pageviews/o*80)}px`},title:`${t.date}: ${t.pageviews} Seitenaufrufe`}),e.jsxs("span",{className:"text-[10px] text-neutral-400",children:[t.date.slice(6,8),".",t.date.slice(4,6),"."]})]},t.date))}),a.top_pages.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-neutral-400",children:"Meistbesuchte Seiten"}),e.jsx("ul",{className:"space-y-1 text-sm",children:a.top_pages.map(t=>e.jsxs("li",{className:"flex items-center justify-between gap-3 text-neutral-700 dark:text-neutral-300",children:[e.jsx("span",{className:"truncate font-mono text-xs",children:t.path}),e.jsx("span",{className:"shrink-0 font-semibold",children:t.pageviews})]},t.path))})]})]})}function v(){const{user:a,hasPermission:s}=b(),[r,l]=c.useState({});c.useEffect(()=>{s("brands.manage")&&x.get("/brands").then(t=>l(i=>({...i,brands:t.length}))),(s("models.manage")||s("packages.manage"))&&x.get("/models").then(t=>l(i=>({...i,models:t.length}))),s("packages.manage")&&x.get("/packages").then(t=>l(i=>({...i,packages:t.length}))),s("contact.manage")&&x.get("/contact").then(t=>l(i=>({...i,newContacts:t.filter(n=>n.status==="new").length})))},[]);const o=[{key:"brands",label:"Marken",icon:"tag",hint:"Die Hersteller, z. B. Audi oder BMW.",value:r.brands,to:"/admin/brands",show:s("brands.manage")},{key:"models",label:"Modelle",icon:"car",hint:"Die Fahrzeuge einer Marke, z. B. A4.",value:r.models,to:"/admin/models",show:s("models.manage")},{key:"packages",label:"Pakete",icon:"box",hint:"Die Sound-Pakete für ein Modell.",value:r.packages,to:"/admin/packages",show:s("packages.manage")},{key:"contacts",label:"Neue Anfragen",icon:"mail",hint:"Kunden, die noch auf Antwort warten.",value:r.newContacts,to:"/admin/contact-requests",show:s("contact.manage"),highlight:!0}].filter(t=>t.show);return e.jsxs("div",{children:[e.jsxs("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:["Willkommen, ",a==null?void 0:a.username,"!"]}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Hier siehst du auf einen Blick, wie viel in deinem Shop hinterlegt ist. Klicke auf eine Kachel, um dorthin zu gelangen."}),o.length===0?e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:"Für deinen Account sind noch keine Bereiche freigeschaltet. Bitte wende dich an einen Administrator."}):e.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:o.map(t=>e.jsxs(m,{to:t.to,className:`rounded-xl border p-5 shadow-sm transition hover:-translate-y-0.5 hover:shadow-md ${t.highlight&&t.value>0?"border-brand-300 bg-brand-50 dark:border-brand-900 dark:bg-brand-900/20":"border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900"}`,children:[e.jsx("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-full bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:e.jsx(k,{path:p[t.icon]})}),e.jsx("p",{className:"text-sm font-semibold text-neutral-700 dark:text-neutral-200",children:t.label}),e.jsx("p",{className:"mt-1 text-3xl font-extrabold text-brand-600 dark:text-brand-400",children:t.value??"…"}),e.jsx("p",{className:"mt-2 text-xs text-neutral-500 dark:text-neutral-400",children:t.hint})]},t.key))}),(s("content.manage")||s("settings.manage"))&&e.jsx(j,{}),s("settings.manage")&&e.jsx(f,{})]})}export{v as default}; diff --git a/hifi/assets/Dashboard-bbSgJcnm.js b/hifi/assets/Dashboard-bbSgJcnm.js deleted file mode 100644 index 6f9c08d..0000000 --- a/hifi/assets/Dashboard-bbSgJcnm.js +++ /dev/null @@ -1 +0,0 @@ -import{b as h,r as d,a as i,j as e,L as c}from"./index-CeNRYcbS.js";const m={tag:"M4 4h7l9 9-7 7-9-9V4Zm3.5 3.5h.01",car:"M3 13.5 4.5 9A2 2 0 0 1 6.4 7.5h11.2A2 2 0 0 1 19.5 9L21 13.5M3 13.5v4a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1h12v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-4M3 13.5h18M6.5 16.5h.01M17.5 16.5h.01",box:"M12 3 4 7.5v9L12 21l8-4.5v-9L12 3Zm0 9 8-4.5M12 12v9M12 12 4 7.5",mail:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Zm0 0 8 7 8-7"},u=({path:a,className:s="h-6 w-6"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:s,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:a})});function g(){const[a,s]=d.useState(null),[n,l]=d.useState("");if(d.useEffect(()=>{i.get("/analytics/report").then(s).catch(t=>l(t.message))},[]),n)return e.jsxs("section",{className:"mt-8 rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"text-sm text-red-600",children:n})]});if(!a)return null;if(!a.configured)return e.jsxs("section",{className:"mt-8 rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Noch nicht eingerichtet. Unter"," ",e.jsx(c,{to:"/admin/settings/website",className:"text-brand-600 hover:underline dark:text-brand-400",children:"Einstellungen → Website"})," ","kannst du die Dashboard-Anbindung konfigurieren, um hier Besucherzahlen zu sehen."]})]});const o=Math.max(1,...a.daily.map(t=>t.pageviews));return e.jsxs("section",{className:"mt-8 rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"mb-5 text-sm text-neutral-500 dark:text-neutral-400",children:"Letzte 7 Tage."}),e.jsxs("div",{className:"mb-6 grid grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.users}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Nutzer"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.sessions}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Sitzungen"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.pageviews}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Seitenaufrufe"})]})]}),a.daily.length>0&&e.jsx("div",{className:"mb-6 flex h-24 items-end gap-1.5",children:a.daily.map(t=>e.jsxs("div",{className:"flex flex-1 flex-col items-center gap-1",children:[e.jsx("div",{className:"w-full rounded-t bg-brand-400 dark:bg-brand-500",style:{height:`${Math.max(4,t.pageviews/o*80)}px`},title:`${t.date}: ${t.pageviews} Seitenaufrufe`}),e.jsxs("span",{className:"text-[10px] text-neutral-400",children:[t.date.slice(6,8),".",t.date.slice(4,6),"."]})]},t.date))}),a.top_pages.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-neutral-400",children:"Meistbesuchte Seiten"}),e.jsx("ul",{className:"space-y-1 text-sm",children:a.top_pages.map(t=>e.jsxs("li",{className:"flex items-center justify-between gap-3 text-neutral-700 dark:text-neutral-300",children:[e.jsx("span",{className:"truncate font-mono text-xs",children:t.path}),e.jsx("span",{className:"shrink-0 font-semibold",children:t.pageviews})]},t.path))})]})]})}function p(){const{user:a,hasPermission:s}=h(),[n,l]=d.useState({});d.useEffect(()=>{s("brands.manage")&&i.get("/brands").then(t=>l(r=>({...r,brands:t.length}))),(s("models.manage")||s("packages.manage"))&&i.get("/models").then(t=>l(r=>({...r,models:t.length}))),s("packages.manage")&&i.get("/packages").then(t=>l(r=>({...r,packages:t.length}))),s("contact.manage")&&i.get("/contact").then(t=>l(r=>({...r,newContacts:t.filter(x=>x.status==="new").length})))},[]);const o=[{key:"brands",label:"Marken",icon:"tag",hint:"Die Hersteller, z. B. Audi oder BMW.",value:n.brands,to:"/admin/brands",show:s("brands.manage")},{key:"models",label:"Modelle",icon:"car",hint:"Die Fahrzeuge einer Marke, z. B. A4.",value:n.models,to:"/admin/models",show:s("models.manage")},{key:"packages",label:"Pakete",icon:"box",hint:"Die Sound-Pakete für ein Modell.",value:n.packages,to:"/admin/packages",show:s("packages.manage")},{key:"contacts",label:"Neue Anfragen",icon:"mail",hint:"Kunden, die noch auf Antwort warten.",value:n.newContacts,to:"/admin/contact-requests",show:s("contact.manage"),highlight:!0}].filter(t=>t.show);return e.jsxs("div",{children:[e.jsxs("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:["Willkommen, ",a==null?void 0:a.username,"!"]}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Hier siehst du auf einen Blick, wie viel in deinem Shop hinterlegt ist. Klicke auf eine Kachel, um dorthin zu gelangen."}),o.length===0?e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:"Für deinen Account sind noch keine Bereiche freigeschaltet. Bitte wende dich an einen Administrator."}):e.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:o.map(t=>e.jsxs(c,{to:t.to,className:`rounded-xl border p-5 shadow-sm transition hover:-translate-y-0.5 hover:shadow-md ${t.highlight&&t.value>0?"border-brand-300 bg-brand-50 dark:border-brand-900 dark:bg-brand-900/20":"border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900"}`,children:[e.jsx("div",{className:"mb-3 flex h-10 w-10 items-center justify-center rounded-full bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:e.jsx(u,{path:m[t.icon]})}),e.jsx("p",{className:"text-sm font-semibold text-neutral-700 dark:text-neutral-200",children:t.label}),e.jsx("p",{className:"mt-1 text-3xl font-extrabold text-brand-600 dark:text-brand-400",children:t.value??"…"}),e.jsx("p",{className:"mt-2 text-xs text-neutral-500 dark:text-neutral-400",children:t.hint})]},t.key))}),s("settings.manage")&&e.jsx(g,{})]})}export{p as default}; diff --git a/hifi/assets/DatabaseSettings-BLcZKDfK.js b/hifi/assets/DatabaseSettings-BJdW7tk9.js similarity index 99% rename from hifi/assets/DatabaseSettings-BLcZKDfK.js rename to hifi/assets/DatabaseSettings-BJdW7tk9.js index 61a4ba0..fe398f8 100644 --- a/hifi/assets/DatabaseSettings-BLcZKDfK.js +++ b/hifi/assets/DatabaseSettings-BJdW7tk9.js @@ -1 +1 @@ -import{r as s,a as l,j as e}from"./index-CeNRYcbS.js";function q(){const[r,n]=s.useState({host:"",name:"",user:"",password:"",charset:"utf8mb4"}),[x,h]=s.useState(!1),[F,g]=s.useState(!0),[p,H]=s.useState(!1),[k,f]=s.useState(!1),[j,w]=s.useState(""),[V,v]=s.useState(!1),[a,u]=s.useState(null),[o,N]=s.useState(!0),[y,S]=s.useState(!1),[C,m]=s.useState(null),[B,D]=s.useState(!1),[c,P]=s.useState(null),[z,E]=s.useState(""),[d,A]=s.useState(null),T=()=>{g(!0),l.get("/settings/database").then(t=>{n({...t.config,password:""}),h(t.has_password)}).finally(()=>g(!1))},b=()=>{N(!0),l.get("/settings/schema-check").then(u).catch(t=>u({ok:!1,error:t.message,tables:[]})).finally(()=>N(!1))};s.useEffect(()=>{T(),b(),l.get("/settings/compress-status").then(t=>A(t.gd_available)).catch(()=>A(!1))},[]);const M=async()=>{S(!0),m(null);try{const t=await l.post("/settings/schema-migrate",{});m(t.actions),u(t.report)}catch(t){m(["Fehler: "+t.message])}finally{S(!1)}},R=async()=>{D(!0),E(""),P(null);try{const t=await l.post("/settings/compress-uploads",{});P(t)}catch(t){E(t.message)}finally{D(!1)}},_=async t=>{t.preventDefault(),f(!0),w(""),v(!1);try{await l.post("/settings/database",r),v(!0),n(i=>({...i,password:""})),h(!0),b()}catch(i){w(i.message)}finally{f(!1)}};return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Datenbank-Zugangsdaten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wichtig für einen Umzug auf einen anderen Server/Webspace: Trage hier die Zugangsdaten der dortigen Datenbank ein. Die Verbindung wird vor dem Speichern getestet, damit du dich nicht aussperrst."}),F?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{onSubmit:_,className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Host *"}),e.jsx("input",{required:!0,value:r.host,onChange:t=>n({...r,host:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Datenbankname *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>n({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzer *"}),e.jsx("input",{required:!0,value:r.user,onChange:t=>n({...r,user:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",x?"(leer lassen = unverändert)":""]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:p?"text":"password",value:r.password,onChange:t=>n({...r,password:t.target.value}),placeholder:x?"••••••••":"",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("button",{type:"button",onClick:()=>H(t=>!t),className:"shrink-0 rounded-md border border-neutral-300 px-3 text-sm dark:border-neutral-700",children:p?"Verbergen":"Anzeigen"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Zeichensatz"}),e.jsx("input",{value:r.charset,onChange:t=>n({...r,charset:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),j&&e.jsx("p",{className:"text-sm text-red-600",children:j}),V&&e.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Verbindung erfolgreich getestet und gespeichert."}),e.jsx("button",{type:"submit",disabled:k,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:k?"Teste & speichere…":"Verbindung testen & speichern"})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Datenbankstruktur"}),!o&&a&&e.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-semibold ${a.ok?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300"}`,children:a.ok?"Datenbank OK":"Datenbank nicht OK"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Prüft, ob diese Datenbank alle Tabellen und Spalten hat, die der aktuelle Code-Stand braucht – wichtig, wenn deine Live-Version auf einem anderen Server einen älteren Stand hat."}),o&&e.jsx("p",{className:"text-sm text-neutral-400",children:"Prüfe…"}),!o&&a&&!a.ok&&e.jsx("ul",{className:"mb-4 space-y-1 rounded-md bg-red-50 p-3 text-sm text-red-800 dark:bg-red-900/20 dark:text-red-300",children:a.tables.filter(t=>!t.ok).map(t=>e.jsx("li",{children:t.exists?e.jsxs(e.Fragment,{children:["Tabelle ",e.jsx("code",{className:"font-mono",children:t.table}),": Spalte(n) fehlen – ",t.missing_columns.join(", ")]}):e.jsxs(e.Fragment,{children:["Tabelle ",e.jsx("code",{className:"font-mono",children:t.table})," fehlt komplett"]})},t.table))}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{onClick:b,disabled:o,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Erneut prüfen"}),a&&!a.ok&&e.jsx("button",{onClick:M,disabled:y,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:y?"Aktualisiere…":"Datenbankstruktur aktualisieren"})]}),C&&e.jsx("ul",{className:"mt-3 space-y-1 rounded-md bg-neutral-50 p-3 text-sm text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300",children:C.map((t,i)=>e.jsx("li",{children:t},i))})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Bilder optimieren"}),d!==null&&e.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-semibold ${d?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300"}`,children:d?"Aktiv":"Nicht verfügbar"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Neu hochgeladene Bilder werden seit Kurzem automatisch verkleinert und komprimiert. Dieser Button holt das für alle bereits vorhandenen Bilder nach – nützlich, wenn die Seite durch zu hoch aufgelöste Fotos spürbar langsam lädt."}),d===!1&&e.jsx("p",{className:"mb-4 rounded-md bg-amber-50 p-3 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:'Diese Funktion braucht die PHP-Erweiterung "gd", die auf diesem Server aktuell nicht aktiv ist. Bei den meisten Hostern (auch All-Inkl) ist sie standardmäßig Teil jeder PHP-Version und lässt sich nicht einzeln zu- oder abschalten – bitte beim Hoster-Support nachfragen bzw. prüfen, ob in den Hosting-Einstellungen eine andere PHP-Version ausgewählt werden muss.'}),e.jsx("button",{onClick:R,disabled:B||d===!1,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:B?"Komprimiert…":"Bestehende Bilder optimieren"}),z&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:z}),c&&e.jsxs("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:[c.processed," Bild(er) verkleinert: ",(c.before_bytes/1024/1024).toFixed(1)," MB"," → ",(c.after_bytes/1024/1024).toFixed(1)," MB."]})]})]})}export{q as default}; +import{r as s,a as l,j as e}from"./index-DM5dAVp5.js";function q(){const[r,n]=s.useState({host:"",name:"",user:"",password:"",charset:"utf8mb4"}),[x,h]=s.useState(!1),[F,g]=s.useState(!0),[p,H]=s.useState(!1),[k,f]=s.useState(!1),[j,w]=s.useState(""),[V,v]=s.useState(!1),[a,u]=s.useState(null),[o,N]=s.useState(!0),[y,S]=s.useState(!1),[C,m]=s.useState(null),[B,D]=s.useState(!1),[c,P]=s.useState(null),[z,E]=s.useState(""),[d,A]=s.useState(null),T=()=>{g(!0),l.get("/settings/database").then(t=>{n({...t.config,password:""}),h(t.has_password)}).finally(()=>g(!1))},b=()=>{N(!0),l.get("/settings/schema-check").then(u).catch(t=>u({ok:!1,error:t.message,tables:[]})).finally(()=>N(!1))};s.useEffect(()=>{T(),b(),l.get("/settings/compress-status").then(t=>A(t.gd_available)).catch(()=>A(!1))},[]);const M=async()=>{S(!0),m(null);try{const t=await l.post("/settings/schema-migrate",{});m(t.actions),u(t.report)}catch(t){m(["Fehler: "+t.message])}finally{S(!1)}},R=async()=>{D(!0),E(""),P(null);try{const t=await l.post("/settings/compress-uploads",{});P(t)}catch(t){E(t.message)}finally{D(!1)}},_=async t=>{t.preventDefault(),f(!0),w(""),v(!1);try{await l.post("/settings/database",r),v(!0),n(i=>({...i,password:""})),h(!0),b()}catch(i){w(i.message)}finally{f(!1)}};return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Datenbank-Zugangsdaten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wichtig für einen Umzug auf einen anderen Server/Webspace: Trage hier die Zugangsdaten der dortigen Datenbank ein. Die Verbindung wird vor dem Speichern getestet, damit du dich nicht aussperrst."}),F?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{onSubmit:_,className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Host *"}),e.jsx("input",{required:!0,value:r.host,onChange:t=>n({...r,host:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Datenbankname *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>n({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzer *"}),e.jsx("input",{required:!0,value:r.user,onChange:t=>n({...r,user:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",x?"(leer lassen = unverändert)":""]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:p?"text":"password",value:r.password,onChange:t=>n({...r,password:t.target.value}),placeholder:x?"••••••••":"",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("button",{type:"button",onClick:()=>H(t=>!t),className:"shrink-0 rounded-md border border-neutral-300 px-3 text-sm dark:border-neutral-700",children:p?"Verbergen":"Anzeigen"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Zeichensatz"}),e.jsx("input",{value:r.charset,onChange:t=>n({...r,charset:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),j&&e.jsx("p",{className:"text-sm text-red-600",children:j}),V&&e.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Verbindung erfolgreich getestet und gespeichert."}),e.jsx("button",{type:"submit",disabled:k,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:k?"Teste & speichere…":"Verbindung testen & speichern"})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Datenbankstruktur"}),!o&&a&&e.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-semibold ${a.ok?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300"}`,children:a.ok?"Datenbank OK":"Datenbank nicht OK"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Prüft, ob diese Datenbank alle Tabellen und Spalten hat, die der aktuelle Code-Stand braucht – wichtig, wenn deine Live-Version auf einem anderen Server einen älteren Stand hat."}),o&&e.jsx("p",{className:"text-sm text-neutral-400",children:"Prüfe…"}),!o&&a&&!a.ok&&e.jsx("ul",{className:"mb-4 space-y-1 rounded-md bg-red-50 p-3 text-sm text-red-800 dark:bg-red-900/20 dark:text-red-300",children:a.tables.filter(t=>!t.ok).map(t=>e.jsx("li",{children:t.exists?e.jsxs(e.Fragment,{children:["Tabelle ",e.jsx("code",{className:"font-mono",children:t.table}),": Spalte(n) fehlen – ",t.missing_columns.join(", ")]}):e.jsxs(e.Fragment,{children:["Tabelle ",e.jsx("code",{className:"font-mono",children:t.table})," fehlt komplett"]})},t.table))}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{onClick:b,disabled:o,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Erneut prüfen"}),a&&!a.ok&&e.jsx("button",{onClick:M,disabled:y,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:y?"Aktualisiere…":"Datenbankstruktur aktualisieren"})]}),C&&e.jsx("ul",{className:"mt-3 space-y-1 rounded-md bg-neutral-50 p-3 text-sm text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300",children:C.map((t,i)=>e.jsx("li",{children:t},i))})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Bilder optimieren"}),d!==null&&e.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-semibold ${d?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300"}`,children:d?"Aktiv":"Nicht verfügbar"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Neu hochgeladene Bilder werden seit Kurzem automatisch verkleinert und komprimiert. Dieser Button holt das für alle bereits vorhandenen Bilder nach – nützlich, wenn die Seite durch zu hoch aufgelöste Fotos spürbar langsam lädt."}),d===!1&&e.jsx("p",{className:"mb-4 rounded-md bg-amber-50 p-3 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:'Diese Funktion braucht die PHP-Erweiterung "gd", die auf diesem Server aktuell nicht aktiv ist. Bei den meisten Hostern (auch All-Inkl) ist sie standardmäßig Teil jeder PHP-Version und lässt sich nicht einzeln zu- oder abschalten – bitte beim Hoster-Support nachfragen bzw. prüfen, ob in den Hosting-Einstellungen eine andere PHP-Version ausgewählt werden muss.'}),e.jsx("button",{onClick:R,disabled:B||d===!1,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:B?"Komprimiert…":"Bestehende Bilder optimieren"}),z&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:z}),c&&e.jsxs("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:[c.processed," Bild(er) verkleinert: ",(c.before_bytes/1024/1024).toFixed(1)," MB"," → ",(c.after_bytes/1024/1024).toFixed(1)," MB."]})]})]})}export{q as default}; diff --git a/hifi/assets/Downloads-B-dRPpYw.js b/hifi/assets/Downloads-4-kfkPkq.js similarity index 98% rename from hifi/assets/Downloads-B-dRPpYw.js rename to hifi/assets/Downloads-4-kfkPkq.js index 5094f6a..bfdf98a 100644 --- a/hifi/assets/Downloads-B-dRPpYw.js +++ b/hifi/assets/Downloads-4-kfkPkq.js @@ -1 +1 @@ -import{r as n,j as e,k as B,A as P,a as m,m as L}from"./index-CeNRYcbS.js";import{E as W,a as F}from"./eye-B3iFgvk-.js";const g="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",S={title:"",description:"",sort_order:0};function D(o,h,l){return new Promise((i,c)=>{const r=new XMLHttpRequest;r.open("POST",`${L}${o}`),r.withCredentials=!0,r.upload.onprogress=s=>{s.lengthComputable&&l(s.loaded/s.total)},r.onload=()=>{let s=null;try{s=JSON.parse(r.responseText)}catch{}r.status>=200&&r.status<300?i(s):c(new Error((s==null?void 0:s.error)||(r.status===413?"Die Datei ist zu groß für diesen Server.":`Fehler ${r.status}`)))},r.onerror=()=>c(new Error("Netzwerkfehler beim Hochladen")),r.send(h)})}function I(){const[o,h]=n.useState(void 0),[l,i]=n.useState(""),[c,r]=n.useState(!1),[s,x]=n.useState(null);n.useEffect(()=>{m.get("/settings/downloads").then(d=>{h(d.password),i(d.password||"")}).catch(d=>x({kind:"error",text:d.message}))},[]);const b=async d=>{d.preventDefault(),r(!0),x(null);try{const u=await m.put("/settings/downloads",{password:l});h(u.password),i(u.password||""),x({kind:"ok",text:u.password?"Gespeichert – der Bereich ist jetzt geschützt.":"Gespeichert – der Bereich ist jetzt öffentlich."})}catch(u){x({kind:"error",text:u.message})}finally{r(!1)}};return e.jsxs("form",{onSubmit:b,className:"space-y-3 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:"Zugriffsschutz"}),e.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[o===void 0&&"Lädt…",o===null&&"Öffentlich – jeder, der die Seite aufruft, sieht die Dateien.",typeof o=="string"&&"Geschützt – Besucher müssen zuerst das Passwort eingeben."]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Zugangspasswort (leer = öffentlich)"}),e.jsx("input",{value:l,maxLength:100,autoComplete:"off",onChange:d=>i(d.target.value),className:g}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Das Passwort an die Kunden weitergeben – es bleibt hier jederzeit einsehbar. Direkte Links zu einzelnen Dateien funktionieren auch ohne Passwort; wer freigeschaltet hat, könnte sie also weitergeben."})]}),s&&e.jsx("p",{className:`text-sm ${s.kind==="error"?"text-red-600":"text-brand-600 dark:text-brand-400"}`,children:s.text}),e.jsx("button",{type:"submit",disabled:c||o===void 0,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:"Speichern"})]})}function T(){const[o,h]=n.useState([]),[l,i]=n.useState(S),[c,r]=n.useState(null),[s,x]=n.useState(null),[b,d]=n.useState(null),[u,N]=n.useState(!1),[y,p]=n.useState(""),[_,v]=n.useState(null),w=n.useRef(null),k=()=>m.get("/downloads/manage").then(h);n.useEffect(()=>{k()},[]);const f=()=>{x(null),i(S),r(null),p(""),w.current&&(w.current.value="")},z=t=>{f(),x(t.id),i({title:t.title,description:t.description||"",sort_order:t.sort_order}),window.scrollTo({top:0,behavior:"smooth"})},E=async t=>{if(t.preventDefault(),!s&&!c){p("Bitte eine Datei auswählen.");return}N(!0),p("");try{if(s){if(await m.put(`/downloads/${s}`,l),c){const a=new FormData;a.append("file",c),d(0),await D(`/downloads/${s}/file`,a,d)}}else{const a=new FormData;a.append("file",c),a.append("title",l.title),a.append("description",l.description),d(0),await D("/downloads",a,d)}f(),k()}catch(a){p(a.message)}finally{N(!1),d(null)}},A=async t=>{v(t.id);try{const a=await m.patch(`/downloads/${t.id}/visibility`,{is_hidden:!t.is_hidden});h(C=>C.map(j=>j.id===t.id?{...j,is_hidden:a.is_hidden}:j))}catch(a){alert(`Sichtbarkeit konnte nicht geändert werden: ${a.message}`)}finally{v(null)}},$=async t=>{confirm(`"${t.title}" inkl. Datei wirklich löschen?`)&&(await m.delete(`/downloads/${t.id}`),s===t.id&&f(),k())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Downloads"}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:["Dateien, die Kunden auf der Seite"," ",e.jsx("a",{href:"/downloads",target:"_blank",rel:"noopener noreferrer",className:"text-brand-600 hover:underline",children:"/downloads"})," ","anhören bzw. herunterladen können, z. B. Songs oder Anleitungen. Der Menüpunkt „Downloads“ erscheint auf der Website automatisch, sobald mindestens eine Datei sichtbar ist. Ohne Zugangspasswort (siehe „Zugriffsschutz“) ist die Seite öffentlich."]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Titel / Datei"}),e.jsx("th",{className:"px-4 py-2",children:"Größe"}),e.jsx("th",{className:"px-4 py-2",children:"Website"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[o.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsxs("td",{className:`px-4 py-2 ${t.is_hidden?"opacity-60":""}`,children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:t.title}),e.jsx("a",{href:t.file_path,target:"_blank",rel:"noopener noreferrer",className:"break-all text-xs text-neutral-500 hover:text-brand-600 dark:text-neutral-400",children:t.file_name})]}),e.jsx("td",{className:"whitespace-nowrap px-4 py-2 text-neutral-500 dark:text-neutral-400",children:B(t.file_size)}),e.jsx("td",{className:"px-4 py-2",children:e.jsxs("button",{type:"button",onClick:()=>A(t),disabled:_===t.id,title:t.is_hidden?"Wieder auf der Website anzeigen":"Auf der Website ausblenden",className:`inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs font-semibold transition disabled:opacity-50 ${t.is_hidden?"border-amber-300 bg-amber-50 text-amber-800 hover:bg-amber-100 dark:border-amber-700 dark:bg-amber-900/30 dark:text-amber-300":"border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:[t.is_hidden?e.jsx(W,{className:"h-3.5 w-3.5"}):e.jsx(F,{className:"h-3.5 w-3.5"}),t.is_hidden?"Ausgeblendet":"Sichtbar"]})}),e.jsxs("td",{className:"whitespace-nowrap px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>z(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>$(t),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),o.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Dateien hochgeladen."})})]})]})})]}),e.jsxs("div",{className:"h-fit space-y-6",children:[e.jsxs("form",{onSubmit:E,className:"space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Download bearbeiten":"Neue Datei hochladen"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:s?"Datei ersetzen (optional)":"Datei *"}),e.jsx("input",{ref:w,type:"file",accept:P.map(t=>`.${t}`).join(","),onChange:t=>{var a;return r(((a=t.target.files)==null?void 0:a[0])||null)},className:"block w-full text-sm text-neutral-600 file:mr-3 file:rounded-md file:border-0 file:bg-brand-500 file:px-3 file:py-2 file:text-sm file:font-semibold file:text-white hover:file:bg-brand-600 dark:text-neutral-300"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Musik (MP3, WAV, FLAC, …), Videos, PDFs, Bilder, Office-Dokumente oder ZIP-Archive. Andere Dateitypen bitte als ZIP hochladen."})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Titel ",s?"*":"(optional)"]}),e.jsx("input",{required:!!s,value:l.title,maxLength:150,onChange:t=>i({...l,title:t.target.value}),placeholder:s?"":"Leer lassen = Dateiname",className:g})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung (optional)"}),e.jsx("textarea",{rows:3,value:l.description,onChange:t=>i({...l,description:t.target.value}),className:g})]}),s&&e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:l.sort_order,onChange:t=>i({...l,sort_order:Number(t.target.value)}),className:g})]}),b!==null&&e.jsxs("div",{children:[e.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-neutral-200 dark:bg-neutral-800",children:e.jsx("div",{className:"h-full rounded-full bg-brand-500 transition-[width]",style:{width:`${Math.round(b*100)}%`}})}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:b<1?`Wird hochgeladen … ${Math.round(b*100)} %`:"Wird gespeichert …"})]}),y&&e.jsx("p",{className:"text-sm text-red-600",children:y}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",disabled:u,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:s?"Speichern":"Hochladen"}),s&&e.jsx("button",{type:"button",onClick:f,disabled:u,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]}),e.jsx(I,{})]})]})}export{T as default}; +import{r as n,j as e,k as B,A as P,a as m,m as L}from"./index-DM5dAVp5.js";import{E as W,a as F}from"./eye-CZFeBsZS.js";const g="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",S={title:"",description:"",sort_order:0};function D(o,h,l){return new Promise((i,c)=>{const r=new XMLHttpRequest;r.open("POST",`${L}${o}`),r.withCredentials=!0,r.upload.onprogress=s=>{s.lengthComputable&&l(s.loaded/s.total)},r.onload=()=>{let s=null;try{s=JSON.parse(r.responseText)}catch{}r.status>=200&&r.status<300?i(s):c(new Error((s==null?void 0:s.error)||(r.status===413?"Die Datei ist zu groß für diesen Server.":`Fehler ${r.status}`)))},r.onerror=()=>c(new Error("Netzwerkfehler beim Hochladen")),r.send(h)})}function I(){const[o,h]=n.useState(void 0),[l,i]=n.useState(""),[c,r]=n.useState(!1),[s,x]=n.useState(null);n.useEffect(()=>{m.get("/settings/downloads").then(d=>{h(d.password),i(d.password||"")}).catch(d=>x({kind:"error",text:d.message}))},[]);const b=async d=>{d.preventDefault(),r(!0),x(null);try{const u=await m.put("/settings/downloads",{password:l});h(u.password),i(u.password||""),x({kind:"ok",text:u.password?"Gespeichert – der Bereich ist jetzt geschützt.":"Gespeichert – der Bereich ist jetzt öffentlich."})}catch(u){x({kind:"error",text:u.message})}finally{r(!1)}};return e.jsxs("form",{onSubmit:b,className:"space-y-3 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:"Zugriffsschutz"}),e.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[o===void 0&&"Lädt…",o===null&&"Öffentlich – jeder, der die Seite aufruft, sieht die Dateien.",typeof o=="string"&&"Geschützt – Besucher müssen zuerst das Passwort eingeben."]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Zugangspasswort (leer = öffentlich)"}),e.jsx("input",{value:l,maxLength:100,autoComplete:"off",onChange:d=>i(d.target.value),className:g}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Das Passwort an die Kunden weitergeben – es bleibt hier jederzeit einsehbar. Direkte Links zu einzelnen Dateien funktionieren auch ohne Passwort; wer freigeschaltet hat, könnte sie also weitergeben."})]}),s&&e.jsx("p",{className:`text-sm ${s.kind==="error"?"text-red-600":"text-brand-600 dark:text-brand-400"}`,children:s.text}),e.jsx("button",{type:"submit",disabled:c||o===void 0,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:"Speichern"})]})}function T(){const[o,h]=n.useState([]),[l,i]=n.useState(S),[c,r]=n.useState(null),[s,x]=n.useState(null),[b,d]=n.useState(null),[u,N]=n.useState(!1),[y,p]=n.useState(""),[_,v]=n.useState(null),w=n.useRef(null),k=()=>m.get("/downloads/manage").then(h);n.useEffect(()=>{k()},[]);const f=()=>{x(null),i(S),r(null),p(""),w.current&&(w.current.value="")},z=t=>{f(),x(t.id),i({title:t.title,description:t.description||"",sort_order:t.sort_order}),window.scrollTo({top:0,behavior:"smooth"})},E=async t=>{if(t.preventDefault(),!s&&!c){p("Bitte eine Datei auswählen.");return}N(!0),p("");try{if(s){if(await m.put(`/downloads/${s}`,l),c){const a=new FormData;a.append("file",c),d(0),await D(`/downloads/${s}/file`,a,d)}}else{const a=new FormData;a.append("file",c),a.append("title",l.title),a.append("description",l.description),d(0),await D("/downloads",a,d)}f(),k()}catch(a){p(a.message)}finally{N(!1),d(null)}},A=async t=>{v(t.id);try{const a=await m.patch(`/downloads/${t.id}/visibility`,{is_hidden:!t.is_hidden});h(C=>C.map(j=>j.id===t.id?{...j,is_hidden:a.is_hidden}:j))}catch(a){alert(`Sichtbarkeit konnte nicht geändert werden: ${a.message}`)}finally{v(null)}},$=async t=>{confirm(`"${t.title}" inkl. Datei wirklich löschen?`)&&(await m.delete(`/downloads/${t.id}`),s===t.id&&f(),k())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Downloads"}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:["Dateien, die Kunden auf der Seite"," ",e.jsx("a",{href:"/downloads",target:"_blank",rel:"noopener noreferrer",className:"text-brand-600 hover:underline",children:"/downloads"})," ","anhören bzw. herunterladen können, z. B. Songs oder Anleitungen. Der Menüpunkt „Downloads“ erscheint auf der Website automatisch, sobald mindestens eine Datei sichtbar ist. Ohne Zugangspasswort (siehe „Zugriffsschutz“) ist die Seite öffentlich."]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Titel / Datei"}),e.jsx("th",{className:"px-4 py-2",children:"Größe"}),e.jsx("th",{className:"px-4 py-2",children:"Website"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[o.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsxs("td",{className:`px-4 py-2 ${t.is_hidden?"opacity-60":""}`,children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:t.title}),e.jsx("a",{href:t.file_path,target:"_blank",rel:"noopener noreferrer",className:"break-all text-xs text-neutral-500 hover:text-brand-600 dark:text-neutral-400",children:t.file_name})]}),e.jsx("td",{className:"whitespace-nowrap px-4 py-2 text-neutral-500 dark:text-neutral-400",children:B(t.file_size)}),e.jsx("td",{className:"px-4 py-2",children:e.jsxs("button",{type:"button",onClick:()=>A(t),disabled:_===t.id,title:t.is_hidden?"Wieder auf der Website anzeigen":"Auf der Website ausblenden",className:`inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs font-semibold transition disabled:opacity-50 ${t.is_hidden?"border-amber-300 bg-amber-50 text-amber-800 hover:bg-amber-100 dark:border-amber-700 dark:bg-amber-900/30 dark:text-amber-300":"border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:[t.is_hidden?e.jsx(W,{className:"h-3.5 w-3.5"}):e.jsx(F,{className:"h-3.5 w-3.5"}),t.is_hidden?"Ausgeblendet":"Sichtbar"]})}),e.jsxs("td",{className:"whitespace-nowrap px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>z(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>$(t),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),o.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Dateien hochgeladen."})})]})]})})]}),e.jsxs("div",{className:"h-fit space-y-6",children:[e.jsxs("form",{onSubmit:E,className:"space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Download bearbeiten":"Neue Datei hochladen"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:s?"Datei ersetzen (optional)":"Datei *"}),e.jsx("input",{ref:w,type:"file",accept:P.map(t=>`.${t}`).join(","),onChange:t=>{var a;return r(((a=t.target.files)==null?void 0:a[0])||null)},className:"block w-full text-sm text-neutral-600 file:mr-3 file:rounded-md file:border-0 file:bg-brand-500 file:px-3 file:py-2 file:text-sm file:font-semibold file:text-white hover:file:bg-brand-600 dark:text-neutral-300"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Musik (MP3, WAV, FLAC, …), Videos, PDFs, Bilder, Office-Dokumente oder ZIP-Archive. Andere Dateitypen bitte als ZIP hochladen."})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Titel ",s?"*":"(optional)"]}),e.jsx("input",{required:!!s,value:l.title,maxLength:150,onChange:t=>i({...l,title:t.target.value}),placeholder:s?"":"Leer lassen = Dateiname",className:g})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung (optional)"}),e.jsx("textarea",{rows:3,value:l.description,onChange:t=>i({...l,description:t.target.value}),className:g})]}),s&&e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:l.sort_order,onChange:t=>i({...l,sort_order:Number(t.target.value)}),className:g})]}),b!==null&&e.jsxs("div",{children:[e.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-neutral-200 dark:bg-neutral-800",children:e.jsx("div",{className:"h-full rounded-full bg-brand-500 transition-[width]",style:{width:`${Math.round(b*100)}%`}})}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:b<1?`Wird hochgeladen … ${Math.round(b*100)} %`:"Wird gespeichert …"})]}),y&&e.jsx("p",{className:"text-sm text-red-600",children:y}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",disabled:u,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:s?"Speichern":"Hochladen"}),s&&e.jsx("button",{type:"button",onClick:f,disabled:u,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]}),e.jsx(I,{})]})]})}export{T as default}; diff --git a/hifi/assets/EmailSettings-Bbqu3Noj.js b/hifi/assets/EmailSettings-DixrL0D8.js similarity index 98% rename from hifi/assets/EmailSettings-Bbqu3Noj.js rename to hifi/assets/EmailSettings-DixrL0D8.js index 3bebc17..3ed2531 100644 --- a/hifi/assets/EmailSettings-Bbqu3Noj.js +++ b/hifi/assets/EmailSettings-DixrL0D8.js @@ -1,2 +1,2 @@ -import{r,a as m,j as e}from"./index-CeNRYcbS.js";import{R as E}from"./RichTextEditor-BR1AFZHM.js";function d(a){if(!a)return"";if(/<[a-z][\s\S]*>/i.test(a))return a;const l=document.createElement("div");return l.textContent=a,`

${l.innerHTML.replace(/\n/g,"
")}

`}const H={mail_host:"",mail_port:587,mail_username:"",mail_password:"",mail_encryption:"tls",mail_from_email:"",mail_from_name:"",mail_notify_email:"",mail_customer_subject:"",mail_customer_body:"",mail_owner_subject:"",mail_owner_body:""},z=[["{{name}}","Name des Kunden"],["{{email}}","E-Mail des Kunden"],["{{phone}}","Telefonnummer"],["{{vin}}","Fahrgestellnummer (FIN)"],["{{message}}","Nachricht des Kunden"],["{{brand}}","Marke"],["{{model}}","Modell"],["{{package}}","Paket"],["{{product}}","Produkt"],["{{upgrades}}","Gewählte Upgrades"]];function T(){return e.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:z.map(([a,l])=>e.jsx("span",{title:l,className:"rounded-md bg-neutral-100 px-2 py-1 font-mono text-xs text-neutral-600 dark:bg-neutral-800 dark:text-neutral-300",children:a},a))})}function D(){const[a,l]=r.useState(H),[u,c]=r.useState(!1),[C,P]=r.useState(!0),[x,M]=r.useState(!1),[b,h]=r.useState(!1),[p,g]=r.useState(""),[B,o]=r.useState(!1),[f,k]=r.useState(!1),[_,j]=r.useState(""),[w,v]=r.useState(""),[y,N]=r.useState(""),[i,S]=r.useState(null);r.useEffect(()=>{m.get("/settings/mail").then(t=>{l({...t,mail_password:"",mail_customer_body:d(t.mail_customer_body),mail_owner_body:d(t.mail_owner_body)}),c(t.has_password)}).finally(()=>P(!1))},[]);const s=(t,n)=>{l(A=>({...A,[t]:n})),o(!1)},K=async t=>{t.preventDefault(),h(!0),g(""),o(!1);try{const n=await m.post("/settings/mail",a);l({...n,mail_password:"",mail_customer_body:d(n.mail_customer_body),mail_owner_body:d(n.mail_owner_body)}),c(n.has_password),o(!0)}catch(n){g(n.message)}finally{h(!1)}},L=async()=>{k(!0),j(""),v(""),N(""),S(null);try{const t=await m.post("/settings/mail/test",a);v(`Testmail gesendet an ${t.sent_to}. Der Server hat die Mail angenommen - prüfe auch den Spam-Ordner, das ist noch keine Garantie für die Zustellung.`),N(t.warning||""),S(t.smtp_log||null)}catch(t){j(t.message)}finally{k(!1)}};return C?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{onSubmit:K,className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"SMTP-Server"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Zugangsdaten deines Mail-Postfachs oder Transactional-Mail-Anbieters. Solange kein Server eingetragen ist, werden keine E-Mails verschickt (Kontaktanfragen werden trotzdem in der Datenbank gespeichert)."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-[1fr_120px]",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Server (Host)"}),e.jsx("input",{value:a.mail_host,onChange:t=>s("mail_host",t.target.value),placeholder:"smtp.beispiel.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Port"}),e.jsx("input",{type:"number",value:a.mail_port,onChange:t=>s("mail_port",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Verschlüsselung"}),e.jsxs("select",{value:a.mail_encryption,onChange:t=>s("mail_encryption",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"tls",children:"STARTTLS"}),e.jsx("option",{value:"ssl",children:"SSL"}),e.jsx("option",{value:"none",children:"Keine"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername"}),e.jsx("input",{value:a.mail_username,onChange:t=>s("mail_username",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",u?"(leer lassen = unverändert)":""]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:x?"text":"password",value:a.mail_password,onChange:t=>s("mail_password",t.target.value),placeholder:u?"••••••••":"",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("button",{type:"button",onClick:()=>M(t=>!t),className:"shrink-0 rounded-md border border-neutral-300 px-3 text-sm dark:border-neutral-700",children:x?"Verbergen":"Anzeigen"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Absender-E-Mail"}),e.jsx("input",{type:"email",value:a.mail_from_email,onChange:t=>s("mail_from_email",t.target.value),placeholder:"info@hifi-planet-amorbach.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Absender-Name"}),e.jsx("input",{value:a.mail_from_name,onChange:t=>s("mail_from_name",t.target.value),placeholder:"HifiPlanet",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]}),e.jsxs("div",{className:"mt-4 border-t border-neutral-200 pt-4 dark:border-neutral-800",children:[_&&e.jsx("p",{className:"mb-2 whitespace-pre-wrap text-sm text-red-600",children:_}),w&&e.jsx("p",{className:"mb-2 text-sm text-green-600 dark:text-green-400",children:w}),y&&e.jsx("p",{className:"mb-2 rounded-md bg-amber-50 p-2 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:y}),e.jsx("button",{type:"button",onClick:L,disabled:f,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:f?"Sende Testmail…":"Verbindung testen"}),i&&i.length>0&&e.jsxs("details",{className:"mt-3",children:[e.jsx("summary",{className:"cursor-pointer text-xs text-neutral-500 dark:text-neutral-400",children:"SMTP-Protokoll anzeigen"}),e.jsx("pre",{className:"mt-2 max-h-64 overflow-auto rounded-md bg-neutral-900 p-3 text-xs text-neutral-200",children:i.join(` +import{r,a as m,j as e}from"./index-DM5dAVp5.js";import{R as E}from"./RichTextEditor-DTscIhNf.js";function d(a){if(!a)return"";if(/<[a-z][\s\S]*>/i.test(a))return a;const l=document.createElement("div");return l.textContent=a,`

${l.innerHTML.replace(/\n/g,"
")}

`}const H={mail_host:"",mail_port:587,mail_username:"",mail_password:"",mail_encryption:"tls",mail_from_email:"",mail_from_name:"",mail_notify_email:"",mail_customer_subject:"",mail_customer_body:"",mail_owner_subject:"",mail_owner_body:""},z=[["{{name}}","Name des Kunden"],["{{email}}","E-Mail des Kunden"],["{{phone}}","Telefonnummer"],["{{vin}}","Fahrgestellnummer (FIN)"],["{{message}}","Nachricht des Kunden"],["{{brand}}","Marke"],["{{model}}","Modell"],["{{package}}","Paket"],["{{product}}","Produkt"],["{{upgrades}}","Gewählte Upgrades"]];function T(){return e.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:z.map(([a,l])=>e.jsx("span",{title:l,className:"rounded-md bg-neutral-100 px-2 py-1 font-mono text-xs text-neutral-600 dark:bg-neutral-800 dark:text-neutral-300",children:a},a))})}function D(){const[a,l]=r.useState(H),[u,c]=r.useState(!1),[C,P]=r.useState(!0),[x,M]=r.useState(!1),[b,h]=r.useState(!1),[p,g]=r.useState(""),[B,o]=r.useState(!1),[f,k]=r.useState(!1),[_,j]=r.useState(""),[w,v]=r.useState(""),[y,N]=r.useState(""),[i,S]=r.useState(null);r.useEffect(()=>{m.get("/settings/mail").then(t=>{l({...t,mail_password:"",mail_customer_body:d(t.mail_customer_body),mail_owner_body:d(t.mail_owner_body)}),c(t.has_password)}).finally(()=>P(!1))},[]);const s=(t,n)=>{l(A=>({...A,[t]:n})),o(!1)},K=async t=>{t.preventDefault(),h(!0),g(""),o(!1);try{const n=await m.post("/settings/mail",a);l({...n,mail_password:"",mail_customer_body:d(n.mail_customer_body),mail_owner_body:d(n.mail_owner_body)}),c(n.has_password),o(!0)}catch(n){g(n.message)}finally{h(!1)}},L=async()=>{k(!0),j(""),v(""),N(""),S(null);try{const t=await m.post("/settings/mail/test",a);v(`Testmail gesendet an ${t.sent_to}. Der Server hat die Mail angenommen - prüfe auch den Spam-Ordner, das ist noch keine Garantie für die Zustellung.`),N(t.warning||""),S(t.smtp_log||null)}catch(t){j(t.message)}finally{k(!1)}};return C?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{onSubmit:K,className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"SMTP-Server"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Zugangsdaten deines Mail-Postfachs oder Transactional-Mail-Anbieters. Solange kein Server eingetragen ist, werden keine E-Mails verschickt (Kontaktanfragen werden trotzdem in der Datenbank gespeichert)."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-[1fr_120px]",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Server (Host)"}),e.jsx("input",{value:a.mail_host,onChange:t=>s("mail_host",t.target.value),placeholder:"smtp.beispiel.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Port"}),e.jsx("input",{type:"number",value:a.mail_port,onChange:t=>s("mail_port",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Verschlüsselung"}),e.jsxs("select",{value:a.mail_encryption,onChange:t=>s("mail_encryption",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"tls",children:"STARTTLS"}),e.jsx("option",{value:"ssl",children:"SSL"}),e.jsx("option",{value:"none",children:"Keine"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername"}),e.jsx("input",{value:a.mail_username,onChange:t=>s("mail_username",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",u?"(leer lassen = unverändert)":""]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:x?"text":"password",value:a.mail_password,onChange:t=>s("mail_password",t.target.value),placeholder:u?"••••••••":"",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("button",{type:"button",onClick:()=>M(t=>!t),className:"shrink-0 rounded-md border border-neutral-300 px-3 text-sm dark:border-neutral-700",children:x?"Verbergen":"Anzeigen"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Absender-E-Mail"}),e.jsx("input",{type:"email",value:a.mail_from_email,onChange:t=>s("mail_from_email",t.target.value),placeholder:"info@hifi-planet-amorbach.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Absender-Name"}),e.jsx("input",{value:a.mail_from_name,onChange:t=>s("mail_from_name",t.target.value),placeholder:"HifiPlanet",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]}),e.jsxs("div",{className:"mt-4 border-t border-neutral-200 pt-4 dark:border-neutral-800",children:[_&&e.jsx("p",{className:"mb-2 whitespace-pre-wrap text-sm text-red-600",children:_}),w&&e.jsx("p",{className:"mb-2 text-sm text-green-600 dark:text-green-400",children:w}),y&&e.jsx("p",{className:"mb-2 rounded-md bg-amber-50 p-2 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:y}),e.jsx("button",{type:"button",onClick:L,disabled:f,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:f?"Sende Testmail…":"Verbindung testen"}),i&&i.length>0&&e.jsxs("details",{className:"mt-3",children:[e.jsx("summary",{className:"cursor-pointer text-xs text-neutral-500 dark:text-neutral-400",children:"SMTP-Protokoll anzeigen"}),e.jsx("pre",{className:"mt-2 max-h-64 overflow-auto rounded-md bg-neutral-900 p-3 text-xs text-neutral-200",children:i.join(` `)})]})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Empfänger"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"An diese Adresse geht die Benachrichtigung bei jeder neuen Kontaktanfrage."}),e.jsx("input",{type:"email",value:a.mail_notify_email,onChange:t=>s("mail_notify_email",t.target.value),placeholder:"info@hifi-planet-amorbach.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"E-Mail an den Kunden (Bestätigung)"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Geht automatisch an den Kunden, sobald er eine Kontaktanfrage abschickt."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Betreff"}),e.jsx("input",{value:a.mail_customer_subject,onChange:t=>s("mail_customer_subject",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(E,{label:"Text",value:a.mail_customer_body,onChange:t=>s("mail_customer_body",t)})]}),e.jsx(T,{})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"E-Mail an den Shop (Benachrichtigung)"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Geht an die oben eingestellte Empfänger-Adresse, sobald eine neue Kontaktanfrage eingeht."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Betreff"}),e.jsx("input",{value:a.mail_owner_subject,onChange:t=>s("mail_owner_subject",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(E,{label:"Text",value:a.mail_owner_body,onChange:t=>s("mail_owner_body",t)})]}),e.jsx(T,{})]}),p&&e.jsx("p",{className:"text-sm text-red-600",children:p}),B&&e.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"submit",disabled:b,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:b?"Speichere…":"Speichern"})]})}export{D as default}; diff --git a/hifi/assets/ExportImportSettings-DGzBdtyq.js b/hifi/assets/ExportImportSettings-D1vWoWVP.js similarity index 99% rename from hifi/assets/ExportImportSettings-DGzBdtyq.js rename to hifi/assets/ExportImportSettings-D1vWoWVP.js index f59af68..ade854c 100644 --- a/hifi/assets/ExportImportSettings-DGzBdtyq.js +++ b/hifi/assets/ExportImportSettings-D1vWoWVP.js @@ -1 +1 @@ -import{r as n,j as e,m as D,a as F}from"./index-CeNRYcbS.js";const p=[{key:"catalog",label:"Fahrzeug-Katalog",hint:"Marken, Modelle (inkl. Bilder), Pakete, Produkte, Upgrades",tables:["brands","car_models","packages","package_products","package_upgrades"]},{key:"services",label:"Leistungen",hint:"Die Leistungen-Übersicht",tables:["services"]},{key:"faqs",label:"FAQs",hint:"Häufig gestellte Fragen",tables:["faqs"]},{key:"gallery",label:"Bildergalerie",hint:"Galerie-Marken, Projekte und Fotos (inkl. Bilder)",tables:["gallery_brands","gallery_projects","gallery_photos"]},{key:"settings",label:"Einstellungen",hint:"Telefon/Adresse/Öffnungszeiten, Logo, Wartungsmodus-Texte, Kachel-Design, Mail-Vorlagen (ohne Zugangsdaten)",tables:["app_settings"]},{key:"legal",label:"Rechtstexte",hint:"Impressum, Datenschutzerklärung, AGB",tables:["legal_pages"]},{key:"home",label:"Startseiten-Texte",hint:'Hero, YouTube-Sektion, Handwerk, Beratung, Einblicke, "Mehr als Car-Hifi"',tables:["home_sections"]},{key:"partners",label:"Partner",hint:"Marken-Logozeile auf der Startseite (inkl. Logos)",tables:["partners"]},{key:"permissions",label:"Berechtigungsgruppen",hint:"Rollen-Vorlagen und ihre Rechte (ohne Benutzerkonten selbst)",tables:["permission_groups","permission_group_permissions"]}],v={brands:"Marken",car_models:"Modelle",packages:"Pakete",package_products:"Produkte",package_upgrades:"Upgrades",services:"Leistungen",faqs:"FAQs",gallery_brands:"Galerie-Marken",gallery_projects:"Galerie-Projekte",gallery_photos:"Galerie-Fotos",app_settings:"Einstellungen",legal_pages:"Rechtstexte",home_sections:"Startseiten-Texte",partners:"Partner",permission_groups:"Berechtigungsgruppen",permission_group_permissions:"Berechtigungsgruppen-Rechte",admin_users:"Benutzerkonten",admin_user_permissions:"Benutzer-Einzelrechte",admin_user_groups:"Benutzer-Gruppenzuweisungen"},L=(l,d)=>{if(!l)return null;const i=d.map(s=>[s,Array.isArray(l[s])?l[s].length:0]).filter(([,s])=>s>0).map(([s,c])=>`${c} ${v[s]||s}`);return i.length?i.join(", "):"leer in dieser Datei"};function C(){const[l,d]=n.useState(null),[i,s]=n.useState(null),[c,y]=n.useState(""),[o,w]=n.useState(()=>new Set(p.map(t=>t.key))),[N,E]=n.useState(!1),[m,g]=n.useState(!1),[h,_]=n.useState(!1),[S,B]=n.useState(!1),[u,x]=n.useState(null),[z,b]=n.useState(""),I=async t=>{var a;const r=((a=t.target.files)==null?void 0:a[0])||null;if(d(r),x(null),b(""),s(null),y(""),w(new Set(p.map(f=>f.key))),g(!1),!!r)try{const f=await r.text(),j=JSON.parse(f);if(!j||typeof j.data!="object")throw new Error("kein gültiges Export-Format");s(j.data)}catch{y("Datei konnte nicht gelesen werden – Vorschau der Inhalte nicht möglich. Import würde trotzdem versucht (alle Bereiche).")}},A=t=>{w(r=>{const a=new Set(r);return a.has(t)?a.delete(t):a.add(t),a})},P=async t=>{if(t.preventDefault(),!(!l||!h||o.size===0)){B(!0),b(""),x(null);try{const r=new FormData;r.append("file",l),r.append("sections",JSON.stringify([...o])),r.append("include_accounts",m?"1":"0");const a=await F.post("/settings/import",r);x(a),d(null),s(null),_(!1),g(!1),t.target.reset()}catch(r){b(r.message)}finally{B(!1)}}},k=p.filter(t=>o.has(t.key)).map(t=>t.label);return m&&k.push("Benutzerkonten"),e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Daten exportieren"}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:["Lädt eine Datei mit allen Marken, Modellen, Paketen, Produkten, Upgrades, Leistungen, FAQs, der kompletten Bildergalerie (inkl. Bilder), den Einstellungen und den Berechtigungsgruppen herunter (ohne Zugangsdaten wie SMTP-Passwort oder API-Keys – die müssen auf jedem Server neu eingetragen werden). Kontaktanfragen sind bewusst ",e.jsx("strong",{children:"nicht"})," enthalten."]}),e.jsxs("label",{className:"mb-3 flex items-start gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:N,onChange:t=>E(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Benutzerkonten mit exportieren (enthält Passwort-Hashes und 2FA-Geheimnisse – nur für Backups an einem vertrauenswürdigen Ort)"]}),e.jsx("a",{href:`${D}/settings/export${N?"?include_accounts=1":""}`,className:"inline-block rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"Jetzt exportieren"})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Daten importieren"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Lädt eine zuvor exportierte Datei auf diesen Server. Ersetzt dabei die ausgewählten Bereiche komplett durch den Inhalt der Datei – das kann nicht rückgängig gemacht werden. Kontaktanfragen bleiben immer unangetastet, Benutzerkonten nur wenn unten explizit angehakt."}),e.jsxs("form",{onSubmit:P,className:"space-y-4",children:[e.jsx("input",{type:"file",accept:"application/json,.json",onChange:I,className:"text-sm"}),l&&e.jsxs("div",{className:"rounded-lg border border-neutral-200 dark:border-neutral-700",children:[e.jsx("div",{className:"border-b border-neutral-200 px-4 py-2 text-xs font-semibold uppercase tracking-wide text-neutral-500 dark:border-neutral-700 dark:text-neutral-400",children:"Was soll importiert werden?"}),c&&e.jsx("p",{className:"px-4 pt-3 text-sm text-amber-600 dark:text-amber-400",children:c}),e.jsxs("div",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[p.map(t=>e.jsxs("label",{className:"flex cursor-pointer items-start gap-3 px-4 py-3 hover:bg-neutral-50 dark:hover:bg-neutral-800/50",children:[e.jsx("input",{type:"checkbox",checked:o.has(t.key),onChange:()=>A(t.key),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-neutral-800 dark:text-neutral-100",children:t.label}),e.jsx("span",{className:"block text-xs text-neutral-500 dark:text-neutral-400",children:i?L(i,t.tables):t.hint})]})]},t.key)),e.jsxs("label",{className:"flex cursor-pointer items-start gap-3 px-4 py-3 hover:bg-neutral-50 dark:hover:bg-neutral-800/50",children:[e.jsx("input",{type:"checkbox",checked:m,onChange:t=>g(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-neutral-800 dark:text-neutral-100",children:"Benutzerkonten"}),e.jsx("span",{className:"block text-xs text-neutral-500 dark:text-neutral-400",children:'Nur wenn die Datei mit "Benutzerkonten mit exportieren" erstellt wurde. Ersetzt auch dein eigenes Konto – danach ggf. mit den Zugangsdaten aus der Export-Datei neu einloggen.'})]})]})]})]}),e.jsxs("label",{className:"flex items-start gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:h,onChange:t=>_(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Mir ist bewusst, dass dies"," ",k.length?e.jsx("strong",{children:k.join(", ")}):"die ausgewählten Bereiche"," auf diesem Server unwiderruflich ersetzt."]}),e.jsx("button",{type:"submit",disabled:!l||!h||S||o.size===0,className:"rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white hover:bg-red-700 disabled:opacity-50",children:S?"Importiere…":"Importieren"})]}),z&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:z}),u&&e.jsxs("div",{className:"mt-3 rounded-md bg-green-50 p-3 text-sm text-green-800 dark:bg-green-900/20 dark:text-green-300",children:[e.jsx("p",{className:"mb-1 font-semibold",children:"Import erfolgreich:"}),e.jsxs("ul",{className:"list-disc pl-5",children:[Object.entries(u.counts).map(([t,r])=>e.jsxs("li",{children:[r," ",v[t]||t]},t)),u.images_restored>0&&e.jsxs("li",{children:[u.images_restored," Bilder wiederhergestellt"]})]})]})]})]})}export{C as default}; +import{r as n,j as e,m as D,a as F}from"./index-DM5dAVp5.js";const p=[{key:"catalog",label:"Fahrzeug-Katalog",hint:"Marken, Modelle (inkl. Bilder), Pakete, Produkte, Upgrades",tables:["brands","car_models","packages","package_products","package_upgrades"]},{key:"services",label:"Leistungen",hint:"Die Leistungen-Übersicht",tables:["services"]},{key:"faqs",label:"FAQs",hint:"Häufig gestellte Fragen",tables:["faqs"]},{key:"gallery",label:"Bildergalerie",hint:"Galerie-Marken, Projekte und Fotos (inkl. Bilder)",tables:["gallery_brands","gallery_projects","gallery_photos"]},{key:"settings",label:"Einstellungen",hint:"Telefon/Adresse/Öffnungszeiten, Logo, Wartungsmodus-Texte, Kachel-Design, Mail-Vorlagen (ohne Zugangsdaten)",tables:["app_settings"]},{key:"legal",label:"Rechtstexte",hint:"Impressum, Datenschutzerklärung, AGB",tables:["legal_pages"]},{key:"home",label:"Startseiten-Texte",hint:'Hero, YouTube-Sektion, Handwerk, Beratung, Einblicke, "Mehr als Car-Hifi"',tables:["home_sections"]},{key:"partners",label:"Partner",hint:"Marken-Logozeile auf der Startseite (inkl. Logos)",tables:["partners"]},{key:"permissions",label:"Berechtigungsgruppen",hint:"Rollen-Vorlagen und ihre Rechte (ohne Benutzerkonten selbst)",tables:["permission_groups","permission_group_permissions"]}],v={brands:"Marken",car_models:"Modelle",packages:"Pakete",package_products:"Produkte",package_upgrades:"Upgrades",services:"Leistungen",faqs:"FAQs",gallery_brands:"Galerie-Marken",gallery_projects:"Galerie-Projekte",gallery_photos:"Galerie-Fotos",app_settings:"Einstellungen",legal_pages:"Rechtstexte",home_sections:"Startseiten-Texte",partners:"Partner",permission_groups:"Berechtigungsgruppen",permission_group_permissions:"Berechtigungsgruppen-Rechte",admin_users:"Benutzerkonten",admin_user_permissions:"Benutzer-Einzelrechte",admin_user_groups:"Benutzer-Gruppenzuweisungen"},L=(l,d)=>{if(!l)return null;const i=d.map(s=>[s,Array.isArray(l[s])?l[s].length:0]).filter(([,s])=>s>0).map(([s,c])=>`${c} ${v[s]||s}`);return i.length?i.join(", "):"leer in dieser Datei"};function C(){const[l,d]=n.useState(null),[i,s]=n.useState(null),[c,y]=n.useState(""),[o,w]=n.useState(()=>new Set(p.map(t=>t.key))),[N,E]=n.useState(!1),[m,g]=n.useState(!1),[h,_]=n.useState(!1),[S,B]=n.useState(!1),[u,x]=n.useState(null),[z,b]=n.useState(""),I=async t=>{var a;const r=((a=t.target.files)==null?void 0:a[0])||null;if(d(r),x(null),b(""),s(null),y(""),w(new Set(p.map(f=>f.key))),g(!1),!!r)try{const f=await r.text(),j=JSON.parse(f);if(!j||typeof j.data!="object")throw new Error("kein gültiges Export-Format");s(j.data)}catch{y("Datei konnte nicht gelesen werden – Vorschau der Inhalte nicht möglich. Import würde trotzdem versucht (alle Bereiche).")}},A=t=>{w(r=>{const a=new Set(r);return a.has(t)?a.delete(t):a.add(t),a})},P=async t=>{if(t.preventDefault(),!(!l||!h||o.size===0)){B(!0),b(""),x(null);try{const r=new FormData;r.append("file",l),r.append("sections",JSON.stringify([...o])),r.append("include_accounts",m?"1":"0");const a=await F.post("/settings/import",r);x(a),d(null),s(null),_(!1),g(!1),t.target.reset()}catch(r){b(r.message)}finally{B(!1)}}},k=p.filter(t=>o.has(t.key)).map(t=>t.label);return m&&k.push("Benutzerkonten"),e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Daten exportieren"}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:["Lädt eine Datei mit allen Marken, Modellen, Paketen, Produkten, Upgrades, Leistungen, FAQs, der kompletten Bildergalerie (inkl. Bilder), den Einstellungen und den Berechtigungsgruppen herunter (ohne Zugangsdaten wie SMTP-Passwort oder API-Keys – die müssen auf jedem Server neu eingetragen werden). Kontaktanfragen sind bewusst ",e.jsx("strong",{children:"nicht"})," enthalten."]}),e.jsxs("label",{className:"mb-3 flex items-start gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:N,onChange:t=>E(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Benutzerkonten mit exportieren (enthält Passwort-Hashes und 2FA-Geheimnisse – nur für Backups an einem vertrauenswürdigen Ort)"]}),e.jsx("a",{href:`${D}/settings/export${N?"?include_accounts=1":""}`,className:"inline-block rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"Jetzt exportieren"})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Daten importieren"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Lädt eine zuvor exportierte Datei auf diesen Server. Ersetzt dabei die ausgewählten Bereiche komplett durch den Inhalt der Datei – das kann nicht rückgängig gemacht werden. Kontaktanfragen bleiben immer unangetastet, Benutzerkonten nur wenn unten explizit angehakt."}),e.jsxs("form",{onSubmit:P,className:"space-y-4",children:[e.jsx("input",{type:"file",accept:"application/json,.json",onChange:I,className:"text-sm"}),l&&e.jsxs("div",{className:"rounded-lg border border-neutral-200 dark:border-neutral-700",children:[e.jsx("div",{className:"border-b border-neutral-200 px-4 py-2 text-xs font-semibold uppercase tracking-wide text-neutral-500 dark:border-neutral-700 dark:text-neutral-400",children:"Was soll importiert werden?"}),c&&e.jsx("p",{className:"px-4 pt-3 text-sm text-amber-600 dark:text-amber-400",children:c}),e.jsxs("div",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[p.map(t=>e.jsxs("label",{className:"flex cursor-pointer items-start gap-3 px-4 py-3 hover:bg-neutral-50 dark:hover:bg-neutral-800/50",children:[e.jsx("input",{type:"checkbox",checked:o.has(t.key),onChange:()=>A(t.key),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-neutral-800 dark:text-neutral-100",children:t.label}),e.jsx("span",{className:"block text-xs text-neutral-500 dark:text-neutral-400",children:i?L(i,t.tables):t.hint})]})]},t.key)),e.jsxs("label",{className:"flex cursor-pointer items-start gap-3 px-4 py-3 hover:bg-neutral-50 dark:hover:bg-neutral-800/50",children:[e.jsx("input",{type:"checkbox",checked:m,onChange:t=>g(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-neutral-800 dark:text-neutral-100",children:"Benutzerkonten"}),e.jsx("span",{className:"block text-xs text-neutral-500 dark:text-neutral-400",children:'Nur wenn die Datei mit "Benutzerkonten mit exportieren" erstellt wurde. Ersetzt auch dein eigenes Konto – danach ggf. mit den Zugangsdaten aus der Export-Datei neu einloggen.'})]})]})]})]}),e.jsxs("label",{className:"flex items-start gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:h,onChange:t=>_(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Mir ist bewusst, dass dies"," ",k.length?e.jsx("strong",{children:k.join(", ")}):"die ausgewählten Bereiche"," auf diesem Server unwiderruflich ersetzt."]}),e.jsx("button",{type:"submit",disabled:!l||!h||S||o.size===0,className:"rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white hover:bg-red-700 disabled:opacity-50",children:S?"Importiere…":"Importieren"})]}),z&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:z}),u&&e.jsxs("div",{className:"mt-3 rounded-md bg-green-50 p-3 text-sm text-green-800 dark:bg-green-900/20 dark:text-green-300",children:[e.jsx("p",{className:"mb-1 font-semibold",children:"Import erfolgreich:"}),e.jsxs("ul",{className:"list-disc pl-5",children:[Object.entries(u.counts).map(([t,r])=>e.jsxs("li",{children:[r," ",v[t]||t]},t)),u.images_restored>0&&e.jsxs("li",{children:[u.images_restored," Bilder wiederhergestellt"]})]})]})]})]})}export{C as default}; diff --git a/hifi/assets/Faqs-Bl6JUAuu.js b/hifi/assets/Faqs-CXlyRVeG.js similarity index 98% rename from hifi/assets/Faqs-Bl6JUAuu.js rename to hifi/assets/Faqs-CXlyRVeG.js index 925008e..c27fd53 100644 --- a/hifi/assets/Faqs-Bl6JUAuu.js +++ b/hifi/assets/Faqs-CXlyRVeG.js @@ -1 +1 @@ -import{r as n,j as e,a as l}from"./index-CeNRYcbS.js";const b={question_de:"",answer_de:"",question_en:"",answer_en:"",sort_order:0};function w(){const[i,h]=n.useState([]),[r,a]=n.useState(b),[s,u]=n.useState(null),[o,c]=n.useState(""),d=()=>l.get("/faqs").then(h);n.useEffect(d,[]);const g=t=>{u(t.id),a({question_de:t.question_de,answer_de:t.answer_de,question_en:t.question_en,answer_en:t.answer_en,sort_order:t.sort_order})},x=()=>{u(null),a(b)},p=async t=>{t.preventDefault(),c("");const m={...r,sort_order:Number(r.sort_order)};try{s?await l.put(`/faqs/${s}`,m):await l.post("/faqs",m),x(),d()}catch(k){c(k.message)}},j=async t=>{confirm("Diese Frage wirklich löschen?")&&(await l.delete(`/faqs/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Häufig gestellte Fragen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Fragen erscheinen im FAQ-Bereich der Startseite, jeweils in der aktuell gewählten Sprache. Die 6 mitgelieferten Einträge sind die Standard-Einstellung – du kannst sie bearbeiten, löschen und beliebig neue hinzufügen."}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Frage (DE)"}),e.jsx("th",{className:"px-4 py-2",children:"Sortierung"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[i.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:t.question_de}),e.jsx("td",{className:"px-4 py-2",children:t.sort_order}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>g(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>j(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),i.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:3,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Fragen angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:p,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Frage bearbeiten":"Neue Frage"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Frage (Deutsch) *"}),e.jsx("input",{required:!0,value:r.question_de,onChange:t=>a({...r,question_de:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Antwort (Deutsch) *"}),e.jsx("textarea",{required:!0,rows:3,value:r.answer_de,onChange:t=>a({...r,answer_de:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Frage (Englisch) *"}),e.jsx("input",{required:!0,value:r.question_en,onChange:t=>a({...r,question_en:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Antwort (Englisch) *"}),e.jsx("textarea",{required:!0,rows:3,value:r.answer_en,onChange:t=>a({...r,answer_en:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>a({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),o&&e.jsx("p",{className:"text-sm text-red-600",children:o}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:x,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{w as default}; +import{r as n,j as e,a as l}from"./index-DM5dAVp5.js";const b={question_de:"",answer_de:"",question_en:"",answer_en:"",sort_order:0};function w(){const[i,h]=n.useState([]),[r,a]=n.useState(b),[s,u]=n.useState(null),[o,c]=n.useState(""),d=()=>l.get("/faqs").then(h);n.useEffect(d,[]);const g=t=>{u(t.id),a({question_de:t.question_de,answer_de:t.answer_de,question_en:t.question_en,answer_en:t.answer_en,sort_order:t.sort_order})},x=()=>{u(null),a(b)},p=async t=>{t.preventDefault(),c("");const m={...r,sort_order:Number(r.sort_order)};try{s?await l.put(`/faqs/${s}`,m):await l.post("/faqs",m),x(),d()}catch(k){c(k.message)}},j=async t=>{confirm("Diese Frage wirklich löschen?")&&(await l.delete(`/faqs/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Häufig gestellte Fragen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Fragen erscheinen im FAQ-Bereich der Startseite, jeweils in der aktuell gewählten Sprache. Die 6 mitgelieferten Einträge sind die Standard-Einstellung – du kannst sie bearbeiten, löschen und beliebig neue hinzufügen."}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Frage (DE)"}),e.jsx("th",{className:"px-4 py-2",children:"Sortierung"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[i.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:t.question_de}),e.jsx("td",{className:"px-4 py-2",children:t.sort_order}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>g(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>j(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),i.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:3,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Fragen angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:p,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Frage bearbeiten":"Neue Frage"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Frage (Deutsch) *"}),e.jsx("input",{required:!0,value:r.question_de,onChange:t=>a({...r,question_de:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Antwort (Deutsch) *"}),e.jsx("textarea",{required:!0,rows:3,value:r.answer_de,onChange:t=>a({...r,answer_de:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Frage (Englisch) *"}),e.jsx("input",{required:!0,value:r.question_en,onChange:t=>a({...r,question_en:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Antwort (Englisch) *"}),e.jsx("textarea",{required:!0,rows:3,value:r.answer_en,onChange:t=>a({...r,answer_en:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>a({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),o&&e.jsx("p",{className:"text-sm text-red-600",children:o}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:x,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{w as default}; diff --git a/hifi/assets/GalleryBrands-DeSW9tLo.js b/hifi/assets/GalleryBrands-BKk_jSpw.js similarity index 96% rename from hifi/assets/GalleryBrands-DeSW9tLo.js rename to hifi/assets/GalleryBrands-BKk_jSpw.js index b3c1fc9..d322a68 100644 --- a/hifi/assets/GalleryBrands-DeSW9tLo.js +++ b/hifi/assets/GalleryBrands-BKk_jSpw.js @@ -1 +1 @@ -import{r as l,j as e,L as N,a as n}from"./index-CeNRYcbS.js";import{I as k}from"./ImageUploadField-DZzU8Hmm.js";const u={name:"",cover_image_path:"",sort_order:0};function f(){const[i,h]=l.useState([]),[r,a]=l.useState(u),[s,o]=l.useState(null),[c,m]=l.useState(""),d=()=>n.get("/gallery-brands").then(h);l.useEffect(()=>{d()},[]);const p=t=>{o(t.id),a({name:t.name,cover_image_path:t.cover_image_path||"",sort_order:t.sort_order})},x=()=>{o(null),a(u)},b=async t=>{t.preventDefault(),m("");try{s?await n.put(`/gallery-brands/${s}`,r):await n.post("/gallery-brands",r),x(),d()}catch(j){m(j.message)}},g=async t=>{confirm("Marke inkl. aller Projekte/Fotos wirklich löschen?")&&(await n.delete(`/gallery-brands/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Galerie-Marken"}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2",children:"Sortierung"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[i.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:t.cover_image_path?e.jsx("img",{src:t.cover_image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:e.jsx(N,{to:`/galerie/${t.slug}`,target:"_blank",className:"hover:text-brand-500",children:t.name})}),e.jsx("td",{className:"px-4 py-2",children:t.sort_order}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>p(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>g(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),i.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Galerie-Marken angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:b,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Marke bearbeiten":"Neue Marke"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>a({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(k,{value:r.cover_image_path,onChange:t=>a({...r,cover_image_path:t}),aspect:4/3,label:"Titelbild (optional)"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>a({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),c&&e.jsx("p",{className:"text-sm text-red-600",children:c}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:x,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{f as default}; +import{r as l,j as e,L as N,a as n}from"./index-DM5dAVp5.js";import{I as k}from"./ImageUploadField-oqjVVSSG.js";const u={name:"",cover_image_path:"",sort_order:0};function f(){const[i,h]=l.useState([]),[r,a]=l.useState(u),[s,o]=l.useState(null),[c,m]=l.useState(""),d=()=>n.get("/gallery-brands").then(h);l.useEffect(()=>{d()},[]);const p=t=>{o(t.id),a({name:t.name,cover_image_path:t.cover_image_path||"",sort_order:t.sort_order})},x=()=>{o(null),a(u)},b=async t=>{t.preventDefault(),m("");try{s?await n.put(`/gallery-brands/${s}`,r):await n.post("/gallery-brands",r),x(),d()}catch(j){m(j.message)}},g=async t=>{confirm("Marke inkl. aller Projekte/Fotos wirklich löschen?")&&(await n.delete(`/gallery-brands/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Galerie-Marken"}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2",children:"Sortierung"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[i.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:t.cover_image_path?e.jsx("img",{src:t.cover_image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:e.jsx(N,{to:`/galerie/${t.slug}`,target:"_blank",className:"hover:text-brand-500",children:t.name})}),e.jsx("td",{className:"px-4 py-2",children:t.sort_order}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>p(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>g(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),i.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Galerie-Marken angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:b,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Marke bearbeiten":"Neue Marke"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>a({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(k,{value:r.cover_image_path,onChange:t=>a({...r,cover_image_path:t}),aspect:4/3,label:"Titelbild (optional)"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>a({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),c&&e.jsx("p",{className:"text-sm text-red-600",children:c}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:x,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{f as default}; diff --git a/hifi/assets/GalleryPhotos-Cx15BFfB.js b/hifi/assets/GalleryPhotos-DupxhhRN.js similarity index 97% rename from hifi/assets/GalleryPhotos-Cx15BFfB.js rename to hifi/assets/GalleryPhotos-DupxhhRN.js index cc85e0e..39b112e 100644 --- a/hifi/assets/GalleryPhotos-Cx15BFfB.js +++ b/hifi/assets/GalleryPhotos-DupxhhRN.js @@ -1 +1 @@ -import{e as w,r as l,j as t,L as P,a as n}from"./index-CeNRYcbS.js";function C(){const{projectId:d}=w(),[i,c]=l.useState([]),[m,h]=l.useState(""),[x,g]=l.useState(!1),[f,p]=l.useState(""),u=l.useRef(null),o=()=>n.get(`/gallery-projects/${d}/photos`).then(c);l.useEffect(()=>{o()},[d]);const j=async e=>{const r=Array.from(e.target.files||[]);if(r.length!==0){h(""),g(!0);try{for(let a=0;a{c(a=>a.map(s=>s.id===e.id?{...s,caption:r}:s))},k=(e,r)=>{c(a=>a.map(s=>s.id===e.id?{...s,sort_order:r}:s))},b=async e=>{await n.put(`/gallery-photos/${e.id}`,{caption:e.caption,sort_order:e.sort_order}),o()},y=async e=>{confirm("Foto wirklich entfernen?")&&(await n.delete(`/gallery-photos/${e}`),o())};return t.jsxs("div",{children:[t.jsx("p",{className:"mb-2 text-sm",children:t.jsx(P,{to:"/admin/gallery-projects",className:"text-brand-600 hover:underline",children:"← Zurück zu den Projekten"})}),t.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Fotos im Projekt"}),t.jsxs("div",{className:"mb-6 rounded-xl border border-neutral-200 bg-white p-4 dark:border-neutral-800 dark:bg-neutral-900",children:[t.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Fotos hinzufügen (Mehrfachauswahl möglich)"}),t.jsx("input",{ref:u,type:"file",multiple:!0,accept:"image/png,image/jpeg,image/webp",onChange:j,disabled:x,className:"text-sm"}),x&&t.jsx("p",{className:"mt-2 text-sm text-neutral-500",children:f})]}),m&&t.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),t.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:[i.map(e=>t.jsxs("div",{className:"overflow-hidden rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[t.jsx("img",{src:e.image_path,alt:e.caption||"",className:"aspect-square w-full object-cover"}),t.jsxs("div",{className:"space-y-2 p-3",children:[t.jsx("input",{value:e.caption||"",onChange:r=>N(e,r.target.value),onBlur:()=>b(e),placeholder:"Bildunterschrift (optional)",className:"w-full rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900"}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("input",{type:"number",value:e.sort_order,onChange:r=>k(e,Number(r.target.value)),onBlur:()=>b(e),className:"w-16 rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900"}),t.jsx("button",{onClick:()=>y(e.id),className:"text-xs text-red-600 hover:underline",children:"Entfernen"})]})]})]},e.id)),i.length===0&&t.jsx("p",{className:"col-span-full py-6 text-center text-neutral-400",children:"Noch keine Fotos in diesem Projekt."})]})]})}export{C as default}; +import{e as w,r as l,j as t,L as P,a as n}from"./index-DM5dAVp5.js";function C(){const{projectId:d}=w(),[i,c]=l.useState([]),[m,h]=l.useState(""),[x,g]=l.useState(!1),[f,p]=l.useState(""),u=l.useRef(null),o=()=>n.get(`/gallery-projects/${d}/photos`).then(c);l.useEffect(()=>{o()},[d]);const j=async e=>{const r=Array.from(e.target.files||[]);if(r.length!==0){h(""),g(!0);try{for(let a=0;a{c(a=>a.map(s=>s.id===e.id?{...s,caption:r}:s))},k=(e,r)=>{c(a=>a.map(s=>s.id===e.id?{...s,sort_order:r}:s))},b=async e=>{await n.put(`/gallery-photos/${e.id}`,{caption:e.caption,sort_order:e.sort_order}),o()},y=async e=>{confirm("Foto wirklich entfernen?")&&(await n.delete(`/gallery-photos/${e}`),o())};return t.jsxs("div",{children:[t.jsx("p",{className:"mb-2 text-sm",children:t.jsx(P,{to:"/admin/gallery-projects",className:"text-brand-600 hover:underline",children:"← Zurück zu den Projekten"})}),t.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Fotos im Projekt"}),t.jsxs("div",{className:"mb-6 rounded-xl border border-neutral-200 bg-white p-4 dark:border-neutral-800 dark:bg-neutral-900",children:[t.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Fotos hinzufügen (Mehrfachauswahl möglich)"}),t.jsx("input",{ref:u,type:"file",multiple:!0,accept:"image/png,image/jpeg,image/webp",onChange:j,disabled:x,className:"text-sm"}),x&&t.jsx("p",{className:"mt-2 text-sm text-neutral-500",children:f})]}),m&&t.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),t.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:[i.map(e=>t.jsxs("div",{className:"overflow-hidden rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[t.jsx("img",{src:e.image_path,alt:e.caption||"",className:"aspect-square w-full object-cover"}),t.jsxs("div",{className:"space-y-2 p-3",children:[t.jsx("input",{value:e.caption||"",onChange:r=>N(e,r.target.value),onBlur:()=>b(e),placeholder:"Bildunterschrift (optional)",className:"w-full rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900"}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("input",{type:"number",value:e.sort_order,onChange:r=>k(e,Number(r.target.value)),onBlur:()=>b(e),className:"w-16 rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900"}),t.jsx("button",{onClick:()=>y(e.id),className:"text-xs text-red-600 hover:underline",children:"Entfernen"})]})]})]},e.id)),i.length===0&&t.jsx("p",{className:"col-span-full py-6 text-center text-neutral-400",children:"Noch keine Fotos in diesem Projekt."})]})]})}export{C as default}; diff --git a/hifi/assets/GalleryProjects-DrxLi25V.js b/hifi/assets/GalleryProjects-6TCFmGT7.js similarity index 97% rename from hifi/assets/GalleryProjects-DrxLi25V.js rename to hifi/assets/GalleryProjects-6TCFmGT7.js index e9a3d07..a62944d 100644 --- a/hifi/assets/GalleryProjects-DrxLi25V.js +++ b/hifi/assets/GalleryProjects-6TCFmGT7.js @@ -1 +1 @@ -import{r as a,j as e,L as w,a as i}from"./index-CeNRYcbS.js";import{I as S}from"./ImageUploadField-DZzU8Hmm.js";const j={name:"",gallery_brand_id:"",cover_image_path:"",sort_order:0};function F(){const[n,k]=a.useState([]),[m,N]=a.useState([]),[t,l]=a.useState(j),[s,u]=a.useState(null),[x,h]=a.useState(""),[d,b]=a.useState("all"),o=a.useMemo(()=>d==="all"?n:n.filter(r=>String(r.gallery_brand_id)===d),[n,d]),c=()=>{i.get("/gallery-projects").then(k),i.get("/gallery-brands").then(N)};a.useEffect(c,[]);const y=r=>{u(r.id),l({name:r.name,gallery_brand_id:r.gallery_brand_id,cover_image_path:r.cover_image_path||"",sort_order:r.sort_order})},g=()=>{u(null),l(j)},v=async r=>{r.preventDefault(),h("");const p={...t,gallery_brand_id:Number(t.gallery_brand_id)};try{s?await i.put(`/gallery-projects/${s}`,p):await i.post("/gallery-projects",p),g(),c()}catch(_){h(_.message)}},f=async r=>{confirm("Projekt inkl. aller Fotos wirklich löschen?")&&(await i.delete(`/gallery-projects/${r}`),c())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Galerie-Projekte"}),e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[e.jsx("label",{className:"text-sm font-medium text-neutral-600 dark:text-neutral-300",children:"Nach Marke filtern:"}),e.jsxs("select",{value:d,onChange:r=>b(r.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"all",children:"Alle Marken"}),m.map(r=>e.jsx("option",{value:String(r.id),children:r.name},r.id))]}),d!=="all"&&e.jsx("button",{onClick:()=>b("all"),className:"text-sm text-brand-600 hover:underline",children:"Filter zurücksetzen"}),e.jsxs("span",{className:"text-sm text-neutral-400",children:[o.length," von ",n.length]})]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Marke"}),e.jsx("th",{className:"px-4 py-2",children:"Projekt"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[o.map(r=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:r.brand_name}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:r.name}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx(w,{to:`/admin/gallery-projects/${r.id}/photos`,className:"mr-3 text-brand-600 hover:underline",children:"Fotos"}),e.jsx("button",{onClick:()=>y(r),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>f(r.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},r.id)),o.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:3,className:"px-4 py-6 text-center text-neutral-400",children:n.length===0?"Noch keine Projekte angelegt.":"Keine Projekte für diese Marke."})})]})]})})]}),e.jsxs("form",{onSubmit:v,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Projekt bearbeiten":"Neues Projekt"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Marke *"}),e.jsxs("select",{required:!0,value:t.gallery_brand_id,onChange:r=>l({...t,gallery_brand_id:r.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Bitte wählen…"}),m.map(r=>e.jsx("option",{value:r.id,children:r.name},r.id))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Projektname *"}),e.jsx("input",{required:!0,placeholder:"z. B. Audi TT",value:t.name,onChange:r=>l({...t,name:r.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(S,{value:t.cover_image_path,onChange:r=>l({...t,cover_image_path:r}),aspect:4/3,label:"Titelbild (optional)"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:t.sort_order,onChange:r=>l({...t,sort_order:Number(r.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),x&&e.jsx("p",{className:"text-sm text-red-600",children:x}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:g,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{F as default}; +import{r as a,j as e,L as w,a as i}from"./index-DM5dAVp5.js";import{I as S}from"./ImageUploadField-oqjVVSSG.js";const j={name:"",gallery_brand_id:"",cover_image_path:"",sort_order:0};function F(){const[n,k]=a.useState([]),[m,N]=a.useState([]),[t,l]=a.useState(j),[s,u]=a.useState(null),[x,h]=a.useState(""),[d,b]=a.useState("all"),o=a.useMemo(()=>d==="all"?n:n.filter(r=>String(r.gallery_brand_id)===d),[n,d]),c=()=>{i.get("/gallery-projects").then(k),i.get("/gallery-brands").then(N)};a.useEffect(c,[]);const y=r=>{u(r.id),l({name:r.name,gallery_brand_id:r.gallery_brand_id,cover_image_path:r.cover_image_path||"",sort_order:r.sort_order})},g=()=>{u(null),l(j)},v=async r=>{r.preventDefault(),h("");const p={...t,gallery_brand_id:Number(t.gallery_brand_id)};try{s?await i.put(`/gallery-projects/${s}`,p):await i.post("/gallery-projects",p),g(),c()}catch(_){h(_.message)}},f=async r=>{confirm("Projekt inkl. aller Fotos wirklich löschen?")&&(await i.delete(`/gallery-projects/${r}`),c())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Galerie-Projekte"}),e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[e.jsx("label",{className:"text-sm font-medium text-neutral-600 dark:text-neutral-300",children:"Nach Marke filtern:"}),e.jsxs("select",{value:d,onChange:r=>b(r.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"all",children:"Alle Marken"}),m.map(r=>e.jsx("option",{value:String(r.id),children:r.name},r.id))]}),d!=="all"&&e.jsx("button",{onClick:()=>b("all"),className:"text-sm text-brand-600 hover:underline",children:"Filter zurücksetzen"}),e.jsxs("span",{className:"text-sm text-neutral-400",children:[o.length," von ",n.length]})]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Marke"}),e.jsx("th",{className:"px-4 py-2",children:"Projekt"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[o.map(r=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:r.brand_name}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:r.name}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx(w,{to:`/admin/gallery-projects/${r.id}/photos`,className:"mr-3 text-brand-600 hover:underline",children:"Fotos"}),e.jsx("button",{onClick:()=>y(r),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>f(r.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},r.id)),o.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:3,className:"px-4 py-6 text-center text-neutral-400",children:n.length===0?"Noch keine Projekte angelegt.":"Keine Projekte für diese Marke."})})]})]})})]}),e.jsxs("form",{onSubmit:v,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Projekt bearbeiten":"Neues Projekt"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Marke *"}),e.jsxs("select",{required:!0,value:t.gallery_brand_id,onChange:r=>l({...t,gallery_brand_id:r.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Bitte wählen…"}),m.map(r=>e.jsx("option",{value:r.id,children:r.name},r.id))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Projektname *"}),e.jsx("input",{required:!0,placeholder:"z. B. Audi TT",value:t.name,onChange:r=>l({...t,name:r.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(S,{value:t.cover_image_path,onChange:r=>l({...t,cover_image_path:r}),aspect:4/3,label:"Titelbild (optional)"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:t.sort_order,onChange:r=>l({...t,sort_order:Number(r.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),x&&e.jsx("p",{className:"text-sm text-red-600",children:x}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:g,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{F as default}; diff --git a/hifi/assets/HomeSections-Du6kmhHi.js b/hifi/assets/HomeSections-BBMip_Nb.js similarity index 98% rename from hifi/assets/HomeSections-Du6kmhHi.js rename to hifi/assets/HomeSections-BBMip_Nb.js index 8e8f663..529d2d2 100644 --- a/hifi/assets/HomeSections-Du6kmhHi.js +++ b/hifi/assets/HomeSections-BBMip_Nb.js @@ -1 +1 @@ -import{n as H,r as d,a as g,j as e,o as R}from"./index-CeNRYcbS.js";import{R as Z}from"./RichTextEditor-BR1AFZHM.js";import{T as p}from"./TextStyleWidget-DErOyFHL.js";const T=[{slug:"hero",label:"Hero (ganz oben)"},{slug:"youtube",label:"YouTube-Sektion"},{slug:"craft",label:"Handwerk"},{slug:"advice",label:"Beratung"},{slug:"insights",label:"Einblicke (Bildergalerie-Intro)"},{slug:"more",label:"Mehr als Car-Hifi"}],z=["hero","youtube"],K=[{value:"left",label:"Links"},{value:"center",label:"Mittig"},{value:"right",label:"Rechts"}],G={left:"text-left",center:"text-center",right:"text-right"};function U(b){const u=document.createElement("div");return u.innerHTML=b||"",u.textContent||""}function Y(){var C;const b=H(),[u,m]=d.useState(null),[n,$]=d.useState("hero"),[a,B]=d.useState("de"),[v,f]=d.useState(!1),[k,h]=d.useState(""),[E,c]=d.useState(!1),[j,M]=d.useState(""),y=d.useRef(null),[_,w]=d.useState(!1);if(d.useEffect(()=>{g.get("/home-sections").then(m),g.get("/site-settings").then(t=>M(t.hero_image_path||""))},[]),!u)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const r=u[n],P=z.includes(n),o=(t,s)=>{m(l=>({...l,[n]:{...l[n],[t]:s}})),c(!1)},i=(t,s)=>{m(l=>({...l,[n]:{...l[n],text_align_x:t,text_align_y:s}})),c(!1)},N=(t,s)=>{const l=y.current.getBoundingClientRect();return{x:Math.max(0,Math.min(100,Math.round((t-l.left)/l.width*100))),y:Math.max(0,Math.min(100,Math.round((s-l.top)/l.height*100)))}},I=t=>{t.preventDefault(),t.currentTarget.setPointerCapture(t.pointerId),w(!0);const{x:s,y:l}=N(t.clientX,t.clientY);i(s,l)},L=t=>{if(!_)return;const{x:s,y:l}=N(t.clientX,t.clientY);i(s,l)},O=t=>{w(!1),t.currentTarget.releasePointerCapture(t.pointerId)},D=async()=>{f(!0),h(""),c(!1);try{await g.put(`/home-sections/${n}`,r),c(!0)}catch(t){h(t.message)}finally{f(!1)}},x=r[`eyebrow_${a}`]||"",S=r[`title_${a}`]||((C=T.find(t=>t.slug===n))==null?void 0:C.label)||"",A=U(r[`body_html_${a}`]);return e.jsxs("div",{className:"max-w-3xl space-y-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Startseite"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Text, Position/Ausrichtung und (falls vorhanden) Button-Ziel der wichtigsten Textabschnitte auf der Startseite. Bilder, Statistik-Kacheln, Marken-Streifen, Bewertungen und FAQ werden an anderer Stelle verwaltet."})]}),e.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("div",{className:"mb-4 flex flex-wrap gap-2",children:T.map(t=>e.jsx("button",{type:"button",onClick:()=>{$(t.slug),c(!1),h("")},className:`rounded-md px-3 py-1.5 text-sm font-medium transition ${n===t.slug?"bg-brand-500 text-white":"border border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:t.label},t.slug))}),e.jsx("div",{className:"mb-4 flex gap-1 border-b border-neutral-200 pb-4 dark:border-neutral-800",children:[["de","Deutsch"],["en","English"]].map(([t,s])=>e.jsx("button",{type:"button",onClick:()=>B(t),className:`rounded-md px-3 py-1 text-sm font-medium transition ${a===t?"bg-neutral-800 text-white dark:bg-neutral-100 dark:text-neutral-900":"text-neutral-500 hover:bg-neutral-100 dark:text-neutral-400 dark:hover:bg-neutral-800"}`,children:s},t))}),P?e.jsxs("div",{className:"mb-5 grid gap-4 border-b border-neutral-200 pb-5 dark:border-neutral-800 sm:grid-cols-[16rem_1fr] sm:items-start",children:[e.jsxs("div",{children:[e.jsxs("div",{ref:y,className:"relative aspect-video select-none overflow-hidden rounded-xl bg-neutral-900 shadow-sm",children:[n==="hero"&&j?e.jsx("img",{src:j,alt:"",draggable:!1,className:"h-full w-full object-cover"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-neutral-700 to-neutral-900 text-xs uppercase tracking-wide text-neutral-500",children:n==="youtube"?"Video-Hintergrund":"Hero-Bild"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-black/40"}),e.jsxs("div",{onPointerDown:I,onPointerMove:L,onPointerUp:O,style:{...R(r.text_align_x,r.text_align_y,{x:50,y:50}),touchAction:"none"},className:`absolute max-w-[85%] select-none whitespace-nowrap rounded p-2 text-center transition-colors ${_?"cursor-grabbing bg-white/10 ring-2 ring-brand-400":"cursor-grab hover:bg-white/10"}`,children:[x&&e.jsx("p",{className:"truncate text-[10px] font-semibold uppercase tracking-wide text-brand-300",children:x}),e.jsx("p",{className:"truncate text-sm font-extrabold text-white",children:S})]})]}),e.jsx("p",{className:"mt-1.5 text-center text-xs text-neutral-400",children:"Zum Verschieben ziehen"})]}),e.jsxs("div",{className:"flex flex-col gap-3 sm:pt-1",children:[e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Position:"," ",e.jsxs("span",{className:"font-mono font-semibold text-neutral-700 dark:text-neutral-200",children:[r.text_align_x,"% / ",r.text_align_y,"%"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl waagerecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>i(0,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Links"}),e.jsx("button",{type:"button",onClick:()=>i(50,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>i(100,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Rechts"})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl senkrecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>i(r.text_align_x,0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Oben"}),e.jsx("button",{type:"button",onClick:()=>i(r.text_align_x,50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>i(r.text_align_x,100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Unten"})]})]})]})]}):e.jsxs("div",{className:"mb-5 grid gap-4 border-b border-neutral-200 pb-5 dark:border-neutral-800 sm:grid-cols-[10rem_1fr] sm:items-center",children:[e.jsx("div",{className:"aspect-square rounded-xl bg-neutral-100 dark:bg-neutral-800","aria-hidden":!0}),e.jsxs("div",{children:[e.jsxs("div",{className:`rounded-lg border border-neutral-200 p-3 dark:border-neutral-700 ${G[r.text_align]||"text-left"}`,children:[x&&e.jsx("p",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",children:x}),e.jsx("p",{className:"mb-1 font-bold text-neutral-900 dark:text-white",children:S}),e.jsx("p",{className:"line-clamp-2 text-xs text-neutral-500 dark:text-neutral-400",children:A||"Text erscheint hier…"})]}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:K.map(t=>e.jsx("button",{type:"button",onClick:()=>o("text_align",t.value),className:`rounded-md border px-3 py-1.5 text-sm font-medium transition ${r.text_align===t.value?"border-brand-500 bg-brand-500 text-white":"border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:t.label},t.value))})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Kurzer Vorspann (optional)"}),e.jsx("input",{value:r[`eyebrow_${a}`]||"",onChange:t=>o(`eyebrow_${a}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${n}.eyebrow`,previewText:r[`eyebrow_${a}`]||"Beispieltext"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Überschrift"}),e.jsx("input",{value:r[`title_${a}`]||"",onChange:t=>o(`title_${a}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${n}.title`,previewText:r[`title_${a}`]||"Beispieltext"})]}),e.jsx(Z,{label:"Text",value:r[`body_html_${a}`]||"",onChange:t=>o(`body_html_${a}`,t)}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Beschriftung (optional)"}),e.jsx("input",{value:r[`button_label_${a}`]||"",onChange:t=>o(`button_label_${a}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${n}.button_label`,previewText:r[`button_label_${a}`]||"Beispieltext"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Ziel (Link, für beide Sprachen gleich)"}),e.jsx("input",{value:r.button_url||"",onChange:t=>o("button_url",t.target.value),placeholder:"/leistungen oder https://…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:'Ohne Beschriftung UND Ziel wird kein Button angezeigt. Mit "/" beginnende Ziele bleiben innerhalb der Seite, alles andere öffnet extern in einem neuen Tab.'})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Schriftart (für beide Sprachen gleich)"}),e.jsxs("select",{value:r.font_family||"",onChange:t=>o("font_family",t.target.value||null),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Standard (globale Schriftart)"}),b.filter(t=>t.value).map(t=>e.jsx("option",{value:t.value,children:t.label},t.label))]})]})]}),r.updated_at&&e.jsxs("p",{className:"mt-3 text-xs text-neutral-400",children:["Zuletzt geändert: ",new Date(r.updated_at.replace(" ","T")).toLocaleString("de-DE")]}),k&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:k}),E&&e.jsx("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"button",onClick:D,disabled:v,className:"mt-4 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:v?"Speichere…":"Speichern"})]})]})}export{Y as default}; +import{n as H,r as d,a as g,j as e,o as R}from"./index-DM5dAVp5.js";import{R as Z}from"./RichTextEditor-DTscIhNf.js";import{T as p}from"./TextStyleWidget-CkwixV2h.js";const T=[{slug:"hero",label:"Hero (ganz oben)"},{slug:"youtube",label:"YouTube-Sektion"},{slug:"craft",label:"Handwerk"},{slug:"advice",label:"Beratung"},{slug:"insights",label:"Einblicke (Bildergalerie-Intro)"},{slug:"more",label:"Mehr als Car-Hifi"}],z=["hero","youtube"],K=[{value:"left",label:"Links"},{value:"center",label:"Mittig"},{value:"right",label:"Rechts"}],G={left:"text-left",center:"text-center",right:"text-right"};function U(b){const u=document.createElement("div");return u.innerHTML=b||"",u.textContent||""}function Y(){var C;const b=H(),[u,m]=d.useState(null),[n,$]=d.useState("hero"),[a,B]=d.useState("de"),[v,f]=d.useState(!1),[k,h]=d.useState(""),[E,c]=d.useState(!1),[j,M]=d.useState(""),y=d.useRef(null),[_,w]=d.useState(!1);if(d.useEffect(()=>{g.get("/home-sections").then(m),g.get("/site-settings").then(t=>M(t.hero_image_path||""))},[]),!u)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const r=u[n],P=z.includes(n),o=(t,s)=>{m(l=>({...l,[n]:{...l[n],[t]:s}})),c(!1)},i=(t,s)=>{m(l=>({...l,[n]:{...l[n],text_align_x:t,text_align_y:s}})),c(!1)},N=(t,s)=>{const l=y.current.getBoundingClientRect();return{x:Math.max(0,Math.min(100,Math.round((t-l.left)/l.width*100))),y:Math.max(0,Math.min(100,Math.round((s-l.top)/l.height*100)))}},I=t=>{t.preventDefault(),t.currentTarget.setPointerCapture(t.pointerId),w(!0);const{x:s,y:l}=N(t.clientX,t.clientY);i(s,l)},L=t=>{if(!_)return;const{x:s,y:l}=N(t.clientX,t.clientY);i(s,l)},O=t=>{w(!1),t.currentTarget.releasePointerCapture(t.pointerId)},D=async()=>{f(!0),h(""),c(!1);try{await g.put(`/home-sections/${n}`,r),c(!0)}catch(t){h(t.message)}finally{f(!1)}},x=r[`eyebrow_${a}`]||"",S=r[`title_${a}`]||((C=T.find(t=>t.slug===n))==null?void 0:C.label)||"",A=U(r[`body_html_${a}`]);return e.jsxs("div",{className:"max-w-3xl space-y-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Startseite"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Text, Position/Ausrichtung und (falls vorhanden) Button-Ziel der wichtigsten Textabschnitte auf der Startseite. Bilder, Statistik-Kacheln, Marken-Streifen, Bewertungen und FAQ werden an anderer Stelle verwaltet."})]}),e.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("div",{className:"mb-4 flex flex-wrap gap-2",children:T.map(t=>e.jsx("button",{type:"button",onClick:()=>{$(t.slug),c(!1),h("")},className:`rounded-md px-3 py-1.5 text-sm font-medium transition ${n===t.slug?"bg-brand-500 text-white":"border border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:t.label},t.slug))}),e.jsx("div",{className:"mb-4 flex gap-1 border-b border-neutral-200 pb-4 dark:border-neutral-800",children:[["de","Deutsch"],["en","English"]].map(([t,s])=>e.jsx("button",{type:"button",onClick:()=>B(t),className:`rounded-md px-3 py-1 text-sm font-medium transition ${a===t?"bg-neutral-800 text-white dark:bg-neutral-100 dark:text-neutral-900":"text-neutral-500 hover:bg-neutral-100 dark:text-neutral-400 dark:hover:bg-neutral-800"}`,children:s},t))}),P?e.jsxs("div",{className:"mb-5 grid gap-4 border-b border-neutral-200 pb-5 dark:border-neutral-800 sm:grid-cols-[16rem_1fr] sm:items-start",children:[e.jsxs("div",{children:[e.jsxs("div",{ref:y,className:"relative aspect-video select-none overflow-hidden rounded-xl bg-neutral-900 shadow-sm",children:[n==="hero"&&j?e.jsx("img",{src:j,alt:"",draggable:!1,className:"h-full w-full object-cover"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-neutral-700 to-neutral-900 text-xs uppercase tracking-wide text-neutral-500",children:n==="youtube"?"Video-Hintergrund":"Hero-Bild"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-black/40"}),e.jsxs("div",{onPointerDown:I,onPointerMove:L,onPointerUp:O,style:{...R(r.text_align_x,r.text_align_y,{x:50,y:50}),touchAction:"none"},className:`absolute max-w-[85%] select-none whitespace-nowrap rounded p-2 text-center transition-colors ${_?"cursor-grabbing bg-white/10 ring-2 ring-brand-400":"cursor-grab hover:bg-white/10"}`,children:[x&&e.jsx("p",{className:"truncate text-[10px] font-semibold uppercase tracking-wide text-brand-300",children:x}),e.jsx("p",{className:"truncate text-sm font-extrabold text-white",children:S})]})]}),e.jsx("p",{className:"mt-1.5 text-center text-xs text-neutral-400",children:"Zum Verschieben ziehen"})]}),e.jsxs("div",{className:"flex flex-col gap-3 sm:pt-1",children:[e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Position:"," ",e.jsxs("span",{className:"font-mono font-semibold text-neutral-700 dark:text-neutral-200",children:[r.text_align_x,"% / ",r.text_align_y,"%"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl waagerecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>i(0,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Links"}),e.jsx("button",{type:"button",onClick:()=>i(50,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>i(100,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Rechts"})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl senkrecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>i(r.text_align_x,0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Oben"}),e.jsx("button",{type:"button",onClick:()=>i(r.text_align_x,50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>i(r.text_align_x,100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Unten"})]})]})]})]}):e.jsxs("div",{className:"mb-5 grid gap-4 border-b border-neutral-200 pb-5 dark:border-neutral-800 sm:grid-cols-[10rem_1fr] sm:items-center",children:[e.jsx("div",{className:"aspect-square rounded-xl bg-neutral-100 dark:bg-neutral-800","aria-hidden":!0}),e.jsxs("div",{children:[e.jsxs("div",{className:`rounded-lg border border-neutral-200 p-3 dark:border-neutral-700 ${G[r.text_align]||"text-left"}`,children:[x&&e.jsx("p",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",children:x}),e.jsx("p",{className:"mb-1 font-bold text-neutral-900 dark:text-white",children:S}),e.jsx("p",{className:"line-clamp-2 text-xs text-neutral-500 dark:text-neutral-400",children:A||"Text erscheint hier…"})]}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:K.map(t=>e.jsx("button",{type:"button",onClick:()=>o("text_align",t.value),className:`rounded-md border px-3 py-1.5 text-sm font-medium transition ${r.text_align===t.value?"border-brand-500 bg-brand-500 text-white":"border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:t.label},t.value))})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Kurzer Vorspann (optional)"}),e.jsx("input",{value:r[`eyebrow_${a}`]||"",onChange:t=>o(`eyebrow_${a}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${n}.eyebrow`,previewText:r[`eyebrow_${a}`]||"Beispieltext"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Überschrift"}),e.jsx("input",{value:r[`title_${a}`]||"",onChange:t=>o(`title_${a}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${n}.title`,previewText:r[`title_${a}`]||"Beispieltext"})]}),e.jsx(Z,{label:"Text",value:r[`body_html_${a}`]||"",onChange:t=>o(`body_html_${a}`,t)}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Beschriftung (optional)"}),e.jsx("input",{value:r[`button_label_${a}`]||"",onChange:t=>o(`button_label_${a}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${n}.button_label`,previewText:r[`button_label_${a}`]||"Beispieltext"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Ziel (Link, für beide Sprachen gleich)"}),e.jsx("input",{value:r.button_url||"",onChange:t=>o("button_url",t.target.value),placeholder:"/leistungen oder https://…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:'Ohne Beschriftung UND Ziel wird kein Button angezeigt. Mit "/" beginnende Ziele bleiben innerhalb der Seite, alles andere öffnet extern in einem neuen Tab.'})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Schriftart (für beide Sprachen gleich)"}),e.jsxs("select",{value:r.font_family||"",onChange:t=>o("font_family",t.target.value||null),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Standard (globale Schriftart)"}),b.filter(t=>t.value).map(t=>e.jsx("option",{value:t.value,children:t.label},t.label))]})]})]}),r.updated_at&&e.jsxs("p",{className:"mt-3 text-xs text-neutral-400",children:["Zuletzt geändert: ",new Date(r.updated_at.replace(" ","T")).toLocaleString("de-DE")]}),k&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:k}),E&&e.jsx("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"button",onClick:D,disabled:v,className:"mt-4 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:v?"Speichere…":"Speichern"})]})]})}export{Y as default}; diff --git a/hifi/assets/ImageUploadField-DZzU8Hmm.js b/hifi/assets/ImageUploadField-oqjVVSSG.js similarity index 99% rename from hifi/assets/ImageUploadField-DZzU8Hmm.js rename to hifi/assets/ImageUploadField-oqjVVSSG.js index c260330..e2ed6ce 100644 --- a/hifi/assets/ImageUploadField-DZzU8Hmm.js +++ b/hifi/assets/ImageUploadField-oqjVVSSG.js @@ -1,4 +1,4 @@ -import{t as mt,r as d,j as u,a as ft}from"./index-CeNRYcbS.js";var V=!1,E,Z,k,_,N,rt,W,U,B,H,nt,G,X,st,at;function g(){if(!V){V=!0;var o=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(o),t=/(Mac OS X)|(Windows)|(Linux)/.exec(o);if(G=/\b(iPhone|iP[ao]d)/.exec(o),X=/\b(iP[ao]d)/.exec(o),H=/Android/i.exec(o),st=/FBAN\/\w+;/i.exec(o),at=/Mobile/i.exec(o),nt=!!/Win64/.exec(o),e){E=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,E&&document&&document.documentMode&&(E=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(o);rt=i?parseFloat(i[1])+4:E,Z=e[2]?parseFloat(e[2]):NaN,k=e[3]?parseFloat(e[3]):NaN,_=e[4]?parseFloat(e[4]):NaN,_?(e=/(?:Chrome\/(\d+\.\d+))/.exec(o),N=e&&e[1]?parseFloat(e[1]):NaN):N=NaN}else E=Z=k=N=_=NaN;if(t){if(t[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(o);W=r?parseFloat(r[1].replace("_",".")):!0}else W=!1;U=!!t[2],B=!!t[3]}else W=U=B=!1}}var Y={ie:function(){return g()||E},ieCompatibilityMode:function(){return g()||rt>E},ie64:function(){return Y.ie()&&nt},firefox:function(){return g()||Z},opera:function(){return g()||k},webkit:function(){return g()||_},safari:function(){return Y.webkit()},chrome:function(){return g()||N},windows:function(){return g()||U},osx:function(){return g()||W},linux:function(){return g()||B},iphone:function(){return g()||G},mobile:function(){return g()||G||X||H||at},nativeApp:function(){return g()||st},android:function(){return g()||H},ipad:function(){return g()||X}},gt=Y,vt=!!(typeof window<"u"&&window.document&&window.document.createElement),wt={canUseDOM:vt},bt=wt,ht=bt,ct;ht.canUseDOM&&(ct=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/** +import{t as mt,r as d,j as u,a as ft}from"./index-DM5dAVp5.js";var V=!1,E,Z,k,_,N,rt,W,U,B,H,nt,G,X,st,at;function g(){if(!V){V=!0;var o=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(o),t=/(Mac OS X)|(Windows)|(Linux)/.exec(o);if(G=/\b(iPhone|iP[ao]d)/.exec(o),X=/\b(iP[ao]d)/.exec(o),H=/Android/i.exec(o),st=/FBAN\/\w+;/i.exec(o),at=/Mobile/i.exec(o),nt=!!/Win64/.exec(o),e){E=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,E&&document&&document.documentMode&&(E=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(o);rt=i?parseFloat(i[1])+4:E,Z=e[2]?parseFloat(e[2]):NaN,k=e[3]?parseFloat(e[3]):NaN,_=e[4]?parseFloat(e[4]):NaN,_?(e=/(?:Chrome\/(\d+\.\d+))/.exec(o),N=e&&e[1]?parseFloat(e[1]):NaN):N=NaN}else E=Z=k=N=_=NaN;if(t){if(t[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(o);W=r?parseFloat(r[1].replace("_",".")):!0}else W=!1;U=!!t[2],B=!!t[3]}else W=U=B=!1}}var Y={ie:function(){return g()||E},ieCompatibilityMode:function(){return g()||rt>E},ie64:function(){return Y.ie()&&nt},firefox:function(){return g()||Z},opera:function(){return g()||k},webkit:function(){return g()||_},safari:function(){return Y.webkit()},chrome:function(){return g()||N},windows:function(){return g()||U},osx:function(){return g()||W},linux:function(){return g()||B},iphone:function(){return g()||G},mobile:function(){return g()||G||X||H||at},nativeApp:function(){return g()||st},android:function(){return g()||H},ipad:function(){return g()||X}},gt=Y,vt=!!(typeof window<"u"&&window.document&&window.document.createElement),wt={canUseDOM:vt},bt=wt,ht=bt,ct;ht.canUseDOM&&(ct=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, diff --git a/hifi/assets/LegalSettings-DAfuQqrY.js b/hifi/assets/LegalSettings-DGN-Kl_a.js similarity index 95% rename from hifi/assets/LegalSettings-DAfuQqrY.js rename to hifi/assets/LegalSettings-DGN-Kl_a.js index 488baaf..04789ce 100644 --- a/hifi/assets/LegalSettings-DAfuQqrY.js +++ b/hifi/assets/LegalSettings-DGN-Kl_a.js @@ -1 +1 @@ -import{r as s,a as b,j as e}from"./index-CeNRYcbS.js";import{R as v}from"./RichTextEditor-BR1AFZHM.js";const j=[{slug:"impressum",label:"Impressum"},{slug:"datenschutz",label:"Datenschutzerklärung"},{slug:"agb",label:"AGB"}];function k(){const[d,u]=s.useState(null),[r,h]=s.useState("impressum"),[c,i]=s.useState(!1),[o,n]=s.useState(""),[g,l]=s.useState(!1);if(s.useEffect(()=>{b.get("/legal-pages").then(u)},[]),!d)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const a=d[r],m=(t,f)=>{u(x=>({...x,[r]:{...x[r],[t]:f}})),l(!1)},p=async()=>{i(!0),n(""),l(!1);try{await b.put(`/legal-pages/${r}`,{title:a.title,body_html:a.body_html}),l(!0)}catch(t){n(t.message)}finally{i(!1)}};return e.jsx("div",{className:"max-w-3xl space-y-6",children:e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Rechtstexte"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Impressum, Datenschutzerklärung und AGB direkt hier pflegen, statt einen Deploy für jede Textänderung zu brauchen. Bitte bei Rechtstexten im Zweifel rechtlich beraten lassen, bevor du größere Änderungen veröffentlichst."}),e.jsx("div",{className:"mb-4 flex flex-wrap gap-2",children:j.map(t=>e.jsx("button",{type:"button",onClick:()=>{h(t.slug),l(!1),n("")},className:`rounded-md px-3 py-1.5 text-sm font-medium transition ${r===t.slug?"bg-brand-500 text-white":"border border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:t.label},t.slug))}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Überschrift"}),e.jsx("input",{value:a.title,onChange:t=>m("title",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(v,{label:"Inhalt",value:a.body_html,onChange:t=>m("body_html",t)})]}),a.updated_at&&e.jsxs("p",{className:"mt-3 text-xs text-neutral-400",children:["Zuletzt geändert: ",new Date(a.updated_at.replace(" ","T")).toLocaleString("de-DE")]}),o&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:o}),g&&e.jsx("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"button",onClick:p,disabled:c,className:"mt-4 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:c?"Speichere…":"Speichern"})]})})}export{k as default}; +import{r as s,a as b,j as e}from"./index-DM5dAVp5.js";import{R as v}from"./RichTextEditor-DTscIhNf.js";const j=[{slug:"impressum",label:"Impressum"},{slug:"datenschutz",label:"Datenschutzerklärung"},{slug:"agb",label:"AGB"}];function k(){const[d,u]=s.useState(null),[r,h]=s.useState("impressum"),[c,i]=s.useState(!1),[o,n]=s.useState(""),[g,l]=s.useState(!1);if(s.useEffect(()=>{b.get("/legal-pages").then(u)},[]),!d)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const a=d[r],m=(t,f)=>{u(x=>({...x,[r]:{...x[r],[t]:f}})),l(!1)},p=async()=>{i(!0),n(""),l(!1);try{await b.put(`/legal-pages/${r}`,{title:a.title,body_html:a.body_html}),l(!0)}catch(t){n(t.message)}finally{i(!1)}};return e.jsx("div",{className:"max-w-3xl space-y-6",children:e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Rechtstexte"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Impressum, Datenschutzerklärung und AGB direkt hier pflegen, statt einen Deploy für jede Textänderung zu brauchen. Bitte bei Rechtstexten im Zweifel rechtlich beraten lassen, bevor du größere Änderungen veröffentlichst."}),e.jsx("div",{className:"mb-4 flex flex-wrap gap-2",children:j.map(t=>e.jsx("button",{type:"button",onClick:()=>{h(t.slug),l(!1),n("")},className:`rounded-md px-3 py-1.5 text-sm font-medium transition ${r===t.slug?"bg-brand-500 text-white":"border border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:t.label},t.slug))}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Überschrift"}),e.jsx("input",{value:a.title,onChange:t=>m("title",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(v,{label:"Inhalt",value:a.body_html,onChange:t=>m("body_html",t)})]}),a.updated_at&&e.jsxs("p",{className:"mt-3 text-xs text-neutral-400",children:["Zuletzt geändert: ",new Date(a.updated_at.replace(" ","T")).toLocaleString("de-DE")]}),o&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:o}),g&&e.jsx("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"button",onClick:p,disabled:c,className:"mt-4 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:c?"Speichere…":"Speichern"})]})})}export{k as default}; diff --git a/hifi/assets/Login-B4YL4ltB.js b/hifi/assets/Login-pbnF9xt-.js similarity index 98% rename from hifi/assets/Login-B4YL4ltB.js rename to hifi/assets/Login-pbnF9xt-.js index c0ceb61..f3eae83 100644 --- a/hifi/assets/Login-B4YL4ltB.js +++ b/hifi/assets/Login-pbnF9xt-.js @@ -1 +1 @@ -import{b as N,c as v,r,j as e,N as y,l as C,d as S}from"./index-CeNRYcbS.js";function P(){const{user:x,login:h,verifyTwoFactor:g}=N(),o=v(),[f,u]=r.useState("credentials"),[i,p]=r.useState(""),[c,w]=r.useState(""),[m,b]=r.useState(""),[s,a]=r.useState(""),[n,l]=r.useState(!1);if(x)return e.jsx(y,{to:"/admin",replace:!0});const k=async t=>{t.preventDefault(),l(!0),a("");try{(await h(i,c)).requires2fa?u("code"):o("/admin")}catch(d){a(d.message)}finally{l(!1)}},j=async t=>{t.preventDefault(),l(!0),a("");try{await g(m),o("/admin")}catch(d){a(d.message)}finally{l(!1)}};return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-neutral-50 px-4 dark:bg-neutral-950",children:[e.jsx("img",{src:C,alt:"HifiPlanet",className:"h-16 w-auto dark:hidden sm:h-20"}),e.jsx("img",{src:S,alt:"HifiPlanet",className:"hidden h-16 w-auto dark:block sm:h-20"}),f==="credentials"?e.jsxs("form",{onSubmit:k,className:"w-full max-w-sm rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h1",{className:"mb-6 text-xl font-bold text-neutral-900 dark:text-white",children:"Admin-Login"}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername"}),e.jsx("input",{value:i,onChange:t=>p(t.target.value),required:!0,autoFocus:!0,className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Passwort"}),e.jsx("input",{type:"password",value:c,onChange:t=>w(t.target.value),required:!0,className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),s&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:s}),e.jsx("button",{type:"submit",disabled:n,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:n?"Anmelden…":"Anmelden"})]}):e.jsxs("form",{onSubmit:j,className:"w-full max-w-sm rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Bestätigungscode"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Öffne die Google Authenticator App und gib den 6-stelligen Code ein. Alternativ kannst du auch einen deiner Wiederherstellungscodes verwenden."}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Code"}),e.jsx("input",{value:m,onChange:t=>b(t.target.value),required:!0,autoFocus:!0,inputMode:"numeric",placeholder:"123456",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-center text-lg tracking-widest focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),s&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:s}),e.jsx("button",{type:"submit",disabled:n,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:n?"Prüfe…":"Bestätigen"}),e.jsx("button",{type:"button",onClick:()=>{u("credentials"),b(""),a("")},className:"mt-3 w-full text-sm text-neutral-500 hover:underline dark:text-neutral-400",children:"Zurück zum Login"})]})]})}export{P as default}; +import{b as N,c as v,r,j as e,N as y,l as C,d as S}from"./index-DM5dAVp5.js";function P(){const{user:x,login:h,verifyTwoFactor:g}=N(),o=v(),[f,u]=r.useState("credentials"),[i,p]=r.useState(""),[c,w]=r.useState(""),[m,b]=r.useState(""),[s,a]=r.useState(""),[n,l]=r.useState(!1);if(x)return e.jsx(y,{to:"/admin",replace:!0});const k=async t=>{t.preventDefault(),l(!0),a("");try{(await h(i,c)).requires2fa?u("code"):o("/admin")}catch(d){a(d.message)}finally{l(!1)}},j=async t=>{t.preventDefault(),l(!0),a("");try{await g(m),o("/admin")}catch(d){a(d.message)}finally{l(!1)}};return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-neutral-50 px-4 dark:bg-neutral-950",children:[e.jsx("img",{src:C,alt:"HifiPlanet",className:"h-16 w-auto dark:hidden sm:h-20"}),e.jsx("img",{src:S,alt:"HifiPlanet",className:"hidden h-16 w-auto dark:block sm:h-20"}),f==="credentials"?e.jsxs("form",{onSubmit:k,className:"w-full max-w-sm rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h1",{className:"mb-6 text-xl font-bold text-neutral-900 dark:text-white",children:"Admin-Login"}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername"}),e.jsx("input",{value:i,onChange:t=>p(t.target.value),required:!0,autoFocus:!0,className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Passwort"}),e.jsx("input",{type:"password",value:c,onChange:t=>w(t.target.value),required:!0,className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),s&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:s}),e.jsx("button",{type:"submit",disabled:n,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:n?"Anmelden…":"Anmelden"})]}):e.jsxs("form",{onSubmit:j,className:"w-full max-w-sm rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Bestätigungscode"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Öffne die Google Authenticator App und gib den 6-stelligen Code ein. Alternativ kannst du auch einen deiner Wiederherstellungscodes verwenden."}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Code"}),e.jsx("input",{value:m,onChange:t=>b(t.target.value),required:!0,autoFocus:!0,inputMode:"numeric",placeholder:"123456",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-center text-lg tracking-widest focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),s&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:s}),e.jsx("button",{type:"submit",disabled:n,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:n?"Prüfe…":"Bestätigen"}),e.jsx("button",{type:"button",onClick:()=>{u("credentials"),b(""),a("")},className:"mt-3 w-full text-sm text-neutral-500 hover:underline dark:text-neutral-400",children:"Zurück zum Login"})]})]})}export{P as default}; diff --git a/hifi/assets/MaintenanceSettings-DfLGBunE.js b/hifi/assets/MaintenanceSettings-DhcTJBUJ.js similarity index 98% rename from hifi/assets/MaintenanceSettings-DfLGBunE.js rename to hifi/assets/MaintenanceSettings-DhcTJBUJ.js index 9c5fe72..a027d7f 100644 --- a/hifi/assets/MaintenanceSettings-DfLGBunE.js +++ b/hifi/assets/MaintenanceSettings-DhcTJBUJ.js @@ -1 +1 @@ -import{r as s,a as o,j as a}from"./index-CeNRYcbS.js";const v={global:{enabled:!1,message:""},services:{enabled:!1,message:""},vehicles:{enabled:!1,message:""}};function N(){const[l,n]=s.useState(v),[g,h]=s.useState(!0),[i,d]=s.useState(!1),[x,r]=s.useState(!1),[c,u]=s.useState("");s.useEffect(()=>{o.get("/maintenance").then(e=>{n({global:{enabled:e.global.enabled,message:e.global.message||""},services:{enabled:e.services.enabled,message:e.services.message||""},vehicles:{enabled:e.vehicles.enabled,message:e.vehicles.message||""}})}).finally(()=>h(!1))},[]);const m=(e,t,k)=>{n(b=>({...b,[e]:{...b[e],[t]:k}})),r(!1)},p=async e=>{e.preventDefault(),d(!0),u(""),r(!1);try{const t=await o.post("/maintenance",l);n({global:{enabled:t.global.enabled,message:t.global.message||""},services:{enabled:t.services.enabled,message:t.services.message||""},vehicles:{enabled:t.vehicles.enabled,message:t.vehicles.message||""}}),r(!0)}catch(t){u(t.message)}finally{d(!1)}},f=[{key:"global",title:"Gesamte Seite",hint:"Besucher sehen nur noch eine Wartungsmeldung – egal welche Seite sie aufrufen. Das Admin-Panel bleibt für dich erreichbar."},{key:"services",title:"Nur Leistungen",hint:"Nur die Leistungen-Seite zeigt eine Wartungsmeldung, der Rest der Website funktioniert normal."},{key:"vehicles",title:"Nur Fahrzeugkatalog",hint:"Nur die Fahrzeugauswahl (Marke → Modell → Pakete) zeigt eine Wartungsmeldung, der Rest der Website funktioniert normal."}];return g?a.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):a.jsxs("form",{onSubmit:p,className:"max-w-2xl space-y-6",children:[a.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:'Ist "Gesamte Seite" aktiv, gewinnt das immer – die beiden anderen Schalter spielen dann keine Rolle mehr.'}),f.map(e=>a.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[a.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:e.title}),a.jsxs("label",{className:"relative inline-flex cursor-pointer items-center",children:[a.jsx("input",{type:"checkbox",checked:l[e.key].enabled,onChange:t=>m(e.key,"enabled",t.target.checked),className:"peer sr-only"}),a.jsx("div",{className:"h-6 w-11 rounded-full bg-neutral-200 transition peer-checked:bg-brand-500 dark:bg-neutral-700"}),a.jsx("div",{className:"absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"})]})]}),a.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:e.hint}),a.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Eigene Nachricht (optional)"}),a.jsx("textarea",{rows:2,value:l[e.key].message,onChange:t=>m(e.key,"message",t.target.value),placeholder:"z. B. Wir aktualisieren gerade unser Angebot. Schau bald wieder vorbei!",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]},e.key)),c&&a.jsx("p",{className:"text-sm text-red-600",children:c}),x&&a.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),a.jsx("button",{type:"submit",disabled:i,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:i?"Speichere…":"Speichern"})]})}export{N as default}; +import{r as s,a as o,j as a}from"./index-DM5dAVp5.js";const v={global:{enabled:!1,message:""},services:{enabled:!1,message:""},vehicles:{enabled:!1,message:""}};function N(){const[l,n]=s.useState(v),[g,h]=s.useState(!0),[i,d]=s.useState(!1),[x,r]=s.useState(!1),[c,u]=s.useState("");s.useEffect(()=>{o.get("/maintenance").then(e=>{n({global:{enabled:e.global.enabled,message:e.global.message||""},services:{enabled:e.services.enabled,message:e.services.message||""},vehicles:{enabled:e.vehicles.enabled,message:e.vehicles.message||""}})}).finally(()=>h(!1))},[]);const m=(e,t,k)=>{n(b=>({...b,[e]:{...b[e],[t]:k}})),r(!1)},p=async e=>{e.preventDefault(),d(!0),u(""),r(!1);try{const t=await o.post("/maintenance",l);n({global:{enabled:t.global.enabled,message:t.global.message||""},services:{enabled:t.services.enabled,message:t.services.message||""},vehicles:{enabled:t.vehicles.enabled,message:t.vehicles.message||""}}),r(!0)}catch(t){u(t.message)}finally{d(!1)}},f=[{key:"global",title:"Gesamte Seite",hint:"Besucher sehen nur noch eine Wartungsmeldung – egal welche Seite sie aufrufen. Das Admin-Panel bleibt für dich erreichbar."},{key:"services",title:"Nur Leistungen",hint:"Nur die Leistungen-Seite zeigt eine Wartungsmeldung, der Rest der Website funktioniert normal."},{key:"vehicles",title:"Nur Fahrzeugkatalog",hint:"Nur die Fahrzeugauswahl (Marke → Modell → Pakete) zeigt eine Wartungsmeldung, der Rest der Website funktioniert normal."}];return g?a.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):a.jsxs("form",{onSubmit:p,className:"max-w-2xl space-y-6",children:[a.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:'Ist "Gesamte Seite" aktiv, gewinnt das immer – die beiden anderen Schalter spielen dann keine Rolle mehr.'}),f.map(e=>a.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[a.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:e.title}),a.jsxs("label",{className:"relative inline-flex cursor-pointer items-center",children:[a.jsx("input",{type:"checkbox",checked:l[e.key].enabled,onChange:t=>m(e.key,"enabled",t.target.checked),className:"peer sr-only"}),a.jsx("div",{className:"h-6 w-11 rounded-full bg-neutral-200 transition peer-checked:bg-brand-500 dark:bg-neutral-700"}),a.jsx("div",{className:"absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"})]})]}),a.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:e.hint}),a.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Eigene Nachricht (optional)"}),a.jsx("textarea",{rows:2,value:l[e.key].message,onChange:t=>m(e.key,"message",t.target.value),placeholder:"z. B. Wir aktualisieren gerade unser Angebot. Schau bald wieder vorbei!",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]},e.key)),c&&a.jsx("p",{className:"text-sm text-red-600",children:c}),x&&a.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),a.jsx("button",{type:"submit",disabled:i,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:i?"Speichere…":"Speichern"})]})}export{N as default}; diff --git a/hifi/assets/Models-CwWP_c2v.js b/hifi/assets/Models-Dd9dRX1L.js similarity index 96% rename from hifi/assets/Models-CwWP_c2v.js rename to hifi/assets/Models-Dd9dRX1L.js index b9e5a6a..1109253 100644 --- a/hifi/assets/Models-CwWP_c2v.js +++ b/hifi/assets/Models-Dd9dRX1L.js @@ -1 +1 @@ -import{r as a,j as e,a as i}from"./index-CeNRYcbS.js";import{I as _}from"./ImageUploadField-DZzU8Hmm.js";import{T as M}from"./TextStyleWidget-DErOyFHL.js";const j={name:"",brand_id:"",image_path:"",sort_order:0};function F(){const[n,k]=a.useState([]),[x,N]=a.useState([]),[r,s]=a.useState(j),[l,m]=a.useState(null),[u,h]=a.useState(""),[d,b]=a.useState("all"),o=a.useMemo(()=>d==="all"?n:n.filter(t=>String(t.brand_id)===d),[n,d]),c=()=>{i.get("/models").then(k),i.get("/brands").then(N)};a.useEffect(c,[]);const f=t=>{m(t.id),s({name:t.name,brand_id:t.brand_id,image_path:t.image_path||"",sort_order:t.sort_order})},p=()=>{m(null),s(j)},v=async t=>{t.preventDefault(),h("");const g={...r,brand_id:Number(r.brand_id)};try{l?await i.put(`/models/${l}`,g):await i.post("/models",g),p(),c()}catch(w){h(w.message)}},y=async t=>{confirm("Modell inkl. aller Pakete/Produkte wirklich löschen?")&&(await i.delete(`/models/${t}`),c())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Modelle"}),e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[e.jsx("label",{className:"text-sm font-medium text-neutral-600 dark:text-neutral-300",children:"Nach Marke filtern:"}),e.jsxs("select",{value:d,onChange:t=>b(t.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"all",children:"Alle Marken"}),x.map(t=>e.jsx("option",{value:String(t.id),children:t.name},t.id))]}),d!=="all"&&e.jsx("button",{onClick:()=>b("all"),className:"text-sm text-brand-600 hover:underline",children:"Filter zurücksetzen"}),e.jsxs("span",{className:"text-sm text-neutral-400",children:[o.length," von ",n.length]})]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Marke"}),e.jsx("th",{className:"px-4 py-2",children:"Modell"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[o.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:t.image_path?e.jsx("img",{src:t.image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"px-4 py-2",children:t.brand_name}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:t.name}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>f(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>y(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),o.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:n.length===0?"Noch keine Modelle angelegt.":"Keine Modelle für diese Marke."})})]})]})})]}),e.jsxs("form",{onSubmit:v,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Modell bearbeiten":"Neues Modell"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Marke *"}),e.jsxs("select",{required:!0,value:r.brand_id,onChange:t=>s({...r,brand_id:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Bitte wählen…"}),x.map(t=>e.jsx("option",{value:t.id,children:t.name},t.id))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Modellname *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>s({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),l&&e.jsx(M,{fieldKey:`car_models.${l}.name`,previewText:r.name||"Beispieltext"})]}),e.jsx(_,{value:r.image_path,onChange:t=>s({...r,image_path:t}),label:"Bild (optional)"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>s({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),u&&e.jsx("p",{className:"text-sm text-red-600",children:u}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:p,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{F as default}; +import{r as a,j as e,a as i}from"./index-DM5dAVp5.js";import{I as _}from"./ImageUploadField-oqjVVSSG.js";import{T as M}from"./TextStyleWidget-CkwixV2h.js";const j={name:"",brand_id:"",image_path:"",sort_order:0};function F(){const[n,k]=a.useState([]),[x,N]=a.useState([]),[r,s]=a.useState(j),[l,m]=a.useState(null),[u,h]=a.useState(""),[d,b]=a.useState("all"),o=a.useMemo(()=>d==="all"?n:n.filter(t=>String(t.brand_id)===d),[n,d]),c=()=>{i.get("/models").then(k),i.get("/brands").then(N)};a.useEffect(c,[]);const f=t=>{m(t.id),s({name:t.name,brand_id:t.brand_id,image_path:t.image_path||"",sort_order:t.sort_order})},p=()=>{m(null),s(j)},v=async t=>{t.preventDefault(),h("");const g={...r,brand_id:Number(r.brand_id)};try{l?await i.put(`/models/${l}`,g):await i.post("/models",g),p(),c()}catch(w){h(w.message)}},y=async t=>{confirm("Modell inkl. aller Pakete/Produkte wirklich löschen?")&&(await i.delete(`/models/${t}`),c())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Modelle"}),e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[e.jsx("label",{className:"text-sm font-medium text-neutral-600 dark:text-neutral-300",children:"Nach Marke filtern:"}),e.jsxs("select",{value:d,onChange:t=>b(t.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"all",children:"Alle Marken"}),x.map(t=>e.jsx("option",{value:String(t.id),children:t.name},t.id))]}),d!=="all"&&e.jsx("button",{onClick:()=>b("all"),className:"text-sm text-brand-600 hover:underline",children:"Filter zurücksetzen"}),e.jsxs("span",{className:"text-sm text-neutral-400",children:[o.length," von ",n.length]})]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Marke"}),e.jsx("th",{className:"px-4 py-2",children:"Modell"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[o.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:t.image_path?e.jsx("img",{src:t.image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"px-4 py-2",children:t.brand_name}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:t.name}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>f(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>y(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),o.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:n.length===0?"Noch keine Modelle angelegt.":"Keine Modelle für diese Marke."})})]})]})})]}),e.jsxs("form",{onSubmit:v,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Modell bearbeiten":"Neues Modell"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Marke *"}),e.jsxs("select",{required:!0,value:r.brand_id,onChange:t=>s({...r,brand_id:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Bitte wählen…"}),x.map(t=>e.jsx("option",{value:t.id,children:t.name},t.id))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Modellname *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>s({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),l&&e.jsx(M,{fieldKey:`car_models.${l}.name`,previewText:r.name||"Beispieltext"})]}),e.jsx(_,{value:r.image_path,onChange:t=>s({...r,image_path:t}),label:"Bild (optional)"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>s({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),u&&e.jsx("p",{className:"text-sm text-red-600",children:u}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:p,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{F as default}; diff --git a/hifi/assets/Packages-By73LRCs.js b/hifi/assets/Packages-DAaVovhO.js similarity index 99% rename from hifi/assets/Packages-By73LRCs.js rename to hifi/assets/Packages-DAaVovhO.js index 93c2ccb..0048077 100644 --- a/hifi/assets/Packages-By73LRCs.js +++ b/hifi/assets/Packages-DAaVovhO.js @@ -1,4 +1,4 @@ -import{r as c,R as J,f as Ze,j as a,a as U,g as Gn,C as mn,h as qn,i as Jn}from"./index-CeNRYcbS.js";import{T as Jt}from"./TextStyleWidget-DErOyFHL.js";import{P as bn,R as Zn,T as xn,G as Qn}from"./trash-2-CR1es5DZ.js";import{E as er,a as tr}from"./eye-B3iFgvk-.js";const nr=["Base","Clear","Drive","Prime","Elite","Apex","The Statement","Limitless"],rr=e=>(e+1)*10;function sr(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(s=>s(r))},t)}const St=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Fe(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ut(e){return"nodeType"in e}function Z(e){var t,n;return e?Fe(e)?e:Ut(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Kt(e){const{Document:t}=Z(e);return e instanceof t}function ot(e){return Fe(e)?!1:e instanceof Z(e).HTMLElement}function vn(e){return e instanceof Z(e).SVGElement}function Ue(e){return e?Fe(e)?e.document:Ut(e)?Kt(e)?e:ot(e)||vn(e)?e.ownerDocument:document:document:document}const ve=St?c.useLayoutEffect:c.useEffect;function Wt(e){const t=c.useRef(e);return ve(()=>{t.current=e}),c.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s{e.current=setInterval(r,s)},[]),n=c.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function rt(e,t){t===void 0&&(t=[e]);const n=c.useRef(e);return ve(()=>{n.current!==e&&(n.current=e)},t),n}function lt(e,t){const n=c.useRef();return c.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function vt(e){const t=Wt(e),n=c.useRef(null),r=c.useCallback(s=>{s!==n.current&&(t==null||t(s,n.current)),n.current=s},[]);return[n,r]}function Tt(e){const t=c.useRef();return c.useEffect(()=>{t.current=e},[e]),t.current}let Mt={};function ct(e,t){return c.useMemo(()=>{if(t)return t;const n=Mt[e]==null?0:Mt[e]+1;return Mt[e]=n,e+"-"+n},[e,t])}function yn(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s{const d=Object.entries(l);for(const[f,h]of d){const g=i[f];g!=null&&(i[f]=g+e*h)}return i},{...t})}}const Be=yn(1),st=yn(-1);function ir(e){return"clientX"in e&&"clientY"in e}function Xt(e){if(!e)return!1;const{KeyboardEvent:t}=Z(e.target);return t&&e instanceof t}function or(e){if(!e)return!1;const{TouchEvent:t}=Z(e.target);return t&&e instanceof t}function Ot(e){if(or(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ir(e)?{x:e.clientX,y:e.clientY}:null}const at=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[at.Translate.toString(e),at.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Zt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function lr(e){return e.matches(Zt)?e:e.querySelector(Zt)}const cr={display:"none"};function dr(e){let{id:t,value:n}=e;return J.createElement("div",{id:t,style:cr},n)}function ur(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return J.createElement("div",{id:t,style:s,role:"status","aria-live":r,"aria-atomic":!0},n)}function fr(){const[e,t]=c.useState("");return{announce:c.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const wn=c.createContext(null);function hr(e){const t=c.useContext(wn);c.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function gr(){const[e]=c.useState(()=>new Set),t=c.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[c.useCallback(r=>{let{type:s,event:i}=r;e.forEach(l=>{var d;return(d=l[s])==null?void 0:d.call(l,i)})},[e]),t]}const pr={draggable:` +import{r as c,R as J,f as Ze,j as a,a as U,g as Gn,C as mn,h as qn,i as Jn}from"./index-DM5dAVp5.js";import{T as Jt}from"./TextStyleWidget-CkwixV2h.js";import{P as bn,R as Zn,T as xn,G as Qn}from"./trash-2-CQGOvKRj.js";import{E as er,a as tr}from"./eye-CZFeBsZS.js";const nr=["Base","Clear","Drive","Prime","Elite","Apex","The Statement","Limitless"],rr=e=>(e+1)*10;function sr(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(s=>s(r))},t)}const St=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Fe(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ut(e){return"nodeType"in e}function Z(e){var t,n;return e?Fe(e)?e:Ut(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Kt(e){const{Document:t}=Z(e);return e instanceof t}function ot(e){return Fe(e)?!1:e instanceof Z(e).HTMLElement}function vn(e){return e instanceof Z(e).SVGElement}function Ue(e){return e?Fe(e)?e.document:Ut(e)?Kt(e)?e:ot(e)||vn(e)?e.ownerDocument:document:document:document}const ve=St?c.useLayoutEffect:c.useEffect;function Wt(e){const t=c.useRef(e);return ve(()=>{t.current=e}),c.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s{e.current=setInterval(r,s)},[]),n=c.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function rt(e,t){t===void 0&&(t=[e]);const n=c.useRef(e);return ve(()=>{n.current!==e&&(n.current=e)},t),n}function lt(e,t){const n=c.useRef();return c.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function vt(e){const t=Wt(e),n=c.useRef(null),r=c.useCallback(s=>{s!==n.current&&(t==null||t(s,n.current)),n.current=s},[]);return[n,r]}function Tt(e){const t=c.useRef();return c.useEffect(()=>{t.current=e},[e]),t.current}let Mt={};function ct(e,t){return c.useMemo(()=>{if(t)return t;const n=Mt[e]==null?0:Mt[e]+1;return Mt[e]=n,e+"-"+n},[e,t])}function yn(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s{const d=Object.entries(l);for(const[f,h]of d){const g=i[f];g!=null&&(i[f]=g+e*h)}return i},{...t})}}const Be=yn(1),st=yn(-1);function ir(e){return"clientX"in e&&"clientY"in e}function Xt(e){if(!e)return!1;const{KeyboardEvent:t}=Z(e.target);return t&&e instanceof t}function or(e){if(!e)return!1;const{TouchEvent:t}=Z(e.target);return t&&e instanceof t}function Ot(e){if(or(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ir(e)?{x:e.clientX,y:e.clientY}:null}const at=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[at.Translate.toString(e),at.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Zt="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function lr(e){return e.matches(Zt)?e:e.querySelector(Zt)}const cr={display:"none"};function dr(e){let{id:t,value:n}=e;return J.createElement("div",{id:t,style:cr},n)}function ur(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return J.createElement("div",{id:t,style:s,role:"status","aria-live":r,"aria-atomic":!0},n)}function fr(){const[e,t]=c.useState("");return{announce:c.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const wn=c.createContext(null);function hr(e){const t=c.useContext(wn);c.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function gr(){const[e]=c.useState(()=>new Set),t=c.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[c.useCallback(r=>{let{type:s,event:i}=r;e.forEach(l=>{var d;return(d=l[s])==null?void 0:d.call(l,i)})},[e]),t]}const pr={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. diff --git a/hifi/assets/Partners-D1IaNCA2.js b/hifi/assets/Partners-DL_4PdP7.js similarity index 96% rename from hifi/assets/Partners-D1IaNCA2.js rename to hifi/assets/Partners-DL_4PdP7.js index b6a00ec..b4f63d3 100644 --- a/hifi/assets/Partners-D1IaNCA2.js +++ b/hifi/assets/Partners-DL_4PdP7.js @@ -1 +1 @@ -import{r as l,j as e,a as n}from"./index-CeNRYcbS.js";import{I as N}from"./ImageUploadField-DZzU8Hmm.js";const u={name:"",logo_path:"",sort_order:0};function y(){const[o,h]=l.useState([]),[r,a]=l.useState(u),[s,i]=l.useState(null),[c,x]=l.useState(""),d=()=>n.get("/partners").then(h);l.useEffect(()=>{d()},[]);const b=t=>{i(t.id),a({name:t.name,logo_path:t.logo_path||"",sort_order:t.sort_order})},m=()=>{i(null),a(u)},p=async t=>{t.preventDefault(),x("");try{s?await n.put(`/partners/${s}`,r):await n.post("/partners",r),m(),d()}catch(j){x(j.message)}},g=async t=>{confirm("Partner wirklich löschen?")&&(await n.delete(`/partners/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Partner"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Marken-Logozeile auf der Startseite. Ohne Logo wird der Name als Text angezeigt."}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Logo"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2",children:"Sortierung"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[o.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:t.logo_path?e.jsx("img",{src:t.logo_path,alt:"",className:"h-10 w-10 rounded-md object-contain"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:t.name}),e.jsx("td",{className:"px-4 py-2",children:t.sort_order}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>b(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>g(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),o.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Partner angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:p,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Partner bearbeiten":"Neuer Partner"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>a({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(N,{value:r.logo_path,onChange:t=>a({...r,logo_path:t}),label:"Logo (optional)"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>a({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),c&&e.jsx("p",{className:"text-sm text-red-600",children:c}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:m,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{y as default}; +import{r as l,j as e,a as n}from"./index-DM5dAVp5.js";import{I as N}from"./ImageUploadField-oqjVVSSG.js";const u={name:"",logo_path:"",sort_order:0};function y(){const[o,h]=l.useState([]),[r,a]=l.useState(u),[s,i]=l.useState(null),[c,x]=l.useState(""),d=()=>n.get("/partners").then(h);l.useEffect(()=>{d()},[]);const b=t=>{i(t.id),a({name:t.name,logo_path:t.logo_path||"",sort_order:t.sort_order})},m=()=>{i(null),a(u)},p=async t=>{t.preventDefault(),x("");try{s?await n.put(`/partners/${s}`,r):await n.post("/partners",r),m(),d()}catch(j){x(j.message)}},g=async t=>{confirm("Partner wirklich löschen?")&&(await n.delete(`/partners/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Partner"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Marken-Logozeile auf der Startseite. Ohne Logo wird der Name als Text angezeigt."}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Logo"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2",children:"Sortierung"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[o.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:t.logo_path?e.jsx("img",{src:t.logo_path,alt:"",className:"h-10 w-10 rounded-md object-contain"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:t.name}),e.jsx("td",{className:"px-4 py-2",children:t.sort_order}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>b(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>g(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),o.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Partner angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:p,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Partner bearbeiten":"Neuer Partner"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>a({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(N,{value:r.logo_path,onChange:t=>a({...r,logo_path:t}),label:"Logo (optional)"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>a({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),c&&e.jsx("p",{className:"text-sm text-red-600",children:c}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:m,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{y as default}; diff --git a/hifi/assets/PermissionGroups-DjFgNp_l.js b/hifi/assets/PermissionGroups-_i9KMBTo.js similarity index 98% rename from hifi/assets/PermissionGroups-DjFgNp_l.js rename to hifi/assets/PermissionGroups-_i9KMBTo.js index 926b5cd..cae932f 100644 --- a/hifi/assets/PermissionGroups-DjFgNp_l.js +++ b/hifi/assets/PermissionGroups-_i9KMBTo.js @@ -1 +1 @@ -import{r as n,j as e,a as i}from"./index-CeNRYcbS.js";const h={name:"",description:"",permissions:[]};function w(){const[c,b]=n.useState([]),[o,g]=n.useState([]),[r,a]=n.useState(h),[l,u]=n.useState(null),[m,x]=n.useState(""),d=()=>{i.get("/permission-groups").then(b),i.get("/permissions/catalog").then(g)};n.useEffect(d,[]);const j=t=>{u(t.id),a({name:t.name,description:t.description||"",permissions:t.permissions})},p=()=>{u(null),a(h)},N=t=>{a(s=>({...s,permissions:s.permissions.includes(t)?s.permissions.filter(y=>y!==t):[...s.permissions,t]}))},k=async t=>{t.preventDefault(),x("");try{l?await i.put(`/permission-groups/${l}`,r):await i.post("/permission-groups",r),p(),d()}catch(s){x(s.message)}},f=async t=>{confirm("Diese Berechtigungsgruppe wirklich löschen? Benutzer behalten ihre sonstigen Rechte.")&&(await i.delete(`/permission-groups/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Berechtigungsgruppen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Fasse mehrere Berechtigungen zu einer Gruppe zusammen (z. B. „Werkstatt"), die du dann bequem einem oder mehreren Benutzern zuweisen kannst.'}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2",children:"Berechtigungen"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[c.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsxs("td",{className:"px-4 py-2",children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:t.name}),t.description&&e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]}),e.jsxs("td",{className:"px-4 py-2 text-neutral-500 dark:text-neutral-400",children:[t.permissions.length," von ",o.length]}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>j(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>f(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),c.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:3,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Berechtigungsgruppen angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:k,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Gruppe bearbeiten":"Neue Gruppe"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>a({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung"}),e.jsx("textarea",{rows:2,value:r.description,onChange:t=>a({...r,description:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Berechtigungen"}),e.jsx("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:o.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.permissions.includes(t.key),onChange:()=>N(t.key),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.label]},t.key))})]}),m&&e.jsx("p",{className:"text-sm text-red-600",children:m}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:p,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{w as default}; +import{r as n,j as e,a as i}from"./index-DM5dAVp5.js";const h={name:"",description:"",permissions:[]};function w(){const[c,b]=n.useState([]),[o,g]=n.useState([]),[r,a]=n.useState(h),[l,u]=n.useState(null),[m,x]=n.useState(""),d=()=>{i.get("/permission-groups").then(b),i.get("/permissions/catalog").then(g)};n.useEffect(d,[]);const j=t=>{u(t.id),a({name:t.name,description:t.description||"",permissions:t.permissions})},p=()=>{u(null),a(h)},N=t=>{a(s=>({...s,permissions:s.permissions.includes(t)?s.permissions.filter(y=>y!==t):[...s.permissions,t]}))},k=async t=>{t.preventDefault(),x("");try{l?await i.put(`/permission-groups/${l}`,r):await i.post("/permission-groups",r),p(),d()}catch(s){x(s.message)}},f=async t=>{confirm("Diese Berechtigungsgruppe wirklich löschen? Benutzer behalten ihre sonstigen Rechte.")&&(await i.delete(`/permission-groups/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Berechtigungsgruppen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Fasse mehrere Berechtigungen zu einer Gruppe zusammen (z. B. „Werkstatt"), die du dann bequem einem oder mehreren Benutzern zuweisen kannst.'}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2",children:"Berechtigungen"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[c.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsxs("td",{className:"px-4 py-2",children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:t.name}),t.description&&e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]}),e.jsxs("td",{className:"px-4 py-2 text-neutral-500 dark:text-neutral-400",children:[t.permissions.length," von ",o.length]}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>j(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>f(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),c.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:3,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Berechtigungsgruppen angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:k,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Gruppe bearbeiten":"Neue Gruppe"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>a({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung"}),e.jsx("textarea",{rows:2,value:r.description,onChange:t=>a({...r,description:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Berechtigungen"}),e.jsx("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:o.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.permissions.includes(t.key),onChange:()=>N(t.key),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.label]},t.key))})]}),m&&e.jsx("p",{className:"text-sm text-red-600",children:m}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:p,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{w as default}; diff --git a/hifi/assets/ResetSettings-B4htaA5Y.js b/hifi/assets/ResetSettings-c6DDNkFb.js similarity index 99% rename from hifi/assets/ResetSettings-B4htaA5Y.js rename to hifi/assets/ResetSettings-c6DDNkFb.js index 1401dfe..9221d3c 100644 --- a/hifi/assets/ResetSettings-B4htaA5Y.js +++ b/hifi/assets/ResetSettings-c6DDNkFb.js @@ -1 +1 @@ -import{r,j as e,a}from"./index-CeNRYcbS.js";function B(){const[o,u]=r.useState(!1),[c,s]=r.useState(""),[g,h]=r.useState(!1),[b,n]=r.useState(""),[k,m]=r.useState(!1),[x,l]=r.useState(""),[f,p]=r.useState(!1),[y,d]=r.useState(""),[z,S]=r.useState(!1),[w,i]=r.useState(""),F=async()=>{if(confirm("Alle aktuellen Leistungen werden gelöscht und durch die 8 Standard-Leistungen ersetzt. Fortfahren?")){u(!0),s("");try{const t=await a.post("/settings/reset-services",{});s(`${t.count} Standard-Leistungen wiederhergestellt.`)}catch(t){s("Fehler: "+t.message)}finally{u(!1)}}},j=async()=>{if(confirm("Alle aktuellen FAQ-Einträge werden gelöscht und durch die 6 Standard-Fragen ersetzt. Fortfahren?")){h(!0),n("");try{const t=await a.post("/settings/reset-faqs",{});n(`${t.count} Standard-Fragen wiederhergestellt.`)}catch(t){n("Fehler: "+t.message)}finally{h(!1)}}},N=async()=>{if(confirm("Die komplette Bildergalerie wird gelöscht und durch die 13 Marken/29 Projekte/207 Fotos der alten hifi-planet.de-Seite ersetzt. Fortfahren?")){m(!0),l("");try{const t=await a.post("/settings/reset-gallery",{});l(`${t.photos} Fotos wiederhergestellt.`)}catch(t){l("Fehler: "+t.message)}finally{m(!1)}}},M=async()=>{if(confirm("Alle Marken, Modelle, Pakete, Produkte und Upgrades werden unwiderruflich gelöscht. Leistungen und Kontaktanfragen bleiben erhalten. Fortfahren?")){p(!0),d("");try{const t=await a.post("/settings/reset-catalog",{});d(`Fahrzeugkatalog geleert (${t.brands_removed} Marken entfernt).`)}catch(t){d("Fehler: "+t.message)}finally{p(!1)}}},L=async()=>{if(confirm("WIRKLICH ALLES zurücksetzen? Marken, Modelle, Pakete, Produkte und Upgrades werden gelöscht, Leistungen, FAQs und die Bildergalerie auf Standard zurückgesetzt. Kontaktanfragen und Benutzerkonten bleiben erhalten. Das kann nicht rückgängig gemacht werden!")){S(!0),i("");try{const t=await a.post("/settings/reset-all",{});i(`Erledigt: ${t.brands_removed} Marken entfernt, ${t.services_reset} Standard-Leistungen, ${t.faqs_reset} Standard-Fragen und ${t.gallery_photos_reset} Galerie-Fotos wiederhergestellt.`)}catch(t){i("Fehler: "+t.message)}finally{S(!1)}}};return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Leistungen zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Leistungen-Karten und stellt die 8 mitgelieferten Standard-Leistungen wieder her. Marken, Modelle und Pakete bleiben unangetastet."}),e.jsx("button",{onClick:F,disabled:o,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:o?"Setze zurück…":"Leistungen auf Standard zurücksetzen"}),c&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:c})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur FAQs zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Fragen und stellt die 6 mitgelieferten Standard-Fragen (Deutsch & Englisch) wieder her. Leistungen, Marken, Modelle und Pakete bleiben unangetastet."}),e.jsx("button",{onClick:j,disabled:g,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:g?"Setze zurück…":"FAQs auf Standard zurücksetzen"}),b&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:b})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Bildergalerie zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Galerie-Marken, -Projekte und -Fotos und stellt die komplette Galerie der alten hifi-planet.de-Seite wieder her (13 Marken, 29 Projekte, 207 Fotos). Fahrzeugkatalog, Leistungen und FAQs bleiben unangetastet."}),e.jsx("button",{onClick:N,disabled:k,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:k?"Setze zurück…":"Galerie auf Standard zurücksetzen"}),x&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:x})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Fahrzeugkatalog leeren"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle Marken, Modelle, Pakete, Produkte und Upgrades unwiderruflich. Leistungen, Kontaktanfragen und Benutzerkonten bleiben erhalten."}),e.jsx("button",{onClick:M,disabled:f,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:f?"Leere…":"Fahrzeugkatalog leeren"}),y&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:y})]}),e.jsxs("section",{className:"rounded-xl border border-red-300 bg-red-50/40 p-6 dark:border-red-900 dark:bg-red-900/10",children:[e.jsx("h2",{className:"mb-1 font-semibold text-red-700 dark:text-red-300",children:"Alles zurücksetzen"}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:["Kombiniert alles: Fahrzeugkatalog wird komplett geleert ",e.jsx("strong",{children:"und"})," Leistungen, FAQs sowie die Bildergalerie werden auf Standard zurückgesetzt. Kontaktanfragen und Benutzerkonten bleiben erhalten. Nicht rückgängig zu machen."]}),e.jsx("button",{onClick:L,disabled:z,className:"rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white hover:bg-red-700 disabled:opacity-50",children:z?"Setze zurück…":"Wirklich alles zurücksetzen"}),w&&e.jsx("p",{className:"mt-3 text-sm text-neutral-700 dark:text-neutral-300",children:w})]})]})}export{B as default}; +import{r,j as e,a}from"./index-DM5dAVp5.js";function B(){const[o,u]=r.useState(!1),[c,s]=r.useState(""),[g,h]=r.useState(!1),[b,n]=r.useState(""),[k,m]=r.useState(!1),[x,l]=r.useState(""),[f,p]=r.useState(!1),[y,d]=r.useState(""),[z,S]=r.useState(!1),[w,i]=r.useState(""),F=async()=>{if(confirm("Alle aktuellen Leistungen werden gelöscht und durch die 8 Standard-Leistungen ersetzt. Fortfahren?")){u(!0),s("");try{const t=await a.post("/settings/reset-services",{});s(`${t.count} Standard-Leistungen wiederhergestellt.`)}catch(t){s("Fehler: "+t.message)}finally{u(!1)}}},j=async()=>{if(confirm("Alle aktuellen FAQ-Einträge werden gelöscht und durch die 6 Standard-Fragen ersetzt. Fortfahren?")){h(!0),n("");try{const t=await a.post("/settings/reset-faqs",{});n(`${t.count} Standard-Fragen wiederhergestellt.`)}catch(t){n("Fehler: "+t.message)}finally{h(!1)}}},N=async()=>{if(confirm("Die komplette Bildergalerie wird gelöscht und durch die 13 Marken/29 Projekte/207 Fotos der alten hifi-planet.de-Seite ersetzt. Fortfahren?")){m(!0),l("");try{const t=await a.post("/settings/reset-gallery",{});l(`${t.photos} Fotos wiederhergestellt.`)}catch(t){l("Fehler: "+t.message)}finally{m(!1)}}},M=async()=>{if(confirm("Alle Marken, Modelle, Pakete, Produkte und Upgrades werden unwiderruflich gelöscht. Leistungen und Kontaktanfragen bleiben erhalten. Fortfahren?")){p(!0),d("");try{const t=await a.post("/settings/reset-catalog",{});d(`Fahrzeugkatalog geleert (${t.brands_removed} Marken entfernt).`)}catch(t){d("Fehler: "+t.message)}finally{p(!1)}}},L=async()=>{if(confirm("WIRKLICH ALLES zurücksetzen? Marken, Modelle, Pakete, Produkte und Upgrades werden gelöscht, Leistungen, FAQs und die Bildergalerie auf Standard zurückgesetzt. Kontaktanfragen und Benutzerkonten bleiben erhalten. Das kann nicht rückgängig gemacht werden!")){S(!0),i("");try{const t=await a.post("/settings/reset-all",{});i(`Erledigt: ${t.brands_removed} Marken entfernt, ${t.services_reset} Standard-Leistungen, ${t.faqs_reset} Standard-Fragen und ${t.gallery_photos_reset} Galerie-Fotos wiederhergestellt.`)}catch(t){i("Fehler: "+t.message)}finally{S(!1)}}};return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Leistungen zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Leistungen-Karten und stellt die 8 mitgelieferten Standard-Leistungen wieder her. Marken, Modelle und Pakete bleiben unangetastet."}),e.jsx("button",{onClick:F,disabled:o,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:o?"Setze zurück…":"Leistungen auf Standard zurücksetzen"}),c&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:c})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur FAQs zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Fragen und stellt die 6 mitgelieferten Standard-Fragen (Deutsch & Englisch) wieder her. Leistungen, Marken, Modelle und Pakete bleiben unangetastet."}),e.jsx("button",{onClick:j,disabled:g,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:g?"Setze zurück…":"FAQs auf Standard zurücksetzen"}),b&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:b})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Bildergalerie zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Galerie-Marken, -Projekte und -Fotos und stellt die komplette Galerie der alten hifi-planet.de-Seite wieder her (13 Marken, 29 Projekte, 207 Fotos). Fahrzeugkatalog, Leistungen und FAQs bleiben unangetastet."}),e.jsx("button",{onClick:N,disabled:k,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:k?"Setze zurück…":"Galerie auf Standard zurücksetzen"}),x&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:x})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Fahrzeugkatalog leeren"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle Marken, Modelle, Pakete, Produkte und Upgrades unwiderruflich. Leistungen, Kontaktanfragen und Benutzerkonten bleiben erhalten."}),e.jsx("button",{onClick:M,disabled:f,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:f?"Leere…":"Fahrzeugkatalog leeren"}),y&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:y})]}),e.jsxs("section",{className:"rounded-xl border border-red-300 bg-red-50/40 p-6 dark:border-red-900 dark:bg-red-900/10",children:[e.jsx("h2",{className:"mb-1 font-semibold text-red-700 dark:text-red-300",children:"Alles zurücksetzen"}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:["Kombiniert alles: Fahrzeugkatalog wird komplett geleert ",e.jsx("strong",{children:"und"})," Leistungen, FAQs sowie die Bildergalerie werden auf Standard zurückgesetzt. Kontaktanfragen und Benutzerkonten bleiben erhalten. Nicht rückgängig zu machen."]}),e.jsx("button",{onClick:L,disabled:z,className:"rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white hover:bg-red-700 disabled:opacity-50",children:z?"Setze zurück…":"Wirklich alles zurücksetzen"}),w&&e.jsx("p",{className:"mt-3 text-sm text-neutral-700 dark:text-neutral-300",children:w})]})]})}export{B as default}; diff --git a/hifi/assets/RichTextEditor-BR1AFZHM.js b/hifi/assets/RichTextEditor-DTscIhNf.js similarity index 99% rename from hifi/assets/RichTextEditor-BR1AFZHM.js rename to hifi/assets/RichTextEditor-DTscIhNf.js index c4261ac..e00802b 100644 --- a/hifi/assets/RichTextEditor-BR1AFZHM.js +++ b/hifi/assets/RichTextEditor-DTscIhNf.js @@ -1,4 +1,4 @@ -import{r as q,R as xt,j as R,v as Gu,n as Yu}from"./index-CeNRYcbS.js";var Hl={exports:{}},jl={};/** +import{r as q,R as xt,j as R,v as Gu,n as Yu}from"./index-DM5dAVp5.js";var Hl={exports:{}},jl={};/** * @license React * use-sync-external-store-shim.production.js * diff --git a/hifi/assets/Services-Dnq8KYw0.js b/hifi/assets/Services-D3kYNcAF.js similarity index 96% rename from hifi/assets/Services-Dnq8KYw0.js rename to hifi/assets/Services-D3kYNcAF.js index 5147427..82936c9 100644 --- a/hifi/assets/Services-Dnq8KYw0.js +++ b/hifi/assets/Services-D3kYNcAF.js @@ -1 +1 @@ -import{r as d,j as e,D as w,a as u}from"./index-CeNRYcbS.js";import{I as y}from"./ImageUploadField-DZzU8Hmm.js";import{toComponentName as p,ICON_NAMES as x,findIcon as _}from"./iconRegistry-B8BVNGep.js";import"./eye-B3iFgvk-.js";import"./trash-2-CR1es5DZ.js";function g({name:s,className:i}){const r=_(s);return r?e.jsx(r,{className:i}):null}const I=120,S=200;function C({value:s,onChange:i}){const[r,n]=d.useState(""),l=s?p(s):null,c=d.useMemo(()=>{const a=r.trim().toLowerCase();return a?x.filter(o=>o.includes(a)).slice(0,S):x.slice(0,I)},[r]);return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2 flex items-center gap-3 rounded-md border border-neutral-300 p-2 dark:border-neutral-700",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:s?e.jsx(g,{name:s,className:"h-6 w-6"}):e.jsx("span",{className:"text-xs text-neutral-400",children:"?"})}),e.jsxs("div",{className:"text-sm",children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:s||"Kein Icon gewählt"}),e.jsxs("p",{className:"text-xs text-neutral-400",children:[x.length," Icons verfügbar"]})]})]}),e.jsx("input",{value:r,onChange:a=>n(a.target.value),placeholder:"Icon suchen (z. B. car, shield, zap)…",className:"mb-2 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsxs("div",{className:"grid max-h-64 grid-cols-6 gap-1 overflow-y-auto rounded-md border border-neutral-200 p-2 sm:grid-cols-8 dark:border-neutral-700",children:[c.map(a=>e.jsx("button",{type:"button",title:a,onClick:()=>i(a),className:`flex h-10 w-10 items-center justify-center rounded-md transition ${l===p(a)?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:e.jsx(g,{name:a,className:"h-5 w-5"})},a)),c.length===0&&e.jsx("p",{className:"col-span-full py-4 text-center text-sm text-neutral-400",children:"Keine Icons gefunden."})]}),!r&&e.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:["Tipp: Tippe einen Suchbegriff ein, um alle ",x.length," Icons zu durchsuchen."]})]})}const j={icon_name:"",title:"",description:"",image_path:"",cta_label:"",cta_url:"",sort_order:0};function T(){const[s,i]=d.useState([]),[r,n]=d.useState(j),[l,c]=d.useState(null),[a,o]=d.useState(""),m=()=>u.get("/services").then(i);d.useEffect(m,[]);const f=t=>{c(t.id),n({icon_name:t.icon_name,title:t.title,description:t.description,image_path:t.image_path||"",cta_label:t.cta_label||"",cta_url:t.cta_url||"",sort_order:t.sort_order})},h=()=>{c(null),n(j)},N=async t=>{if(t.preventDefault(),o(""),!r.icon_name){o("Bitte ein Icon auswählen");return}const b={...r,sort_order:Number(r.sort_order)};try{l?await u.put(`/services/${l}`,b):await u.post("/services",b),h(),m()}catch(v){o(v.message)}},k=async t=>{confirm("Diese Leistung wirklich löschen?")&&(await u.delete(`/services/${t}`),m())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Leistungen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Karten erscheinen auf der öffentlichen Leistungen-Seite. Die 8 mitgelieferten Einträge sind die Standard-Einstellung – du kannst sie bearbeiten, löschen und beliebig neue hinzufügen."}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Icon"}),e.jsx("th",{className:"px-4 py-2",children:"Titel"}),e.jsx("th",{className:"px-4 py-2",children:"Sortierung"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[s.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:e.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:e.jsx(w,{name:t.icon_name,className:"h-5 w-5"})})}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:t.title}),e.jsx("td",{className:"px-4 py-2",children:t.sort_order}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>f(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>k(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),s.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Leistungen angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:N,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Leistung bearbeiten":"Neue Leistung"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Icon *"}),e.jsx(C,{value:r.icon_name,onChange:t=>n({...r,icon_name:t})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.title,onChange:t=>n({...r,title:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung *"}),e.jsx("textarea",{required:!0,rows:4,value:r.description,onChange:t=>n({...r,description:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(y,{value:r.image_path,onChange:t=>n({...r,image_path:t}),aspect:4/3,label:"Bild"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Text (optional)"}),e.jsx("input",{value:r.cta_label,onChange:t=>n({...r,cta_label:t.target.value}),placeholder:"z. B. Fahrzeug konfigurieren",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Link (optional)"}),e.jsx("input",{value:r.cta_url,onChange:t=>n({...r,cta_url:t.target.value}),placeholder:"z. B. /fahrzeuge",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>n({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),a&&e.jsx("p",{className:"text-sm text-red-600",children:a}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:h,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{T as default}; +import{r as d,j as e,D as w,a as u}from"./index-DM5dAVp5.js";import{I as y}from"./ImageUploadField-oqjVVSSG.js";import{toComponentName as p,ICON_NAMES as x,findIcon as _}from"./iconRegistry-BJRytynd.js";import"./eye-CZFeBsZS.js";import"./trash-2-CQGOvKRj.js";function g({name:s,className:i}){const r=_(s);return r?e.jsx(r,{className:i}):null}const I=120,S=200;function C({value:s,onChange:i}){const[r,n]=d.useState(""),l=s?p(s):null,c=d.useMemo(()=>{const a=r.trim().toLowerCase();return a?x.filter(o=>o.includes(a)).slice(0,S):x.slice(0,I)},[r]);return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2 flex items-center gap-3 rounded-md border border-neutral-300 p-2 dark:border-neutral-700",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:s?e.jsx(g,{name:s,className:"h-6 w-6"}):e.jsx("span",{className:"text-xs text-neutral-400",children:"?"})}),e.jsxs("div",{className:"text-sm",children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:s||"Kein Icon gewählt"}),e.jsxs("p",{className:"text-xs text-neutral-400",children:[x.length," Icons verfügbar"]})]})]}),e.jsx("input",{value:r,onChange:a=>n(a.target.value),placeholder:"Icon suchen (z. B. car, shield, zap)…",className:"mb-2 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsxs("div",{className:"grid max-h-64 grid-cols-6 gap-1 overflow-y-auto rounded-md border border-neutral-200 p-2 sm:grid-cols-8 dark:border-neutral-700",children:[c.map(a=>e.jsx("button",{type:"button",title:a,onClick:()=>i(a),className:`flex h-10 w-10 items-center justify-center rounded-md transition ${l===p(a)?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:e.jsx(g,{name:a,className:"h-5 w-5"})},a)),c.length===0&&e.jsx("p",{className:"col-span-full py-4 text-center text-sm text-neutral-400",children:"Keine Icons gefunden."})]}),!r&&e.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:["Tipp: Tippe einen Suchbegriff ein, um alle ",x.length," Icons zu durchsuchen."]})]})}const j={icon_name:"",title:"",description:"",image_path:"",cta_label:"",cta_url:"",sort_order:0};function T(){const[s,i]=d.useState([]),[r,n]=d.useState(j),[l,c]=d.useState(null),[a,o]=d.useState(""),m=()=>u.get("/services").then(i);d.useEffect(m,[]);const f=t=>{c(t.id),n({icon_name:t.icon_name,title:t.title,description:t.description,image_path:t.image_path||"",cta_label:t.cta_label||"",cta_url:t.cta_url||"",sort_order:t.sort_order})},h=()=>{c(null),n(j)},N=async t=>{if(t.preventDefault(),o(""),!r.icon_name){o("Bitte ein Icon auswählen");return}const b={...r,sort_order:Number(r.sort_order)};try{l?await u.put(`/services/${l}`,b):await u.post("/services",b),h(),m()}catch(v){o(v.message)}},k=async t=>{confirm("Diese Leistung wirklich löschen?")&&(await u.delete(`/services/${t}`),m())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Leistungen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Karten erscheinen auf der öffentlichen Leistungen-Seite. Die 8 mitgelieferten Einträge sind die Standard-Einstellung – du kannst sie bearbeiten, löschen und beliebig neue hinzufügen."}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Icon"}),e.jsx("th",{className:"px-4 py-2",children:"Titel"}),e.jsx("th",{className:"px-4 py-2",children:"Sortierung"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[s.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsx("td",{className:"px-4 py-2",children:e.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:e.jsx(w,{name:t.icon_name,className:"h-5 w-5"})})}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:t.title}),e.jsx("td",{className:"px-4 py-2",children:t.sort_order}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>f(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>k(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),s.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Leistungen angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:N,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Leistung bearbeiten":"Neue Leistung"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Icon *"}),e.jsx(C,{value:r.icon_name,onChange:t=>n({...r,icon_name:t})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.title,onChange:t=>n({...r,title:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung *"}),e.jsx("textarea",{required:!0,rows:4,value:r.description,onChange:t=>n({...r,description:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(y,{value:r.image_path,onChange:t=>n({...r,image_path:t}),aspect:4/3,label:"Bild"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Text (optional)"}),e.jsx("input",{value:r.cta_label,onChange:t=>n({...r,cta_label:t.target.value}),placeholder:"z. B. Fahrzeug konfigurieren",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Link (optional)"}),e.jsx("input",{value:r.cta_url,onChange:t=>n({...r,cta_url:t.target.value}),placeholder:"z. B. /fahrzeuge",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.sort_order,onChange:t=>n({...r,sort_order:Number(t.target.value)}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),a&&e.jsx("p",{className:"text-sm text-red-600",children:a}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:h,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{T as default}; diff --git a/hifi/assets/SettingsLayout-NML5nqk_.js b/hifi/assets/SettingsLayout-DQStnLDk.js similarity index 95% rename from hifi/assets/SettingsLayout-NML5nqk_.js rename to hifi/assets/SettingsLayout-DQStnLDk.js index eb59534..c66b949 100644 --- a/hifi/assets/SettingsLayout-NML5nqk_.js +++ b/hifi/assets/SettingsLayout-DQStnLDk.js @@ -1 +1 @@ -import{b as l,j as t,p as i,r,O as m}from"./index-CeNRYcbS.js";const o=[{to:"/admin/settings/website",label:"Website"},{to:"/admin/settings/legal",label:"Rechtstexte"},{to:"/admin/settings/email",label:"E-Mail"},{to:"/admin/settings/database",label:"Datenbank"},{to:"/admin/settings/export-import",label:"Export & Import"},{to:"/admin/settings/maintenance",label:"Wartungsmodus"},{to:"/admin/settings/update",label:"Updates",permission:"system.update"},{to:"/admin/settings/reset",label:"Zurücksetzen"}];function u(){const{hasPermission:s}=l(),a=o.filter(e=>!e.permission||s(e.permission)),n=({isActive:e})=>`rounded-md px-4 py-2 text-sm font-medium transition ${e?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`;return t.jsxs("div",{children:[t.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Einstellungen"}),t.jsx("p",{className:"mb-5 text-sm text-neutral-500 dark:text-neutral-400",children:"Werkzeuge rund um Datenbank, Server-Umzug und Zurücksetzen dieser Seite."}),t.jsx("nav",{className:"mb-6 flex flex-wrap gap-2",children:a.map(e=>t.jsx(i,{to:e.to,className:n,children:e.label},e.to))}),t.jsx(r.Suspense,{fallback:t.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:t.jsx(m,{})})]})}export{u as default}; +import{b as l,j as t,p as i,r,O as m}from"./index-DM5dAVp5.js";const o=[{to:"/admin/settings/website",label:"Website"},{to:"/admin/settings/legal",label:"Rechtstexte"},{to:"/admin/settings/email",label:"E-Mail"},{to:"/admin/settings/database",label:"Datenbank"},{to:"/admin/settings/export-import",label:"Export & Import"},{to:"/admin/settings/maintenance",label:"Wartungsmodus"},{to:"/admin/settings/update",label:"Updates",permission:"system.update"},{to:"/admin/settings/reset",label:"Zurücksetzen"}];function u(){const{hasPermission:s}=l(),a=o.filter(e=>!e.permission||s(e.permission)),n=({isActive:e})=>`rounded-md px-4 py-2 text-sm font-medium transition ${e?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`;return t.jsxs("div",{children:[t.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Einstellungen"}),t.jsx("p",{className:"mb-5 text-sm text-neutral-500 dark:text-neutral-400",children:"Werkzeuge rund um Datenbank, Server-Umzug und Zurücksetzen dieser Seite."}),t.jsx("nav",{className:"mb-6 flex flex-wrap gap-2",children:a.map(e=>t.jsx(i,{to:e.to,className:n,children:e.label},e.to))}),t.jsx(r.Suspense,{fallback:t.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:t.jsx(m,{})})]})}export{u as default}; diff --git a/hifi/assets/SetupWizard-Dp_SZURq.js b/hifi/assets/SetupWizard-DcHkEIZ7.js similarity index 98% rename from hifi/assets/SetupWizard-Dp_SZURq.js rename to hifi/assets/SetupWizard-DcHkEIZ7.js index c40b64c..249286d 100644 --- a/hifi/assets/SetupWizard-Dp_SZURq.js +++ b/hifi/assets/SetupWizard-DcHkEIZ7.js @@ -1 +1 @@ -import{u as E,r as x,a as b,j as e,l as P,L as k}from"./index-CeNRYcbS.js";const F={host:"",name:"",user:"",password:"",charset:"utf8mb4"},L={username:"",password:"",password_confirmation:""};function z(){E({title:"Ersteinrichtung",path:"/setup"});const[n,c]=x.useState("loading"),[m,r]=x.useState(""),[u,o]=x.useState(!1),[f,v]=x.useState(""),[a,h]=x.useState(F),[l,p]=x.useState(L),[w,y]=x.useState(null),N=()=>b.get("/setup/status").then(t=>(t.needs_setup?t.steps.admin.ok?c("done"):t.steps.schema.ok?c("admin"):c(t.steps.database.ok?"schema":"database"):c("locked"),t));x.useEffect(()=>{b.get("/setup/status").then(t=>c(t.needs_setup?"password":"locked")).catch(()=>c("locked"))},[]);const D=async t=>{t.preventDefault(),r(""),o(!0);try{await b.post("/setup/verify-password",{password:f}),await N()}catch(s){r(s.message)}finally{o(!1)}},S=async t=>{t.preventDefault(),r(""),o(!0);try{await b.post("/setup/database",a),await N()}catch(s){r(s.message)}finally{o(!1)}},A=async()=>{r(""),o(!0);try{const t=await b.post("/setup/migrate",{});y(t.actions),t.status.steps.schema.ok&&c("admin")}catch(t){r(t.message)}finally{o(!1)}},C=async t=>{if(t.preventDefault(),r(""),l.password!==l.password_confirmation){r("Die Passwörter stimmen nicht überein");return}o(!0);try{await b.post("/setup/admin",l),c("done")}catch(s){r(s.message)}finally{o(!1)}},d="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900",i="mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",g=[{key:"database",label:"Datenbank"},{key:"schema",label:"Struktur"},{key:"admin",label:"Admin-Account"}],j=g.findIndex(t=>t.key===n);return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-neutral-50 px-4 py-12 dark:bg-neutral-950",children:[e.jsx("img",{src:P,alt:"HifiPlanet",className:"h-16 w-auto sm:h-20"}),e.jsxs("div",{className:"w-full max-w-md rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[n==="loading"&&e.jsx("p",{className:"text-center text-sm text-neutral-400",children:"Lädt…"}),n==="locked"&&e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Bereits eingerichtet"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Seite wurde bereits vollständig eingerichtet. Der Assistent ist deshalb gesperrt."}),e.jsx(k,{to:"/admin/login",className:"text-sm font-medium text-brand-600 hover:underline dark:text-brand-400",children:"Zum Login"})]}),["database","schema","admin"].includes(n)&&e.jsx("div",{className:"mb-6 flex items-center justify-center gap-2",children:g.map((t,s)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`flex h-6 w-6 items-center justify-center rounded-full text-xs font-semibold ${sv(t.target.value),required:!0,autoFocus:!0,className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Prüfe…":"Weiter"})]}),n==="database"&&e.jsxs("form",{onSubmit:S,children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Datenbank-Zugangsdaten"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Trage die Zugangsdaten der Datenbank auf diesem Server ein. Die Verbindung wird vor dem Speichern getestet."}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Host *"}),e.jsx("input",{required:!0,value:a.host,onChange:t=>h({...a,host:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Datenbankname *"}),e.jsx("input",{required:!0,value:a.name,onChange:t=>h({...a,name:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Benutzer *"}),e.jsx("input",{required:!0,value:a.user,onChange:t=>h({...a,user:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Passwort"}),e.jsx("input",{type:"password",value:a.password,onChange:t=>h({...a,password:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:i,children:"Zeichensatz"}),e.jsx("input",{value:a.charset,onChange:t=>h({...a,charset:t.target.value}),className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Teste Verbindung…":"Verbindung testen & speichern"})]}),n==="schema"&&e.jsxs("div",{children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Datenbankstruktur"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Datenbankverbindung funktioniert. Jetzt legen wir die benötigten Tabellen an."}),w&&e.jsx("ul",{className:"mb-4 space-y-1 rounded-md bg-neutral-50 p-3 text-sm text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300",children:w.map((t,s)=>e.jsx("li",{children:t},s))}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"button",onClick:A,disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Richte ein…":"Datenbankstruktur einrichten"})]}),n==="admin"&&e.jsxs("form",{onSubmit:C,children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Erster Admin-Account"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Lege den ersten Super-Admin-Account an, mit dem du dich anschließend einloggen kannst."}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Benutzername"}),e.jsx("input",{required:!0,autoFocus:!0,value:l.username,onChange:t=>p({...l,username:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Passwort"}),e.jsx("input",{type:"password",required:!0,minLength:8,value:l.password,onChange:t=>p({...l,password:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:i,children:"Passwort wiederholen"}),e.jsx("input",{type:"password",required:!0,minLength:8,value:l.password_confirmation,onChange:t=>p({...l,password_confirmation:t.target.value}),className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Lege an…":"Admin-Account anlegen"})]}),n==="done"&&e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Fertig!"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Ersteinrichtung ist abgeschlossen. Du kannst dich jetzt mit deinem neuen Admin-Account anmelden."}),e.jsx(k,{to:"/admin/login",className:"inline-block w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Zum Login"})]})]})]})}export{z as default}; +import{u as E,r as x,a as b,j as e,l as P,L as k}from"./index-DM5dAVp5.js";const F={host:"",name:"",user:"",password:"",charset:"utf8mb4"},L={username:"",password:"",password_confirmation:""};function z(){E({title:"Ersteinrichtung",path:"/setup"});const[n,c]=x.useState("loading"),[m,r]=x.useState(""),[u,o]=x.useState(!1),[f,v]=x.useState(""),[a,h]=x.useState(F),[l,p]=x.useState(L),[w,y]=x.useState(null),N=()=>b.get("/setup/status").then(t=>(t.needs_setup?t.steps.admin.ok?c("done"):t.steps.schema.ok?c("admin"):c(t.steps.database.ok?"schema":"database"):c("locked"),t));x.useEffect(()=>{b.get("/setup/status").then(t=>c(t.needs_setup?"password":"locked")).catch(()=>c("locked"))},[]);const D=async t=>{t.preventDefault(),r(""),o(!0);try{await b.post("/setup/verify-password",{password:f}),await N()}catch(s){r(s.message)}finally{o(!1)}},S=async t=>{t.preventDefault(),r(""),o(!0);try{await b.post("/setup/database",a),await N()}catch(s){r(s.message)}finally{o(!1)}},A=async()=>{r(""),o(!0);try{const t=await b.post("/setup/migrate",{});y(t.actions),t.status.steps.schema.ok&&c("admin")}catch(t){r(t.message)}finally{o(!1)}},C=async t=>{if(t.preventDefault(),r(""),l.password!==l.password_confirmation){r("Die Passwörter stimmen nicht überein");return}o(!0);try{await b.post("/setup/admin",l),c("done")}catch(s){r(s.message)}finally{o(!1)}},d="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900",i="mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",g=[{key:"database",label:"Datenbank"},{key:"schema",label:"Struktur"},{key:"admin",label:"Admin-Account"}],j=g.findIndex(t=>t.key===n);return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-neutral-50 px-4 py-12 dark:bg-neutral-950",children:[e.jsx("img",{src:P,alt:"HifiPlanet",className:"h-16 w-auto sm:h-20"}),e.jsxs("div",{className:"w-full max-w-md rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[n==="loading"&&e.jsx("p",{className:"text-center text-sm text-neutral-400",children:"Lädt…"}),n==="locked"&&e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Bereits eingerichtet"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Seite wurde bereits vollständig eingerichtet. Der Assistent ist deshalb gesperrt."}),e.jsx(k,{to:"/admin/login",className:"text-sm font-medium text-brand-600 hover:underline dark:text-brand-400",children:"Zum Login"})]}),["database","schema","admin"].includes(n)&&e.jsx("div",{className:"mb-6 flex items-center justify-center gap-2",children:g.map((t,s)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`flex h-6 w-6 items-center justify-center rounded-full text-xs font-semibold ${sv(t.target.value),required:!0,autoFocus:!0,className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Prüfe…":"Weiter"})]}),n==="database"&&e.jsxs("form",{onSubmit:S,children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Datenbank-Zugangsdaten"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Trage die Zugangsdaten der Datenbank auf diesem Server ein. Die Verbindung wird vor dem Speichern getestet."}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Host *"}),e.jsx("input",{required:!0,value:a.host,onChange:t=>h({...a,host:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Datenbankname *"}),e.jsx("input",{required:!0,value:a.name,onChange:t=>h({...a,name:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Benutzer *"}),e.jsx("input",{required:!0,value:a.user,onChange:t=>h({...a,user:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Passwort"}),e.jsx("input",{type:"password",value:a.password,onChange:t=>h({...a,password:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:i,children:"Zeichensatz"}),e.jsx("input",{value:a.charset,onChange:t=>h({...a,charset:t.target.value}),className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Teste Verbindung…":"Verbindung testen & speichern"})]}),n==="schema"&&e.jsxs("div",{children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Datenbankstruktur"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Datenbankverbindung funktioniert. Jetzt legen wir die benötigten Tabellen an."}),w&&e.jsx("ul",{className:"mb-4 space-y-1 rounded-md bg-neutral-50 p-3 text-sm text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300",children:w.map((t,s)=>e.jsx("li",{children:t},s))}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"button",onClick:A,disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Richte ein…":"Datenbankstruktur einrichten"})]}),n==="admin"&&e.jsxs("form",{onSubmit:C,children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Erster Admin-Account"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Lege den ersten Super-Admin-Account an, mit dem du dich anschließend einloggen kannst."}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Benutzername"}),e.jsx("input",{required:!0,autoFocus:!0,value:l.username,onChange:t=>p({...l,username:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Passwort"}),e.jsx("input",{type:"password",required:!0,minLength:8,value:l.password,onChange:t=>p({...l,password:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:i,children:"Passwort wiederholen"}),e.jsx("input",{type:"password",required:!0,minLength:8,value:l.password_confirmation,onChange:t=>p({...l,password_confirmation:t.target.value}),className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Lege an…":"Admin-Account anlegen"})]}),n==="done"&&e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Fertig!"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Ersteinrichtung ist abgeschlossen. Du kannst dich jetzt mit deinem neuen Admin-Account anmelden."}),e.jsx(k,{to:"/admin/login",className:"inline-block w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Zum Login"})]})]})]})}export{z as default}; diff --git a/hifi/assets/TextStyleWidget-DErOyFHL.js b/hifi/assets/TextStyleWidget-CkwixV2h.js similarity index 97% rename from hifi/assets/TextStyleWidget-DErOyFHL.js rename to hifi/assets/TextStyleWidget-CkwixV2h.js index 9e99eb9..015d7e8 100644 --- a/hifi/assets/TextStyleWidget-DErOyFHL.js +++ b/hifi/assets/TextStyleWidget-CkwixV2h.js @@ -1 +1 @@ -import{n as g,r as l,a as x,j as t}from"./index-CeNRYcbS.js";const y=[{label:"Standard",value:""},{label:"S (14px)",value:"14px"},{label:"M (16px)",value:"16px"},{label:"L (18px)",value:"18px"},{label:"XL (20px)",value:"20px"},{label:"XXL (24px)",value:"24px"},{label:"XXXL (28px)",value:"28px"},{label:"Groß (36px)",value:"36px"},{label:"Riesig (48px)",value:"48px"}],s={font_family:"",font_size:"",color:""};function k({fieldKey:n,previewText:p="Beispieltext",label:c="Stil"}){const b=g(),[a,o]=l.useState(s),[m,u]=l.useState(!0),[d,i]=l.useState("");l.useEffect(()=>{u(!0),x.get(`/text-styles/one?key=${encodeURIComponent(n)}`).then(e=>o({font_family:e.font_family||"",font_size:e.font_size||"",color:e.color||""})).catch(()=>o(s)).finally(()=>u(!1))},[n]);const r=async e=>{o(e),i("");try{await x.put("/text-styles",{field_key:n,...e})}catch(v){i(v.message)}};if(m)return null;const f={fontFamily:a.font_family||void 0,fontSize:a.font_size||void 0,color:a.color||void 0};return t.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 rounded-md border border-neutral-200 bg-neutral-50 p-2 dark:border-neutral-700 dark:bg-neutral-800/50",children:[t.jsx("span",{className:"text-xs font-medium uppercase tracking-wide text-neutral-400",children:c}),t.jsx("select",{value:a.font_family,onChange:e=>r({...a,font_family:e.target.value}),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900",children:b.map(e=>t.jsx("option",{value:e.value,children:e.label},e.label))}),t.jsx("select",{value:a.font_size,onChange:e=>r({...a,font_size:e.target.value}),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900",children:y.map(e=>t.jsx("option",{value:e.value,children:e.label},e.label))}),t.jsx("input",{type:"color",value:a.color||"#000000",onChange:e=>r({...a,color:e.target.value}),className:"h-7 w-9 cursor-pointer rounded border border-neutral-300 bg-white p-0.5 dark:border-neutral-700 dark:bg-neutral-900",title:"Textfarbe"}),t.jsx("button",{type:"button",onClick:()=>r(s),className:"rounded-md border border-neutral-300 px-2 py-1 text-xs text-neutral-500 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-400 dark:hover:bg-neutral-700",children:"Zurücksetzen"}),t.jsx("span",{className:"ml-1 rounded px-2 py-1 text-sm",style:f,children:p}),d&&t.jsx("span",{className:"text-xs text-red-600",children:d})]})}export{k as T}; +import{n as g,r as l,a as x,j as t}from"./index-DM5dAVp5.js";const y=[{label:"Standard",value:""},{label:"S (14px)",value:"14px"},{label:"M (16px)",value:"16px"},{label:"L (18px)",value:"18px"},{label:"XL (20px)",value:"20px"},{label:"XXL (24px)",value:"24px"},{label:"XXXL (28px)",value:"28px"},{label:"Groß (36px)",value:"36px"},{label:"Riesig (48px)",value:"48px"}],s={font_family:"",font_size:"",color:""};function k({fieldKey:n,previewText:p="Beispieltext",label:c="Stil"}){const b=g(),[a,o]=l.useState(s),[m,u]=l.useState(!0),[d,i]=l.useState("");l.useEffect(()=>{u(!0),x.get(`/text-styles/one?key=${encodeURIComponent(n)}`).then(e=>o({font_family:e.font_family||"",font_size:e.font_size||"",color:e.color||""})).catch(()=>o(s)).finally(()=>u(!1))},[n]);const r=async e=>{o(e),i("");try{await x.put("/text-styles",{field_key:n,...e})}catch(v){i(v.message)}};if(m)return null;const f={fontFamily:a.font_family||void 0,fontSize:a.font_size||void 0,color:a.color||void 0};return t.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 rounded-md border border-neutral-200 bg-neutral-50 p-2 dark:border-neutral-700 dark:bg-neutral-800/50",children:[t.jsx("span",{className:"text-xs font-medium uppercase tracking-wide text-neutral-400",children:c}),t.jsx("select",{value:a.font_family,onChange:e=>r({...a,font_family:e.target.value}),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900",children:b.map(e=>t.jsx("option",{value:e.value,children:e.label},e.label))}),t.jsx("select",{value:a.font_size,onChange:e=>r({...a,font_size:e.target.value}),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900",children:y.map(e=>t.jsx("option",{value:e.value,children:e.label},e.label))}),t.jsx("input",{type:"color",value:a.color||"#000000",onChange:e=>r({...a,color:e.target.value}),className:"h-7 w-9 cursor-pointer rounded border border-neutral-300 bg-white p-0.5 dark:border-neutral-700 dark:bg-neutral-900",title:"Textfarbe"}),t.jsx("button",{type:"button",onClick:()=>r(s),className:"rounded-md border border-neutral-300 px-2 py-1 text-xs text-neutral-500 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-400 dark:hover:bg-neutral-700",children:"Zurücksetzen"}),t.jsx("span",{className:"ml-1 rounded px-2 py-1 text-sm",style:f,children:p}),d&&t.jsx("span",{className:"text-xs text-red-600",children:d})]})}export{k as T}; diff --git a/hifi/assets/UpdateSettings-9sbkjR1K.js b/hifi/assets/UpdateSettings-Cz_YKsj0.js similarity index 98% rename from hifi/assets/UpdateSettings-9sbkjR1K.js rename to hifi/assets/UpdateSettings-Cz_YKsj0.js index 4f91660..a96124c 100644 --- a/hifi/assets/UpdateSettings-9sbkjR1K.js +++ b/hifi/assets/UpdateSettings-Cz_YKsj0.js @@ -1 +1 @@ -import{r as l,j as e,a as u}from"./index-CeNRYcbS.js";const D={download:"Herunterladen",extract:"Entpacken",backup:"Sichern",apply:"Installieren"};function w(a){return a?a.slice(0,7):"–"}function L(a){return a?new Date(a).toLocaleString("de-DE"):"–"}function H(){const[a,v]=l.useState(null),[n,_]=l.useState(null),[E,g]=l.useState(!0),[h,j]=l.useState(""),[c,f]=l.useState(!1),[d,i]=l.useState({download:null,extract:null,backup:null,apply:null}),[p,k]=l.useState(""),[x,N]=l.useState(null),m=()=>{g(!0),j(""),Promise.all([u.get("/settings/update-status"),u.get("/settings/update-check")]).then(([t,s])=>{v(t),_(s)}).catch(t=>j(t.message)).finally(()=>g(!1))};l.useEffect(m,[]);const P=async()=>{f(!0),k(""),N(null),i({download:"busy",extract:null,backup:null,apply:null});try{const s=(await u.post("/settings/update-download",{})).run_id;i(r=>({...r,download:"done",extract:"busy"})),await u.post("/settings/update-extract",{run_id:s}),i(r=>({...r,extract:"done",backup:"busy"})),await u.post("/settings/update-backup",{}),i(r=>({...r,backup:"done",apply:"busy"}));const o=await u.post("/settings/update-apply",{run_id:s});i(r=>({...r,apply:"done"})),N(o.log||[]),m()}catch(t){i(s=>{const o=Object.keys(s).find(r=>s[r]==="busy");return o?{...s,[o]:"error"}:s}),k(t.message)}finally{f(!1)}};if(E)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const b=(a==null?void 0:a.capabilities)||{},y=b.zip?b.http_client?b.writable?null:"Das Website-Verzeichnis ist für PHP nicht beschreibbar - bitte Dateiberechtigungen prüfen.":"Diese Funktion benötigt ausgehende HTTPS-Verbindungen (curl oder allow_url_fopen), die auf diesem Server aktuell nicht verfügbar sind.":'Diese Funktion benötigt die PHP-Erweiterung "zip", die auf diesem Server aktuell nicht aktiviert ist. Bitte beim Hoster aktivieren lassen.',S=n==null?void 0:n.update_available;return e.jsx("div",{className:"max-w-2xl space-y-6",children:e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Updates aus Git"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Zieht den aktuellen Stand direkt vom Code-Repository und installiert ihn hier - ohne manuellen FTP-Upload. Passiert nur, wenn du unten aktiv auf "Update installieren" klickst, nie automatisch im Hintergrund.'}),h&&e.jsx("p",{className:"mb-3 text-sm text-red-600",children:h}),y?e.jsx("p",{className:"rounded-md bg-amber-50 p-3 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:y}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4 grid grid-cols-2 gap-3 text-sm",children:[e.jsxs("div",{className:"rounded-md bg-neutral-50 p-3 dark:bg-neutral-800/50",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-neutral-400",children:"Installiert"}),e.jsx("p",{className:"font-mono text-neutral-800 dark:text-neutral-100",children:w(a==null?void 0:a.deployed_sha)}),e.jsx("p",{className:"text-xs text-neutral-400",children:L(a==null?void 0:a.deployed_at)})]}),e.jsxs("div",{className:"rounded-md bg-neutral-50 p-3 dark:bg-neutral-800/50",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-neutral-400",children:"Neuester Stand"}),e.jsx("p",{className:"font-mono text-neutral-800 dark:text-neutral-100",children:w(n==null?void 0:n.latest_sha)}),(n==null?void 0:n.latest_message)&&e.jsx("p",{className:"truncate text-xs text-neutral-400",title:n.latest_message,children:n.latest_message})]})]}),S?e.jsx("p",{className:"mb-3 text-sm font-medium text-brand-600 dark:text-brand-400",children:"Update verfügbar."}):e.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:"Bereits auf dem neuesten Stand."}),e.jsxs("div",{className:"mb-3 flex gap-2",children:[e.jsx("button",{type:"button",onClick:m,disabled:c,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Nach Updates suchen"}),e.jsx("button",{type:"button",onClick:P,disabled:c||!S,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:c?"Installiere…":"Update installieren"})]}),(c||p)&&e.jsx("ul",{className:"mb-3 space-y-1 text-sm",children:Object.entries(D).map(([t,s])=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("span",{className:d[t]==="done"?"text-green-600 dark:text-green-400":d[t]==="error"?"text-red-600":d[t]==="busy"?"text-brand-600 dark:text-brand-400":"text-neutral-300 dark:text-neutral-600",children:d[t]==="done"?"✓":d[t]==="error"?"✕":d[t]==="busy"?"…":"○"}),s]},t))}),p&&e.jsx("p",{className:"text-sm text-red-600",children:p}),x&&e.jsxs("div",{className:"mt-3 rounded-md bg-green-50 p-3 text-sm text-green-800 dark:bg-green-900/20 dark:text-green-300",children:[e.jsx("p",{className:"mb-1 font-semibold",children:"Update installiert."}),x.length>0&&e.jsxs("details",{children:[e.jsx("summary",{className:"cursor-pointer text-xs",children:"Details anzeigen"}),e.jsx("ul",{className:"mt-2 list-disc pl-5 text-xs",children:x.map((t,s)=>e.jsx("li",{children:t},s))})]})]})]})]})})}export{H as default}; +import{r as l,j as e,a as u}from"./index-DM5dAVp5.js";const D={download:"Herunterladen",extract:"Entpacken",backup:"Sichern",apply:"Installieren"};function w(a){return a?a.slice(0,7):"–"}function L(a){return a?new Date(a).toLocaleString("de-DE"):"–"}function H(){const[a,v]=l.useState(null),[n,_]=l.useState(null),[E,g]=l.useState(!0),[h,j]=l.useState(""),[c,f]=l.useState(!1),[d,i]=l.useState({download:null,extract:null,backup:null,apply:null}),[p,k]=l.useState(""),[x,N]=l.useState(null),m=()=>{g(!0),j(""),Promise.all([u.get("/settings/update-status"),u.get("/settings/update-check")]).then(([t,s])=>{v(t),_(s)}).catch(t=>j(t.message)).finally(()=>g(!1))};l.useEffect(m,[]);const P=async()=>{f(!0),k(""),N(null),i({download:"busy",extract:null,backup:null,apply:null});try{const s=(await u.post("/settings/update-download",{})).run_id;i(r=>({...r,download:"done",extract:"busy"})),await u.post("/settings/update-extract",{run_id:s}),i(r=>({...r,extract:"done",backup:"busy"})),await u.post("/settings/update-backup",{}),i(r=>({...r,backup:"done",apply:"busy"}));const o=await u.post("/settings/update-apply",{run_id:s});i(r=>({...r,apply:"done"})),N(o.log||[]),m()}catch(t){i(s=>{const o=Object.keys(s).find(r=>s[r]==="busy");return o?{...s,[o]:"error"}:s}),k(t.message)}finally{f(!1)}};if(E)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const b=(a==null?void 0:a.capabilities)||{},y=b.zip?b.http_client?b.writable?null:"Das Website-Verzeichnis ist für PHP nicht beschreibbar - bitte Dateiberechtigungen prüfen.":"Diese Funktion benötigt ausgehende HTTPS-Verbindungen (curl oder allow_url_fopen), die auf diesem Server aktuell nicht verfügbar sind.":'Diese Funktion benötigt die PHP-Erweiterung "zip", die auf diesem Server aktuell nicht aktiviert ist. Bitte beim Hoster aktivieren lassen.',S=n==null?void 0:n.update_available;return e.jsx("div",{className:"max-w-2xl space-y-6",children:e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Updates aus Git"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Zieht den aktuellen Stand direkt vom Code-Repository und installiert ihn hier - ohne manuellen FTP-Upload. Passiert nur, wenn du unten aktiv auf "Update installieren" klickst, nie automatisch im Hintergrund.'}),h&&e.jsx("p",{className:"mb-3 text-sm text-red-600",children:h}),y?e.jsx("p",{className:"rounded-md bg-amber-50 p-3 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:y}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4 grid grid-cols-2 gap-3 text-sm",children:[e.jsxs("div",{className:"rounded-md bg-neutral-50 p-3 dark:bg-neutral-800/50",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-neutral-400",children:"Installiert"}),e.jsx("p",{className:"font-mono text-neutral-800 dark:text-neutral-100",children:w(a==null?void 0:a.deployed_sha)}),e.jsx("p",{className:"text-xs text-neutral-400",children:L(a==null?void 0:a.deployed_at)})]}),e.jsxs("div",{className:"rounded-md bg-neutral-50 p-3 dark:bg-neutral-800/50",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-neutral-400",children:"Neuester Stand"}),e.jsx("p",{className:"font-mono text-neutral-800 dark:text-neutral-100",children:w(n==null?void 0:n.latest_sha)}),(n==null?void 0:n.latest_message)&&e.jsx("p",{className:"truncate text-xs text-neutral-400",title:n.latest_message,children:n.latest_message})]})]}),S?e.jsx("p",{className:"mb-3 text-sm font-medium text-brand-600 dark:text-brand-400",children:"Update verfügbar."}):e.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:"Bereits auf dem neuesten Stand."}),e.jsxs("div",{className:"mb-3 flex gap-2",children:[e.jsx("button",{type:"button",onClick:m,disabled:c,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Nach Updates suchen"}),e.jsx("button",{type:"button",onClick:P,disabled:c||!S,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:c?"Installiere…":"Update installieren"})]}),(c||p)&&e.jsx("ul",{className:"mb-3 space-y-1 text-sm",children:Object.entries(D).map(([t,s])=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("span",{className:d[t]==="done"?"text-green-600 dark:text-green-400":d[t]==="error"?"text-red-600":d[t]==="busy"?"text-brand-600 dark:text-brand-400":"text-neutral-300 dark:text-neutral-600",children:d[t]==="done"?"✓":d[t]==="error"?"✕":d[t]==="busy"?"…":"○"}),s]},t))}),p&&e.jsx("p",{className:"text-sm text-red-600",children:p}),x&&e.jsxs("div",{className:"mt-3 rounded-md bg-green-50 p-3 text-sm text-green-800 dark:bg-green-900/20 dark:text-green-300",children:[e.jsx("p",{className:"mb-1 font-semibold",children:"Update installiert."}),x.length>0&&e.jsxs("details",{children:[e.jsx("summary",{className:"cursor-pointer text-xs",children:"Details anzeigen"}),e.jsx("ul",{className:"mt-2 list-disc pl-5 text-xs",children:x.map((t,s)=>e.jsx("li",{children:t},s))})]})]})]})]})})}export{H as default}; diff --git a/hifi/assets/WebsiteSettings-BwL06xkK.js b/hifi/assets/WebsiteSettings-Yhbh_5yo.js similarity index 99% rename from hifi/assets/WebsiteSettings-BwL06xkK.js rename to hifi/assets/WebsiteSettings-Yhbh_5yo.js index 257accf..8312052 100644 --- a/hifi/assets/WebsiteSettings-BwL06xkK.js +++ b/hifi/assets/WebsiteSettings-Yhbh_5yo.js @@ -1 +1 @@ -import{n as Ne,q as Se,s as Ce,r as l,a as d,j as e,o as ze}from"./index-CeNRYcbS.js";import{I as v}from"./ImageUploadField-DZzU8Hmm.js";const se=[{key:"mon",label:"Montag"},{key:"tue",label:"Dienstag"},{key:"wed",label:"Mittwoch"},{key:"thu",label:"Donnerstag"},{key:"fri",label:"Freitag"},{key:"sat",label:"Samstag"},{key:"sun",label:"Sonntag"}],ne=Object.fromEntries(se.map(g=>[g.key,{open:"09:00",close:"18:00",closed:!1}])),Be={phone:"",whatsapp:"",contact_email:"",address_street:"",address_zip:"",address_city:"",logo_path:"",logo_dark_path:"",business_hours:ne,hero_image_path:"",ga_measurement_id:"",package_card_theme:"graphite",package_card_layout:"strip",package_wheel_hint_interval:8,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,gallery_card_text_x:0,gallery_card_text_y:100,site_font:"",page_loader_enabled:!0},De=[{value:"graphite",label:"Graphite Green",description:"Graphit über Bronze/Silber/Gold/Platin bis zur Onyx-Krönung."},{value:"deep-blue",label:"Deep Blue Luxury",description:"Kühles Blau, das sich über Grün zu Gold erwärmt."},{value:"warm-bronze",label:"Warm Bronze",description:"Durchgehend warmes Kupfer/Bronze/Amber bis zum Gold."}],Fe=[{value:"grid",label:"Raster",description:"Breite Kacheln, die responsiv in mehrere Zeilen umbrechen."},{value:"strip",label:"Scroll-Band",description:"Schmale, hochkant Kacheln in einer horizontal scrollbaren Reihe."},{value:"coverflow",label:"3D-Coverflow",description:"Kacheln drehen sich beim Wischen räumlich – die mittlere steht im Fokus."}];function Pe(){const g=Ne(),j=Se(),w=Ce(),[y,N]=l.useState(""),[de,S]=l.useState(null),[C,z]=l.useState(!1),[B,D]=l.useState(""),ie=async t=>{t.preventDefault(),D(""),z(!0);try{const a=new FormData;a.append("name",y),a.append("file",de),await d.post("/custom-fonts",a),N(""),S(null),t.target.reset(),w()}catch(a){D(a.message)}finally{z(!1)}},oe=async t=>{confirm("Schriftart wirklich löschen? Felder, die sie noch verwenden, fallen danach auf die Standardschrift zurück.")&&(await d.delete(`/custom-fonts/${t}`),w())},[r,u]=l.useState(Be),[ce,ue]=l.useState(!0),[F,G]=l.useState(!1),[me,o]=l.useState(!1),[A,P]=l.useState(""),[m,he]=l.useState(null),R=l.useRef(null),[K,M]=l.useState(!1),xe=(t,a)=>{const n=R.current.getBoundingClientRect();return{x:Math.max(0,Math.min(100,Math.round((t-n.left)/n.width*100))),y:Math.max(0,Math.min(100,Math.round((a-n.top)/n.height*100)))}},E=(t,a)=>{const{x:n,y:c}=xe(t,a);u(ye=>({...ye,gallery_card_text_x:n,gallery_card_text_y:c})),o(!1)},be=t=>{t.preventDefault(),t.currentTarget.setPointerCapture(t.pointerId),M(!0),E(t.clientX,t.clientY)},ge=t=>{K&&E(t.clientX,t.clientY)},pe=t=>{M(!1),t.currentTarget.releasePointerCapture(t.pointerId)},[L,H]=l.useState(""),[I,W]=l.useState(""),[O,X]=l.useState(!1),[T,U]=l.useState(!1),[Z,J]=l.useState(""),[ke,h]=l.useState(!1),[p,Y]=l.useState(""),[V,$]=l.useState(""),[k,q]=l.useState(!1),[i,_]=l.useState(null),[Q,ee]=l.useState(!1),[te,x]=l.useState(""),[_e,b]=l.useState(!1),[ae,re]=l.useState(!1);l.useEffect(()=>{d.get("/site-settings").then(t=>u({phone:t.phone||"",whatsapp:t.whatsapp||"",contact_email:t.contact_email||"",address_street:t.address_street||"",address_zip:t.address_zip||"",address_city:t.address_city||"",logo_path:t.logo_path||"",logo_dark_path:t.logo_dark_path||"",business_hours:t.business_hours||ne,hero_image_path:t.hero_image_path||"",ga_measurement_id:t.ga_measurement_id||"",package_card_theme:t.package_card_theme||"graphite",package_card_layout:t.package_card_layout||"strip",package_wheel_hint_interval:t.package_wheel_hint_interval||8,package_card_width:t.package_card_width||210,package_card_height:t.package_card_height||480,vehicle_tile_width:t.vehicle_tile_width||240,vehicle_tile_height:t.vehicle_tile_height||180,gallery_card_text_x:t.gallery_card_text_x??0,gallery_card_text_y:t.gallery_card_text_y??100,site_font:t.site_font||"",page_loader_enabled:t.page_loader_enabled===void 0?!0:!!t.page_loader_enabled})).finally(()=>ue(!1)),d.get("/gallery-brands").then(t=>he(t.find(a=>a.cover_image_path)||null)).catch(()=>{}),d.get("/settings/analytics").then(t=>{H(t.ga_property_id||""),X(t.has_credentials)}),le()},[]);const le=()=>{d.get("/settings/google-reviews").then(t=>{Y(t.place_id||""),q(t.has_api_key),_(t)})},fe=async()=>{ee(!0),x(""),b(!1);try{const t=await d.post("/settings/google-reviews",{place_id:p,api_key:V});q(t.has_api_key),_(t),$(""),b(!0)}catch(t){x(t.message)}finally{ee(!1)}},ve=async()=>{re(!0),x("");try{const t=await d.post("/settings/google-reviews/refresh",{});_(t)}catch(t){x(t.message),le()}finally{re(!1)}},je=async()=>{U(!0),J(""),h(!1);try{const t=await d.post("/settings/analytics",{ga_property_id:L,service_account_json:I});X(t.has_credentials),W(""),h(!0)}catch(t){J(t.message)}finally{U(!1)}},s=(t,a)=>{u(n=>({...n,[t]:a})),o(!1)},f=(t,a,n)=>{u(c=>({...c,business_hours:{...c.business_hours,[t]:{...c.business_hours[t],[a]:n}}})),o(!1)},we=async t=>{t.preventDefault(),G(!0),P(""),o(!1);try{await d.post("/site-settings",r),o(!0)}catch(a){P(a.message)}finally{G(!1)}};return ce?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{onSubmit:we,className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Startseiten-Bild"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Das große Hero-Bild ganz oben auf der Startseite. Ohne eigenes Bild wird das Standardbild verwendet."}),e.jsx(v,{value:r.hero_image_path,onChange:t=>s("hero_image_path",t),label:"Bild",aspect:16/9})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Firmenlogo"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Ohne eigenes Logo wird das Standard-Logo dieser Vorlage angezeigt. Für den Dunkelmodus kann eine eigene Variante hinterlegt werden (z. B. mit heller statt dunkler Wortmarke)."}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsx(v,{value:r.logo_path,onChange:t=>s("logo_path",t),label:"Logo (Hellmodus)"}),e.jsx(v,{value:r.logo_dark_path,onChange:t=>s("logo_dark_path",t),label:"Logo (Dunkelmodus)"})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Schriftart"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Gilt für die gesamte Website. Einzelne Startseiten-Sektionen können unter „Startseite“ davon abweichen."}),e.jsx("select",{value:r.site_font,onChange:t=>s("site_font",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:g.map(t=>e.jsx("option",{value:t.value,children:t.label},t.label))})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Eigene Schriftarten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Eigene Schriftart-Dateien (WOFF2, WOFF, TTF oder OTF) hochladen - stehen danach in jeder Schriftart-Auswahl im Dashboard zusätzlich zur Wahl."}),j.length>0&&e.jsx("ul",{className:"mb-4 space-y-2",children:j.map(t=>e.jsxs("li",{className:"flex items-center justify-between gap-2 rounded-md border border-neutral-200 px-3 py-2 text-sm dark:border-neutral-700",children:[e.jsx("span",{style:{fontFamily:t.font_family},children:t.name}),e.jsx("button",{type:"button",onClick:()=>oe(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]},t.id))}),e.jsxs("form",{onSubmit:ie,className:"flex flex-wrap items-end gap-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name"}),e.jsx("input",{required:!0,value:y,onChange:t=>N(t.target.value),placeholder:"z. B. Firmenschrift",className:"rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Datei"}),e.jsx("input",{required:!0,type:"file",accept:".woff2,.woff,.ttf,.otf",onChange:t=>{var a;return S(((a=t.target.files)==null?void 0:a[0])||null)},className:"text-sm"})]}),e.jsx("button",{type:"submit",disabled:C,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:C?"Lädt hoch…":"Hochladen"})]}),B&&e.jsx("p",{className:"mt-2 text-sm text-red-600",children:B})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Seiten-Ladeanzeige"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Solange Daten und Bilder im sichtbaren Bereich einer Seite noch laden, bleibt der Inhalt ausgeblendet – verhindert, dass Bilder nachträglich "einpoppen". Das Lade-Symbol erscheint nur, wenn das länger als einen Augenblick dauert. Wirkt sich nicht auf das Dashboard und die Startseite aus, nur auf die übrigen Seiten der öffentlichen Website.'}),e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.page_loader_enabled,onChange:t=>s("page_loader_enabled",t.target.checked),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Ladeanzeige aktivieren"]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Kontaktdaten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wird im Header, Footer und auf der Kontaktseite angezeigt."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Telefon"}),e.jsx("input",{value:r.phone,onChange:t=>s("phone",t.target.value),placeholder:"09373 20 62 390",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"WhatsApp Business Nummer"}),e.jsx("input",{value:r.whatsapp,onChange:t=>s("whatsapp",t.target.value),placeholder:"z. B. 09373 20 62 390",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Leer lassen, um den WhatsApp-Link im Header auszublenden."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"E-Mail"}),e.jsx("input",{type:"email",value:r.contact_email,onChange:t=>s("contact_email",t.target.value),placeholder:"info@hifi-planet-amorbach.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-[1fr_120px_1fr]",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Straße & Hausnummer"}),e.jsx("input",{value:r.address_street,onChange:t=>s("address_street",t.target.value),placeholder:"Boxbrunner Str. 20a",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"PLZ"}),e.jsx("input",{value:r.address_zip,onChange:t=>s("address_zip",t.target.value),placeholder:"63916",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Ort"}),e.jsx("input",{value:r.address_city,onChange:t=>s("address_city",t.target.value),placeholder:"Amorbach",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Öffnungszeiten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Wird im Footer und auf der Kontaktseite angezeigt, inklusive dem "Geöffnet/Geschlossen"-Hinweis im Footer, der live gegen diese Zeiten rechnet.'}),e.jsx("div",{className:"space-y-2",children:se.map(t=>{const a=r.business_hours[t.key]||{open:"",close:"",closed:!1};return e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("span",{className:"w-24 shrink-0 text-sm text-neutral-600 dark:text-neutral-300",children:t.label}),e.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-neutral-500 dark:text-neutral-400",children:[e.jsx("input",{type:"checkbox",checked:!a.closed,onChange:n=>f(t.key,"closed",!n.target.checked),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"geöffnet"]}),!a.closed&&e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"time",value:a.open,onChange:n=>f(t.key,"open",n.target.value),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("span",{className:"text-neutral-400",children:"–"}),e.jsx("input",{type:"time",value:a.close,onChange:n=>f(t.key,"close",n.target.value),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]},t.key)})})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Paket-Kachel-Design"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Bestimmt die Farbgebung der Paket-Stufen auf jeder Fahrzeug-Modell-Seite (von der günstigsten bis zur teuersten Option)."}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:De.map(t=>e.jsxs("label",{className:`cursor-pointer rounded-lg border p-3 text-sm transition ${r.package_card_theme===t.value?"border-brand-500 ring-2 ring-brand-500/40":"border-neutral-300 hover:border-neutral-400 dark:border-neutral-700 dark:hover:border-neutral-600"}`,children:[e.jsx("input",{type:"radio",name:"package_card_theme",value:t.value,checked:r.package_card_theme===t.value,onChange:a=>s("package_card_theme",a.target.value),className:"sr-only"}),e.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:t.label}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]},t.value))})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Kachel-Layout"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Bestimmt, wie die Paket-Stufen auf jeder Fahrzeug-Modell-Seite angeordnet werden."}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:Fe.map(t=>e.jsxs("label",{className:`cursor-pointer rounded-lg border p-3 text-sm transition ${r.package_card_layout===t.value?"border-brand-500 ring-2 ring-brand-500/40":"border-neutral-300 hover:border-neutral-400 dark:border-neutral-700 dark:hover:border-neutral-600"}`,children:[e.jsx("input",{type:"radio",name:"package_card_layout",value:t.value,checked:r.package_card_layout===t.value,onChange:a=>s("package_card_layout",a.target.value),className:"sr-only"}),e.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:t.label}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]},t.value))}),e.jsxs("div",{className:"mt-5 max-w-xs",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Mausrad-Hinweis: Wiederholung (Sekunden)"}),e.jsx("input",{type:"number",min:"2",max:"120",value:r.package_wheel_hint_interval,onChange:t=>s("package_wheel_hint_interval",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:'Nur bei Scroll-Band/3D-Coverflow: Solange ein Besucher noch auf der ersten Kachel steht, wird der "mit dem Mausrad blättern"-Hinweis in diesem Abstand wiederholt.'})]}),e.jsxs("div",{className:"mt-5 grid max-w-xs gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Breite (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.package_card_width,onChange:t=>s("package_card_width",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Höhe (px)"}),e.jsx("input",{type:"number",min:"80",max:"900",value:r.package_card_height,onChange:t=>s("package_card_height",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx("p",{className:"text-xs text-neutral-400 sm:col-span-2",children:'Bei „Raster" bestimmt die Breite stattdessen, wie viele Kacheln pro Zeile passen.'})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Marken-/Modell-Kacheln"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Größe der Kacheln unter „Fahrzeuge wählen" und auf der Marken-Detailseite.'}),e.jsxs("div",{className:"grid max-w-xs gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Breite (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.vehicle_tile_width,onChange:t=>s("vehicle_tile_width",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Höhe (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.vehicle_tile_height,onChange:t=>s("vehicle_tile_height",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Bildergalerie-Kacheln"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Position des Marken-/Projekt-Namens auf den Kacheln der Bildergalerie-Übersicht und der Marken-Detailseite."}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-[16rem_1fr] sm:items-start",children:[e.jsxs("div",{children:[e.jsxs("div",{ref:R,className:"relative aspect-[4/3] select-none overflow-hidden rounded-xl bg-neutral-900 shadow-sm",children:[m?e.jsx("img",{src:m.cover_image_path,alt:"",draggable:!1,className:"h-full w-full object-cover"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-neutral-700 to-neutral-900"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent"}),e.jsx("span",{onPointerDown:be,onPointerMove:ge,onPointerUp:pe,style:{...ze(r.gallery_card_text_x,r.gallery_card_text_y,{x:0,y:100}),touchAction:"none"},className:`absolute select-none whitespace-nowrap rounded p-3 text-sm font-extrabold text-white transition-colors ${K?"cursor-grabbing bg-white/10 ring-2 ring-brand-400":"cursor-grab hover:bg-white/10"}`,children:m?m.name:"Beispiel-Marke"})]}),e.jsx("p",{className:"mt-1.5 text-center text-xs text-neutral-400",children:"Namen zum Verschieben ziehen"})]}),e.jsxs("div",{className:"flex flex-col gap-3 sm:pt-1",children:[e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Position:"," ",e.jsxs("span",{className:"font-mono font-semibold text-neutral-700 dark:text-neutral-200",children:[r.gallery_card_text_x,"% / ",r.gallery_card_text_y,"%"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl waagerecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_x",0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Links"}),e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_x",50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_x",100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Rechts"})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl senkrecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_y",0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Oben"}),e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_y",50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_y",100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Unten"})]})]})]})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wird erst geladen, nachdem ein Besucher der Statistik-Kategorie im Cookie-Banner zugestimmt hat. Leer lassen, um Google Analytics zu deaktivieren."}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Measurement-ID"}),e.jsx("input",{value:r.ga_measurement_id,onChange:t=>s("ga_measurement_id",t.target.value),placeholder:"G-XXXXXXXXXX",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"mt-5 border-t border-neutral-200 pt-5 dark:border-neutral-800",children:[e.jsx("h3",{className:"mb-1 text-sm font-semibold text-neutral-900 dark:text-white",children:"Dashboard-Anbindung (optional)"}),e.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:"Zeigt Besucherzahlen direkt in deinem Admin-Dashboard an. Braucht ein Google-Cloud-Service-Account mit Lesezugriff auf diese GA4-Property."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Property-ID"}),e.jsx("input",{value:L,onChange:t=>{H(t.target.value),h(!1)},placeholder:"z. B. 123456789",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Nicht die Measurement-ID (G-...) - zu finden unter GA4 → Verwaltung → Property-Details."})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Service-Account-JSON-Schlüssel ",O?"(leer lassen = unverändert)":""]}),e.jsx("textarea",{rows:4,value:I,onChange:t=>{W(t.target.value),h(!1)},placeholder:O?'{ "type": "service_account", ... } (bereits hinterlegt)':'{ "type": "service_account", ... }',className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 font-mono text-xs dark:border-neutral-700 dark:bg-neutral-900"})]})]}),Z&&e.jsx("p",{className:"mt-2 text-sm text-red-600",children:Z}),ke&&e.jsx("p",{className:"mt-2 text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"button",onClick:je,disabled:T,className:"mt-3 rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:T?"Speichere…":"Dashboard-Anbindung speichern"})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google-Rezensionen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Zeigt die echte Google-Bewertung und die aktuellsten Rezensionen auf der Startseite an, statt der fest eingetragenen Beispiel-Texte. Wird einmal täglich automatisch aktualisiert (nie bei einem Seitenbesuch selbst) – die Seite zeigt also immer den letzten erfolgreich abgerufenen Stand."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Place-ID"}),e.jsx("input",{value:p,onChange:t=>{Y(t.target.value),b(!1)},placeholder:"z. B. ChIJN1t_tDeuEmsRUsoyG83frY4",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:["Eindeutige Google-Kennung eures Eintrags – zu finden über den"," ",e.jsx("a",{href:"https://developers.google.com/maps/documentation/places/web-service/place-id#find-id",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-brand-600",children:"Google Place ID Finder"}),"."]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Places-API-Key ",k?"(leer lassen = unverändert)":""]}),e.jsx("input",{value:V,onChange:t=>{$(t.target.value),b(!1)},placeholder:k?"••••••••••••••••••••• (bereits hinterlegt)":"AIzaSy…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 font-mono text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Aus der Google-Cloud-Console, mit aktivierter „Places API (New)“."})]})]}),te&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:te}),_e&&e.jsx("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[e.jsx("button",{type:"button",onClick:fe,disabled:Q,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:Q?"Speichere…":"Google-Rezensionen-Einstellungen speichern"}),e.jsx("button",{type:"button",onClick:ve,disabled:ae||!p||!k,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:ae?"Aktualisiere…":"Jetzt aktualisieren"})]}),i&&e.jsxs("div",{className:"mt-4 rounded-md bg-neutral-50 p-3 text-sm dark:bg-neutral-800/50",children:[i.rating!=null?e.jsxs("p",{className:"text-neutral-700 dark:text-neutral-300",children:["Aktuell hinterlegt: ",e.jsxs("strong",{children:[i.rating," ★"]})," (",i.rating_count," Bewertungen)",i.updated_at&&e.jsxs(e.Fragment,{children:[" – zuletzt aktualisiert am ",new Date(i.updated_at.replace(" ","T")).toLocaleString("de-DE")]})]}):e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:"Noch keine erfolgreiche Aktualisierung – die Startseite zeigt bis dahin weiter die Beispiel-Rezensionen."}),i.error&&e.jsxs("p",{className:"mt-1 text-red-600",children:["Letzter Fehler: ",i.error]})]})]}),A&&e.jsx("p",{className:"text-sm text-red-600",children:A}),me&&e.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"submit",disabled:F,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:F?"Speichere…":"Speichern"})]})}export{Pe as default}; +import{n as Ne,q as Se,s as Ce,r as l,a as d,j as e,o as ze}from"./index-DM5dAVp5.js";import{I as v}from"./ImageUploadField-oqjVVSSG.js";const se=[{key:"mon",label:"Montag"},{key:"tue",label:"Dienstag"},{key:"wed",label:"Mittwoch"},{key:"thu",label:"Donnerstag"},{key:"fri",label:"Freitag"},{key:"sat",label:"Samstag"},{key:"sun",label:"Sonntag"}],ne=Object.fromEntries(se.map(g=>[g.key,{open:"09:00",close:"18:00",closed:!1}])),Be={phone:"",whatsapp:"",contact_email:"",address_street:"",address_zip:"",address_city:"",logo_path:"",logo_dark_path:"",business_hours:ne,hero_image_path:"",ga_measurement_id:"",package_card_theme:"graphite",package_card_layout:"strip",package_wheel_hint_interval:8,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,gallery_card_text_x:0,gallery_card_text_y:100,site_font:"",page_loader_enabled:!0},De=[{value:"graphite",label:"Graphite Green",description:"Graphit über Bronze/Silber/Gold/Platin bis zur Onyx-Krönung."},{value:"deep-blue",label:"Deep Blue Luxury",description:"Kühles Blau, das sich über Grün zu Gold erwärmt."},{value:"warm-bronze",label:"Warm Bronze",description:"Durchgehend warmes Kupfer/Bronze/Amber bis zum Gold."}],Fe=[{value:"grid",label:"Raster",description:"Breite Kacheln, die responsiv in mehrere Zeilen umbrechen."},{value:"strip",label:"Scroll-Band",description:"Schmale, hochkant Kacheln in einer horizontal scrollbaren Reihe."},{value:"coverflow",label:"3D-Coverflow",description:"Kacheln drehen sich beim Wischen räumlich – die mittlere steht im Fokus."}];function Pe(){const g=Ne(),j=Se(),w=Ce(),[y,N]=l.useState(""),[de,S]=l.useState(null),[C,z]=l.useState(!1),[B,D]=l.useState(""),ie=async t=>{t.preventDefault(),D(""),z(!0);try{const a=new FormData;a.append("name",y),a.append("file",de),await d.post("/custom-fonts",a),N(""),S(null),t.target.reset(),w()}catch(a){D(a.message)}finally{z(!1)}},oe=async t=>{confirm("Schriftart wirklich löschen? Felder, die sie noch verwenden, fallen danach auf die Standardschrift zurück.")&&(await d.delete(`/custom-fonts/${t}`),w())},[r,u]=l.useState(Be),[ce,ue]=l.useState(!0),[F,G]=l.useState(!1),[me,o]=l.useState(!1),[A,P]=l.useState(""),[m,he]=l.useState(null),R=l.useRef(null),[K,M]=l.useState(!1),xe=(t,a)=>{const n=R.current.getBoundingClientRect();return{x:Math.max(0,Math.min(100,Math.round((t-n.left)/n.width*100))),y:Math.max(0,Math.min(100,Math.round((a-n.top)/n.height*100)))}},E=(t,a)=>{const{x:n,y:c}=xe(t,a);u(ye=>({...ye,gallery_card_text_x:n,gallery_card_text_y:c})),o(!1)},be=t=>{t.preventDefault(),t.currentTarget.setPointerCapture(t.pointerId),M(!0),E(t.clientX,t.clientY)},ge=t=>{K&&E(t.clientX,t.clientY)},pe=t=>{M(!1),t.currentTarget.releasePointerCapture(t.pointerId)},[L,H]=l.useState(""),[I,W]=l.useState(""),[O,X]=l.useState(!1),[T,U]=l.useState(!1),[Z,J]=l.useState(""),[ke,h]=l.useState(!1),[p,Y]=l.useState(""),[V,$]=l.useState(""),[k,q]=l.useState(!1),[i,_]=l.useState(null),[Q,ee]=l.useState(!1),[te,x]=l.useState(""),[_e,b]=l.useState(!1),[ae,re]=l.useState(!1);l.useEffect(()=>{d.get("/site-settings").then(t=>u({phone:t.phone||"",whatsapp:t.whatsapp||"",contact_email:t.contact_email||"",address_street:t.address_street||"",address_zip:t.address_zip||"",address_city:t.address_city||"",logo_path:t.logo_path||"",logo_dark_path:t.logo_dark_path||"",business_hours:t.business_hours||ne,hero_image_path:t.hero_image_path||"",ga_measurement_id:t.ga_measurement_id||"",package_card_theme:t.package_card_theme||"graphite",package_card_layout:t.package_card_layout||"strip",package_wheel_hint_interval:t.package_wheel_hint_interval||8,package_card_width:t.package_card_width||210,package_card_height:t.package_card_height||480,vehicle_tile_width:t.vehicle_tile_width||240,vehicle_tile_height:t.vehicle_tile_height||180,gallery_card_text_x:t.gallery_card_text_x??0,gallery_card_text_y:t.gallery_card_text_y??100,site_font:t.site_font||"",page_loader_enabled:t.page_loader_enabled===void 0?!0:!!t.page_loader_enabled})).finally(()=>ue(!1)),d.get("/gallery-brands").then(t=>he(t.find(a=>a.cover_image_path)||null)).catch(()=>{}),d.get("/settings/analytics").then(t=>{H(t.ga_property_id||""),X(t.has_credentials)}),le()},[]);const le=()=>{d.get("/settings/google-reviews").then(t=>{Y(t.place_id||""),q(t.has_api_key),_(t)})},fe=async()=>{ee(!0),x(""),b(!1);try{const t=await d.post("/settings/google-reviews",{place_id:p,api_key:V});q(t.has_api_key),_(t),$(""),b(!0)}catch(t){x(t.message)}finally{ee(!1)}},ve=async()=>{re(!0),x("");try{const t=await d.post("/settings/google-reviews/refresh",{});_(t)}catch(t){x(t.message),le()}finally{re(!1)}},je=async()=>{U(!0),J(""),h(!1);try{const t=await d.post("/settings/analytics",{ga_property_id:L,service_account_json:I});X(t.has_credentials),W(""),h(!0)}catch(t){J(t.message)}finally{U(!1)}},s=(t,a)=>{u(n=>({...n,[t]:a})),o(!1)},f=(t,a,n)=>{u(c=>({...c,business_hours:{...c.business_hours,[t]:{...c.business_hours[t],[a]:n}}})),o(!1)},we=async t=>{t.preventDefault(),G(!0),P(""),o(!1);try{await d.post("/site-settings",r),o(!0)}catch(a){P(a.message)}finally{G(!1)}};return ce?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{onSubmit:we,className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Startseiten-Bild"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Das große Hero-Bild ganz oben auf der Startseite. Ohne eigenes Bild wird das Standardbild verwendet."}),e.jsx(v,{value:r.hero_image_path,onChange:t=>s("hero_image_path",t),label:"Bild",aspect:16/9})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Firmenlogo"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Ohne eigenes Logo wird das Standard-Logo dieser Vorlage angezeigt. Für den Dunkelmodus kann eine eigene Variante hinterlegt werden (z. B. mit heller statt dunkler Wortmarke)."}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsx(v,{value:r.logo_path,onChange:t=>s("logo_path",t),label:"Logo (Hellmodus)"}),e.jsx(v,{value:r.logo_dark_path,onChange:t=>s("logo_dark_path",t),label:"Logo (Dunkelmodus)"})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Schriftart"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Gilt für die gesamte Website. Einzelne Startseiten-Sektionen können unter „Startseite“ davon abweichen."}),e.jsx("select",{value:r.site_font,onChange:t=>s("site_font",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:g.map(t=>e.jsx("option",{value:t.value,children:t.label},t.label))})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Eigene Schriftarten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Eigene Schriftart-Dateien (WOFF2, WOFF, TTF oder OTF) hochladen - stehen danach in jeder Schriftart-Auswahl im Dashboard zusätzlich zur Wahl."}),j.length>0&&e.jsx("ul",{className:"mb-4 space-y-2",children:j.map(t=>e.jsxs("li",{className:"flex items-center justify-between gap-2 rounded-md border border-neutral-200 px-3 py-2 text-sm dark:border-neutral-700",children:[e.jsx("span",{style:{fontFamily:t.font_family},children:t.name}),e.jsx("button",{type:"button",onClick:()=>oe(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]},t.id))}),e.jsxs("form",{onSubmit:ie,className:"flex flex-wrap items-end gap-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name"}),e.jsx("input",{required:!0,value:y,onChange:t=>N(t.target.value),placeholder:"z. B. Firmenschrift",className:"rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Datei"}),e.jsx("input",{required:!0,type:"file",accept:".woff2,.woff,.ttf,.otf",onChange:t=>{var a;return S(((a=t.target.files)==null?void 0:a[0])||null)},className:"text-sm"})]}),e.jsx("button",{type:"submit",disabled:C,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:C?"Lädt hoch…":"Hochladen"})]}),B&&e.jsx("p",{className:"mt-2 text-sm text-red-600",children:B})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Seiten-Ladeanzeige"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Solange Daten und Bilder im sichtbaren Bereich einer Seite noch laden, bleibt der Inhalt ausgeblendet – verhindert, dass Bilder nachträglich "einpoppen". Das Lade-Symbol erscheint nur, wenn das länger als einen Augenblick dauert. Wirkt sich nicht auf das Dashboard und die Startseite aus, nur auf die übrigen Seiten der öffentlichen Website.'}),e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.page_loader_enabled,onChange:t=>s("page_loader_enabled",t.target.checked),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Ladeanzeige aktivieren"]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Kontaktdaten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wird im Header, Footer und auf der Kontaktseite angezeigt."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Telefon"}),e.jsx("input",{value:r.phone,onChange:t=>s("phone",t.target.value),placeholder:"09373 20 62 390",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"WhatsApp Business Nummer"}),e.jsx("input",{value:r.whatsapp,onChange:t=>s("whatsapp",t.target.value),placeholder:"z. B. 09373 20 62 390",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Leer lassen, um den WhatsApp-Link im Header auszublenden."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"E-Mail"}),e.jsx("input",{type:"email",value:r.contact_email,onChange:t=>s("contact_email",t.target.value),placeholder:"info@hifi-planet-amorbach.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-[1fr_120px_1fr]",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Straße & Hausnummer"}),e.jsx("input",{value:r.address_street,onChange:t=>s("address_street",t.target.value),placeholder:"Boxbrunner Str. 20a",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"PLZ"}),e.jsx("input",{value:r.address_zip,onChange:t=>s("address_zip",t.target.value),placeholder:"63916",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Ort"}),e.jsx("input",{value:r.address_city,onChange:t=>s("address_city",t.target.value),placeholder:"Amorbach",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Öffnungszeiten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Wird im Footer und auf der Kontaktseite angezeigt, inklusive dem "Geöffnet/Geschlossen"-Hinweis im Footer, der live gegen diese Zeiten rechnet.'}),e.jsx("div",{className:"space-y-2",children:se.map(t=>{const a=r.business_hours[t.key]||{open:"",close:"",closed:!1};return e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("span",{className:"w-24 shrink-0 text-sm text-neutral-600 dark:text-neutral-300",children:t.label}),e.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-neutral-500 dark:text-neutral-400",children:[e.jsx("input",{type:"checkbox",checked:!a.closed,onChange:n=>f(t.key,"closed",!n.target.checked),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"geöffnet"]}),!a.closed&&e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"time",value:a.open,onChange:n=>f(t.key,"open",n.target.value),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("span",{className:"text-neutral-400",children:"–"}),e.jsx("input",{type:"time",value:a.close,onChange:n=>f(t.key,"close",n.target.value),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]},t.key)})})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Paket-Kachel-Design"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Bestimmt die Farbgebung der Paket-Stufen auf jeder Fahrzeug-Modell-Seite (von der günstigsten bis zur teuersten Option)."}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:De.map(t=>e.jsxs("label",{className:`cursor-pointer rounded-lg border p-3 text-sm transition ${r.package_card_theme===t.value?"border-brand-500 ring-2 ring-brand-500/40":"border-neutral-300 hover:border-neutral-400 dark:border-neutral-700 dark:hover:border-neutral-600"}`,children:[e.jsx("input",{type:"radio",name:"package_card_theme",value:t.value,checked:r.package_card_theme===t.value,onChange:a=>s("package_card_theme",a.target.value),className:"sr-only"}),e.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:t.label}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]},t.value))})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Kachel-Layout"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Bestimmt, wie die Paket-Stufen auf jeder Fahrzeug-Modell-Seite angeordnet werden."}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:Fe.map(t=>e.jsxs("label",{className:`cursor-pointer rounded-lg border p-3 text-sm transition ${r.package_card_layout===t.value?"border-brand-500 ring-2 ring-brand-500/40":"border-neutral-300 hover:border-neutral-400 dark:border-neutral-700 dark:hover:border-neutral-600"}`,children:[e.jsx("input",{type:"radio",name:"package_card_layout",value:t.value,checked:r.package_card_layout===t.value,onChange:a=>s("package_card_layout",a.target.value),className:"sr-only"}),e.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:t.label}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]},t.value))}),e.jsxs("div",{className:"mt-5 max-w-xs",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Mausrad-Hinweis: Wiederholung (Sekunden)"}),e.jsx("input",{type:"number",min:"2",max:"120",value:r.package_wheel_hint_interval,onChange:t=>s("package_wheel_hint_interval",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:'Nur bei Scroll-Band/3D-Coverflow: Solange ein Besucher noch auf der ersten Kachel steht, wird der "mit dem Mausrad blättern"-Hinweis in diesem Abstand wiederholt.'})]}),e.jsxs("div",{className:"mt-5 grid max-w-xs gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Breite (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.package_card_width,onChange:t=>s("package_card_width",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Höhe (px)"}),e.jsx("input",{type:"number",min:"80",max:"900",value:r.package_card_height,onChange:t=>s("package_card_height",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx("p",{className:"text-xs text-neutral-400 sm:col-span-2",children:'Bei „Raster" bestimmt die Breite stattdessen, wie viele Kacheln pro Zeile passen.'})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Marken-/Modell-Kacheln"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Größe der Kacheln unter „Fahrzeuge wählen" und auf der Marken-Detailseite.'}),e.jsxs("div",{className:"grid max-w-xs gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Breite (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.vehicle_tile_width,onChange:t=>s("vehicle_tile_width",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Höhe (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.vehicle_tile_height,onChange:t=>s("vehicle_tile_height",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Bildergalerie-Kacheln"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Position des Marken-/Projekt-Namens auf den Kacheln der Bildergalerie-Übersicht und der Marken-Detailseite."}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-[16rem_1fr] sm:items-start",children:[e.jsxs("div",{children:[e.jsxs("div",{ref:R,className:"relative aspect-[4/3] select-none overflow-hidden rounded-xl bg-neutral-900 shadow-sm",children:[m?e.jsx("img",{src:m.cover_image_path,alt:"",draggable:!1,className:"h-full w-full object-cover"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-neutral-700 to-neutral-900"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent"}),e.jsx("span",{onPointerDown:be,onPointerMove:ge,onPointerUp:pe,style:{...ze(r.gallery_card_text_x,r.gallery_card_text_y,{x:0,y:100}),touchAction:"none"},className:`absolute select-none whitespace-nowrap rounded p-3 text-sm font-extrabold text-white transition-colors ${K?"cursor-grabbing bg-white/10 ring-2 ring-brand-400":"cursor-grab hover:bg-white/10"}`,children:m?m.name:"Beispiel-Marke"})]}),e.jsx("p",{className:"mt-1.5 text-center text-xs text-neutral-400",children:"Namen zum Verschieben ziehen"})]}),e.jsxs("div",{className:"flex flex-col gap-3 sm:pt-1",children:[e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Position:"," ",e.jsxs("span",{className:"font-mono font-semibold text-neutral-700 dark:text-neutral-200",children:[r.gallery_card_text_x,"% / ",r.gallery_card_text_y,"%"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl waagerecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_x",0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Links"}),e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_x",50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_x",100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Rechts"})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl senkrecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_y",0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Oben"}),e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_y",50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>s("gallery_card_text_y",100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Unten"})]})]})]})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wird erst geladen, nachdem ein Besucher der Statistik-Kategorie im Cookie-Banner zugestimmt hat. Leer lassen, um Google Analytics zu deaktivieren."}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Measurement-ID"}),e.jsx("input",{value:r.ga_measurement_id,onChange:t=>s("ga_measurement_id",t.target.value),placeholder:"G-XXXXXXXXXX",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"mt-5 border-t border-neutral-200 pt-5 dark:border-neutral-800",children:[e.jsx("h3",{className:"mb-1 text-sm font-semibold text-neutral-900 dark:text-white",children:"Dashboard-Anbindung (optional)"}),e.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:"Zeigt Besucherzahlen direkt in deinem Admin-Dashboard an. Braucht ein Google-Cloud-Service-Account mit Lesezugriff auf diese GA4-Property."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Property-ID"}),e.jsx("input",{value:L,onChange:t=>{H(t.target.value),h(!1)},placeholder:"z. B. 123456789",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Nicht die Measurement-ID (G-...) - zu finden unter GA4 → Verwaltung → Property-Details."})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Service-Account-JSON-Schlüssel ",O?"(leer lassen = unverändert)":""]}),e.jsx("textarea",{rows:4,value:I,onChange:t=>{W(t.target.value),h(!1)},placeholder:O?'{ "type": "service_account", ... } (bereits hinterlegt)':'{ "type": "service_account", ... }',className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 font-mono text-xs dark:border-neutral-700 dark:bg-neutral-900"})]})]}),Z&&e.jsx("p",{className:"mt-2 text-sm text-red-600",children:Z}),ke&&e.jsx("p",{className:"mt-2 text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"button",onClick:je,disabled:T,className:"mt-3 rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:T?"Speichere…":"Dashboard-Anbindung speichern"})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google-Rezensionen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Zeigt die echte Google-Bewertung und die aktuellsten Rezensionen auf der Startseite an, statt der fest eingetragenen Beispiel-Texte. Wird einmal täglich automatisch aktualisiert (nie bei einem Seitenbesuch selbst) – die Seite zeigt also immer den letzten erfolgreich abgerufenen Stand."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Place-ID"}),e.jsx("input",{value:p,onChange:t=>{Y(t.target.value),b(!1)},placeholder:"z. B. ChIJN1t_tDeuEmsRUsoyG83frY4",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:["Eindeutige Google-Kennung eures Eintrags – zu finden über den"," ",e.jsx("a",{href:"https://developers.google.com/maps/documentation/places/web-service/place-id#find-id",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-brand-600",children:"Google Place ID Finder"}),"."]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Places-API-Key ",k?"(leer lassen = unverändert)":""]}),e.jsx("input",{value:V,onChange:t=>{$(t.target.value),b(!1)},placeholder:k?"••••••••••••••••••••• (bereits hinterlegt)":"AIzaSy…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 font-mono text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Aus der Google-Cloud-Console, mit aktivierter „Places API (New)“."})]})]}),te&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:te}),_e&&e.jsx("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[e.jsx("button",{type:"button",onClick:fe,disabled:Q,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:Q?"Speichere…":"Google-Rezensionen-Einstellungen speichern"}),e.jsx("button",{type:"button",onClick:ve,disabled:ae||!p||!k,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:ae?"Aktualisiere…":"Jetzt aktualisieren"})]}),i&&e.jsxs("div",{className:"mt-4 rounded-md bg-neutral-50 p-3 text-sm dark:bg-neutral-800/50",children:[i.rating!=null?e.jsxs("p",{className:"text-neutral-700 dark:text-neutral-300",children:["Aktuell hinterlegt: ",e.jsxs("strong",{children:[i.rating," ★"]})," (",i.rating_count," Bewertungen)",i.updated_at&&e.jsxs(e.Fragment,{children:[" – zuletzt aktualisiert am ",new Date(i.updated_at.replace(" ","T")).toLocaleString("de-DE")]})]}):e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:"Noch keine erfolgreiche Aktualisierung – die Startseite zeigt bis dahin weiter die Beispiel-Rezensionen."}),i.error&&e.jsxs("p",{className:"mt-1 text-red-600",children:["Letzter Fehler: ",i.error]})]})]}),A&&e.jsx("p",{className:"text-sm text-red-600",children:A}),me&&e.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"submit",disabled:F,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:F?"Speichere…":"Speichern"})]})}export{Pe as default}; diff --git a/hifi/assets/eye-B3iFgvk-.js b/hifi/assets/eye-CZFeBsZS.js similarity index 95% rename from hifi/assets/eye-B3iFgvk-.js rename to hifi/assets/eye-CZFeBsZS.js index 144c1e7..4003ce9 100644 --- a/hifi/assets/eye-B3iFgvk-.js +++ b/hifi/assets/eye-CZFeBsZS.js @@ -1,4 +1,4 @@ -import{w as e}from"./index-CeNRYcbS.js";/** +import{w as e}from"./index-DM5dAVp5.js";/** * @license lucide-react v1.23.0 - ISC * * This source code is licensed under the ISC license. diff --git a/hifi/assets/iconRegistry-B8BVNGep.js b/hifi/assets/iconRegistry-BJRytynd.js similarity index 99% rename from hifi/assets/iconRegistry-B8BVNGep.js rename to hifi/assets/iconRegistry-BJRytynd.js index bf37d85..697bbd5 100644 --- a/hifi/assets/iconRegistry-B8BVNGep.js +++ b/hifi/assets/iconRegistry-BJRytynd.js @@ -1,4 +1,4 @@ -import{w as e,B as L0,x as x0,y as w0,z as f0,E as I0,h as C0,F as N0,i as b0,G as $0,C as s,H as q0,I as z0,J as S0,K as A0,M as H0,P as j0,Q as l,S as V0,T as P0,U as B0,V as D0,W as F0,X as R0,Y as T0,Z as U0,_ as O0,$ as G0,a0 as Z0,a1 as W0,a2 as E0,a3 as X0,a4 as K0,a5 as Q0,a6 as J0,a7 as Y0,a8 as ea,a9 as aa,aa as ca,ab as fL,ac as IL,ad as CL,j as NL}from"./index-CeNRYcbS.js";import{a as ta,E as oa}from"./eye-B3iFgvk-.js";import{G as da,P as na,R as ha,T as ia}from"./trash-2-CR1es5DZ.js";/** +import{w as e,B as L0,x as x0,y as w0,z as f0,E as I0,h as C0,F as N0,i as b0,G as $0,C as s,H as q0,I as z0,J as S0,K as A0,M as H0,P as j0,Q as l,T as V0,U as P0,V as B0,W as D0,X as F0,Y as R0,Z as T0,_ as U0,$ as O0,a0 as G0,a1 as Z0,a2 as W0,a3 as E0,a4 as X0,a5 as K0,a6 as Q0,a7 as J0,a8 as Y0,a9 as ea,aa,ab as ca,ac as fL,ad as IL,ae as CL,j as NL}from"./index-DM5dAVp5.js";import{a as ta,E as oa}from"./eye-CZFeBsZS.js";import{G as da,P as na,R as ha,T as ia}from"./trash-2-CQGOvKRj.js";/** * @license lucide-react v1.23.0 - ISC * * This source code is licensed under the ISC license. diff --git a/hifi/assets/index-BNAemH7C.css b/hifi/assets/index-BNAemH7C.css new file mode 100644 index 0000000..274a8e0 --- /dev/null +++ b/hifi/assets/index-BNAemH7C.css @@ -0,0 +1 @@ +@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-vietnamese-400-normal-Dpl4UHAZ.woff2) format("woff2"),url(/assets/barlow-vietnamese-400-normal-BFeobeCK.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-latin-ext-400-normal-HxX4XjxC.woff2) format("woff2"),url(/assets/barlow-latin-ext-400-normal-CvBsJvxq.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-latin-400-normal-qiz4-Cze.woff2) format("woff2"),url(/assets/barlow-latin-400-normal-fsAxiSwU.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-vietnamese-500-normal-zTViEIzf.woff2) format("woff2"),url(/assets/barlow-vietnamese-500-normal-GNfB7rCE.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-latin-ext-500-normal-DOaysfXq.woff2) format("woff2"),url(/assets/barlow-latin-ext-500-normal-CJPcKP2Q.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-latin-500-normal-BPAOfeC8.woff2) format("woff2"),url(/assets/barlow-latin-500-normal-C1h8hMer.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-vietnamese-600-normal-DcjprdFV.woff2) format("woff2"),url(/assets/barlow-vietnamese-600-normal-CA_GiK2e.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-latin-ext-600-normal-B8NK_A3D.woff2) format("woff2"),url(/assets/barlow-latin-ext-600-normal-DMVRjfRT.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-latin-600-normal-DILqtrty.woff2) format("woff2"),url(/assets/barlow-latin-600-normal-CNwfPWQD.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-vietnamese-700-normal-D6euyNzi.woff2) format("woff2"),url(/assets/barlow-vietnamese-700-normal-4Jt4k04K.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-latin-ext-700-normal-BLuWmldJ.woff2) format("woff2"),url(/assets/barlow-latin-ext-700-normal-CctuGmmz.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-latin-700-normal-A9pxMQ4z.woff2) format("woff2"),url(/assets/barlow-latin-700-normal-__SGTsZ1.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-vietnamese-500-normal-DjeaNLFD.woff2) format("woff2"),url(/assets/barlow-condensed-vietnamese-500-normal-CsrJDWc5.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-latin-ext-500-normal-yA5ONLQ9.woff2) format("woff2"),url(/assets/barlow-condensed-latin-ext-500-normal-B1RE8WP7.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-latin-500-normal-BgYH2mbd.woff2) format("woff2"),url(/assets/barlow-condensed-latin-500-normal-HIEiP5Ov.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-vietnamese-600-normal-A5AYRdjN.woff2) format("woff2"),url(/assets/barlow-condensed-vietnamese-600-normal-CNlPk46_.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-latin-ext-600-normal-18ESti3H.woff2) format("woff2"),url(/assets/barlow-condensed-latin-ext-600-normal-Clv9cIcR.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-latin-600-normal-DepVgxBB.woff2) format("woff2"),url(/assets/barlow-condensed-latin-600-normal-BFJEwTuo.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Michroma;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/michroma-latin-ext-400-normal-BeYM1uOO.woff2) format("woff2"),url(/assets/michroma-latin-ext-400-normal-DlRaauac.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Michroma;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/michroma-latin-400-normal-4gS0VCia.woff2) format("woff2"),url(/assets/michroma-latin-400-normal-C7Pn7qca.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--site-font, ui-sans-serif, system-ui, sans-serif);font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-5{bottom:-1.25rem}.-left-1\/3{left:-33.333333%}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-right-\[60px\]{right:-60px}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-3{top:-.75rem}.-top-\[60px\]{top:-60px}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-3\.5{left:.875rem}.left-5{left:1.25rem}.left-6{left:1.5rem}.left-\[14px\]{left:14px}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-3\.5{top:.875rem}.top-4{top:1rem}.top-8{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[200\]{z-index:200}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-full{grid-column:1 / -1}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.-mt-\[89px\]{margin-top:-89px}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-7{margin-bottom:1.75rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr-3{margin-right:.75rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-3\.5{margin-top:.875rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-6{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.\!hidden{display:none!important}.hidden{display:none}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-0\.5{height:.125rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-\[17px\]{height:17px}.h-\[18px\]{height:18px}.h-\[190px\]{height:190px}.h-\[210px\]{height:210px}.h-\[22px\]{height:22px}.h-\[46px\]{height:46px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-64{max-height:16rem}.max-h-\[85vh\]{max-height:85vh}.min-h-\[10rem\]{min-height:10rem}.min-h-\[560px\]{min-height:560px}.min-h-\[70vh\]{min-height:70vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[17px\]{width:17px}.w-\[18px\]{width:18px}.w-\[190px\]{width:190px}.w-\[22px\]{width:22px}.w-\[46px\]{width:46px}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\[220px\]{min-width:220px}.min-w-\[90px\]{min-width:90px}.min-w-\[9rem\]{min-width:9rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-\[1280px\]{max-width:1280px}.max-w-\[160px\]{max-width:160px}.max-w-\[1880px\]{max-width:1880px}.max-w-\[520px\]{max-width:520px}.max-w-\[85\%\]{max-width:85%}.max-w-\[8rem\]{max-width:8rem}.max-w-\[calc\(100\%-16px\)\]{max-width:calc(100% - 16px)}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-12{--tw-rotate: 12deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.touch-pan-y{--tw-pan-y: pan-y;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.snap-start{scroll-snap-align:start}.snap-center{scroll-snap-align:center}.scroll-mt-4{scroll-margin-top:1rem}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[18px\]{gap:18px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-x-\[18px\]{-moz-column-gap:18px;column-gap:18px}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-neutral-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(245 245 245 / var(--tw-divide-opacity, 1))}.divide-neutral-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 229 229 / var(--tw-divide-opacity, 1))}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[10px\]{border-radius:10px}.rounded-\[18px\]{border-radius:18px}.rounded-\[3px\]{border-radius:3px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.border{border-width:1px}.border-0{border-width:0px}.border-4{border-width:4px}.border-\[1\.5px\]{border-width:1.5px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-brand-300{--tw-border-opacity: 1;border-color:rgb(182 227 130 / var(--tw-border-opacity, 1))}.border-brand-500{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.border-neutral-100{--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1))}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-neutral-300{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.border-neutral-700{--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.border-neutral-800{--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white\/10{border-color:#ffffff1a}.border-white\/15{border-color:#ffffff26}.border-white\/30{border-color:#ffffff4d}.border-t-brand-500{--tw-border-opacity: 1;border-top-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-black\/50{background-color:#00000080}.bg-black\/55{background-color:#0000008c}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/90{background-color:#000000e6}.bg-brand-100{--tw-bg-opacity: 1;background-color:rgb(233 246 218 / var(--tw-bg-opacity, 1))}.bg-brand-400{--tw-bg-opacity: 1;background-color:rgb(146 212 68 / var(--tw-bg-opacity, 1))}.bg-brand-50{--tw-bg-opacity: 1;background-color:rgb(245 251 238 / var(--tw-bg-opacity, 1))}.bg-brand-500{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.bg-brand-500\/10{background-color:#6ba6261a}.bg-brand-500\/60{background-color:#6ba62699}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.bg-neutral-200{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity, 1))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity, 1))}.bg-neutral-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-neutral-900\/10{background-color:#1717171a}.bg-neutral-900\/85{background-color:#171717d9}.bg-neutral-950{--tw-bg-opacity: 1;background-color:rgb(10 10 10 / var(--tw-bg-opacity, 1))}.bg-neutral-950\/90{background-color:#0a0a0ae6}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-50\/40{background-color:#fef2f266}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/10{background-color:#ffffff1a}.bg-white\/5{background-color:#ffffff0d}.bg-white\/95{background-color:#fffffff2}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-black\/70{--tw-gradient-from: rgb(0 0 0 / .7) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/85{--tw-gradient-from: rgb(0 0 0 / .85) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-700{--tw-gradient-from: #404040 var(--tw-gradient-from-position);--tw-gradient-to: rgb(64 64 64 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-950{--tw-gradient-from: #0a0a0a var(--tw-gradient-from-position);--tw-gradient-to: rgb(10 10 10 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-black\/10{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / .1) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-black\/20{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / .2) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-neutral-950\/80{--tw-gradient-to: rgb(10 10 10 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(10 10 10 / .8) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-white\/40{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / .4) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-black\/40{--tw-gradient-to: rgb(0 0 0 / .4) var(--tw-gradient-to-position)}.to-neutral-900{--tw-gradient-to: #171717 var(--tw-gradient-to-position)}.to-neutral-950\/40{--tw-gradient-to: rgb(10 10 10 / .4) var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[22px\]{padding:22px}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[22px\]{padding-left:22px;padding-right:22px}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[22px\]{padding-top:22px;padding-bottom:22px}.py-\[26px\]{padding-top:26px;padding-bottom:26px}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-\[42px\]{padding-left:42px}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pt-3{padding-top:.75rem}.pt-3\.5{padding-top:.875rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:var(--site-font, ui-sans-serif, system-ui, sans-serif)}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[17px\]{font-size:17px}.text-\[34px\]{font-size:34px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-\[1\.08\]{line-height:1.08}.leading-\[1\.4\]{line-height:1.4}.leading-\[1\.55\]{line-height:1.55}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.tracking-\[0\.2em\]{letter-spacing:.2em}.tracking-\[2px\]{letter-spacing:2px}.tracking-\[3px\]{letter-spacing:3px}.tracking-\[6px\]{letter-spacing:6px}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-brand-300{--tw-text-opacity: 1;color:rgb(182 227 130 / var(--tw-text-opacity, 1))}.text-brand-400{--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.text-brand-500{--tw-text-opacity: 1;color:rgb(107 166 38 / var(--tw-text-opacity, 1))}.text-brand-500\/10{color:#6ba6261a}.text-brand-600{--tw-text-opacity: 1;color:rgb(88 137 31 / var(--tw-text-opacity, 1))}.text-brand-700{--tw-text-opacity: 1;color:rgb(72 112 26 / var(--tw-text-opacity, 1))}.text-brand-800{--tw-text-opacity: 1;color:rgb(59 91 21 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-neutral-200{--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-800{--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-neutral-950{--tw-text-opacity: 1;color:rgb(10 10 10 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/70{color:#ffffffb3}.text-white\/80{color:#fffc}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_-8px_24px_rgba\(0\,0\,0\,0\.08\)\]{--tw-shadow: 0 -8px 24px rgba(0,0,0,.08);--tw-shadow-colored: 0 -8px 24px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_10px_rgba\(107\,166\,38\,0\.7\)\]{--tw-shadow: 0 0 10px rgba(107,166,38,.7);--tw-shadow-colored: 0 0 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-brand-500\/30{--tw-shadow-color: rgb(107 166 38 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-neutral-900\/20{--tw-shadow-color: rgb(23 23 23 / .2);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-brand-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(146 212 68 / var(--tw-ring-opacity, 1))}.ring-brand-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 166 38 / var(--tw-ring-opacity, 1))}.ring-brand-500\/40{--tw-ring-color: rgb(107 166 38 / .4)}.ring-neutral-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(82 82 82 / var(--tw-ring-opacity, 1))}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1))}.ring-white\/50{--tw-ring-color: rgb(255 255 255 / .5)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[filter\,box-shadow\]{transition-property:filter,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}.\[scrollbar-width\:none\]{scrollbar-width:none}html{scroll-behavior:smooth}.marquee-viewport{-webkit-mask-image:linear-gradient(to right,transparent,black 6%,black 94%,transparent);mask-image:linear-gradient(to right,transparent,black 6%,black 94%,transparent)}.page-texture{background-color:#f6f5f0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:180px 180px}.dark .page-texture{background-color:#0a0b07;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}.kf-page{--kf-pagebg: linear-gradient(120deg, #eef0ea 0%, #f6f8f3 45%, #fbfcf9 100%);--kf-card: #ffffff;--kf-cardbrd: #e4e8dc;--kf-text: #23271d;--kf-text2: #2a2e24;--kf-muted: #6c7360;--kf-label: #838a72;--kf-field: #fafcf6;--kf-fieldbrd: #dde2d3;--kf-fieldicon: #a7ad9d;--kf-accent: #a4d417;--kf-accent2: #8ec21a;--kf-accentsoft: #f2f8df;--kf-pill: #ffffff;--kf-pillbrd: #dfe4d6;--kf-shadow: 0 24px 60px rgba(60, 70, 40, .08);--kf-shadow2: 0 16px 40px rgba(60, 70, 40, .06);--kf-divider: #e8ecdf;--kf-topo: #d7dccd;--kf-pkgbg: #f4fbe4;--kf-pkgbrd: #cfe89a;--kf-btntext: #1f2417;--kf-scrim: linear-gradient(90deg, rgba(244, 246, 241, .35) 0%, rgba(244, 246, 241, .55) 55%, rgba(246, 248, 243, 1) 100%)}.dark .kf-page{--kf-pagebg: linear-gradient(120deg, #181b0f 0%, #111409 45%, #0a0c06 100%);--kf-card: #14170e;--kf-cardbrd: rgba(168, 225, 12, .16);--kf-text: #f3f6ea;--kf-text2: #e8ece0;--kf-muted: #9aa38c;--kf-label: #8f987f;--kf-field: rgba(0, 0, 0, .35);--kf-fieldbrd: #2c3323;--kf-fieldicon: #5f6852;--kf-accent: #a8e10c;--kf-accent2: #b6e619;--kf-accentsoft: rgba(168, 225, 12, .1);--kf-pill: #14170e;--kf-pillbrd: rgba(168, 225, 12, .28);--kf-shadow: 0 24px 60px rgba(0, 0, 0, .55);--kf-shadow2: 0 16px 40px rgba(0, 0, 0, .45);--kf-divider: rgba(168, 225, 12, .15);--kf-pkgbg: rgba(168, 225, 12, .08);--kf-pkgbrd: rgba(168, 225, 12, .4);--kf-btntext: #0f1208}.kontakt-sektion{background-image:url(/assets/bg-light-CBAG2tPV.webp);background-size:cover;background-position:center}.dark .kontakt-sektion{background-image:url(/assets/bg-dark-B4R1klEI.webp)}.kf-page input::-moz-placeholder,.kf-page textarea::-moz-placeholder{color:var(--kf-fieldicon)}.kf-page input::placeholder,.kf-page textarea::placeholder{color:var(--kf-fieldicon)}.kf-page input:focus,.kf-page textarea:focus{border-color:var(--kf-accent)!important;box-shadow:0 0 0 3px #a4d41733}.grain-band{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:180px 180px}.dark .grain-band{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}html.hifi-cursor-on,html.hifi-cursor-on *{cursor:none!important}html.hifi-cursor-on :is(input,textarea,[contenteditable=true]){cursor:auto!important}.hifi-cursor{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:99999;opacity:1;transition:opacity .2s ease}.hifi-cursor[data-hidden=true]{opacity:0}.hifi-cursor__core{position:fixed;top:0;left:0;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:9999px;background:#7fd44a;box-shadow:0 0 0 1.5px #ffffffe6,0 0 10px #7fd44abf;transition:width .18s ease,height .18s ease,margin .18s ease,background-color .18s ease,opacity .15s ease}.hifi-cursor__orbit{position:fixed;top:0;left:0;opacity:0;transition:opacity .18s ease}.hifi-cursor__ring{position:absolute;width:38px;height:15px;margin:-7.5px 0 0 -19px;border:1px solid rgba(139,234,60,.85);border-radius:50%;transform:rotate(-24deg) scale(.6);transition:transform .22s ease}.hifi-cursor__sat{position:absolute;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:9999px;background:#eaffdb;box-shadow:0 0 6px #8bea3ce6}.hifi-cursor[data-state=hover] .hifi-cursor__orbit{opacity:1}.hifi-cursor[data-state=hover] .hifi-cursor__core{width:16px;height:16px;margin:-8px 0 0 -8px;background:#8bea3c;box-shadow:0 0 0 1.5px #fffffff2,0 0 12px #8bea3cd9}.hifi-cursor[data-state=hover] .hifi-cursor__ring{transform:rotate(-24deg) scale(1.45)}.hifi-cursor[data-state=text] .hifi-cursor__core,.hifi-cursor[data-state=text] .hifi-cursor__orbit{opacity:0}.hifi-cursor[data-down=true] .hifi-cursor__core{width:20px;height:20px;margin:-10px 0 0 -10px}.hifi-cursor__pulse{position:fixed;top:0;left:0;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:9999px;border:1.5px solid rgba(139,234,60,.9);opacity:0}.hifi-cursor__pulse.is-live{animation:hifi-cursor-pulse .45s ease-out forwards}@keyframes hifi-cursor-pulse{0%{opacity:.9;transform:scale(1)}to{opacity:0;transform:scale(3.2)}}.rte-content ul{list-style:disc;padding-left:1.5rem}.rte-content ol{list-style:decimal;padding-left:1.5rem}.rte-content a{color:#3b82f6;text-decoration:underline}.rte-content p{margin:.25rem 0}.rte-content h2{font-size:1.125rem;font-weight:700;margin:.75rem 0 .25rem}.rte-content code{font-family:ui-monospace,monospace;background:#7d7d7d26;border-radius:.25rem;padding:.1rem .3rem;font-size:.85em}.legal-content h2{margin:2rem 0 .5rem;font-weight:600;color:#171717}.dark .legal-content h2{color:#fff}.legal-content h2:first-child{margin-top:0}.legal-content p{margin:.5rem 0}.legal-content ul{list-style:disc;padding-left:1.25rem;margin:.5rem 0}.legal-content li{margin:.25rem 0}.legal-content a{color:#6ba626;text-decoration:underline}.legal-content code{font-family:ui-monospace,monospace;background:#7d7d7d26;border-radius:.25rem;padding:.1rem .3rem;font-size:.85em}.file\:mr-3::file-selector-button{margin-right:.75rem}.file\:rounded-md::file-selector-button{border-radius:.375rem}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-brand-500::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.file\:px-3::file-selector-button{padding-left:.75rem;padding-right:.75rem}.file\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-semibold::file-selector-button{font-weight:600}.file\:text-white::file-selector-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.last\:border-b-0:last-child{border-bottom-width:0px}.hover\:-translate-y-0\.5:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-\[var\(--kf-accent\)\]:hover{border-color:var(--kf-accent)}.hover\:border-brand-500:hover{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.hover\:border-neutral-400:hover{--tw-border-opacity: 1;border-color:rgb(163 163 163 / var(--tw-border-opacity, 1))}.hover\:bg-\[var\(--kf-accentsoft\)\]:hover{background-color:var(--kf-accentsoft)}.hover\:bg-amber-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-400:hover{--tw-bg-opacity: 1;background-color:rgb(146 212 68 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-50:hover{--tw-bg-opacity: 1;background-color:rgb(245 251 238 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-600:hover{--tw-bg-opacity: 1;background-color:rgb(88 137 31 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-800:hover{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:bg-white\/15:hover{background-color:#ffffff26}.hover\:bg-white\/20:hover{background-color:#fff3}.hover\:text-brand-500:hover{--tw-text-opacity: 1;color:rgb(107 166 38 / var(--tw-text-opacity, 1))}.hover\:text-brand-600:hover{--tw-text-opacity: 1;color:rgb(88 137 31 / var(--tw-text-opacity, 1))}.hover\:text-neutral-600:hover{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.hover\:text-neutral-700:hover{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:grayscale-0:hover{--tw-grayscale: grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:file\:bg-brand-600::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(88 137 31 / var(--tw-bg-opacity, 1))}.focus\:border-brand-500:focus{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-brand-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 166 38 / var(--tw-ring-opacity, 1))}.active\:cursor-grabbing:active{cursor:grabbing}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:from-black\/95{--tw-gradient-from: rgb(0 0 0 / .95) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.peer:checked~.peer-checked\:translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:bg-brand-500{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.peer:disabled~.peer-disabled\:opacity-60{opacity:.6}.dark\:block:is(.dark *){display:block}.dark\:hidden:is(.dark *){display:none}.dark\:divide-neutral-800:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(38 38 38 / var(--tw-divide-opacity, 1))}.dark\:border-amber-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(180 83 9 / var(--tw-border-opacity, 1))}.dark\:border-brand-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(48 75 17 / var(--tw-border-opacity, 1))}.dark\:border-neutral-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.dark\:border-neutral-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.dark\:border-red-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(127 29 29 / var(--tw-border-opacity, 1))}.dark\:border-t-brand-500:is(.dark *){--tw-border-opacity: 1;border-top-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.dark\:bg-amber-900\/20:is(.dark *){background-color:#78350f33}.dark\:bg-amber-900\/30:is(.dark *){background-color:#78350f4d}.dark\:bg-amber-900\/40:is(.dark *){background-color:#78350f66}.dark\:bg-brand-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.dark\:bg-brand-900\/20:is(.dark *){background-color:#304b1133}.dark\:bg-brand-900\/40:is(.dark *){background-color:#304b1166}.dark\:bg-green-900\/20:is(.dark *){background-color:#14532d33}.dark\:bg-green-900\/40:is(.dark *){background-color:#14532d66}.dark\:bg-neutral-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(82 82 82 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-800\/50:is(.dark *){background-color:#26262680}.dark\:bg-neutral-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-900\/40:is(.dark *){background-color:#17171766}.dark\:bg-neutral-900\/95:is(.dark *){background-color:#171717f2}.dark\:bg-neutral-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(10 10 10 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-950\/95:is(.dark *){background-color:#0a0a0af2}.dark\:bg-red-900\/10:is(.dark *){background-color:#7f1d1d1a}.dark\:bg-red-900\/20:is(.dark *){background-color:#7f1d1d33}.dark\:bg-red-900\/40:is(.dark *){background-color:#7f1d1d66}.dark\:bg-slate-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.dark\:bg-white\/10:is(.dark *){background-color:#ffffff1a}.dark\:text-amber-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.dark\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark\:text-brand-200:is(.dark *){--tw-text-opacity: 1;color:rgb(211 238 180 / var(--tw-text-opacity, 1))}.dark\:text-brand-300:is(.dark *){--tw-text-opacity: 1;color:rgb(182 227 130 / var(--tw-text-opacity, 1))}.dark\:text-brand-400:is(.dark *){--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.dark\:text-brand-400\/10:is(.dark *){color:#92d4441a}.dark\:text-green-300:is(.dark *){--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.dark\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.dark\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.dark\:text-neutral-500:is(.dark *){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.dark\:text-neutral-600:is(.dark *){--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.dark\:text-neutral-900:is(.dark *){--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-slate-100:is(.dark *){--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:shadow-black\/40:is(.dark *){--tw-shadow-color: rgb(0 0 0 / .4);--tw-shadow: var(--tw-shadow-colored)}.dark\:ring-neutral-900:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(23 23 23 / var(--tw-ring-opacity, 1))}.dark\:hover\:border-neutral-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(82 82 82 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-brand-900\/20:hover:is(.dark *){background-color:#304b1133}.dark\:hover\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-neutral-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-neutral-800\/40:hover:is(.dark *){background-color:#26262666}.dark\:hover\:bg-neutral-800\/50:hover:is(.dark *){background-color:#26262680}.dark\:hover\:bg-red-900\/20:hover:is(.dark *){background-color:#7f1d1d33}.dark\:hover\:bg-red-900\/30:hover:is(.dark *){background-color:#7f1d1d4d}.dark\:hover\:text-brand-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.dark\:hover\:text-neutral-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.sm\:left-4{left:1rem}.sm\:left-8{left:2rem}.sm\:right-4{right:1rem}.sm\:top-\[65px\]{top:65px}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:-mt-\[97px\]{margin-top:-97px}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:h-16{height:4rem}.sm\:h-20{height:5rem}.sm\:h-96{height:24rem}.sm\:min-h-\[85vh\]{min-height:85vh}.sm\:w-72{width:18rem}.sm\:w-auto{width:auto}.sm\:flex-none{flex:none}.sm\:shrink-0{flex-shrink:0}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\:grid-cols-\[10rem_1fr\]{grid-template-columns:10rem 1fr}.sm\:grid-cols-\[16rem_1fr\]{grid-template-columns:16rem 1fr}.sm\:grid-cols-\[1fr_120px\]{grid-template-columns:1fr 120px}.sm\:grid-cols-\[1fr_120px_1fr\]{grid-template-columns:1fr 120px 1fr}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:p-10{padding:2.5rem}.sm\:p-5{padding:1.25rem}.sm\:p-6{padding:1.5rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.sm\:py-\[34px\]{padding-top:34px;padding-bottom:34px}.sm\:pl-11{padding-left:2.75rem}.sm\:pl-8{padding-left:2rem}.sm\:pt-1{padding-top:.25rem}.sm\:pt-14{padding-top:3.5rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-5xl{font-size:3rem;line-height:1}.sm\:text-\[46px\]{font-size:46px}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 641px){.min-\[641px\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.min-\[641px\]\:border-b-0{border-bottom-width:0px}.min-\[641px\]\:border-r{border-right-width:1px}.min-\[641px\]\:last\:border-r-0:last-child{border-right-width:0px}}@media (min-width: 768px){.md\:order-1{order:1}.md\:order-2{order:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 901px){.min-\[901px\]\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 981px){.min-\[981px\]\:grid-cols-\[minmax\(0\,1\.35fr\)_minmax\(320px\,1fr\)\]{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr)}}@media (min-width: 1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:w-80{width:20rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:text-\[60px\]{font-size:60px}}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none} diff --git a/hifi/assets/index-CeNRYcbS.js b/hifi/assets/index-CeNRYcbS.js deleted file mode 100644 index 546ade3..0000000 --- a/hifi/assets/index-CeNRYcbS.js +++ /dev/null @@ -1,303 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/iconRegistry-B8BVNGep.js","assets/eye-B3iFgvk-.js","assets/trash-2-CR1es5DZ.js","assets/Brands-C6eVwhOd.js","assets/ImageUploadField-DZzU8Hmm.js","assets/TextStyleWidget-DErOyFHL.js","assets/Models-CwWP_c2v.js","assets/GalleryBrands-DeSW9tLo.js","assets/GalleryProjects-DrxLi25V.js","assets/Packages-By73LRCs.js","assets/Services-Dnq8KYw0.js","assets/Partners-D1IaNCA2.js","assets/Downloads-B-dRPpYw.js","assets/HomeSections-Du6kmhHi.js","assets/RichTextEditor-BR1AFZHM.js","assets/WebsiteSettings-BwL06xkK.js","assets/LegalSettings-DAfuQqrY.js","assets/EmailSettings-Bbqu3Noj.js"])))=>i.map(i=>d[i]); -function iy(e,t){for(var n=0;nr[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function km(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bm={exports:{}},_o={},Sm={exports:{}},K={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Vs=Symbol.for("react.element"),oy=Symbol.for("react.portal"),ay=Symbol.for("react.fragment"),ly=Symbol.for("react.strict_mode"),uy=Symbol.for("react.profiler"),cy=Symbol.for("react.provider"),dy=Symbol.for("react.context"),fy=Symbol.for("react.forward_ref"),hy=Symbol.for("react.suspense"),my=Symbol.for("react.memo"),py=Symbol.for("react.lazy"),cd=Symbol.iterator;function gy(e){return e===null||typeof e!="object"?null:(e=cd&&e[cd]||e["@@iterator"],typeof e=="function"?e:null)}var jm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pm=Object.assign,Tm={};function Cr(e,t,n){this.props=e,this.context=t,this.refs=Tm,this.updater=n||jm}Cr.prototype.isReactComponent={};Cr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Cr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cm(){}Cm.prototype=Cr.prototype;function Mu(e,t,n){this.props=e,this.context=t,this.refs=Tm,this.updater=n||jm}var Lu=Mu.prototype=new Cm;Lu.constructor=Mu;Pm(Lu,Cr.prototype);Lu.isPureReactComponent=!0;var dd=Array.isArray,Em=Object.prototype.hasOwnProperty,Au={current:null},Nm={key:!0,ref:!0,__self:!0,__source:!0};function _m(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Em.call(t,r)&&!Nm.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1>>1,q=E[F];if(0>>1;Fs($,A))fes(Q,$)?(E[F]=Q,E[fe]=A,F=fe):(E[F]=$,E[D]=A,F=D);else if(fes(Q,A))E[F]=Q,E[fe]=A,F=fe;else break e}}return C}function s(E,C){var A=E.sortIndex-C.sortIndex;return A!==0?A:E.id-C.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],d=1,f=null,h=3,p=!1,w=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(E){for(var C=n(c);C!==null;){if(C.callback===null)r(c);else if(C.startTime<=E)r(c),C.sortIndex=C.expirationTime,t(u,C);else break;C=n(c)}}function b(E){if(v=!1,y(E),!w)if(n(u)!==null)w=!0,B(P);else{var C=n(c);C!==null&&W(b,C.startTime-E)}}function P(E,C){w=!1,v&&(v=!1,g(j),j=-1),p=!0;var A=h;try{for(y(C),f=n(u);f!==null&&(!(f.expirationTime>C)||E&&!O());){var F=f.callback;if(typeof F=="function"){f.callback=null,h=f.priorityLevel;var q=F(f.expirationTime<=C);C=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(u)&&r(u),y(C)}else r(u);f=n(u)}if(f!==null)var Me=!0;else{var D=n(c);D!==null&&W(b,D.startTime-C),Me=!1}return Me}finally{f=null,h=A,p=!1}}var T=!1,S=null,j=-1,L=5,N=-1;function O(){return!(e.unstable_now()-NE||125F?(E.sortIndex=A,t(c,E),n(u)===null&&E===n(c)&&(v?(g(j),j=-1):v=!0,W(b,A-F))):(E.sortIndex=q,t(u,E),w||p||(w=!0,B(P))),E},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(E){var C=h;return function(){var A=h;h=C;try{return E.apply(this,arguments)}finally{h=A}}}})(Im);Rm.exports=Im;var Ey=Rm.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ny=x,et=Ey;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tl=Object.prototype.hasOwnProperty,_y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,hd={},md={};function My(e){return tl.call(md,e)?!0:tl.call(hd,e)?!1:_y.test(e)?md[e]=!0:(hd[e]=!0,!1)}function Ly(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ay(e,t,n,r){if(t===null||typeof t>"u"||Ly(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function He(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var _e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_e[e]=new He(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_e[t]=new He(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_e[e]=new He(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_e[e]=new He(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_e[e]=new He(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_e[e]=new He(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_e[e]=new He(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_e[e]=new He(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_e[e]=new He(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ru=/[\-:]([a-z])/g;function Iu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ru,Iu);_e[t]=new He(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ru,Iu);_e[t]=new He(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ru,Iu);_e[t]=new He(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_e[e]=new He(e,1,!1,e.toLowerCase(),null,!1,!1)});_e.xlinkHref=new He("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_e[e]=new He(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vu(e,t,n,r){var s=_e.hasOwnProperty(t)?_e[t]:null;(s!==null?s.type!==0:r||!(2a||s[o]!==i[a]){var u=` -`+s[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{ia=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function Dy(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=oa(e.type,!1),e;case 11:return e=oa(e.type.render,!1),e;case 1:return e=oa(e.type,!0),e;default:return""}}function il(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yn:return"Fragment";case Xn:return"Portal";case nl:return"Profiler";case Ou:return"StrictMode";case rl:return"Suspense";case sl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fm:return(e.displayName||"Context")+".Consumer";case Om:return(e._context.displayName||"Context")+".Provider";case Fu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zu:return t=e.displayName||null,t!==null?t:il(e.type)||"Memo";case Qt:t=e._payload,e=e._init;try{return il(e(t))}catch{}}return null}function Ry(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return il(t);case 8:return t===Ou?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iy(e){var t=Bm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ti(e){e._valueTracker||(e._valueTracker=Iy(e))}function $m(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Bm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ui(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ol(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hm(e,t){t=t.checked,t!=null&&Vu(e,"checked",t,!1)}function al(e,t){Hm(e,t);var n=gn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&ll(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ll(e,t,n){(t!=="number"||Ui(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kr=Array.isArray;function cr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=ni.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ms(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vy=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){Vy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function Km(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function Xm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Km(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Oy=de({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dl(e,t){if(t){if(Oy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function fl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hl=null;function Bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,dr=null,fr=null;function wd(e){if(e=zs(e)){if(typeof ml!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Ro(t),ml(e.stateNode,e.type,t))}}function Ym(e){dr?fr?fr.push(e):fr=[e]:dr=e}function qm(){if(dr){var e=dr,t=fr;if(fr=dr=null,wd(e),t)for(e=0;e>>=0,e===0?32:31-(Yy(e)/qy|0)|0}var ri=64,si=4194304;function Xr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Yi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Xr(a):(i&=o,i!==0&&(r=Xr(i)))}else o=n&~s,o!==0?r=Xr(o):i!==0&&(r=Xr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Os(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function ev(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=es),Nd=" ",_d=!1;function gp(e,t){switch(e){case"keyup":return Ev.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function _v(e,t){switch(e){case"compositionend":return xp(t);case"keypress":return t.which!==32?null:(_d=!0,Nd);case"textInput":return e=t.data,e===Nd&&_d?null:e;default:return null}}function Mv(e,t){if(qn)return e==="compositionend"||!Yu&&gp(e,t)?(e=mp(),Ci=Gu=nn=null,qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Dd(n)}}function kp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bp(){for(var e=window,t=Ui();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ui(e.document)}return t}function qu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function zv(e){var t=bp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kp(n.ownerDocument.documentElement,n)){if(r!==null&&qu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Rd(n,i);var o=Rd(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Qn=null,wl=null,ns=null,kl=!1;function Id(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kl||Qn==null||Qn!==Ui(r)||(r=Qn,"selectionStart"in r&&qu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ns&&ws(ns,r)||(ns=r,r=Zi(wl,"onSelect"),0er||(e.current=Cl[er],Cl[er]=null,er--)}function re(e,t){er++,Cl[er]=e.current,e.current=t}var xn={},Ve=kn(xn),Ge=kn(!1),Vn=xn;function xr(e,t){var n=e.type.contextTypes;if(!n)return xn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ke(e){return e=e.childContextTypes,e!=null}function eo(){ie(Ge),ie(Ve)}function Hd(e,t,n){if(Ve.current!==xn)throw Error(M(168));re(Ve,t),re(Ge,n)}function Mp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(M(108,Ry(e)||"Unknown",s));return de({},n,r)}function to(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Vn=Ve.current,re(Ve,e),re(Ge,Ge.current),!0}function Wd(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Mp(e,t,Vn),r.__reactInternalMemoizedMergedChildContext=e,ie(Ge),ie(Ve),re(Ve,e)):ie(Ge),re(Ge,n)}var Ot=null,Io=!1,wa=!1;function Lp(e){Ot===null?Ot=[e]:Ot.push(e)}function Zv(e){Io=!0,Lp(e)}function bn(){if(!wa&&Ot!==null){wa=!0;var e=0,t=J;try{var n=Ot;for(J=1;e>=o,s-=o,Ft=1<<32-wt(t)+s|n<j?(L=S,S=null):L=S.sibling;var N=h(g,S,y[j],b);if(N===null){S===null&&(S=L);break}e&&S&&N.alternate===null&&t(g,S),m=i(N,m,j),T===null?P=N:T.sibling=N,T=N,S=L}if(j===y.length)return n(g,S),ae&&Pn(g,j),P;if(S===null){for(;jj?(L=S,S=null):L=S.sibling;var O=h(g,S,N.value,b);if(O===null){S===null&&(S=L);break}e&&S&&O.alternate===null&&t(g,S),m=i(O,m,j),T===null?P=O:T.sibling=O,T=O,S=L}if(N.done)return n(g,S),ae&&Pn(g,j),P;if(S===null){for(;!N.done;j++,N=y.next())N=f(g,N.value,b),N!==null&&(m=i(N,m,j),T===null?P=N:T.sibling=N,T=N);return ae&&Pn(g,j),P}for(S=r(g,S);!N.done;j++,N=y.next())N=p(S,g,j,N.value,b),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?j:N.key),m=i(N,m,j),T===null?P=N:T.sibling=N,T=N);return e&&S.forEach(function(H){return t(g,H)}),ae&&Pn(g,j),P}function k(g,m,y,b){if(typeof y=="object"&&y!==null&&y.type===Yn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ei:e:{for(var P=y.key,T=m;T!==null;){if(T.key===P){if(P=y.type,P===Yn){if(T.tag===7){n(g,T.sibling),m=s(T,y.props.children),m.return=g,g=m;break e}}else if(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Qt&&Kd(P)===T.type){n(g,T.sibling),m=s(T,y.props),m.ref=Br(g,T,y),m.return=g,g=m;break e}n(g,T);break}else t(g,T);T=T.sibling}y.type===Yn?(m=Dn(y.props.children,g.mode,b,y.key),m.return=g,g=m):(b=Ri(y.type,y.key,y.props,null,g.mode,b),b.ref=Br(g,m,y),b.return=g,g=b)}return o(g);case Xn:e:{for(T=y.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=s(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Ea(y,g.mode,b),m.return=g,g=m}return o(g);case Qt:return T=y._init,k(g,m,T(y._payload),b)}if(Kr(y))return w(g,m,y,b);if(Ir(y))return v(g,m,y,b);di(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,y),m.return=g,g=m):(n(g,m),m=Ca(y,g.mode,b),m.return=g,g=m),o(g)):n(g,m)}return k}var vr=Ip(!0),Vp=Ip(!1),so=kn(null),io=null,rr=null,ec=null;function tc(){ec=rr=io=null}function nc(e){var t=so.current;ie(so),e._currentValue=t}function _l(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function mr(e,t){io=e,ec=rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ue=!0),e.firstContext=null)}function ct(e){var t=e._currentValue;if(ec!==e)if(e={context:e,memoizedValue:t,next:null},rr===null){if(io===null)throw Error(M(308));rr=e,io.dependencies={lanes:0,firstContext:e}}else rr=rr.next=e;return t}var Nn=null;function rc(e){Nn===null?Nn=[e]:Nn.push(e)}function Op(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,rc(t)):(n.next=s.next,s.next=n),t.interleaved=n,Ut(e,r)}function Ut(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Zt=!1;function sc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Y&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Ut(e,n)}return s=r.interleaved,s===null?(t.next=t,rc(r)):(t.next=s.next,s.next=t),r.interleaved=t,Ut(e,n)}function Ni(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hu(e,n)}}function Xd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function oo(e,t,n,r){var s=e.updateQueue;Zt=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var u=a,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(i!==null){var f=s.baseState;o=0,d=c=u=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,v=a;switch(h=t,p=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){f=w.call(p,f,h);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,h=typeof w=="function"?w.call(p,f,h):w,h==null)break e;f=de({},f,h);break e;case 2:Zt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=p,u=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(u=f),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);zn|=o,e.lanes=o,e.memoizedState=f}}function Yd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ba.transition;ba.transition={};try{e(!1),t()}finally{J=n,ba.transition=r}}function ng(){return dt().memoizedState}function n1(e,t,n){var r=hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rg(e))sg(t,n);else if(n=Op(e,t,n,r),n!==null){var s=Be();kt(n,e,r,s),ig(n,t,r)}}function r1(e,t,n){var r=hn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rg(e))sg(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,St(a,o)){var u=t.interleaved;u===null?(s.next=s,rc(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Op(e,t,s,r),n!==null&&(s=Be(),kt(n,e,r,s),ig(n,t,r))}}function rg(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function sg(e,t){rs=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ig(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hu(e,n)}}var uo={readContext:ct,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},s1={readContext:ct,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Qd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mi(4194308,4,Qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var n=Ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=n1.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:qd,useDebugValue:fc,useDeferredValue:function(e){return Ct().memoizedState=e},useTransition:function(){var e=qd(!1),t=e[0];return e=t1.bind(null,e[1]),Ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,s=Ct();if(ae){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Te===null)throw Error(M(349));Fn&30||Hp(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Qd(Up.bind(null,r,i,e),[e]),r.flags|=2048,Es(9,Wp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ct(),t=Te.identifierPrefix;if(ae){var n=zt,r=Ft;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ts++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[_t]=t,e[Ss]=r,pg(e,t,!1,!1),t.stateNode=e;e:{switch(o=fl(n,r),n){case"dialog":se("cancel",e),se("close",e),s=r;break;case"iframe":case"object":case"embed":se("load",e),s=r;break;case"video":case"audio":for(s=0;sbr&&(t.flags|=128,r=!0,$r(i,!1),t.lanes=4194304)}else{if(!r)if(e=ao(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$r(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ae)return Ae(t),null}else 2*pe()-i.renderingStartTime>br&&n!==1073741824&&(t.flags|=128,r=!0,$r(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=le.current,re(le,r?n&1|2:n&1),t):(Ae(t),null);case 22:case 23:return yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qe&1073741824&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function f1(e,t){switch(Zu(t),t.tag){case 1:return Ke(t.type)&&eo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),ie(Ge),ie(Ve),ac(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oc(t),null;case 13:if(ie(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(le),null;case 4:return wr(),null;case 10:return nc(t.type._context),null;case 22:case 23:return yc(),null;case 24:return null;default:return null}}var hi=!1,Ie=!1,h1=typeof WeakSet=="function"?WeakSet:Set,I=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function Fl(e,t,n){try{n()}catch(r){me(e,t,r)}}var uf=!1;function m1(e,t){if(bl=qi,e=bp(),qu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||s!==0&&f.nodeType!==3||(a=o+s),f!==i||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===s&&(a=o),h===i&&++d===r&&(u=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sl={focusedElem:e,selectionRange:n},qi=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,k=w.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:gt(t.type,v),k);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(b){me(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return w=uf,uf=!1,w}function ss(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Fl(t,n,i)}s=s.next}while(s!==r)}}function Fo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function zl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function yg(e){var t=e.alternate;t!==null&&(e.alternate=null,yg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[Ss],delete t[Tl],delete t[qv],delete t[Qv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vg(e){return e.tag===5||e.tag===3||e.tag===4}function cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ji));else if(r!==4&&(e=e.child,e!==null))for(Bl(e,t,n),e=e.sibling;e!==null;)Bl(e,t,n),e=e.sibling}function $l(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($l(e,t,n),e=e.sibling;e!==null;)$l(e,t,n),e=e.sibling}var Ee=null,xt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)wg(e,t,n),n=n.sibling}function wg(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Mo,n)}catch{}switch(n.tag){case 5:Ie||sr(n,t);case 6:var r=Ee,s=xt;Ee=null,Yt(e,t,n),Ee=r,xt=s,Ee!==null&&(xt?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(xt?(e=Ee,n=n.stateNode,e.nodeType===8?va(e.parentNode,n):e.nodeType===1&&va(e,n),ys(e)):va(Ee,n.stateNode));break;case 4:r=Ee,s=xt,Ee=n.stateNode.containerInfo,xt=!0,Yt(e,t,n),Ee=r,xt=s;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Fl(n,t,o),s=s.next}while(s!==r)}Yt(e,t,n);break;case 1:if(!Ie&&(sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){me(n,t,a)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Yt(e,t,n),Ie=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function df(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new h1),t.forEach(function(r){var s=S1.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;rs&&(s=o),r&=~i}if(r=s,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*g1(r/1960))-r,10e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,ho=0,Y&6)throw Error(M(331));var s=Y;for(Y|=4,I=e.current;I!==null;){var i=I,o=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var u=0;upe()-gc?An(e,0):pc|=n),Xe(e,t)}function Eg(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=Be();e=Ut(e,t),e!==null&&(Os(e,t,n),Xe(e,n))}function b1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Eg(e,n)}function S1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Eg(e,n)}var Ng;Ng=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ge.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,c1(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,ae&&t.flags&1048576&&Ap(t,ro,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Li(e,t),e=t.pendingProps;var s=xr(t,Ve.current);mr(t,n),s=uc(null,t,r,e,s,n);var i=cc();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(i=!0,to(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,sc(t),s.updater=Oo,t.stateNode=s,s._reactInternals=t,Ll(t,r,e,n),t=Rl(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&Qu(t),Oe(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Li(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=P1(r),e=gt(r,e),s){case 0:t=Dl(null,t,r,e,n);break e;case 1:t=of(null,t,r,e,n);break e;case 11:t=rf(null,t,r,e,n);break e;case 14:t=sf(null,t,r,gt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),Dl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),of(e,t,r,s,n);case 3:e:{if(fg(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Fp(e,t),oo(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=kr(Error(M(423)),t),t=af(e,t,r,n,s);break e}else if(r!==s){s=kr(Error(M(424)),t),t=af(e,t,r,n,s);break e}else for(Qe=cn(t.stateNode.containerInfo.firstChild),Ze=t,ae=!0,yt=null,n=Vp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yr(),r===s){t=Gt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return zp(t),e===null&&Nl(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,jl(r,s)?o=null:i!==null&&jl(r,i)&&(t.flags|=32),dg(e,t),Oe(e,t,o,n),t.child;case 6:return e===null&&Nl(t),null;case 13:return hg(e,t,n);case 4:return ic(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),rf(e,t,r,s,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,re(so,r._currentValue),r._currentValue=o,i!==null)if(St(i.value,o)){if(i.children===s.children&&!Ge.current){t=Gt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=$t(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),_l(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(M(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),_l(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Oe(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,mr(t,n),s=ct(s),r=r(s),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,s=gt(r,t.pendingProps),s=gt(r.type,s),sf(e,t,r,s,n);case 15:return ug(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:gt(r,s),Li(e,t),t.tag=1,Ke(r)?(e=!0,to(t)):e=!1,mr(t,n),og(t,r,s),Ll(t,r,s,n),Rl(null,t,r,!0,e,n);case 19:return mg(e,t,n);case 22:return cg(e,t,n)}throw Error(M(156,t.tag))};function _g(e,t){return rp(e,t)}function j1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function at(e,t,n,r){return new j1(e,t,n,r)}function wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function P1(e){if(typeof e=="function")return wc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fu)return 11;if(e===zu)return 14}return 2}function mn(e,t){var n=e.alternate;return n===null?(n=at(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ri(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")wc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yn:return Dn(n.children,s,i,t);case Ou:o=8,s|=8;break;case nl:return e=at(12,n,t,s|2),e.elementType=nl,e.lanes=i,e;case rl:return e=at(13,n,t,s),e.elementType=rl,e.lanes=i,e;case sl:return e=at(19,n,t,s),e.elementType=sl,e.lanes=i,e;case zm:return Bo(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Om:o=10;break e;case Fm:o=9;break e;case Fu:o=11;break e;case zu:o=14;break e;case Qt:o=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=at(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Dn(e,t,n,r){return e=at(7,e,r,t),e.lanes=n,e}function Bo(e,t,n,r){return e=at(22,e,r,t),e.elementType=zm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ca(e,t,n){return e=at(6,e,null,t),e.lanes=n,e}function Ea(e,t,n){return t=at(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function T1(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=la(0),this.expirationTimes=la(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=la(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function kc(e,t,n,r,s,i,o,a,u){return e=new T1(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=at(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sc(i),e}function C1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dg)}catch(e){console.error(e)}}Dg(),Dm.exports=tt;var Go=Dm.exports;const pN=km(Go);var vf=Go;el.createRoot=vf.createRoot,el.hydrateRoot=vf.hydrateRoot;/** - * @remix-run/router v1.23.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Pc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function A1(){return Math.random().toString(36).substr(2,8)}function kf(e,t){return{usr:e.state,key:e.key,idx:t}}function Kl(e,t,n,r){return n===void 0&&(n=null),_s({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_r(t):t,{state:n,key:t&&t.key||r||A1()})}function go(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _r(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function D1(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=sn.Pop,u=null,c=d();c==null&&(c=0,o.replaceState(_s({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=sn.Pop;let k=d(),g=k==null?null:k-c;c=k,u&&u({action:a,location:v.location,delta:g})}function h(k,g){a=sn.Push;let m=Kl(v.location,k,g);c=d()+1;let y=kf(m,c),b=v.createHref(m);try{o.pushState(y,"",b)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;s.location.assign(b)}i&&u&&u({action:a,location:v.location,delta:1})}function p(k,g){a=sn.Replace;let m=Kl(v.location,k,g);c=d();let y=kf(m,c),b=v.createHref(m);o.replaceState(y,"",b),i&&u&&u({action:a,location:v.location,delta:0})}function w(k){let g=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof k=="string"?k:go(k);return m=m.replace(/ $/,"%20"),ce(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let v={get action(){return a},get location(){return e(s,o)},listen(k){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(wf,f),u=k,()=>{s.removeEventListener(wf,f),u=null}},createHref(k){return t(s,k)},createURL:w,encodeLocation(k){let g=w(k);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(k){return o.go(k)}};return v}var bf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bf||(bf={}));function R1(e,t,n){return n===void 0&&(n="/"),I1(e,t,n)}function I1(e,t,n,r){let s=typeof t=="string"?_r(t):t,i=Sr(s.pathname||"/",n);if(i==null)return null;let o=Rg(e);V1(o);let a=null,u=X1(i);for(let c=0;a==null&&c{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&(ce(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=pn([r,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&(ce(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Rg(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:W1(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let u of Ig(i.path))s(i,o,u)}),t}function Ig(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=Ig(r.join("/")),a=[];return a.push(...o.map(u=>u===""?i:[i,u].join("/"))),s&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function V1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:U1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const O1=/^:[\w-]+$/,F1=3,z1=2,B1=1,$1=10,H1=-2,Sf=e=>e==="*";function W1(e,t){let n=e.split("/"),r=n.length;return n.some(Sf)&&(r+=H1),t&&(r+=z1),n.filter(s=>!Sf(s)).reduce((s,i)=>s+(O1.test(i)?F1:i===""?B1:$1),r)}function U1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function G1(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a{let{paramName:h,isOptional:p}=d;if(h==="*"){let v=a[f]||"";o=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const w=a[f];return p&&!w?c[h]=void 0:c[h]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function K1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Pc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function X1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Sr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Y1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,q1=e=>Y1.test(e);function Q1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?_r(e):e,i;if(n)if(q1(n))i=n;else{if(n.includes("//")){let o=n;n=Vg(n),Pc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=jf(n.substring(1),"/"):i=jf(n,t)}else i=t;return{pathname:i,search:ew(r),hash:tw(s)}}function jf(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Na(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Z1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Tc(e,t){let n=Z1(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Cc(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=_r(e):(s=_s({},e),ce(!s.pathname||!s.pathname.includes("?"),Na("?","pathname","search",s)),ce(!s.pathname||!s.pathname.includes("#"),Na("#","pathname","hash",s)),ce(!s.search||!s.search.includes("#"),Na("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?t[f]:"/"}let u=Q1(s,a),c=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const Vg=e=>e.replace(/\/\/+/g,"/"),pn=e=>Vg(e.join("/")),J1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ew=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Og=["post","put","patch","delete"];new Set(Og);const rw=["get",...Og];new Set(rw);/** - * React Router v6.30.4 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),x.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=Cc(c,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:pn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}const ow=x.createContext(null);function aw(e){let t=x.useContext(Dt).outlet;return t&&x.createElement(ow.Provider,{value:e},t)}function $s(){let{matches:e}=x.useContext(Dt),t=e[e.length-1];return t?t.params:{}}function qo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(Xt),{matches:s}=x.useContext(Dt),{pathname:i}=rt(),o=JSON.stringify(Tc(s,r.v7_relativeSplatPath));return x.useMemo(()=>Cc(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function lw(e,t){return uw(e,t)}function uw(e,t,n,r){Mr()||ce(!1);let{navigator:s}=x.useContext(Xt),{matches:i}=x.useContext(Dt),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let c=rt(),d;if(t){var f;let k=typeof t=="string"?_r(t):t;u==="/"||(f=k.pathname)!=null&&f.startsWith(u)||ce(!1),d=k}else d=c;let h=d.pathname||"/",p=h;if(u!=="/"){let k=u.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(k.length).join("/")}let w=R1(e,{pathname:p}),v=mw(w&&w.map(k=>Object.assign({},k,{params:Object.assign({},a,k.params),pathname:pn([u,s.encodeLocation?s.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?u:pn([u,s.encodeLocation?s.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),i,n,r);return t&&v?x.createElement(Xo.Provider,{value:{location:Ms({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:sn.Pop}},v):v}function cw(){let e=yw(),t=nw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:s},n):null,null)}const dw=x.createElement(cw,null);class fw extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(Dt.Provider,{value:this.props.routeContext},x.createElement(zg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hw(e){let{routeContext:t,match:n,children:r}=e,s=x.useContext(Ko);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Dt.Provider,{value:t},r)}function mw(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||ce(!1),o=o.slice(0,Math.min(o.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let p,w=!1,v=null,k=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||dw,u&&(c<0&&h===0?(ww("route-fallback"),w=!0,k=null):c===h&&(w=!0,k=f.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,h+1)),m=()=>{let y;return p?y=v:w?y=k:f.route.Component?y=x.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,x.createElement(hw,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?x.createElement(fw,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var $g=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($g||{}),Hg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Hg||{});function pw(e){let t=x.useContext(Ko);return t||ce(!1),t}function gw(e){let t=x.useContext(Fg);return t||ce(!1),t}function xw(e){let t=x.useContext(Dt);return t||ce(!1),t}function Wg(e){let t=xw(),n=t.matches[t.matches.length-1];return n.route.id||ce(!1),n.route.id}function yw(){var e;let t=x.useContext(zg),n=gw(),r=Wg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vw(){let{router:e}=pw($g.UseNavigateStable),t=Wg(Hg.UseNavigateStable),n=x.useRef(!1);return Bg(()=>{n.current=!0}),x.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ms({fromRouteId:t},i)))},[e,t])}const Pf={};function ww(e,t,n){Pf[e]||(Pf[e]=!0)}function kw(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ls(e){let{to:t,replace:n,state:r,relative:s}=e;Mr()||ce(!1);let{future:i,static:o}=x.useContext(Xt),{matches:a}=x.useContext(Dt),{pathname:u}=rt(),c=Yo(),d=Cc(t,Tc(a,i.v7_relativeSplatPath),u,s==="path"),f=JSON.stringify(d);return x.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:s}),[c,f,s,n,r]),null}function Ec(e){return aw(e.context)}function z(e){ce(!1)}function bw(e){let{basename:t="/",children:n=null,location:r,navigationType:s=sn.Pop,navigator:i,static:o=!1,future:a}=e;Mr()&&ce(!1);let u=t.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:u,navigator:i,static:o,future:Ms({v7_relativeSplatPath:!1},a)}),[u,a,i,o]);typeof r=="string"&&(r=_r(r));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:w="default"}=r,v=x.useMemo(()=>{let k=Sr(d,u);return k==null?null:{location:{pathname:k,search:f,hash:h,state:p,key:w},navigationType:s}},[u,d,f,h,p,w,s]);return v==null?null:x.createElement(Xt.Provider,{value:c},x.createElement(Xo.Provider,{children:n,value:v}))}function Sw(e){let{children:t,location:n}=e;return lw(Yl(t),n)}new Promise(()=>{});function Yl(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,s)=>{if(!x.isValidElement(r))return;let i=[...t,s];if(r.type===x.Fragment){n.push.apply(n,Yl(r.props.children,i));return}r.type!==z&&ce(!1),!r.props.index||!r.props.children||ce(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Yl(r.props.children,i)),n.push(o)}),n}/** - * React Router DOM v6.30.4 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function xo(){return xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function Tw(e,t){let n=ql(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const Cw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ew=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Nw="6";try{window.__reactRouterVersion=Nw}catch{}const _w=x.createContext({isTransitioning:!1}),Mw="startTransition",Tf=ky[Mw];function Lw(e){let{basename:t,children:n,future:r,window:s}=e,i=x.useRef();i.current==null&&(i.current=L1({window:s,v5Compat:!0}));let o=i.current,[a,u]=x.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=x.useCallback(f=>{c&&Tf?Tf(()=>u(f)):u(f)},[u,c]);return x.useLayoutEffect(()=>o.listen(d),[o,d]),x.useEffect(()=>kw(r),[r]),x.createElement(bw,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Aw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,U=x.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:u,to:c,preventScrollReset:d,viewTransition:f}=t,h=Ug(t,Cw),{basename:p}=x.useContext(Xt),w,v=!1;if(typeof c=="string"&&Dw.test(c)&&(w=c,Aw))try{let y=new URL(window.location.href),b=c.startsWith("//")?new URL(y.protocol+c):new URL(c),P=Sr(b.pathname,p);b.origin===y.origin&&P!=null?c=P+b.search+b.hash:v=!0}catch{}let k=sw(c,{relative:s}),g=Vw(c,{replace:o,state:a,target:u,preventScrollReset:d,relative:s,viewTransition:f});function m(y){r&&r(y),y.defaultPrevented||g(y)}return x.createElement("a",xo({},h,{href:w||k,onClick:v||i?r:m,ref:n,target:u}))}),Rw=x.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:i="",end:o=!1,style:a,to:u,viewTransition:c,children:d}=t,f=Ug(t,Ew),h=qo(u,{relative:f.relative}),p=rt(),w=x.useContext(Fg),{navigator:v,basename:k}=x.useContext(Xt),g=w!=null&&Fw(h)&&c===!0,m=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,y=p.pathname,b=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;s||(y=y.toLowerCase(),b=b?b.toLowerCase():null,m=m.toLowerCase()),b&&k&&(b=Sr(b,k)||b);const P=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=y===m||!o&&y.startsWith(m)&&y.charAt(P)==="/",S=b!=null&&(b===m||!o&&b.startsWith(m)&&b.charAt(m.length)==="/"),j={isActive:T,isPending:S,isTransitioning:g},L=T?r:void 0,N;typeof i=="function"?N=i(j):N=[i,T?"active":null,S?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(j):a;return x.createElement(U,xo({},f,{"aria-current":L,className:N,ref:n,style:O,to:u,viewTransition:c}),typeof d=="function"?d(j):d)});var Ql;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ql||(Ql={}));var Cf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Cf||(Cf={}));function Iw(e){let t=x.useContext(Ko);return t||ce(!1),t}function Vw(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,u=Yo(),c=rt(),d=qo(e,{relative:o});return x.useCallback(f=>{if(Pw(f,n)){f.preventDefault();let h=r!==void 0?r:go(c)===go(d);u(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,u,d,r,s,n,e,i,o,a])}function Ow(e){let t=x.useRef(ql(e)),n=x.useRef(!1),r=rt(),s=x.useMemo(()=>Tw(r.search,n.current?null:t.current),[r.search]),i=Yo(),o=x.useCallback((a,u)=>{const c=ql(typeof a=="function"?a(s):a);n.current=!0,i("?"+c,u)},[i,s]);return[s,o]}function Fw(e,t){t===void 0&&(t={});let n=x.useContext(_w);n==null&&ce(!1);let{basename:r}=Iw(Ql.useViewTransitionState),s=qo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Sr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Sr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Xl(s.pathname,o)!=null||Xl(s.pathname,i)!=null}const zw="modulepreload",Bw=function(e){return"/"+e},Ef={},ee=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(u=>{if(u=Bw(u),u in Ef)return;Ef[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":zw,c||(f.as="script"),f.crossOrigin="",f.href=u,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};function $w(){const{pathname:e}=rt();return x.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}const Hw='a, button, [role="button"], label, select, summary, [data-cursor="hover"], .cursor-pointer',Ww='input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]), textarea, [contenteditable="true"]';function Uw(){const e=x.useRef(null),t=x.useRef(null),n=x.useRef(null),r=x.useRef(null),s=x.useRef(null);return x.useEffect(()=>{const i=window.matchMedia("(pointer: fine)"),o=window.matchMedia("(prefers-reduced-motion: reduce)");if(!i.matches||o.matches)return;const a=e.current,u=t.current,c=n.current,d=r.current,f=s.current;if(!a||!u||!c||!d||!f)return;document.documentElement.classList.add("hifi-cursor-on");const h=-24*Math.PI/180,p=Math.cos(h),w=Math.sin(h);let v=-100,k=-100,g=0,m=2.4,y=2.4,b=16,P=6.5,T=16,S=6.5,j=!1,L,N=performance.now();const O=E=>{const C=Math.min((E-N)/1e3,.05);N=E,m+=(y-m)*Math.min(1,C*8),b+=(T-b)*Math.min(1,C*10),P+=(S-P)*Math.min(1,C*10),g+=m*C,u.style.transform=`translate3d(${v}px, ${k}px, 0)`,c.style.transform=`translate3d(${v}px, ${k}px, 0)`;const A=Math.cos(g)*b,F=Math.sin(g)*P;d.style.transform=`translate(${A*p-F*w}px, ${A*w+F*p}px)`,L=requestAnimationFrame(O)},H=E=>{a.dataset.state=E;const C=E==="hover";y=C?7:2.4,T=C?23:16,S=C?9.5:6.5},oe=E=>{v=E.clientX,k=E.clientY,j||(j=!0,a.dataset.hidden="false")},_=E=>{const C=E.target;C instanceof Element&&(C.closest(Ww)?H("text"):C.closest(Hw)?H("hover"):H("default"))},R=()=>{a.dataset.down="true",f.style.left=`${v}px`,f.style.top=`${k}px`,f.classList.remove("is-live"),f.offsetWidth,f.classList.add("is-live")},B=()=>{a.dataset.down="false"},W=()=>{j=!1,a.dataset.hidden="true"};return document.addEventListener("mousemove",oe,{passive:!0}),document.addEventListener("mouseover",_,{passive:!0}),document.addEventListener("mousedown",R,{passive:!0}),document.addEventListener("mouseup",B,{passive:!0}),document.documentElement.addEventListener("mouseleave",W),window.addEventListener("blur",W),L=requestAnimationFrame(O),()=>{cancelAnimationFrame(L),document.removeEventListener("mousemove",oe),document.removeEventListener("mouseover",_),document.removeEventListener("mousedown",R),document.removeEventListener("mouseup",B),document.documentElement.removeEventListener("mouseleave",W),window.removeEventListener("blur",W),document.documentElement.classList.remove("hifi-cursor-on")}},[]),l.jsxs("div",{ref:e,className:"hifi-cursor","data-state":"default","data-hidden":"true","data-down":"false","aria-hidden":"true",children:[l.jsxs("div",{ref:n,className:"hifi-cursor__orbit",children:[l.jsx("div",{className:"hifi-cursor__ring"}),l.jsx("div",{ref:r,className:"hifi-cursor__sat"})]}),l.jsx("div",{ref:t,className:"hifi-cursor__core"}),l.jsx("div",{ref:s,className:"hifi-cursor__pulse"})]})}const Gw=`${"/".replace(/\/$/,"")}/api`;let Zl=0;const Jl=new Set,Nf=e=>{Zl+=e,Jl.forEach(t=>t(Zl))},Kw=()=>Zl,Xw=e=>(Jl.add(e),()=>Jl.delete(e));async function Wr(e,t={}){Nf(1);try{return await Yw(e,t)}finally{Nf(-1)}}async function Yw(e,t){const n=await fetch(`${Gw}${e}`,{credentials:"include",headers:t.body instanceof FormData?{}:{"Content-Type":"application/json"},...t}),r=await n.text();let s=null;if(r)try{s=JSON.parse(r)}catch{}if(!n.ok)throw new Error((s==null?void 0:s.error)||`Fehler ${n.status}`);if(s===null&&r)throw new Error("Unerwartete Server-Antwort (kein gültiges JSON)");return s}const Z={get:(e,t)=>Wr(e,t),post:(e,t)=>Wr(e,{method:"POST",body:t instanceof FormData?t:JSON.stringify(t)}),put:(e,t)=>Wr(e,{method:"PUT",body:JSON.stringify(t)}),patch:(e,t)=>Wr(e,{method:"PATCH",body:JSON.stringify(t)}),delete:e=>Wr(e,{method:"DELETE"})};function qw({children:e}){const[t,n]=x.useState({pathname:null,needsSetup:null}),r=rt(),s=t.needsSetup===!1;x.useEffect(()=>{if(s)return;let o=!1;return Z.get("/setup/status").then(a=>{o||n({pathname:r.pathname,needsSetup:a.needs_setup})}).catch(()=>{o||n({pathname:r.pathname,needsSetup:!1})}),()=>{o=!0}},[r.pathname,s]);const i=t.pathname===r.pathname;return r.pathname==="/setup"?s?l.jsx(Ls,{to:"/",replace:!0}):!i||t.needsSetup===null?l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"}):e:i&&t.needsSetup?l.jsx(Ls,{to:"/setup",replace:!0}):e}/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Gg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Qw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Zw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const _f=e=>{const t=Zw(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var _a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Jw=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Kg=x.createContext({});function gN({children:e,size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}){const o=x.useMemo(()=>({size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}),[t,n,r,s,i]);return x.createElement(Kg.Provider,{value:o},e)}const ek=()=>x.useContext(Kg),tk=x.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},u)=>{const{size:c=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:h="currentColor",className:p=""}=ek()??{},w=r??f?Number(n??d)*24/Number(t??c):n??d;return x.createElement("svg",{ref:u,..._a,width:t??c??_a.width,height:t??c??_a.height,stroke:e??h,strokeWidth:w,className:Gg("lucide",p,s),...!i&&!Jw(a)&&{"aria-hidden":"true"},...a},[...o.map(([v,k])=>x.createElement(v,k)),...Array.isArray(i)?i:[i]])});/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const G=(e,t)=>{const n=x.forwardRef(({className:r,...s},i)=>x.createElement(tk,{ref:i,iconNode:t,className:Gg(`lucide-${Qw(_f(e))}`,`lucide-${e}`,r),...s}));return n.displayName=_f(e),n};/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const nk=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],rk=G("boxes",nk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const sk=[["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],ik=G("car-front",sk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ok=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],Xg=G("car",ok);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ak=[["path",{d:"M18 19V9a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2h2",key:"19jm3t"}],["path",{d:"M2 9h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2",key:"13hakp"}],["path",{d:"M22 17v1a1 1 0 0 1-1 1H10v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9",key:"1crci8"}],["circle",{cx:"8",cy:"19",r:"2",key:"t8fc5s"}]],lk=G("caravan",ak);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const uk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ck=G("check",uk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const dk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fk=G("chevron-down",dk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const hk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],mk=G("chevron-left",hk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const pk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],gk=G("chevron-right",pk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const xk=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],yk=G("chevron-up",xk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const vk=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],wk=G("circle-play",vk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const kk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Yg=G("clock",kk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const bk=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],Sk=G("cog",bk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const jk=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Pk=G("download",jk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Tk=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ck=G("external-link",Tk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ek=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],Nk=G("file-archive",Ek);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const _k=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],Mk=G("file-image",_k);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Lk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",key:"1tzo1f"}]],Ak=G("file-play",Lk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Dk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Mf=G("file-text",Dk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Rk=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Ik=G("flame",Rk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Vk=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Ok=G("layout-dashboard",Vk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Fk=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],zk=G("lightbulb",Fk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Bk=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],$k=G("lock",Bk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Hk=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],Wk=G("log-in",Hk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Uk=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Lf=G("mail",Uk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Gk=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],qg=G("map-pin",Gk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Kk=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Xk=G("message-circle",Kk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Yk=[["rect",{x:"5",y:"2",width:"14",height:"20",rx:"7",key:"11ol66"}],["path",{d:"M12 6v4",key:"16clxf"}]],qk=G("mouse",Yk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Qk=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Zk=G("music",Qk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Jk=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],eb=G("navigation",Jk);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const tb=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],nb=G("package",tb);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const rb=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],yo=G("phone",rb);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const sb=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ib=G("send",sb);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ob=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],ab=G("shield-alert",ob);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const lb=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],ub=G("shopping-bag",lb);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const cb=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],db=G("thumbs-up",cb);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const fb=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],hb=G("user",fb);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const mb=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],pb=G("video",mb);/** - * @license lucide-react v1.23.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const gb=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],xb=G("zap",gb),Qg=x.createContext(null);function yb(){const e=new Date,t=e.getHours()+e.getMinutes()/60;return t>=6.5&&t<21?"light":"dark"}function vb({children:e}){const[t,n]=x.useState(()=>{const s=localStorage.getItem("hifi-theme");return s==="light"||s==="dark"?s:yb()});x.useEffect(()=>{document.documentElement.classList.toggle("dark",t==="dark"),localStorage.setItem("hifi-theme",t)},[t]);const r=()=>n(s=>s==="dark"?"light":"dark");return l.jsx(Qg.Provider,{value:{theme:t,toggleTheme:r},children:e})}function wb(){return x.useContext(Qg)}const kb={nav:{openMenu:"Menü öffnen",closeMenu:"Menü schließen",close:"Schließen",adminPanel:"Zum Admin-Panel",vehicles:"Fahrzeuge",services:"Leistungen",gallery:"Galerie",contact:"Kontakt",whatsapp:"WhatsApp",shop:"Zum Shop",downloads:"Downloads"},themeToggle:{label:"Theme umschalten"},languageToggle:{label:"Sprache auswählen"},footer:{routePlan:"Route planen",contactHeading:"Kontakt",contactForm:"Kontaktformular",hoursHeading:"Öffnungszeiten",open:"Geöffnet",closed:"Geschlossen",days:{monFri:"Montag – Freitag",sat:"Samstag",sun:"Sonntag"},copyright:e=>`© ${e} HifiPlanet. Alle Angaben ohne Gewähr.`,imprint:"Impressum",privacy:"Datenschutz",terms:"AGB",downloads:"Downloads",cookieSettings:"Cookie-Einstellungen"},cookieConsent:{bannerText:"Wir verwenden nur technisch notwendige Cookies. Für Google Maps, YouTube-Videos und Statistik-Cookies benötigen wir zusätzlich deine Zustimmung, da dabei Daten an Google übertragen werden.",moreInfo:"Mehr dazu in unserer",privacyPolicy:"Datenschutzerklärung",settings:"Einstellungen",onlyNecessary:"Nur notwendige",acceptAll:"Alle akzeptieren",modalTitle:"Cookie-Einstellungen",modalIntro:"Lege fest, welche Kategorien du zulassen möchtest. Mehr dazu in unserer",necessaryTitle:"Notwendig",necessaryDesc:"Für den Betrieb der Website erforderlich (z. B. Login-Session, Theme- und Cookie-Einstellung). Kann nicht deaktiviert werden.",externalTitle:"Externe Medien",externalDesc:"Google Maps und YouTube-Videos. Beim Laden werden Daten (u. a. deine IP-Adresse) an Google übertragen.",analyticsTitle:"Statistik",analyticsDesc:"Google Analytics hilft uns zu verstehen, wie die Website genutzt wird. Dabei werden Daten an Google übertragen.",cancel:"Abbrechen",saveSelection:"Auswahl speichern"},maintenance:{title:"Wartungsarbeiten",defaultMessage:"Dieser Bereich wird gerade aktualisiert. Bitte schau in Kürze wieder vorbei.",login:"Anmelden"},lightbox:{close:"Schließen",previous:"Vorheriges Bild",next:"Nächstes Bild"},home:{metaTitle:"Car-Hifi Umbauten nach Maß",metaDescription:"HifiPlanet – dein Car-Hifi Spezialist in Amorbach. Marke und Modell wählen, passende Sound-Pakete entdecken und unverbindlich anfragen.",stickyCta:"Bereit für deinen Sound-Umbau?",selectVehicle:"Fahrzeug auswählen",getInTouch:"Kontakt aufnehmen",welcome:"Willkommen bei HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Dein Car-Hifi Spezialist für individuelle Sound-Umbauten. Wähle dein Fahrzeug, entdecke passende Pakete und frag unverbindlich an – wir kümmern uns um den Rest.",stats:[{value:"20+",label:"Jahre Erfahrung"},{value:"Riesige",label:"3D-Druckfarm im eigenen Haus"},{value:"Eigene",label:"CNC- & Laserwerkstatt"},{value:"International",label:"anerkannter Car-Hifi-Spezialist"}],brandsHeading:"Marken, mit denen wir arbeiten",youtubeBadge:"HifiPlanet präsentiert",youtubeTitle:"Das Handwerk hinter deinem Sound",youtubeText:"Entdecke die Handwerkskunst hinter unserer Arbeit",youtubeCta:"Jetzt ansehen",heroImageAlt:"Ground Zero Subwoofer und Endstufen mit violetter Ambiente-Beleuchtung",craftImageAlt:"Individueller Subwoofer-Bau",adviceImageAlt:"Endstufen-Einbau mit Ambiente-Beleuchtung",moreImageAlt:"Hochwertige Endstufe und Subwoofer, Studioaufnahme",craftEyebrow:"Handwerk",craftTitle:"Präzisionsarbeit in jedem Detail",craftText:"Ob eigens gefertigte Subwoofer-Gehäuse, integrierte Beleuchtung oder unsichtbar verlegte Kabelwege – dank eigener CNC-, Laser- und 3D-Druck-Fertigung entstehen bei uns Lösungen, die es von der Stange nicht gibt.",adviceEyebrow:"Beratung",adviceTitle:"Von der ersten Idee bis zum letzten Schliff",adviceText:"Jedes Fahrzeug und jeder Anspruch ist anders. Deshalb beraten wir dich persönlich und unverbindlich – vom dezenten Upgrade bis zum kompromisslosen High-End-System.",insightsTitle:"Einblicke in unsere Umbauten",insightsText:"Vom unauffälligen Sound-Upgrade bis zum aufwendigen Komplettumbau – Handarbeit aus unserer Werkstatt in Amorbach.",galleryAlts:["Individueller Subwoofer-Bau mit Ground Zero Bässen","Endstufen-Einbau mit violetter Ambiente-Beleuchtung","Hochtöner- und Mitteltöner-Einbau von Focal Utopia","Sony Navigationssystem mit Apple CarPlay im Cockpit","Verbauter Hochtöner im Kofferraum","Individueller Subwoofer-Einbau mit LED-Beleuchtung im Kofferraum"],reviewsRating:"5,0 von 181 Kunden bewertet",reviewsRatingDynamic:(e,t)=>`${e.toFixed(1).replace(".",",")} von ${t} Kunden bewertet`,reviewsText:"Das sagen unsere Kunden über uns.",reviewsLink:"Alle Bewertungen auf Google ansehen →",testimonials:[{name:"Thomas K.",text:"Über YouTube auf dieses Klang-Juwel gestoßen. Beratung und Empfehlungen sind erstklassig – der Tesla-Vorführwagen hat meine Leidenschaft für guten Sound neu entfacht."},{name:"Andreas I.",text:"Sehr professionelle Beratung und Service. Obwohl ich von VAG zu Mercedes gewechselt bin, wurde alles reibungslos angepasst. Die 3-Wege-Lautsprecher und zwei Subwoofer liefern außergewöhnliche Leistung."},{name:"Thomas F.",text:"Kompletter Audi A4 B9 Umbau hat meine Erwartungen übertroffen. Von Anfang bis Ende professionell, mit tadelloser Verarbeitung und Klangqualität."},{name:"Drago G.",text:"Beeindruckt von der CNC-Arbeit, die auf YouTube gezeigt wird. Angefangen mit 3D-gedruckten Lautsprecherringen für meinen Ford Mustang – daraus wurde ein viel größeres Projekt."},{name:"Leonardo B.",text:"Toller Service und meisterhafte Handwerkskunst. Saubere Installation, Leidenschaft in jedem Detail erkennbar."},{name:"Marcel S.",text:"Unschlagbares Preis-Leistungs-Verhältnis. Das Team hat sich viel Zeit genommen, um genau die Lösung für mein Budget zu finden."},{name:"Julia W.",text:"Endlich ein Betrieb, der auch Wohnmobile ernst nimmt. Die Soundanlage in unserem Camper klingt jetzt wie im Wohnzimmer."},{name:"Kevin R.",text:"Dashcam und Alarmanlage in einem Termin sauber verbaut, keine sichtbaren Kabel. Absolute Empfehlung für alle, die Wert auf Verarbeitung legen."},{name:"Sabrina H.",text:"Mein Oldtimer hat jetzt modernen Sound, ohne dass es dem Original-Look geschadet hätte. Genau das habe ich gesucht."},{name:"Niklas P.",text:"Von der ersten Anfrage bis zum fertigen Umbau lief alles reibungslos. Ehrliche Beratung ohne Verkaufsdruck."}],moreTitle:"Mehr als nur Car-Hifi",moreText:"Neben individuellen Sound-Umbauten bieten wir CNC-Zerspanung, Lasertechnik, 3D-Druck und mehr – alles aus einer Hand in unserer eigenen Werkstatt.",moreCta:"Alle Leistungen entdecken",faqHeading:"Häufig gestellte Fragen"},vehicleSelect:{metaTitle:"Fahrzeug auswählen",metaDescription:"Wähle deine Fahrzeugmarke und dein Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.",title:"Fahrzeug auswählen",intro:"Wähle zuerst deine Marke, dann dein Modell – wir zeigen dir direkt die passenden Sound-Pakete.",empty:"Es sind noch keine Marken hinterlegt."},brandPage:{metaTitleFallback:"Modell auswählen",metaDescription:e=>`Wähle dein ${e} Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Modell wählen",empty:"Für diese Marke sind noch keine Modelle hinterlegt."},modelPage:{metaTitleFallback:"Sound-Pakete",metaTitle:(e,t)=>`${e} ${t} Sound-Pakete`,metaDescription:(e,t)=>`Car-Hifi Sound-Pakete für ${e} ${t} inkl. aktueller Preise – von HifiPlanet unverbindlich anfragen.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Sound-Pakete",empty:"Für dieses Modell sind noch keine Pakete hinterlegt.",totalPrice:"ab ca.",productLoading:"Produkt wird geladen…",requestContact:"Kontakt anfragen",badges:{recommended:"Empfohlen",popular:"Am beliebtesten",tip:"Tipp",coming_soon:"Coming soon"},videoLink:"Zum Video",moreBullets:e=>e===1?"+ 1 weitere Leistung":`+ ${e} weitere Leistungen`,showMore:"Mehr anzeigen",lessBullets:"Weniger anzeigen",wheelHint:"Mit dem Mausrad blättern"},leistungen:{metaTitle:"Leistungen",metaDescription:"Car-Hifi, Wohnmobil & Caravan, Oldtimer, CNC-Zerspanung, Lasertechnik, 3D-Druck, Alarmanlagen und Dash Cams – alles aus einer Hand bei HifiPlanet in Amorbach.",title:"Unsere Leistungen",intro:"Von individuellen Sound-Umbauten bis zur eigenen CNC- und 3D-Druck-Fertigung – alles aus einer Hand in unserer Werkstatt in Amorbach.",notListedTitle:"Dein Projekt ist nicht dabei?",notListedText:"Sprich uns einfach an – wir finden gemeinsam die passende Lösung.",contact:"Kontakt aufnehmen"},contactPage:{metaTitle:"Kontakt",metaDescription:"Kontaktiere HifiPlanet in Amorbach für dein individuelles Car-Hifi Projekt – wir beraten dich gerne unverbindlich.",title:"Kontakt aufnehmen",heroEyebrow:"Kontakt",heroTitlePre:"Sprich",heroTitleAccent:"mit",heroTitlePost:"uns.",heroSubtitle:"Ob Anlage, Einbau oder Klang-Tuning für dein Fahrzeug — schreib uns, wir melden uns schnellstmöglich zurück.",packageBoxTitle:"Deine Anfrage bezieht sich auf",formTitle:"Anfrage senden",sentTitle:"Anfrage gesendet ✓",sentText:"Danke! Wir melden uns innerhalb eines Werktags bei dir.",contextIntro:"Deine Anfrage bezieht sich auf:",contextBrand:"Marke",contextModel:"Modell",contextPackage:"Paket",contextProduct:"Produkt",packagePrice:"Paketpreis",upgrades:"Upgrades",optionalUpgrades:"Optionale Upgrades",totalWithUpgrades:"Gesamt inkl. Upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"E-Mail *",emailPlaceholder:"max@mail.de",phoneLabel:"Telefon",phonePlaceholder:"Optional",vinLabel:"Fahrgestellnummer (FIN)",vinPlaceholder:"Optional – hilft bei der Einschätzung",messageLabel:"Nachricht",messagePlaceholder:"Erzähl uns von deinem Projekt – Fahrzeug, Wunschklang, Budget …",requiredHint:"* Pflichtfelder",sending:"Wird gesendet…",submit:"Anfrage senden",cardTitle:"HiFi Planet Amorbach",address:"Adresse",phone:"Telefon",email:"E-Mail",hours:"Öffnungszeiten",hoursWeek:"Mo–Fr: 9:00–18:00 Uhr",hoursSat:"Sa: 10:00–13:00 Uhr",hoursWeekDays:"Mo–Fr",hoursWeekTime:"9:00 – 18:00 Uhr",hoursSatDay:"Sa",hoursSatTime:"10:00 – 13:00 Uhr",directionsTitle:"Anfahrt",mapEmbedName:"Die Google-Maps-Karte",mapOpenChip:"In Maps öffnen",routePlan:"Route planen",featurePremiumTitle:"Premium Klang",featurePremiumSub:"Höchste Qualität",featureGermanyTitle:"Made in Germany",featureGermanySub:"Präzise Handarbeit",featureIndividualTitle:"Individuell",featureIndividualSub:"Maßgeschneiderte Lösungen",featureExpertsTitle:"Experten Team",featureExpertsSub:"Leidenschaft & Know-how"},galleryOverview:{metaTitle:"Bildergalerie",metaDescription:"Einblicke in unsere Car-Hifi Umbauten – nach Marke sortiert. Wähle eine Marke und entdecke die Projekte.",title:"Bildergalerie",intro:"Wähle eine Marke und entdecke unsere Umbauten im Detail.",loading:"Lädt…",empty:"Es sind noch keine Galerie-Marken hinterlegt."},galleryBrandPage:{metaTitleFallback:"Bildergalerie",metaTitle:e=>`${e} Umbauten`,metaDescription:e=>`Einblicke in unsere ${e} Car-Hifi Umbauten.`,loading:"Lädt…",breadcrumbGallery:"Galerie",titleSuffix:"Projekt wählen",empty:"Für diese Marke sind noch keine Projekte hinterlegt."},galleryProjectPage:{metaTitleFallback:"Bildergalerie",metaDescription:e=>`Fotos unseres ${e} Umbaus.`,loading:"Lädt…",breadcrumbGallery:"Galerie",empty:"Für dieses Projekt sind noch keine Fotos hinterlegt.",enlargeImage:"Bild vergrößern"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Dateien und Songs von HifiPlanet zum Anhören und Herunterladen.",title:"Downloads",intro:"Hier stellen wir dir Dateien und Songs bereit – direkt anhören oder herunterladen.",loading:"Lädt…",empty:"Aktuell stehen keine Downloads bereit.",download:"Herunterladen",lockedTitle:"Geschützter Bereich",lockedText:"Bitte gib das Passwort ein, das du von uns bekommen hast.",passwordLabel:"Passwort",unlock:"Freischalten",unlocking:"Wird geprüft…",wrongPassword:"Das Passwort stimmt leider nicht."}},bb={nav:{openMenu:"Open menu",closeMenu:"Close menu",close:"Close",adminPanel:"Go to admin panel",vehicles:"Vehicles",services:"Services",gallery:"Gallery",contact:"Contact",whatsapp:"WhatsApp",shop:"Visit shop",downloads:"Downloads"},themeToggle:{label:"Toggle theme"},languageToggle:{label:"Select language"},footer:{routePlan:"Get directions",contactHeading:"Contact",contactForm:"Contact form",hoursHeading:"Opening hours",open:"Open",closed:"Closed",days:{monFri:"Monday – Friday",sat:"Saturday",sun:"Sunday"},copyright:e=>`© ${e} HifiPlanet. All information without guarantee.`,imprint:"Legal notice",privacy:"Privacy",terms:"Terms",downloads:"Downloads",cookieSettings:"Cookie settings"},cookieConsent:{bannerText:"We only use technically necessary cookies. For Google Maps, YouTube videos and analytics cookies we need your additional consent, since data is transferred to Google in that case.",moreInfo:"More details in our",privacyPolicy:"privacy policy",settings:"Settings",onlyNecessary:"Necessary only",acceptAll:"Accept all",modalTitle:"Cookie settings",modalIntro:"Choose which categories you want to allow. More details in our",necessaryTitle:"Necessary",necessaryDesc:"Required to operate the website (e.g. login session, theme and cookie preference). Cannot be disabled.",externalTitle:"External media",externalDesc:"Google Maps and YouTube videos. Loading them transfers data (including your IP address) to Google.",analyticsTitle:"Analytics",analyticsDesc:"Google Analytics helps us understand how the website is used. This transfers data to Google.",cancel:"Cancel",saveSelection:"Save selection"},maintenance:{title:"Under maintenance",defaultMessage:"This area is currently being updated. Please check back shortly.",login:"Log in"},lightbox:{close:"Close",previous:"Previous image",next:"Next image"},home:{metaTitle:"Custom Car-Hifi Installations",metaDescription:"HifiPlanet – your car-hifi specialist in Amorbach, Germany. Choose your make and model, discover matching sound packages and get in touch, no obligation.",stickyCta:"Ready for your sound upgrade?",selectVehicle:"Select vehicle",getInTouch:"Get in touch",welcome:"Welcome to HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Your car-hifi specialist for custom sound installations. Choose your vehicle, discover the right package and get in touch, no obligation – we take care of the rest.",stats:[{value:"20+",label:"years of experience"},{value:"Huge",label:"in-house 3D print farm"},{value:"In-house",label:"CNC & laser workshop"},{value:"International",label:"recognized car-hifi specialist"}],brandsHeading:"Brands we work with",youtubeBadge:"HifiPlanet presents",youtubeTitle:"The craft behind your sound",youtubeText:"Discover the artistry behind our work",youtubeCta:"Watch now",heroImageAlt:"Ground Zero subwoofer and amplifiers with purple ambient lighting",craftImageAlt:"Custom subwoofer build",adviceImageAlt:"Amplifier installation with ambient lighting",moreImageAlt:"High-end amplifier and subwoofer, studio shot",craftEyebrow:"Craftsmanship",craftTitle:"Precision work in every detail",craftText:"Whether custom-built subwoofer enclosures, integrated lighting or invisibly routed cabling – our own CNC, laser and 3D-printing production means we can build solutions you simply can't buy off the shelf.",adviceEyebrow:"Consultation",adviceTitle:"From the first idea to the final touch",adviceText:"Every vehicle and every requirement is different. That's why we advise you personally and without obligation – from a subtle upgrade to an uncompromising high-end system.",insightsTitle:"A look at our installations",insightsText:"From subtle sound upgrades to elaborate full installations – handcrafted in our workshop in Amorbach.",galleryAlts:["Custom subwoofer build with Ground Zero bass drivers","Amplifier installation with purple ambient lighting","Tweeter and midrange installation by Focal Utopia","Sony navigation system with Apple CarPlay in the cockpit","Installed tweeter in the trunk","Custom subwoofer installation with LED lighting in the trunk"],reviewsRating:"Rated 5.0 by 181 customers",reviewsRatingDynamic:(e,t)=>`Rated ${e.toFixed(1)} by ${t} customers`,reviewsText:"Here's what our customers say about us.",reviewsLink:"See all reviews on Google →",testimonials:[{name:"Thomas K.",text:"Found this gem through YouTube. Advice and recommendations are top-notch – the Tesla demo car reignited my passion for great sound."},{name:"Andreas I.",text:"Very professional advice and service. Even though I switched from VAG to Mercedes, everything was adapted smoothly. The 3-way speakers and two subwoofers deliver outstanding performance."},{name:"Thomas F.",text:"The complete Audi A4 B9 build exceeded my expectations. Professional from start to finish, with flawless workmanship and sound quality."},{name:"Drago G.",text:"Impressed by the CNC work shown on YouTube. Started with 3D-printed speaker rings for my Ford Mustang – it turned into a much bigger project."},{name:"Leonardo B.",text:"Great service and masterful craftsmanship. Clean installation, passion visible in every detail."},{name:"Marcel S.",text:"Unbeatable value for money. The team took a lot of time to find the exact solution for my budget."},{name:"Julia W.",text:"Finally a shop that takes motorhomes seriously too. The sound system in our camper now sounds like a living room."},{name:"Kevin R.",text:"Dash cam and alarm system installed cleanly in a single appointment, no visible cables. Highly recommended for anyone who values quality workmanship."},{name:"Sabrina H.",text:"My classic car now has modern sound without compromising the original look. Exactly what I was looking for."},{name:"Niklas P.",text:"From the first inquiry to the finished build, everything went smoothly. Honest advice with no sales pressure."}],moreTitle:"More than just car-hifi",moreText:"Besides custom sound installations, we also offer CNC machining, laser technology, 3D printing and more – all from a single source in our own workshop.",moreCta:"Discover all our services",faqHeading:"Frequently asked questions"},vehicleSelect:{metaTitle:"Select your vehicle",metaDescription:"Choose your vehicle make and model and discover matching car-hifi sound packages from HifiPlanet.",title:"Select your vehicle",intro:"Choose your make first, then your model – we'll show you the matching sound packages right away.",empty:"No brands have been added yet."},brandPage:{metaTitleFallback:"Select a model",metaDescription:e=>`Choose your ${e} model and discover matching car-hifi sound packages from HifiPlanet.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Select a model",empty:"No models have been added for this brand yet."},modelPage:{metaTitleFallback:"Sound packages",metaTitle:(e,t)=>`${e} ${t} sound packages`,metaDescription:(e,t)=>`Car-hifi sound packages for the ${e} ${t} including current prices – get in touch with HifiPlanet, no obligation.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Sound packages",empty:"No packages have been added for this model yet.",totalPrice:"from approx.",productLoading:"Loading product…",requestContact:"Request contact",badges:{recommended:"Recommended",popular:"Most popular",tip:"Tip",coming_soon:"Coming soon"},videoLink:"Watch video",moreBullets:e=>e===1?"+ 1 more feature":`+ ${e} more features`,showMore:"Show more",lessBullets:"Show less",wheelHint:"Scroll to browse"},leistungen:{metaTitle:"Services",metaDescription:"Car-hifi, motorhomes & caravans, classic cars, CNC machining, laser technology, 3D printing, alarm systems and dash cams – all from a single source at HifiPlanet in Amorbach.",title:"Our services",intro:"From custom sound installations to our own CNC and 3D-printing production – all from a single source in our workshop in Amorbach.",notListedTitle:"Don't see your project?",notListedText:"Just get in touch – we'll find the right solution together.",contact:"Get in touch"},contactPage:{metaTitle:"Contact",metaDescription:"Get in touch with HifiPlanet in Amorbach for your custom car-hifi project – we're happy to advise you, no obligation.",title:"Get in touch",heroEyebrow:"Contact",heroTitlePre:"Talk",heroTitleAccent:"to",heroTitlePost:"us.",heroSubtitle:"Whether it's a system, installation, or sound tuning for your car — write to us, we'll get back to you as soon as possible.",packageBoxTitle:"Your inquiry relates to",formTitle:"Send inquiry",sentTitle:"Inquiry sent ✓",sentText:"Thanks! We'll get back to you within one business day.",contextIntro:"Your inquiry relates to:",contextBrand:"Brand",contextModel:"Model",contextPackage:"Package",contextProduct:"Product",packagePrice:"Package price",upgrades:"Upgrades",optionalUpgrades:"Optional upgrades",totalWithUpgrades:"Total incl. upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"Email *",emailPlaceholder:"max@mail.de",phoneLabel:"Phone",phonePlaceholder:"Optional",vinLabel:"Vehicle identification number (VIN)",vinPlaceholder:"Optional – helps us assess your vehicle",messageLabel:"Message",messagePlaceholder:"Tell us about your project – vehicle, desired sound, budget …",requiredHint:"* Required fields",sending:"Sending…",submit:"Send inquiry",cardTitle:"HiFi Planet Amorbach",address:"Address",phone:"Phone",email:"Email",hours:"Opening hours",hoursWeek:"Mon–Fri: 9:00 AM–6:00 PM",hoursSat:"Sat: 10:00 AM–1:00 PM",hoursWeekDays:"Mon–Fri",hoursWeekTime:"9:00 AM – 6:00 PM",hoursSatDay:"Sat",hoursSatTime:"10:00 AM – 1:00 PM",directionsTitle:"Directions",mapEmbedName:"The Google Maps map",mapOpenChip:"Open in Maps",routePlan:"Get directions",featurePremiumTitle:"Premium Sound",featurePremiumSub:"Highest quality",featureGermanyTitle:"Made in Germany",featureGermanySub:"Precision craftsmanship",featureIndividualTitle:"Custom-built",featureIndividualSub:"Tailored solutions",featureExpertsTitle:"Expert Team",featureExpertsSub:"Passion & know-how"},galleryOverview:{metaTitle:"Photo gallery",metaDescription:"A look at our car-hifi installations – sorted by brand. Choose a brand and explore the projects.",title:"Photo gallery",intro:"Choose a brand and explore our installations in detail.",loading:"Loading…",empty:"No gallery brands have been added yet."},galleryBrandPage:{metaTitleFallback:"Photo gallery",metaTitle:e=>`${e} installations`,metaDescription:e=>`A look at our ${e} car-hifi installations.`,loading:"Loading…",breadcrumbGallery:"Gallery",titleSuffix:"Select a project",empty:"No projects have been added for this brand yet."},galleryProjectPage:{metaTitleFallback:"Photo gallery",metaDescription:e=>`Photos of our ${e} installation.`,loading:"Loading…",breadcrumbGallery:"Gallery",empty:"No photos have been added for this project yet.",enlargeImage:"Enlarge image"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Files and songs from HifiPlanet to listen to and download.",title:"Downloads",intro:"Here you will find files and songs we provide for you – listen right here or download them.",loading:"Loading…",empty:"There are no downloads available right now.",download:"Download",lockedTitle:"Protected area",lockedText:"Please enter the password you received from us.",passwordLabel:"Password",unlock:"Unlock",unlocking:"Checking…",wrongPassword:"Sorry, that password is not correct."}},Ii={de:kb,en:bb};function Sb(){const e=localStorage.getItem("hifi-lang");return e==="de"||e==="en"?e:(navigator.language||"de").toLowerCase().startsWith("de")?"de":"en"}function eu(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}const Zg=x.createContext({language:"de",setLanguage:()=>{},toggleLanguage:()=>{},t:e=>{const t=eu(Ii.de,e);return t!==void 0?t:e}});function Af({children:e}){const[t,n]=x.useState(Sb);x.useEffect(()=>{document.documentElement.setAttribute("lang",t),localStorage.setItem("hifi-lang",t)},[t]);const r=()=>n(i=>i==="de"?"en":"de"),s=i=>{const o=Ii[t]||Ii.de,a=eu(o,i);if(a!==void 0)return a;const u=eu(Ii.de,i);return u!==void 0?u:i};return l.jsx(Zg.Provider,{value:{language:t,setLanguage:n,toggleLanguage:r,t:s},children:e})}function Ce(){return x.useContext(Zg)}function Jg({overHero:e=!1,forceDark:t=!1}){const{theme:n,toggleTheme:r}=wb(),{t:s}=Ce();return l.jsx("button",{onClick:r,"aria-label":s("themeToggle.label"),className:`rounded-full p-2 transition ${e?"text-white hover:bg-white/10":t?"text-neutral-300 hover:bg-neutral-800":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:n==="dark"?l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:l.jsx("path",{d:"M12 3a1 1 0 011 1v1a1 1 0 11-2 0V4a1 1 0 011-1zm0 15a5 5 0 100-10 5 5 0 000 10zm9-6a1 1 0 010 2h-1a1 1 0 110-2h1zM4 12a1 1 0 010 2H3a1 1 0 110-2h1zm14.36-7.36a1 1 0 011.42 1.42l-.71.7a1 1 0 11-1.41-1.4l.7-.72zM5.64 18.36a1 1 0 011.41 1.41l-.7.71a1 1 0 11-1.42-1.41l.71-.71zm12.72 0l.71.7a1 1 0 11-1.41 1.42l-.71-.71a1 1 0 011.41-1.41zM6.34 5.64l-.7-.7A1 1 0 117.05 3.5l.7.71A1 1 0 016.34 5.64zM12 6a1 1 0 011-1v0a1 1 0 01-1 1zm0 12a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1z"})}):l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:l.jsx("path",{fillRule:"evenodd",d:"M9.53 2.25a.75.75 0 01.19.82 8.25 8.25 0 0011.03 11.03.75.75 0 011.01.99A10.5 10.5 0 1112.9 2.1a.75.75 0 011.63-.85z",clipRule:"evenodd"})})})}const e0=x.createContext(null);function jb({children:e}){const[t,n]=x.useState(null),[r,s]=x.useState(!0);x.useEffect(()=>{Z.get("/auth/me").then(d=>n(d.authenticated===!1?null:d)).catch(()=>n(null)).finally(()=>s(!1))},[]);const i=async(d,f)=>{const h=await Z.post("/auth/login",{username:d,password:f});return h.requires_2fa?{requires2fa:!0}:(n(h),{requires2fa:!1})},o=async d=>{const f=await Z.post("/auth/verify-2fa",{code:d});n(f)},a=async()=>{await Z.post("/auth/logout",{}),n(null)},u=async()=>{const d=await Z.get("/auth/me");n(d.authenticated===!1?null:d)},c=d=>{var f;return!!t&&(t.is_super_admin||((f=t.permissions)==null?void 0:f.includes(d)))};return l.jsx(e0.Provider,{value:{user:t,loading:r,login:i,verifyTwoFactor:o,logout:a,refreshUser:u,hasPermission:c},children:e})}function Hs(){return x.useContext(e0)}const t0=x.createContext({phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:null,hero_image_path:null,ga_measurement_id:null,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180}),Pb=t0.Provider;function Pt(){return x.useContext(t0)}const tu="/assets/logo-dark-R-ckaBhx.png",Tb="https://www.audio4cars.de/",Df=e=>(e||"").replace(/[^\d+]/g,""),Rf=70,Cb=500;function Eb({className:e}){return l.jsxs("svg",{viewBox:"0 0 3 2",className:e,"aria-hidden":"true",children:[l.jsx("rect",{width:"3",height:"0.667",y:"0",fill:"#000"}),l.jsx("rect",{width:"3",height:"0.667",y:"0.667",fill:"#D00"}),l.jsx("rect",{width:"3",height:"0.666",y:"1.334",fill:"#FFCE00"})]})}function Nb({className:e}){return l.jsxs("svg",{viewBox:"0 0 60 30",className:e,"aria-hidden":"true",children:[l.jsx("clipPath",{id:"fgb-t",children:l.jsx("path",{d:"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"})}),l.jsx("path",{d:"M0,0 v30 h60 v-30 z",fill:"#00247d"}),l.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#fff",strokeWidth:"6"}),l.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",clipPath:"url(#fgb-t)",stroke:"#cf142b",strokeWidth:"4"}),l.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#fff",strokeWidth:"10"}),l.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#cf142b",strokeWidth:"6"})]})}const Ma=[{code:"de",label:"Deutsch",Flag:Eb},{code:"en",label:"English",Flag:Nb}];function _b({overHero:e=!1}){const{language:t,setLanguage:n,t:r}=Ce(),[s,i]=x.useState(!1),o=x.useRef(null),a=Ma.find(u=>u.code===t)||Ma[0];return x.useEffect(()=>{if(!s)return;const u=d=>{o.current&&!o.current.contains(d.target)&&i(!1)},c=d=>{d.key==="Escape"&&i(!1)};return document.addEventListener("mousedown",u),document.addEventListener("keydown",c),()=>{document.removeEventListener("mousedown",u),document.removeEventListener("keydown",c)}},[s]),l.jsxs("div",{className:"relative",ref:o,children:[l.jsxs("button",{type:"button",onClick:()=>i(u=>!u),"aria-haspopup":"listbox","aria-expanded":s,"aria-label":r("languageToggle.label"),className:`flex items-center gap-1 rounded-full p-1.5 transition ${e?"hover:bg-white/10":"hover:bg-neutral-800"}`,children:[l.jsx("span",{className:`block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ${e?"ring-white/50":"ring-neutral-600"}`,children:l.jsx(a.Flag,{className:"h-full w-full"})}),l.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:`h-3 w-3 transition-transform ${e?"text-white/70":"text-neutral-400"} ${s?"rotate-180":""}`,children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"})})]}),s&&l.jsx("div",{role:"listbox",className:"absolute right-0 z-50 mt-2 min-w-[9rem] overflow-hidden rounded-lg border border-neutral-700 bg-neutral-900 py-1 shadow-lg",children:Ma.map(u=>l.jsxs("button",{type:"button",role:"option","aria-selected":u.code===t,onClick:()=>{n(u.code),i(!1)},className:`flex w-full items-center gap-2 px-3 py-2 text-left text-sm transition hover:bg-neutral-800 ${u.code===t?"font-semibold text-brand-400":"text-neutral-200"}`,children:[l.jsx("span",{className:"block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ring-neutral-600",children:l.jsx(u.Flag,{className:"h-full w-full"})}),u.label]},u.code))})]})}function Mb(){const[e,t]=x.useState(!1),[n,r]=x.useState(!1),[s,i]=x.useState(!1),{user:o}=Hs(),{phone:a,whatsapp:u,logo_dark_path:c,has_downloads:d}=Pt(),{t:f}=Ce(),h=6+(d?1:0)+(a?1:0)+(u?1:0),w=rt().pathname==="/",[v,k]=x.useState(!w);x.useEffect(()=>{if(!w){k(!0);return}const S=()=>k(window.scrollY>24);return S(),window.addEventListener("scroll",S,{passive:!0}),()=>window.removeEventListener("scroll",S)},[w]);const g=w&&!v;x.useEffect(()=>{if(e){r(!0);let L;const N=requestAnimationFrame(()=>{L=requestAnimationFrame(()=>i(!0))});return()=>{cancelAnimationFrame(N),L&&cancelAnimationFrame(L)}}i(!1);const S=Cb+(h-1)*Rf,j=setTimeout(()=>r(!1),S);return()=>clearTimeout(j)},[e,h]);const m=()=>`transition-all duration-500 ease-out ${s?"opacity-100":"opacity-0"}`,y=S=>({transitionDelay:`${(s?S:h-1-S)*Rf}ms`,transform:s?"translateY(0)":"translateY(-140px)"}),b=o&&l.jsx(U,{to:"/admin","aria-label":f("nav.adminPanel"),title:f("nav.adminPanel"),className:`rounded-full p-2 transition ${g?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:l.jsx(Ok,{className:"h-5 w-5"})});let P=0;const T=()=>y(P++);return l.jsxs("header",{className:`sticky top-0 z-30 border-b transition-colors duration-300 ${g?"border-transparent bg-transparent":"border-neutral-800 bg-neutral-950/90 backdrop-blur"}`,children:[l.jsxs("div",{className:"mx-auto grid max-w-6xl grid-cols-[1fr_auto_1fr] items-center gap-3 px-4 py-3 sm:px-6",children:[l.jsx("div",{className:"flex items-center justify-self-start",children:l.jsx("button",{onClick:()=>t(!0),"aria-label":f("nav.openMenu"),className:`rounded-md p-2 transition ${g?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})})}),l.jsx(U,{to:"/",className:"flex items-center justify-self-center rounded-lg px-2 py-1",children:l.jsx("img",{src:c||tu,alt:"HifiPlanet",className:"h-14 w-auto sm:h-16"})}),l.jsxs("div",{className:"flex items-center justify-self-end gap-1",children:[b,!e&&l.jsx(_b,{overHero:g}),l.jsx(Jg,{overHero:g,forceDark:!0})]})]}),n&&Go.createPortal(l.jsx("div",{className:"fixed inset-0 z-[100] overflow-y-auto text-left backdrop-blur-xl",style:{background:"linear-gradient(135deg, rgba(241,245,249,0.55) 0%, rgba(227,240,207,0.55) 50%, rgba(248,250,252,0.55) 100%)"},children:l.jsxs("div",{className:"relative mx-auto flex min-h-full max-w-6xl flex-col items-start justify-center gap-5 py-24 pl-6 pr-8 sm:pl-8",children:[l.jsxs("button",{onClick:()=>t(!1),"aria-label":f("nav.closeMenu"),className:"absolute left-6 top-8 flex items-center gap-2 text-neutral-600 hover:text-brand-600 sm:left-8 sm:top-[65px]",children:[l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})}),l.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",children:f("nav.close")})]}),l.jsx(U,{to:"/fahrzeuge",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:T(),children:f("nav.vehicles")}),l.jsx(U,{to:"/leistungen",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:T(),children:f("nav.services")}),l.jsx(U,{to:"/galerie",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:T(),children:f("nav.gallery")}),l.jsx(U,{to:"/kontakt",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:T(),children:f("nav.contact")}),d&&l.jsx(U,{to:"/downloads",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${m()}`,style:T(),children:f("nav.downloads")}),l.jsx("div",{className:`h-px w-16 bg-brand-500/60 ${m()}`,style:T()}),a&&l.jsxs("a",{href:`tel:${Df(a)}`,className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${m()}`,style:T(),children:[l.jsx(yo,{className:"h-4 w-4"}),a]}),u&&l.jsxs("a",{href:`https://wa.me/${Df(u).replace(/^0/,"49").replace("+","")}`,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${m()}`,style:T(),children:[l.jsx(Xk,{className:"h-4 w-4"}),f("nav.whatsapp")]}),l.jsxs("a",{href:Tb,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${m()}`,style:T(),children:[l.jsx(ub,{className:"h-4 w-4"}),f("nav.shop")]})]})}),document.body)]})}const If="hifiplanet-cookie-consent",n0={necessary:!0,external:!1,analytics:!1},r0=x.createContext({consent:n0,decided:!1,settingsOpen:!1,acceptAll:()=>{},rejectNonEssential:()=>{},saveCustom:()=>{},openSettings:()=>{},closeSettings:()=>{}});function Lb({children:e}){const[t,n]=x.useState(n0),[r,s]=x.useState(!1),[i,o]=x.useState(!1);x.useEffect(()=>{try{const p=localStorage.getItem(If);if(p){const w=JSON.parse(p);n({necessary:!0,external:!!w.external,analytics:!!w.analytics}),s(!0)}}catch{}},[]);const a=x.useCallback(p=>{n(p),s(!0),o(!1),localStorage.setItem(If,JSON.stringify({...p,decidedAt:new Date().toISOString()}))},[]),u=x.useCallback(()=>a({necessary:!0,external:!0,analytics:!0}),[a]),c=x.useCallback(()=>a({necessary:!0,external:!1,analytics:!1}),[a]),d=x.useCallback(p=>a({necessary:!0,external:!!p.external,analytics:!!p.analytics}),[a]),f=x.useCallback(()=>o(!0),[]),h=x.useCallback(()=>o(!1),[]);return l.jsx(r0.Provider,{value:{consent:t,decided:r,settingsOpen:i,acceptAll:u,rejectNonEssential:c,saveCustom:d,openSettings:f,closeSettings:h},children:e})}function Lr(){return x.useContext(r0)}const Ab=["mon","tue","wed","thu","fri","sat","sun"],Db=["sun","mon","tue","wed","thu","fri","sat"],La={mon:"Mo",tue:"Di",wed:"Mi",thu:"Do",fri:"Fr",sat:"Sa",sun:"So"};function Rb(e){const t=new Date,n=e==null?void 0:e[Db[t.getDay()]];if(!n||n.closed||!n.open||!n.close)return!1;const r=t.getHours()*60+t.getMinutes(),[s,i]=n.open.split(":").map(Number),[o,a]=n.close.split(":").map(Number);return r>=s*60+i&&r{const s=Ib(e==null?void 0:e[r])||t,i=n[n.length-1];i&&i.label===s?i.days=`${i.firstLabel}-${La[r]}`:n.push({key:r,days:La[r],firstLabel:La[r],label:s})}),n}const Vb=e=>(e||"").replace(/[^\d+]/g,"");function Ob(){const{phone:e,contact_email:t,address_street:n,address_zip:r,address_city:s,business_hours:i,has_downloads:o}=Pt(),a=Rb(i),{openSettings:u}=Lr(),{pathname:c}=rt(),d=c==="/",{t:f}=Ce(),h=[n,[r,s].filter(Boolean).join(" ")].filter(Boolean).join(", "),p=`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(h)}`,w=s0(i,f("footer.closed"));return l.jsxs("footer",{className:`border-t border-neutral-200 bg-neutral-50 py-10 text-sm text-neutral-600 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-300 ${d?"pb-24":""}`,children:[l.jsxs("div",{className:"mx-auto grid max-w-6xl gap-4 px-4 sm:grid-cols-3 sm:px-6",children:[l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[l.jsx(qg,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:"HifiPlanet"})]}),n&&l.jsx("p",{children:n}),(r||s)&&l.jsx("p",{children:[r,s].filter(Boolean).join(" ")}),l.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"mt-4 flex items-center justify-center gap-1.5 rounded-md bg-brand-500 px-3 py-2 text-xs font-semibold text-white hover:bg-brand-600",children:[l.jsx(eb,{className:"h-3.5 w-3.5"}),f("footer.routePlan")]})]}),l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[l.jsx(yo,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:f("footer.contactHeading")})]}),l.jsx("p",{children:l.jsx("a",{href:`tel:${Vb(e)}`,className:"inline-block py-1 hover:text-brand-500",children:e})}),l.jsx("p",{children:l.jsx("a",{href:`mailto:${t}`,className:"inline-block py-1 hover:text-brand-500",children:t})}),l.jsx(U,{to:"/kontakt",className:"mt-4 flex items-center justify-center gap-1.5 rounded-md border border-neutral-300 px-3 py-2 text-xs font-semibold text-neutral-700 hover:border-brand-500 hover:text-brand-600 dark:border-neutral-700 dark:text-neutral-200",children:f("footer.contactForm")})]}),l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Yg,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:f("footer.hoursHeading")})]}),l.jsxs("span",{className:`flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-semibold ${a?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-neutral-100 text-neutral-500 dark:bg-neutral-800 dark:text-neutral-400"}`,children:[l.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${a?"bg-green-500":"bg-neutral-400"}`}),f(a?"footer.open":"footer.closed")]})]}),l.jsx("dl",{className:"space-y-1.5",children:w.map(v=>l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l.jsx("dt",{className:"text-neutral-500 dark:text-neutral-400",children:v.days}),l.jsx("dd",{className:"font-medium text-neutral-700 dark:text-neutral-200",children:v.label})]},v.key))})]})]}),l.jsx("div",{className:"mx-auto mt-8 max-w-6xl border-t border-neutral-200 px-4 pt-6 text-center text-xs text-neutral-500 dark:border-neutral-800 dark:text-neutral-400 sm:px-6",children:l.jsxs("p",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-1",children:[l.jsx("span",{children:f("footer.copyright")(new Date().getFullYear())}),l.jsx("span",{children:"·"}),l.jsx(U,{to:"/impressum",className:"hover:text-brand-500",children:f("footer.imprint")}),l.jsx("span",{children:"·"}),l.jsx(U,{to:"/datenschutz",className:"hover:text-brand-500",children:f("footer.privacy")}),l.jsx("span",{children:"·"}),l.jsx(U,{to:"/agb",className:"hover:text-brand-500",children:f("footer.terms")}),l.jsx("span",{children:"·"}),o&&l.jsxs(l.Fragment,{children:[l.jsx(U,{to:"/downloads",className:"hover:text-brand-500",children:f("footer.downloads")}),l.jsx("span",{children:"·"})]}),l.jsx("button",{type:"button",onClick:u,className:"hover:text-brand-500",children:f("footer.cookieSettings")})]})})]})}const Nc=x.createContext({});function yn(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fb=typeof window<"u",Ws=Fb?x.useLayoutEffect:x.useEffect,Qo=x.createContext(null);function _c(e,t){e.indexOf(t)===-1&&e.push(t)}function vo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const jt=(e,t,n)=>n>t?t:n{};const vn={},i0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),o0=e=>typeof e=="object"&&e!==null,a0=e=>/^0[^.\s]+$/u.test(e);function l0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ye=e=>e,Us=(...e)=>e.reduce((t,n)=>r=>n(t(r))),jr=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Lc{constructor(){this.subscriptions=[]}add(t){return _c(this.subscriptions,t),()=>vo(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;ie*1e3,lt=e=>e/1e3,Ac=(e,t)=>t?e*(1e3/t):0,u0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zb=1e-7,Bb=12;function $b(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=u0(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>zb&&++a$b(i,0,1,e,n);return i=>i===0||i===1?i:u0(s(i),t,r)}const c0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,d0=e=>t=>1-e(1-t),f0=Gs(.33,1.53,.69,.99),Dc=d0(f0),h0=c0(Dc),m0=e=>e>=1?1:(e*=2)<1?.5*Dc(e):.5*(2-Math.pow(2,-10*(e-1))),Rc=e=>1-Math.sin(Math.acos(e)),p0=d0(Rc),g0=c0(Rc),Hb=Gs(.42,0,1,1),Wb=Gs(0,0,.58,1),x0=Gs(.42,0,.58,1),Ub=e=>Array.isArray(e)&&typeof e[0]!="number",y0=e=>Array.isArray(e)&&typeof e[0]=="number",Gb={linear:Ye,easeIn:Hb,easeInOut:x0,easeOut:Wb,circIn:Rc,circInOut:g0,circOut:p0,backIn:Dc,backInOut:h0,backOut:f0,anticipate:m0},Kb=e=>typeof e=="string",Vf=e=>{if(y0(e)){Mc(e.length===4);const[t,n,r,s]=e;return Gs(t,n,r,s)}else if(Kb(e))return Gb[e];return e},gi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Xb(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(u.schedule(c),e()),c(o)}const u={schedule:(c,d=!1,f=!1)=>{const p=f&&r?t:n;return d&&i.add(c),p.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0;const d=t;t=n,n=d,t.forEach(a),t.clear(),r=!1,s&&(s=!1,u.process(c))}};return u}const Yb=40;function v0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=gi.reduce((y,b)=>(y[b]=Xb(i),y),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:p,postRender:w}=o,v=()=>{const y=vn.useManualTiming,b=y?s.timestamp:performance.now();n=!1,y||(s.delta=r?1e3/60:Math.max(Math.min(b-s.timestamp,Yb),1)),s.timestamp=b,s.isProcessing=!0,a.process(s),u.process(s),c.process(s),d.process(s),f.process(s),h.process(s),p.process(s),w.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(v))},k=()=>{n=!0,r=!0,s.isProcessing||e(v)};return{schedule:gi.reduce((y,b)=>{const P=o[b];return y[b]=(T,S=!1,j=!1)=>(n||k(),P.schedule(T,S,j)),y},{}),cancel:y=>{for(let b=0;b(Vi===void 0&&Fe.set(je.isProcessing||vn.useManualTiming?je.timestamp:performance.now()),Vi),set:e=>{Vi=e,queueMicrotask(qb)}},w0=e=>t=>typeof t=="string"&&t.startsWith(e),k0=w0("--"),Qb=w0("var(--"),Ic=e=>Qb(e)?Zb.test(e.split("/*")[0].trim()):!1,Zb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Of(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ar={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},As={...Ar,transform:e=>jt(0,1,e)},xi={...Ar,default:1},as=e=>Math.round(e*1e5)/1e5,Vc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Jb(e){return e==null}const e2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oc=(e,t)=>n=>!!(typeof n=="string"&&e2.test(n)&&n.startsWith(e)||t&&!Jb(n)&&Object.prototype.hasOwnProperty.call(n,t)),b0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Vc);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},t2=e=>jt(0,255,e),Da={...Ar,transform:e=>Math.round(t2(e))},Mn={test:Oc("rgb","red"),parse:b0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Da.transform(e)+", "+Da.transform(t)+", "+Da.transform(n)+", "+as(As.transform(r))+")"};function n2(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const nu={test:Oc("#"),parse:n2,transform:Mn.transform},Ks=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),It=Ks("deg"),At=Ks("%"),V=Ks("px"),r2=Ks("vh"),s2=Ks("vw"),Ff={...At,parse:e=>At.parse(e)/100,transform:e=>At.transform(e*100)},or={test:Oc("hsl","hue"),parse:b0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+At.transform(as(t))+", "+At.transform(as(n))+", "+as(As.transform(r))+")"},ge={test:e=>Mn.test(e)||nu.test(e)||or.test(e),parse:e=>Mn.test(e)?Mn.parse(e):or.test(e)?or.parse(e):nu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Mn.transform(e):or.transform(e),getAnimatableNone:e=>{const t=ge.parse(e);return t.alpha=0,ge.transform(t)}},i2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function o2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Vc))==null?void 0:t.length)||0)+(((n=e.match(i2))==null?void 0:n.length)||0)>0}const S0="number",j0="color",a2="var",l2="var(",zf="${}",u2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Pr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(u2,u=>(ge.test(u)?(r.color.push(i),s.push(j0),n.push(ge.parse(u))):u.startsWith(l2)?(r.var.push(i),s.push(a2),n.push(u)):(r.number.push(i),s.push(S0),n.push(parseFloat(u))),++i,zf)).split(zf);return{values:n,split:a,indexes:r,types:s}}function c2(e){return Pr(e).values}function P0({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;itypeof e=="number"?0:ge.test(e)?ge.getAnimatableNone(e):e,h2=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:f2(e);function m2(e){const t=Pr(e);return P0(t)(t.values.map((r,s)=>h2(r,t.split[s])))}const bt={test:o2,parse:c2,createTransformer:d2,getAnimatableNone:m2};function Ra(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function p2({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;s=Ra(u,a,e+1/3),i=Ra(u,a,e),o=Ra(u,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function wo(e,t){return n=>n>0?t:e}const te=(e,t,n)=>e+(t-e)*n,Ia=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},g2=[nu,Mn,or],x2=e=>g2.find(t=>t.test(e));function Bf(e){const t=x2(e);if(!t)return!1;let n=t.parse(e);return t===or&&(n=p2(n)),n}const $f=(e,t)=>{const n=Bf(e),r=Bf(t);if(!n||!r)return wo(e,t);const s={...n};return i=>(s.red=Ia(n.red,r.red,i),s.green=Ia(n.green,r.green,i),s.blue=Ia(n.blue,r.blue,i),s.alpha=te(n.alpha,r.alpha,i),Mn.transform(s))},ru=new Set(["none","hidden"]);function y2(e,t){return ru.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function v2(e,t){return n=>te(e,t,n)}function Fc(e){return typeof e=="number"?v2:typeof e=="string"?Ic(e)?wo:ge.test(e)?$f:b2:Array.isArray(e)?T0:typeof e=="object"?ge.test(e)?$f:w2:wo}function T0(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Fc(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function k2(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s{const n=bt.createTransformer(t),r=Pr(e),s=Pr(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?ru.has(e)&&!s.values.length||ru.has(t)&&!r.values.length?y2(e,t):Us(T0(k2(r,s),s.values),n):wo(e,t)};function C0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?te(e,t,n):Fc(e)(e,t)}const S2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>X.update(t,n),stop:()=>ft(t),now:()=>je.isProcessing?je.timestamp:Fe.now()}},E0=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i=ko?1/0:t}function j2(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(zc(r),ko);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:lt(s)}}const he={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function su(e,t){return e*Math.sqrt(1-t*t)}const P2=12;function T2(e,t,n){let r=n;for(let s=1;s{const d=c*o,f=d*e,h=d-n,p=su(c,o),w=Math.exp(-f);return Va-h/p*w},i=c=>{const f=c*o*e,h=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,w=Math.exp(-f),v=su(Math.pow(c,2),o);return(-s(c)+Va>0?-1:1)*((h-p)*w)/v}):(s=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Va+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,u=T2(s,i,a);if(e=Je(e),isNaN(u))return{stiffness:he.stiffness,damping:he.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const E2=["duration","bounce"],N2=["stiffness","damping","mass"];function Hf(e,t){return t.some(n=>e[n]!==void 0)}function _2(e){let t={velocity:he.velocity,stiffness:he.stiffness,damping:he.damping,mass:he.mass,isResolvedFromDuration:!1,...e};if(!Hf(e,N2)&&Hf(e,E2))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*jt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:he.mass,stiffness:s,damping:i}}else{const n=C2({...e,velocity:0});t={...t,...n,mass:he.mass},t.isResolvedFromDuration=!0}return t}function bo(e=he.visualDuration,t=he.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=_2({...n,velocity:-lt(n.velocity||0)}),w=h||0,v=c/(2*Math.sqrt(u*d)),k=o-i,g=lt(Math.sqrt(u/d)),m=Math.abs(k)<5;r||(r=m?he.restSpeed.granular:he.restSpeed.default),s||(s=m?he.restDelta.granular:he.restDelta.default);let y,b,P,T,S,j;if(v<1)P=su(g,v),T=(w+v*g*k)/P,y=N=>{const O=Math.exp(-v*g*N);return o-O*(T*Math.sin(P*N)+k*Math.cos(P*N))},S=v*g*T+k*P,j=v*g*k-T*P,b=N=>Math.exp(-v*g*N)*(S*Math.sin(P*N)+j*Math.cos(P*N));else if(v===1){y=O=>o-Math.exp(-g*O)*(k+(w+g*k)*O);const N=w+g*k;b=O=>Math.exp(-g*O)*(g*N*O-w)}else{const N=g*Math.sqrt(v*v-1);y=_=>{const R=Math.exp(-v*g*_),B=Math.min(N*_,300);return o-R*((w+v*g*k)*Math.sinh(B)+N*k*Math.cosh(B))/N};const O=(w+v*g*k)/N,H=v*g*O-k*N,oe=v*g*k-O*N;b=_=>{const R=Math.exp(-v*g*_),B=Math.min(N*_,300);return R*(H*Math.sinh(B)+oe*Math.cosh(B))}}const L={calculatedDuration:p&&f||null,velocity:N=>Je(b(N)),next:N=>{if(!p&&v<1){const H=Math.exp(-v*g*N),oe=Math.sin(P*N),_=Math.cos(P*N),R=o-H*(T*oe+k*_),B=Je(H*(S*oe+j*_));return a.done=Math.abs(B)<=r&&Math.abs(o-R)<=s,a.value=a.done?o:R,a}const O=y(N);if(p)a.done=N>=f;else{const H=Je(b(N));a.done=Math.abs(H)<=r&&Math.abs(o-O)<=s}return a.value=a.done?o:O,a},toString:()=>{const N=Math.min(zc(L),ko),O=E0(H=>L.next(N*H).value,N,30);return N+"ms "+O},toTransition:()=>{}};return L}bo.applyToOptions=e=>{const t=j2(e,100,bo);return e.ease=t.ease,e.duration=Je(t.duration),e.type="keyframes",e};const M2=5;function N0(e,t,n){const r=Math.max(t-M2,0);return Ac(n-e(r),t-r)}function iu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:u,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},p=j=>a!==void 0&&ju,w=j=>a===void 0?u:u===void 0||Math.abs(a-j)-v*Math.exp(-j/r),y=j=>g+m(j),b=j=>{const L=m(j),N=y(j);h.done=Math.abs(L)<=c,h.value=h.done?g:N};let P,T;const S=j=>{p(h.value)&&(P=j,T=bo({keyframes:[h.value,w(h.value)],velocity:N0(y,j,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:j=>{let L=!1;return!T&&P===void 0&&(L=!0,b(j),S(j)),P!==void 0&&j>=P?T.next(j-P):(!L&&b(j),h)}}}function L2(e,t,n){const r=[],s=n||vn.mix||C0,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=L2(t,r,s),u=a.length,c=d=>{if(o&&d1)for(;fc(jt(e[0],e[i-1],d)):c}function A2(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=jr(0,t,r);e.push(te(n,1,s))}}function _0(e){const t=[0];return A2(t,e.length-1),t}function D2(e,t){return e.map(n=>n*t)}function R2(e,t){return e.map(()=>t||x0).splice(0,e.length-1)}function ls({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Ub(r)?r.map(Vf):Vf(r),i={done:!1,value:t[0]},o=D2(n&&n.length===t.length?n:_0(t),e),a=Bc(o,t,{ease:Array.isArray(s)?s:R2(t,s)});return{calculatedDuration:e,next:u=>(i.value=a(u),i.done=u>=e,i)}}const I2=e=>e!==null;function Zo(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(I2),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const V2={decay:iu,inertia:iu,tween:ls,keyframes:ls,spring:bo};function M0(e){typeof e.type=="string"&&(e.type=V2[e.type])}class $c{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const O2=e=>e/100;class Ds extends $c{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==Fe.now()&&this.tick(Fe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;M0(t);const{type:n=ls,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const u=n||ls;u!==ls&&typeof a[0]!="number"&&(this.mixKeyframes=Us(O2,C0(a[0],a[1])),a=[0,100]);const c=u({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=zc(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:p,type:w,onUpdate:v,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let y=this.currentTime,b=r;if(f){const j=Math.min(this.currentTime,s)/a;let L=Math.floor(j),N=j%1;!N&&j>=1&&(N=1),N===1&&L--,L=Math.min(L,f+1),!!(L%2)&&(h==="reverse"?(N=1-N,p&&(N-=p/a)):h==="mirror"&&(b=o)),y=jt(0,1,N)*a}let P;m?(this.delayState.value=d[0],P=this.delayState):P=b.next(y),i&&!m&&(P.value=i(P.value));let{done:T}=P;!m&&u!==null&&(T=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return S&&w!==iu&&(P.value=Zo(d,this.options,k,this.speed)),v&&v(P.value),S&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(this.currentTime)}set time(t){t=Je(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return N0(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Fe.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=lt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=S2,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Fe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function F2(e){for(let t=1;te*180/Math.PI,ou=e=>{const t=Ln(Math.atan2(e[1],e[0]));return au(t)},z2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ou,rotateZ:ou,skewX:e=>Ln(Math.atan(e[1])),skewY:e=>Ln(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},au=e=>(e=e%360,e<0&&(e+=360),e),Wf=ou,Uf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),B2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Uf,scaleY:Gf,scale:e=>(Uf(e)+Gf(e))/2,rotateX:e=>au(Ln(Math.atan2(e[6],e[5]))),rotateY:e=>au(Ln(Math.atan2(-e[2],e[0]))),rotateZ:Wf,rotate:Wf,skewX:e=>Ln(Math.atan(e[4])),skewY:e=>Ln(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function lu(e){return e.includes("scale")?1:0}function uu(e,t){if(!e||e==="none")return lu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=B2,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=z2,s=a}if(!s)return lu(t);const i=r[t],o=s[1].split(",").map(H2);return typeof i=="function"?i(o):o[i]}const $2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return uu(n,t)};function H2(e){return parseFloat(e.trim())}const Dr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rr=new Set([...Dr,"pathRotation"]),Kf=e=>e===Ar||e===V,W2=new Set(["x","y","z"]),U2=Dr.filter(e=>!W2.has(e));function G2(e){const t=[];return U2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const on={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>uu(t,"x"),y:(e,{transform:t})=>uu(t,"y")};on.translateX=on.x;on.translateY=on.y;const Rn=new Set;let cu=!1,du=!1,fu=!1;function L0(){if(du){const e=Array.from(Rn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=G2(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}du=!1,cu=!1,Rn.forEach(e=>e.complete(fu)),Rn.clear()}function A0(){Rn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(du=!0)})}function K2(){fu=!0,A0(),L0(),fu=!1}class Hc{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Rn.add(this),cu||(cu=!0,X.read(A0),X.resolveKeyframes(L0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}F2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Rn.delete(this)}cancel(){this.state==="scheduled"&&(Rn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const X2=e=>e.startsWith("--");function D0(e,t,n){X2(t)?e.style.setProperty(t,n):e.style[t]=n}const Y2={};function Wc(e,t){const n=l0(e);return()=>Y2[t]??n()}const Uc=Wc(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),R0=Wc(()=>window.ViewTimeline!==void 0,"viewTimeline"),I0=Wc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qr([0,.65,.55,1]),circOut:qr([.55,0,1,.45]),backIn:qr([.31,.01,.66,-.59]),backOut:qr([.33,1.53,.69,.99])};function V0(e,t){if(e)return typeof e=="function"?I0()?E0(e,t):"ease-out":y0(e)?qr(e):Array.isArray(e)?e.map(n=>V0(n,t)||Xf.easeOut):Xf[e]}function q2(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:u}={},c=void 0){const d={[t]:n};u&&(d.offset=u);const f=V0(a,s);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function O0(e){return typeof e=="function"&&"applyToOptions"in e}function Q2({type:e,...t}){return O0(e)&&I0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class F0 extends $c{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Mc(typeof t.type!="string");const c=Q2(t);this.animation=q2(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Zo(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(d),D0(n,r,d),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Je(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Uc()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Ye):s(this)}}const z0={anticipate:m0,backInOut:h0,circInOut:g0};function Z2(e){return e in z0}function J2(e){typeof e.ease=="string"&&Z2(e.ease)&&(e.ease=z0[e.ease])}const Oa=10;class eS extends F0{constructor(t){J2(t),M0(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ds({...o,autoplay:!1}),u=Math.max(Oa,Fe.now()-this.startTime),c=jt(0,Oa,u-Oa),d=a.sample(u).value,{name:f}=this.options;i&&f&&D0(i,f,d),n.setWithVelocity(a.sample(Math.max(0,u-c)).value,d,c),a.stop()}}const Yf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bt.test(e)||e==="0")&&!e.startsWith("url("));function tS(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function aS(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return oS()&&n&&(B0.has(n)||iS.has(n)&&sS(a))&&(n!=="transform"||!d)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const lS=40;class uS extends $c{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:u,motionValue:c,element:d,...f}){var w;super(),this.stop=()=>{var v,k;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(k=this.keyframeResolver)==null||k.cancel()},this.createdAt=Fe.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:u,motionValue:c,element:d,...f},p=(d==null?void 0:d.KeyframeResolver)||Hc;this.keyframeResolver=new p(a,(v,k,g)=>this.onKeyframesResolved(v,k,h,!g),u,c,d),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,s){var g,m;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:u,isHandoff:c,onUpdate:d}=r;this.resolvedAt=Fe.now();let f=!0;nS(t,i,o,a)||(f=!1,(vn.instantAnimations||!u)&&(d==null||d(Zo(t,r,n))),t[0]=t[t.length-1],hu(r),r.repeat=0);const p={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>lS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},w=f&&!c&&aS(p),v=(m=(g=p.motionValue)==null?void 0:g.owner)==null?void 0:m.current;let k;if(w)try{k=new eS({...p,element:v})}catch{k=new Ds(p)}else k=new Ds(p);k.finished.then(()=>{this.notifyFinished()}).catch(Ye),this.pendingTimeline&&(this.stopTimeline=k.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=k}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),K2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function $0(e,t,n,r=0,s=1){const i=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const qf=30,cS=e=>!isNaN(parseFloat(e)),us={current:void 0};class dS{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=Fe.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Fe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=cS(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Lc);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return us.current&&us.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>qf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qf);return Ac(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vt(e,t){return new dS(e,t)}function H0(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Gc(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?H0(n,e):n}const fS={type:"spring",stiffness:500,damping:25,restSpeed:10},hS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mS={type:"keyframes",duration:.8},pS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gS=(e,{keyframes:t})=>t.length>2?mS:Rr.has(e)?e.startsWith("scale")?hS(t[1]):fS:pS,xS=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function yS(e){for(const t in e)if(!xS.has(t))return!0;return!1}const Kc=(e,t,n,r={},s,i)=>o=>{const a=Gc(r,e)||{},u=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Je(u);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};yS(a)||Object.assign(d,gS(e,d)),d.duration&&(d.duration=Je(d.duration)),d.repeatDelay&&(d.repeatDelay=Je(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(hu(d),d.delay===0&&(f=!0)),(vn.instantAnimations||vn.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(f=!0,hu(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const h=Zo(d.keyframes,a);if(h!==void 0){X.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Ds(d):new uS(d)},vS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wS(e){const t=vS.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function W0(e,t,n=1){const[r,s]=wS(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return i0(o)?parseFloat(o):o}return Ic(s)?W0(s,t,n+1):s}function Qf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Xc(e,t,n,r){if(typeof t=="function"){const[s,i]=Qf(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Qf(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function In(e,t,n){const r=e.getProps();return Xc(r,t,n!==void 0?n:r.custom,e)}const U0=new Set(["width","height","top","left","right","bottom",...Dr]),mu=e=>Array.isArray(e);function kS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vt(n))}function bS(e){return mu(e)?e[e.length-1]||0:e}function SS(e,t){const n=In(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=bS(i[o]);kS(e,o,a)}}const be=e=>!!(e&&e.getVelocity);function jS(e){return!!(be(e)&&e.add)}function pu(e,t){const n=e.getValue("willChange");if(jS(n))return n.add(t);if(!n&&vn.WillChange){const r=new vn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Yc(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const PS="framerAppearId",G0="data-"+Yc(PS);function K0(e){return e.props[G0]}function TS({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function X0(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();i=i?H0(i,u):u;const c=i==null?void 0:i.reduceMotion,d=i==null?void 0:i.skipAnimations;r&&(i=r);const f=[],h=s&&e.animationState&&e.animationState.getState()[s],p=i==null?void 0:i.path;p&&p.animateVisualElement(e,a,i,n,f);for(const w in a){const v=e.getValue(w,e.latestValues[w]??null),k=a[w];if(k===void 0||h&&TS(h,w))continue;const g={delay:n,...Gc(i||{},w)};d&&(g.skipAnimations=!0);const m=v.get();if(m!==void 0&&!v.isAnimating()&&!Array.isArray(k)&&k===m&&!g.velocity){X.update(()=>v.set(k));continue}let y=!1;if(window.MotionHandoffAnimation){const T=K0(e);if(T){const S=window.MotionHandoffAnimation(T,w,X);S!==null&&(g.startTime=S,y=!0)}}pu(e,w);const b=c??e.shouldReduceMotion;v.start(Kc(w,v,k,b&&U0.has(w)?{type:!1}:g,e,y));const P=v.animation;P&&f.push(P)}if(o){const w=()=>X.update(()=>{o&&SS(e,o)});f.length?Promise.all(f).then(w):w()}return f}function gu(e,t,n={}){var u;const r=In(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(X0(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return CS(e,t,c,d,f,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,d]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>d())}else return Promise.all([i(),o(n.delay)])}function CS(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),a.push(gu(u,t,{...o,delay:n+(typeof r=="function"?0:r)+$0(e.variantChildren,u,r,s,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function ES(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>gu(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=gu(e,t,n);else{const s=typeof t=="function"?In(e,t,n.custom):t;r=Promise.all(X0(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const NS={test:e=>e==="auto",parse:e=>e},Y0=e=>t=>t.test(e),q0=[Ar,V,At,It,s2,r2,NS],Zf=e=>q0.find(Y0(e));function _S(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||a0(e):!0}const MS=new Set(["brightness","contrast","saturate","opacity"]);function LS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vc)||[];if(!r)return e;const s=n.replace(r,"");let i=MS.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const AS=/\b([a-z-]*)\(.*?\)/gu,xu={...bt,getAnimatableNone:e=>{const t=e.match(AS);return t?t.map(LS).join(" "):e}},yu={...bt,getAnimatableNone:e=>{const t=bt.parse(e);return bt.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Jf={...Ar,transform:Math.round},DS={rotate:It,pathRotation:It,rotateX:It,rotateY:It,rotateZ:It,scale:xi,scaleX:xi,scaleY:xi,scaleZ:xi,skew:It,skewX:It,skewY:It,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:As,originX:Ff,originY:Ff,originZ:V},So={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...DS,zIndex:Jf,fillOpacity:As,strokeOpacity:As,numOctaves:Jf},RS={...So,color:ge,backgroundColor:ge,outlineColor:ge,fill:ge,stroke:ge,borderColor:ge,borderTopColor:ge,borderRightColor:ge,borderBottomColor:ge,borderLeftColor:ge,filter:xu,WebkitFilter:xu,mask:yu,WebkitMask:yu},Q0=e=>RS[e],IS=new Set([xu,yu]);function Z0(e,t){let n=Q0(e);return IS.has(n)||(n=bt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const VS=new Set(["auto","none","0"]);function OS(e,t,n){let r=0,s;for(;r{t.getValue(u).set(c)}),this.resolveNoneKeyframes()}}const qc=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function J0(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const vu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function cs(e){return o0(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Tr,cancel:ex}=v0(queueMicrotask,!1),pt={x:!1,y:!1};function tx(){return pt.x||pt.y}function zS(e){return e==="x"||e==="y"?pt[e]?null:(pt[e]=!0,()=>{pt[e]=!1}):pt.x||pt.y?null:(pt.x=pt.y=!0,()=>{pt.x=pt.y=!1})}function nx(e,t){const n=J0(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function BS(e){return!(e.pointerType==="touch"||tx())}function $S(e,t,n={}){const[r,s,i]=nx(e,n);return r.forEach(o=>{let a=!1,u=!1,c;const d=()=>{o.removeEventListener("pointerleave",w)},f=k=>{c&&(c(k),c=void 0),d()},h=k=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(k))},p=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},w=k=>{if(k.pointerType!=="touch"){if(a){u=!0;return}f(k)}},v=k=>{if(!BS(k))return;u=!1;const g=t(o,k);typeof g=="function"&&(c=g,o.addEventListener("pointerleave",w,s))};o.addEventListener("pointerenter",v,s),o.addEventListener("pointerdown",p,s)}),i}const rx=(e,t)=>t?e===t?!0:rx(e,t.parentElement):!1,Qc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,HS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WS(e){return HS.has(e.tagName)||e.isContentEditable===!0}const US=new Set(["INPUT","SELECT","TEXTAREA"]);function GS(e){return US.has(e.tagName)||e.isContentEditable===!0}const Oi=new WeakSet;function eh(e){return t=>{t.key==="Enter"&&e(t)}}function Fa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const KS=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=eh(()=>{if(Oi.has(n))return;Fa(n,"down");const s=eh(()=>{Fa(n,"up")}),i=()=>Fa(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function th(e){return Qc(e)&&!tx()}const nh=new WeakSet;function XS(e,t,n={}){const[r,s,i]=nx(e,n),o=a=>{const u=a.currentTarget;if(!th(a)||nh.has(a))return;Oi.add(u),n.stopPropagation&&nh.add(a);const c=t(u,a),d={...s,capture:!0},f=(w,v)=>{window.removeEventListener("pointerup",h,d),window.removeEventListener("pointercancel",p,d),Oi.has(u)&&Oi.delete(u),th(w)&&typeof c=="function"&&c(w,{success:v})},h=w=>{f(w,u===window||u===document||n.useGlobalTarget||rx(u,w.target))},p=w=>{f(w,!1)};window.addEventListener("pointerup",h,d),window.addEventListener("pointercancel",p,d)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),cs(a)&&(a.addEventListener("focus",c=>KS(c,s)),!WS(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Zc(e){return o0(e)&&"ownerSVGElement"in e}const Fi=new WeakMap;let qt;const sx=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:Zc(r)&&"getBBox"in r?r.getBBox()[t]:r[n],YS=sx("inline","width","offsetWidth"),qS=sx("block","height","offsetHeight");function QS({target:e,borderBoxSize:t}){var n;(n=Fi.get(e))==null||n.forEach(r=>{r(e,{get width(){return YS(e,t)},get height(){return qS(e,t)}})})}function ZS(e){e.forEach(QS)}function JS(){typeof ResizeObserver>"u"||(qt=new ResizeObserver(ZS))}function ej(e,t){qt||JS();const n=J0(e);return n.forEach(r=>{let s=Fi.get(r);s||(s=new Set,Fi.set(r,s)),s.add(t),qt==null||qt.observe(r)}),()=>{n.forEach(r=>{const s=Fi.get(r);s==null||s.delete(t),s!=null&&s.size||qt==null||qt.unobserve(r)})}}const zi=new Set;let ar;function tj(){ar=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};zi.forEach(t=>t(e))},window.addEventListener("resize",ar)}function nj(e){return zi.add(e),ar||tj(),()=>{zi.delete(e),!zi.size&&typeof ar=="function"&&(window.removeEventListener("resize",ar),ar=void 0)}}function wu(e,t){return typeof e=="function"?nj(e):ej(e,t)}function ix(e,t){let n;const r=()=>{const{currentTime:s}=t,o=(s===null?0:s.value)/100;n!==o&&e(o),n=o};return X.preUpdate(r,!0),()=>ft(r)}function rj(e){return Zc(e)&&e.tagName==="svg"}function sj(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],s=e[1+n],i=e[2+n],o=e[3+n],a=Bc(s,i,o);return t?a(r):a}function ij(e,t,n={}){const r=e.get();let s=null,i=r,o;const a=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,u=()=>{s&&(s.stop(),s=null),e.animation=void 0},c=()=>{const f=rh(e.get()),h=rh(i);if(f===h){u();return}const p=s?s.getGeneratorVelocity():e.getVelocity();u(),s=new Ds({keyframes:[f,h],velocity:p,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})},d=()=>{var f;c(),e.animation=s??void 0,(f=e.events.animationStart)==null||f.notify(),s==null||s.then(()=>{var h;e.animation=void 0,(h=e.events.animationComplete)==null||h.notify()})};if(e.attach((f,h)=>{i=f,o=p=>h(za(p,a)),X.postRender(d)},u),be(t)){let f=n.skipInitialAnimation===!0;const h=t.on("change",w=>{f?(f=!1,e.jump(za(w,a),!1)):e.set(za(w,a))}),p=e.on("destroy",h);return()=>{h(),p()}}return u}function za(e,t){return t?e+t:e}function rh(e){return typeof e=="number"?e:parseFloat(e)}const oj=[...q0,ge,bt],aj=e=>oj.find(Y0(e)),sh=()=>({translate:0,scale:1,origin:0,originPoint:0}),lr=()=>({x:sh(),y:sh()}),ih=()=>({min:0,max:0}),ve=()=>({x:ih(),y:ih()}),lj=new WeakMap;function Jo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rs(e){return typeof e=="string"||Array.isArray(e)}const Jc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ed=["initial",...Jc];function ea(e){return Jo(e.animate)||ed.some(t=>Rs(e[t]))}function ox(e){return!!(ea(e)||e.variants)}function uj(e,t,n){for(const r in t){const s=t[r],i=n[r];if(be(s))e.addValue(r,s);else if(be(i))e.addValue(r,vt(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,vt(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ku={current:null},ax={current:!1},cj=typeof window<"u";function dj(){if(ax.current=!0,!!cj)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ku.current=e.matches;e.addEventListener("change",t),t()}else ku.current=!1}const oh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let jo={};function lx(e){jo=e}function fj(){return jo}class hj{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Hc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Fe.now();this.renderScheduledAtthis.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ax.current||dj(),this.shouldReduceMotion=ku.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),ft(this.notifyUpdate),ft(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&B0.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:c,duration:d}=n.accelerate,f=new F0({element:this.current,name:t,keyframes:a,times:u,ease:c,duration:Je(d)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=Rr.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in jo){const n=jo[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ve()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(i0(r)||a0(r))?r=parseFloat(r):!aj(r)&&bt.test(n)&&(r=Z0(t,n)),this.setBaseTarget(t,be(r)?r.get():r)),be(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Xc(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!be(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Lc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Tr.render(this.render)}}class ux extends hj{constructor(){super(...arguments),this.KeyframeResolver=FS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;be(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Sn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function cx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function mj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pj(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ba(e){return e===void 0||e===1}function bu({scale:e,scaleX:t,scaleY:n}){return!Ba(e)||!Ba(t)||!Ba(n)}function Cn(e){return bu(e)||dx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dx(e){return ah(e.x)||ah(e.y)}function ah(e){return e&&e!=="0%"}function Po(e,t,n){const r=e-n,s=t*r;return n+s}function lh(e,t,n,r,s){return s!==void 0&&(e=Po(e,s,r)),Po(e,n,r)+t}function Su(e,t=0,n=1,r,s){e.min=lh(e.min,t,n,r,s),e.max=lh(e.max,t,n,r,s)}function fx(e,{x:t,y:n}){Su(e.x,t.translate,t.scale,t.originPoint),Su(e.y,n.translate,n.scale,n.originPoint)}const uh=.999999999999,ch=1.0000000000001;function gj(e,t,n,r=!1){var a;const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let u=0;uuh&&(t.x=1),t.yuh&&(t.y=1)}function Nt(e,t){e.min+=t,e.max+=t}function dh(e,t,n,r,s=.5){const i=te(e.min,e.max,s);Su(e,t,n,i,r)}function fh(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Bi(e,t,n){const r=n??e;dh(e.x,fh(t.x,r.x),t.scaleX,t.scale,t.originX),dh(e.y,fh(t.y,r.y),t.scaleY,t.scale,t.originY)}function hx(e,t){return cx(pj(e.getBoundingClientRect(),t))}function xj(e,t,n){const r=hx(e,n),{scroll:s}=t;return s&&(Nt(r.x,s.offset.x),Nt(r.y,s.offset.y)),r}const yj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vj=Dr.length;function wj(e,t,n){let r="",s=!0;for(let o=0;o{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=hh(e,t.target.x),r=hh(e,t.target.y);return`${n}% ${r}%`}},kj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=bt.parse(e);if(s.length>5)return r;const i=bt.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=u;const c=te(a,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},ju={borderRadius:{...Ur,applyTo:[...qc]},borderTopLeftRadius:Ur,borderTopRightRadius:Ur,borderBottomLeftRadius:Ur,borderBottomRightRadius:Ur,boxShadow:kj};function px(e,{layout:t,layoutId:n}){return Rr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ju[e]||e==="opacity")}function nd(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(be(r[a])||s&&be(s[a])||px(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function bj(e){return window.getComputedStyle(e)}class Sj extends ux{constructor(){super(...arguments),this.type="html",this.renderInstance=mx}readValueFromInstance(t,n){var r;if(Rr.has(n))return(r=this.projection)!=null&&r.isProjecting?lu(n):$2(t,n);{const s=bj(t),i=(k0(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return hx(t,n)}build(t,n,r){td(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return nd(t,n,r)}}const jj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Pj={offset:"strokeDashoffset",array:"strokeDasharray"};function Tj(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?jj:Pj;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Cj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function gx(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},u,c,d){if(td(e,a,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox);for(const p of Cj)f[p]!==void 0&&(h[p]=f[p],delete f[p]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&Tj(f,s,i,o,!1)}const xx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),yx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ej(e,t,n,r){mx(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(xx.has(s)?s:Yc(s),t.attrs[s])}function vx(e,t,n){const r=nd(e,t,n);for(const s in e)if(be(e[s])||be(t[s])){const i=Dr.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class Nj extends ux{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ve}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Rr.has(n)){const r=Q0(n);return r&&r.default||0}return n=xx.has(n)?n:Yc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return vx(t,n,r)}build(t,n,r){gx(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){Ej(t,n,r,s)}mount(t){this.isSVGTag=yx(t.tagName),super.mount(t)}}const _j=ed.length;function wx(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?wx(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_j;n++){const r=ed[n],s=e.props[r];(Rs(s)||s===!1)&&(t[r]=s)}return t}function kx(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>ES(e,n,r)))}function Dj(e){let t=Aj(e),n=mh(),r=!0,s=!1;const i=c=>(d,f)=>{var p;const h=In(e,f,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(h){const{transition:w,transitionEnd:v,...k}=h;d={...d,...k,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=wx(e.parent)||{},h=[],p=new Set;let w={},v=1/0;for(let g=0;gv&&P,N=!1;const O=Array.isArray(b)?b:[b];let H=O.reduce(i(m),{});T===!1&&(H={});const{prevResolvedValues:oe={}}=y,_={...oe,...H},R=E=>{L=!0,p.has(E)&&(N=!0,p.delete(E)),y.needsAnimating[E]=!0;const C=e.getValue(E);C&&(C.liveStyle=!1)};for(const E in _){const C=H[E],A=oe[E];if(w.hasOwnProperty(E))continue;let F=!1;mu(C)&&mu(A)?F=!kx(C,A)||j:F=C!==A,F?C!=null?R(E):p.add(E):C!==void 0&&p.has(E)?R(E):y.protectedKeys[E]=!0}y.prevProp=b,y.prevResolvedValues=H,y.isActive&&(w={...w,...H}),(r||s)&&e.blockInitialAnimation&&(L=!1);const B=S&&j;L&&(!B||N)&&h.push(...O.map(E=>{const C={type:m};if(typeof E=="string"&&(r||s)&&!B&&e.manuallyAnimateOnMount&&e.parent){const{parent:A}=e,F=In(A,E);if(A.enteringChildren&&F){const{delayChildren:q}=F.transition||{};C.delay=$0(A.enteringChildren,e,q)}}return{animation:E,options:C}}))}if(p.size){const g={};if(typeof d.initial!="boolean"){const m=In(e,Array.isArray(d.initial)?d.initial[0]:d.initial);m&&m.transition&&(g.transition=m.transition)}p.forEach(m=>{const y=e.getBaseTarget(m),b=e.getValue(m);b&&(b.liveStyle=!0),g[m]=y??null}),h.push({animation:g})}let k=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(k=!1),r=!1,s=!1,k?t(h):Promise.resolve()}function u(c,d){var h;if(n[c].isActive===d)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(p=>{var w;return(w=p.animationState)==null?void 0:w.setActive(c,d)}),n[c].isActive=d;const f=a(c);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=mh(),s=!0}}}function Rj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!kx(t,e):!1}function jn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mh(){return{animate:jn(!0),whileInView:jn(),whileHover:jn(),whileTap:jn(),whileDrag:jn(),whileFocus:jn(),exit:jn()}}function Pu(e,t){e.min=t.min,e.max=t.max}function mt(e,t){Pu(e.x,t.x),Pu(e.y,t.y)}function ph(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const bx=1e-4,Ij=1-bx,Vj=1+bx,Sx=.01,Oj=0-Sx,Fj=0+Sx;function ze(e){return e.max-e.min}function zj(e,t,n){return Math.abs(e-t)<=n}function gh(e,t,n,r=.5){e.origin=r,e.originPoint=te(t.min,t.max,e.origin),e.scale=ze(n)/ze(t),e.translate=te(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ij&&e.scale<=Vj||isNaN(e.scale))&&(e.scale=1),(e.translate>=Oj&&e.translate<=Fj||isNaN(e.translate))&&(e.translate=0)}function ds(e,t,n,r){gh(e.x,t.x,n.x,r?r.originX:void 0),gh(e.y,t.y,n.y,r?r.originY:void 0)}function xh(e,t,n,r=0){const s=r?te(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+ze(t)}function Bj(e,t,n,r){xh(e.x,t.x,n.x,r==null?void 0:r.x),xh(e.y,t.y,n.y,r==null?void 0:r.y)}function yh(e,t,n,r=0){const s=r?te(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+ze(t)}function To(e,t,n,r){yh(e.x,t.x,n.x,r==null?void 0:r.x),yh(e.y,t.y,n.y,r==null?void 0:r.y)}function vh(e,t,n,r,s){return e-=t,e=Po(e,1/n,r),s!==void 0&&(e=Po(e,1/s,r)),e}function $j(e,t=0,n=1,r=.5,s,i=e,o=e){if(At.test(t)&&(t=parseFloat(t),t=te(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=te(i.min,i.max,r);e===i&&(a-=t),e.min=vh(e.min,t,n,a,s),e.max=vh(e.max,t,n,a,s)}function wh(e,t,[n,r,s],i,o){$j(e,t[n],t[r],t[s],t.scale,i,o)}const Hj=["x","scaleX","originX"],Wj=["y","scaleY","originY"];function kh(e,t,n,r){wh(e.x,t,Hj,n?n.x:void 0,r?r.x:void 0),wh(e.y,t,Wj,n?n.y:void 0,r?r.y:void 0)}function bh(e){return e.translate===0&&e.scale===1}function jx(e){return bh(e.x)&&bh(e.y)}function Sh(e,t){return e.min===t.min&&e.max===t.max}function Uj(e,t){return Sh(e.x,t.x)&&Sh(e.y,t.y)}function jh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Px(e,t){return jh(e.x,t.x)&&jh(e.y,t.y)}function Ph(e){return ze(e.x)/ze(e.y)}function Th(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Et(e){return[e("x"),e("y")]}function Gj(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,pathRotation:f,rotateX:h,rotateY:p,skewX:w,skewY:v}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),p&&(r+=`rotateY(${p}deg) `),w&&(r+=`skewX(${w}deg) `),v&&(r+=`skewY(${v}deg) `)}const a=e.x.scale*t.x,u=e.y.scale*t.y;return(a!==1||u!==1)&&(r+=`scale(${a}, ${u})`),r||"none"}const Kj=qc.length,Ch=e=>typeof e=="string"?parseFloat(e):e,Eh=e=>typeof e=="number"||V.test(e);function Xj(e,t,n,r,s,i){s?(e.opacity=te(0,n.opacity??1,Yj(r)),e.opacityExit=te(t.opacity??1,0,qj(r))):i&&(e.opacity=te(t.opacity??1,n.opacity??1,r));for(let o=0;ort?1:n(jr(e,t,r))}function Qj(e,t,n){const r=be(e)?e:vt(e);return r.start(Kc("",r,t,n)),r.animation}function Is(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const Zj=(e,t)=>e.depth-t.depth;class Jj{constructor(){this.children=[],this.isDirty=!1}add(t){_c(this.children,t),this.isDirty=!0}remove(t){vo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zj),this.isDirty=!1,this.children.forEach(t)}}function eP(e,t){const n=Fe.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(ft(r),e(i-t))};return X.setup(r,!0),()=>ft(r)}function $i(e){return be(e)?e.get():e}class tP{constructor(){this.members=[]}add(t){_c(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;(!s||s.isConnected===!1)&&!r.snapshot&&(vo(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(vo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,n){var s;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:o}=t.options;(i===void 0||i!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,s,i,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(s=t.resumingFrom)==null?void 0:(i=s.options).onExitComplete)==null||o.call(i)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Hi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$a=["","X","Y","Z"],nP=1e3;let rP=0;function Ha(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Cx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=K0(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Cx(r)}function Ex({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=rP++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(oP),this.nodes.forEach(fP),this.nodes.forEach(hP),this.nodes.forEach(aP)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;X.read(()=>{f=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,d&&d(),d=eP(h,250),Hi.hasAnimatedSinceResize&&(Hi.hasAnimatedSinceResize=!1,this.nodes.forEach(Lh)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||yP,{onLayoutAnimationStart:v,onLayoutAnimationComplete:k}=c.getProps(),g=!this.targetLayout||!Px(this.targetLayout,p),m=!f&&h;if(this.options.layoutRoot||this.resumeFrom||m||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...Gc(w,"layout"),onPlay:v,onComplete:k};(c.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(d,m,y.path)}else f||Lh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mP),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Cx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ze(this.snapshot.measuredBox.x)&&!ze(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const S=T/1e3,j=P==null?void 0:P(S);j?(h.x.translate=j.x,h.x.scale=te(o.x.scale,1,S),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=j.y,h.y.scale=te(o.y.scale,1,S),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(Ah(h.x,o.x,S),Ah(h.y,o.y,S)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(To(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),gP(this.relativeTarget,this.relativeTargetOrigin,p,S),b&&Uj(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=ve()),mt(b,this.relativeTarget)),k&&(this.animationValues=f,Xj(f,d,this.latestValues,S,y,m)),j&&j.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=j.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,u,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||c.stop(),this.pendingAnimation&&(ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Hi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=vt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Qj(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:u,layout:c,latestValues:d}=o;if(!(!a||!u||!c)){if(this!==o&&this.layout&&c&&Nx(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||ve();const f=ze(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const h=ze(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+h}mt(a,u),Bi(a,d),ds(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new tP),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const c={};u.z&&Ha("z",o,c,this.animationValues);for(let d=0;d<$a.length;d++)Ha(`rotate${$a[d]}`,o,c,this.animationValues),Ha(`skew${$a[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=$i(a==null?void 0:a.pointerEvents)||"",o.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=$i(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Cn(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=Gj(this.projectionDeltaWithTransform,this.treeScale,d);u&&(f=u(d,f)),o.transform=f;const{x:h,y:p}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?o.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const w in ju){if(d[w]===void 0)continue;const{correct:v,applyTo:k,isCSSVariable:g}=ju[w],m=f==="none"?d[w]:v(d[w],c);if(k){const y=k.length;for(let b=0;b{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(_h),this.root.sharedNodes.clear()}}}function sP(e){e.updateLayout()}function iP(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if(i==="size")Et(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=ze(h);h.min=r[f].min,h.max=h.min+p});else if(i==="x"||i==="y"){const f=i==="x"?"y":"x";Pu(o?t.measuredBox[f]:t.layoutBox[f],r[f])}else Nx(i,t.layoutBox,r)&&Et(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],p=ze(r[f]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=lr();ds(a,r,t.layoutBox);const u=lr();o?ds(u,e.applyTransform(s,!0),t.measuredBox):ds(u,r,t.layoutBox);const c=!jx(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const w=e.options.layoutAnchor||void 0,v=ve();To(v,t.layoutBox,h.layoutBox,w);const k=ve();To(k,r,p.layoutBox,w),Px(v,k)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=k,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function oP(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function aP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lP(e){e.clearSnapshot()}function _h(e){e.clearMeasurements()}function uP(e){e.isLayoutDirty=!0,e.updateLayout()}function Mh(e){e.isLayoutDirty=!1}function cP(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function dP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Lh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fP(e){e.resolveTargetDelta()}function hP(e){e.calcProjection()}function mP(e){e.resetSkewAndRotation()}function pP(e){e.removeLeadSnapshot()}function Ah(e,t,n){e.translate=te(t.translate,0,n),e.scale=te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dh(e,t,n,r){e.min=te(t.min,n.min,r),e.max=te(t.max,n.max,r)}function gP(e,t,n,r){Dh(e.x,t.x,n.x,r),Dh(e.y,t.y,n.y,r)}function xP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const yP={duration:.45,ease:[.4,0,.1,1]},Rh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ih=Rh("applewebkit/")&&!Rh("chrome/")?Math.round:Ye;function Vh(e){e.min=Ih(e.min),e.max=Ih(e.max)}function vP(e){Vh(e.x),Vh(e.y)}function Nx(e,t,n){return e==="position"||e==="preserve-aspect"&&!zj(Ph(t),Ph(n),.2)}function wP(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const kP=Ex({attachResizeListener:(e,t)=>Is(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Wa={current:void 0},_x=Ex({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wa.current){const e=new kP({});e.mount(window),e.setOptions({layoutScroll:!0}),Wa.current=e}return Wa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Xs=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Oh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bP(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Oh(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{width:p,height:w,top:v,left:k,right:g,bottom:m,direction:y}=u.current;if(t||i===!1||!a.current||!p||!w)return;const b=y==="rtl",P=n==="left"?b?`right: ${g}`:`left: ${k}`:b?`left: ${k}`:`right: ${g}`,T=r==="bottom"?`bottom: ${m}`:`top: ${v}`;a.current.dataset.motionPopId=o;const S=document.createElement("style");c&&(S.nonce=c);const j=s??document.head;return j.appendChild(S),S.sheet&&S.sheet.insertRule(` - [data-motion-pop-id="${o}"] { - position: absolute !important; - width: ${p}px !important; - height: ${w}px !important; - ${P}px !important; - ${T}px !important; - } - `),()=>{var L;(L=a.current)==null||L.removeAttribute("data-motion-pop-id"),j.contains(S)&&j.removeChild(S)}},[t]),l.jsx(jP,{isPresent:t,childRef:a,sizeRef:u,pop:i,children:i===!1?e:x.cloneElement(e,{ref:f})})}const TP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:u,root:c})=>{const d=yn(CP),f=x.useId(),h=x.useRef(n),p=x.useRef(r);Ws(()=>{h.current=n,p.current=r});let w=!0,v=x.useMemo(()=>(w=!1,{id:f,initial:t,isPresent:n,custom:s,onExitComplete:k=>{d.set(k,!0);for(const g of d.values())if(!g)return;r&&r()},register:k=>(d.set(k,!1),()=>{var g;d.delete(k),!h.current&&!d.size&&((g=p.current)==null||g.call(p))})}),[n,d,r]);return i&&w&&(v={...v}),x.useMemo(()=>{d.forEach((k,g)=>d.set(g,!1))},[n]),x.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=l.jsx(PP,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:u,root:c,children:e}),l.jsx(Qo.Provider,{value:v,children:e})};function CP(){return new Map}function Mx(e=!0){const t=x.useContext(Qo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=x.useId();x.useEffect(()=>{if(e)return s(i)},[e]);const o=x.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const yi=e=>e.key||"";function Fh(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const EP=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left",anchorY:u="top",root:c})=>{const[d,f]=Mx(o),h=x.useMemo(()=>Fh(e),[e]),p=o&&!d?[]:h.map(yi),w=x.useRef(!0),v=x.useRef(h),k=yn(()=>new Map),g=x.useRef(new Set),[m,y]=x.useState(h),[b,P]=x.useState(h);Ws(()=>{w.current=!1,v.current=h;for(let j=0;j{const L=yi(j),N=o&&!d?!1:h===b||p.includes(L),O=()=>{if(g.current.has(L))return;if(k.has(L))g.current.add(L),k.set(L,!0);else return;let H=!0;k.forEach(oe=>{oe||(H=!1)}),H&&(S==null||S(),P(v.current),o&&(f==null||f()),r&&r())};return l.jsx(TP,{isPresent:N,initial:!w.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:N?void 0:O,anchorX:a,anchorY:u,children:j},L)})})},Lx=x.createContext({strict:!1}),zh={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Bh=!1;function NP(){if(Bh)return;const e={};for(const t in zh)e[t]={isEnabled:n=>zh[t].some(r=>!!n[r])};lx(e),Bh=!0}function Ax(){return NP(),fj()}function _P(e){const t=Ax();for(const n in e)t[n]={...t[n],...e[n]};lx(t)}const MP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Co(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MP.has(e)}let Dx=e=>!Co(e);function LP(e){typeof e=="function"&&(Dx=t=>t.startsWith("on")?!Co(t):e(t))}try{LP(require("@emotion/is-prop-valid").default)}catch{}function AP(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||be(e[s])||(Dx(s)||n===!0&&Co(s)||!t&&!Co(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const ta=x.createContext({});function DP(e,t){if(ea(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Rs(n)?n:void 0,animate:Rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function RP(e){const{initial:t,animate:n}=DP(e,x.useContext(ta));return x.useMemo(()=>({initial:t,animate:n}),[$h(t),$h(n)])}function $h(e){return Array.isArray(e)?e.join(" "):e}const rd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Rx(e,t,n){for(const r in t)!be(t[r])&&!px(r,n)&&(e[r]=t[r])}function IP({transformTemplate:e},t){return x.useMemo(()=>{const n=rd();return td(n,t,e),Object.assign({},n.vars,n.style)},[t])}function VP(e,t){const n=e.style||{},r={};return Rx(r,n,e),Object.assign(r,IP(e,t)),r}function OP(e,t){const n={},r=VP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Ix=()=>({...rd(),attrs:{}});function FP(e,t,n,r){const s=x.useMemo(()=>{const i=Ix();return gx(i,t,yx(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Rx(i,e.style,e),s.style={...i,...s.style}}return s}const zP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sd(e){return typeof e!="string"||e.includes("-")?!1:!!(zP.indexOf(e)>-1||/[A-Z]/u.test(e))}function BP(e,t,n,{latestValues:r},s,i=!1,o){const u=(o??sd(e)?FP:OP)(t,r,s,e),c=AP(t,typeof e=="string",i),d=e!==x.Fragment?{...c,...u,ref:n}:{},{children:f}=t,h=x.useMemo(()=>be(f)?f.get():f,[f]);return x.createElement(e,{...d,children:h})}function $P({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:HP(n,r,s,e),renderState:t()}}function HP(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=$i(i[h]);let{initial:o,animate:a}=e;const u=ea(e),c=ox(e);t&&c&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?a:o;if(f&&typeof f!="boolean"&&!Jo(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p(t,n)=>{const r=x.useContext(ta),s=x.useContext(Qo),i=()=>$P(e,t,r,s);return n?i():yn(i)},WP=Vx({scrapeMotionValuesFromProps:nd,createRenderState:rd}),UP=Vx({scrapeMotionValuesFromProps:vx,createRenderState:Ix}),GP=Symbol.for("motionComponentSymbol");function KP(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const s=x.useRef(null);return x.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const u=o(i);typeof u=="function"&&(s.current=u)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[t])}const Ox=x.createContext({});function Kn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function XP(e,t,n,r,s,i){var y,b;const{visualElement:o}=x.useContext(ta),a=x.useContext(Lx),u=x.useContext(Qo),c=x.useContext(Xs),d=c.reducedMotion,f=c.skipAnimations,h=x.useRef(null),p=x.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:i}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const w=h.current,v=x.useContext(Ox);w&&!w.projection&&s&&(w.type==="html"||w.type==="svg")&&YP(h.current,n,s,v);const k=x.useRef(!1);x.useInsertionEffect(()=>{w&&k.current&&w.update(n,u)});const g=n[G0],m=x.useRef(!!g&&typeof window<"u"&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,g))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,g)));return Ws(()=>{p.current=!0,w&&(k.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),m.current&&w.animationState&&w.animationState.animateChanges())}),x.useEffect(()=>{w&&(!m.current&&w.animationState&&w.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,g)}),m.current=!1),w.enteringChildren=void 0)}),w}function YP(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:u,layoutRoot:c,layoutAnchor:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Fx(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Kn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:c,layoutAnchor:d})}function Fx(e){if(e)return e.options.allowProjection!==!1?e.projection:Fx(e.parent)}function Ua(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&_P(r);const i=n?n==="svg":sd(e),o=i?UP:WP;function a(c,d){let f;const h={...x.useContext(Xs),...c,layoutId:qP(c)},{isStatic:p}=h,w=RP(c),v=o(c,p);if(!p&&typeof window<"u"){QP();const k=ZP(h);f=k.MeasureLayout,w.visualElement=XP(e,v,h,s,k.ProjectionNode,i)}return l.jsxs(ta.Provider,{value:w,children:[f&&w.visualElement?l.jsx(f,{visualElement:w.visualElement,...h}):null,BP(e,c,KP(v,w.visualElement,d),v,p,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=x.forwardRef(a);return u[GP]=e,u}function qP({layoutId:e}){const t=x.useContext(Nc).id;return t&&e!==void 0?t+"-"+e:e}function QP(e,t){x.useContext(Lx).strict}function ZP(e){const t=Ax(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function JP(e,t){if(typeof Proxy>"u")return Ua;const n=new Map,r=(i,o)=>Ua(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,Ua(o,void 0,e,t)),n.get(o))})}const eT=(e,t)=>t.isSVG??sd(e)?new Nj(t):new Sj(t,{allowProjection:e!==x.Fragment});class tT extends Sn{constructor(t){super(t),t.animationState||(t.animationState=Dj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let nT=0;class rT extends Sn{constructor(){super(...arguments),this.id=nT++,this.isExitComplete=!1}update(){var i;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const u=In(this.node,o,a);if(u){const{transition:c,transitionEnd:d,...f}=u;for(const h in f)(i=this.node.getValue(h))==null||i.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const sT={animation:{Feature:tT},exit:{Feature:rT}};function Ys(e){return{point:{x:e.pageX,y:e.pageY}}}const iT=e=>t=>Qc(t)&&e(t,Ys(t));function fs(e,t,n,r){return Is(e,t,iT(n),r)}const zx=({current:e})=>e?e.ownerDocument.defaultView:null,Hh=(e,t)=>Math.abs(e-t);function oT(e,t){const n=Hh(e.x,t.x),r=Hh(e.y,t.y);return Math.sqrt(n**2+r**2)}const Wh=new Set(["auto","scroll"]);class Bx{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=vi(this.lastRawMoveEventInfo,this.transformPagePoint));const w=Ga(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,k=oT(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!k)return;const{point:g}=w,{timestamp:m}=je;this.history.push({...g,timestamp:m});const{onStart:y,onMove:b}=this.handlers;v||(y&&y(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,w)},this.handlePointerMove=(w,v)=>{this.lastMoveEvent=w,this.lastRawMoveEventInfo=v,this.lastMoveEventInfo=vi(v,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(w,v)=>{this.end();const{onEnd:k,onSessionEnd:g,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Ga(w.type==="pointercancel"?this.lastMoveEventInfo:vi(v,this.transformPagePoint),this.history);this.startEvent&&k&&k(w,y),g&&g(w,y)},!Qc(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const u=Ys(t),c=vi(u,this.transformPagePoint),{point:d}=c,{timestamp:f}=je;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,Ga(c,this.history));const p={passive:!0,capture:!0};this.removeListeners=Us(fs(this.contextWindow,"pointermove",this.handlePointerMove,p),fs(this.contextWindow,"pointerup",this.handlePointerUp,p),fs(this.contextWindow,"pointercancel",this.handlePointerUp,p)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Wh.has(r.overflowX)||Wh.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),X.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ft(this.updatePoint)}}function vi(e,t){return t?{point:t(e.point)}:e}function Uh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ga({point:e},t){return{point:e,delta:Uh(e,$x(t)),offset:Uh(e,aT(t)),velocity:lT(t,.1)}}function aT(e){return e[0]}function $x(e){return e[e.length-1]}function lT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=$x(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Je(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Je(t)*2&&(r=e[1]);const i=lt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function uT(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?te(n,e,r.max):Math.min(e,n)),e}function Gh(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cT(e,{top:t,left:n,bottom:r,right:s}){return{x:Gh(e.x,n,s),y:Gh(e.y,t,r)}}function Kh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=jr(t.min,t.max-r,e.min):r>s&&(n=jr(e.min,e.max-s,t.min)),jt(0,1,n)}function hT(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Tu=.35;function mT(e=Tu){return e===!1?e=0:e===!0&&(e=Tu),{x:Xh(e,"left","right"),y:Xh(e,"top","bottom")}}function Xh(e,t,n){return{min:Yh(e,t),max:Yh(e,n)}}function Yh(e,t){return typeof e=="number"?e:e[t]||0}const pT=new WeakMap;class gT{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ve(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=f=>{n&&this.snapToCursor(Ys(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:p,dragPropagation:w,onDragStart:v}=this.getProps();if(p&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zS(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Et(g=>{let m=this.getAxisMotionValue(g).get()||0;if(At.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const b=y.layout.layoutBox[g];b&&(m=ze(b)*(parseFloat(m)/100))}}this.originPoint[g]=m}),v&&X.update(()=>v(f,h),!1,!0),pu(this.visualElement,"transform");const{animationState:k}=this.visualElement;k&&k.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:w,onDirectionLock:v,onDrag:k}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:g}=h;if(w&&this.currentDirection===null){this.currentDirection=yT(g),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),k&&X.update(()=>k(f,h),!1,!0)},u=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new Bx(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:zx(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&X.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!wi(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=uT(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&Kn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=cT(r.layoutBox,t):this.constraints=!1,this.elastic=mT(n),s!==this.constraints&&!Kn(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Et(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=hT(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Kn(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const i=xj(r,s.root,this.visualElement.getTransformPagePoint());let o=dT(s.layout.layoutBox,i);if(n){const a=n(mj(o));this.hasMutatedConstraints=!!a,a&&(o=cx(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},c=Et(d=>{if(!wi(d,n,this.currentDirection))return;let f=u&&u[d]||{};(o===!0||o===d)&&(f={min:0,max:0});const h=s?200:1e6,p=s?40:1e7,w={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,w)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return pu(this.visualElement,t),r.start(Kc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Et(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps()[n];return s||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Et(n=>{const{drag:r}=this.getProps();if(!wi(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-te(o,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Kn(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Et(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const u=a.get();s[o]=fT({min:u,max:u},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Et(o=>{if(!wi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:u,max:c}=this.constraints[o];a.set(te(u,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;pT.set(this.visualElement,this);const t=this.visualElement.current,n=fs(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps(),h=c.target,p=h!==t&&GS(h);d&&f&&!p&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();Kn(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=xT(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(s);const a=Is(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Et(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Tu,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function qh(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function xT(e,t,n){const r=wu(e,qh(n)),s=wu(t,qh(n));return()=>{r(),s()}}function wi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vT extends Sn{constructor(t){super(t),this.removeGroupControls=Ye,this.removeListeners=Ye,this.controls=new gT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ye}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ka=e=>(t,n)=>{e&&X.update(()=>e(t,n),!1,!0)};class wT extends Sn{constructor(){super(...arguments),this.removePointerDownListener=Ye}onPointerDown(t){this.session=new Bx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ka(t),onStart:Ka(n),onMove:Ka(r),onEnd:(i,o)=>{delete this.session,s&&X.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=fs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Xa=!1;class kT extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),Xa&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Hi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Xa=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||X.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Tr.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Xa=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Hx(e){const[t,n]=Mx(),r=x.useContext(Nc);return l.jsx(kT,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(Ox),isPresent:t,safeToRemove:n})}const bT={pan:{Feature:wT},drag:{Feature:vT,ProjectionNode:_x,MeasureLayout:Hx}};function Qh(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&X.postRender(()=>i(t,Ys(t)))}class ST extends Sn{mount(){const{current:t}=this.node;t&&(this.unmount=$S(t,(n,r)=>(Qh(this.node,r,"Start"),s=>Qh(this.node,s,"End"))))}unmount(){}}class jT extends Sn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Us(Is(this.node.current,"focus",()=>this.onFocus()),Is(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zh(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&X.postRender(()=>i(t,Ys(t)))}class PT extends Sn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=XS(t,(s,i)=>(Zh(this.node,i,"Start"),(o,{success:a})=>Zh(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Cu=new WeakMap,Ya=new WeakMap,TT=e=>{const t=Cu.get(e.target);t&&t(e)},CT=e=>{e.forEach(TT)};function ET({root:e,...t}){const n=e||document;Ya.has(n)||Ya.set(n,{});const r=Ya.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(CT,{root:e,...t})),r[s]}function NT(e,t,n){const r=ET(t);return Cu.set(e,n),r.observe(e),()=>{Cu.delete(e),r.unobserve(e)}}const _T={some:0,all:1};class MT extends Sn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var u;(u=this.stopObserver)==null||u.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:_T[s]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),p=d?f:h;p&&p(c)};this.stopObserver=NT(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(LT(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function LT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AT={inView:{Feature:MT},tap:{Feature:PT},focus:{Feature:jT},hover:{Feature:ST}},DT={layout:{ProjectionNode:_x,MeasureLayout:Hx}},RT={...sT,...AT,...bT,...DT},Bt=JP(RT,eT);function Eo(e){return typeof window>"u"?!1:e?R0():Uc()}const IT=50,Jh=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),VT=()=>({time:0,x:Jh(),y:Jh()}),OT={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function em(e,t,n,r){const s=n[t],{length:i,position:o}=OT[t],a=s.current,u=n.time;s.current=Math.abs(e[`scroll${o}`]),s.scrollLength=e[`scroll${i}`]-e[`client${i}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=jr(0,s.scrollLength,s.current);const c=r-u;s.velocity=c>IT?0:Ac(s.current-a,c)}function FT(e,t,n){em(e,"x",t,n),em(e,"y",t,n),t.time=n}function zT(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(cs(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const s=r.getBoundingClientRect();r=r.parentElement;const i=r.getBoundingClientRect();n.x+=s.left-i.left,n.y+=s.top-i.top}else if(r instanceof SVGGraphicsElement){const{x:s,y:i}=r.getBBox();n.x+=s,n.y+=i;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const Eu={start:0,center:.5,end:1};function tm(e,t,n=0){let r=0;if(e in Eu&&(e=Eu[e]),typeof e=="string"){const s=parseFloat(e);e.endsWith("px")?r=s:e.endsWith("%")?e=s/100:e.endsWith("vw")?r=s/100*document.documentElement.clientWidth:e.endsWith("vh")?r=s/100*document.documentElement.clientHeight:e=s}return typeof e=="number"&&(r=t*e),n+r}const BT=[0,0];function $T(e,t,n,r){let s=Array.isArray(e)?e:BT,i=0,o=0;return typeof e=="number"?s=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,Eu[e]?e:"0"]),i=tm(s[0],n,r),o=tm(s[1],t),i-o}const Qr={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},HT={x:0,y:0};function WT(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function UT(e,t,n){const{offset:r=Qr.All}=n,{target:s=e,axis:i="y"}=n,o=i==="y"?"height":"width",a=s!==e?zT(s,e):HT,u=s===e?{width:e.scrollWidth,height:e.scrollHeight}:WT(s),c={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let d=!t[i].interpolate;const f=r.length;for(let h=0;h{GT(e,r.target,n),FT(e,n,s),(r.offset||r.target)&&UT(e,n,r)},notify:()=>t(n)}}const Gn=new WeakMap,nm=new WeakMap,qa=new WeakMap,rm=new WeakMap,ki=new WeakMap,sm=e=>e===document.scrollingElement?window:e;function Wx(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return Ye;let s=qa.get(t);s||(s=new Set,qa.set(t,s));const i=VT(),o=KT(t,e,i,r);if(s.add(o),!Gn.has(t)){const u=()=>{for(const h of s)h.measure(je.timestamp);X.preUpdate(c)},c=()=>{for(const h of s)h.notify()},d=()=>X.read(u);Gn.set(t,d);const f=sm(t);window.addEventListener("resize",d),t!==document.documentElement&&nm.set(t,wu(t,d)),f.addEventListener("scroll",d),d()}if(n&&!ki.has(t)){const u=Gn.get(t),c={width:t.scrollWidth,height:t.scrollHeight};rm.set(t,c);const d=()=>{const h=t.scrollWidth,p=t.scrollHeight;(c.width!==h||c.height!==p)&&(u(),c.width=h,c.height=p)},f=X.read(d,!0);ki.set(t,f)}const a=Gn.get(t);return X.read(a,!1,!0),()=>{var f;ft(a);const u=qa.get(t);if(!u||(u.delete(o),u.size))return;const c=Gn.get(t);Gn.delete(t),c&&(sm(t).removeEventListener("scroll",c),(f=nm.get(t))==null||f(),window.removeEventListener("resize",c));const d=ki.get(t);d&&(ft(d),ki.delete(t)),rm.delete(t)}}const XT=[[Qr.Enter,"entry"],[Qr.Exit,"exit"],[Qr.Any,"cover"],[Qr.All,"contain"]],im={start:0,end:1};function YT(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=im[t[0]],r=im[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function qT(e){if(e.length!==2)return;const t=[];for(const n of e)if(Array.isArray(n))t.push(n);else if(typeof n=="string"){const r=YT(n);if(!r)return;t.push(r)}else return;return t}function QT(e,t){const n=qT(e);if(!n)return!1;for(let r=0;r<2;r++){const s=n[r],i=t[r];if(s[0]!==i[0]||s[1]!==i[1])return!1}return!0}function id(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of XT)if(QT(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const om=new Map;function am(e){const t={value:0},n=Wx(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Ux({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let s=om.get(t);s||(s=new Map,om.set(t,s));const i=n.target??"self";let o=s.get(i);o||(o={},s.set(i,o));const a=r+(n.offset??[]).join(",");return o[a]||(n.target&&Eo(n.target)?id(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:r}):o[a]=am({container:t,...n}):Eo()?o[a]=new ScrollTimeline({source:t,axis:r}):o[a]=am({container:t,...n})),o[a]}function ZT(e,t){const n=Ux(t),r=t.target?id(t.offset):void 0,s=t.target?Eo(t.target)&&!!r:Eo();return e.attachTimeline({timeline:s?n:void 0,...r&&s&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:i=>(i.pause(),ix(o=>{i.time=i.iterationDuration*o},n))})}function JT(e){return e&&(e.target||e.offset)}function eC(e){return e.length===2}function tC(e,t){return eC(e)||JT(t)?Wx(n=>{e(n[t.axis].progress,n)},t):ix(e,Ux(t))}function Gx(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return Ye;const s={axis:t,container:n,...r};return typeof e=="function"?tC(e,s):ZT(e,s)}const nC=()=>({scrollX:vt(0),scrollY:vt(0),scrollXProgress:vt(0),scrollYProgress:vt(0)}),ur=e=>e?!e.current:!1;function lm(e,t,n,r){return{factory:s=>{let i;const o=()=>{if(ur(n)||ur(r)){Tr.read(o);return}i=Gx(s,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0})};return Tr.read(o),()=>{ex(o),i==null||i()}},times:[0,1],keyframes:[0,1],ease:s=>s,duration:1}}function rC(e,t){return typeof window>"u"?!1:e?R0()&&!!id(t):Uc()}function Kx({container:e,target:t,...n}={}){const r=yn(nC);rC(t,n.offset)&&(r.scrollXProgress.accelerate=lm("x",n,e,t),r.scrollYProgress.accelerate=lm("y",n,e,t));const s=x.useRef(null),i=x.useRef(!1),o=x.useCallback(()=>(s.current=Gx((a,{x:u,y:c})=>{r.scrollX.set(u.current),r.scrollXProgress.set(u.progress),r.scrollY.set(c.current),r.scrollYProgress.set(c.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var a;(a=s.current)==null||a.call(s)}),[e,t,JSON.stringify(n.offset)]);return Ws(()=>{if(i.current=!1,ur(e)||ur(t)){i.current=!0;return}else return o()},[o]),x.useEffect(()=>{if(!i.current)return;let a;const u=()=>{const c=ur(e),d=ur(t);!c&&!d&&(a=o())};return Tr.read(u),()=>{ex(u),a==null||a()}},[o]),r}function Xx(e){const t=yn(()=>vt(e)),{isStatic:n}=x.useContext(Xs);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function Yx(e,t){const n=Xx(t()),r=()=>n.set(t());return r(),Ws(()=>{const s=()=>X.preRender(r,!1,!0),i=e.map(o=>o.on("change",s));return()=>{i.forEach(o=>o()),ft(r)}}),n}function sC(e){us.current=[],e();const t=Yx(us.current,e);return us.current=void 0,t}function Jt(e,t,n,r){if(typeof e=="function")return sC(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return iC(e,t,n,r);const o=typeof t=="function"?t:sj(t,n,r),a=Array.isArray(e)?um(e,o):um([e],([c])=>o(c)),u=Array.isArray(e)?void 0:e.accelerate;return u&&!u.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(r==null?void 0:r.clamp)!==!1&&(a.accelerate={...u,times:t,keyframes:n,isTransformed:!0}),a}function um(e,t){const n=yn(()=>[]);return Yx(e,()=>{n.length=0;const r=e.length;for(let s=0;sObject.keys(n)),i=yn(()=>({}));for(const o of s)i[o]=Jt(e,t,n[o],r);return i}function oC(e,t={}){const{isStatic:n}=x.useContext(Xs),r=()=>be(e)?e.get():e;if(n)return Jt(r);const s=Xx(r());return x.useInsertionEffect(()=>ij(s,e,t),[s,JSON.stringify(t)]),s}function aC(e,t={}){return oC(e,{type:"spring",...t})}function lC(){const{scrollYProgress:e}=Kx(),t=aC(e,{stiffness:200,damping:30,restDelta:.001});return l.jsx(Bt.div,{style:{scaleX:t},className:"fixed left-0 top-0 z-40 h-0.5 w-full origin-left bg-brand-500"})}const uC=()=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"h-10 w-10",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.7 6.3a4 4 0 0 0-5.5 4.5L3 17l2 2 6.2-6.2a4 4 0 0 0 4.5-5.5l-2.6 2.6-2-2 2.6-2.6Z"})});function qs({message:e,fullScreen:t=!1}){const{t:n}=Ce(),r=l.jsxs("div",{className:"mx-auto max-w-md text-center",children:[l.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:l.jsx(uC,{})}),l.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:n("maintenance.title")}),l.jsx("p",{className:"text-neutral-600 dark:text-neutral-300",children:e||n("maintenance.defaultMessage")})]});return t?l.jsxs("div",{className:"relative flex min-h-screen items-center justify-center bg-white px-4 dark:bg-neutral-950",children:[r,l.jsxs(U,{to:"/admin/login","aria-label":n("maintenance.login"),title:n("maintenance.login"),className:"fixed bottom-4 right-4 flex items-center gap-2 rounded-full border border-neutral-200 bg-white px-3 py-2 text-sm font-medium text-neutral-600 shadow-sm transition hover:border-brand-500 hover:text-brand-600 dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-300 dark:hover:text-brand-400",children:[l.jsx(Wk,{className:"h-4 w-4"}),n("maintenance.login")]})]}):l.jsx("div",{className:"mx-auto max-w-6xl px-4 py-20 sm:px-6",children:r})}const cm=l.jsx(l.Fragment,{children:'Wartungsmodus aktiv – Besucher sehen aktuell eine Wartungsmeldung. Du siehst diese Seite nur, weil du die Berechtigung "Wartungsmodus umgehen" hast.'});function Qs({inline:e=!1}){return e?l.jsx("div",{className:"mb-8 rounded-lg bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:cm}):l.jsx("div",{className:"bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:cm})}function cC({onClose:e}){const{consent:t,saveCustom:n}=Lr(),[r,s]=x.useState(t.external),[i,o]=x.useState(t.analytics),{t:a}=Ce();return l.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-black/50 p-4",onClick:e,children:l.jsxs("div",{className:"w-full max-w-md rounded-xl bg-white p-6 dark:bg-neutral-900",onClick:u=>u.stopPropagation(),children:[l.jsx("h2",{className:"mb-1 text-lg font-bold text-neutral-900 dark:text-white",children:a("cookieConsent.modalTitle")}),l.jsxs("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:[a("cookieConsent.modalIntro")," ",l.jsx(U,{to:"/datenschutz",className:"underline hover:text-brand-500",onClick:e,children:a("cookieConsent.privacyPolicy")}),"."]}),l.jsxs("div",{className:"space-y-3",children:[l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.necessaryTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.necessaryDesc")})]}),l.jsx("input",{type:"checkbox",checked:!0,disabled:!0,className:"mt-1 h-4 w-4 shrink-0"})]}),l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.externalTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.externalDesc")})]}),l.jsx("input",{type:"checkbox",checked:r,onChange:u=>s(u.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]}),l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.analyticsTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.analyticsDesc")})]}),l.jsx("input",{type:"checkbox",checked:i,onChange:u=>o(u.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]})]}),l.jsxs("div",{className:"mt-5 flex justify-end gap-2",children:[l.jsx("button",{type:"button",onClick:e,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:a("cookieConsent.cancel")}),l.jsx("button",{type:"button",onClick:()=>n({external:r,analytics:i}),className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:a("cookieConsent.saveSelection")})]})]})})}function dC(){const{decided:e,settingsOpen:t,acceptAll:n,rejectNonEssential:r,openSettings:s,closeSettings:i}=Lr(),{t:o}=Ce();return l.jsxs(l.Fragment,{children:[!e&&l.jsx("div",{className:"fixed inset-x-0 bottom-0 z-50 border-t border-neutral-200 bg-white/95 p-4 shadow-lg backdrop-blur dark:border-neutral-800 dark:bg-neutral-900/95 sm:p-5",children:l.jsxs("div",{className:"mx-auto flex max-w-6xl flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[l.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[o("cookieConsent.bannerText")," ",o("cookieConsent.moreInfo")," ",l.jsx(U,{to:"/datenschutz",className:"underline hover:text-brand-500",children:o("cookieConsent.privacyPolicy")}),"."]}),l.jsxs("div",{className:"flex flex-wrap gap-2 sm:shrink-0",children:[l.jsx("button",{type:"button",onClick:s,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:o("cookieConsent.settings")}),l.jsx("button",{type:"button",onClick:r,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:o("cookieConsent.onlyNecessary")}),l.jsx("button",{type:"button",onClick:n,className:"rounded-md bg-brand-500 px-3 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:o("cookieConsent.acceptAll")})]})]})}),t&&l.jsx(cC,{onClose:i})]})}function fC(){const{consent:e}=Lr(),{ga_measurement_id:t}=Pt(),n=x.useRef(!1);return x.useEffect(()=>{if(!t||!e.analytics||n.current)return;n.current=!0;const r=document.createElement("script");r.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,r.async=!0,document.head.appendChild(r),window.dataLayer=window.dataLayer||[];function s(...i){window.dataLayer.push(i)}window.gtag=s,s("js",new Date),s("config",t,{anonymize_ip:!0})},[t,e.analytics]),null}const qx=x.createContext({global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null},bypass:!1}),hC=qx.Provider;function na(){return x.useContext(qx)}const od=x.createContext({}),mC=od.Provider;function $n(e,t){const n=e[t];if(!n)return{};const r={};return n.font_family&&(r.fontFamily=n.font_family),n.font_size&&(r.fontSize=n.font_size),n.color&&(r.color=n.color),r}function Re(e){const t=x.useContext(od);return $n(t,e)}function ad(){return x.useContext(od)}const pC=[{label:"Systemschrift",value:""},{label:"Serifenlos (Arial)",value:"Arial, Helvetica, sans-serif"},{label:"Serif (Georgia)",value:'Georgia, "Times New Roman", serif'},{label:"Klassisch (Times New Roman)",value:'"Times New Roman", Times, serif'},{label:"Modern (Verdana)",value:"Verdana, Geneva, sans-serif"},{label:"Schreibmaschine (Courier New)",value:'"Courier New", Courier, monospace'}],ld=x.createContext({fonts:[],refresh:()=>{}}),Qx=ld.Provider;function Zx(){return x.useContext(ld).fonts}function yN(){return x.useContext(ld).refresh}function vN(){const e=Zx();return[...pC,...e.map(t=>({label:t.name,value:t.font_family}))]}function gC(e){const t=/\.([a-z0-9]+)$/i.exec(e||"");return t?t[1].toLowerCase():""}const xC={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"};function Jx(){const e=Zx();if(e.length===0)return null;const t=e.map(n=>{const r=xC[gC(n.file_path)]||"woff2";return`@font-face { font-family: "${n.font_family}"; src: url("${n.file_path}") format("${r}"); font-display: swap; }`}).join(` -`);return l.jsx("style",{children:t})}const yC=150,vC=300,wC=80,kC=5e3;function bC(){return l.jsx("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-white dark:bg-neutral-950",children:l.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-4 border-neutral-200 border-t-brand-500 dark:border-neutral-800 dark:border-t-brand-500"})})}function SC({enabled:e,children:t}){const n=rt(),[r,s]=x.useState(!e),[i,o]=x.useState(!1),a=x.useRef(null);return x.useLayoutEffect(()=>{const u=a.current;if(!e||!u){s(!0),o(!1);return}s(!1),o(!1);let c=!1,d=0,f=null;const h=new Set,p=setTimeout(()=>{d=Date.now(),o(!0)},yC),w=()=>{s(!0),o(!1)},v=()=>{c=!0,clearTimeout(p),clearTimeout(f),clearTimeout(T),b.disconnect(),P()},k=()=>{if(c)return;v();const S=d?vC-(Date.now()-d):0;S>0?setTimeout(w,S):w()},g=()=>{clearTimeout(f),f=setTimeout(()=>{h.size===0&&Kw()===0&&k()},wC)},m=S=>{if(h.has(S)||S.complete||S.getBoundingClientRect().top>=window.innerHeight)return;S.loading==="lazy"&&(S.loading="eager"),h.add(S);const j=()=>{h.delete(S),S.removeEventListener("load",j),S.removeEventListener("error",j),g()};S.addEventListener("load",j),S.addEventListener("error",j)},y=S=>{var j;S.nodeType===1&&(S.tagName==="IMG"&&m(S),(j=S.querySelectorAll)==null||j.call(S,"img").forEach(m))},b=new MutationObserver(S=>{S.forEach(j=>j.addedNodes.forEach(y)),g()});b.observe(u,{childList:!0,subtree:!0});const P=Xw(g),T=setTimeout(k,kC);return u.querySelectorAll("img").forEach(m),g(),()=>{c||v()}},[n.pathname,e]),l.jsxs("div",{className:"relative",children:[l.jsx("div",{ref:a,style:e?{visibility:r?"visible":"hidden"}:void 0,children:t}),e&&i&&l.jsx(bC,{})]})}const jC={global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null}},PC={mon:{open:"09:00",close:"18:00",closed:!1},tue:{open:"09:00",close:"18:00",closed:!1},wed:{open:"09:00",close:"18:00",closed:!1},thu:{open:"09:00",close:"18:00",closed:!1},fri:{open:"09:00",close:"18:00",closed:!1},sat:{open:"10:00",close:"13:00",closed:!1},sun:{open:"",close:"",closed:!0}},TC={phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:PC,hero_image_path:null,ga_measurement_id:null,package_card_theme:"graphite",package_card_layout:"strip",package_wheel_hint_interval:8,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,has_downloads:!1},CC=["/impressum","/datenschutz","/agb"];function EC(){const[e,t]=x.useState(null),[n,r]=x.useState(TC),[s,i]=x.useState({}),[o,a]=x.useState([]),{loading:u,hasPermission:c}=Hs(),d=rt();if(x.useEffect(()=>{Z.get("/maintenance").then(t).catch(()=>t(jC)),Z.get("/site-settings").then(r).catch(()=>{}),Z.get("/text-styles").then(i).catch(()=>{}),Z.get("/custom-fonts").then(a).catch(()=>{})},[]),x.useEffect(()=>{n.site_font?document.documentElement.style.setProperty("--site-font",n.site_font):document.documentElement.style.removeProperty("--site-font")},[n.site_font]),e===null||u)return l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});const f=c("maintenance.bypass"),h=CC.includes(d.pathname);return e.global.enabled&&!f&&!h?l.jsx(Af,{children:l.jsx(qs,{message:e.global.message,fullScreen:!0})}):l.jsx(Af,{children:l.jsx(hC,{value:{...e,bypass:f},children:l.jsx(Pb,{value:n,children:l.jsx(mC,{value:s,children:l.jsx(Qx,{value:{fonts:o,refresh:()=>{}},children:l.jsxs("div",{className:"page-texture flex min-h-screen flex-col text-neutral-900 dark:text-neutral-100",children:[l.jsx(Jx,{}),f&&e.global.enabled&&l.jsx(Qs,{}),l.jsx(lC,{}),l.jsx(Mb,{}),l.jsx("main",{className:"flex-1",children:l.jsx(SC,{enabled:d.pathname!=="/"&&!!n.page_loader_enabled,children:l.jsx(Ec,{})})}),l.jsx(Ob,{}),l.jsx(dC,{}),l.jsx(fC,{})]})})})})})})}const dm="/assets/logo-BNfZDkmN.png",NC={home:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9",tag:"M4 4h7l9 9-7 7-9-9V4Zm3.5 3.5h.01",car:"M3 13.5 4.5 9A2 2 0 0 1 6.4 7.5h11.2A2 2 0 0 1 19.5 9L21 13.5M3 13.5v4a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1h12v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-4M3 13.5h18M6.5 16.5h.01M17.5 16.5h.01",box:"M12 3 4 7.5v9L12 21l8-4.5v-9L12 3Zm0 9 8-4.5M12 12v9M12 12 4 7.5",mail:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Zm0 0 8 7 8-7",users:"M16 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-4 6c-4 0-7 2-7 4.5V19h14v-1.5C19 15 16 13 12 13Z",shield:"M12 3 4 6v6c0 4.5 3.4 7.7 8 9 4.6-1.3 8-4.5 8-9V6l-8-3Zm-1.5 9.5 4-4 1 1-5 5-2.5-2.5 1-1 1.5 1.5Z",lock:"M6 10V8a6 6 0 1 1 12 0v2m-13 0h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1Zm7 5v2",briefcase:"M4 7h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1Zm4 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12h18",sliders:"M4 6h16M4 6a2 2 0 1 0 4 0 2 2 0 0 0-4 0Zm16 6H4m10 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM4 18h16m-12 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0Z",image:"M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm2 12 4.5-5.5L14 16l2.5-3L20 17H6ZM8 9.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",help:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-5.5v.01M9.5 9.25a2.5 2.5 0 1 1 3.5 2.29c-.7.32-1 .77-1 1.46v.3",download:"M12 4v11m0 0-4-4m4 4 4-4M5 19h14"},_C=({path:e})=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:"h-5 w-5 shrink-0",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})});function MC(){const{logout:e,user:t,hasPermission:n}=Hs(),r=Yo(),[s,i]=x.useState(!1),[o,a]=x.useState(0),[u,c]=x.useState([]);x.useEffect(()=>{n("contact.manage")&&Z.get("/contact").then(v=>a(v.filter(k=>k.status==="new").length)).catch(()=>{})},[]);const d=()=>Z.get("/custom-fonts").then(c).catch(()=>{});x.useEffect(()=>{d()},[]);const f=[{title:null,links:[{to:"/admin",label:"Dashboard",icon:"home",end:!0},{to:"/admin/account",label:"Mein Konto",icon:"lock"}]},{title:"Fahrzeug-Katalog",links:[{to:"/admin/brands",label:"Marken",icon:"tag",permission:"brands.manage"},{to:"/admin/models",label:"Modelle",icon:"car",permission:"models.manage"},{to:"/admin/packages",label:"Pakete",icon:"box",permission:"packages.manage"}]},{title:"Website",links:[{to:"/admin/home-sections",label:"Startseite",icon:"home",permission:"content.manage"},{to:"/admin/services",label:"Leistungen",icon:"briefcase",permission:"services.manage"},{to:"/admin/faqs",label:"FAQ",icon:"help",permission:"content.manage"},{to:"/admin/partners",label:"Partner",icon:"tag",permission:"content.manage"},{to:"/admin/downloads",label:"Downloads",icon:"download",permission:"downloads.manage"}]},{title:"Bildergalerie",links:[{to:"/admin/gallery-brands",label:"Marken",icon:"tag",permission:"gallery.manage"},{to:"/admin/gallery-projects",label:"Projekte",icon:"image",permission:"gallery.manage"}]},{title:"Kunden",links:[{to:"/admin/contact-requests",label:"Kontaktanfragen",icon:"mail",permission:"contact.manage",badge:o}]},{title:"Verwaltung",links:[{to:"/admin/users",label:"Benutzer",icon:"users",permission:"users.manage"},{to:"/admin/permission-groups",label:"Berechtigungsgruppen",icon:"shield",permission:"permission_groups.manage"},{to:"/admin/settings",label:"Einstellungen",icon:"sliders",permission:"settings.manage"}]}].map(v=>({...v,links:v.links.filter(k=>!k.permission||n(k.permission))})).filter(v=>v.links.length>0),h=async()=>{await e(),r("/admin/login")},p=({isActive:v})=>`flex items-center justify-between gap-2 rounded-md px-3 py-2 text-sm font-medium transition ${v?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,w=({onNavigate:v})=>l.jsx("nav",{className:"space-y-5",children:f.map((k,g)=>l.jsxs("div",{children:[k.title&&l.jsx("p",{className:"mb-1.5 px-3 text-xs font-semibold uppercase tracking-wide text-neutral-400 dark:text-neutral-500",children:k.title}),l.jsx("div",{className:"space-y-1",children:k.links.map(m=>l.jsxs(Rw,{to:m.to,end:m.end,className:p,onClick:v,children:[l.jsxs("span",{className:"flex items-center gap-2.5",children:[l.jsx(_C,{path:NC[m.icon]}),m.label]}),!!m.badge&&l.jsx("span",{className:"rounded-full bg-red-500 px-2 py-0.5 text-xs font-bold text-white",children:m.badge})]},m.to))})]},g))});return l.jsx(Qx,{value:{fonts:u,refresh:d},children:l.jsxs("div",{className:"flex min-h-screen bg-neutral-50 text-neutral-900 dark:bg-neutral-950 dark:text-neutral-100",children:[l.jsx(Jx,{}),l.jsxs("aside",{className:"hidden w-60 shrink-0 border-r border-neutral-200 p-4 dark:border-neutral-800 sm:block",children:[l.jsxs("div",{className:"mb-6 flex items-center gap-2 px-3",children:[l.jsxs(U,{to:"/",className:"rounded-lg px-2 py-1",children:[l.jsx("img",{src:dm,alt:"HifiPlanet",className:"h-7 w-auto dark:hidden"}),l.jsx("img",{src:tu,alt:"HifiPlanet",className:"hidden h-7 w-auto dark:block"})]}),l.jsx("span",{className:"text-sm font-semibold text-neutral-500 dark:text-neutral-400",children:"Admin"})]}),l.jsx(w,{})]}),l.jsxs("div",{className:"flex-1",children:[l.jsxs("header",{className:"border-b border-neutral-200 dark:border-neutral-800",children:[l.jsxs("div",{className:"flex items-center justify-between px-4 py-3 sm:px-6",children:[l.jsxs("div",{className:"flex items-center gap-2 sm:hidden",children:[l.jsx("button",{onClick:()=>i(v=>!v),"aria-label":"Menü öffnen",className:"rounded-md p-2 text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})}),l.jsxs(U,{to:"/",className:"rounded-lg px-1.5 py-0.5",children:[l.jsx("img",{src:dm,alt:"HifiPlanet",className:"h-6 w-auto dark:hidden"}),l.jsx("img",{src:tu,alt:"HifiPlanet",className:"hidden h-6 w-auto dark:block"})]})]}),l.jsxs("p",{className:"hidden text-sm text-neutral-500 dark:text-neutral-400 sm:block",children:["Angemeldet als ",t==null?void 0:t.username,t!=null&&t.is_super_admin?" · Super-Admin":""]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Jg,{}),l.jsx("button",{onClick:h,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Abmelden"})]})]}),s&&l.jsx("div",{className:"border-t border-neutral-200 px-4 py-3 dark:border-neutral-800 sm:hidden",children:l.jsx(w,{onNavigate:()=>i(!1)})})]}),l.jsx("main",{className:"p-4 sm:p-6",children:l.jsx(x.Suspense,{fallback:l.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:l.jsx(Ec,{})})})]})]})})}function LC(){const{user:e,loading:t}=Hs();return t?l.jsx("div",{className:"flex min-h-screen items-center justify-center text-neutral-500",children:"Lädt…"}):e?l.jsx(Ec,{}):l.jsx(Ls,{to:"/admin/login",replace:!0})}function De({permission:e,children:t}){const{hasPermission:n}=Hs();return(Array.isArray(e)?e:[e]).some(i=>n(i))?t:l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-8 text-center dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsx("h1",{className:"mb-2 text-lg font-bold text-neutral-900 dark:text-white",children:"Keine Berechtigung"}),l.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:"Du hast keinen Zugriff auf diesen Bereich. Bitte wende dich an einen Administrator, falls du hier Zugriff brauchst."})]})}function Qa(e,t,n="name"){if(!t)return;let r=document.head.querySelector(`meta[${n}="${e}"]`);r||(r=document.createElement("meta"),r.setAttribute(n,e),document.head.appendChild(r)),r.setAttribute("content",t)}function AC(e){let t=document.head.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t)),t.setAttribute("href",`https://hifi-planet.de${e}`)}function st({title:e,description:t,path:n}){x.useEffect(()=>{e&&(document.title=`${e} | HifiPlanet`,Qa("og:title",`${e} | HifiPlanet`,"property")),t&&(Qa("description",t),Qa("og:description",t,"property")),n&&AC(n)},[e,t,n])}const DC=[.16,1,.3,1],fm={up:{y:40},left:{x:-56},right:{x:56}};function RC(e){return{hidden:{opacity:0,scale:.96,filter:"blur(8px)",...fm[e]||fm.up},visible:{opacity:1,scale:1,x:0,y:0,filter:"blur(0px)"}}}const IC={hidden:{x:"-130%"},visible:{x:"230%",transition:{duration:1.1,ease:"easeInOut",delay:.4}}};function Se({children:e,direction:t="up",className:n="",index:r=0,shine:s=!1,style:i}){const o=Math.min(r*.09,.45);return l.jsxs(Bt.div,{className:n,style:{position:"relative",overflow:"hidden",...i},initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.25,margin:"-100px"},variants:RC(t),transition:{duration:.75,ease:DC,delay:o},children:[e,s&&l.jsx(Bt.div,{"aria-hidden":!0,variants:IC,className:"pointer-events-none absolute inset-y-0 -left-1/3 w-1/3 rotate-12 bg-gradient-to-r from-transparent via-white/40 to-transparent"})]})}function VC({items:e}){const[t,n]=x.useState(null);return l.jsx("div",{className:"divide-y divide-neutral-200 rounded-xl border border-neutral-200 bg-white dark:divide-neutral-800 dark:border-neutral-800 dark:bg-neutral-900",children:e.map((r,s)=>{const i=t===s;return l.jsxs("div",{children:[l.jsxs("button",{onClick:()=>n(i?null:s),className:"flex w-full items-center justify-between gap-4 px-5 py-4 text-left","aria-expanded":i,children:[l.jsx("span",{className:"font-medium text-neutral-900 dark:text-white",children:r.question}),l.jsx(Bt.svg,{animate:{rotate:i?180:0},transition:{duration:.2},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-5 w-5 shrink-0 text-neutral-500",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6 9 6 6 6-6"})})]}),l.jsx(EP,{initial:!1,children:i&&l.jsx(Bt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:l.jsx("p",{className:"px-5 pb-4 text-sm text-neutral-600 dark:text-neutral-300",children:r.answer})})})]},r.question)})})}function ey({count:e=5,className:t="h-4 w-4"}){return l.jsx("div",{className:"flex gap-0.5 text-amber-400",children:Array.from({length:e}).map((n,r)=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:t,children:l.jsx("path",{d:"M10 1.5l2.6 5.6 6.1.6-4.6 4.1 1.3 6-5.4-3.1-5.4 3.1 1.3-6-4.6-4.1 6.1-.6L10 1.5z"})},r))})}const OC=70;function FC({testimonials:e}){const t=x.useRef(null),n=x.useRef(null),r=x.useRef({pos:0,half:0,hovering:!1,dragging:!1,dragStartX:0,dragStartPos:0,lastTime:null,rafId:null}).current;x.useLayoutEffect(()=>{const i=n.current,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=()=>{i.style.transform=`translateX(${r.pos}px)`},u=m=>{if(r.half<=0)return m;for(;m>0;)m-=r.half;for(;m<=-r.half;)m+=r.half;return m},c=()=>{r.half=i.scrollWidth/2,r.pos===0?r.pos=-r.half:r.pos=u(r.pos),a()};c();const d=new ResizeObserver(c);d.observe(i);const f=m=>{r.lastTime===null&&(r.lastTime=m);const y=(m-r.lastTime)/1e3;r.lastTime=m,!r.dragging&&!r.hovering&&!o&&(r.pos=u(r.pos+OC*y),a()),r.rafId=requestAnimationFrame(f)};r.rafId=requestAnimationFrame(f);const h=t.current,p=()=>{r.hovering=!0},w=()=>{r.hovering=!1},v=m=>{r.dragging=!0,r.dragStartX=m.clientX,r.dragStartPos=r.pos,h.setPointerCapture(m.pointerId),h.classList.add("cursor-grabbing"),h.classList.remove("cursor-grab")},k=m=>{r.dragging&&(r.pos=u(r.dragStartPos+(m.clientX-r.dragStartX)),a())},g=m=>{r.dragging&&(r.dragging=!1,h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),h.classList.remove("cursor-grabbing"),h.classList.add("cursor-grab"))};return h.addEventListener("pointerenter",p),h.addEventListener("pointerleave",w),h.addEventListener("pointerdown",v),h.addEventListener("pointermove",k),h.addEventListener("pointerup",g),h.addEventListener("pointercancel",g),()=>{cancelAnimationFrame(r.rafId),d.disconnect(),h.removeEventListener("pointerenter",p),h.removeEventListener("pointerleave",w),h.removeEventListener("pointerdown",v),h.removeEventListener("pointermove",k),h.removeEventListener("pointerup",g),h.removeEventListener("pointercancel",g)}},[e.length]);const s=[...e,...e];return l.jsx("div",{ref:t,className:"marquee-viewport cursor-grab touch-pan-y select-none overflow-hidden",children:l.jsx("div",{ref:n,className:"marquee-track flex w-max gap-5",children:s.map((i,o)=>l.jsx("div",{className:"w-64 shrink-0 sm:w-72 lg:w-80",children:l.jsxs("div",{className:"relative flex h-full flex-col overflow-hidden rounded-xl border border-neutral-200 bg-white p-6 shadow-sm transition-shadow duration-300 hover:shadow-lg dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 32 24",className:"absolute -right-1 -top-1 h-16 w-16 text-brand-500/10 dark:text-brand-400/10",children:l.jsx("path",{fill:"currentColor",d:"M9.4 0C4.4 3.5 1 9.1 1 15.3 1 20.6 4.3 24 8.4 24c3.8 0 6.6-3 6.6-6.6 0-3.4-2.4-5.9-5.4-5.9-.6 0-1.4.1-1.6.2C8.5 8.5 11.6 4.6 14.6 2.6L9.4 0zm16.5 0c-4.8 3.5-8.3 9.1-8.3 15.3 0 5.3 3.3 8.6 7.5 8.6 3.7 0 6.6-3 6.6-6.6 0-3.4-2.5-5.9-5.4-5.9-.6 0-1.4.1-1.6.2.5-3.3 3.6-7.1 6.7-9.1L25.9 0z"})}),l.jsx(ey,{className:"relative z-10 mb-3 h-4 w-4",count:i.rating||5}),l.jsxs("p",{className:"relative z-10 mb-4 line-clamp-6 flex-1 text-sm leading-relaxed text-neutral-600 dark:text-neutral-300",children:["„",i.text,'"']}),l.jsxs("div",{className:"relative z-10 mt-auto flex items-center gap-3",children:[i.photo?l.jsx("img",{src:i.photo,alt:"",referrerPolicy:"no-referrer",className:"h-9 w-9 shrink-0 rounded-full object-cover"}):l.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-brand-100 text-sm font-semibold text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",children:i.name.charAt(0).toUpperCase()}),l.jsx("p",{className:"text-sm font-semibold text-neutral-900 dark:text-white",children:i.name})]})]})},`${i.name}-${o}`))})})}function No(e,t,n={x:0,y:0}){const r=Math.max(0,Math.min(100,e==null?n.x:Number(e)||0)),s=Math.max(0,Math.min(100,t==null?n.y:Number(t)||0));return{left:`${r}%`,top:`${s}%`,transform:`translate(-${r}%, -${s}%)`}}const zC="/assets/gallery-dash2-CEVCErVK.webp",ty="/assets/gallery-amp-purple-CESAKuOf.webp",BC="/assets/gallery-speaker-CUXQZ49Q.webp",ny="/assets/gallery-subs-COSd4seJ.webp",ry="/assets/gallery-dash-Cg-7v9qo.webp",$C="/assets/hero-trunk-Dp4_JHDh.webp",HC="/assets/gallery-rear-8cIXPC7T.webp",WC="/assets/hero-highlight-Co4f1Kj5.webp",UC="/assets/youtube-hintergrund-BqSbCrLQ.mp4",bi={left:"text-left",center:"text-center",right:"text-right"},GC={left:"",center:"mx-auto",right:"ml-auto"},KC={eyebrow_de:"",eyebrow_en:"",title_de:"",title_en:"",body_html_de:"",body_html_en:"",text_align:"center",text_align_x:50,text_align_y:50,button_label_de:"",button_label_en:"",button_url:"",font_family:null};function hm({label:e,url:t,className:n,style:r}){return!e||!t?null:t.startsWith("/")?l.jsx(U,{to:t,className:n,style:r,children:e}):l.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:n,style:r,children:e})}const XC=[{src:ny,width:900,height:600},{src:ty,width:900,height:600},{src:BC,width:900,height:1200},{src:ry,width:900,height:814},{src:HC,width:900,height:1200},{src:$C,width:1920,height:1280}];function YC(){const{hero_image_path:e}=Pt(),t=e||zC,{t:n,language:r}=Ce(),s=n("home.stats"),i=n("home.galleryAlts"),o=XC.map((D,$)=>({...D,alt:i[$]})),[a,u]=x.useState([]),[c,d]=x.useState({}),[f,h]=x.useState([]),p=D=>{const $=c[D]||KC;return{eyebrow:$[`eyebrow_${r}`]||"",title:$[`title_${r}`]||"",bodyHtml:$[`body_html_${r}`]||"",align:$.text_align||"center",alignX:$.text_align_x,alignY:$.text_align_y,buttonLabel:$[`button_label_${r}`]||"",buttonUrl:$.button_url||"",fontFamily:$.font_family||void 0}},w=Re("home_sections.hero.eyebrow"),v=Re("home_sections.hero.title"),k=Re("home_sections.youtube.eyebrow"),g=Re("home_sections.youtube.title"),m=Re("home_sections.youtube.button_label"),y=Re("home_sections.craft.eyebrow"),b=Re("home_sections.craft.title"),P=Re("home_sections.advice.eyebrow"),T=Re("home_sections.advice.title"),S=Re("home_sections.insights.eyebrow"),j=Re("home_sections.insights.title"),L=Re("home_sections.more.eyebrow"),N=Re("home_sections.more.title"),O=Re("home_sections.more.button_label");x.useEffect(()=>{Z.get("/home-sections").then(d).catch(()=>{})},[]),x.useEffect(()=>{Z.get("/partners").then(h).catch(()=>{})},[]);const[H,oe]=x.useState(null),_=H?H.reviews.filter(D=>D.review_text).map(D=>({name:D.author_name,text:D.review_text,rating:D.rating,photo:D.profile_photo_url})):n("home.testimonials");x.useEffect(()=>{Z.get("/faqs").then(D=>{u(D.map($=>({question:r==="de"?$.question_de:$.question_en,answer:r==="de"?$.answer_de:$.answer_en})))}).catch(()=>{})},[r]),x.useEffect(()=>{Z.get("/google-reviews").then(D=>{D.rating!=null&&D.reviews.some($=>$.review_text)&&oe(D)}).catch(()=>{})},[]),st({title:n("home.metaTitle"),description:n("home.metaDescription"),path:"/"}),x.useEffect(()=>{if(a.length===0)return;const D=document.createElement("script");return D.type="application/ld+json",D.text=JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.map($=>({"@type":"Question",name:$.question,acceptedAnswer:{"@type":"Answer",text:$.answer}}))}),document.head.appendChild(D),()=>document.head.removeChild(D)},[a]);const R=x.useRef(null);x.useEffect(()=>{const D=R.current;if(!D)return;const $=new IntersectionObserver(([fe])=>{fe.isIntersecting?(D.getAttribute("src")||(D.src=UC),D.play().catch(()=>{})):D.paused||D.pause()},{rootMargin:"300px 0px"});return $.observe(D),()=>$.disconnect()},[]);const B=x.useRef(null),{scrollYProgress:W}=Kx({target:B,offset:["start start","end start"]}),E=Jt(W,[0,1],["-6%","6%"]),C=Jt(W,[0,1],["0%","60%"]),A=Jt(W,[0,.8],[1,0]),F=Jt(W,[.5,1],[0,1]),q=Jt(F,D=>D>.05?"auto":"none"),Me=Jt(W,[.5,1],[16,0]);return l.jsxs("div",{children:[l.jsx(Bt.div,{style:{opacity:F,pointerEvents:q,y:Me},className:"fixed inset-x-0 bottom-0 z-20 border-t border-neutral-200 bg-white/95 px-4 py-3 shadow-[0_-8px_24px_rgba(0,0,0,0.08)] backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/95 sm:px-6",children:l.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between gap-3",children:[l.jsx("p",{className:"hidden text-sm font-medium text-neutral-600 dark:text-neutral-300 sm:block",children:n("home.stickyCta")}),l.jsxs("div",{className:"flex w-full gap-3 sm:w-auto",children:[l.jsx(U,{to:"/fahrzeuge",className:"flex-1 rounded-md bg-brand-500 px-5 py-2.5 text-center text-sm font-semibold text-white shadow-sm transition hover:-translate-y-0.5 hover:bg-brand-600 sm:flex-none",children:n("home.selectVehicle")}),l.jsx(U,{to:"/kontakt",className:"flex-1 rounded-md border border-neutral-300 px-5 py-2.5 text-center text-sm font-semibold text-neutral-700 transition hover:-translate-y-0.5 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800 sm:flex-none",children:n("home.getInTouch")})]})]})}),l.jsxs("section",{ref:B,className:"relative -mt-[89px] h-svh min-h-[560px] overflow-hidden sm:-mt-[97px]",children:[l.jsx(Bt.img,{style:{y:E,scale:1.15},src:t,alt:n("home.heroImageAlt"),className:"absolute inset-0 h-full w-full object-cover"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-neutral-950 via-neutral-950/80 to-neutral-950/40"}),l.jsx(Bt.div,{style:{y:C,opacity:A},className:"absolute inset-0",children:l.jsx("div",{className:"absolute w-full max-w-2xl px-4 text-center sm:px-6",style:{...No(p("hero").alignX,p("hero").alignY,{x:50,y:50}),fontFamily:p("hero").fontFamily},children:l.jsxs(Bt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,ease:"easeOut"},children:[p("hero").eyebrow&&l.jsx("p",{className:"mb-3 text-sm font-semibold uppercase tracking-wide text-brand-400",style:w,children:p("hero").eyebrow}),l.jsx("h1",{className:"text-3xl font-extrabold tracking-tight text-white sm:text-5xl",style:v,children:p("hero").title}),l.jsx("div",{className:"legal-content mx-auto mt-4 max-w-2xl text-base text-neutral-200 sm:text-lg",dangerouslySetInnerHTML:{__html:p("hero").bodyHtml}}),l.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[l.jsx(U,{to:"/fahrzeuge",className:"rounded-md bg-brand-500 px-6 py-3 text-sm font-semibold text-white shadow-sm transition hover:-translate-y-0.5 hover:bg-brand-600 hover:shadow-lg",children:n("home.selectVehicle")}),l.jsx(U,{to:"/kontakt",className:"rounded-md border border-white/30 bg-white/10 px-6 py-3 text-sm font-semibold text-white backdrop-blur transition hover:-translate-y-0.5 hover:bg-white/20",children:n("home.getInTouch")})]})]})})})]}),l.jsx("section",{className:"border-b border-neutral-200 bg-neutral-950 py-8 dark:border-neutral-800",children:l.jsx("div",{className:"mx-auto grid max-w-6xl grid-cols-2 gap-6 px-4 text-center sm:grid-cols-4 sm:px-6",children:s.map((D,$)=>l.jsxs(Se,{index:$,children:[l.jsx("p",{className:"text-2xl font-extrabold text-brand-400 sm:text-3xl",children:D.value}),l.jsx("p",{className:"text-sm text-neutral-400",children:D.label})]},D.label))})}),l.jsx("section",{className:"border-b border-neutral-200 py-8 dark:border-neutral-800",children:l.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[l.jsx("p",{className:"mb-4 text-center text-xs font-semibold uppercase tracking-wide text-neutral-400",children:n("home.brandsHeading")}),l.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-8 gap-y-3",children:f.map((D,$)=>l.jsx(Se,{index:$,children:D.logo_path?l.jsx("img",{src:D.logo_path,alt:D.name,className:"h-8 max-w-[8rem] object-contain opacity-70 grayscale transition hover:opacity-100 hover:grayscale-0"}):l.jsx("span",{className:"text-lg font-bold text-neutral-400 dark:text-neutral-600",children:D.name})},D.id))})]})}),l.jsxs("section",{className:"relative min-h-[70vh] overflow-hidden sm:min-h-[85vh]",children:[l.jsx("video",{ref:R,loop:!0,muted:!0,playsInline:!0,preload:"none",poster:ry,className:"absolute inset-0 h-full w-full object-cover"}),l.jsx("div",{className:"absolute inset-0 bg-black/55"}),l.jsx("div",{className:"absolute w-full max-w-3xl px-4 text-center sm:px-6",style:{...No(p("youtube").alignX,p("youtube").alignY,{x:50,y:50}),fontFamily:p("youtube").fontFamily},children:l.jsxs(Se,{children:[p("youtube").eyebrow&&l.jsx("p",{className:"mb-4 text-xs font-semibold uppercase tracking-[0.2em] text-neutral-200 sm:text-sm",style:k,children:p("youtube").eyebrow}),l.jsx("h2",{className:"text-3xl font-bold uppercase tracking-wide text-white sm:text-5xl",style:g,children:p("youtube").title}),l.jsx("div",{className:"legal-content mt-4 text-xs font-semibold uppercase tracking-wide text-neutral-200 sm:text-sm",dangerouslySetInnerHTML:{__html:p("youtube").bodyHtml}}),l.jsx(hm,{label:p("youtube").buttonLabel,url:p("youtube").buttonUrl,className:"mt-8 inline-flex items-center justify-center rounded-full bg-white px-8 py-3 text-xs font-bold uppercase tracking-wide text-neutral-900 transition hover:-translate-y-0.5 hover:bg-neutral-100",style:m})]})})]}),l.jsx("section",{className:"grain-band border-y border-neutral-200 bg-neutral-50 py-16 dark:border-neutral-800 dark:bg-neutral-900/40",children:l.jsxs("div",{className:"mx-auto max-w-6xl space-y-16 overflow-hidden px-4 sm:px-6",children:[l.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[l.jsx(Se,{direction:"left",shine:!0,className:"rounded-xl shadow-lg",children:l.jsx("img",{src:ny,alt:n("home.craftImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})}),l.jsxs(Se,{direction:"right",index:1,className:bi[p("craft").align],style:{fontFamily:p("craft").fontFamily},children:[p("craft").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:y,children:p("craft").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:b,children:p("craft").title}),l.jsx("div",{className:"legal-content text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:p("craft").bodyHtml}})]})]}),l.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[l.jsxs(Se,{direction:"left",className:`order-2 md:order-1 ${bi[p("advice").align]}`,style:{fontFamily:p("advice").fontFamily},children:[p("advice").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:P,children:p("advice").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:T,children:p("advice").title}),l.jsx("div",{className:"legal-content text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:p("advice").bodyHtml}})]}),l.jsx(Se,{direction:"right",index:1,shine:!0,className:"order-1 md:order-2 rounded-xl shadow-lg",children:l.jsx("img",{src:ty,alt:n("home.adviceImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})})]})]})}),l.jsxs("section",{className:"mx-auto max-w-6xl px-4 py-16 sm:px-6",children:[l.jsxs(Se,{className:`mb-8 ${bi[p("insights").align]}`,style:{fontFamily:p("insights").fontFamily},children:[p("insights").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:S,children:p("insights").eyebrow}),l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",style:j,children:p("insights").title}),l.jsx("div",{className:"legal-content mt-2 text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:p("insights").bodyHtml}})]}),l.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:o.map((D,$)=>l.jsx(Se,{index:$%3,shine:!0,className:"aspect-square overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:l.jsx("img",{src:D.src,alt:D.alt,width:D.width,height:D.height,loading:"lazy",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})},D.src))})]}),l.jsx("section",{className:"grain-band border-y border-neutral-200 bg-neutral-50 py-16 dark:border-neutral-800 dark:bg-neutral-900/40",children:l.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[l.jsxs(Se,{className:"mb-10 text-center",children:[l.jsx("div",{className:"mb-2 flex items-center justify-center gap-2",children:l.jsx(ey,{className:"h-6 w-6",count:H?Math.round(H.rating):5})}),l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",children:H?n("home.reviewsRatingDynamic")(H.rating,H.rating_count):n("home.reviewsRating")}),l.jsx("p",{className:"mt-1 text-neutral-600 dark:text-neutral-300",children:n("home.reviewsText")}),l.jsx("a",{href:"https://www.google.com/maps/search/?api=1&query=Hifi+Planet+Amorbach+Boxbrunner+Stra%C3%9Fe+20a",target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-block text-sm font-medium text-brand-600 hover:underline dark:text-brand-400",children:n("home.reviewsLink")})]}),l.jsx(Se,{children:l.jsx(FC,{testimonials:_})})]})}),l.jsx("section",{className:"mx-auto max-w-6xl overflow-hidden px-4 py-16 sm:px-6",children:l.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-2",children:[l.jsx(Se,{direction:"left",shine:!0,className:"overflow-hidden rounded-xl shadow-lg",children:l.jsx("img",{src:WC,alt:n("home.moreImageAlt"),width:1600,height:905,className:"h-full w-full object-cover",loading:"lazy"})}),l.jsxs(Se,{direction:"right",index:1,className:`rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900 ${bi[p("more").align]}`,style:{fontFamily:p("more").fontFamily},children:[p("more").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:L,children:p("more").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:N,children:p("more").title}),l.jsx("div",{className:`legal-content mb-8 max-w-2xl text-neutral-600 dark:text-neutral-300 ${GC[p("more").align]}`,dangerouslySetInnerHTML:{__html:p("more").bodyHtml}}),l.jsx(hm,{label:p("more").buttonLabel,url:p("more").buttonUrl,className:"inline-block rounded-md border border-neutral-300 px-6 py-3 text-sm font-semibold text-neutral-700 transition hover:-translate-y-0.5 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",style:O})]})]})}),l.jsx("section",{className:"border-t border-neutral-300 py-16 dark:border-neutral-700",children:l.jsxs("div",{className:"mx-auto max-w-3xl px-4 sm:px-6",children:[l.jsx(Se,{className:"mb-8 text-center",children:l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",children:n("home.faqHeading")})}),l.jsx(Se,{index:1,children:l.jsx(VC,{items:a})})]})})]})}function qC(){const[e,t]=x.useState([]),[n,r]=x.useState(""),s=na(),{t:i}=Ce(),o=ad(),{vehicle_tile_width:a,vehicle_tile_height:u}=Pt(),c={width:`${a}px`,height:`${u}px`};return st({title:i("vehicleSelect.metaTitle"),description:i("vehicleSelect.metaDescription"),path:"/fahrzeuge"}),x.useEffect(()=>{s.vehicles.enabled&&!s.bypass||Z.get("/brands").then(t).catch(d=>r(d.message))},[s.vehicles.enabled,s.bypass]),s.vehicles.enabled&&!s.bypass?l.jsx(qs,{message:s.vehicles.message}):l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[s.vehicles.enabled&&s.bypass&&l.jsx(Qs,{inline:!0}),l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:i("vehicleSelect.title")}),l.jsx("p",{className:"mb-8 text-neutral-600 dark:text-neutral-300",children:i("vehicleSelect.intro")}),n&&l.jsx("p",{className:"text-red-600",children:n}),e.length===0&&!n&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:i("vehicleSelect.empty")}),l.jsx("div",{className:"flex flex-wrap gap-4",children:e.map(d=>d.image_path?l.jsxs(U,{to:`/fahrzeuge/${d.slug}`,style:c,className:"group relative block shrink-0 overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[l.jsx("img",{src:d.image_path,alt:"",className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:$n(o,`brands.${d.id}.name`),children:d.name})]},d.id):l.jsx(U,{to:`/fahrzeuge/${d.slug}`,style:c,className:"flex shrink-0 flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-white px-6 text-center font-semibold text-neutral-800 shadow-sm transition hover:-translate-y-0.5 hover:border-brand-500 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-100",children:l.jsx("span",{style:$n(o,`brands.${d.id}.name`),children:d.name})},d.id))})]})}function QC(){const{brandSlug:e}=$s(),[t,n]=x.useState(null),[r,s]=x.useState(""),i=na(),{t:o}=Ce(),a=ad(),u=Re(t?`brands.${t.brand.id}.name`:""),{vehicle_tile_width:c,vehicle_tile_height:d}=Pt(),f={width:`${c}px`,height:`${d}px`};return x.useEffect(()=>{i.vehicles.enabled&&!i.bypass||Z.get(`/brands/${e}/models`).then(n).catch(h=>s(h.message))},[e,i.vehicles.enabled,i.bypass]),st({title:t?`${t.brand.name} ${o("brandPage.titleSuffix")}`:o("brandPage.metaTitleFallback"),description:t?o("brandPage.metaDescription")(t.brand.name):void 0,path:`/fahrzeuge/${e}`}),i.vehicles.enabled&&!i.bypass?l.jsx(qs,{message:i.vehicles.message}):r?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:r}):t?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[i.vehicles.enabled&&i.bypass&&l.jsx(Qs,{inline:!0}),l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{to:"/fahrzeuge",className:"hover:text-brand-500",children:o("brandPage.breadcrumbVehicles")})," / ",l.jsx("span",{style:u,children:t.brand.name})]}),l.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[l.jsx("span",{style:u,children:t.brand.name})," – ",o("brandPage.titleSuffix")]}),t.models.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:o("brandPage.empty")}),l.jsx("div",{className:"flex flex-wrap gap-4",children:t.models.map(h=>h.image_path?l.jsxs(U,{to:`/fahrzeuge/${e}/${h.slug}`,style:f,className:"group relative block shrink-0 overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[l.jsx("img",{src:h.image_path,alt:"",className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:$n(a,`car_models.${h.id}.name`),children:h.name})]},h.id):l.jsx(U,{to:`/fahrzeuge/${e}/${h.slug}`,style:f,className:"flex shrink-0 flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-white px-6 text-center font-semibold text-neutral-800 shadow-sm transition hover:-translate-y-0.5 hover:border-brand-500 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-100",children:l.jsx("span",{style:$n(a,`car_models.${h.id}.name`),children:h.name})},h.id))})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:o("brandPage.loading")})}function ZC({text:e}){return e?e.split(/(\*\*[^*]+\*\*)/g).map((n,r)=>{const s=n.match(/^\*\*([^*]+)\*\*$/);return s?l.jsx("strong",{children:s[1]},r):l.jsx("span",{children:n},r)}):null}const mm="data:image/webp;base64,UklGRmoNAABXRUJQVlA4IF4NAAAQjACdASrgAVYDPlEok0ajoqGhIRK4IHAKCWlu/F+5xDCoDux8VXNtc99B5Uf715Q+k/+V6E/yD7bfvf7tYI7QKys1Pu/n/K9wD+L/0L/aeqHflfZf937AH81/p//N/yXr9f9f+M/yf7c+4D6R/7n+O+BL9d+rb+0f//9yX9VQU+fHDhw4cN7KTkCBAgQIECBAgQIEB8GtgzU5WrVq1atWrVq1atTTWWxGRvDLM5r169evXr169evVcNgPhleRXp06dOnTp06dOnTpUIn65+OKaJVsmzZs2bNmzZs2bNmSyYC6ipEunTp06dOnTp06dOlydZVuN901q1atWrVq1atWrVXZqLYS16JYyeHDhw4cOHDhw4cN4wtQeDaQLgECBAgQIECBAgQIDddB6sEmQB2atWrVq1atWrVq1aq1iYS5JU9iBlzXr169evXr169evXeEPp+8N6OklatWrVq1atWrVq1V3IfqDdZ8CK1AgQIECBAgQIECBBQFoI3bXHSzdGb8+OHDhw4cOHDhw4ZwLNj/Gx48ePHjx48ePHjx5HaZ5q8hFQPLVq1atWrVq1atWrVWlrSSS1atWrVq1atWrVq1VouJ4vs1atWrVq1atWrVqzMNN6naRaj4OHDhw4cOHDhwzggYy8goXr169evXr169evXbAmy3nWg79+/fv379+/fv377Aw+GV3JG24BIkSJEiRIkSJEiRH091sORb3KZK2rVq1atWrVq1atWZgOgxn2g3CECBAgQIECBAgQHwEh4tRYq5WHRSJEiRIkSJEiRIkRmQ4gXd9q0Xa9evXr169evXr169SUP3aSDmqBOfHDhw4cOHDhw4cN/rYXzoW6jx48ePHjx48ePHjwyNgV/F/hRIkSJEiRIkSJEiRGcgeccx2x48ePHjx48ePHjx5+h2DL7y1q1atWrVq1atWrVqrLjxn1+UevXr169evXr169epWz/ixb7G7Fx48ePHjx48ePHjx64Dpo0+TFzjw4cOHDhw4cOHDhwr64/FOVqj1ftlBYsWLFixYsWLFixsB93m6MKtrfi/YePHjx48ePHjx48eGCFP4MdBX+BXbQiRIkSJEiRIkSJEiA+X4/Ne4l0FixYsWLFixYsWLTKZjxkHLs7TTrVq1atWrVq1atWrSGY83Cktx0PPjhw4cOHDhw4cN/7Xmd/H4DxEePHjx48ePHjx48ct7KWpas7p5jy5cuXLly5cuXLlyM+h2/gRIkSJEiRIkSJEiRAPRMs9EnbFixYsWLFixYsWLBwJstxClHwcOHDhw4cOHDhw3+o6GvCGxY8ePHjx48ePHjx45aAayr3BCnnxw4cOHDhw4cOG/2HuJWxIvK1JLZs2bNmzZs2bNmyAMNnZLnTo6dOnTp06dOnTp06Vd0rFPQfnwwCPHjx48ePHjx48eOU7jRhCFUn5bFixYsWLFixYsWKZRr/1LzwcOHDhw4cOHDhw4ZshIGgexQoECBAgQIECBAgQH+hD+jvXr169eu0AAP7/2BA2pStbx3f0LK6/mZcFuZpv73FLTm7GUv07j8lFLoOGX1EwKUHfPc4FImBkAvjxF1E2TgBogJKpQ2lbMv5bOqPckB4PELJo9ZXlMwGup4PkMOtTZPmrbNoaCJqn0H4Bx7A0xA439P5hkMGBnAEfInQIN5UeUIDb3y6tLej2gR8HhJ5XmTsxvmM15ltL5ZwdGmoNeW8NevUVUKqJ8mNngu7ocCsyGYaeYOGGZBBt6rj6bPVKVbxvb8onw6mljAaaxGTz0W+aNPv06kK3qhDe6/uHi8kg2qvjF3njhRMyOJKZzg12h4qOtVgTuKPAMRWYDkgwiRs9iYqcumonNNXvXk3FAk2LO5XnyjtD5sHSUO3pIrztpBvqq+UJzKeIwGBlPwA2NP46tOJxLzbrKeH4SQjt2HAsbrVcQ/b/TgKZGPwaqfGDN+OjqJK3Z9dyCkGGfGKeG1w9+HSZTm/qh052lQEJAcdUX6vm/+sDBxtrfl4Sg8iMcVnDsfTKJpsTYF/vzJ1oQ6/VPyIX1HpDwnPXsptu9rKDFazlkwc3ofi8uKJmycgPiG9xOLlzn4Af8Dm+LcjJUMAtA7XeZPLlW1bwogbRthU8oA4LcURuku6eXDJ1eb1IKUU7k/UK0cBeK+R5YVcmrOnZIyHzcIaClYnrIwerP535fHv4VXjURTO6/85BvSeTNWvQGqkW5v1hG6AEMrxBryfat3kmr+SNEz5wC2f54z1O7C2KsRpt3maISh9PhMg7jDIxmVe07eHtkLtz6v3yQUJQV95yazDYpH5JfpuYSb8dtmB1cKjeoDTPvik9dCA1UFCTZBfojpIOwXdwAR7JEdZkEi/24hMNKJJlB6udZZKqNJB1hNl24Z++z6lAGSAuRgSwDZGdbqxs+0iL6wmRHilqPOiYB6hQiPZ7cfpMZxesqRwyhcf1O29w4ORG/7BlerR8hYvY4B1XsPYbDORvPk6FHIDXwTXGpuDIta7G4F6RNDdOvCFkAl53GZo5h/p2QkWUry5YuyegnPlKjT3He6ewYypA9YOvMhaqip7kr9sF4TU2bX9foKZ+FFZNzhyySS+13+g4BdJo9YF3bw5b6eSxUfTWiDLNh50VjuqRQWHUEkiA8zJqnqkKCwuDy6iY2oF20FJQlGIPpCDKPBzdXSb/n9NDltaoUlbam7cDAU7CwNdaWFXTABRk0S0e49iF4tO106Uwul7DGYpq0Eu71TnKUjCtEBc83QH8skvRzHniEne3AtJLYRH0cMNSSzeCJ1g+Nfc8RaZkhLhCaZGZdYe5j0LGmQnVFt2iapZvGBi7Sw0X56zdziC9Foq0OPsqKFetZdICc2eUV5Vu1+nvisSzn8wlSDUt3OmRkt/gJxfJQfWxcu5HZ26qqNpA4ablWrX4E9DEmvXzpFGYCnYJMheN2BlWwBVLh1cyQ8INngXaoB8I5Pj9oYyuz/W+jvJQ6G074luX9D3pLkuc88D0Hae3ZqXrRYRzGF1vD8pHsk9Co8B6rpE/4GEwW/zsCtnjz5G8m4KFwf2qW1k0HkNv7Nlg38bcz6TdTzuw/jega5XZQQhflLu4I6l+s90BHFIR+JEXTBBqJwT+IgTnpHNc+h5Ek74HiKqXuGUNGIKIozHkiFxMlnrsklrpweBzYY6ype9CzepAuQF63xC/eIJw1pMZEC1pPgq/r+1gWx5M6g8fpu2O12sb6pLeqT+G4mK3yHMZTojfp1xwQedRmwZnWQ8SCh4XV2a/+3OTz4D4pmmumyBV7V2VW3he8y6usinSjfYPxLyTng27fgw6jQhHl2mVhxBBjiwr5ljvJV7L+MJYDiZjGWfBCsTmehk6rbNt7ahTJpHu4B9ctRqiZXjx0zGpTF91OKifmy4nTq31p1XaIsZAHCWvItXKeke06KKKRTIm6mCT9yBJVwG1sqQhjrkP77q0/JGYgOwgdCQCstsAZQ0FlOrGYXYTIQK/krLyCAZjg8vP/Ers/KVN8F88OsyU5/T1e5ba8A2F63qgwhtkWoVIEZErOVL8sM/DtpWTlcBNsvVOFl4tT+Sk6a2ScCptFL5F6cZXTIw8JmgoCbyqB6xyU+uPP5y09s5T8MDC7Em7NpxCjgD39eed40gHQrBm6CtAbS9JOCVPkPxbpcGDj/LoAGbnyYzMpOmTi28LJ9FTIqyGuAI0jxY/QpNelOOEvNK3io1HeYkK3AprImDk99tlUjgt9bc3ejCOFDXt9LqGHjFssGrhVHyJBmWjwHQipcIMHxF2jfP5jfAGuHtJRRncHIFgLWmJ1XmzJ0LLqWCJShdJSJLc7L6YeVcgKfzOZCwhtzJ7VeI3uBhPXQNOqCf5tlQ32HApAMvCIiBwhYrpfFo/kvjfTMB/NJ0w2Lk8GAFfFQY+U6uX1oB0hztGmA5HggJTwgLo8exG64m3Xu4fg2g4MmQol7z6xNwwubABnpoS3Og85giFkaarUP2ovQyixFpXki8Xf5a5NwjUGCPbx+LD3WKJiBtkiHsYMMV/VAZVNvdg/Ph/V4ZYOr+hw7g9mOJXi+oVZxG9pqJC9w8nRkegsnQ2lpRHn22lTsIa9aOkR0X8zp/IajQxUzv057a3WptBst0EZbZtfmWp6h2K0sDQS9oQT1PqOkGDJlz6ZHZzDMShDTcwJfIZMdnjpeHdPoYoqlcn3M8daRuMeTSP3mabP1/pdQrs6Wl7ToKog2Au/gv46pUMgVcKmdWNJdDF8RplMMXJpU2tZMdkTWq4ofSypsCfuWfeHOpFQGJdFF6OoH2pDJXvkqpj1a832g3uYtVQg1TGyqYqI7UBZQy4NEZbdj6O/s6MNEnfujUDQ8QZj7rSE2RI77egKDWzM708AsvlMFoeX4CVP09rMzXNP2aOZwY7zOBTvBgEEqCWlXAFlY8pW0zIm16gqSPiwRUgH41i1PuJx382C0zTWGT243ZhLnyOIlreUrMQAfwR/oYt+ljnDFKqa5PEczDPa+u/vWmR6UM+Q/lLFiIlgBJTfaekWoeLpPd9FPN4gIHzK1ZS8kDHyq3lh/e6FQ84a4Zg6JlfQC/qhAAAAA==",JC="/assets/base-BKOm0Bib.webp",eE="/assets/clear-DZZMSrMX.webp",tE="/assets/drive-BE2W1yna.webp",nE="/assets/prime-BTVNe2Gb.webp",rE="/assets/elite_r-BRvz_pyr.webp",sE="/assets/apex-CFy2qup8.webp",iE="/assets/statement-pTO-wTPx.webp",oE="/assets/limitless-DDs0S_PU.webp",aE=(e,t,n)=>{t/=100,n/=100;const r=o=>(o+e/30)%12,s=t*Math.min(n,1-n),i=o=>n-s*Math.max(-1,Math.min(r(o)-3,Math.min(9-r(o),1)));return[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)]},Za=(e,t,n)=>`rgb(${aE(e,t,n).join(", ")})`,pm=e=>e.map(([t,n,r,s,i,o])=>({bgTop:Za(t,n,r),border:Za(t,n,r+8),accent:Za(s,i,o),img:null})),gm={graphite:[{accent:"#b6b6b6",border:"#2a2a2a",bgTop:"#1c1c1c",img:JC},{accent:"#d3d3d3",border:"#2e2e2e",bgTop:"#212121",img:eE},{accent:"#8fb8bd",border:"#26383b",bgTop:"#16282b",img:tE},{accent:"#6fbf73",border:"#1f3a24",bgTop:"#122916",img:nE},{accent:"#63d34f",border:"#204a1c",bgTop:"#123312",img:rE},{accent:"#8bea3c",border:"#2b5518",bgTop:"#173a0f",img:sE},{accent:"#d9a83c",border:"#4a3a16",bgTop:"#33270d",img:iE},{accent:"#f2c14e",border:"#5a4718",bgTop:"#3d2f0c",img:oE}],"deep-blue":pm([[215,18,11,210,15,60],[212,25,11,208,32,60],[210,38,12,206,46,60],[212,46,12,205,56,61],[214,52,12,205,63,62],[216,58,12,205,68,63],[220,62,12,212,73,65],[226,66,12,216,78,68]]),"warm-bronze":pm([[30,15,11,34,22,60],[34,32,11,34,46,60],[32,46,12,30,58,60],[26,52,12,24,65,60],[20,55,12,18,68,60],[14,55,12,12,68,61],[8,52,12,6,64,62],[2,50,12,358,60,63]])},lE="#f2f2f2",uE="#8a8a8a",cE="#c4c4c4",xm=5,dE=3,fE={recommended:{Icon:db,className:"bg-brand-500 text-white"},popular:{Icon:Ik,className:"bg-amber-400 text-neutral-950"},tip:{Icon:zk,className:"bg-sky-500 text-white"},coming_soon:{Icon:Yg,className:"bg-white text-neutral-900"},custom:{Icon:null,className:"bg-brand-500 text-white"}};function hE({pkg:e,tier:t,tierT:n,layout:r,bullets:s,formatPrice:i,contactUrl:o,t:a}){const[u,c]=x.useState(!1),[d,f]=x.useState(!1),h=x.useRef(null),p=s.length-xm,w=u?s:s.slice(0,xm);x.useLayoutEffect(()=>{const S=h.current;if(!S||u){f(!1);return}const j=()=>f([...S.querySelectorAll("[data-clamp]")].some(N=>N.scrollHeight>N.clientHeight+1));j();const L=new ResizeObserver(j);return L.observe(S),()=>L.disconnect()},[u,s.length,e.description]);const v=ad(),k=$n(v,`packages.${e.id}.description`),g=$n(v,`packages.${e.id}.price_text`),{package_card_height:m}=Pt(),y=fE[e.badge],b=r!=="grid",P=e.badge==="custom"?e.badge_text:e.badge&&a(`modelPage.badges.${e.badge}`),T=t.img?null:{backgroundColor:t.accent,WebkitMaskImage:`url(${mm})`,maskImage:`url(${mm})`,maskMode:"luminance",WebkitMaskSize:"cover",maskSize:"cover",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"};return l.jsxs("div",{style:{borderColor:t.border,background:`linear-gradient(180deg, ${t.bgTop} 0%, #0b0b0b 55%, #080808 100%)`,...b?{gridRow:"span 4",gridTemplateRows:"subgrid",rowGap:0}:{minHeight:`${m}px`}},className:r==="strip"?"relative grid snap-start overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40":r==="coverflow"?"relative grid snap-center overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 will-change-transform dark:shadow-black/40":"relative flex flex-col overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40",children:[t.img?l.jsx("img",{src:t.img,alt:"","aria-hidden":"true",className:"pointer-events-none absolute inset-0 h-full w-full object-cover"}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...T,opacity:.2+n*.45,filter:"blur(18px)"},"aria-hidden":"true"}),l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...T,opacity:.55+n*.45},"aria-hidden":"true"})]}),y&&P&&l.jsxs("span",{className:`absolute top-2 left-1/2 z-10 flex max-w-[calc(100%-16px)] -translate-x-1/2 items-center gap-1 whitespace-nowrap rounded-full px-3 py-1 text-xs font-bold shadow ${y.className}`,children:[y.Icon&&l.jsx(y.Icon,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"truncate",children:P})]}),l.jsxs("div",{className:"relative z-10 text-center",style:{padding:"34px 20px 0",gridRow:1},children:[l.jsx("div",{style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",letterSpacing:"3px",fontWeight:600,color:t.accent,textTransform:"uppercase",lineHeight:1.1},children:e.name}),l.jsx("div",{style:{width:"44px",height:"2px",margin:"14px auto 0",background:`linear-gradient(90deg, rgba(255,255,255,0) 0%, ${t.accent} 50%, rgba(255,255,255,0) 100%)`}})]}),s.length>0&&l.jsxs("div",{className:"relative z-10",style:{gridRow:2,padding:"18px 20px 14px",background:u?"linear-gradient(180deg, rgba(8,8,8,0.7) 0%, rgba(8,8,8,0.62) 94%, rgba(8,8,8,0) 100%)":"linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.48) 92%, rgba(8,8,8,0) 100%)"},children:[l.jsx("ul",{ref:h,className:"space-y-1.5 text-left",children:w.map((S,j)=>l.jsxs("li",{className:"flex items-start gap-2",style:{fontSize:"13px",color:cE,...S.fromDescription?k:null},children:[l.jsx(ck,{className:"mt-0.5 h-3.5 w-3.5 shrink-0",style:{color:t.accent}}),l.jsx("span",{"data-clamp":!0,className:"leading-snug",style:u?void 0:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:dE,overflow:"hidden"},children:S.fromDescription?l.jsx(ZC,{text:S.text}):S.text})]},j))}),(u||p>0||d)&&l.jsxs("button",{type:"button",onClick:()=>c(S=>!S),className:"mt-2.5 flex items-center gap-1 hover:opacity-80",style:{fontSize:"13px",color:t.accent},children:[u?a("modelPage.lessBullets"):p>0?a("modelPage.moreBullets")(p):a("modelPage.showMore"),u?l.jsx(yk,{className:"h-3.5 w-3.5"}):l.jsx(fk,{className:"h-3.5 w-3.5"})]})]}),l.jsx("div",{className:"relative z-10 flex-1",style:{gridRow:3}}),l.jsx("div",{className:"relative z-10",style:{gridRow:4,padding:"20px 20px 28px",background:"linear-gradient(180deg, rgba(8,8,8,0) 0%, rgba(8,8,8,0.85) 45%, rgba(8,8,8,0.95) 100%)"},children:l.jsxs("div",{className:"text-center",children:[!e.price_text&&l.jsx("div",{style:{fontSize:"13px",color:uE},children:a("modelPage.totalPrice")}),l.jsx("div",{style:{marginTop:"4px",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",fontWeight:600,letterSpacing:"1px",color:lE,...e.price_text?g:null},children:e.price_text||i(e.total_price)}),l.jsx(U,{to:o(e),className:"mt-4 inline-block rounded-md bg-brand-500 px-4 py-2 text-center text-sm font-semibold text-white shadow-lg shadow-brand-500/30 hover:bg-brand-400",children:a("modelPage.requestContact")}),e.video_url&&l.jsx("div",{className:"mt-3",children:l.jsxs("a",{href:e.video_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-full border border-white/15 bg-white/5 px-3 py-1 text-xs font-semibold text-white transition hover:bg-white/15",children:[l.jsx(wk,{className:"h-4 w-4 text-red-500","aria-hidden":"true"}),a("modelPage.videoLink")]})})]})})]})}function mE(){const{brandSlug:e,modelSlug:t}=$s(),[n,r]=x.useState(null),[s,i]=x.useState(""),o=na(),{t:a,language:u}=Ce(),{package_card_theme:c,package_card_layout:d,package_wheel_hint_interval:f,package_card_width:h,package_card_height:p}=Pt(),w=gm[c]||gm.graphite,v=["grid","strip","coverflow"].includes(d)?d:"strip",k=Math.max(2,Number(f)||8)*1e3,g=x.useRef(null),m=x.useRef(null),y=x.useRef(null),[b,P]=x.useState(!1),T=_=>new Intl.NumberFormat(u==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(_);x.useEffect(()=>{o.vehicles.enabled&&!o.bypass||Z.get(`/models/${e}/${t}/packages`).then(r).catch(_=>i(_.message))},[e,t,o.vehicles.enabled,o.bypass]),x.useEffect(()=>{const _=g.current;if(v!=="coverflow"||!_)return;let R=0;const B=()=>{R=0;const C=_.scrollLeft+_.clientWidth/2;for(const A of _.children){const F=A.offsetLeft+A.offsetWidth/2,q=Math.max(-1,Math.min(1,(F-C)/(A.offsetWidth*1.4))),Me=Math.abs(q);A.style.transform=`rotateY(${(-q*35).toFixed(2)}deg) scale(${(1-Me*.13).toFixed(3)}) translateZ(${(-Me*60).toFixed(1)}px)`,A.style.zIndex=String(100-Math.round(Me*50))}},W=()=>{R||(R=requestAnimationFrame(B))};B(),_.addEventListener("scroll",W,{passive:!0});const E=new ResizeObserver(W);return E.observe(_),()=>{_.removeEventListener("scroll",W),E.disconnect(),cancelAnimationFrame(R)}},[v,n]),x.useEffect(()=>{const _=g.current;if(v==="grid"||!_)return;const R=window.matchMedia("(pointer: coarse)").matches;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let W=[],E=0;const C=()=>{const F=Math.min(_.clientWidth*.4,160);W.push(setTimeout(()=>_.scrollTo({left:F,behavior:"smooth"}),500)),W.push(setTimeout(()=>_.scrollTo({left:0,behavior:"smooth"}),1250)),R||(W.push(setTimeout(()=>P(!0),450)),W.push(setTimeout(()=>P(!1),1700)))},A=new IntersectionObserver(([F])=>{F.isIntersecting&&(A.disconnect(),C(),E=setInterval(()=>{_.scrollLeft<=1&&C()},k))},{threshold:.35});return A.observe(_),()=>{A.disconnect(),clearInterval(E),W.forEach(clearTimeout)}},[v,n,k]),x.useEffect(()=>{const _=g.current;if(v==="grid"||!_)return;let R=0,B=0,W=!1,E=0,C=0;const A=()=>[..._.children].map(D=>D.offsetLeft+D.offsetWidth/2),F=(D,$)=>{let fe=0,Q=1/0;return D.forEach((ye,Rt)=>{const Zs=Math.abs(ye-$);Zs{W=!1;const D=A();if(!D.length)return;const $=_.scrollLeft+_.clientWidth/2,fe=F(D,$);let Q=fe;fe===E&&Math.abs(C)>4&&(Q=C>0?Math.min(E+1,D.length-1):Math.max(E-1,0));const ye=_.scrollWidth-_.clientWidth,Rt=Math.max(0,Math.min(D[Q]-_.clientWidth/2,ye));_.scrollTo({left:Rt,behavior:"smooth"}),clearTimeout(B),B=setTimeout(()=>{_.style.scrollSnapType=""},450)},Me=D=>{if(Math.abs(D.deltaX)>Math.abs(D.deltaY))return;const $=_.scrollWidth-_.clientWidth;if($<=1)return;const fe=_.scrollLeft<=1,Q=_.scrollLeft>=$-1;D.deltaY<0&&fe||D.deltaY>0&&Q||(D.preventDefault(),W||(W=!0,C=0,E=F(A(),_.scrollLeft+_.clientWidth/2)),C+=D.deltaY,_.style.scrollSnapType="none",_.scrollLeft+=D.deltaY,clearTimeout(R),R=setTimeout(q,150))};return _.addEventListener("wheel",Me,{passive:!1}),()=>{_.removeEventListener("wheel",Me),clearTimeout(R),clearTimeout(B)}},[v,n]),x.useEffect(()=>{const _=g.current,R=m.current,B=y.current;if(v==="grid"||!_||!R||!B)return;let W=0;const E=()=>{W=0;const Q=_.scrollWidth-_.clientWidth;if(Q<=1){R.style.opacity="0",R.style.pointerEvents="none";return}R.style.opacity="1",R.style.pointerEvents="auto";const ye=R.clientWidth,Rt=Math.max(32,_.clientWidth/_.scrollWidth*ye);B.style.width=`${Rt}px`,B.style.transform=`translateX(${(_.scrollLeft/Q*(ye-Rt)).toFixed(1)}px)`},C=()=>{W||(W=requestAnimationFrame(E))};E(),_.addEventListener("scroll",C,{passive:!0});const A=new ResizeObserver(C);A.observe(_);let F=!1,q=0;const Me=Q=>{const ye=R.getBoundingClientRect(),Rt=B.clientWidth,Zs=Math.min(Math.max(Q-ye.left-q,0),ye.width-Rt);_.scrollLeft=Zs/(ye.width-Rt)*(_.scrollWidth-_.clientWidth)},D=Q=>{F=!0,R.setPointerCapture(Q.pointerId),_.style.scrollSnapType="none";const ye=B.getBoundingClientRect();q=Q.clientX>=ye.left&&Q.clientX<=ye.right?Q.clientX-ye.left:B.clientWidth/2,Q.clientX>=ye.left&&Q.clientX<=ye.right||Me(Q.clientX)},$=Q=>{F&&Me(Q.clientX)},fe=Q=>{var ye;F&&(F=!1,(ye=R.hasPointerCapture)!=null&&ye.call(R,Q.pointerId)&&R.releasePointerCapture(Q.pointerId),_.style.scrollSnapType="")};return R.addEventListener("pointerdown",D),R.addEventListener("pointermove",$),R.addEventListener("pointerup",fe),R.addEventListener("pointercancel",fe),()=>{_.removeEventListener("scroll",C),A.disconnect(),cancelAnimationFrame(W),R.removeEventListener("pointerdown",D),R.removeEventListener("pointermove",$),R.removeEventListener("pointerup",fe),R.removeEventListener("pointercancel",fe)}},[v,n]),st({title:n?a("modelPage.metaTitle")(n.model.brand_name,n.model.name):a("modelPage.metaTitleFallback"),description:n?a("modelPage.metaDescription")(n.model.brand_name,n.model.name):void 0,path:`/fahrzeuge/${e}/${t}`});const S=Re(n?`car_models.${n.model.id}.name`:"");if(o.vehicles.enabled&&!o.bypass)return l.jsx(qs,{message:o.vehicles.message});if(s)return l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:s});if(!n)return l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:a("modelPage.loading")});const{model:j,packages:L}=n,N=new Map([...L].sort((_,R)=>_.total_price-R.total_price).map((_,R)=>[_.id,R])),O=_=>{const R=_.tier_count??L.length,B=_.tier_rank??N.get(_.id)??0,W=R<=1?0:B/(R-1),E=Math.round(W*(w.length-1));return{tier:w[E],tierT:W}},H=_=>[..._.products.map(R=>({text:R.name_override||R.scraped_name||a("modelPage.productLoading"),fromDescription:!1})),...(_.description||"").split(` -`).map(R=>R.trim()).filter(Boolean).map(R=>({text:R,fromDescription:!0}))],oe=_=>`/kontakt?${new URLSearchParams({brand:j.brand_name,model:j.name,package:_.name,packageId:_.id,total:_.total_price}).toString()}`;return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"mx-auto max-w-6xl px-4 pt-12 sm:px-6",children:[o.vehicles.enabled&&o.bypass&&l.jsx(Qs,{inline:!0}),l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{to:"/fahrzeuge",className:"hover:text-brand-500",children:a("modelPage.breadcrumbVehicles")})," /"," ",l.jsx(U,{to:`/fahrzeuge/${e}`,className:"hover:text-brand-500",children:j.brand_name})," / ",l.jsx("span",{style:S,children:j.name})]}),l.jsxs("h1",{className:`text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl ${L.length?"mb-2":"mb-8"}`,children:[j.brand_name," ",l.jsx("span",{style:S,children:j.name})," – ",a("modelPage.titleSuffix")]}),L.length===0&&l.jsx("p",{className:"pb-12 text-neutral-500 dark:text-neutral-400",children:a("modelPage.empty")})]}),L.length>0&&l.jsx("section",{className:"py-10 sm:py-14",style:{fontFamily:"'Barlow', sans-serif"},children:l.jsxs("div",{className:v==="grid"?"mx-auto max-w-6xl px-4 sm:px-6":"relative mx-auto max-w-[1880px] px-4 sm:px-6",children:[l.jsx("div",{ref:v==="grid"?void 0:g,className:v==="grid"?"grid items-stretch gap-[18px]":"grid select-none gap-x-[18px] overflow-x-auto pb-3 snap-x snap-mandatory [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:v==="grid"?{gridTemplateColumns:`repeat(auto-fill, minmax(${h}px, 1fr))`,gridAutoRows:"1fr"}:{gridAutoFlow:"column",gridAutoColumns:`${h}px`,gridTemplateRows:"auto auto 1fr auto",minHeight:`${Number(p)+(v==="coverflow"?22:12)}px`,...v==="coverflow"?{perspective:"1200px",paddingLeft:`calc(50% - ${h/2}px)`,paddingRight:`calc(50% - ${h/2}px)`,paddingTop:"10px"}:null},children:L.map(_=>{const{tier:R,tierT:B}=O(_);return l.jsx(hE,{pkg:_,tier:R,tierT:B,layout:v,bullets:H(_),formatPrice:T,contactUrl:oe,t:a},_.id)})}),v!=="grid"&&l.jsx("div",{className:`pointer-events-none absolute inset-x-0 top-1/2 z-[200] flex -translate-y-1/2 justify-center transition-opacity duration-300 ${b?"opacity-100":"opacity-0"}`,"aria-hidden":"true",children:l.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-white/10 bg-neutral-900/85 px-4 py-2 text-xs font-medium text-white shadow-lg backdrop-blur-sm",children:[l.jsx(mk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx(qk,{className:"h-4 w-4 text-brand-400"}),l.jsx(gk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx("span",{children:a("modelPage.wheelHint")})]})}),v!=="grid"&&l.jsx("div",{ref:m,className:"relative mx-auto mt-5 h-2 w-56 max-w-full cursor-pointer rounded-full bg-neutral-900/10 transition-opacity duration-200 dark:bg-white/10",style:{touchAction:"none"},"aria-hidden":"true",children:l.jsx("div",{ref:y,className:"absolute left-0 top-0 h-full rounded-full bg-brand-500 shadow-[0_0_10px_rgba(107,166,38,0.7)]",style:{width:"48px"}})})]})})]})}function pE(){const[e,t]=x.useState(null),[n,r]=x.useState(""),{t:s}=Ce(),{gallery_card_text_x:i,gallery_card_text_y:o}=Pt();return st({title:s("galleryOverview.metaTitle"),description:s("galleryOverview.metaDescription"),path:"/galerie"}),x.useEffect(()=>{Z.get("/gallery-brands").then(t).catch(a=>r(a.message))},[]),l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:s("galleryOverview.title")}),l.jsx("p",{className:"mb-8 text-neutral-600 dark:text-neutral-300",children:s("galleryOverview.intro")}),n&&l.jsx("p",{className:"text-red-600",children:n}),!e&&!n&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.loading")}),e&&e.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:e==null?void 0:e.map(a=>l.jsxs(U,{to:`/galerie/${a.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[a.cover_image_path?l.jsx("img",{src:a.cover_image_path,alt:a.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):l.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:No(i,o,{x:0,y:100}),children:a.name})]},a.id))})]})}function gE(){const{brandSlug:e}=$s(),[t,n]=x.useState(null),[r,s]=x.useState(""),{t:i}=Ce(),{gallery_card_text_x:o,gallery_card_text_y:a}=Pt();return x.useEffect(()=>{Z.get(`/gallery-brands/${e}/projects`).then(n).catch(u=>s(u.message))},[e]),st({title:t?i("galleryBrandPage.metaTitle")(t.brand.name):i("galleryBrandPage.metaTitleFallback"),description:t?i("galleryBrandPage.metaDescription")(t.brand.name):void 0,path:`/galerie/${e}`}),r?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:r}):t?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{to:"/galerie",className:"hover:text-brand-500",children:i("galleryBrandPage.breadcrumbGallery")})," / ",t.brand.name]}),l.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[t.brand.name," – ",i("galleryBrandPage.titleSuffix")]}),t.projects.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:i("galleryBrandPage.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:t.projects.map(u=>l.jsxs(U,{to:`/galerie/${e}/${u.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[u.cover_image_path?l.jsx("img",{src:u.cover_image_path,alt:u.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):l.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:No(o,a,{x:0,y:100}),children:u.name})]},u.id))})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:i("galleryBrandPage.loading")})}function xE({photos:e,index:t,onClose:n,onNavigate:r}){const{t:s}=Ce();if(x.useEffect(()=>{if(t==null)return;const a=u=>{u.key==="Escape"&&n(),u.key==="ArrowRight"&&r(1),u.key==="ArrowLeft"&&r(-1)};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[t,n,r]),t==null)return null;const i=e[t],o=a=>a.stopPropagation();return Go.createPortal(l.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/90 p-4",onClick:n,children:[l.jsx("button",{onClick:a=>{o(a),n()},"aria-label":s("lightbox.close"),className:"absolute right-4 top-4 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-7 w-7",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})})}),e.length>1&&l.jsx("button",{onClick:a=>{o(a),r(-1)},"aria-label":s("lightbox.previous"),className:"absolute left-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:left-4",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 18-6-6 6-6"})})}),l.jsx("img",{src:i.image_path,alt:i.caption||"",onClick:o,className:"max-h-[85vh] max-w-full rounded-lg object-contain"}),e.length>1&&l.jsx("button",{onClick:a=>{o(a),r(1)},"aria-label":s("lightbox.next"),className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:right-4",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 18 6-6-6-6"})})}),i.caption&&l.jsx("p",{onClick:o,className:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full bg-black/60 px-4 py-1.5 text-sm text-white",children:i.caption})]}),document.body)}function yE(){const{brandSlug:e,projectSlug:t}=$s(),[n,r]=x.useState(null),[s,i]=x.useState(""),[o,a]=x.useState(null),{t:u}=Ce();x.useEffect(()=>{Z.get(`/gallery-brands/${e}/${t}/photos`).then(r).catch(d=>i(d.message))},[e,t]),st({title:n?`${n.project.name} – ${n.project.brand_name}`:u("galleryProjectPage.metaTitleFallback"),description:n?u("galleryProjectPage.metaDescription")(n.project.name):void 0,path:`/galerie/${e}/${t}`});const c=d=>{a(f=>{const h=n.photos.length;return(f+d+h)%h})};return s?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:s}):n?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(U,{to:"/galerie",className:"hover:text-brand-500",children:u("galleryProjectPage.breadcrumbGallery")})," /"," ",l.jsx(U,{to:`/galerie/${e}`,className:"hover:text-brand-500",children:n.project.brand_name})," / ",n.project.name]}),l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:n.project.name}),n.photos.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:u("galleryProjectPage.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:n.photos.map((d,f)=>l.jsx(Se,{index:f%6,shine:!0,className:"aspect-square overflow-hidden rounded-xl",children:l.jsx("button",{onClick:()=>a(f),className:"block h-full w-full","aria-label":d.caption||u("galleryProjectPage.enlargeImage"),children:l.jsx("img",{src:d.image_path,alt:d.caption||"",loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})})},d.id))}),l.jsx(xE,{photos:n.photos,index:o,onClose:()=>a(null),onNavigate:c})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:u("galleryProjectPage.loading")})}const vE={car:Xg,caravan:lk,"car-front":ik,cog:Sk,zap:xb,boxes:rk,"shield-alert":ab,video:pb},wE=x.lazy(()=>ee(()=>import("./iconRegistry-B8BVNGep.js"),__vite__mapDeps([0,1,2])));function kE({name:e,className:t="h-6 w-6",...n}){if(!e)return null;const r=vE[e];return r?l.jsx(r,{className:t,...n}):l.jsx(x.Suspense,{fallback:l.jsx("span",{className:`inline-block ${t}`,"aria-hidden":"true"}),children:l.jsx(wE,{name:e,className:t,...n})})}function bE(){const[e,t]=x.useState([]),n=na(),{t:r}=Ce();return x.useEffect(()=>{Z.get("/services").then(t).catch(()=>t([]))},[]),st({title:r("leistungen.metaTitle"),description:r("leistungen.metaDescription"),path:"/leistungen"}),n.services.enabled&&!n.bypass?l.jsx(qs,{message:n.services.message}):l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[n.services.enabled&&n.bypass&&l.jsx(Qs,{inline:!0}),l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:r("leistungen.title")}),l.jsx("p",{className:"mb-10 max-w-2xl text-neutral-600 dark:text-neutral-300",children:r("leistungen.intro")}),l.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:e.map((s,i)=>l.jsxs(Se,{index:i%3,shine:!0,className:"overflow-hidden rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"relative aspect-[4/3]",children:[s.image_path&&l.jsx("img",{src:s.image_path,alt:s.title,className:"h-full w-full object-cover",loading:"lazy"}),l.jsx("div",{className:"absolute -bottom-5 left-5 flex h-12 w-12 items-center justify-center rounded-full bg-brand-500 text-white shadow-lg ring-4 ring-white dark:ring-neutral-900",children:l.jsx(kE,{name:s.icon_name,className:"h-6 w-6"})})]}),l.jsxs("div",{className:"p-6 pt-8",children:[l.jsx("h2",{className:"mb-2 font-semibold text-neutral-900 dark:text-white",children:s.title}),l.jsx("p",{className:"mb-3 text-sm text-neutral-600 dark:text-neutral-300",children:s.description}),l.jsxs(U,{to:s.cta_url||"/kontakt",className:"text-sm font-semibold text-brand-600 hover:underline dark:text-brand-400",children:[s.cta_label||r("leistungen.contact")," →"]})]})]},s.id))}),l.jsxs("div",{className:"mt-12 rounded-xl border border-neutral-200 bg-neutral-50 p-8 text-center dark:border-neutral-800 dark:bg-neutral-900/40",children:[l.jsx("h2",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:r("leistungen.notListedTitle")}),l.jsx("p",{className:"mb-5 text-neutral-600 dark:text-neutral-300",children:r("leistungen.notListedText")}),l.jsx(U,{to:"/kontakt",className:"inline-block rounded-md bg-brand-500 px-6 py-3 text-sm font-semibold text-white hover:bg-brand-600",children:r("leistungen.contact")})]})]})}function SE({name:e,description:t,className:n="",children:r}){const{consent:s,acceptAll:i,openSettings:o}=Lr();return s.external?r:l.jsxs("div",{className:`flex flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-neutral-50 p-6 text-center dark:border-neutral-800 dark:bg-neutral-900/40 ${n}`,children:[l.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:t||`${e} wird erst nach deiner Zustimmung geladen, da dabei Daten an Google übertragen werden.`}),l.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[l.jsx("button",{type:"button",onClick:i,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"Laden erlauben"}),l.jsx("button",{type:"button",onClick:o,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Cookie-Einstellungen"})]})]})}const sy=e=>(e||"").replace(/[^\d+]/g,""),jE=e=>`https://wa.me/${sy(e).replace(/^0/,"49").replace("+","")}`,Wi={fontFamily:"'Michroma', sans-serif"};function PE({className:e}){return l.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:l.jsx("path",{d:"M12 2a10 10 0 0 0-8.6 15l-1.3 4.8 5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.2 14.8l-.3-.2-2.6.7.7-2.5-.2-.3A8 8 0 0 1 12 4zm4.3 9.9c-.2-.1-1.4-.7-1.6-.8s-.4-.1-.5.1l-.7.9c-.1.1-.3.2-.5.1a6.5 6.5 0 0 1-3.2-2.8c-.1-.2 0-.4.1-.5l.4-.5.2-.4v-.4l-.7-1.7c-.2-.4-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.7.7-.9 1.6-.6 2.7.5 1.7 1.6 3.1 3.4 4.2 1.7 1 2.5 1 3.4.9.5-.1 1.4-.6 1.6-1.1.2-.5.2-1 .1-1.1z"})})}function TE({path:e,className:t}){return l.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:l.jsx("path",{d:e})})}const CE={premium:"M4 12v3M8 8v11M12 4v16M16 8v11M20 12v3",germany:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0 M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5 19 19M19 5l-1.5 1.5M6.5 17.5 5 19",individual:"M6 3h12l4 6-10 12L2 9z M11 3 8 9l4 12 4-12-3-6M2 9h20",experts:"M20 6 9 17l-5-5"};function ym({formatted:e,color:t}){const[n,r]=e.split("€");return l.jsxs("span",{style:{...Wi,color:t},children:[n,l.jsx("span",{style:{fontFamily:"'Barlow', sans-serif"},children:"€"}),r]})}function Si({icon:e,label:t,name:n,type:r="text",required:s,value:i,onChange:o,placeholder:a}){return l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsx("label",{htmlFor:`kf-${n}`,className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:t}),l.jsxs("div",{className:"relative flex items-center",children:[l.jsx(e,{className:"pointer-events-none absolute left-[14px] h-[17px] w-[17px]",style:{color:"var(--kf-fieldicon)"}}),l.jsx("input",{id:`kf-${n}`,name:n,type:r,required:s,value:i,onChange:o,placeholder:a,className:"w-full rounded-lg border py-3.5 pl-[42px] pr-4 text-[15px] outline-none transition-colors",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]})]})}function EE(){const[e]=Ow(),{phone:t,whatsapp:n,contact_email:r,address_street:s,address_zip:i,address_city:o,business_hours:a}=Pt(),{t:u,language:c}=Ce(),{consent:d}=Lr(),f=[s,[i,o].filter(Boolean).join(" ")].filter(Boolean).join(", "),h=encodeURIComponent(f),p=`https://www.google.com/maps/dir/?api=1&destination=${h}`,w=s0(a,u("footer.closed")),v=C=>new Intl.NumberFormat(c==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(C),[k,g]=x.useState({name:"",email:"",phone:"",vin:"",message:""}),[m,y]=x.useState("idle"),[b,P]=x.useState(""),[T,S]=x.useState([]),[j,L]=x.useState([]),N=e.get("packageId"),O=e.get("total")?Number(e.get("total")):null;x.useEffect(()=>{if(!N){S([]);return}Z.get(`/packages/${N}/upgrades`).then(S).catch(()=>S([]))},[N]);const H=C=>{L(A=>A.includes(C)?A.filter(F=>F!==C):[...A,C])},oe=T.filter(C=>j.includes(C.id)).reduce((C,A)=>C+Number(A.price),0);st({title:u("contactPage.metaTitle"),description:u("contactPage.metaDescription"),path:"/kontakt"});const _={brand:e.get("brand")||"",model:e.get("model")||"",package:e.get("package")||""},R=!!(_.brand&&_.model&&_.package),B=C=>g(A=>({...A,[C.target.name]:C.target.value})),W=async C=>{C.preventDefault(),y("sending"),P("");try{await Z.post("/contact",{...k,brand_name:_.brand||null,model_name:_.model||null,package_name:_.package||null,product_name:e.get("product")||null,package_id:N||null,package_product_id:e.get("productId")||null,upgrade_ids:j}),y("sent"),g({name:"",email:"",phone:"",vin:"",message:""})}catch(A){P(A.message),y("idle")}},E=[{key:"premium",title:u("contactPage.featurePremiumTitle"),sub:u("contactPage.featurePremiumSub")},{key:"germany",title:u("contactPage.featureGermanyTitle"),sub:u("contactPage.featureGermanySub")},{key:"individual",title:u("contactPage.featureIndividualTitle"),sub:u("contactPage.featureIndividualSub")},{key:"experts",title:u("contactPage.featureExpertsTitle"),sub:u("contactPage.featureExpertsSub")}];return l.jsx("div",{className:"kf-page kontakt-sektion relative w-full overflow-hidden px-4 pb-10 sm:px-10",style:{color:"var(--kf-text2)",fontFamily:"'Barlow', sans-serif"},children:l.jsxs("div",{className:"relative z-10 mx-auto max-w-[1280px] pt-10 sm:pt-14",children:[l.jsx("div",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[6px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.heroEyebrow")}),l.jsxs("h1",{className:"text-[34px] leading-[1.08] sm:text-[46px] lg:text-[60px]",style:{...Wi,color:"var(--kf-text)"},children:[u("contactPage.heroTitlePre")," ",l.jsx("span",{style:{color:"var(--kf-accent2)"},children:u("contactPage.heroTitleAccent")})," ",u("contactPage.heroTitlePost")]}),l.jsx("p",{className:"mb-10 mt-5 max-w-[520px] text-lg leading-[1.55]",style:{color:"var(--kf-muted)"},children:u("contactPage.heroSubtitle")}),l.jsxs("div",{className:"grid grid-cols-1 items-start gap-10 min-[981px]:grid-cols-[minmax(0,1.35fr)_minmax(320px,1fr)]",children:[l.jsx("div",{children:l.jsxs("div",{className:"rounded-2xl border p-[22px] sm:p-10",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[R&&l.jsxs("div",{className:"mb-8 rounded-xl border px-6 py-[22px]",style:{background:"var(--kf-pkgbg)",borderColor:"var(--kf-pkgbrd)"},children:[l.jsxs("div",{className:"mb-3.5 flex items-center gap-2.5 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:[l.jsx(nb,{className:"h-4 w-4"}),u("contactPage.packageBoxTitle")]}),l.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-5 gap-y-2 text-[15px]",children:[l.jsx("span",{style:{color:"var(--kf-label)"},children:u("contactPage.contextBrand")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:_.brand}),l.jsx("span",{style:{color:"var(--kf-label)"},children:u("contactPage.contextModel")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:_.model}),l.jsx("span",{style:{color:"var(--kf-label)"},children:u("contactPage.contextPackage")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:_.package})]}),l.jsxs("div",{className:"mt-3.5 flex items-baseline justify-between border-t pt-3.5",style:{borderColor:"var(--kf-pkgbrd)"},children:[l.jsx("span",{className:"text-[13px] font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:u("contactPage.packagePrice")}),l.jsx("span",{className:"text-xl",children:O!=null?l.jsx(ym,{formatted:v(O),color:"var(--kf-text)"}):"—"})]})]}),T.length>0&&l.jsxs("div",{className:"mb-8 rounded-xl border p-5",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)"},children:[l.jsx("div",{className:"mb-3 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.optionalUpgrades")}),l.jsx("div",{className:"space-y-2",children:T.map(C=>l.jsxs("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border p-3 text-sm",style:{borderColor:"var(--kf-fieldbrd)"},children:[l.jsx("input",{type:"checkbox",checked:j.includes(C.id),onChange:()=>H(C.id),className:"mt-0.5 h-4 w-4 rounded",style:{accentColor:"var(--kf-accent)"}}),l.jsxs("span",{className:"flex-1",children:[l.jsx("span",{className:"block font-semibold",style:{color:"var(--kf-text2)"},children:C.name}),C.description&&l.jsx("span",{className:"block text-xs",style:{color:"var(--kf-muted)"},children:C.description})]}),l.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-accent2)"},children:["+",v(C.price)]})]},C.id))}),j.length>0&&O!=null&&l.jsxs("div",{className:"mt-3 flex items-baseline justify-between border-t pt-3 text-sm",style:{borderColor:"var(--kf-pkgbrd)"},children:[l.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:u("contactPage.totalWithUpgrades")}),l.jsx(ym,{formatted:v(O+oe),color:"var(--kf-text)"})]})]}),l.jsx("h2",{className:"mb-8 text-xl",style:{...Wi,color:"var(--kf-text)"},children:u("contactPage.formTitle")}),m==="sent"&&l.jsxs("div",{className:"mb-6 rounded-[10px] border p-5",style:{borderColor:"var(--kf-accent)",background:"var(--kf-accentsoft)"},children:[l.jsx("div",{className:"text-base font-bold",style:{color:"var(--kf-accent2)"},children:u("contactPage.sentTitle")}),l.jsx("div",{className:"mt-1 text-sm",style:{color:"var(--kf-muted)"},children:u("contactPage.sentText")})]}),l.jsxs("form",{onSubmit:W,children:[l.jsxs("div",{className:"grid grid-cols-1 gap-6 min-[641px]:grid-cols-2",children:[l.jsx(Si,{icon:hb,label:u("contactPage.nameLabel"),name:"name",required:!0,value:k.name,onChange:B,placeholder:u("contactPage.namePlaceholder")}),l.jsx(Si,{icon:Lf,label:u("contactPage.emailLabel"),name:"email",type:"email",required:!0,value:k.email,onChange:B,placeholder:u("contactPage.emailPlaceholder")}),l.jsx(Si,{icon:yo,label:u("contactPage.phoneLabel"),name:"phone",value:k.phone,onChange:B,placeholder:u("contactPage.phonePlaceholder")}),l.jsx(Si,{icon:Xg,label:u("contactPage.vinLabel"),name:"vin",value:k.vin,onChange:B,placeholder:u("contactPage.vinPlaceholder")})]}),l.jsxs("div",{className:"mt-6 flex flex-col gap-2",children:[l.jsx("label",{htmlFor:"kf-message",className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:u("contactPage.messageLabel")}),l.jsx("textarea",{id:"kf-message",name:"message",rows:5,value:k.message,onChange:B,placeholder:u("contactPage.messagePlaceholder"),className:"w-full resize-y rounded-lg border px-4 py-3.5 text-[15px] outline-none",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]}),b&&l.jsx("p",{className:"mt-4 text-sm text-red-600 dark:text-red-400",children:b}),l.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-5",children:[l.jsxs("button",{type:"submit",disabled:m==="sending",className:"inline-flex items-center gap-3 rounded-lg px-8 py-4 text-sm font-bold uppercase tracking-[3px] transition-[filter,box-shadow] hover:brightness-110 disabled:opacity-60",style:{background:"var(--kf-accent)",color:"var(--kf-btntext)",boxShadow:"0 10px 24px rgba(150,200,20,0.32)"},children:[l.jsx(ib,{className:"h-[18px] w-[18px]"}),u(m==="sending"?"contactPage.sending":"contactPage.submit")]}),l.jsx("div",{className:"text-[13px]",style:{color:"var(--kf-label)"},children:u("contactPage.requiredHint")})]})]})]})}),l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"relative overflow-hidden rounded-2xl border px-[22px] py-[26px] sm:px-8 sm:py-[34px]",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[l.jsx("div",{className:"pointer-events-none absolute -right-[60px] -top-[60px] h-[190px] w-[190px] rounded-full border border-dashed",style:{borderColor:"var(--kf-pkgbrd)"}}),l.jsx("h2",{className:"mb-7 text-[17px]",style:{...Wi,color:"var(--kf-text)"},children:u("contactPage.cardTitle")}),l.jsxs("div",{className:"flex flex-col gap-5",children:[l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(yo,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.phone")}),l.jsx("a",{href:`tel:${sy(t)}`,className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:t})]})]}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(Lf,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.email")}),l.jsx("a",{href:`mailto:${r}`,className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:r})]})]}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(qg,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.address")}),l.jsxs("div",{className:"text-base font-semibold leading-[1.4]",style:{color:"var(--kf-text2)"},children:[s,l.jsx("br",{}),[i,o].filter(Boolean).join(" ")]})]})]}),n&&l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(PE,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("nav.whatsapp")}),l.jsx("a",{href:jE(n),className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:n})]})]})]}),l.jsxs("div",{className:"mt-7 border-t pt-6",style:{borderColor:"var(--kf-divider)"},children:[l.jsx("div",{className:"mb-3 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.hours")}),l.jsx("div",{className:"grid grid-cols-[auto_1fr] gap-x-6 gap-y-2 text-[15px]",children:w.map(C=>l.jsxs("span",{style:{display:"contents"},children:[l.jsx("span",{style:{color:"var(--kf-label)"},children:C.days}),l.jsx("span",{children:C.label})]},C.key))})]})]}),l.jsxs("div",{className:"relative overflow-hidden rounded-2xl border",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[d.external&&l.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"absolute left-3.5 top-3.5 z-10 inline-flex items-center gap-2 rounded-lg border px-3.5 py-2 text-[13px] font-semibold hover:border-[var(--kf-accent)]",style:{background:"var(--kf-pill)",borderColor:"var(--kf-pillbrd)",color:"var(--kf-text2)",boxShadow:"var(--kf-shadow2)"},children:[u("contactPage.mapOpenChip"),l.jsx(Ck,{className:"h-3.5 w-3.5",style:{color:"var(--kf-accent2)"}})]}),l.jsx(SE,{name:u("contactPage.mapEmbedName"),className:"h-[210px] w-full",children:l.jsx("div",{className:"h-[210px] overflow-hidden",children:l.jsx("iframe",{title:"HifiPlanet Amorbach – Standort",src:`https://www.google.com/maps?q=${h}&output=embed`,width:"100%",height:"290",style:{border:0,display:"block",marginTop:"-60px"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})}),l.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2.5 border-t px-4 py-4 text-[13px] font-bold uppercase tracking-[3px] hover:bg-[var(--kf-accentsoft)]",style:{borderColor:"var(--kf-divider)",color:"var(--kf-accent2)"},children:[u("contactPage.routePlan")," →"]})]})]})]}),l.jsx("div",{className:"mt-10 grid grid-cols-1 overflow-hidden rounded-2xl border min-[641px]:grid-cols-2 min-[901px]:grid-cols-4",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow2)"},children:E.map(C=>l.jsxs("div",{className:"flex items-center gap-4 border-b p-6 last:border-b-0 min-[641px]:border-b-0 min-[641px]:border-r min-[641px]:last:border-r-0",style:{borderColor:"var(--kf-divider)"},children:[l.jsx("div",{className:"flex h-[46px] w-[46px] flex-shrink-0 items-center justify-center rounded-full border-[1.5px]",style:{borderColor:"var(--kf-pkgbrd)",color:"var(--kf-accent2)"},children:l.jsx(TE,{path:CE[C.key],className:"h-[22px] w-[22px]"})}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[15px] font-bold",style:{color:"var(--kf-text)"},children:C.title}),l.jsx("div",{className:"mt-0.5 text-[13px]",style:{color:"var(--kf-muted)"},children:C.sub})]})]},C.key))})]})})}const Nu={audio:["mp3","wav","flac","m4a","aac","ogg","opus","aif","aiff","wma"],video:["mp4","mov","webm"],pdf:["pdf"],image:["jpg","jpeg","png","webp","gif"],archive:["zip","rar","7z"],document:["txt","rtf","doc","docx","xls","xlsx","odt","ods"]},wN=Object.values(Nu).flat(),NE=["mp3","wav","flac","m4a","aac","ogg","opus"],ud=e=>{const t=(e||"").lastIndexOf(".");return t===-1?"":e.slice(t+1).toLowerCase()},_E=e=>{const t=ud(e);return Object.keys(Nu).find(n=>Nu[n].includes(t))||"document"},ME=e=>NE.includes(ud(e)),LE=(e,t="de-DE")=>{const n=["B","KB","MB","GB"];let r=Number(e)||0,s=0;for(;r>=1024&&s=2?1:0}).format(r)} ${n[s]}`},AE={audio:Zk,video:Ak,pdf:Mf,image:Mk,archive:Nk,document:Mf},_u="hifi-downloads-password",DE=()=>{try{return localStorage.getItem(_u)||""}catch{return""}},vm=e=>{try{e?localStorage.setItem(_u,e):localStorage.removeItem(_u)}catch{}},wm=e=>Z.get("/downloads",e?{headers:{"X-Download-Password":encodeURIComponent(e)}}:void 0);function RE(){const[e,t]=x.useState(null),[n,r]=x.useState(!1),[s,i]=x.useState(""),[o,a]=x.useState(!1),[u,c]=x.useState(!1),[d,f]=x.useState(""),{t:h,language:p}=Ce();x.useEffect(()=>{const v=DE();wm(v).then(k=>{k.locked?(v&&vm(""),r(!0)):t(k.items)}).catch(k=>f(k.message))},[]);const w=async v=>{v.preventDefault(),c(!0),a(!1);try{const k=await wm(s);k.locked?a(!0):(vm(s),r(!1),t(k.items))}catch(k){f(k.message)}finally{c(!1)}};return st({title:h("downloadsPage.metaTitle"),description:h("downloadsPage.metaDescription"),path:"/downloads"}),l.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:h("downloadsPage.title")}),l.jsx("p",{className:"mb-10 max-w-2xl text-neutral-600 dark:text-neutral-300",children:h("downloadsPage.intro")}),d&&l.jsx("p",{className:"text-red-600",children:d}),!d&&!n&&e===null&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:h("downloadsPage.loading")}),(e==null?void 0:e.length)===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:h("downloadsPage.empty")}),n&&l.jsxs("form",{onSubmit:w,className:"max-w-md rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[l.jsx($k,{className:"h-5 w-5 text-brand-500","aria-hidden":"true"}),l.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:h("downloadsPage.lockedTitle")})]}),l.jsx("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:h("downloadsPage.lockedText")}),l.jsx("label",{htmlFor:"downloads-password",className:"sr-only",children:h("downloadsPage.passwordLabel")}),l.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[l.jsx("input",{id:"downloads-password",type:"password",required:!0,autoComplete:"off",value:s,onChange:v=>i(v.target.value),placeholder:h("downloadsPage.passwordLabel"),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm text-neutral-900 dark:border-neutral-700 dark:bg-neutral-950 dark:text-white"}),l.jsx("button",{type:"submit",disabled:u,className:"shrink-0 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:h(u?"downloadsPage.unlocking":"downloadsPage.unlock")})]}),o&&l.jsx("p",{className:"mt-2 text-sm text-red-600",role:"alert",children:h("downloadsPage.wrongPassword")})]}),l.jsx("div",{className:"space-y-4",children:e==null?void 0:e.map((v,k)=>{const g=AE[_E(v.file_name)];return l.jsx(Se,{index:k%4,className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:l.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start",children:[l.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-brand-500/10 text-brand-600 dark:text-brand-400",children:l.jsx(g,{className:"h-6 w-6","aria-hidden":"true"})}),l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:v.title}),v.description&&l.jsx("p",{className:"mt-1 whitespace-pre-line text-sm text-neutral-600 dark:text-neutral-300",children:v.description}),l.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:[ud(v.file_name).toUpperCase()," · ",LE(v.file_size,p==="de"?"de-DE":"en-US")]}),ME(v.file_name)&&l.jsx("audio",{controls:!0,preload:"none",src:v.file_path,className:"mt-3 w-full"})]}),l.jsxs("a",{href:v.file_path,download:v.file_name,className:"inline-flex shrink-0 items-center justify-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:[l.jsx(Pk,{className:"h-4 w-4","aria-hidden":"true"}),h("downloadsPage.download")]})]})},v.id)})})]})}function IE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/impressum").then(t).catch(()=>{})},[]),st({title:(e==null?void 0:e.title)||"Impressum",description:"Impressum von HifiPlanet Amorbach gemäß § 5 DDG.",path:"/impressum"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}function VE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/datenschutz").then(t).catch(()=>{})},[]),st({title:(e==null?void 0:e.title)||"Datenschutzerklärung",description:"Datenschutzerklärung von HifiPlanet Amorbach gemäß Art. 13 DSGVO.",path:"/datenschutz"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}function OE(){const[e,t]=x.useState(null);return x.useEffect(()=>{Z.get("/legal-pages/agb").then(t).catch(()=>{})},[]),st({title:(e==null?void 0:e.title)||"AGB",description:"Allgemeine Geschäftsbedingungen von HifiPlanet Amorbach.",path:"/agb"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}const Ja="hifi-chunk-reload",ne=e=>x.lazy(()=>e().then(t=>{try{sessionStorage.removeItem(Ja)}catch{}return t},t=>{let n=!0;try{n=!!sessionStorage.getItem(Ja),sessionStorage.setItem(Ja,"1")}catch{}if(n)throw t;return window.location.reload(),new Promise(()=>{})})),FE=ne(()=>ee(()=>import("./SetupWizard-Dp_SZURq.js"),[])),zE=ne(()=>ee(()=>import("./Login-B4YL4ltB.js"),[])),BE=ne(()=>ee(()=>import("./Dashboard-bbSgJcnm.js"),[])),$E=ne(()=>ee(()=>import("./Brands-C6eVwhOd.js"),__vite__mapDeps([3,4,5]))),HE=ne(()=>ee(()=>import("./Models-CwWP_c2v.js"),__vite__mapDeps([6,4,5]))),WE=ne(()=>ee(()=>import("./GalleryBrands-DeSW9tLo.js"),__vite__mapDeps([7,4]))),UE=ne(()=>ee(()=>import("./GalleryProjects-DrxLi25V.js"),__vite__mapDeps([8,4]))),GE=ne(()=>ee(()=>import("./GalleryPhotos-Cx15BFfB.js"),[])),KE=ne(()=>ee(()=>import("./Packages-By73LRCs.js"),__vite__mapDeps([9,5,2,1]))),XE=ne(()=>ee(()=>import("./Services-Dnq8KYw0.js"),__vite__mapDeps([10,4,0,1,2]))),YE=ne(()=>ee(()=>import("./Faqs-Bl6JUAuu.js"),[])),qE=ne(()=>ee(()=>import("./Partners-D1IaNCA2.js"),__vite__mapDeps([11,4]))),QE=ne(()=>ee(()=>import("./Downloads-B-dRPpYw.js"),__vite__mapDeps([12,1]))),ZE=ne(()=>ee(()=>import("./HomeSections-Du6kmhHi.js"),__vite__mapDeps([13,14,5]))),JE=ne(()=>ee(()=>import("./ContactRequests-BvNwUpVJ.js"),[])),eN=ne(()=>ee(()=>import("./AccountSettings-BMihbnHe.js"),[])),tN=ne(()=>ee(()=>import("./AdminUsers-9iDwQGfx.js"),[])),nN=ne(()=>ee(()=>import("./PermissionGroups-DjFgNp_l.js"),[])),rN=ne(()=>ee(()=>import("./SettingsLayout-NML5nqk_.js"),[])),sN=ne(()=>ee(()=>import("./WebsiteSettings-BwL06xkK.js"),__vite__mapDeps([15,4]))),iN=ne(()=>ee(()=>import("./LegalSettings-DAfuQqrY.js"),__vite__mapDeps([16,14]))),oN=ne(()=>ee(()=>import("./UpdateSettings-9sbkjR1K.js"),[])),aN=ne(()=>ee(()=>import("./EmailSettings-Bbqu3Noj.js"),__vite__mapDeps([17,14]))),lN=ne(()=>ee(()=>import("./DatabaseSettings-BLcZKDfK.js"),[])),uN=ne(()=>ee(()=>import("./ExportImportSettings-DGzBdtyq.js"),[])),cN=ne(()=>ee(()=>import("./MaintenanceSettings-DfLGBunE.js"),[])),dN=ne(()=>ee(()=>import("./ResetSettings-B4htaA5Y.js"),[])),fN=l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});function hN(){const{packageId:e}=$s();return l.jsx(Ls,{to:`/admin/packages?paket=${e}`,replace:!0})}function mN(){return l.jsxs(l.Fragment,{children:[l.jsx($w,{}),l.jsx(Uw,{}),l.jsx(qw,{children:l.jsx(x.Suspense,{fallback:fN,children:l.jsxs(Sw,{children:[l.jsx(z,{path:"/setup",element:l.jsx(FE,{})}),l.jsxs(z,{element:l.jsx(EC,{}),children:[l.jsx(z,{path:"/",element:l.jsx(YC,{})}),l.jsx(z,{path:"/fahrzeuge",element:l.jsx(qC,{})}),l.jsx(z,{path:"/fahrzeuge/:brandSlug",element:l.jsx(QC,{})}),l.jsx(z,{path:"/fahrzeuge/:brandSlug/:modelSlug",element:l.jsx(mE,{})}),l.jsx(z,{path:"/galerie",element:l.jsx(pE,{})}),l.jsx(z,{path:"/galerie/:brandSlug",element:l.jsx(gE,{})}),l.jsx(z,{path:"/galerie/:brandSlug/:projectSlug",element:l.jsx(yE,{})}),l.jsx(z,{path:"/leistungen",element:l.jsx(bE,{})}),l.jsx(z,{path:"/kontakt",element:l.jsx(EE,{})}),l.jsx(z,{path:"/downloads",element:l.jsx(RE,{})}),l.jsx(z,{path:"/impressum",element:l.jsx(IE,{})}),l.jsx(z,{path:"/datenschutz",element:l.jsx(VE,{})}),l.jsx(z,{path:"/agb",element:l.jsx(OE,{})})]}),l.jsx(z,{path:"/admin/login",element:l.jsx(zE,{})}),l.jsx(z,{path:"/admin",element:l.jsx(LC,{}),children:l.jsxs(z,{element:l.jsx(MC,{}),children:[l.jsx(z,{index:!0,element:l.jsx(BE,{})}),l.jsx(z,{path:"account",element:l.jsx(eN,{})}),l.jsx(z,{path:"brands",element:l.jsx(De,{permission:"brands.manage",children:l.jsx($E,{})})}),l.jsx(z,{path:"models",element:l.jsx(De,{permission:"models.manage",children:l.jsx(HE,{})})}),l.jsx(z,{path:"gallery-brands",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(WE,{})})}),l.jsx(z,{path:"gallery-projects",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(UE,{})})}),l.jsx(z,{path:"gallery-projects/:projectId/photos",element:l.jsx(De,{permission:"gallery.manage",children:l.jsx(GE,{})})}),l.jsx(z,{path:"packages",element:l.jsx(De,{permission:"packages.manage",children:l.jsx(KE,{})})}),l.jsx(z,{path:"packages/:packageId/*",element:l.jsx(hN,{})}),l.jsx(z,{path:"services",element:l.jsx(De,{permission:"services.manage",children:l.jsx(XE,{})})}),l.jsx(z,{path:"faqs",element:l.jsx(De,{permission:"content.manage",children:l.jsx(YE,{})})}),l.jsx(z,{path:"partners",element:l.jsx(De,{permission:"content.manage",children:l.jsx(qE,{})})}),l.jsx(z,{path:"downloads",element:l.jsx(De,{permission:"downloads.manage",children:l.jsx(QE,{})})}),l.jsx(z,{path:"home-sections",element:l.jsx(De,{permission:"content.manage",children:l.jsx(ZE,{})})}),l.jsx(z,{path:"contact-requests",element:l.jsx(De,{permission:"contact.manage",children:l.jsx(JE,{})})}),l.jsx(z,{path:"users",element:l.jsx(De,{permission:"users.manage",children:l.jsx(tN,{})})}),l.jsx(z,{path:"permission-groups",element:l.jsx(De,{permission:"permission_groups.manage",children:l.jsx(nN,{})})}),l.jsxs(z,{path:"settings",element:l.jsx(De,{permission:"settings.manage",children:l.jsx(rN,{})}),children:[l.jsx(z,{index:!0,element:l.jsx(Ls,{to:"website",replace:!0})}),l.jsx(z,{path:"website",element:l.jsx(sN,{})}),l.jsx(z,{path:"legal",element:l.jsx(iN,{})}),l.jsx(z,{path:"email",element:l.jsx(aN,{})}),l.jsx(z,{path:"database",element:l.jsx(lN,{})}),l.jsx(z,{path:"export-import",element:l.jsx(uN,{})}),l.jsx(z,{path:"maintenance",element:l.jsx(cN,{})}),l.jsx(z,{path:"update",element:l.jsx(De,{permission:"system.update",children:l.jsx(oN,{})})}),l.jsx(z,{path:"reset",element:l.jsx(dN,{})})]})]})})]})})})]})}el.createRoot(document.getElementById("root")).render(l.jsx(Lm.StrictMode,{children:l.jsx(Lw,{basename:"/".replace(/\/$/,"")||"/",children:l.jsx(vb,{children:l.jsx(jb,{children:l.jsx(Lb,{children:l.jsx(mN,{})})})})})}));export{qk as $,wN as A,rk as B,wk as C,kE as D,ck as E,mk as F,yk as G,Yg as H,Sk as I,Pk as J,Ck as K,U as L,Nk as M,Ls as N,Ec as O,Mk as P,Ak as Q,Lm as R,Mf as S,Ik as T,Ok as U,zk as V,$k as W,Wk as X,Lf as Y,qg as Z,Xk as _,Z as a,Zk as a0,eb as a1,nb as a2,yo as a3,ib as a4,ab as a5,ub as a6,db as a7,hb as a8,pb as a9,xb as aa,tk as ab,gN as ac,ek as ad,Hs as b,Yo as c,tu as d,$s as e,Go as f,Ow as g,fk as h,gk as i,l as j,LE as k,dm as l,Gw as m,vN as n,No as o,Rw as p,Zx as q,x as r,yN as s,km as t,st as u,pN as v,G as w,Xg as x,ik as y,lk as z}; diff --git a/hifi/assets/index-DM5dAVp5.js b/hifi/assets/index-DM5dAVp5.js new file mode 100644 index 0000000..1c16f48 --- /dev/null +++ b/hifi/assets/index-DM5dAVp5.js @@ -0,0 +1,303 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/iconRegistry-BJRytynd.js","assets/eye-CZFeBsZS.js","assets/trash-2-CQGOvKRj.js","assets/Brands-iEolLqPk.js","assets/ImageUploadField-oqjVVSSG.js","assets/TextStyleWidget-CkwixV2h.js","assets/Models-Dd9dRX1L.js","assets/GalleryBrands-BKk_jSpw.js","assets/GalleryProjects-6TCFmGT7.js","assets/Packages-DAaVovhO.js","assets/Services-D3kYNcAF.js","assets/Partners-DL_4PdP7.js","assets/Downloads-4-kfkPkq.js","assets/HomeSections-BBMip_Nb.js","assets/RichTextEditor-DTscIhNf.js","assets/WebsiteSettings-Yhbh_5yo.js","assets/LegalSettings-DGN-Kl_a.js","assets/EmailSettings-DixrL0D8.js"])))=>i.map(i=>d[i]); +function ax(e,t){for(var n=0;nr[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function Sm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jm={exports:{}},_o={},Pm={exports:{}},G={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Vs=Symbol.for("react.element"),lx=Symbol.for("react.portal"),ux=Symbol.for("react.fragment"),cx=Symbol.for("react.strict_mode"),dx=Symbol.for("react.profiler"),fx=Symbol.for("react.provider"),hx=Symbol.for("react.context"),mx=Symbol.for("react.forward_ref"),px=Symbol.for("react.suspense"),gx=Symbol.for("react.memo"),yx=Symbol.for("react.lazy"),fd=Symbol.iterator;function xx(e){return e===null||typeof e!="object"?null:(e=fd&&e[fd]||e["@@iterator"],typeof e=="function"?e:null)}var Tm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cm=Object.assign,Em={};function Er(e,t,n){this.props=e,this.context=t,this.refs=Em,this.updater=n||Tm}Er.prototype.isReactComponent={};Er.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nm(){}Nm.prototype=Er.prototype;function Mu(e,t,n){this.props=e,this.context=t,this.refs=Em,this.updater=n||Tm}var Lu=Mu.prototype=new Nm;Lu.constructor=Mu;Cm(Lu,Er.prototype);Lu.isPureReactComponent=!0;var hd=Array.isArray,_m=Object.prototype.hasOwnProperty,Au={current:null},Mm={key:!0,ref:!0,__self:!0,__source:!0};function Lm(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)_m.call(t,r)&&!Mm.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1>>1,q=E[z];if(0>>1;zs(Ve,A))Rs(O,Ve)?(E[z]=O,E[R]=A,z=R):(E[z]=Ve,E[Q]=A,z=Q);else if(Rs(O,A))E[z]=O,E[R]=A,z=R;else break e}}return T}function s(E,T){var A=E.sortIndex-T.sortIndex;return A!==0?A:E.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],d=1,f=null,h=3,x=!1,w=!1,y=!1,k=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(E){for(var T=n(c);T!==null;){if(T.callback===null)r(c);else if(T.startTime<=E)r(c),T.sortIndex=T.expirationTime,t(u,T);else break;T=n(c)}}function b(E){if(y=!1,v(E),!w)if(n(u)!==null)w=!0,$(P);else{var T=n(c);T!==null&&K(b,T.startTime-E)}}function P(E,T){w=!1,y&&(y=!1,p(j),j=-1),x=!0;var A=h;try{for(v(T),f=n(u);f!==null&&(!(f.expirationTime>T)||E&&!F());){var z=f.callback;if(typeof z=="function"){f.callback=null,h=f.priorityLevel;var q=z(f.expirationTime<=T);T=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(u)&&r(u),v(T)}else r(u);f=n(u)}if(f!==null)var Ce=!0;else{var Q=n(c);Q!==null&&K(b,Q.startTime-T),Ce=!1}return Ce}finally{f=null,h=A,x=!1}}var C=!1,S=null,j=-1,L=5,_=-1;function F(){return!(e.unstable_now()-_E||125z?(E.sortIndex=A,t(c,E),n(u)===null&&E===n(c)&&(y?(p(j),j=-1):y=!0,K(b,A-z))):(E.sortIndex=q,t(u,E),w||x||(w=!0,$(P))),E},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(E){var T=h;return function(){var A=h;h=T;try{return E.apply(this,arguments)}finally{h=A}}}})(Om);Vm.exports=Om;var _x=Vm.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Mx=g,et=_x;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tl=Object.prototype.hasOwnProperty,Lx=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pd={},gd={};function Ax(e){return tl.call(gd,e)?!0:tl.call(pd,e)?!1:Lx.test(e)?gd[e]=!0:(pd[e]=!0,!1)}function Dx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rx(e,t,n,r){if(t===null||typeof t>"u"||Dx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function He(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var _e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_e[e]=new He(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_e[t]=new He(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_e[e]=new He(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_e[e]=new He(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_e[e]=new He(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_e[e]=new He(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_e[e]=new He(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_e[e]=new He(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_e[e]=new He(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ru=/[\-:]([a-z])/g;function Iu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ru,Iu);_e[t]=new He(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ru,Iu);_e[t]=new He(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ru,Iu);_e[t]=new He(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_e[e]=new He(e,1,!1,e.toLowerCase(),null,!1,!1)});_e.xlinkHref=new He("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_e[e]=new He(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vu(e,t,n,r){var s=_e.hasOwnProperty(t)?_e[t]:null;(s!==null?s.type!==0:r||!(2a||s[o]!==i[a]){var u=` +`+s[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{ia=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Kr(e):""}function Ix(e){switch(e.tag){case 5:return Kr(e.type);case 16:return Kr("Lazy");case 13:return Kr("Suspense");case 19:return Kr("SuspenseList");case 0:case 2:case 15:return e=oa(e.type,!1),e;case 11:return e=oa(e.type.render,!1),e;case 1:return e=oa(e.type,!0),e;default:return""}}function il(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yn:return"Fragment";case Xn:return"Portal";case nl:return"Profiler";case Ou:return"StrictMode";case rl:return"Suspense";case sl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bm:return(e.displayName||"Context")+".Consumer";case zm:return(e._context.displayName||"Context")+".Provider";case Fu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zu:return t=e.displayName||null,t!==null?t:il(e.type)||"Memo";case Qt:t=e._payload,e=e._init;try{return il(e(t))}catch{}}return null}function Vx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return il(t);case 8:return t===Ou?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ox(e){var t=Hm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ti(e){e._valueTracker||(e._valueTracker=Ox(e))}function Wm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Hm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ui(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ol(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Um(e,t){t=t.checked,t!=null&&Vu(e,"checked",t,!1)}function al(e,t){Um(e,t);var n=gn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&ll(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ll(e,t,n){(t!=="number"||Ui(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Xr=Array.isArray;function cr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=ni.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ps(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fx=["Webkit","ms","Moz","O"];Object.keys(Jr).forEach(function(e){Fx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jr[t]=Jr[e]})});function Ym(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jr.hasOwnProperty(e)&&Jr[e]?(""+t).trim():t+"px"}function qm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Ym(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var zx=de({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dl(e,t){if(t){if(zx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function fl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hl=null;function Bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,dr=null,fr=null;function bd(e){if(e=zs(e)){if(typeof ml!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Ro(t),ml(e.stateNode,e.type,t))}}function Qm(e){dr?fr?fr.push(e):fr=[e]:dr=e}function Zm(){if(dr){var e=dr,t=fr;if(fr=dr=null,bd(e),t)for(e=0;e>>=0,e===0?32:31-(Qx(e)/Zx|0)|0}var ri=64,si=4194304;function Yr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Yi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Yr(a):(i&=o,i!==0&&(r=Yr(i)))}else o=n&~s,o!==0?r=Yr(o):i!==0&&(r=Yr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Os(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=n}function nv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ts),Md=" ",Ld=!1;function xp(e,t){switch(e){case"keyup":return _v.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function Lv(e,t){switch(e){case"compositionend":return vp(t);case"keypress":return t.which!==32?null:(Ld=!0,Md);case"textInput":return e=t.data,e===Md&&Ld?null:e;default:return null}}function Av(e,t){if(qn)return e==="compositionend"||!Yu&&xp(e,t)?(e=gp(),Ci=Gu=nn=null,qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Id(n)}}function Sp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jp(){for(var e=window,t=Ui();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ui(e.document)}return t}function qu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $v(e){var t=jp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sp(n.ownerDocument.documentElement,n)){if(r!==null&&qu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Vd(n,i);var o=Vd(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Qn=null,wl=null,rs=null,kl=!1;function Od(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kl||Qn==null||Qn!==Ui(r)||(r=Qn,"selectionStart"in r&&qu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),rs&&ks(rs,r)||(rs=r,r=Zi(wl,"onSelect"),0er||(e.current=Cl[er],Cl[er]=null,er--)}function se(e,t){er++,Cl[er]=e.current,e.current=t}var yn={},Ie=kn(yn),Ge=kn(!1),Vn=yn;function yr(e,t){var n=e.type.contextTypes;if(!n)return yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ke(e){return e=e.childContextTypes,e!=null}function eo(){oe(Ge),oe(Ie)}function Ud(e,t,n){if(Ie.current!==yn)throw Error(M(168));se(Ie,t),se(Ge,n)}function Ap(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(M(108,Vx(e)||"Unknown",s));return de({},n,r)}function to(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yn,Vn=Ie.current,se(Ie,e),se(Ge,Ge.current),!0}function Gd(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Ap(e,t,Vn),r.__reactInternalMemoizedMergedChildContext=e,oe(Ge),oe(Ie),se(Ie,e)):oe(Ge),se(Ge,n)}var Ot=null,Io=!1,wa=!1;function Dp(e){Ot===null?Ot=[e]:Ot.push(e)}function e1(e){Io=!0,Dp(e)}function bn(){if(!wa&&Ot!==null){wa=!0;var e=0,t=J;try{var n=Ot;for(J=1;e>=o,s-=o,Ft=1<<32-kt(t)+s|n<j?(L=S,S=null):L=S.sibling;var _=h(p,S,v[j],b);if(_===null){S===null&&(S=L);break}e&&S&&_.alternate===null&&t(p,S),m=i(_,m,j),C===null?P=_:C.sibling=_,C=_,S=L}if(j===v.length)return n(p,S),ae&&Pn(p,j),P;if(S===null){for(;jj?(L=S,S=null):L=S.sibling;var F=h(p,S,_.value,b);if(F===null){S===null&&(S=L);break}e&&S&&F.alternate===null&&t(p,S),m=i(F,m,j),C===null?P=F:C.sibling=F,C=F,S=L}if(_.done)return n(p,S),ae&&Pn(p,j),P;if(S===null){for(;!_.done;j++,_=v.next())_=f(p,_.value,b),_!==null&&(m=i(_,m,j),C===null?P=_:C.sibling=_,C=_);return ae&&Pn(p,j),P}for(S=r(p,S);!_.done;j++,_=v.next())_=x(S,p,j,_.value,b),_!==null&&(e&&_.alternate!==null&&S.delete(_.key===null?j:_.key),m=i(_,m,j),C===null?P=_:C.sibling=_,C=_);return e&&S.forEach(function(H){return t(p,H)}),ae&&Pn(p,j),P}function k(p,m,v,b){if(typeof v=="object"&&v!==null&&v.type===Yn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ei:e:{for(var P=v.key,C=m;C!==null;){if(C.key===P){if(P=v.type,P===Yn){if(C.tag===7){n(p,C.sibling),m=s(C,v.props.children),m.return=p,p=m;break e}}else if(C.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Qt&&Yd(P)===C.type){n(p,C.sibling),m=s(C,v.props),m.ref=$r(p,C,v),m.return=p,p=m;break e}n(p,C);break}else t(p,C);C=C.sibling}v.type===Yn?(m=Dn(v.props.children,p.mode,b,v.key),m.return=p,p=m):(b=Ri(v.type,v.key,v.props,null,p.mode,b),b.ref=$r(p,m,v),b.return=p,p=b)}return o(p);case Xn:e:{for(C=v.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(p,m.sibling),m=s(m,v.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=Ea(v,p.mode,b),m.return=p,p=m}return o(p);case Qt:return C=v._init,k(p,m,C(v._payload),b)}if(Xr(v))return w(p,m,v,b);if(Vr(v))return y(p,m,v,b);di(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(p,m.sibling),m=s(m,v),m.return=p,p=m):(n(p,m),m=Ca(v,p.mode,b),m.return=p,p=m),o(p)):n(p,m)}return k}var vr=Op(!0),Fp=Op(!1),so=kn(null),io=null,rr=null,ec=null;function tc(){ec=rr=io=null}function nc(e){var t=so.current;oe(so),e._currentValue=t}function _l(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function mr(e,t){io=e,ec=rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ue=!0),e.firstContext=null)}function ct(e){var t=e._currentValue;if(ec!==e)if(e={context:e,memoizedValue:t,next:null},rr===null){if(io===null)throw Error(M(308));rr=e,io.dependencies={lanes:0,firstContext:e}}else rr=rr.next=e;return t}var Nn=null;function rc(e){Nn===null?Nn=[e]:Nn.push(e)}function zp(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,rc(t)):(n.next=s.next,s.next=n),t.interleaved=n,Ut(e,r)}function Ut(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Zt=!1;function sc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $t(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Y&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Ut(e,n)}return s=r.interleaved,s===null?(t.next=t,rc(r)):(t.next=s.next,s.next=t),r.interleaved=t,Ut(e,n)}function Ni(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hu(e,n)}}function qd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function oo(e,t,n,r){var s=e.updateQueue;Zt=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var u=a,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(i!==null){var f=s.baseState;o=0,d=c=u=null,a=i;do{var h=a.lane,x=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,y=a;switch(h=t,x=n,y.tag){case 1:if(w=y.payload,typeof w=="function"){f=w.call(x,f,h);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=y.payload,h=typeof w=="function"?w.call(x,f,h):w,h==null)break e;f=de({},f,h);break e;case 2:Zt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else x={eventTime:x,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=x,u=f):d=d.next=x,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(u=f),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);zn|=o,e.lanes=o,e.memoizedState=f}}function Qd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ba.transition;ba.transition={};try{e(!1),t()}finally{J=n,ba.transition=r}}function sg(){return dt().memoizedState}function s1(e,t,n){var r=hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ig(e))og(t,n);else if(n=zp(e,t,n,r),n!==null){var s=Be();bt(n,e,r,s),ag(n,t,r)}}function i1(e,t,n){var r=hn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ig(e))og(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,jt(a,o)){var u=t.interleaved;u===null?(s.next=s,rc(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=zp(e,t,s,r),n!==null&&(s=Be(),bt(n,e,r,s),ag(n,t,r))}}function ig(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function og(e,t){ss=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ag(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hu(e,n)}}var uo={readContext:ct,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},o1={readContext:ct,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Jd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mi(4194308,4,Jp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var n=Ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=s1.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:Zd,useDebugValue:fc,useDeferredValue:function(e){return Ct().memoizedState=e},useTransition:function(){var e=Zd(!1),t=e[0];return e=r1.bind(null,e[1]),Ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,s=Ct();if(ae){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Pe===null)throw Error(M(349));Fn&30||Up(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Jd(Kp.bind(null,r,i,e),[e]),r.flags|=2048,Ns(9,Gp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ct(),t=Pe.identifierPrefix;if(ae){var n=zt,r=Ft;n=(r&~(1<<32-kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Cs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[_t]=t,e[js]=r,yg(e,t,!1,!1),t.stateNode=e;e:{switch(o=fl(n,r),n){case"dialog":ie("cancel",e),ie("close",e),s=r;break;case"iframe":case"object":case"embed":ie("load",e),s=r;break;case"video":case"audio":for(s=0;sbr&&(t.flags|=128,r=!0,Hr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ao(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ae)return Le(t),null}else 2*pe()-i.renderingStartTime>br&&n!==1073741824&&(t.flags|=128,r=!0,Hr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=le.current,se(le,r?n&1|2:n&1),t):(Le(t),null);case 22:case 23:return xc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qe&1073741824&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function m1(e,t){switch(Zu(t),t.tag){case 1:return Ke(t.type)&&eo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),oe(Ge),oe(Ie),ac(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oc(t),null;case 13:if(oe(le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(le),null;case 4:return wr(),null;case 10:return nc(t.type._context),null;case 22:case 23:return xc(),null;case 24:return null;default:return null}}var hi=!1,Re=!1,p1=typeof WeakSet=="function"?WeakSet:Set,I=null;function sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){he(e,t,r)}else n.current=null}function Fl(e,t,n){try{n()}catch(r){he(e,t,r)}}var df=!1;function g1(e,t){if(bl=qi,e=jp(),qu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var x;f!==n||s!==0&&f.nodeType!==3||(a=o+s),f!==i||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(x=f.firstChild)!==null;)h=f,f=x;for(;;){if(f===e)break t;if(h===n&&++c===s&&(a=o),h===i&&++d===r&&(u=o),(x=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=x}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sl={focusedElem:e,selectionRange:n},qi=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var y=w.memoizedProps,k=w.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:yt(t.type,y),k);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(b){he(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return w=df,df=!1,w}function is(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Fl(t,n,i)}s=s.next}while(s!==r)}}function Fo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function zl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function wg(e){var t=e.alternate;t!==null&&(e.alternate=null,wg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[js],delete t[Tl],delete t[Zv],delete t[Jv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kg(e){return e.tag===5||e.tag===3||e.tag===4}function ff(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ji));else if(r!==4&&(e=e.child,e!==null))for(Bl(e,t,n),e=e.sibling;e!==null;)Bl(e,t,n),e=e.sibling}function $l(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for($l(e,t,n),e=e.sibling;e!==null;)$l(e,t,n),e=e.sibling}var Ee=null,xt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)bg(e,t,n),n=n.sibling}function bg(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(Mo,n)}catch{}switch(n.tag){case 5:Re||sr(n,t);case 6:var r=Ee,s=xt;Ee=null,Yt(e,t,n),Ee=r,xt=s,Ee!==null&&(xt?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(xt?(e=Ee,n=n.stateNode,e.nodeType===8?va(e.parentNode,n):e.nodeType===1&&va(e,n),vs(e)):va(Ee,n.stateNode));break;case 4:r=Ee,s=xt,Ee=n.stateNode.containerInfo,xt=!0,Yt(e,t,n),Ee=r,xt=s;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Fl(n,t,o),s=s.next}while(s!==r)}Yt(e,t,n);break;case 1:if(!Re&&(sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){he(n,t,a)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,Yt(e,t,n),Re=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function hf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new p1),t.forEach(function(r){var s=P1.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rs&&(s=o),r&=~i}if(r=s,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*x1(r/1960))-r,10e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,ho=0,Y&6)throw Error(M(331));var s=Y;for(Y|=4,I=e.current;I!==null;){var i=I,o=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var u=0;upe()-gc?An(e,0):pc|=n),Xe(e,t)}function _g(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=Be();e=Ut(e,t),e!==null&&(Os(e,t,n),Xe(e,n))}function j1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_g(e,n)}function P1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),_g(e,n)}var Mg;Mg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ge.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,f1(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,ae&&t.flags&1048576&&Rp(t,ro,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Li(e,t),e=t.pendingProps;var s=yr(t,Ie.current);mr(t,n),s=uc(null,t,r,e,s,n);var i=cc();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(i=!0,to(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,sc(t),s.updater=Oo,t.stateNode=s,s._reactInternals=t,Ll(t,r,e,n),t=Rl(null,t,r,!0,i,n)):(t.tag=0,ae&&i&&Qu(t),Oe(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Li(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=C1(r),e=yt(r,e),s){case 0:t=Dl(null,t,r,e,n);break e;case 1:t=lf(null,t,r,e,n);break e;case 11:t=of(null,t,r,e,n);break e;case 14:t=af(null,t,r,yt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),Dl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),lf(e,t,r,s,n);case 3:e:{if(mg(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Bp(e,t),oo(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=kr(Error(M(423)),t),t=uf(e,t,r,n,s);break e}else if(r!==s){s=kr(Error(M(424)),t),t=uf(e,t,r,n,s);break e}else for(Qe=cn(t.stateNode.containerInfo.firstChild),Ze=t,ae=!0,vt=null,n=Fp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xr(),r===s){t=Gt(e,t,n);break e}Oe(e,t,r,n)}t=t.child}return t;case 5:return $p(t),e===null&&Nl(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,jl(r,s)?o=null:i!==null&&jl(r,i)&&(t.flags|=32),hg(e,t),Oe(e,t,o,n),t.child;case 6:return e===null&&Nl(t),null;case 13:return pg(e,t,n);case 4:return ic(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vr(t,null,r,n):Oe(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),of(e,t,r,s,n);case 7:return Oe(e,t,t.pendingProps,n),t.child;case 8:return Oe(e,t,t.pendingProps.children,n),t.child;case 12:return Oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,se(so,r._currentValue),r._currentValue=o,i!==null)if(jt(i.value,o)){if(i.children===s.children&&!Ge.current){t=Gt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=$t(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),_l(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(M(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),_l(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Oe(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,mr(t,n),s=ct(s),r=r(s),t.flags|=1,Oe(e,t,r,n),t.child;case 14:return r=t.type,s=yt(r,t.pendingProps),s=yt(r.type,s),af(e,t,r,s,n);case 15:return dg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:yt(r,s),Li(e,t),t.tag=1,Ke(r)?(e=!0,to(t)):e=!1,mr(t,n),lg(t,r,s),Ll(t,r,s,n),Rl(null,t,r,!0,e,n);case 19:return gg(e,t,n);case 22:return fg(e,t,n)}throw Error(M(156,t.tag))};function Lg(e,t){return ip(e,t)}function T1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function at(e,t,n,r){return new T1(e,t,n,r)}function wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C1(e){if(typeof e=="function")return wc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fu)return 11;if(e===zu)return 14}return 2}function mn(e,t){var n=e.alternate;return n===null?(n=at(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ri(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")wc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yn:return Dn(n.children,s,i,t);case Ou:o=8,s|=8;break;case nl:return e=at(12,n,t,s|2),e.elementType=nl,e.lanes=i,e;case rl:return e=at(13,n,t,s),e.elementType=rl,e.lanes=i,e;case sl:return e=at(19,n,t,s),e.elementType=sl,e.lanes=i,e;case $m:return Bo(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zm:o=10;break e;case Bm:o=9;break e;case Fu:o=11;break e;case zu:o=14;break e;case Qt:o=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=at(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Dn(e,t,n,r){return e=at(7,e,r,t),e.lanes=n,e}function Bo(e,t,n,r){return e=at(22,e,r,t),e.elementType=$m,e.lanes=n,e.stateNode={isHidden:!1},e}function Ca(e,t,n){return e=at(6,e,null,t),e.lanes=n,e}function Ea(e,t,n){return t=at(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function E1(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=la(0),this.expirationTimes=la(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=la(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function kc(e,t,n,r,s,i,o,a,u){return e=new E1(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=at(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sc(i),e}function N1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ig)}catch(e){console.error(e)}}Ig(),Im.exports=tt;var Go=Im.exports;const wN=Sm(Go);var kf=Go;el.createRoot=kf.createRoot,el.hydrateRoot=kf.hydrateRoot;/** + * @remix-run/router v1.23.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Pc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function R1(){return Math.random().toString(36).substr(2,8)}function Sf(e,t){return{usr:e.state,key:e.key,idx:t}}function Kl(e,t,n,r){return n===void 0&&(n=null),Ms({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mr(t):t,{state:n,key:t&&t.key||r||R1()})}function go(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Mr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function I1(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=sn.Pop,u=null,c=d();c==null&&(c=0,o.replaceState(Ms({},o.state,{idx:c}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=sn.Pop;let k=d(),p=k==null?null:k-c;c=k,u&&u({action:a,location:y.location,delta:p})}function h(k,p){a=sn.Push;let m=Kl(y.location,k,p);c=d()+1;let v=Sf(m,c),b=y.createHref(m);try{o.pushState(v,"",b)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;s.location.assign(b)}i&&u&&u({action:a,location:y.location,delta:1})}function x(k,p){a=sn.Replace;let m=Kl(y.location,k,p);c=d();let v=Sf(m,c),b=y.createHref(m);o.replaceState(v,"",b),i&&u&&u({action:a,location:y.location,delta:0})}function w(k){let p=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof k=="string"?k:go(k);return m=m.replace(/ $/,"%20"),ce(p,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,p)}let y={get action(){return a},get location(){return e(s,o)},listen(k){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(bf,f),u=k,()=>{s.removeEventListener(bf,f),u=null}},createHref(k){return t(s,k)},createURL:w,encodeLocation(k){let p=w(k);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:h,replace:x,go(k){return o.go(k)}};return y}var jf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(jf||(jf={}));function V1(e,t,n){return n===void 0&&(n="/"),O1(e,t,n)}function O1(e,t,n,r){let s=typeof t=="string"?Mr(t):t,i=Sr(s.pathname||"/",n);if(i==null)return null;let o=Vg(e);F1(o);let a=null,u=q1(i);for(let c=0;a==null&&c{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&(ce(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=pn([r,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&(ce(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Vg(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:G1(c,i.index),routesMeta:d})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let u of Og(i.path))s(i,o,u)}),t}function Og(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=Og(r.join("/")),a=[];return a.push(...o.map(u=>u===""?i:[i,u].join("/"))),s&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function F1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:K1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const z1=/^:[\w-]+$/,B1=3,$1=2,H1=1,W1=10,U1=-2,Pf=e=>e==="*";function G1(e,t){let n=e.split("/"),r=n.length;return n.some(Pf)&&(r+=U1),t&&(r+=$1),n.filter(s=>!Pf(s)).reduce((s,i)=>s+(z1.test(i)?B1:i===""?H1:W1),r)}function K1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function X1(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a{let{paramName:h,isOptional:x}=d;if(h==="*"){let y=a[f]||"";o=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const w=a[f];return x&&!w?c[h]=void 0:c[h]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function Y1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Pc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function q1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Sr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Q1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Z1=e=>Q1.test(e);function J1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Mr(e):e,i;if(n)if(Z1(n))i=n;else{if(n.includes("//")){let o=n;n=Fg(n),Pc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=Tf(n.substring(1),"/"):i=Tf(n,t)}else i=t;return{pathname:i,search:nw(r),hash:rw(s)}}function Tf(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Na(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ew(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Tc(e,t){let n=ew(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Cc(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Mr(e):(s=Ms({},e),ce(!s.pathname||!s.pathname.includes("?"),Na("?","pathname","search",s)),ce(!s.pathname||!s.pathname.includes("#"),Na("#","pathname","hash",s)),ce(!s.search||!s.search.includes("#"),Na("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?t[f]:"/"}let u=J1(s,a),c=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const Fg=e=>e.replace(/\/\/+/g,"/"),pn=e=>Fg(e.join("/")),tw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const zg=["post","put","patch","delete"];new Set(zg);const iw=["get",...zg];new Set(iw);/** + * React Router v6.30.4 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),g.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=Cc(c,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:pn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}const lw=g.createContext(null);function uw(e){let t=g.useContext(Dt).outlet;return t&&g.createElement(lw.Provider,{value:e},t)}function $s(){let{matches:e}=g.useContext(Dt),t=e[e.length-1];return t?t.params:{}}function qo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=g.useContext(Xt),{matches:s}=g.useContext(Dt),{pathname:i}=rt(),o=JSON.stringify(Tc(s,r.v7_relativeSplatPath));return g.useMemo(()=>Cc(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function cw(e,t){return dw(e,t)}function dw(e,t,n,r){Lr()||ce(!1);let{navigator:s}=g.useContext(Xt),{matches:i}=g.useContext(Dt),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let c=rt(),d;if(t){var f;let k=typeof t=="string"?Mr(t):t;u==="/"||(f=k.pathname)!=null&&f.startsWith(u)||ce(!1),d=k}else d=c;let h=d.pathname||"/",x=h;if(u!=="/"){let k=u.replace(/^\//,"").split("/");x="/"+h.replace(/^\//,"").split("/").slice(k.length).join("/")}let w=V1(e,{pathname:x}),y=gw(w&&w.map(k=>Object.assign({},k,{params:Object.assign({},a,k.params),pathname:pn([u,s.encodeLocation?s.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?u:pn([u,s.encodeLocation?s.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),i,n,r);return t&&y?g.createElement(Xo.Provider,{value:{location:Ls({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:sn.Pop}},y):y}function fw(){let e=ww(),t=sw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:s},n):null,null)}const hw=g.createElement(fw,null);class mw extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?g.createElement(Dt.Provider,{value:this.props.routeContext},g.createElement($g.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pw(e){let{routeContext:t,match:n,children:r}=e,s=g.useContext(Ko);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(Dt.Provider,{value:t},r)}function gw(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||ce(!1),o=o.slice(0,Math.min(o.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let x,w=!1,y=null,k=null;n&&(x=a&&f.route.id?a[f.route.id]:void 0,y=f.route.errorElement||hw,u&&(c<0&&h===0?(bw("route-fallback"),w=!0,k=null):c===h&&(w=!0,k=f.route.hydrateFallbackElement||null)));let p=t.concat(o.slice(0,h+1)),m=()=>{let v;return x?v=y:w?v=k:f.route.Component?v=g.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=d,g.createElement(pw,{match:f,routeContext:{outlet:d,matches:p,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?g.createElement(mw,{location:n.location,revalidation:n.revalidation,component:y,error:x,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var Wg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Wg||{}),Ug=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ug||{});function yw(e){let t=g.useContext(Ko);return t||ce(!1),t}function xw(e){let t=g.useContext(Bg);return t||ce(!1),t}function vw(e){let t=g.useContext(Dt);return t||ce(!1),t}function Gg(e){let t=vw(),n=t.matches[t.matches.length-1];return n.route.id||ce(!1),n.route.id}function ww(){var e;let t=g.useContext($g),n=xw(),r=Gg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function kw(){let{router:e}=yw(Wg.UseNavigateStable),t=Gg(Ug.UseNavigateStable),n=g.useRef(!1);return Hg(()=>{n.current=!0}),g.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Ls({fromRouteId:t},i)))},[e,t])}const Cf={};function bw(e,t,n){Cf[e]||(Cf[e]=!0)}function Sw(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function jr(e){let{to:t,replace:n,state:r,relative:s}=e;Lr()||ce(!1);let{future:i,static:o}=g.useContext(Xt),{matches:a}=g.useContext(Dt),{pathname:u}=rt(),c=Yo(),d=Cc(t,Tc(a,i.v7_relativeSplatPath),u,s==="path"),f=JSON.stringify(d);return g.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:s}),[c,f,s,n,r]),null}function Ec(e){return uw(e.context)}function B(e){ce(!1)}function jw(e){let{basename:t="/",children:n=null,location:r,navigationType:s=sn.Pop,navigator:i,static:o=!1,future:a}=e;Lr()&&ce(!1);let u=t.replace(/^\/*/,"/"),c=g.useMemo(()=>({basename:u,navigator:i,static:o,future:Ls({v7_relativeSplatPath:!1},a)}),[u,a,i,o]);typeof r=="string"&&(r=Mr(r));let{pathname:d="/",search:f="",hash:h="",state:x=null,key:w="default"}=r,y=g.useMemo(()=>{let k=Sr(d,u);return k==null?null:{location:{pathname:k,search:f,hash:h,state:x,key:w},navigationType:s}},[u,d,f,h,x,w,s]);return y==null?null:g.createElement(Xt.Provider,{value:c},g.createElement(Xo.Provider,{children:n,value:y}))}function Pw(e){let{children:t,location:n}=e;return cw(Yl(t),n)}new Promise(()=>{});function Yl(e,t){t===void 0&&(t=[]);let n=[];return g.Children.forEach(e,(r,s)=>{if(!g.isValidElement(r))return;let i=[...t,s];if(r.type===g.Fragment){n.push.apply(n,Yl(r.props.children,i));return}r.type!==B&&ce(!1),!r.props.index||!r.props.children||ce(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Yl(r.props.children,i)),n.push(o)}),n}/** + * React Router DOM v6.30.4 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function Ew(e,t){let n=ql(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const Nw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_w=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Mw="6";try{window.__reactRouterVersion=Mw}catch{}const Lw=g.createContext({isTransitioning:!1}),Aw="startTransition",Ef=Sx[Aw];function Dw(e){let{basename:t,children:n,future:r,window:s}=e,i=g.useRef();i.current==null&&(i.current=D1({window:s,v5Compat:!0}));let o=i.current,[a,u]=g.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},d=g.useCallback(f=>{c&&Ef?Ef(()=>u(f)):u(f)},[u,c]);return g.useLayoutEffect(()=>o.listen(d),[o,d]),g.useEffect(()=>Sw(r),[r]),g.createElement(jw,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Rw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Iw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,W=g.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:u,to:c,preventScrollReset:d,viewTransition:f}=t,h=Kg(t,Nw),{basename:x}=g.useContext(Xt),w,y=!1;if(typeof c=="string"&&Iw.test(c)&&(w=c,Rw))try{let v=new URL(window.location.href),b=c.startsWith("//")?new URL(v.protocol+c):new URL(c),P=Sr(b.pathname,x);b.origin===v.origin&&P!=null?c=P+b.search+b.hash:y=!0}catch{}let k=ow(c,{relative:s}),p=Fw(c,{replace:o,state:a,target:u,preventScrollReset:d,relative:s,viewTransition:f});function m(v){r&&r(v),v.defaultPrevented||p(v)}return g.createElement("a",yo({},h,{href:w||k,onClick:y||i?r:m,ref:n,target:u}))}),Vw=g.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:i="",end:o=!1,style:a,to:u,viewTransition:c,children:d}=t,f=Kg(t,_w),h=qo(u,{relative:f.relative}),x=rt(),w=g.useContext(Bg),{navigator:y,basename:k}=g.useContext(Xt),p=w!=null&&Bw(h)&&c===!0,m=y.encodeLocation?y.encodeLocation(h).pathname:h.pathname,v=x.pathname,b=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;s||(v=v.toLowerCase(),b=b?b.toLowerCase():null,m=m.toLowerCase()),b&&k&&(b=Sr(b,k)||b);const P=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let C=v===m||!o&&v.startsWith(m)&&v.charAt(P)==="/",S=b!=null&&(b===m||!o&&b.startsWith(m)&&b.charAt(m.length)==="/"),j={isActive:C,isPending:S,isTransitioning:p},L=C?r:void 0,_;typeof i=="function"?_=i(j):_=[i,C?"active":null,S?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let F=typeof a=="function"?a(j):a;return g.createElement(W,yo({},f,{"aria-current":L,className:_,ref:n,style:F,to:u,viewTransition:c}),typeof d=="function"?d(j):d)});var Ql;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ql||(Ql={}));var Nf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Nf||(Nf={}));function Ow(e){let t=g.useContext(Ko);return t||ce(!1),t}function Fw(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,u=Yo(),c=rt(),d=qo(e,{relative:o});return g.useCallback(f=>{if(Cw(f,n)){f.preventDefault();let h=r!==void 0?r:go(c)===go(d);u(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[c,u,d,r,s,n,e,i,o,a])}function zw(e){let t=g.useRef(ql(e)),n=g.useRef(!1),r=rt(),s=g.useMemo(()=>Ew(r.search,n.current?null:t.current),[r.search]),i=Yo(),o=g.useCallback((a,u)=>{const c=ql(typeof a=="function"?a(s):a);n.current=!0,i("?"+c,u)},[i,s]);return[s,o]}function Bw(e,t){t===void 0&&(t={});let n=g.useContext(Lw);n==null&&ce(!1);let{basename:r}=Ow(Ql.useViewTransitionState),s=qo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Sr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Sr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Xl(s.pathname,o)!=null||Xl(s.pathname,i)!=null}const $w="modulepreload",Hw=function(e){return"/"+e},_f={},ee=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(u=>{if(u=Hw(u),u in _f)return;_f[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":$w,c||(f.as="script"),f.crossOrigin="",f.href=u,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((h,x)=>{f.addEventListener("load",h),f.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};function Ww(){const{pathname:e}=rt();return g.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}const Uw='a, button, [role="button"], label, select, summary, [data-cursor="hover"], .cursor-pointer',Gw='input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]), textarea, [contenteditable="true"]';function Kw(){const e=g.useRef(null),t=g.useRef(null),n=g.useRef(null),r=g.useRef(null),s=g.useRef(null);return g.useEffect(()=>{const i=window.matchMedia("(pointer: fine)"),o=window.matchMedia("(prefers-reduced-motion: reduce)");if(!i.matches||o.matches)return;const a=e.current,u=t.current,c=n.current,d=r.current,f=s.current;if(!a||!u||!c||!d||!f)return;document.documentElement.classList.add("hifi-cursor-on");const h=-24*Math.PI/180,x=Math.cos(h),w=Math.sin(h);let y=-100,k=-100,p=0,m=2.4,v=2.4,b=16,P=6.5,C=16,S=6.5,j=!1,L,_=performance.now();const F=E=>{const T=Math.min((E-_)/1e3,.05);_=E,m+=(v-m)*Math.min(1,T*8),b+=(C-b)*Math.min(1,T*10),P+=(S-P)*Math.min(1,T*10),p+=m*T,u.style.transform=`translate3d(${y}px, ${k}px, 0)`,c.style.transform=`translate3d(${y}px, ${k}px, 0)`;const A=Math.cos(p)*b,z=Math.sin(p)*P;d.style.transform=`translate(${A*x-z*w}px, ${A*w+z*x}px)`,L=requestAnimationFrame(F)},H=E=>{a.dataset.state=E;const T=E==="hover";v=T?7:2.4,C=T?23:16,S=T?9.5:6.5},te=E=>{y=E.clientX,k=E.clientY,j||(j=!0,a.dataset.hidden="false")},N=E=>{const T=E.target;T instanceof Element&&(T.closest(Gw)?H("text"):T.closest(Uw)?H("hover"):H("default"))},D=()=>{a.dataset.down="true",f.style.left=`${y}px`,f.style.top=`${k}px`,f.classList.remove("is-live"),f.offsetWidth,f.classList.add("is-live")},$=()=>{a.dataset.down="false"},K=()=>{j=!1,a.dataset.hidden="true"};return document.addEventListener("mousemove",te,{passive:!0}),document.addEventListener("mouseover",N,{passive:!0}),document.addEventListener("mousedown",D,{passive:!0}),document.addEventListener("mouseup",$,{passive:!0}),document.documentElement.addEventListener("mouseleave",K),window.addEventListener("blur",K),L=requestAnimationFrame(F),()=>{cancelAnimationFrame(L),document.removeEventListener("mousemove",te),document.removeEventListener("mouseover",N),document.removeEventListener("mousedown",D),document.removeEventListener("mouseup",$),document.documentElement.removeEventListener("mouseleave",K),window.removeEventListener("blur",K),document.documentElement.classList.remove("hifi-cursor-on")}},[]),l.jsxs("div",{ref:e,className:"hifi-cursor","data-state":"default","data-hidden":"true","data-down":"false","aria-hidden":"true",children:[l.jsxs("div",{ref:n,className:"hifi-cursor__orbit",children:[l.jsx("div",{className:"hifi-cursor__ring"}),l.jsx("div",{ref:r,className:"hifi-cursor__sat"})]}),l.jsx("div",{ref:t,className:"hifi-cursor__core"}),l.jsx("div",{ref:s,className:"hifi-cursor__pulse"})]})}const Xw=`${"/".replace(/\/$/,"")}/api`;let Zl=0;const Jl=new Set,Mf=e=>{Zl+=e,Jl.forEach(t=>t(Zl))},Yw=()=>Zl,qw=e=>(Jl.add(e),()=>Jl.delete(e));async function Ur(e,t={}){Mf(1);try{return await Qw(e,t)}finally{Mf(-1)}}async function Qw(e,t){const n=await fetch(`${Xw}${e}`,{credentials:"include",headers:t.body instanceof FormData?{}:{"Content-Type":"application/json"},...t}),r=await n.text();let s=null;if(r)try{s=JSON.parse(r)}catch{}if(!n.ok)throw new Error((s==null?void 0:s.error)||`Fehler ${n.status}`);if(s===null&&r)throw new Error("Unerwartete Server-Antwort (kein gültiges JSON)");return s}const Z={get:(e,t)=>Ur(e,t),post:(e,t)=>Ur(e,{method:"POST",body:t instanceof FormData?t:JSON.stringify(t)}),put:(e,t)=>Ur(e,{method:"PUT",body:JSON.stringify(t)}),patch:(e,t)=>Ur(e,{method:"PATCH",body:JSON.stringify(t)}),delete:e=>Ur(e,{method:"DELETE"})};function Zw({children:e}){const[t,n]=g.useState({pathname:null,needsSetup:null}),r=rt(),s=t.needsSetup===!1;g.useEffect(()=>{if(s)return;let o=!1;return Z.get("/setup/status").then(a=>{o||n({pathname:r.pathname,needsSetup:a.needs_setup})}).catch(()=>{o||n({pathname:r.pathname,needsSetup:!1})}),()=>{o=!0}},[r.pathname,s]);const i=t.pathname===r.pathname;return r.pathname==="/setup"?s?l.jsx(jr,{to:"/",replace:!0}):!i||t.needsSetup===null?l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"}):e:i&&t.needsSetup?l.jsx(jr,{to:"/setup",replace:!0}):e}/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ek=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lf=e=>{const t=ek(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var _a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Yg=g.createContext({});function kN({children:e,size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}){const o=g.useMemo(()=>({size:t,color:n,strokeWidth:r,absoluteStrokeWidth:s,className:i}),[t,n,r,s,i]);return g.createElement(Yg.Provider,{value:o},e)}const nk=()=>g.useContext(Yg),rk=g.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},u)=>{const{size:c=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:h="currentColor",className:x=""}=nk()??{},w=r??f?Number(n??d)*24/Number(t??c):n??d;return g.createElement("svg",{ref:u,..._a,width:t??c??_a.width,height:t??c??_a.height,stroke:e??h,strokeWidth:w,className:Xg("lucide",x,s),...!i&&!tk(a)&&{"aria-hidden":"true"},...a},[...o.map(([y,k])=>g.createElement(y,k)),...Array.isArray(i)?i:[i]])});/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const U=(e,t)=>{const n=g.forwardRef(({className:r,...s},i)=>g.createElement(rk,{ref:i,iconNode:t,className:Xg(`lucide-${Jw(Lf(e))}`,`lucide-${e}`,r),...s}));return n.displayName=Lf(e),n};/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sk=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],ik=U("boxes",sk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ok=[["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],ak=U("car-front",ok);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lk=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],qg=U("car",lk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uk=[["path",{d:"M18 19V9a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2h2",key:"19jm3t"}],["path",{d:"M2 9h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2",key:"13hakp"}],["path",{d:"M22 17v1a1 1 0 0 1-1 1H10v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9",key:"1crci8"}],["circle",{cx:"8",cy:"19",r:"2",key:"t8fc5s"}]],ck=U("caravan",uk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const dk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fk=U("check",dk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mk=U("chevron-down",hk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],gk=U("chevron-left",pk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xk=U("chevron-right",yk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vk=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wk=U("chevron-up",vk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kk=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],bk=U("circle-play",kk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Sk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Qg=U("clock",Sk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jk=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],Pk=U("cog",jk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Tk=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Ck=U("download",Tk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ek=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Nk=U("external-link",Ek);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _k=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],Mk=U("file-archive",_k);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],Ak=U("file-image",Lk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Dk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",key:"1tzo1f"}]],Rk=U("file-play",Dk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ik=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Af=U("file-text",Ik);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vk=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Ok=U("flame",Vk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fk=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],zk=U("layout-dashboard",Fk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bk=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],$k=U("lightbulb",Bk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hk=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Wk=U("lock",Hk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Uk=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],Gk=U("log-in",Uk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kk=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Df=U("mail",Kk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xk=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Zg=U("map-pin",Xk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yk=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],qk=U("message-circle",Yk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qk=[["rect",{x:"5",y:"2",width:"14",height:"20",rx:"7",key:"11ol66"}],["path",{d:"M12 6v4",key:"16clxf"}]],Zk=U("mouse",Qk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jk=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],eb=U("music",Jk);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tb=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],nb=U("navigation",tb);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rb=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],sb=U("package",rb);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ib=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],xo=U("phone",ib);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ob=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ab=U("send",ob);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lb=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],ub=U("shield-alert",lb);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cb=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],db=U("shopping-bag",cb);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fb=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],hb=U("thumbs-up",fb);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mb=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],pb=U("user",mb);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gb=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],yb=U("video",gb);/** + * @license lucide-react v1.23.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const xb=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],vb=U("zap",xb),Jg=g.createContext(null);function wb(){const e=new Date,t=e.getHours()+e.getMinutes()/60;return t>=6.5&&t<21?"light":"dark"}function kb({children:e}){const[t,n]=g.useState(()=>{const s=localStorage.getItem("hifi-theme");return s==="light"||s==="dark"?s:wb()});g.useEffect(()=>{document.documentElement.classList.toggle("dark",t==="dark"),localStorage.setItem("hifi-theme",t)},[t]);const r=()=>n(s=>s==="dark"?"light":"dark");return l.jsx(Jg.Provider,{value:{theme:t,toggleTheme:r},children:e})}function bb(){return g.useContext(Jg)}const Sb={nav:{openMenu:"Menü öffnen",closeMenu:"Menü schließen",close:"Schließen",adminPanel:"Zum Admin-Panel",vehicles:"Fahrzeuge",services:"Leistungen",gallery:"Galerie",contact:"Kontakt",whatsapp:"WhatsApp",shop:"Zum Shop",downloads:"Downloads"},themeToggle:{label:"Theme umschalten"},languageToggle:{label:"Sprache auswählen"},footer:{routePlan:"Route planen",contactHeading:"Kontakt",contactForm:"Kontaktformular",hoursHeading:"Öffnungszeiten",open:"Geöffnet",closed:"Geschlossen",days:{monFri:"Montag – Freitag",sat:"Samstag",sun:"Sonntag"},copyright:e=>`© ${e} HifiPlanet. Alle Angaben ohne Gewähr.`,imprint:"Impressum",privacy:"Datenschutz",terms:"AGB",downloads:"Downloads",cookieSettings:"Cookie-Einstellungen"},cookieConsent:{bannerText:"Wir verwenden nur technisch notwendige Cookies. Für Google Maps, YouTube-Videos und Statistik-Cookies benötigen wir zusätzlich deine Zustimmung, da dabei Daten an Google übertragen werden.",moreInfo:"Mehr dazu in unserer",privacyPolicy:"Datenschutzerklärung",settings:"Einstellungen",onlyNecessary:"Nur notwendige",acceptAll:"Alle akzeptieren",modalTitle:"Cookie-Einstellungen",modalIntro:"Lege fest, welche Kategorien du zulassen möchtest. Mehr dazu in unserer",necessaryTitle:"Notwendig",necessaryDesc:"Für den Betrieb der Website erforderlich (z. B. Login-Session, Theme- und Cookie-Einstellung). Kann nicht deaktiviert werden.",externalTitle:"Externe Medien",externalDesc:"Google Maps und YouTube-Videos. Beim Laden werden Daten (u. a. deine IP-Adresse) an Google übertragen.",analyticsTitle:"Statistik",analyticsDesc:"Google Analytics hilft uns zu verstehen, wie die Website genutzt wird. Dabei werden Daten an Google übertragen.",cancel:"Abbrechen",saveSelection:"Auswahl speichern"},maintenance:{title:"Wartungsarbeiten",defaultMessage:"Dieser Bereich wird gerade aktualisiert. Bitte schau in Kürze wieder vorbei.",login:"Anmelden"},lightbox:{close:"Schließen",previous:"Vorheriges Bild",next:"Nächstes Bild"},home:{metaTitle:"Car-Hifi Umbauten nach Maß",metaDescription:"HifiPlanet – dein Car-Hifi Spezialist in Amorbach. Marke und Modell wählen, passende Sound-Pakete entdecken und unverbindlich anfragen.",stickyCta:"Bereit für deinen Sound-Umbau?",selectVehicle:"Fahrzeug auswählen",getInTouch:"Kontakt aufnehmen",welcome:"Willkommen bei HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Dein Car-Hifi Spezialist für individuelle Sound-Umbauten. Wähle dein Fahrzeug, entdecke passende Pakete und frag unverbindlich an – wir kümmern uns um den Rest.",stats:[{value:"20+",label:"Jahre Erfahrung"},{value:"Riesige",label:"3D-Druckfarm im eigenen Haus"},{value:"Eigene",label:"CNC- & Laserwerkstatt"},{value:"International",label:"anerkannter Car-Hifi-Spezialist"}],brandsHeading:"Marken, mit denen wir arbeiten",youtubeBadge:"HifiPlanet präsentiert",youtubeTitle:"Das Handwerk hinter deinem Sound",youtubeText:"Entdecke die Handwerkskunst hinter unserer Arbeit",youtubeCta:"Jetzt ansehen",heroImageAlt:"Ground Zero Subwoofer und Endstufen mit violetter Ambiente-Beleuchtung",craftImageAlt:"Individueller Subwoofer-Bau",adviceImageAlt:"Endstufen-Einbau mit Ambiente-Beleuchtung",moreImageAlt:"Hochwertige Endstufe und Subwoofer, Studioaufnahme",craftEyebrow:"Handwerk",craftTitle:"Präzisionsarbeit in jedem Detail",craftText:"Ob eigens gefertigte Subwoofer-Gehäuse, integrierte Beleuchtung oder unsichtbar verlegte Kabelwege – dank eigener CNC-, Laser- und 3D-Druck-Fertigung entstehen bei uns Lösungen, die es von der Stange nicht gibt.",adviceEyebrow:"Beratung",adviceTitle:"Von der ersten Idee bis zum letzten Schliff",adviceText:"Jedes Fahrzeug und jeder Anspruch ist anders. Deshalb beraten wir dich persönlich und unverbindlich – vom dezenten Upgrade bis zum kompromisslosen High-End-System.",insightsTitle:"Einblicke in unsere Umbauten",insightsText:"Vom unauffälligen Sound-Upgrade bis zum aufwendigen Komplettumbau – Handarbeit aus unserer Werkstatt in Amorbach.",galleryAlts:["Individueller Subwoofer-Bau mit Ground Zero Bässen","Endstufen-Einbau mit violetter Ambiente-Beleuchtung","Hochtöner- und Mitteltöner-Einbau von Focal Utopia","Sony Navigationssystem mit Apple CarPlay im Cockpit","Verbauter Hochtöner im Kofferraum","Individueller Subwoofer-Einbau mit LED-Beleuchtung im Kofferraum"],reviewsRating:"5,0 von 181 Kunden bewertet",reviewsRatingDynamic:(e,t)=>`${e.toFixed(1).replace(".",",")} von ${t} Kunden bewertet`,reviewsText:"Das sagen unsere Kunden über uns.",reviewsLink:"Alle Bewertungen auf Google ansehen →",testimonials:[{name:"Thomas K.",text:"Über YouTube auf dieses Klang-Juwel gestoßen. Beratung und Empfehlungen sind erstklassig – der Tesla-Vorführwagen hat meine Leidenschaft für guten Sound neu entfacht."},{name:"Andreas I.",text:"Sehr professionelle Beratung und Service. Obwohl ich von VAG zu Mercedes gewechselt bin, wurde alles reibungslos angepasst. Die 3-Wege-Lautsprecher und zwei Subwoofer liefern außergewöhnliche Leistung."},{name:"Thomas F.",text:"Kompletter Audi A4 B9 Umbau hat meine Erwartungen übertroffen. Von Anfang bis Ende professionell, mit tadelloser Verarbeitung und Klangqualität."},{name:"Drago G.",text:"Beeindruckt von der CNC-Arbeit, die auf YouTube gezeigt wird. Angefangen mit 3D-gedruckten Lautsprecherringen für meinen Ford Mustang – daraus wurde ein viel größeres Projekt."},{name:"Leonardo B.",text:"Toller Service und meisterhafte Handwerkskunst. Saubere Installation, Leidenschaft in jedem Detail erkennbar."},{name:"Marcel S.",text:"Unschlagbares Preis-Leistungs-Verhältnis. Das Team hat sich viel Zeit genommen, um genau die Lösung für mein Budget zu finden."},{name:"Julia W.",text:"Endlich ein Betrieb, der auch Wohnmobile ernst nimmt. Die Soundanlage in unserem Camper klingt jetzt wie im Wohnzimmer."},{name:"Kevin R.",text:"Dashcam und Alarmanlage in einem Termin sauber verbaut, keine sichtbaren Kabel. Absolute Empfehlung für alle, die Wert auf Verarbeitung legen."},{name:"Sabrina H.",text:"Mein Oldtimer hat jetzt modernen Sound, ohne dass es dem Original-Look geschadet hätte. Genau das habe ich gesucht."},{name:"Niklas P.",text:"Von der ersten Anfrage bis zum fertigen Umbau lief alles reibungslos. Ehrliche Beratung ohne Verkaufsdruck."}],moreTitle:"Mehr als nur Car-Hifi",moreText:"Neben individuellen Sound-Umbauten bieten wir CNC-Zerspanung, Lasertechnik, 3D-Druck und mehr – alles aus einer Hand in unserer eigenen Werkstatt.",moreCta:"Alle Leistungen entdecken",faqHeading:"Häufig gestellte Fragen"},vehicleSelect:{metaTitle:"Fahrzeug auswählen",metaDescription:"Wähle deine Fahrzeugmarke und dein Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.",title:"Fahrzeug auswählen",intro:"Wähle zuerst deine Marke, dann dein Modell – wir zeigen dir direkt die passenden Sound-Pakete.",empty:"Es sind noch keine Marken hinterlegt."},brandPage:{metaTitleFallback:"Modell auswählen",metaDescription:e=>`Wähle dein ${e} Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Modell wählen",empty:"Für diese Marke sind noch keine Modelle hinterlegt."},modelPage:{metaTitleFallback:"Sound-Pakete",metaTitle:(e,t)=>`${e} ${t} Sound-Pakete`,metaDescription:(e,t)=>`Car-Hifi Sound-Pakete für ${e} ${t} inkl. aktueller Preise – von HifiPlanet unverbindlich anfragen.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Sound-Pakete",empty:"Für dieses Modell sind noch keine Pakete hinterlegt.",totalPrice:"ab ca.",productLoading:"Produkt wird geladen…",requestContact:"Kontakt anfragen",badges:{recommended:"Empfohlen",popular:"Am beliebtesten",tip:"Tipp",coming_soon:"Coming soon"},videoLink:"Zum Video",moreBullets:e=>e===1?"+ 1 weitere Leistung":`+ ${e} weitere Leistungen`,showMore:"Mehr anzeigen",lessBullets:"Weniger anzeigen",wheelHint:"Mit dem Mausrad blättern"},leistungen:{metaTitle:"Leistungen",metaDescription:"Car-Hifi, Wohnmobil & Caravan, Oldtimer, CNC-Zerspanung, Lasertechnik, 3D-Druck, Alarmanlagen und Dash Cams – alles aus einer Hand bei HifiPlanet in Amorbach.",title:"Unsere Leistungen",intro:"Von individuellen Sound-Umbauten bis zur eigenen CNC- und 3D-Druck-Fertigung – alles aus einer Hand in unserer Werkstatt in Amorbach.",notListedTitle:"Dein Projekt ist nicht dabei?",notListedText:"Sprich uns einfach an – wir finden gemeinsam die passende Lösung.",contact:"Kontakt aufnehmen"},contactPage:{metaTitle:"Kontakt",metaDescription:"Kontaktiere HifiPlanet in Amorbach für dein individuelles Car-Hifi Projekt – wir beraten dich gerne unverbindlich.",title:"Kontakt aufnehmen",heroEyebrow:"Kontakt",heroTitlePre:"Sprich",heroTitleAccent:"mit",heroTitlePost:"uns.",heroSubtitle:"Ob Anlage, Einbau oder Klang-Tuning für dein Fahrzeug — schreib uns, wir melden uns schnellstmöglich zurück.",packageBoxTitle:"Deine Anfrage bezieht sich auf",formTitle:"Anfrage senden",sentTitle:"Anfrage gesendet ✓",sentText:"Danke! Wir melden uns innerhalb eines Werktags bei dir.",contextIntro:"Deine Anfrage bezieht sich auf:",contextBrand:"Marke",contextModel:"Modell",contextPackage:"Paket",contextProduct:"Produkt",packagePrice:"Paketpreis",upgrades:"Upgrades",optionalUpgrades:"Optionale Upgrades",totalWithUpgrades:"Gesamt inkl. Upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"E-Mail *",emailPlaceholder:"max@mail.de",phoneLabel:"Telefon",phonePlaceholder:"Optional",vinLabel:"Fahrgestellnummer (FIN)",vinPlaceholder:"Optional – hilft bei der Einschätzung",messageLabel:"Nachricht",messagePlaceholder:"Erzähl uns von deinem Projekt – Fahrzeug, Wunschklang, Budget …",requiredHint:"* Pflichtfelder",sending:"Wird gesendet…",submit:"Anfrage senden",cardTitle:"HiFi Planet Amorbach",address:"Adresse",phone:"Telefon",email:"E-Mail",hours:"Öffnungszeiten",hoursWeek:"Mo–Fr: 9:00–18:00 Uhr",hoursSat:"Sa: 10:00–13:00 Uhr",hoursWeekDays:"Mo–Fr",hoursWeekTime:"9:00 – 18:00 Uhr",hoursSatDay:"Sa",hoursSatTime:"10:00 – 13:00 Uhr",directionsTitle:"Anfahrt",mapEmbedName:"Die Google-Maps-Karte",mapOpenChip:"In Maps öffnen",routePlan:"Route planen",featurePremiumTitle:"Premium Klang",featurePremiumSub:"Höchste Qualität",featureGermanyTitle:"Made in Germany",featureGermanySub:"Präzise Handarbeit",featureIndividualTitle:"Individuell",featureIndividualSub:"Maßgeschneiderte Lösungen",featureExpertsTitle:"Experten Team",featureExpertsSub:"Leidenschaft & Know-how"},galleryOverview:{metaTitle:"Bildergalerie",metaDescription:"Einblicke in unsere Car-Hifi Umbauten – nach Marke sortiert. Wähle eine Marke und entdecke die Projekte.",title:"Bildergalerie",intro:"Wähle eine Marke und entdecke unsere Umbauten im Detail.",loading:"Lädt…",empty:"Es sind noch keine Galerie-Marken hinterlegt."},galleryBrandPage:{metaTitleFallback:"Bildergalerie",metaTitle:e=>`${e} Umbauten`,metaDescription:e=>`Einblicke in unsere ${e} Car-Hifi Umbauten.`,loading:"Lädt…",breadcrumbGallery:"Galerie",titleSuffix:"Projekt wählen",empty:"Für diese Marke sind noch keine Projekte hinterlegt."},galleryProjectPage:{metaTitleFallback:"Bildergalerie",metaDescription:e=>`Fotos unseres ${e} Umbaus.`,loading:"Lädt…",breadcrumbGallery:"Galerie",empty:"Für dieses Projekt sind noch keine Fotos hinterlegt.",enlargeImage:"Bild vergrößern"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Dateien und Songs von HifiPlanet zum Anhören und Herunterladen.",title:"Downloads",intro:"Hier stellen wir dir Dateien und Songs bereit – direkt anhören oder herunterladen.",loading:"Lädt…",empty:"Aktuell stehen keine Downloads bereit.",download:"Herunterladen",lockedTitle:"Geschützter Bereich",lockedText:"Bitte gib das Passwort ein, das du von uns bekommen hast.",passwordLabel:"Passwort",unlock:"Freischalten",unlocking:"Wird geprüft…",wrongPassword:"Das Passwort stimmt leider nicht."}},jb={nav:{openMenu:"Open menu",closeMenu:"Close menu",close:"Close",adminPanel:"Go to admin panel",vehicles:"Vehicles",services:"Services",gallery:"Gallery",contact:"Contact",whatsapp:"WhatsApp",shop:"Visit shop",downloads:"Downloads"},themeToggle:{label:"Toggle theme"},languageToggle:{label:"Select language"},footer:{routePlan:"Get directions",contactHeading:"Contact",contactForm:"Contact form",hoursHeading:"Opening hours",open:"Open",closed:"Closed",days:{monFri:"Monday – Friday",sat:"Saturday",sun:"Sunday"},copyright:e=>`© ${e} HifiPlanet. All information without guarantee.`,imprint:"Legal notice",privacy:"Privacy",terms:"Terms",downloads:"Downloads",cookieSettings:"Cookie settings"},cookieConsent:{bannerText:"We only use technically necessary cookies. For Google Maps, YouTube videos and analytics cookies we need your additional consent, since data is transferred to Google in that case.",moreInfo:"More details in our",privacyPolicy:"privacy policy",settings:"Settings",onlyNecessary:"Necessary only",acceptAll:"Accept all",modalTitle:"Cookie settings",modalIntro:"Choose which categories you want to allow. More details in our",necessaryTitle:"Necessary",necessaryDesc:"Required to operate the website (e.g. login session, theme and cookie preference). Cannot be disabled.",externalTitle:"External media",externalDesc:"Google Maps and YouTube videos. Loading them transfers data (including your IP address) to Google.",analyticsTitle:"Analytics",analyticsDesc:"Google Analytics helps us understand how the website is used. This transfers data to Google.",cancel:"Cancel",saveSelection:"Save selection"},maintenance:{title:"Under maintenance",defaultMessage:"This area is currently being updated. Please check back shortly.",login:"Log in"},lightbox:{close:"Close",previous:"Previous image",next:"Next image"},home:{metaTitle:"Custom Car-Hifi Installations",metaDescription:"HifiPlanet – your car-hifi specialist in Amorbach, Germany. Choose your make and model, discover matching sound packages and get in touch, no obligation.",stickyCta:"Ready for your sound upgrade?",selectVehicle:"Select vehicle",getInTouch:"Get in touch",welcome:"Welcome to HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Your car-hifi specialist for custom sound installations. Choose your vehicle, discover the right package and get in touch, no obligation – we take care of the rest.",stats:[{value:"20+",label:"years of experience"},{value:"Huge",label:"in-house 3D print farm"},{value:"In-house",label:"CNC & laser workshop"},{value:"International",label:"recognized car-hifi specialist"}],brandsHeading:"Brands we work with",youtubeBadge:"HifiPlanet presents",youtubeTitle:"The craft behind your sound",youtubeText:"Discover the artistry behind our work",youtubeCta:"Watch now",heroImageAlt:"Ground Zero subwoofer and amplifiers with purple ambient lighting",craftImageAlt:"Custom subwoofer build",adviceImageAlt:"Amplifier installation with ambient lighting",moreImageAlt:"High-end amplifier and subwoofer, studio shot",craftEyebrow:"Craftsmanship",craftTitle:"Precision work in every detail",craftText:"Whether custom-built subwoofer enclosures, integrated lighting or invisibly routed cabling – our own CNC, laser and 3D-printing production means we can build solutions you simply can't buy off the shelf.",adviceEyebrow:"Consultation",adviceTitle:"From the first idea to the final touch",adviceText:"Every vehicle and every requirement is different. That's why we advise you personally and without obligation – from a subtle upgrade to an uncompromising high-end system.",insightsTitle:"A look at our installations",insightsText:"From subtle sound upgrades to elaborate full installations – handcrafted in our workshop in Amorbach.",galleryAlts:["Custom subwoofer build with Ground Zero bass drivers","Amplifier installation with purple ambient lighting","Tweeter and midrange installation by Focal Utopia","Sony navigation system with Apple CarPlay in the cockpit","Installed tweeter in the trunk","Custom subwoofer installation with LED lighting in the trunk"],reviewsRating:"Rated 5.0 by 181 customers",reviewsRatingDynamic:(e,t)=>`Rated ${e.toFixed(1)} by ${t} customers`,reviewsText:"Here's what our customers say about us.",reviewsLink:"See all reviews on Google →",testimonials:[{name:"Thomas K.",text:"Found this gem through YouTube. Advice and recommendations are top-notch – the Tesla demo car reignited my passion for great sound."},{name:"Andreas I.",text:"Very professional advice and service. Even though I switched from VAG to Mercedes, everything was adapted smoothly. The 3-way speakers and two subwoofers deliver outstanding performance."},{name:"Thomas F.",text:"The complete Audi A4 B9 build exceeded my expectations. Professional from start to finish, with flawless workmanship and sound quality."},{name:"Drago G.",text:"Impressed by the CNC work shown on YouTube. Started with 3D-printed speaker rings for my Ford Mustang – it turned into a much bigger project."},{name:"Leonardo B.",text:"Great service and masterful craftsmanship. Clean installation, passion visible in every detail."},{name:"Marcel S.",text:"Unbeatable value for money. The team took a lot of time to find the exact solution for my budget."},{name:"Julia W.",text:"Finally a shop that takes motorhomes seriously too. The sound system in our camper now sounds like a living room."},{name:"Kevin R.",text:"Dash cam and alarm system installed cleanly in a single appointment, no visible cables. Highly recommended for anyone who values quality workmanship."},{name:"Sabrina H.",text:"My classic car now has modern sound without compromising the original look. Exactly what I was looking for."},{name:"Niklas P.",text:"From the first inquiry to the finished build, everything went smoothly. Honest advice with no sales pressure."}],moreTitle:"More than just car-hifi",moreText:"Besides custom sound installations, we also offer CNC machining, laser technology, 3D printing and more – all from a single source in our own workshop.",moreCta:"Discover all our services",faqHeading:"Frequently asked questions"},vehicleSelect:{metaTitle:"Select your vehicle",metaDescription:"Choose your vehicle make and model and discover matching car-hifi sound packages from HifiPlanet.",title:"Select your vehicle",intro:"Choose your make first, then your model – we'll show you the matching sound packages right away.",empty:"No brands have been added yet."},brandPage:{metaTitleFallback:"Select a model",metaDescription:e=>`Choose your ${e} model and discover matching car-hifi sound packages from HifiPlanet.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Select a model",empty:"No models have been added for this brand yet."},modelPage:{metaTitleFallback:"Sound packages",metaTitle:(e,t)=>`${e} ${t} sound packages`,metaDescription:(e,t)=>`Car-hifi sound packages for the ${e} ${t} including current prices – get in touch with HifiPlanet, no obligation.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Sound packages",empty:"No packages have been added for this model yet.",totalPrice:"from approx.",productLoading:"Loading product…",requestContact:"Request contact",badges:{recommended:"Recommended",popular:"Most popular",tip:"Tip",coming_soon:"Coming soon"},videoLink:"Watch video",moreBullets:e=>e===1?"+ 1 more feature":`+ ${e} more features`,showMore:"Show more",lessBullets:"Show less",wheelHint:"Scroll to browse"},leistungen:{metaTitle:"Services",metaDescription:"Car-hifi, motorhomes & caravans, classic cars, CNC machining, laser technology, 3D printing, alarm systems and dash cams – all from a single source at HifiPlanet in Amorbach.",title:"Our services",intro:"From custom sound installations to our own CNC and 3D-printing production – all from a single source in our workshop in Amorbach.",notListedTitle:"Don't see your project?",notListedText:"Just get in touch – we'll find the right solution together.",contact:"Get in touch"},contactPage:{metaTitle:"Contact",metaDescription:"Get in touch with HifiPlanet in Amorbach for your custom car-hifi project – we're happy to advise you, no obligation.",title:"Get in touch",heroEyebrow:"Contact",heroTitlePre:"Talk",heroTitleAccent:"to",heroTitlePost:"us.",heroSubtitle:"Whether it's a system, installation, or sound tuning for your car — write to us, we'll get back to you as soon as possible.",packageBoxTitle:"Your inquiry relates to",formTitle:"Send inquiry",sentTitle:"Inquiry sent ✓",sentText:"Thanks! We'll get back to you within one business day.",contextIntro:"Your inquiry relates to:",contextBrand:"Brand",contextModel:"Model",contextPackage:"Package",contextProduct:"Product",packagePrice:"Package price",upgrades:"Upgrades",optionalUpgrades:"Optional upgrades",totalWithUpgrades:"Total incl. upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"Email *",emailPlaceholder:"max@mail.de",phoneLabel:"Phone",phonePlaceholder:"Optional",vinLabel:"Vehicle identification number (VIN)",vinPlaceholder:"Optional – helps us assess your vehicle",messageLabel:"Message",messagePlaceholder:"Tell us about your project – vehicle, desired sound, budget …",requiredHint:"* Required fields",sending:"Sending…",submit:"Send inquiry",cardTitle:"HiFi Planet Amorbach",address:"Address",phone:"Phone",email:"Email",hours:"Opening hours",hoursWeek:"Mon–Fri: 9:00 AM–6:00 PM",hoursSat:"Sat: 10:00 AM–1:00 PM",hoursWeekDays:"Mon–Fri",hoursWeekTime:"9:00 AM – 6:00 PM",hoursSatDay:"Sat",hoursSatTime:"10:00 AM – 1:00 PM",directionsTitle:"Directions",mapEmbedName:"The Google Maps map",mapOpenChip:"Open in Maps",routePlan:"Get directions",featurePremiumTitle:"Premium Sound",featurePremiumSub:"Highest quality",featureGermanyTitle:"Made in Germany",featureGermanySub:"Precision craftsmanship",featureIndividualTitle:"Custom-built",featureIndividualSub:"Tailored solutions",featureExpertsTitle:"Expert Team",featureExpertsSub:"Passion & know-how"},galleryOverview:{metaTitle:"Photo gallery",metaDescription:"A look at our car-hifi installations – sorted by brand. Choose a brand and explore the projects.",title:"Photo gallery",intro:"Choose a brand and explore our installations in detail.",loading:"Loading…",empty:"No gallery brands have been added yet."},galleryBrandPage:{metaTitleFallback:"Photo gallery",metaTitle:e=>`${e} installations`,metaDescription:e=>`A look at our ${e} car-hifi installations.`,loading:"Loading…",breadcrumbGallery:"Gallery",titleSuffix:"Select a project",empty:"No projects have been added for this brand yet."},galleryProjectPage:{metaTitleFallback:"Photo gallery",metaDescription:e=>`Photos of our ${e} installation.`,loading:"Loading…",breadcrumbGallery:"Gallery",empty:"No photos have been added for this project yet.",enlargeImage:"Enlarge image"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Files and songs from HifiPlanet to listen to and download.",title:"Downloads",intro:"Here you will find files and songs we provide for you – listen right here or download them.",loading:"Loading…",empty:"There are no downloads available right now.",download:"Download",lockedTitle:"Protected area",lockedText:"Please enter the password you received from us.",passwordLabel:"Password",unlock:"Unlock",unlocking:"Checking…",wrongPassword:"Sorry, that password is not correct."}},Ii={de:Sb,en:jb};function Pb(){const e=localStorage.getItem("hifi-lang");return e==="de"||e==="en"?e:(navigator.language||"de").toLowerCase().startsWith("de")?"de":"en"}function eu(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}const e0=g.createContext({language:"de",setLanguage:()=>{},toggleLanguage:()=>{},t:e=>{const t=eu(Ii.de,e);return t!==void 0?t:e}});function Rf({children:e}){const[t,n]=g.useState(Pb);g.useEffect(()=>{document.documentElement.setAttribute("lang",t),localStorage.setItem("hifi-lang",t)},[t]);const r=()=>n(i=>i==="de"?"en":"de"),s=i=>{const o=Ii[t]||Ii.de,a=eu(o,i);if(a!==void 0)return a;const u=eu(Ii.de,i);return u!==void 0?u:i};return l.jsx(e0.Provider,{value:{language:t,setLanguage:n,toggleLanguage:r,t:s},children:e})}function Te(){return g.useContext(e0)}function t0({overHero:e=!1,forceDark:t=!1}){const{theme:n,toggleTheme:r}=bb(),{t:s}=Te();return l.jsx("button",{onClick:r,"aria-label":s("themeToggle.label"),className:`rounded-full p-2 transition ${e?"text-white hover:bg-white/10":t?"text-neutral-300 hover:bg-neutral-800":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:n==="dark"?l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:l.jsx("path",{d:"M12 3a1 1 0 011 1v1a1 1 0 11-2 0V4a1 1 0 011-1zm0 15a5 5 0 100-10 5 5 0 000 10zm9-6a1 1 0 010 2h-1a1 1 0 110-2h1zM4 12a1 1 0 010 2H3a1 1 0 110-2h1zm14.36-7.36a1 1 0 011.42 1.42l-.71.7a1 1 0 11-1.41-1.4l.7-.72zM5.64 18.36a1 1 0 011.41 1.41l-.7.71a1 1 0 11-1.42-1.41l.71-.71zm12.72 0l.71.7a1 1 0 11-1.41 1.42l-.71-.71a1 1 0 011.41-1.41zM6.34 5.64l-.7-.7A1 1 0 117.05 3.5l.7.71A1 1 0 016.34 5.64zM12 6a1 1 0 011-1v0a1 1 0 01-1 1zm0 12a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1z"})}):l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:l.jsx("path",{fillRule:"evenodd",d:"M9.53 2.25a.75.75 0 01.19.82 8.25 8.25 0 0011.03 11.03.75.75 0 011.01.99A10.5 10.5 0 1112.9 2.1a.75.75 0 011.63-.85z",clipRule:"evenodd"})})})}const n0=g.createContext(null);function Tb({children:e}){const[t,n]=g.useState(null),[r,s]=g.useState(!0);g.useEffect(()=>{Z.get("/auth/me").then(d=>n(d.authenticated===!1?null:d)).catch(()=>n(null)).finally(()=>s(!1))},[]);const i=async(d,f)=>{const h=await Z.post("/auth/login",{username:d,password:f});return h.requires_2fa?{requires2fa:!0}:(n(h),{requires2fa:!1})},o=async d=>{const f=await Z.post("/auth/verify-2fa",{code:d});n(f)},a=async()=>{await Z.post("/auth/logout",{}),n(null)},u=async()=>{const d=await Z.get("/auth/me");n(d.authenticated===!1?null:d)},c=d=>{var f;return!!t&&(t.is_super_admin||((f=t.permissions)==null?void 0:f.includes(d)))};return l.jsx(n0.Provider,{value:{user:t,loading:r,login:i,verifyTwoFactor:o,logout:a,refreshUser:u,hasPermission:c},children:e})}function Hs(){return g.useContext(n0)}const Nc=g.createContext({phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:null,hero_image_path:null,ga_measurement_id:null,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,hidden_areas:[]}),Cb=Nc.Provider;function ht(){return g.useContext(Nc)}function _c(){const{hidden_areas:e}=g.useContext(Nc);return t=>(e||[]).includes(t)}const tu="/assets/logo-dark-R-ckaBhx.png",Eb="https://www.audio4cars.de/",If=e=>(e||"").replace(/[^\d+]/g,""),Vf=70,Nb=500;function _b({className:e}){return l.jsxs("svg",{viewBox:"0 0 3 2",className:e,"aria-hidden":"true",children:[l.jsx("rect",{width:"3",height:"0.667",y:"0",fill:"#000"}),l.jsx("rect",{width:"3",height:"0.667",y:"0.667",fill:"#D00"}),l.jsx("rect",{width:"3",height:"0.666",y:"1.334",fill:"#FFCE00"})]})}function Mb({className:e}){return l.jsxs("svg",{viewBox:"0 0 60 30",className:e,"aria-hidden":"true",children:[l.jsx("clipPath",{id:"fgb-t",children:l.jsx("path",{d:"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"})}),l.jsx("path",{d:"M0,0 v30 h60 v-30 z",fill:"#00247d"}),l.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#fff",strokeWidth:"6"}),l.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",clipPath:"url(#fgb-t)",stroke:"#cf142b",strokeWidth:"4"}),l.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#fff",strokeWidth:"10"}),l.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#cf142b",strokeWidth:"6"})]})}const Ma=[{code:"de",label:"Deutsch",Flag:_b},{code:"en",label:"English",Flag:Mb}];function Lb({overHero:e=!1}){const{language:t,setLanguage:n,t:r}=Te(),[s,i]=g.useState(!1),o=g.useRef(null),a=Ma.find(u=>u.code===t)||Ma[0];return g.useEffect(()=>{if(!s)return;const u=d=>{o.current&&!o.current.contains(d.target)&&i(!1)},c=d=>{d.key==="Escape"&&i(!1)};return document.addEventListener("mousedown",u),document.addEventListener("keydown",c),()=>{document.removeEventListener("mousedown",u),document.removeEventListener("keydown",c)}},[s]),l.jsxs("div",{className:"relative",ref:o,children:[l.jsxs("button",{type:"button",onClick:()=>i(u=>!u),"aria-haspopup":"listbox","aria-expanded":s,"aria-label":r("languageToggle.label"),className:`flex items-center gap-1 rounded-full p-1.5 transition ${e?"hover:bg-white/10":"hover:bg-neutral-800"}`,children:[l.jsx("span",{className:`block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ${e?"ring-white/50":"ring-neutral-600"}`,children:l.jsx(a.Flag,{className:"h-full w-full"})}),l.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:`h-3 w-3 transition-transform ${e?"text-white/70":"text-neutral-400"} ${s?"rotate-180":""}`,children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"})})]}),s&&l.jsx("div",{role:"listbox",className:"absolute right-0 z-50 mt-2 min-w-[9rem] overflow-hidden rounded-lg border border-neutral-700 bg-neutral-900 py-1 shadow-lg",children:Ma.map(u=>l.jsxs("button",{type:"button",role:"option","aria-selected":u.code===t,onClick:()=>{n(u.code),i(!1)},className:`flex w-full items-center gap-2 px-3 py-2 text-left text-sm transition hover:bg-neutral-800 ${u.code===t?"font-semibold text-brand-400":"text-neutral-200"}`,children:[l.jsx("span",{className:"block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ring-neutral-600",children:l.jsx(u.Flag,{className:"h-full w-full"})}),u.label]},u.code))})]})}function Ab(){const[e,t]=g.useState(!1),[n,r]=g.useState(!1),[s,i]=g.useState(!1),{user:o}=Hs(),{phone:a,whatsapp:u,logo_dark_path:c,has_downloads:d}=ht(),f=_c(),{t:h}=Te(),x=!f("page.vehicles"),w=!f("page.services"),y=!f("page.gallery"),k=d&&!f("page.downloads"),p=3+[x,w,y,k,a,u].filter(Boolean).length,v=rt().pathname==="/",[b,P]=g.useState(!v);g.useEffect(()=>{if(!v){P(!0);return}const H=()=>P(window.scrollY>24);return H(),window.addEventListener("scroll",H,{passive:!0}),()=>window.removeEventListener("scroll",H)},[v]);const C=v&&!b;g.useEffect(()=>{if(e){r(!0);let N;const D=requestAnimationFrame(()=>{N=requestAnimationFrame(()=>i(!0))});return()=>{cancelAnimationFrame(D),N&&cancelAnimationFrame(N)}}i(!1);const H=Nb+(p-1)*Vf,te=setTimeout(()=>r(!1),H);return()=>clearTimeout(te)},[e,p]);const S=()=>`transition-all duration-500 ease-out ${s?"opacity-100":"opacity-0"}`,j=H=>({transitionDelay:`${(s?H:p-1-H)*Vf}ms`,transform:s?"translateY(0)":"translateY(-140px)"}),L=o&&l.jsx(W,{to:"/admin","aria-label":h("nav.adminPanel"),title:h("nav.adminPanel"),className:`rounded-full p-2 transition ${C?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:l.jsx(zk,{className:"h-5 w-5"})});let _=0;const F=()=>j(_++);return l.jsxs("header",{className:`sticky top-0 z-30 border-b transition-colors duration-300 ${C?"border-transparent bg-transparent":"border-neutral-800 bg-neutral-950/90 backdrop-blur"}`,children:[l.jsxs("div",{className:"mx-auto grid max-w-6xl grid-cols-[1fr_auto_1fr] items-center gap-3 px-4 py-3 sm:px-6",children:[l.jsx("div",{className:"flex items-center justify-self-start",children:l.jsx("button",{onClick:()=>t(!0),"aria-label":h("nav.openMenu"),className:`rounded-md p-2 transition ${C?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})})}),l.jsx(W,{to:"/",className:"flex items-center justify-self-center rounded-lg px-2 py-1",children:l.jsx("img",{src:c||tu,alt:"HifiPlanet",className:"h-14 w-auto sm:h-16"})}),l.jsxs("div",{className:"flex items-center justify-self-end gap-1",children:[L,!e&&l.jsx(Lb,{overHero:C}),l.jsx(t0,{overHero:C,forceDark:!0})]})]}),n&&Go.createPortal(l.jsx("div",{className:"fixed inset-0 z-[100] overflow-y-auto text-left backdrop-blur-xl",style:{background:"linear-gradient(135deg, rgba(241,245,249,0.55) 0%, rgba(227,240,207,0.55) 50%, rgba(248,250,252,0.55) 100%)"},children:l.jsxs("div",{className:"relative mx-auto flex min-h-full max-w-6xl flex-col items-start justify-center gap-5 py-24 pl-6 pr-8 sm:pl-8",children:[l.jsxs("button",{onClick:()=>t(!1),"aria-label":h("nav.closeMenu"),className:"absolute left-6 top-8 flex items-center gap-2 text-neutral-600 hover:text-brand-600 sm:left-8 sm:top-[65px]",children:[l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})}),l.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",children:h("nav.close")})]}),x&&l.jsx(W,{to:"/fahrzeuge",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${S()}`,style:F(),children:h("nav.vehicles")}),w&&l.jsx(W,{to:"/leistungen",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${S()}`,style:F(),children:h("nav.services")}),y&&l.jsx(W,{to:"/galerie",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${S()}`,style:F(),children:h("nav.gallery")}),l.jsx(W,{to:"/kontakt",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${S()}`,style:F(),children:h("nav.contact")}),k&&l.jsx(W,{to:"/downloads",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${S()}`,style:F(),children:h("nav.downloads")}),l.jsx("div",{className:`h-px w-16 bg-brand-500/60 ${S()}`,style:F()}),a&&l.jsxs("a",{href:`tel:${If(a)}`,className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${S()}`,style:F(),children:[l.jsx(xo,{className:"h-4 w-4"}),a]}),u&&l.jsxs("a",{href:`https://wa.me/${If(u).replace(/^0/,"49").replace("+","")}`,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${S()}`,style:F(),children:[l.jsx(qk,{className:"h-4 w-4"}),h("nav.whatsapp")]}),l.jsxs("a",{href:Eb,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${S()}`,style:F(),children:[l.jsx(db,{className:"h-4 w-4"}),h("nav.shop")]})]})}),document.body)]})}const Of="hifiplanet-cookie-consent",r0={necessary:!0,external:!1,analytics:!1},s0=g.createContext({consent:r0,decided:!1,settingsOpen:!1,acceptAll:()=>{},rejectNonEssential:()=>{},saveCustom:()=>{},openSettings:()=>{},closeSettings:()=>{}});function Db({children:e}){const[t,n]=g.useState(r0),[r,s]=g.useState(!1),[i,o]=g.useState(!1);g.useEffect(()=>{try{const x=localStorage.getItem(Of);if(x){const w=JSON.parse(x);n({necessary:!0,external:!!w.external,analytics:!!w.analytics}),s(!0)}}catch{}},[]);const a=g.useCallback(x=>{n(x),s(!0),o(!1),localStorage.setItem(Of,JSON.stringify({...x,decidedAt:new Date().toISOString()}))},[]),u=g.useCallback(()=>a({necessary:!0,external:!0,analytics:!0}),[a]),c=g.useCallback(()=>a({necessary:!0,external:!1,analytics:!1}),[a]),d=g.useCallback(x=>a({necessary:!0,external:!!x.external,analytics:!!x.analytics}),[a]),f=g.useCallback(()=>o(!0),[]),h=g.useCallback(()=>o(!1),[]);return l.jsx(s0.Provider,{value:{consent:t,decided:r,settingsOpen:i,acceptAll:u,rejectNonEssential:c,saveCustom:d,openSettings:f,closeSettings:h},children:e})}function Ar(){return g.useContext(s0)}const Rb=["mon","tue","wed","thu","fri","sat","sun"],Ib=["sun","mon","tue","wed","thu","fri","sat"],La={mon:"Mo",tue:"Di",wed:"Mi",thu:"Do",fri:"Fr",sat:"Sa",sun:"So"};function Vb(e){const t=new Date,n=e==null?void 0:e[Ib[t.getDay()]];if(!n||n.closed||!n.open||!n.close)return!1;const r=t.getHours()*60+t.getMinutes(),[s,i]=n.open.split(":").map(Number),[o,a]=n.close.split(":").map(Number);return r>=s*60+i&&r{const s=Ob(e==null?void 0:e[r])||t,i=n[n.length-1];i&&i.label===s?i.days=`${i.firstLabel}-${La[r]}`:n.push({key:r,days:La[r],firstLabel:La[r],label:s})}),n}const Fb=e=>(e||"").replace(/[^\d+]/g,"");function zb(){const{phone:e,contact_email:t,address_street:n,address_zip:r,address_city:s,business_hours:i,has_downloads:o}=ht(),a=_c(),u=o&&!a("page.downloads"),c=Vb(i),{openSettings:d}=Ar(),{pathname:f}=rt(),h=f==="/",{t:x}=Te(),w=[n,[r,s].filter(Boolean).join(" ")].filter(Boolean).join(", "),y=`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(w)}`,k=i0(i,x("footer.closed"));return l.jsxs("footer",{className:`border-t border-neutral-200 bg-neutral-50 py-10 text-sm text-neutral-600 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-300 ${h?"pb-24":""}`,children:[l.jsxs("div",{className:"mx-auto grid max-w-6xl gap-4 px-4 sm:grid-cols-3 sm:px-6",children:[l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[l.jsx(Zg,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:"HifiPlanet"})]}),n&&l.jsx("p",{children:n}),(r||s)&&l.jsx("p",{children:[r,s].filter(Boolean).join(" ")}),l.jsxs("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:"mt-4 flex items-center justify-center gap-1.5 rounded-md bg-brand-500 px-3 py-2 text-xs font-semibold text-white hover:bg-brand-600",children:[l.jsx(nb,{className:"h-3.5 w-3.5"}),x("footer.routePlan")]})]}),l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[l.jsx(xo,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:x("footer.contactHeading")})]}),l.jsx("p",{children:l.jsx("a",{href:`tel:${Fb(e)}`,className:"inline-block py-1 hover:text-brand-500",children:e})}),l.jsx("p",{children:l.jsx("a",{href:`mailto:${t}`,className:"inline-block py-1 hover:text-brand-500",children:t})}),l.jsx(W,{to:"/kontakt",className:"mt-4 flex items-center justify-center gap-1.5 rounded-md border border-neutral-300 px-3 py-2 text-xs font-semibold text-neutral-700 hover:border-brand-500 hover:text-brand-600 dark:border-neutral-700 dark:text-neutral-200",children:x("footer.contactForm")})]}),l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Qg,{className:"h-4 w-4 text-brand-500"}),l.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:x("footer.hoursHeading")})]}),l.jsxs("span",{className:`flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-semibold ${c?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-neutral-100 text-neutral-500 dark:bg-neutral-800 dark:text-neutral-400"}`,children:[l.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${c?"bg-green-500":"bg-neutral-400"}`}),x(c?"footer.open":"footer.closed")]})]}),l.jsx("dl",{className:"space-y-1.5",children:k.map(p=>l.jsxs("div",{className:"flex items-center justify-between gap-3",children:[l.jsx("dt",{className:"text-neutral-500 dark:text-neutral-400",children:p.days}),l.jsx("dd",{className:"font-medium text-neutral-700 dark:text-neutral-200",children:p.label})]},p.key))})]})]}),l.jsx("div",{className:"mx-auto mt-8 max-w-6xl border-t border-neutral-200 px-4 pt-6 text-center text-xs text-neutral-500 dark:border-neutral-800 dark:text-neutral-400 sm:px-6",children:l.jsxs("p",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-1",children:[l.jsx("span",{children:x("footer.copyright")(new Date().getFullYear())}),l.jsx("span",{children:"·"}),l.jsx(W,{to:"/impressum",className:"hover:text-brand-500",children:x("footer.imprint")}),l.jsx("span",{children:"·"}),l.jsx(W,{to:"/datenschutz",className:"hover:text-brand-500",children:x("footer.privacy")}),l.jsx("span",{children:"·"}),l.jsx(W,{to:"/agb",className:"hover:text-brand-500",children:x("footer.terms")}),l.jsx("span",{children:"·"}),u&&l.jsxs(l.Fragment,{children:[l.jsx(W,{to:"/downloads",className:"hover:text-brand-500",children:x("footer.downloads")}),l.jsx("span",{children:"·"})]}),l.jsx("button",{type:"button",onClick:d,className:"hover:text-brand-500",children:x("footer.cookieSettings")})]})})]})}const Mc=g.createContext({});function xn(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const Bb=typeof window<"u",Ws=Bb?g.useLayoutEffect:g.useEffect,Qo=g.createContext(null);function Lc(e,t){e.indexOf(t)===-1&&e.push(t)}function vo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Pt=(e,t,n)=>n>t?t:n{};const vn={},o0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),a0=e=>typeof e=="object"&&e!==null,l0=e=>/^0[^.\s]+$/u.test(e);function u0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ye=e=>e,Us=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Pr=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Dc{constructor(){this.subscriptions=[]}add(t){return Lc(this.subscriptions,t),()=>vo(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;ie*1e3,lt=e=>e/1e3,Rc=(e,t)=>t?e*(1e3/t):0,c0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$b=1e-7,Hb=12;function Wb(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=c0(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>$b&&++aWb(i,0,1,e,n);return i=>i===0||i===1?i:c0(s(i),t,r)}const d0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,f0=e=>t=>1-e(1-t),h0=Gs(.33,1.53,.69,.99),Ic=f0(h0),m0=d0(Ic),p0=e=>e>=1?1:(e*=2)<1?.5*Ic(e):.5*(2-Math.pow(2,-10*(e-1))),Vc=e=>1-Math.sin(Math.acos(e)),g0=f0(Vc),y0=d0(Vc),Ub=Gs(.42,0,1,1),Gb=Gs(0,0,.58,1),x0=Gs(.42,0,.58,1),Kb=e=>Array.isArray(e)&&typeof e[0]!="number",v0=e=>Array.isArray(e)&&typeof e[0]=="number",Xb={linear:Ye,easeIn:Ub,easeInOut:x0,easeOut:Gb,circIn:Vc,circInOut:y0,circOut:g0,backIn:Ic,backInOut:m0,backOut:h0,anticipate:p0},Yb=e=>typeof e=="string",Ff=e=>{if(v0(e)){Ac(e.length===4);const[t,n,r,s]=e;return Gs(t,n,r,s)}else if(Yb(e))return Xb[e];return e},gi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function qb(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(u.schedule(c),e()),c(o)}const u={schedule:(c,d=!1,f=!1)=>{const x=f&&r?t:n;return d&&i.add(c),x.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0;const d=t;t=n,n=d,t.forEach(a),t.clear(),r=!1,s&&(s=!1,u.process(c))}};return u}const Qb=40;function w0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=gi.reduce((v,b)=>(v[b]=qb(i),v),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:x,postRender:w}=o,y=()=>{const v=vn.useManualTiming,b=v?s.timestamp:performance.now();n=!1,v||(s.delta=r?1e3/60:Math.max(Math.min(b-s.timestamp,Qb),1)),s.timestamp=b,s.isProcessing=!0,a.process(s),u.process(s),c.process(s),d.process(s),f.process(s),h.process(s),x.process(s),w.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(y))},k=()=>{n=!0,r=!0,s.isProcessing||e(y)};return{schedule:gi.reduce((v,b)=>{const P=o[b];return v[b]=(C,S=!1,j=!1)=>(n||k(),P.schedule(C,S,j)),v},{}),cancel:v=>{for(let b=0;b(Vi===void 0&&Fe.set(Se.isProcessing||vn.useManualTiming?Se.timestamp:performance.now()),Vi),set:e=>{Vi=e,queueMicrotask(Zb)}},k0=e=>t=>typeof t=="string"&&t.startsWith(e),b0=k0("--"),Jb=k0("var(--"),Oc=e=>Jb(e)?e2.test(e.split("/*")[0].trim()):!1,e2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function zf(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Dr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},As={...Dr,transform:e=>Pt(0,1,e)},yi={...Dr,default:1},ls=e=>Math.round(e*1e5)/1e5,Fc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function t2(e){return e==null}const n2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zc=(e,t)=>n=>!!(typeof n=="string"&&n2.test(n)&&n.startsWith(e)||t&&!t2(n)&&Object.prototype.hasOwnProperty.call(n,t)),S0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Fc);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},r2=e=>Pt(0,255,e),Da={...Dr,transform:e=>Math.round(r2(e))},Mn={test:zc("rgb","red"),parse:S0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Da.transform(e)+", "+Da.transform(t)+", "+Da.transform(n)+", "+ls(As.transform(r))+")"};function s2(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const nu={test:zc("#"),parse:s2,transform:Mn.transform},Ks=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),It=Ks("deg"),At=Ks("%"),V=Ks("px"),i2=Ks("vh"),o2=Ks("vw"),Bf={...At,parse:e=>At.parse(e)/100,transform:e=>At.transform(e*100)},or={test:zc("hsl","hue"),parse:S0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+At.transform(ls(t))+", "+At.transform(ls(n))+", "+ls(As.transform(r))+")"},ge={test:e=>Mn.test(e)||nu.test(e)||or.test(e),parse:e=>Mn.test(e)?Mn.parse(e):or.test(e)?or.parse(e):nu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Mn.transform(e):or.transform(e),getAnimatableNone:e=>{const t=ge.parse(e);return t.alpha=0,ge.transform(t)}},a2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function l2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Fc))==null?void 0:t.length)||0)+(((n=e.match(a2))==null?void 0:n.length)||0)>0}const j0="number",P0="color",u2="var",c2="var(",$f="${}",d2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(d2,u=>(ge.test(u)?(r.color.push(i),s.push(P0),n.push(ge.parse(u))):u.startsWith(c2)?(r.var.push(i),s.push(u2),n.push(u)):(r.number.push(i),s.push(j0),n.push(parseFloat(u))),++i,$f)).split($f);return{values:n,split:a,indexes:r,types:s}}function f2(e){return Tr(e).values}function T0({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;itypeof e=="number"?0:ge.test(e)?ge.getAnimatableNone(e):e,p2=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:m2(e);function g2(e){const t=Tr(e);return T0(t)(t.values.map((r,s)=>p2(r,t.split[s])))}const St={test:l2,parse:f2,createTransformer:h2,getAnimatableNone:g2};function Ra(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function y2({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;s=Ra(u,a,e+1/3),i=Ra(u,a,e),o=Ra(u,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function wo(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,Ia=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},x2=[nu,Mn,or],v2=e=>x2.find(t=>t.test(e));function Hf(e){const t=v2(e);if(!t)return!1;let n=t.parse(e);return t===or&&(n=y2(n)),n}const Wf=(e,t)=>{const n=Hf(e),r=Hf(t);if(!n||!r)return wo(e,t);const s={...n};return i=>(s.red=Ia(n.red,r.red,i),s.green=Ia(n.green,r.green,i),s.blue=Ia(n.blue,r.blue,i),s.alpha=ne(n.alpha,r.alpha,i),Mn.transform(s))},ru=new Set(["none","hidden"]);function w2(e,t){return ru.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function k2(e,t){return n=>ne(e,t,n)}function Bc(e){return typeof e=="number"?k2:typeof e=="string"?Oc(e)?wo:ge.test(e)?Wf:j2:Array.isArray(e)?C0:typeof e=="object"?ge.test(e)?Wf:b2:wo}function C0(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Bc(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function S2(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s{const n=St.createTransformer(t),r=Tr(e),s=Tr(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?ru.has(e)&&!s.values.length||ru.has(t)&&!r.values.length?w2(e,t):Us(C0(S2(r,s),s.values),n):wo(e,t)};function E0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):Bc(e)(e,t)}const P2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>X.update(t,n),stop:()=>ft(t),now:()=>Se.isProcessing?Se.timestamp:Fe.now()}},N0=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i=ko?1/0:t}function T2(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min($c(r),ko);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:lt(s)}}const fe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function su(e,t){return e*Math.sqrt(1-t*t)}const C2=12;function E2(e,t,n){let r=n;for(let s=1;s{const d=c*o,f=d*e,h=d-n,x=su(c,o),w=Math.exp(-f);return Va-h/x*w},i=c=>{const f=c*o*e,h=f*n+n,x=Math.pow(o,2)*Math.pow(c,2)*e,w=Math.exp(-f),y=su(Math.pow(c,2),o);return(-s(c)+Va>0?-1:1)*((h-x)*w)/y}):(s=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Va+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,u=E2(s,i,a);if(e=Je(e),isNaN(u))return{stiffness:fe.stiffness,damping:fe.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const _2=["duration","bounce"],M2=["stiffness","damping","mass"];function Uf(e,t){return t.some(n=>e[n]!==void 0)}function L2(e){let t={velocity:fe.velocity,stiffness:fe.stiffness,damping:fe.damping,mass:fe.mass,isResolvedFromDuration:!1,...e};if(!Uf(e,M2)&&Uf(e,_2))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Pt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:fe.mass,stiffness:s,damping:i}}else{const n=N2({...e,velocity:0});t={...t,...n,mass:fe.mass},t.isResolvedFromDuration=!0}return t}function bo(e=fe.visualDuration,t=fe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:x}=L2({...n,velocity:-lt(n.velocity||0)}),w=h||0,y=c/(2*Math.sqrt(u*d)),k=o-i,p=lt(Math.sqrt(u/d)),m=Math.abs(k)<5;r||(r=m?fe.restSpeed.granular:fe.restSpeed.default),s||(s=m?fe.restDelta.granular:fe.restDelta.default);let v,b,P,C,S,j;if(y<1)P=su(p,y),C=(w+y*p*k)/P,v=_=>{const F=Math.exp(-y*p*_);return o-F*(C*Math.sin(P*_)+k*Math.cos(P*_))},S=y*p*C+k*P,j=y*p*k-C*P,b=_=>Math.exp(-y*p*_)*(S*Math.sin(P*_)+j*Math.cos(P*_));else if(y===1){v=F=>o-Math.exp(-p*F)*(k+(w+p*k)*F);const _=w+p*k;b=F=>Math.exp(-p*F)*(p*_*F-w)}else{const _=p*Math.sqrt(y*y-1);v=N=>{const D=Math.exp(-y*p*N),$=Math.min(_*N,300);return o-D*((w+y*p*k)*Math.sinh($)+_*k*Math.cosh($))/_};const F=(w+y*p*k)/_,H=y*p*F-k*_,te=y*p*k-F*_;b=N=>{const D=Math.exp(-y*p*N),$=Math.min(_*N,300);return D*(H*Math.sinh($)+te*Math.cosh($))}}const L={calculatedDuration:x&&f||null,velocity:_=>Je(b(_)),next:_=>{if(!x&&y<1){const H=Math.exp(-y*p*_),te=Math.sin(P*_),N=Math.cos(P*_),D=o-H*(C*te+k*N),$=Je(H*(S*te+j*N));return a.done=Math.abs($)<=r&&Math.abs(o-D)<=s,a.value=a.done?o:D,a}const F=v(_);if(x)a.done=_>=f;else{const H=Je(b(_));a.done=Math.abs(H)<=r&&Math.abs(o-F)<=s}return a.value=a.done?o:F,a},toString:()=>{const _=Math.min($c(L),ko),F=N0(H=>L.next(_*H).value,_,30);return _+"ms "+F},toTransition:()=>{}};return L}bo.applyToOptions=e=>{const t=T2(e,100,bo);return e.ease=t.ease,e.duration=Je(t.duration),e.type="keyframes",e};const A2=5;function _0(e,t,n){const r=Math.max(t-A2,0);return Rc(n-e(r),t-r)}function iu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:u,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},x=j=>a!==void 0&&ju,w=j=>a===void 0?u:u===void 0||Math.abs(a-j)-y*Math.exp(-j/r),v=j=>p+m(j),b=j=>{const L=m(j),_=v(j);h.done=Math.abs(L)<=c,h.value=h.done?p:_};let P,C;const S=j=>{x(h.value)&&(P=j,C=bo({keyframes:[h.value,w(h.value)],velocity:_0(v,j,h.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:j=>{let L=!1;return!C&&P===void 0&&(L=!0,b(j),S(j)),P!==void 0&&j>=P?C.next(j-P):(!L&&b(j),h)}}}function D2(e,t,n){const r=[],s=n||vn.mix||E0,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=D2(t,r,s),u=a.length,c=d=>{if(o&&d1)for(;fc(Pt(e[0],e[i-1],d)):c}function R2(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Pr(0,t,r);e.push(ne(n,1,s))}}function M0(e){const t=[0];return R2(t,e.length-1),t}function I2(e,t){return e.map(n=>n*t)}function V2(e,t){return e.map(()=>t||x0).splice(0,e.length-1)}function us({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Kb(r)?r.map(Ff):Ff(r),i={done:!1,value:t[0]},o=I2(n&&n.length===t.length?n:M0(t),e),a=Hc(o,t,{ease:Array.isArray(s)?s:V2(t,s)});return{calculatedDuration:e,next:u=>(i.value=a(u),i.done=u>=e,i)}}const O2=e=>e!==null;function Zo(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(O2),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const F2={decay:iu,inertia:iu,tween:us,keyframes:us,spring:bo};function L0(e){typeof e.type=="string"&&(e.type=F2[e.type])}class Wc{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const z2=e=>e/100;class Ds extends Wc{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==Fe.now()&&this.tick(Fe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;L0(t);const{type:n=us,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const u=n||us;u!==us&&typeof a[0]!="number"&&(this.mixKeyframes=Us(z2,E0(a[0],a[1])),a=[0,100]);const c=u({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=$c(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:f,repeatType:h,repeatDelay:x,type:w,onUpdate:y,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const p=this.currentTime-c*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?p<0:p>s;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,b=r;if(f){const j=Math.min(this.currentTime,s)/a;let L=Math.floor(j),_=j%1;!_&&j>=1&&(_=1),_===1&&L--,L=Math.min(L,f+1),!!(L%2)&&(h==="reverse"?(_=1-_,x&&(_-=x/a)):h==="mirror"&&(b=o)),v=Pt(0,1,_)*a}let P;m?(this.delayState.value=d[0],P=this.delayState):P=b.next(v),i&&!m&&(P.value=i(P.value));let{done:C}=P;!m&&u!==null&&(C=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return S&&w!==iu&&(P.value=Zo(d,this.options,k,this.speed)),y&&y(P.value),S&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(this.currentTime)}set time(t){t=Je(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return _0(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Fe.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=lt(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=P2,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Fe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function B2(e){for(let t=1;te*180/Math.PI,ou=e=>{const t=Ln(Math.atan2(e[1],e[0]));return au(t)},$2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ou,rotateZ:ou,skewX:e=>Ln(Math.atan(e[1])),skewY:e=>Ln(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},au=e=>(e=e%360,e<0&&(e+=360),e),Gf=ou,Kf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Xf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),H2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Kf,scaleY:Xf,scale:e=>(Kf(e)+Xf(e))/2,rotateX:e=>au(Ln(Math.atan2(e[6],e[5]))),rotateY:e=>au(Ln(Math.atan2(-e[2],e[0]))),rotateZ:Gf,rotate:Gf,skewX:e=>Ln(Math.atan(e[4])),skewY:e=>Ln(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function lu(e){return e.includes("scale")?1:0}function uu(e,t){if(!e||e==="none")return lu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=H2,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=$2,s=a}if(!s)return lu(t);const i=r[t],o=s[1].split(",").map(U2);return typeof i=="function"?i(o):o[i]}const W2=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return uu(n,t)};function U2(e){return parseFloat(e.trim())}const Rr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ir=new Set([...Rr,"pathRotation"]),Yf=e=>e===Dr||e===V,G2=new Set(["x","y","z"]),K2=Rr.filter(e=>!G2.has(e));function X2(e){const t=[];return K2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const on={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>uu(t,"x"),y:(e,{transform:t})=>uu(t,"y")};on.translateX=on.x;on.translateY=on.y;const Rn=new Set;let cu=!1,du=!1,fu=!1;function A0(){if(du){const e=Array.from(Rn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=X2(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}du=!1,cu=!1,Rn.forEach(e=>e.complete(fu)),Rn.clear()}function D0(){Rn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(du=!0)})}function Y2(){fu=!0,D0(),A0(),fu=!1}class Uc{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Rn.add(this),cu||(cu=!0,X.read(D0),X.resolveKeyframes(A0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}B2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Rn.delete(this)}cancel(){this.state==="scheduled"&&(Rn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const q2=e=>e.startsWith("--");function R0(e,t,n){q2(t)?e.style.setProperty(t,n):e.style[t]=n}const Q2={};function Gc(e,t){const n=u0(e);return()=>Q2[t]??n()}const Kc=Gc(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),I0=Gc(()=>window.ViewTimeline!==void 0,"viewTimeline"),V0=Gc(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qr([0,.65,.55,1]),circOut:Qr([.55,0,1,.45]),backIn:Qr([.31,.01,.66,-.59]),backOut:Qr([.33,1.53,.69,.99])};function O0(e,t){if(e)return typeof e=="function"?V0()?N0(e,t):"ease-out":v0(e)?Qr(e):Array.isArray(e)?e.map(n=>O0(n,t)||qf.easeOut):qf[e]}function Z2(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:u}={},c=void 0){const d={[t]:n};u&&(d.offset=u);const f=O0(a,s);Array.isArray(f)&&(d.easing=f);const h={delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}function F0(e){return typeof e=="function"&&"applyToOptions"in e}function J2({type:e,...t}){return F0(e)&&V0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class z0 extends Wc{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Ac(typeof t.type!="string");const c=J2(t);this.animation=Z2(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Zo(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(d),R0(n,r,d),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Je(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Kc()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Ye):s(this)}}const B0={anticipate:p0,backInOut:m0,circInOut:y0};function eS(e){return e in B0}function tS(e){typeof e.ease=="string"&&eS(e.ease)&&(e.ease=B0[e.ease])}const Oa=10;class nS extends z0{constructor(t){tS(t),L0(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ds({...o,autoplay:!1}),u=Math.max(Oa,Fe.now()-this.startTime),c=Pt(0,Oa,u-Oa),d=a.sample(u).value,{name:f}=this.options;i&&f&&R0(i,f,d),n.setWithVelocity(a.sample(Math.max(0,u-c)).value,d,c),a.stop()}}const Qf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(St.test(e)||e==="0")&&!e.startsWith("url("));function rS(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function uS(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return lS()&&n&&($0.has(n)||aS.has(n)&&oS(a))&&(n!=="transform"||!d)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const cS=40;class dS extends Wc{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:u,motionValue:c,element:d,...f}){var w;super(),this.stop=()=>{var y,k;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(k=this.keyframeResolver)==null||k.cancel()},this.createdAt=Fe.now();const h={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:u,motionValue:c,element:d,...f},x=(d==null?void 0:d.KeyframeResolver)||Uc;this.keyframeResolver=new x(a,(y,k,p)=>this.onKeyframesResolved(y,k,h,!p),u,c,d),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,s){var p,m;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:u,isHandoff:c,onUpdate:d}=r;this.resolvedAt=Fe.now();let f=!0;sS(t,i,o,a)||(f=!1,(vn.instantAnimations||!u)&&(d==null||d(Zo(t,r,n))),t[0]=t[t.length-1],hu(r),r.repeat=0);const x={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>cS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},w=f&&!c&&uS(x),y=(m=(p=x.motionValue)==null?void 0:p.owner)==null?void 0:m.current;let k;if(w)try{k=new nS({...x,element:y})}catch{k=new Ds(x)}else k=new Ds(x);k.finished.then(()=>{this.notifyFinished()}).catch(Ye),this.pendingTimeline&&(this.stopTimeline=k.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=k}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Y2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function H0(e,t,n,r=0,s=1){const i=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(i,o):s===1?i*r:a-i*r}const Zf=30,fS=e=>!isNaN(parseFloat(e)),cs={current:void 0};class hS{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=Fe.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Fe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=fS(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Dc);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return cs.current&&cs.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zf);return Rc(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wt(e,t){return new hS(e,t)}function W0(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Xc(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?W0(n,e):n}const mS={type:"spring",stiffness:500,damping:25,restSpeed:10},pS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gS={type:"keyframes",duration:.8},yS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xS=(e,{keyframes:t})=>t.length>2?gS:Ir.has(e)?e.startsWith("scale")?pS(t[1]):mS:yS,vS=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function wS(e){for(const t in e)if(!vS.has(t))return!0;return!1}const Yc=(e,t,n,r={},s,i)=>o=>{const a=Xc(r,e)||{},u=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Je(u);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};wS(a)||Object.assign(d,xS(e,d)),d.duration&&(d.duration=Je(d.duration)),d.repeatDelay&&(d.repeatDelay=Je(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(hu(d),d.delay===0&&(f=!0)),(vn.instantAnimations||vn.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(f=!0,hu(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!i&&t.get()!==void 0){const h=Zo(d.keyframes,a);if(h!==void 0){X.update(()=>{d.onUpdate(h),d.onComplete()});return}}return a.isSync?new Ds(d):new dS(d)},kS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bS(e){const t=kS.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function U0(e,t,n=1){const[r,s]=bS(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return o0(o)?parseFloat(o):o}return Oc(s)?U0(s,t,n+1):s}function Jf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function qc(e,t,n,r){if(typeof t=="function"){const[s,i]=Jf(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Jf(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function In(e,t,n){const r=e.getProps();return qc(r,t,n!==void 0?n:r.custom,e)}const G0=new Set(["width","height","top","left","right","bottom",...Rr]),mu=e=>Array.isArray(e);function SS(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wt(n))}function jS(e){return mu(e)?e[e.length-1]||0:e}function PS(e,t){const n=In(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=jS(i[o]);SS(e,o,a)}}const ke=e=>!!(e&&e.getVelocity);function TS(e){return!!(ke(e)&&e.add)}function pu(e,t){const n=e.getValue("willChange");if(TS(n))return n.add(t);if(!n&&vn.WillChange){const r=new vn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Qc(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const CS="framerAppearId",K0="data-"+Qc(CS);function X0(e){return e.props[K0]}function ES({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Y0(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();i=i?W0(i,u):u;const c=i==null?void 0:i.reduceMotion,d=i==null?void 0:i.skipAnimations;r&&(i=r);const f=[],h=s&&e.animationState&&e.animationState.getState()[s],x=i==null?void 0:i.path;x&&x.animateVisualElement(e,a,i,n,f);for(const w in a){const y=e.getValue(w,e.latestValues[w]??null),k=a[w];if(k===void 0||h&&ES(h,w))continue;const p={delay:n,...Xc(i||{},w)};d&&(p.skipAnimations=!0);const m=y.get();if(m!==void 0&&!y.isAnimating()&&!Array.isArray(k)&&k===m&&!p.velocity){X.update(()=>y.set(k));continue}let v=!1;if(window.MotionHandoffAnimation){const C=X0(e);if(C){const S=window.MotionHandoffAnimation(C,w,X);S!==null&&(p.startTime=S,v=!0)}}pu(e,w);const b=c??e.shouldReduceMotion;y.start(Yc(w,y,k,b&&G0.has(w)?{type:!1}:p,e,v));const P=y.animation;P&&f.push(P)}if(o){const w=()=>X.update(()=>{o&&PS(e,o)});f.length?Promise.all(f).then(w):w()}return f}function gu(e,t,n={}){var u;const r=In(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(Y0(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return NS(e,t,c,d,f,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,d]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>d())}else return Promise.all([i(),o(n.delay)])}function NS(e,t,n=0,r=0,s=0,i=1,o){const a=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),a.push(gu(u,t,{...o,delay:n+(typeof r=="function"?0:r)+H0(e.variantChildren,u,r,s,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function _S(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>gu(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=gu(e,t,n);else{const s=typeof t=="function"?In(e,t,n.custom):t;r=Promise.all(Y0(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const MS={test:e=>e==="auto",parse:e=>e},q0=e=>t=>t.test(e),Q0=[Dr,V,At,It,o2,i2,MS],eh=e=>Q0.find(q0(e));function LS(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||l0(e):!0}const AS=new Set(["brightness","contrast","saturate","opacity"]);function DS(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fc)||[];if(!r)return e;const s=n.replace(r,"");let i=AS.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const RS=/\b([a-z-]*)\(.*?\)/gu,yu={...St,getAnimatableNone:e=>{const t=e.match(RS);return t?t.map(DS).join(" "):e}},xu={...St,getAnimatableNone:e=>{const t=St.parse(e);return St.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},th={...Dr,transform:Math.round},IS={rotate:It,pathRotation:It,rotateX:It,rotateY:It,rotateZ:It,scale:yi,scaleX:yi,scaleY:yi,scaleZ:yi,skew:It,skewX:It,skewY:It,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:As,originX:Bf,originY:Bf,originZ:V},So={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...IS,zIndex:th,fillOpacity:As,strokeOpacity:As,numOctaves:th},VS={...So,color:ge,backgroundColor:ge,outlineColor:ge,fill:ge,stroke:ge,borderColor:ge,borderTopColor:ge,borderRightColor:ge,borderBottomColor:ge,borderLeftColor:ge,filter:yu,WebkitFilter:yu,mask:xu,WebkitMask:xu},Z0=e=>VS[e],OS=new Set([yu,xu]);function J0(e,t){let n=Z0(e);return OS.has(n)||(n=St),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const FS=new Set(["auto","none","0"]);function zS(e,t,n){let r=0,s;for(;r{t.getValue(u).set(c)}),this.resolveNoneKeyframes()}}const Zc=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function ey(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const vu=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ds(e){return a0(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Cr,cancel:ty}=w0(queueMicrotask,!1),gt={x:!1,y:!1};function ny(){return gt.x||gt.y}function $S(e){return e==="x"||e==="y"?gt[e]?null:(gt[e]=!0,()=>{gt[e]=!1}):gt.x||gt.y?null:(gt.x=gt.y=!0,()=>{gt.x=gt.y=!1})}function ry(e,t){const n=ey(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function HS(e){return!(e.pointerType==="touch"||ny())}function WS(e,t,n={}){const[r,s,i]=ry(e,n);return r.forEach(o=>{let a=!1,u=!1,c;const d=()=>{o.removeEventListener("pointerleave",w)},f=k=>{c&&(c(k),c=void 0),d()},h=k=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(k))},x=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},w=k=>{if(k.pointerType!=="touch"){if(a){u=!0;return}f(k)}},y=k=>{if(!HS(k))return;u=!1;const p=t(o,k);typeof p=="function"&&(c=p,o.addEventListener("pointerleave",w,s))};o.addEventListener("pointerenter",y,s),o.addEventListener("pointerdown",x,s)}),i}const sy=(e,t)=>t?e===t?!0:sy(e,t.parentElement):!1,Jc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,US=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function GS(e){return US.has(e.tagName)||e.isContentEditable===!0}const KS=new Set(["INPUT","SELECT","TEXTAREA"]);function XS(e){return KS.has(e.tagName)||e.isContentEditable===!0}const Oi=new WeakSet;function nh(e){return t=>{t.key==="Enter"&&e(t)}}function Fa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const YS=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=nh(()=>{if(Oi.has(n))return;Fa(n,"down");const s=nh(()=>{Fa(n,"up")}),i=()=>Fa(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function rh(e){return Jc(e)&&!ny()}const sh=new WeakSet;function qS(e,t,n={}){const[r,s,i]=ry(e,n),o=a=>{const u=a.currentTarget;if(!rh(a)||sh.has(a))return;Oi.add(u),n.stopPropagation&&sh.add(a);const c=t(u,a),d={...s,capture:!0},f=(w,y)=>{window.removeEventListener("pointerup",h,d),window.removeEventListener("pointercancel",x,d),Oi.has(u)&&Oi.delete(u),rh(w)&&typeof c=="function"&&c(w,{success:y})},h=w=>{f(w,u===window||u===document||n.useGlobalTarget||sy(u,w.target))},x=w=>{f(w,!1)};window.addEventListener("pointerup",h,d),window.addEventListener("pointercancel",x,d)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),ds(a)&&(a.addEventListener("focus",c=>YS(c,s)),!GS(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function ed(e){return a0(e)&&"ownerSVGElement"in e}const Fi=new WeakMap;let qt;const iy=(e,t,n)=>(r,s)=>s&&s[0]?s[0][e+"Size"]:ed(r)&&"getBBox"in r?r.getBBox()[t]:r[n],QS=iy("inline","width","offsetWidth"),ZS=iy("block","height","offsetHeight");function JS({target:e,borderBoxSize:t}){var n;(n=Fi.get(e))==null||n.forEach(r=>{r(e,{get width(){return QS(e,t)},get height(){return ZS(e,t)}})})}function ej(e){e.forEach(JS)}function tj(){typeof ResizeObserver>"u"||(qt=new ResizeObserver(ej))}function nj(e,t){qt||tj();const n=ey(e);return n.forEach(r=>{let s=Fi.get(r);s||(s=new Set,Fi.set(r,s)),s.add(t),qt==null||qt.observe(r)}),()=>{n.forEach(r=>{const s=Fi.get(r);s==null||s.delete(t),s!=null&&s.size||qt==null||qt.unobserve(r)})}}const zi=new Set;let ar;function rj(){ar=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};zi.forEach(t=>t(e))},window.addEventListener("resize",ar)}function sj(e){return zi.add(e),ar||rj(),()=>{zi.delete(e),!zi.size&&typeof ar=="function"&&(window.removeEventListener("resize",ar),ar=void 0)}}function wu(e,t){return typeof e=="function"?sj(e):nj(e,t)}function oy(e,t){let n;const r=()=>{const{currentTime:s}=t,o=(s===null?0:s.value)/100;n!==o&&e(o),n=o};return X.preUpdate(r,!0),()=>ft(r)}function ij(e){return ed(e)&&e.tagName==="svg"}function oj(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],s=e[1+n],i=e[2+n],o=e[3+n],a=Hc(s,i,o);return t?a(r):a}function aj(e,t,n={}){const r=e.get();let s=null,i=r,o;const a=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,u=()=>{s&&(s.stop(),s=null),e.animation=void 0},c=()=>{const f=ih(e.get()),h=ih(i);if(f===h){u();return}const x=s?s.getGeneratorVelocity():e.getVelocity();u(),s=new Ds({keyframes:[f,h],velocity:x,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})},d=()=>{var f;c(),e.animation=s??void 0,(f=e.events.animationStart)==null||f.notify(),s==null||s.then(()=>{var h;e.animation=void 0,(h=e.events.animationComplete)==null||h.notify()})};if(e.attach((f,h)=>{i=f,o=x=>h(za(x,a)),X.postRender(d)},u),ke(t)){let f=n.skipInitialAnimation===!0;const h=t.on("change",w=>{f?(f=!1,e.jump(za(w,a),!1)):e.set(za(w,a))}),x=e.on("destroy",h);return()=>{h(),x()}}return u}function za(e,t){return t?e+t:e}function ih(e){return typeof e=="number"?e:parseFloat(e)}const lj=[...Q0,ge,St],uj=e=>lj.find(q0(e)),oh=()=>({translate:0,scale:1,origin:0,originPoint:0}),lr=()=>({x:oh(),y:oh()}),ah=()=>({min:0,max:0}),xe=()=>({x:ah(),y:ah()}),cj=new WeakMap;function Jo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rs(e){return typeof e=="string"||Array.isArray(e)}const td=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nd=["initial",...td];function ea(e){return Jo(e.animate)||nd.some(t=>Rs(e[t]))}function ay(e){return!!(ea(e)||e.variants)}function dj(e,t,n){for(const r in t){const s=t[r],i=n[r];if(ke(s))e.addValue(r,s);else if(ke(i))e.addValue(r,wt(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,wt(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ku={current:null},ly={current:!1},fj=typeof window<"u";function hj(){if(ly.current=!0,!!fj)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ku.current=e.matches;e.addEventListener("change",t),t()}else ku.current=!1}const lh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let jo={};function uy(e){jo=e}function mj(){return jo}class pj{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Uc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=Fe.now();this.renderScheduledAtthis.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ly.current||hj(),this.shouldReduceMotion=ku.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),ft(this.notifyUpdate),ft(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&$0.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:c,duration:d}=n.accelerate,f=new z0({element:this.current,name:t,keyframes:a,times:u,ease:c,duration:Je(d)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=Ir.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in jo){const n=jo[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=wt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(o0(r)||l0(r))?r=parseFloat(r):!uj(r)&&St.test(n)&&(r=J0(t,n)),this.setBaseTarget(t,ke(r)?r.get():r)),ke(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=qc(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ke(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Dc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Cr.render(this.render)}}class cy extends pj{constructor(){super(...arguments),this.KeyframeResolver=BS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ke(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Sn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function dy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function gj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yj(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ba(e){return e===void 0||e===1}function bu({scale:e,scaleX:t,scaleY:n}){return!Ba(e)||!Ba(t)||!Ba(n)}function Cn(e){return bu(e)||fy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function fy(e){return uh(e.x)||uh(e.y)}function uh(e){return e&&e!=="0%"}function Po(e,t,n){const r=e-n,s=t*r;return n+s}function ch(e,t,n,r,s){return s!==void 0&&(e=Po(e,s,r)),Po(e,n,r)+t}function Su(e,t=0,n=1,r,s){e.min=ch(e.min,t,n,r,s),e.max=ch(e.max,t,n,r,s)}function hy(e,{x:t,y:n}){Su(e.x,t.translate,t.scale,t.originPoint),Su(e.y,n.translate,n.scale,n.originPoint)}const dh=.999999999999,fh=1.0000000000001;function xj(e,t,n,r=!1){var a;const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let u=0;udh&&(t.x=1),t.ydh&&(t.y=1)}function Nt(e,t){e.min+=t,e.max+=t}function hh(e,t,n,r,s=.5){const i=ne(e.min,e.max,s);Su(e,t,n,i,r)}function mh(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Bi(e,t,n){const r=n??e;hh(e.x,mh(t.x,r.x),t.scaleX,t.scale,t.originX),hh(e.y,mh(t.y,r.y),t.scaleY,t.scale,t.originY)}function my(e,t){return dy(yj(e.getBoundingClientRect(),t))}function vj(e,t,n){const r=my(e,n),{scroll:s}=t;return s&&(Nt(r.x,s.offset.x),Nt(r.y,s.offset.y)),r}const wj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kj=Rr.length;function bj(e,t,n){let r="",s=!0;for(let o=0;o{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=ph(e,t.target.x),r=ph(e,t.target.y);return`${n}% ${r}%`}},Sj={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=St.parse(e);if(s.length>5)return r;const i=St.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=u;const c=ne(a,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},ju={borderRadius:{...Gr,applyTo:[...Zc]},borderTopLeftRadius:Gr,borderTopRightRadius:Gr,borderBottomLeftRadius:Gr,borderBottomRightRadius:Gr,boxShadow:Sj};function gy(e,{layout:t,layoutId:n}){return Ir.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ju[e]||e==="opacity")}function sd(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(ke(r[a])||s&&ke(s[a])||gy(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function jj(e){return window.getComputedStyle(e)}class Pj extends cy{constructor(){super(...arguments),this.type="html",this.renderInstance=py}readValueFromInstance(t,n){var r;if(Ir.has(n))return(r=this.projection)!=null&&r.isProjecting?lu(n):W2(t,n);{const s=jj(t),i=(b0(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return my(t,n)}build(t,n,r){rd(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return sd(t,n,r)}}const Tj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cj={offset:"strokeDashoffset",array:"strokeDasharray"};function Ej(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?Tj:Cj;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Nj=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function yy(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},u,c,d){if(rd(e,a,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox);for(const x of Nj)f[x]!==void 0&&(h[x]=f[x],delete f[x]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&Ej(f,s,i,o,!1)}const xy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),vy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _j(e,t,n,r){py(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(xy.has(s)?s:Qc(s),t.attrs[s])}function wy(e,t,n){const r=sd(e,t,n);for(const s in e)if(ke(e[s])||ke(t[s])){const i=Rr.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class Mj extends cy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ir.has(n)){const r=Z0(n);return r&&r.default||0}return n=xy.has(n)?n:Qc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return wy(t,n,r)}build(t,n,r){yy(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){_j(t,n,r,s)}mount(t){this.isSVGTag=vy(t.tagName),super.mount(t)}}const Lj=nd.length;function ky(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ky(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>_S(e,n,r)))}function Ij(e){let t=Rj(e),n=gh(),r=!0,s=!1;const i=c=>(d,f)=>{var x;const h=In(e,f,c==="exit"?(x=e.presenceContext)==null?void 0:x.custom:void 0);if(h){const{transition:w,transitionEnd:y,...k}=h;d={...d,...k,...y}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=ky(e.parent)||{},h=[],x=new Set;let w={},y=1/0;for(let p=0;py&&P,_=!1;const F=Array.isArray(b)?b:[b];let H=F.reduce(i(m),{});C===!1&&(H={});const{prevResolvedValues:te={}}=v,N={...te,...H},D=E=>{L=!0,x.has(E)&&(_=!0,x.delete(E)),v.needsAnimating[E]=!0;const T=e.getValue(E);T&&(T.liveStyle=!1)};for(const E in N){const T=H[E],A=te[E];if(w.hasOwnProperty(E))continue;let z=!1;mu(T)&&mu(A)?z=!by(T,A)||j:z=T!==A,z?T!=null?D(E):x.add(E):T!==void 0&&x.has(E)?D(E):v.protectedKeys[E]=!0}v.prevProp=b,v.prevResolvedValues=H,v.isActive&&(w={...w,...H}),(r||s)&&e.blockInitialAnimation&&(L=!1);const $=S&&j;L&&(!$||_)&&h.push(...F.map(E=>{const T={type:m};if(typeof E=="string"&&(r||s)&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:A}=e,z=In(A,E);if(A.enteringChildren&&z){const{delayChildren:q}=z.transition||{};T.delay=H0(A.enteringChildren,e,q)}}return{animation:E,options:T}}))}if(x.size){const p={};if(typeof d.initial!="boolean"){const m=In(e,Array.isArray(d.initial)?d.initial[0]:d.initial);m&&m.transition&&(p.transition=m.transition)}x.forEach(m=>{const v=e.getBaseTarget(m),b=e.getValue(m);b&&(b.liveStyle=!0),p[m]=v??null}),h.push({animation:p})}let k=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(k=!1),r=!1,s=!1,k?t(h):Promise.resolve()}function u(c,d){var h;if(n[c].isActive===d)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(x=>{var w;return(w=x.animationState)==null?void 0:w.setActive(c,d)}),n[c].isActive=d;const f=a(c);for(const x in n)n[x].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=gh(),s=!0}}}function Vj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!by(t,e):!1}function jn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gh(){return{animate:jn(!0),whileInView:jn(),whileHover:jn(),whileTap:jn(),whileDrag:jn(),whileFocus:jn(),exit:jn()}}function Pu(e,t){e.min=t.min,e.max=t.max}function pt(e,t){Pu(e.x,t.x),Pu(e.y,t.y)}function yh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Sy=1e-4,Oj=1-Sy,Fj=1+Sy,jy=.01,zj=0-jy,Bj=0+jy;function ze(e){return e.max-e.min}function $j(e,t,n){return Math.abs(e-t)<=n}function xh(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=ze(n)/ze(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Oj&&e.scale<=Fj||isNaN(e.scale))&&(e.scale=1),(e.translate>=zj&&e.translate<=Bj||isNaN(e.translate))&&(e.translate=0)}function fs(e,t,n,r){xh(e.x,t.x,n.x,r?r.originX:void 0),xh(e.y,t.y,n.y,r?r.originY:void 0)}function vh(e,t,n,r=0){const s=r?ne(n.min,n.max,r):n.min;e.min=s+t.min,e.max=e.min+ze(t)}function Hj(e,t,n,r){vh(e.x,t.x,n.x,r==null?void 0:r.x),vh(e.y,t.y,n.y,r==null?void 0:r.y)}function wh(e,t,n,r=0){const s=r?ne(n.min,n.max,r):n.min;e.min=t.min-s,e.max=e.min+ze(t)}function To(e,t,n,r){wh(e.x,t.x,n.x,r==null?void 0:r.x),wh(e.y,t.y,n.y,r==null?void 0:r.y)}function kh(e,t,n,r,s){return e-=t,e=Po(e,1/n,r),s!==void 0&&(e=Po(e,1/s,r)),e}function Wj(e,t=0,n=1,r=.5,s,i=e,o=e){if(At.test(t)&&(t=parseFloat(t),t=ne(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ne(i.min,i.max,r);e===i&&(a-=t),e.min=kh(e.min,t,n,a,s),e.max=kh(e.max,t,n,a,s)}function bh(e,t,[n,r,s],i,o){Wj(e,t[n],t[r],t[s],t.scale,i,o)}const Uj=["x","scaleX","originX"],Gj=["y","scaleY","originY"];function Sh(e,t,n,r){bh(e.x,t,Uj,n?n.x:void 0,r?r.x:void 0),bh(e.y,t,Gj,n?n.y:void 0,r?r.y:void 0)}function jh(e){return e.translate===0&&e.scale===1}function Py(e){return jh(e.x)&&jh(e.y)}function Ph(e,t){return e.min===t.min&&e.max===t.max}function Kj(e,t){return Ph(e.x,t.x)&&Ph(e.y,t.y)}function Th(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ty(e,t){return Th(e.x,t.x)&&Th(e.y,t.y)}function Ch(e){return ze(e.x)/ze(e.y)}function Eh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Et(e){return[e("x"),e("y")]}function Xj(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,pathRotation:f,rotateX:h,rotateY:x,skewX:w,skewY:y}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),x&&(r+=`rotateY(${x}deg) `),w&&(r+=`skewX(${w}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,u=e.y.scale*t.y;return(a!==1||u!==1)&&(r+=`scale(${a}, ${u})`),r||"none"}const Yj=Zc.length,Nh=e=>typeof e=="string"?parseFloat(e):e,_h=e=>typeof e=="number"||V.test(e);function qj(e,t,n,r,s,i){s?(e.opacity=ne(0,n.opacity??1,Qj(r)),e.opacityExit=ne(t.opacity??1,0,Zj(r))):i&&(e.opacity=ne(t.opacity??1,n.opacity??1,r));for(let o=0;ort?1:n(Pr(e,t,r))}function Jj(e,t,n){const r=ke(e)?e:wt(e);return r.start(Yc("",r,t,n)),r.animation}function Is(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const eP=(e,t)=>e.depth-t.depth;class tP{constructor(){this.children=[],this.isDirty=!1}add(t){Lc(this.children,t),this.isDirty=!0}remove(t){vo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eP),this.isDirty=!1,this.children.forEach(t)}}function nP(e,t){const n=Fe.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(ft(r),e(i-t))};return X.setup(r,!0),()=>ft(r)}function $i(e){return ke(e)?e.get():e}class rP{constructor(){this.members=[]}add(t){Lc(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const s=r.instance;(!s||s.isConnected===!1)&&!r.snapshot&&(vo(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(vo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,n){var s;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:o}=t.options;(i===void 0||i!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,s,i,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(s=t.resumingFrom)==null?void 0:(i=s.options).onExitComplete)==null||o.call(i)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Hi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},$a=["","X","Y","Z"],sP=1e3;let iP=0;function Ha(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ey(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=X0(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ey(r)}function Ny({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=iP++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(lP),this.nodes.forEach(mP),this.nodes.forEach(pP),this.nodes.forEach(uP)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;X.read(()=>{f=window.innerWidth}),e(o,()=>{const x=window.innerWidth;x!==f&&(f=x,this.root.updateBlockedByResize=!0,d&&d(),d=nP(h,250),Hi.hasAnimatedSinceResize&&(Hi.hasAnimatedSinceResize=!1,this.nodes.forEach(Dh)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||wP,{onLayoutAnimationStart:y,onLayoutAnimationComplete:k}=c.getProps(),p=!this.targetLayout||!Ty(this.targetLayout,x),m=!f&&h;if(this.options.layoutRoot||this.resumeFrom||m||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Xc(w,"layout"),onPlay:y,onComplete:k};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(d,m,v.path)}else f||Dh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gP),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ey(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ze(this.snapshot.measuredBox.x)&&!ze(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const S=C/1e3,j=P==null?void 0:P(S);j?(h.x.translate=j.x,h.x.scale=ne(o.x.scale,1,S),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=j.y,h.y.scale=ne(o.y.scale,1,S),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(Rh(h.x,o.x,S),Rh(h.y,o.y,S)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(To(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),xP(this.relativeTarget,this.relativeTargetOrigin,x,S),b&&Kj(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=xe()),pt(b,this.relativeTarget)),k&&(this.animationValues=f,qj(f,d,this.latestValues,S,v,m)),j&&j.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=j.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,u,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||c.stop(),this.pendingAnimation&&(ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{Hi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=wt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Jj(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(sP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:u,layout:c,latestValues:d}=o;if(!(!a||!u||!c)){if(this!==o&&this.layout&&c&&_y(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||xe();const f=ze(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const h=ze(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+h}pt(a,u),Bi(a,d),fs(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new rP),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const c={};u.z&&Ha("z",o,c,this.animationValues);for(let d=0;d<$a.length;d++)Ha(`rotate${$a[d]}`,o,c,this.animationValues),Ha(`skew${$a[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=$i(a==null?void 0:a.pointerEvents)||"",o.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=$i(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Cn(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=Xj(this.projectionDeltaWithTransform,this.treeScale,d);u&&(f=u(d,f)),o.transform=f;const{x:h,y:x}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${x.origin*100}% 0`,c.animationValues?o.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const w in ju){if(d[w]===void 0)continue;const{correct:y,applyTo:k,isCSSVariable:p}=ju[w],m=f==="none"?d[w]:y(d[w],c);if(k){const v=k.length;for(let b=0;b{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Lh),this.root.sharedNodes.clear()}}}function oP(e){e.updateLayout()}function aP(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if(i==="size")Et(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],x=ze(h);h.min=r[f].min,h.max=h.min+x});else if(i==="x"||i==="y"){const f=i==="x"?"y":"x";Pu(o?t.measuredBox[f]:t.layoutBox[f],r[f])}else _y(i,t.layoutBox,r)&&Et(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],x=ze(r[f]);h.max=h.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+x)});const a=lr();fs(a,r,t.layoutBox);const u=lr();o?fs(u,e.applyTransform(s,!0),t.measuredBox):fs(u,r,t.layoutBox);const c=!Py(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:x}=f;if(h&&x){const w=e.options.layoutAnchor||void 0,y=xe();To(y,t.layoutBox,h.layoutBox,w);const k=xe();To(k,r,x.layoutBox,w),Ty(y,k)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=k,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function lP(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function uP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cP(e){e.clearSnapshot()}function Lh(e){e.clearMeasurements()}function dP(e){e.isLayoutDirty=!0,e.updateLayout()}function Ah(e){e.isLayoutDirty=!1}function fP(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function hP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Dh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mP(e){e.resolveTargetDelta()}function pP(e){e.calcProjection()}function gP(e){e.resetSkewAndRotation()}function yP(e){e.removeLeadSnapshot()}function Rh(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ih(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function xP(e,t,n,r){Ih(e.x,t.x,n.x,r),Ih(e.y,t.y,n.y,r)}function vP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wP={duration:.45,ease:[.4,0,.1,1]},Vh=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Oh=Vh("applewebkit/")&&!Vh("chrome/")?Math.round:Ye;function Fh(e){e.min=Oh(e.min),e.max=Oh(e.max)}function kP(e){Fh(e.x),Fh(e.y)}function _y(e,t,n){return e==="position"||e==="preserve-aspect"&&!$j(Ch(t),Ch(n),.2)}function bP(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const SP=Ny({attachResizeListener:(e,t)=>Is(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Wa={current:void 0},My=Ny({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wa.current){const e=new SP({});e.mount(window),e.setOptions({layoutScroll:!0}),Wa.current=e}return Wa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Xs=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function zh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jP(...e){return t=>{let n=!1;const r=e.map(s=>{const i=zh(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{width:x,height:w,top:y,left:k,right:p,bottom:m,direction:v}=u.current;if(t||i===!1||!a.current||!x||!w)return;const b=v==="rtl",P=n==="left"?b?`right: ${p}`:`left: ${k}`:b?`left: ${k}`:`right: ${p}`,C=r==="bottom"?`bottom: ${m}`:`top: ${y}`;a.current.dataset.motionPopId=o;const S=document.createElement("style");c&&(S.nonce=c);const j=s??document.head;return j.appendChild(S),S.sheet&&S.sheet.insertRule(` + [data-motion-pop-id="${o}"] { + position: absolute !important; + width: ${x}px !important; + height: ${w}px !important; + ${P}px !important; + ${C}px !important; + } + `),()=>{var L;(L=a.current)==null||L.removeAttribute("data-motion-pop-id"),j.contains(S)&&j.removeChild(S)}},[t]),l.jsx(TP,{isPresent:t,childRef:a,sizeRef:u,pop:i,children:i===!1?e:g.cloneElement(e,{ref:f})})}const EP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a,anchorY:u,root:c})=>{const d=xn(NP),f=g.useId(),h=g.useRef(n),x=g.useRef(r);Ws(()=>{h.current=n,x.current=r});let w=!0,y=g.useMemo(()=>(w=!1,{id:f,initial:t,isPresent:n,custom:s,onExitComplete:k=>{d.set(k,!0);for(const p of d.values())if(!p)return;r&&r()},register:k=>(d.set(k,!1),()=>{var p;d.delete(k),!h.current&&!d.size&&((p=x.current)==null||p.call(x))})}),[n,d,r]);return i&&w&&(y={...y}),g.useMemo(()=>{d.forEach((k,p)=>d.set(p,!1))},[n]),g.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=l.jsx(CP,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:u,root:c,children:e}),l.jsx(Qo.Provider,{value:y,children:e})};function NP(){return new Map}function Ly(e=!0){const t=g.useContext(Qo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=g.useId();g.useEffect(()=>{if(e)return s(i)},[e]);const o=g.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const xi=e=>e.key||"";function Bh(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const _P=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left",anchorY:u="top",root:c})=>{const[d,f]=Ly(o),h=g.useMemo(()=>Bh(e),[e]),x=o&&!d?[]:h.map(xi),w=g.useRef(!0),y=g.useRef(h),k=xn(()=>new Map),p=g.useRef(new Set),[m,v]=g.useState(h),[b,P]=g.useState(h);Ws(()=>{w.current=!1,y.current=h;for(let j=0;j{const L=xi(j),_=o&&!d?!1:h===b||x.includes(L),F=()=>{if(p.current.has(L))return;if(k.has(L))p.current.add(L),k.set(L,!0);else return;let H=!0;k.forEach(te=>{te||(H=!1)}),H&&(S==null||S(),P(y.current),o&&(f==null||f()),r&&r())};return l.jsx(EP,{isPresent:_,initial:!w.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:_?void 0:F,anchorX:a,anchorY:u,children:j},L)})})},Ay=g.createContext({strict:!1}),$h={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Hh=!1;function MP(){if(Hh)return;const e={};for(const t in $h)e[t]={isEnabled:n=>$h[t].some(r=>!!n[r])};uy(e),Hh=!0}function Dy(){return MP(),mj()}function LP(e){const t=Dy();for(const n in e)t[n]={...t[n],...e[n]};uy(t)}const AP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Co(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||AP.has(e)}let Ry=e=>!Co(e);function DP(e){typeof e=="function"&&(Ry=t=>t.startsWith("on")?!Co(t):e(t))}try{DP(require("@emotion/is-prop-valid").default)}catch{}function RP(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||ke(e[s])||(Ry(s)||n===!0&&Co(s)||!t&&!Co(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const ta=g.createContext({});function IP(e,t){if(ea(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Rs(n)?n:void 0,animate:Rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function VP(e){const{initial:t,animate:n}=IP(e,g.useContext(ta));return g.useMemo(()=>({initial:t,animate:n}),[Wh(t),Wh(n)])}function Wh(e){return Array.isArray(e)?e.join(" "):e}const id=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Iy(e,t,n){for(const r in t)!ke(t[r])&&!gy(r,n)&&(e[r]=t[r])}function OP({transformTemplate:e},t){return g.useMemo(()=>{const n=id();return rd(n,t,e),Object.assign({},n.vars,n.style)},[t])}function FP(e,t){const n=e.style||{},r={};return Iy(r,n,e),Object.assign(r,OP(e,t)),r}function zP(e,t){const n={},r=FP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Vy=()=>({...id(),attrs:{}});function BP(e,t,n,r){const s=g.useMemo(()=>{const i=Vy();return yy(i,t,vy(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Iy(i,e.style,e),s.style={...i,...s.style}}return s}const $P=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function od(e){return typeof e!="string"||e.includes("-")?!1:!!($P.indexOf(e)>-1||/[A-Z]/u.test(e))}function HP(e,t,n,{latestValues:r},s,i=!1,o){const u=(o??od(e)?BP:zP)(t,r,s,e),c=RP(t,typeof e=="string",i),d=e!==g.Fragment?{...c,...u,ref:n}:{},{children:f}=t,h=g.useMemo(()=>ke(f)?f.get():f,[f]);return g.createElement(e,{...d,children:h})}function WP({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,s){return{latestValues:UP(n,r,s,e),renderState:t()}}function UP(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=$i(i[h]);let{initial:o,animate:a}=e;const u=ea(e),c=ay(e);t&&c&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?a:o;if(f&&typeof f!="boolean"&&!Jo(f)){const h=Array.isArray(f)?f:[f];for(let x=0;x(t,n)=>{const r=g.useContext(ta),s=g.useContext(Qo),i=()=>WP(e,t,r,s);return n?i():xn(i)},GP=Oy({scrapeMotionValuesFromProps:sd,createRenderState:id}),KP=Oy({scrapeMotionValuesFromProps:wy,createRenderState:Vy}),XP=Symbol.for("motionComponentSymbol");function YP(e,t,n){const r=g.useRef(n);g.useInsertionEffect(()=>{r.current=n});const s=g.useRef(null);return g.useCallback(i=>{var a;i&&((a=e.onMount)==null||a.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const u=o(i);typeof u=="function"&&(s.current=u)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[t])}const Fy=g.createContext({});function Kn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qP(e,t,n,r,s,i){var v,b;const{visualElement:o}=g.useContext(ta),a=g.useContext(Ay),u=g.useContext(Qo),c=g.useContext(Xs),d=c.reducedMotion,f=c.skipAnimations,h=g.useRef(null),x=g.useRef(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:i}),x.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const w=h.current,y=g.useContext(Fy);w&&!w.projection&&s&&(w.type==="html"||w.type==="svg")&&QP(h.current,n,s,y);const k=g.useRef(!1);g.useInsertionEffect(()=>{w&&k.current&&w.update(n,u)});const p=n[K0],m=g.useRef(!!p&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,p))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,p)));return Ws(()=>{x.current=!0,w&&(k.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),m.current&&w.animationState&&w.animationState.animateChanges())}),g.useEffect(()=>{w&&(!m.current&&w.animationState&&w.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,p)}),m.current=!1),w.enteringChildren=void 0)}),w}function QP(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:u,layoutRoot:c,layoutAnchor:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:zy(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Kn(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:c,layoutAnchor:d})}function zy(e){if(e)return e.options.allowProjection!==!1?e.projection:zy(e.parent)}function Ua(e,{forwardMotionProps:t=!1,type:n}={},r,s){r&&LP(r);const i=n?n==="svg":od(e),o=i?KP:GP;function a(c,d){let f;const h={...g.useContext(Xs),...c,layoutId:ZP(c)},{isStatic:x}=h,w=VP(c),y=o(c,x);if(!x&&typeof window<"u"){JP();const k=eT(h);f=k.MeasureLayout,w.visualElement=qP(e,y,h,s,k.ProjectionNode,i)}return l.jsxs(ta.Provider,{value:w,children:[f&&w.visualElement?l.jsx(f,{visualElement:w.visualElement,...h}):null,HP(e,c,YP(y,w.visualElement,d),y,x,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=g.forwardRef(a);return u[XP]=e,u}function ZP({layoutId:e}){const t=g.useContext(Mc).id;return t&&e!==void 0?t+"-"+e:e}function JP(e,t){g.useContext(Ay).strict}function eT(e){const t=Dy(),{drag:n,layout:r}=t;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function tT(e,t){if(typeof Proxy>"u")return Ua;const n=new Map,r=(i,o)=>Ua(i,o,e,t),s=(i,o)=>r(i,o);return new Proxy(s,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,Ua(o,void 0,e,t)),n.get(o))})}const nT=(e,t)=>t.isSVG??od(e)?new Mj(t):new Pj(t,{allowProjection:e!==g.Fragment});class rT extends Sn{constructor(t){super(t),t.animationState||(t.animationState=Ij(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let sT=0;class iT extends Sn{constructor(){super(...arguments),this.id=sT++,this.isExitComplete=!1}update(){var i;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const u=In(this.node,o,a);if(u){const{transition:c,transitionEnd:d,...f}=u;for(const h in f)(i=this.node.getValue(h))==null||i.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const oT={animation:{Feature:rT},exit:{Feature:iT}};function Ys(e){return{point:{x:e.pageX,y:e.pageY}}}const aT=e=>t=>Jc(t)&&e(t,Ys(t));function hs(e,t,n,r){return Is(e,t,aT(n),r)}const By=({current:e})=>e?e.ownerDocument.defaultView:null,Uh=(e,t)=>Math.abs(e-t);function lT(e,t){const n=Uh(e.x,t.x),r=Uh(e.y,t.y);return Math.sqrt(n**2+r**2)}const Gh=new Set(["auto","scroll"]);class $y{constructor(t,n,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=vi(this.lastRawMoveEventInfo,this.transformPagePoint));const w=Ga(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,k=lT(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!k)return;const{point:p}=w,{timestamp:m}=Se;this.history.push({...p,timestamp:m});const{onStart:v,onMove:b}=this.handlers;y||(v&&v(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,w)},this.handlePointerMove=(w,y)=>{this.lastMoveEvent=w,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=vi(y,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(w,y)=>{this.end();const{onEnd:k,onSessionEnd:p,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ga(w.type==="pointercancel"?this.lastMoveEventInfo:vi(y,this.transformPagePoint),this.history);this.startEvent&&k&&k(w,v),p&&p(w,v)},!Jc(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=s||window;const u=Ys(t),c=vi(u,this.transformPagePoint),{point:d}=c,{timestamp:f}=Se;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,Ga(c,this.history));const x={passive:!0,capture:!0};this.removeListeners=Us(hs(this.contextWindow,"pointermove",this.handlePointerMove,x),hs(this.contextWindow,"pointerup",this.handlePointerUp,x),hs(this.contextWindow,"pointercancel",this.handlePointerUp,x)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Gh.has(r.overflowX)||Gh.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:s.x-n.x,y:s.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,s),X.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ft(this.updatePoint)}}function vi(e,t){return t?{point:t(e.point)}:e}function Kh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ga({point:e},t){return{point:e,delta:Kh(e,Hy(t)),offset:Kh(e,uT(t)),velocity:cT(t,.1)}}function uT(e){return e[0]}function Hy(e){return e[e.length-1]}function cT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Hy(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Je(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&s.timestamp-r.timestamp>Je(t)*2&&(r=e[1]);const i=lt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function dT(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function Xh(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function fT(e,{top:t,left:n,bottom:r,right:s}){return{x:Xh(e.x,n,s),y:Xh(e.y,t,r)}}function Yh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Pr(t.min,t.max-r,e.min):r>s&&(n=Pr(e.min,e.max-s,t.min)),Pt(0,1,n)}function pT(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Tu=.35;function gT(e=Tu){return e===!1?e=0:e===!0&&(e=Tu),{x:qh(e,"left","right"),y:qh(e,"top","bottom")}}function qh(e,t,n){return{min:Qh(e,t),max:Qh(e,n)}}function Qh(e,t){return typeof e=="number"?e:e[t]||0}const yT=new WeakMap;class xT{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=f=>{n&&this.snapToCursor(Ys(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:x,dragPropagation:w,onDragStart:y}=this.getProps();if(x&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$S(x),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Et(p=>{let m=this.getAxisMotionValue(p).get()||0;if(At.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const b=v.layout.layoutBox[p];b&&(m=ze(b)*(parseFloat(m)/100))}}this.originPoint[p]=m}),y&&X.update(()=>y(f,h),!1,!0),pu(this.visualElement,"transform");const{animationState:k}=this.visualElement;k&&k.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:x,dragDirectionLock:w,onDirectionLock:y,onDrag:k}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:p}=h;if(w&&this.currentDirection===null){this.currentDirection=wT(p),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,p),this.updateAxis("y",h.point,p),this.visualElement.render(),k&&X.update(()=>k(f,h),!1,!0)},u=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new $y(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:By(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!r)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&X.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!wi(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=dT(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&Kn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=fT(r.layoutBox,t):this.constraints=!1,this.elastic=gT(n),s!==this.constraints&&!Kn(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Et(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=pT(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Kn(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const i=vj(r,s.root,this.visualElement.getTransformPagePoint());let o=hT(s.layout.layoutBox,i);if(n){const a=n(gj(o));this.hasMutatedConstraints=!!a,a&&(o=dy(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},c=Et(d=>{if(!wi(d,n,this.currentDirection))return;let f=u&&u[d]||{};(o===!0||o===d)&&(f={min:0,max:0});const h=s?200:1e6,x=s?40:1e7,w={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,w)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return pu(this.visualElement,t),r.start(Yc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Et(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps()[n];return s||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Et(n=>{const{drag:r}=this.getProps();if(!wi(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-ne(o,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Kn(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Et(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const u=a.get();s[o]=mT({min:u,max:u},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Et(o=>{if(!wi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:u,max:c}=this.constraints[o];a.set(ne(u,c,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;yT.set(this.visualElement,this);const t=this.visualElement.current,n=hs(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps(),h=c.target,x=h!==t&&XS(h);d&&f&&!x&&this.start(c)});let r;const s=()=>{const{dragConstraints:c}=this.getProps();Kn(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=vT(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(s);const a=Is(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Et(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Tu,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Zh(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function vT(e,t,n){const r=wu(e,Zh(n)),s=wu(t,Zh(n));return()=>{r(),s()}}function wi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class kT extends Sn{constructor(t){super(t),this.removeGroupControls=Ye,this.removeListeners=Ye,this.controls=new xT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ye}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ka=e=>(t,n)=>{e&&X.update(()=>e(t,n),!1,!0)};class bT extends Sn{constructor(){super(...arguments),this.removePointerDownListener=Ye}onPointerDown(t){this.session=new $y(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:By(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ka(t),onStart:Ka(n),onMove:Ka(r),onEnd:(i,o)=>{delete this.session,s&&X.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=hs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Xa=!1;class ST extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),Xa&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Hi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Xa=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||X.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Cr.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;Xa=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wy(e){const[t,n]=Ly(),r=g.useContext(Mc);return l.jsx(ST,{...e,layoutGroup:r,switchLayoutGroup:g.useContext(Fy),isPresent:t,safeToRemove:n})}const jT={pan:{Feature:bT},drag:{Feature:kT,ProjectionNode:My,MeasureLayout:Wy}};function Jh(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&X.postRender(()=>i(t,Ys(t)))}class PT extends Sn{mount(){const{current:t}=this.node;t&&(this.unmount=WS(t,(n,r)=>(Jh(this.node,r,"Start"),s=>Jh(this.node,s,"End"))))}unmount(){}}class TT extends Sn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Us(Is(this.node.current,"focus",()=>this.onFocus()),Is(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function em(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&X.postRender(()=>i(t,Ys(t)))}class CT extends Sn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=qS(t,(s,i)=>(em(this.node,i,"Start"),(o,{success:a})=>em(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Cu=new WeakMap,Ya=new WeakMap,ET=e=>{const t=Cu.get(e.target);t&&t(e)},NT=e=>{e.forEach(ET)};function _T({root:e,...t}){const n=e||document;Ya.has(n)||Ya.set(n,{});const r=Ya.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(NT,{root:e,...t})),r[s]}function MT(e,t,n){const r=_T(t);return Cu.set(e,n),r.observe(e),()=>{Cu.delete(e),r.unobserve(e)}}const LT={some:0,all:1};class AT extends Sn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var u;(u=this.stopObserver)==null||u.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:LT[s]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),x=d?f:h;x&&x(c)};this.stopObserver=MT(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(DT(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function DT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const RT={inView:{Feature:AT},tap:{Feature:CT},focus:{Feature:TT},hover:{Feature:PT}},IT={layout:{ProjectionNode:My,MeasureLayout:Wy}},VT={...oT,...RT,...jT,...IT},Bt=tT(VT,nT);function Eo(e){return typeof window>"u"?!1:e?I0():Kc()}const OT=50,tm=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),FT=()=>({time:0,x:tm(),y:tm()}),zT={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function nm(e,t,n,r){const s=n[t],{length:i,position:o}=zT[t],a=s.current,u=n.time;s.current=Math.abs(e[`scroll${o}`]),s.scrollLength=e[`scroll${i}`]-e[`client${i}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=Pr(0,s.scrollLength,s.current);const c=r-u;s.velocity=c>OT?0:Rc(s.current-a,c)}function BT(e,t,n){nm(e,"x",t,n),nm(e,"y",t,n),t.time=n}function $T(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(ds(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const s=r.getBoundingClientRect();r=r.parentElement;const i=r.getBoundingClientRect();n.x+=s.left-i.left,n.y+=s.top-i.top}else if(r instanceof SVGGraphicsElement){const{x:s,y:i}=r.getBBox();n.x+=s,n.y+=i;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const Eu={start:0,center:.5,end:1};function rm(e,t,n=0){let r=0;if(e in Eu&&(e=Eu[e]),typeof e=="string"){const s=parseFloat(e);e.endsWith("px")?r=s:e.endsWith("%")?e=s/100:e.endsWith("vw")?r=s/100*document.documentElement.clientWidth:e.endsWith("vh")?r=s/100*document.documentElement.clientHeight:e=s}return typeof e=="number"&&(r=t*e),n+r}const HT=[0,0];function WT(e,t,n,r){let s=Array.isArray(e)?e:HT,i=0,o=0;return typeof e=="number"?s=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,Eu[e]?e:"0"]),i=rm(s[0],n,r),o=rm(s[1],t),i-o}const Zr={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},UT={x:0,y:0};function GT(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function KT(e,t,n){const{offset:r=Zr.All}=n,{target:s=e,axis:i="y"}=n,o=i==="y"?"height":"width",a=s!==e?$T(s,e):UT,u=s===e?{width:e.scrollWidth,height:e.scrollHeight}:GT(s),c={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let d=!t[i].interpolate;const f=r.length;for(let h=0;h{XT(e,r.target,n),BT(e,n,s),(r.offset||r.target)&&KT(e,n,r)},notify:()=>t(n)}}const Gn=new WeakMap,sm=new WeakMap,qa=new WeakMap,im=new WeakMap,ki=new WeakMap,om=e=>e===document.scrollingElement?window:e;function Uy(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return Ye;let s=qa.get(t);s||(s=new Set,qa.set(t,s));const i=FT(),o=YT(t,e,i,r);if(s.add(o),!Gn.has(t)){const u=()=>{for(const h of s)h.measure(Se.timestamp);X.preUpdate(c)},c=()=>{for(const h of s)h.notify()},d=()=>X.read(u);Gn.set(t,d);const f=om(t);window.addEventListener("resize",d),t!==document.documentElement&&sm.set(t,wu(t,d)),f.addEventListener("scroll",d),d()}if(n&&!ki.has(t)){const u=Gn.get(t),c={width:t.scrollWidth,height:t.scrollHeight};im.set(t,c);const d=()=>{const h=t.scrollWidth,x=t.scrollHeight;(c.width!==h||c.height!==x)&&(u(),c.width=h,c.height=x)},f=X.read(d,!0);ki.set(t,f)}const a=Gn.get(t);return X.read(a,!1,!0),()=>{var f;ft(a);const u=qa.get(t);if(!u||(u.delete(o),u.size))return;const c=Gn.get(t);Gn.delete(t),c&&(om(t).removeEventListener("scroll",c),(f=sm.get(t))==null||f(),window.removeEventListener("resize",c));const d=ki.get(t);d&&(ft(d),ki.delete(t)),im.delete(t)}}const qT=[[Zr.Enter,"entry"],[Zr.Exit,"exit"],[Zr.Any,"cover"],[Zr.All,"contain"]],am={start:0,end:1};function QT(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=am[t[0]],r=am[t[1]];if(!(n===void 0||r===void 0))return[n,r]}function ZT(e){if(e.length!==2)return;const t=[];for(const n of e)if(Array.isArray(n))t.push(n);else if(typeof n=="string"){const r=QT(n);if(!r)return;t.push(r)}else return;return t}function JT(e,t){const n=ZT(e);if(!n)return!1;for(let r=0;r<2;r++){const s=n[r],i=t[r];if(s[0]!==i[0]||s[1]!==i[1])return!1}return!0}function ad(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of qT)if(JT(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const lm=new Map;function um(e){const t={value:0},n=Uy(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Gy({source:e,container:t,...n}){const{axis:r}=n;e&&(t=e);let s=lm.get(t);s||(s=new Map,lm.set(t,s));const i=n.target??"self";let o=s.get(i);o||(o={},s.set(i,o));const a=r+(n.offset??[]).join(",");return o[a]||(n.target&&Eo(n.target)?ad(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:r}):o[a]=um({container:t,...n}):Eo()?o[a]=new ScrollTimeline({source:t,axis:r}):o[a]=um({container:t,...n})),o[a]}function eC(e,t){const n=Gy(t),r=t.target?ad(t.offset):void 0,s=t.target?Eo(t.target)&&!!r:Eo();return e.attachTimeline({timeline:s?n:void 0,...r&&s&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:i=>(i.pause(),oy(o=>{i.time=i.iterationDuration*o},n))})}function tC(e){return e&&(e.target||e.offset)}function nC(e){return e.length===2}function rC(e,t){return nC(e)||tC(t)?Uy(n=>{e(n[t.axis].progress,n)},t):oy(e,Gy(t))}function Ky(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){if(!n)return Ye;const s={axis:t,container:n,...r};return typeof e=="function"?rC(e,s):eC(e,s)}const sC=()=>({scrollX:wt(0),scrollY:wt(0),scrollXProgress:wt(0),scrollYProgress:wt(0)}),ur=e=>e?!e.current:!1;function cm(e,t,n,r){return{factory:s=>{let i;const o=()=>{if(ur(n)||ur(r)){Cr.read(o);return}i=Ky(s,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(r==null?void 0:r.current)||void 0})};return Cr.read(o),()=>{ty(o),i==null||i()}},times:[0,1],keyframes:[0,1],ease:s=>s,duration:1}}function iC(e,t){return typeof window>"u"?!1:e?I0()&&!!ad(t):Kc()}function Xy({container:e,target:t,...n}={}){const r=xn(sC);iC(t,n.offset)&&(r.scrollXProgress.accelerate=cm("x",n,e,t),r.scrollYProgress.accelerate=cm("y",n,e,t));const s=g.useRef(null),i=g.useRef(!1),o=g.useCallback(()=>(s.current=Ky((a,{x:u,y:c})=>{r.scrollX.set(u.current),r.scrollXProgress.set(u.progress),r.scrollY.set(c.current),r.scrollYProgress.set(c.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var a;(a=s.current)==null||a.call(s)}),[e,t,JSON.stringify(n.offset)]);return Ws(()=>{if(i.current=!1,ur(e)||ur(t)){i.current=!0;return}else return o()},[o]),g.useEffect(()=>{if(!i.current)return;let a;const u=()=>{const c=ur(e),d=ur(t);!c&&!d&&(a=o())};return Cr.read(u),()=>{ty(u),a==null||a()}},[o]),r}function Yy(e){const t=xn(()=>wt(e)),{isStatic:n}=g.useContext(Xs);if(n){const[,r]=g.useState(e);g.useEffect(()=>t.on("change",r),[])}return t}function qy(e,t){const n=Yy(t()),r=()=>n.set(t());return r(),Ws(()=>{const s=()=>X.preRender(r,!1,!0),i=e.map(o=>o.on("change",s));return()=>{i.forEach(o=>o()),ft(r)}}),n}function oC(e){cs.current=[],e();const t=qy(cs.current,e);return cs.current=void 0,t}function Jt(e,t,n,r){if(typeof e=="function")return oC(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return aC(e,t,n,r);const o=typeof t=="function"?t:oj(t,n,r),a=Array.isArray(e)?dm(e,o):dm([e],([c])=>o(c)),u=Array.isArray(e)?void 0:e.accelerate;return u&&!u.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(r==null?void 0:r.clamp)!==!1&&(a.accelerate={...u,times:t,keyframes:n,isTransformed:!0}),a}function dm(e,t){const n=xn(()=>[]);return qy(e,()=>{n.length=0;const r=e.length;for(let s=0;sObject.keys(n)),i=xn(()=>({}));for(const o of s)i[o]=Jt(e,t,n[o],r);return i}function lC(e,t={}){const{isStatic:n}=g.useContext(Xs),r=()=>ke(e)?e.get():e;if(n)return Jt(r);const s=Yy(r());return g.useInsertionEffect(()=>aj(s,e,t),[s,JSON.stringify(t)]),s}function uC(e,t={}){return lC(e,{type:"spring",...t})}function cC(){const{scrollYProgress:e}=Xy(),t=uC(e,{stiffness:200,damping:30,restDelta:.001});return l.jsx(Bt.div,{style:{scaleX:t},className:"fixed left-0 top-0 z-40 h-0.5 w-full origin-left bg-brand-500"})}const dC=()=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"h-10 w-10",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.7 6.3a4 4 0 0 0-5.5 4.5L3 17l2 2 6.2-6.2a4 4 0 0 0 4.5-5.5l-2.6 2.6-2-2 2.6-2.6Z"})});function qs({message:e,fullScreen:t=!1}){const{t:n}=Te(),r=l.jsxs("div",{className:"mx-auto max-w-md text-center",children:[l.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:l.jsx(dC,{})}),l.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:n("maintenance.title")}),l.jsx("p",{className:"text-neutral-600 dark:text-neutral-300",children:e||n("maintenance.defaultMessage")})]});return t?l.jsxs("div",{className:"relative flex min-h-screen items-center justify-center bg-white px-4 dark:bg-neutral-950",children:[r,l.jsxs(W,{to:"/admin/login","aria-label":n("maintenance.login"),title:n("maintenance.login"),className:"fixed bottom-4 right-4 flex items-center gap-2 rounded-full border border-neutral-200 bg-white px-3 py-2 text-sm font-medium text-neutral-600 shadow-sm transition hover:border-brand-500 hover:text-brand-600 dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-300 dark:hover:text-brand-400",children:[l.jsx(Gk,{className:"h-4 w-4"}),n("maintenance.login")]})]}):l.jsx("div",{className:"mx-auto max-w-6xl px-4 py-20 sm:px-6",children:r})}const fm=l.jsx(l.Fragment,{children:'Wartungsmodus aktiv – Besucher sehen aktuell eine Wartungsmeldung. Du siehst diese Seite nur, weil du die Berechtigung "Wartungsmodus umgehen" hast.'});function Qs({inline:e=!1}){return e?l.jsx("div",{className:"mb-8 rounded-lg bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:fm}):l.jsx("div",{className:"bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:fm})}function fC({onClose:e}){const{consent:t,saveCustom:n}=Ar(),[r,s]=g.useState(t.external),[i,o]=g.useState(t.analytics),{t:a}=Te();return l.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-black/50 p-4",onClick:e,children:l.jsxs("div",{className:"w-full max-w-md rounded-xl bg-white p-6 dark:bg-neutral-900",onClick:u=>u.stopPropagation(),children:[l.jsx("h2",{className:"mb-1 text-lg font-bold text-neutral-900 dark:text-white",children:a("cookieConsent.modalTitle")}),l.jsxs("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:[a("cookieConsent.modalIntro")," ",l.jsx(W,{to:"/datenschutz",className:"underline hover:text-brand-500",onClick:e,children:a("cookieConsent.privacyPolicy")}),"."]}),l.jsxs("div",{className:"space-y-3",children:[l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.necessaryTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.necessaryDesc")})]}),l.jsx("input",{type:"checkbox",checked:!0,disabled:!0,className:"mt-1 h-4 w-4 shrink-0"})]}),l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.externalTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.externalDesc")})]}),l.jsx("input",{type:"checkbox",checked:r,onChange:u=>s(u.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]}),l.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:a("cookieConsent.analyticsTitle")}),l.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:a("cookieConsent.analyticsDesc")})]}),l.jsx("input",{type:"checkbox",checked:i,onChange:u=>o(u.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]})]}),l.jsxs("div",{className:"mt-5 flex justify-end gap-2",children:[l.jsx("button",{type:"button",onClick:e,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:a("cookieConsent.cancel")}),l.jsx("button",{type:"button",onClick:()=>n({external:r,analytics:i}),className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:a("cookieConsent.saveSelection")})]})]})})}function hC(){const{decided:e,settingsOpen:t,acceptAll:n,rejectNonEssential:r,openSettings:s,closeSettings:i}=Ar(),{t:o}=Te();return l.jsxs(l.Fragment,{children:[!e&&l.jsx("div",{className:"fixed inset-x-0 bottom-0 z-50 border-t border-neutral-200 bg-white/95 p-4 shadow-lg backdrop-blur dark:border-neutral-800 dark:bg-neutral-900/95 sm:p-5",children:l.jsxs("div",{className:"mx-auto flex max-w-6xl flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[l.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[o("cookieConsent.bannerText")," ",o("cookieConsent.moreInfo")," ",l.jsx(W,{to:"/datenschutz",className:"underline hover:text-brand-500",children:o("cookieConsent.privacyPolicy")}),"."]}),l.jsxs("div",{className:"flex flex-wrap gap-2 sm:shrink-0",children:[l.jsx("button",{type:"button",onClick:s,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:o("cookieConsent.settings")}),l.jsx("button",{type:"button",onClick:r,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:o("cookieConsent.onlyNecessary")}),l.jsx("button",{type:"button",onClick:n,className:"rounded-md bg-brand-500 px-3 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:o("cookieConsent.acceptAll")})]})]})}),t&&l.jsx(fC,{onClose:i})]})}function mC(){const{consent:e}=Ar(),{ga_measurement_id:t}=ht(),n=g.useRef(!1);return g.useEffect(()=>{if(!t||!e.analytics||n.current)return;n.current=!0;const r=document.createElement("script");r.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,r.async=!0,document.head.appendChild(r),window.dataLayer=window.dataLayer||[];function s(...i){window.dataLayer.push(i)}window.gtag=s,s("js",new Date),s("config",t,{anonymize_ip:!0})},[t,e.analytics]),null}const Qy=g.createContext({global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null},bypass:!1}),pC=Qy.Provider;function na(){return g.useContext(Qy)}const ld=g.createContext({}),gC=ld.Provider;function $n(e,t){const n=e[t];if(!n)return{};const r={};return n.font_family&&(r.fontFamily=n.font_family),n.font_size&&(r.fontSize=n.font_size),n.color&&(r.color=n.color),r}function De(e){const t=g.useContext(ld);return $n(t,e)}function ud(){return g.useContext(ld)}const yC=[{label:"Systemschrift",value:""},{label:"Serifenlos (Arial)",value:"Arial, Helvetica, sans-serif"},{label:"Serif (Georgia)",value:'Georgia, "Times New Roman", serif'},{label:"Klassisch (Times New Roman)",value:'"Times New Roman", Times, serif'},{label:"Modern (Verdana)",value:"Verdana, Geneva, sans-serif"},{label:"Schreibmaschine (Courier New)",value:'"Courier New", Courier, monospace'}],cd=g.createContext({fonts:[],refresh:()=>{}}),Zy=cd.Provider;function Jy(){return g.useContext(cd).fonts}function SN(){return g.useContext(cd).refresh}function jN(){const e=Jy();return[...yC,...e.map(t=>({label:t.name,value:t.font_family}))]}function xC(e){const t=/\.([a-z0-9]+)$/i.exec(e||"");return t?t[1].toLowerCase():""}const vC={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"};function ex(){const e=Jy();if(e.length===0)return null;const t=e.map(n=>{const r=vC[xC(n.file_path)]||"woff2";return`@font-face { font-family: "${n.font_family}"; src: url("${n.file_path}") format("${r}"); font-display: swap; }`}).join(` +`);return l.jsx("style",{children:t})}const wC=150,kC=300,bC=80,SC=5e3;function jC(){return l.jsx("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-white dark:bg-neutral-950",children:l.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-4 border-neutral-200 border-t-brand-500 dark:border-neutral-800 dark:border-t-brand-500"})})}function PC({enabled:e,children:t}){const n=rt(),[r,s]=g.useState(!e),[i,o]=g.useState(!1),a=g.useRef(null);return g.useLayoutEffect(()=>{const u=a.current;if(!e||!u){s(!0),o(!1);return}s(!1),o(!1);let c=!1,d=0,f=null;const h=new Set,x=setTimeout(()=>{d=Date.now(),o(!0)},wC),w=()=>{s(!0),o(!1)},y=()=>{c=!0,clearTimeout(x),clearTimeout(f),clearTimeout(C),b.disconnect(),P()},k=()=>{if(c)return;y();const S=d?kC-(Date.now()-d):0;S>0?setTimeout(w,S):w()},p=()=>{clearTimeout(f),f=setTimeout(()=>{h.size===0&&Yw()===0&&k()},bC)},m=S=>{if(h.has(S)||S.complete||S.getBoundingClientRect().top>=window.innerHeight)return;S.loading==="lazy"&&(S.loading="eager"),h.add(S);const j=()=>{h.delete(S),S.removeEventListener("load",j),S.removeEventListener("error",j),p()};S.addEventListener("load",j),S.addEventListener("error",j)},v=S=>{var j;S.nodeType===1&&(S.tagName==="IMG"&&m(S),(j=S.querySelectorAll)==null||j.call(S,"img").forEach(m))},b=new MutationObserver(S=>{S.forEach(j=>j.addedNodes.forEach(v)),p()});b.observe(u,{childList:!0,subtree:!0});const P=qw(p),C=setTimeout(k,SC);return u.querySelectorAll("img").forEach(m),p(),()=>{c||y()}},[n.pathname,e]),l.jsxs("div",{className:"relative",children:[l.jsx("div",{ref:a,style:e?{visibility:r?"visible":"hidden"}:void 0,children:t}),e&&i&&l.jsx(jC,{})]})}const TC=[{title:"Seiten",hint:"Ausgeblendete Seiten verschwinden aus dem Menü und leiten Besucher auf die Startseite um.",areas:[{key:"page.vehicles",label:"Fahrzeuge & Pakete",path:"/fahrzeuge"},{key:"page.services",label:"Leistungen",path:"/leistungen"},{key:"page.gallery",label:"Galerie",path:"/galerie"},{key:"page.downloads",label:"Downloads",path:"/downloads",note:"Erscheint ohnehin nur, wenn Downloads hinterlegt sind."}]},{title:"Startseite",hint:"Einzelne Abschnitte der Startseite. Das große Titelbild oben bleibt immer sichtbar.",areas:[{key:"home.stats",label:"Zahlen-Leiste"},{key:"home.partners",label:"Marken / Partner-Logos"},{key:"home.youtube",label:"Video-Abschnitt"},{key:"home.craft",label:"Handwerk & Beratung"},{key:"home.insights",label:"Einblicke (Bilder)"},{key:"home.reviews",label:"Kundenbewertungen"},{key:"home.more",label:'„Mehr als Car-Hifi"'},{key:"home.faq",label:"Häufige Fragen (FAQ)"}]}],CC=TC[0].areas;function EC(e){if(!e)return null;const t=CC.find(n=>e===n.path||e.startsWith(`${n.path}/`));return t?t.key:null}function tx(e,t=[]){const n=EC(e);return!!n&&t.includes(n)}const NC={global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null}},_C={mon:{open:"09:00",close:"18:00",closed:!1},tue:{open:"09:00",close:"18:00",closed:!1},wed:{open:"09:00",close:"18:00",closed:!1},thu:{open:"09:00",close:"18:00",closed:!1},fri:{open:"09:00",close:"18:00",closed:!1},sat:{open:"10:00",close:"13:00",closed:!1},sun:{open:"",close:"",closed:!0}},MC={phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:_C,hero_image_path:null,ga_measurement_id:null,package_card_theme:"graphite",package_card_layout:"strip",package_wheel_hint_interval:8,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,has_downloads:!1,hidden_areas:[]},LC=["/impressum","/datenschutz","/agb"];function AC(){const[e,t]=g.useState(null),[n,r]=g.useState(MC),[s,i]=g.useState(!1),[o,a]=g.useState({}),[u,c]=g.useState([]),{loading:d,hasPermission:f}=Hs(),h=rt();if(g.useEffect(()=>{Z.get("/maintenance").then(t).catch(()=>t(NC)),Z.get("/site-settings").then(r).catch(()=>{}).finally(()=>i(!0)),Z.get("/text-styles").then(a).catch(()=>{}),Z.get("/custom-fonts").then(c).catch(()=>{})},[]),g.useEffect(()=>{n.site_font?document.documentElement.style.setProperty("--site-font",n.site_font):document.documentElement.style.removeProperty("--site-font")},[n.site_font]),e===null||!s||d)return l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});const x=f("maintenance.bypass"),w=LC.includes(h.pathname);return e.global.enabled&&!x&&!w?l.jsx(Rf,{children:l.jsx(qs,{message:e.global.message,fullScreen:!0})}):l.jsx(Rf,{children:l.jsx(pC,{value:{...e,bypass:x},children:l.jsx(Cb,{value:n,children:l.jsx(gC,{value:o,children:l.jsx(Zy,{value:{fonts:u,refresh:()=>{}},children:l.jsxs("div",{className:"page-texture flex min-h-screen flex-col text-neutral-900 dark:text-neutral-100",children:[l.jsx(ex,{}),x&&e.global.enabled&&l.jsx(Qs,{}),l.jsx(cC,{}),l.jsx(Ab,{}),l.jsx("main",{className:"flex-1",children:l.jsx(PC,{enabled:h.pathname!=="/"&&!!n.page_loader_enabled,children:tx(h.pathname,n.hidden_areas)?l.jsx(jr,{to:"/",replace:!0}):l.jsx(Ec,{})})}),l.jsx(zb,{}),l.jsx(hC,{}),l.jsx(mC,{})]})})})})})})}const hm="/assets/logo-BNfZDkmN.png",DC={home:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9",tag:"M4 4h7l9 9-7 7-9-9V4Zm3.5 3.5h.01",car:"M3 13.5 4.5 9A2 2 0 0 1 6.4 7.5h11.2A2 2 0 0 1 19.5 9L21 13.5M3 13.5v4a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1h12v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-4M3 13.5h18M6.5 16.5h.01M17.5 16.5h.01",box:"M12 3 4 7.5v9L12 21l8-4.5v-9L12 3Zm0 9 8-4.5M12 12v9M12 12 4 7.5",mail:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Zm0 0 8 7 8-7",users:"M16 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-4 6c-4 0-7 2-7 4.5V19h14v-1.5C19 15 16 13 12 13Z",shield:"M12 3 4 6v6c0 4.5 3.4 7.7 8 9 4.6-1.3 8-4.5 8-9V6l-8-3Zm-1.5 9.5 4-4 1 1-5 5-2.5-2.5 1-1 1.5 1.5Z",lock:"M6 10V8a6 6 0 1 1 12 0v2m-13 0h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1Zm7 5v2",briefcase:"M4 7h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1Zm4 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12h18",sliders:"M4 6h16M4 6a2 2 0 1 0 4 0 2 2 0 0 0-4 0Zm16 6H4m10 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM4 18h16m-12 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0Z",image:"M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm2 12 4.5-5.5L14 16l2.5-3L20 17H6ZM8 9.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",help:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-5.5v.01M9.5 9.25a2.5 2.5 0 1 1 3.5 2.29c-.7.32-1 .77-1 1.46v.3",download:"M12 4v11m0 0-4-4m4 4 4-4M5 19h14"},RC=({path:e})=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:"h-5 w-5 shrink-0",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})});function IC(){const{logout:e,user:t,hasPermission:n}=Hs(),r=Yo(),[s,i]=g.useState(!1),[o,a]=g.useState(0),[u,c]=g.useState([]);g.useEffect(()=>{n("contact.manage")&&Z.get("/contact").then(y=>a(y.filter(k=>k.status==="new").length)).catch(()=>{})},[]);const d=()=>Z.get("/custom-fonts").then(c).catch(()=>{});g.useEffect(()=>{d()},[]);const f=[{title:null,links:[{to:"/admin",label:"Dashboard",icon:"home",end:!0},{to:"/admin/account",label:"Mein Konto",icon:"lock"}]},{title:"Fahrzeug-Katalog",links:[{to:"/admin/brands",label:"Marken",icon:"tag",permission:"brands.manage"},{to:"/admin/models",label:"Modelle",icon:"car",permission:"models.manage"},{to:"/admin/packages",label:"Pakete",icon:"box",permission:"packages.manage"}]},{title:"Website",links:[{to:"/admin/home-sections",label:"Startseite",icon:"home",permission:"content.manage"},{to:"/admin/services",label:"Leistungen",icon:"briefcase",permission:"services.manage"},{to:"/admin/faqs",label:"FAQ",icon:"help",permission:"content.manage"},{to:"/admin/partners",label:"Partner",icon:"tag",permission:"content.manage"},{to:"/admin/downloads",label:"Downloads",icon:"download",permission:"downloads.manage"}]},{title:"Bildergalerie",links:[{to:"/admin/gallery-brands",label:"Marken",icon:"tag",permission:"gallery.manage"},{to:"/admin/gallery-projects",label:"Projekte",icon:"image",permission:"gallery.manage"}]},{title:"Kunden",links:[{to:"/admin/contact-requests",label:"Kontaktanfragen",icon:"mail",permission:"contact.manage",badge:o}]},{title:"Verwaltung",links:[{to:"/admin/users",label:"Benutzer",icon:"users",permission:"users.manage"},{to:"/admin/permission-groups",label:"Berechtigungsgruppen",icon:"shield",permission:"permission_groups.manage"},{to:"/admin/settings",label:"Einstellungen",icon:"sliders",permission:"settings.manage"}]}].map(y=>({...y,links:y.links.filter(k=>!k.permission||n(k.permission))})).filter(y=>y.links.length>0),h=async()=>{await e(),r("/admin/login")},x=({isActive:y})=>`flex items-center justify-between gap-2 rounded-md px-3 py-2 text-sm font-medium transition ${y?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,w=({onNavigate:y})=>l.jsx("nav",{className:"space-y-5",children:f.map((k,p)=>l.jsxs("div",{children:[k.title&&l.jsx("p",{className:"mb-1.5 px-3 text-xs font-semibold uppercase tracking-wide text-neutral-400 dark:text-neutral-500",children:k.title}),l.jsx("div",{className:"space-y-1",children:k.links.map(m=>l.jsxs(Vw,{to:m.to,end:m.end,className:x,onClick:y,children:[l.jsxs("span",{className:"flex items-center gap-2.5",children:[l.jsx(RC,{path:DC[m.icon]}),m.label]}),!!m.badge&&l.jsx("span",{className:"rounded-full bg-red-500 px-2 py-0.5 text-xs font-bold text-white",children:m.badge})]},m.to))})]},p))});return l.jsx(Zy,{value:{fonts:u,refresh:d},children:l.jsxs("div",{className:"flex min-h-screen bg-neutral-50 text-neutral-900 dark:bg-neutral-950 dark:text-neutral-100",children:[l.jsx(ex,{}),l.jsxs("aside",{className:"hidden w-60 shrink-0 border-r border-neutral-200 p-4 dark:border-neutral-800 sm:block",children:[l.jsxs("div",{className:"mb-6 flex items-center gap-2 px-3",children:[l.jsxs(W,{to:"/",className:"rounded-lg px-2 py-1",children:[l.jsx("img",{src:hm,alt:"HifiPlanet",className:"h-7 w-auto dark:hidden"}),l.jsx("img",{src:tu,alt:"HifiPlanet",className:"hidden h-7 w-auto dark:block"})]}),l.jsx("span",{className:"text-sm font-semibold text-neutral-500 dark:text-neutral-400",children:"Admin"})]}),l.jsx(w,{})]}),l.jsxs("div",{className:"flex-1",children:[l.jsxs("header",{className:"border-b border-neutral-200 dark:border-neutral-800",children:[l.jsxs("div",{className:"flex items-center justify-between px-4 py-3 sm:px-6",children:[l.jsxs("div",{className:"flex items-center gap-2 sm:hidden",children:[l.jsx("button",{onClick:()=>i(y=>!y),"aria-label":"Menü öffnen",className:"rounded-md p-2 text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})}),l.jsxs(W,{to:"/",className:"rounded-lg px-1.5 py-0.5",children:[l.jsx("img",{src:hm,alt:"HifiPlanet",className:"h-6 w-auto dark:hidden"}),l.jsx("img",{src:tu,alt:"HifiPlanet",className:"hidden h-6 w-auto dark:block"})]})]}),l.jsxs("p",{className:"hidden text-sm text-neutral-500 dark:text-neutral-400 sm:block",children:["Angemeldet als ",t==null?void 0:t.username,t!=null&&t.is_super_admin?" · Super-Admin":""]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(t0,{}),l.jsx("button",{onClick:h,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Abmelden"})]})]}),s&&l.jsx("div",{className:"border-t border-neutral-200 px-4 py-3 dark:border-neutral-800 sm:hidden",children:l.jsx(w,{onNavigate:()=>i(!1)})})]}),l.jsx("main",{className:"p-4 sm:p-6",children:l.jsx(g.Suspense,{fallback:l.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:l.jsx(Ec,{})})})]})]})})}function VC(){const{user:e,loading:t}=Hs();return t?l.jsx("div",{className:"flex min-h-screen items-center justify-center text-neutral-500",children:"Lädt…"}):e?l.jsx(Ec,{}):l.jsx(jr,{to:"/admin/login",replace:!0})}function Ae({permission:e,children:t}){const{hasPermission:n}=Hs();return(Array.isArray(e)?e:[e]).some(i=>n(i))?t:l.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-8 text-center dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsx("h1",{className:"mb-2 text-lg font-bold text-neutral-900 dark:text-white",children:"Keine Berechtigung"}),l.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:"Du hast keinen Zugriff auf diesen Bereich. Bitte wende dich an einen Administrator, falls du hier Zugriff brauchst."})]})}function Qa(e,t,n="name"){if(!t)return;let r=document.head.querySelector(`meta[${n}="${e}"]`);r||(r=document.createElement("meta"),r.setAttribute(n,e),document.head.appendChild(r)),r.setAttribute("content",t)}function OC(e){let t=document.head.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t)),t.setAttribute("href",`https://hifi-planet.de${e}`)}function st({title:e,description:t,path:n}){g.useEffect(()=>{e&&(document.title=`${e} | HifiPlanet`,Qa("og:title",`${e} | HifiPlanet`,"property")),t&&(Qa("description",t),Qa("og:description",t,"property")),n&&OC(n)},[e,t,n])}const FC=[.16,1,.3,1],mm={up:{y:40},left:{x:-56},right:{x:56}};function zC(e){return{hidden:{opacity:0,scale:.96,filter:"blur(8px)",...mm[e]||mm.up},visible:{opacity:1,scale:1,x:0,y:0,filter:"blur(0px)"}}}const BC={hidden:{x:"-130%"},visible:{x:"230%",transition:{duration:1.1,ease:"easeInOut",delay:.4}}};function be({children:e,direction:t="up",className:n="",index:r=0,shine:s=!1,style:i}){const o=Math.min(r*.09,.45);return l.jsxs(Bt.div,{className:n,style:{position:"relative",overflow:"hidden",...i},initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.25,margin:"-100px"},variants:zC(t),transition:{duration:.75,ease:FC,delay:o},children:[e,s&&l.jsx(Bt.div,{"aria-hidden":!0,variants:BC,className:"pointer-events-none absolute inset-y-0 -left-1/3 w-1/3 rotate-12 bg-gradient-to-r from-transparent via-white/40 to-transparent"})]})}function $C({items:e}){const[t,n]=g.useState(null);return l.jsx("div",{className:"divide-y divide-neutral-200 rounded-xl border border-neutral-200 bg-white dark:divide-neutral-800 dark:border-neutral-800 dark:bg-neutral-900",children:e.map((r,s)=>{const i=t===s;return l.jsxs("div",{children:[l.jsxs("button",{onClick:()=>n(i?null:s),className:"flex w-full items-center justify-between gap-4 px-5 py-4 text-left","aria-expanded":i,children:[l.jsx("span",{className:"font-medium text-neutral-900 dark:text-white",children:r.question}),l.jsx(Bt.svg,{animate:{rotate:i?180:0},transition:{duration:.2},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-5 w-5 shrink-0 text-neutral-500",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6 9 6 6 6-6"})})]}),l.jsx(_P,{initial:!1,children:i&&l.jsx(Bt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:l.jsx("p",{className:"px-5 pb-4 text-sm text-neutral-600 dark:text-neutral-300",children:r.answer})})})]},r.question)})})}function nx({count:e=5,className:t="h-4 w-4"}){return l.jsx("div",{className:"flex gap-0.5 text-amber-400",children:Array.from({length:e}).map((n,r)=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:t,children:l.jsx("path",{d:"M10 1.5l2.6 5.6 6.1.6-4.6 4.1 1.3 6-5.4-3.1-5.4 3.1 1.3-6-4.6-4.1 6.1-.6L10 1.5z"})},r))})}const HC=70;function WC({testimonials:e}){const t=g.useRef(null),n=g.useRef(null),r=g.useRef({pos:0,half:0,hovering:!1,dragging:!1,dragStartX:0,dragStartPos:0,lastTime:null,rafId:null}).current;g.useLayoutEffect(()=>{const i=n.current,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=()=>{i.style.transform=`translateX(${r.pos}px)`},u=m=>{if(r.half<=0)return m;for(;m>0;)m-=r.half;for(;m<=-r.half;)m+=r.half;return m},c=()=>{r.half=i.scrollWidth/2,r.pos===0?r.pos=-r.half:r.pos=u(r.pos),a()};c();const d=new ResizeObserver(c);d.observe(i);const f=m=>{r.lastTime===null&&(r.lastTime=m);const v=(m-r.lastTime)/1e3;r.lastTime=m,!r.dragging&&!r.hovering&&!o&&(r.pos=u(r.pos+HC*v),a()),r.rafId=requestAnimationFrame(f)};r.rafId=requestAnimationFrame(f);const h=t.current,x=()=>{r.hovering=!0},w=()=>{r.hovering=!1},y=m=>{r.dragging=!0,r.dragStartX=m.clientX,r.dragStartPos=r.pos,h.setPointerCapture(m.pointerId),h.classList.add("cursor-grabbing"),h.classList.remove("cursor-grab")},k=m=>{r.dragging&&(r.pos=u(r.dragStartPos+(m.clientX-r.dragStartX)),a())},p=m=>{r.dragging&&(r.dragging=!1,h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),h.classList.remove("cursor-grabbing"),h.classList.add("cursor-grab"))};return h.addEventListener("pointerenter",x),h.addEventListener("pointerleave",w),h.addEventListener("pointerdown",y),h.addEventListener("pointermove",k),h.addEventListener("pointerup",p),h.addEventListener("pointercancel",p),()=>{cancelAnimationFrame(r.rafId),d.disconnect(),h.removeEventListener("pointerenter",x),h.removeEventListener("pointerleave",w),h.removeEventListener("pointerdown",y),h.removeEventListener("pointermove",k),h.removeEventListener("pointerup",p),h.removeEventListener("pointercancel",p)}},[e.length]);const s=[...e,...e];return l.jsx("div",{ref:t,className:"marquee-viewport cursor-grab touch-pan-y select-none overflow-hidden",children:l.jsx("div",{ref:n,className:"marquee-track flex w-max gap-5",children:s.map((i,o)=>l.jsx("div",{className:"w-64 shrink-0 sm:w-72 lg:w-80",children:l.jsxs("div",{className:"relative flex h-full flex-col overflow-hidden rounded-xl border border-neutral-200 bg-white p-6 shadow-sm transition-shadow duration-300 hover:shadow-lg dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 32 24",className:"absolute -right-1 -top-1 h-16 w-16 text-brand-500/10 dark:text-brand-400/10",children:l.jsx("path",{fill:"currentColor",d:"M9.4 0C4.4 3.5 1 9.1 1 15.3 1 20.6 4.3 24 8.4 24c3.8 0 6.6-3 6.6-6.6 0-3.4-2.4-5.9-5.4-5.9-.6 0-1.4.1-1.6.2C8.5 8.5 11.6 4.6 14.6 2.6L9.4 0zm16.5 0c-4.8 3.5-8.3 9.1-8.3 15.3 0 5.3 3.3 8.6 7.5 8.6 3.7 0 6.6-3 6.6-6.6 0-3.4-2.5-5.9-5.4-5.9-.6 0-1.4.1-1.6.2.5-3.3 3.6-7.1 6.7-9.1L25.9 0z"})}),l.jsx(nx,{className:"relative z-10 mb-3 h-4 w-4",count:i.rating||5}),l.jsxs("p",{className:"relative z-10 mb-4 line-clamp-6 flex-1 text-sm leading-relaxed text-neutral-600 dark:text-neutral-300",children:["„",i.text,'"']}),l.jsxs("div",{className:"relative z-10 mt-auto flex items-center gap-3",children:[i.photo?l.jsx("img",{src:i.photo,alt:"",referrerPolicy:"no-referrer",className:"h-9 w-9 shrink-0 rounded-full object-cover"}):l.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-brand-100 text-sm font-semibold text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",children:i.name.charAt(0).toUpperCase()}),l.jsx("p",{className:"text-sm font-semibold text-neutral-900 dark:text-white",children:i.name})]})]})},`${i.name}-${o}`))})})}function No(e,t,n={x:0,y:0}){const r=Math.max(0,Math.min(100,e==null?n.x:Number(e)||0)),s=Math.max(0,Math.min(100,t==null?n.y:Number(t)||0));return{left:`${r}%`,top:`${s}%`,transform:`translate(-${r}%, -${s}%)`}}const UC="/assets/gallery-dash2-CEVCErVK.webp",rx="/assets/gallery-amp-purple-CESAKuOf.webp",GC="/assets/gallery-speaker-CUXQZ49Q.webp",sx="/assets/gallery-subs-COSd4seJ.webp",ix="/assets/gallery-dash-Cg-7v9qo.webp",KC="/assets/hero-trunk-Dp4_JHDh.webp",XC="/assets/gallery-rear-8cIXPC7T.webp",YC="/assets/hero-highlight-Co4f1Kj5.webp",qC="/assets/youtube-hintergrund-BqSbCrLQ.mp4",bi={left:"text-left",center:"text-center",right:"text-right"},QC={left:"",center:"mx-auto",right:"ml-auto"},ZC={eyebrow_de:"",eyebrow_en:"",title_de:"",title_en:"",body_html_de:"",body_html_en:"",text_align:"center",text_align_x:50,text_align_y:50,button_label_de:"",button_label_en:"",button_url:"",font_family:null};function pm({label:e,url:t,className:n,style:r}){const{hidden_areas:s}=ht();return!e||!t||tx(t,s)?null:t.startsWith("/")?l.jsx(W,{to:t,className:n,style:r,children:e}):l.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:n,style:r,children:e})}const JC=[{src:sx,width:900,height:600},{src:rx,width:900,height:600},{src:GC,width:900,height:1200},{src:ix,width:900,height:814},{src:XC,width:900,height:1200},{src:KC,width:1920,height:1280}];function eE(){const{hero_image_path:e}=ht(),t=e||UC,{t:n,language:r}=Te(),s=_c(),i=!s("page.vehicles"),o=n("home.stats"),a=n("home.galleryAlts"),u=JC.map((R,O)=>({...R,alt:a[O]})),[c,d]=g.useState([]),[f,h]=g.useState({}),[x,w]=g.useState([]),y=R=>{const O=f[R]||ZC;return{eyebrow:O[`eyebrow_${r}`]||"",title:O[`title_${r}`]||"",bodyHtml:O[`body_html_${r}`]||"",align:O.text_align||"center",alignX:O.text_align_x,alignY:O.text_align_y,buttonLabel:O[`button_label_${r}`]||"",buttonUrl:O.button_url||"",fontFamily:O.font_family||void 0}},k=De("home_sections.hero.eyebrow"),p=De("home_sections.hero.title"),m=De("home_sections.youtube.eyebrow"),v=De("home_sections.youtube.title"),b=De("home_sections.youtube.button_label"),P=De("home_sections.craft.eyebrow"),C=De("home_sections.craft.title"),S=De("home_sections.advice.eyebrow"),j=De("home_sections.advice.title"),L=De("home_sections.insights.eyebrow"),_=De("home_sections.insights.title"),F=De("home_sections.more.eyebrow"),H=De("home_sections.more.title"),te=De("home_sections.more.button_label");g.useEffect(()=>{Z.get("/home-sections").then(h).catch(()=>{})},[]),g.useEffect(()=>{Z.get("/partners").then(w).catch(()=>{})},[]);const[N,D]=g.useState(null),$=N?N.reviews.filter(R=>R.review_text).map(R=>({name:R.author_name,text:R.review_text,rating:R.rating,photo:R.profile_photo_url})):n("home.testimonials");g.useEffect(()=>{Z.get("/faqs").then(R=>{d(R.map(O=>({question:r==="de"?O.question_de:O.question_en,answer:r==="de"?O.answer_de:O.answer_en})))}).catch(()=>{})},[r]),g.useEffect(()=>{Z.get("/google-reviews").then(R=>{R.rating!=null&&R.reviews.some(O=>O.review_text)&&D(R)}).catch(()=>{})},[]),st({title:n("home.metaTitle"),description:n("home.metaDescription"),path:"/"}),g.useEffect(()=>{if(c.length===0||s("home.faq"))return;const R=document.createElement("script");return R.type="application/ld+json",R.text=JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:c.map(O=>({"@type":"Question",name:O.question,acceptedAnswer:{"@type":"Answer",text:O.answer}}))}),document.head.appendChild(R),()=>document.head.removeChild(R)},[c]);const K=g.useRef(null);g.useEffect(()=>{const R=K.current;if(!R)return;const O=new IntersectionObserver(([me])=>{me.isIntersecting?(R.getAttribute("src")||(R.src=qC),R.play().catch(()=>{})):R.paused||R.pause()},{rootMargin:"300px 0px"});return O.observe(R),()=>O.disconnect()},[]);const E=g.useRef(null),{scrollYProgress:T}=Xy({target:E,offset:["start start","end start"]}),A=Jt(T,[0,1],["-6%","6%"]),z=Jt(T,[0,1],["0%","60%"]),q=Jt(T,[0,.8],[1,0]),Ce=Jt(T,[.5,1],[0,1]),Q=Jt(Ce,R=>R>.05?"auto":"none"),Ve=Jt(T,[.5,1],[16,0]);return l.jsxs("div",{children:[l.jsx(Bt.div,{style:{opacity:Ce,pointerEvents:Q,y:Ve},className:"fixed inset-x-0 bottom-0 z-20 border-t border-neutral-200 bg-white/95 px-4 py-3 shadow-[0_-8px_24px_rgba(0,0,0,0.08)] backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/95 sm:px-6",children:l.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between gap-3",children:[l.jsx("p",{className:"hidden text-sm font-medium text-neutral-600 dark:text-neutral-300 sm:block",children:n("home.stickyCta")}),l.jsxs("div",{className:"flex w-full gap-3 sm:w-auto",children:[i&&l.jsx(W,{to:"/fahrzeuge",className:"flex-1 rounded-md bg-brand-500 px-5 py-2.5 text-center text-sm font-semibold text-white shadow-sm transition hover:-translate-y-0.5 hover:bg-brand-600 sm:flex-none",children:n("home.selectVehicle")}),l.jsx(W,{to:"/kontakt",className:"flex-1 rounded-md border border-neutral-300 px-5 py-2.5 text-center text-sm font-semibold text-neutral-700 transition hover:-translate-y-0.5 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800 sm:flex-none",children:n("home.getInTouch")})]})]})}),l.jsxs("section",{ref:E,className:"relative -mt-[89px] h-svh min-h-[560px] overflow-hidden sm:-mt-[97px]",children:[l.jsx(Bt.img,{style:{y:A,scale:1.15},src:t,alt:n("home.heroImageAlt"),className:"absolute inset-0 h-full w-full object-cover"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-neutral-950 via-neutral-950/80 to-neutral-950/40"}),l.jsx(Bt.div,{style:{y:z,opacity:q},className:"absolute inset-0",children:l.jsx("div",{className:"absolute w-full max-w-2xl px-4 text-center sm:px-6",style:{...No(y("hero").alignX,y("hero").alignY,{x:50,y:50}),fontFamily:y("hero").fontFamily},children:l.jsxs(Bt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,ease:"easeOut"},children:[y("hero").eyebrow&&l.jsx("p",{className:"mb-3 text-sm font-semibold uppercase tracking-wide text-brand-400",style:k,children:y("hero").eyebrow}),l.jsx("h1",{className:"text-3xl font-extrabold tracking-tight text-white sm:text-5xl",style:p,children:y("hero").title}),l.jsx("div",{className:"legal-content mx-auto mt-4 max-w-2xl text-base text-neutral-200 sm:text-lg",dangerouslySetInnerHTML:{__html:y("hero").bodyHtml}}),l.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[i&&l.jsx(W,{to:"/fahrzeuge",className:"rounded-md bg-brand-500 px-6 py-3 text-sm font-semibold text-white shadow-sm transition hover:-translate-y-0.5 hover:bg-brand-600 hover:shadow-lg",children:n("home.selectVehicle")}),l.jsx(W,{to:"/kontakt",className:"rounded-md border border-white/30 bg-white/10 px-6 py-3 text-sm font-semibold text-white backdrop-blur transition hover:-translate-y-0.5 hover:bg-white/20",children:n("home.getInTouch")})]})]})})})]}),!s("home.stats")&&l.jsx("section",{className:"border-b border-neutral-200 bg-neutral-950 py-8 dark:border-neutral-800",children:l.jsx("div",{className:"mx-auto grid max-w-6xl grid-cols-2 gap-6 px-4 text-center sm:grid-cols-4 sm:px-6",children:o.map((R,O)=>l.jsxs(be,{index:O,children:[l.jsx("p",{className:"text-2xl font-extrabold text-brand-400 sm:text-3xl",children:R.value}),l.jsx("p",{className:"text-sm text-neutral-400",children:R.label})]},R.label))})}),!s("home.partners")&&l.jsx("section",{className:"border-b border-neutral-200 py-8 dark:border-neutral-800",children:l.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[l.jsx("p",{className:"mb-4 text-center text-xs font-semibold uppercase tracking-wide text-neutral-400",children:n("home.brandsHeading")}),l.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-8 gap-y-3",children:x.map((R,O)=>l.jsx(be,{index:O,children:R.logo_path?l.jsx("img",{src:R.logo_path,alt:R.name,className:"h-8 max-w-[8rem] object-contain opacity-70 grayscale transition hover:opacity-100 hover:grayscale-0"}):l.jsx("span",{className:"text-lg font-bold text-neutral-400 dark:text-neutral-600",children:R.name})},R.id))})]})}),!s("home.youtube")&&l.jsxs("section",{className:"relative min-h-[70vh] overflow-hidden sm:min-h-[85vh]",children:[l.jsx("video",{ref:K,loop:!0,muted:!0,playsInline:!0,preload:"none",poster:ix,className:"absolute inset-0 h-full w-full object-cover"}),l.jsx("div",{className:"absolute inset-0 bg-black/55"}),l.jsx("div",{className:"absolute w-full max-w-3xl px-4 text-center sm:px-6",style:{...No(y("youtube").alignX,y("youtube").alignY,{x:50,y:50}),fontFamily:y("youtube").fontFamily},children:l.jsxs(be,{children:[y("youtube").eyebrow&&l.jsx("p",{className:"mb-4 text-xs font-semibold uppercase tracking-[0.2em] text-neutral-200 sm:text-sm",style:m,children:y("youtube").eyebrow}),l.jsx("h2",{className:"text-3xl font-bold uppercase tracking-wide text-white sm:text-5xl",style:v,children:y("youtube").title}),l.jsx("div",{className:"legal-content mt-4 text-xs font-semibold uppercase tracking-wide text-neutral-200 sm:text-sm",dangerouslySetInnerHTML:{__html:y("youtube").bodyHtml}}),l.jsx(pm,{label:y("youtube").buttonLabel,url:y("youtube").buttonUrl,className:"mt-8 inline-flex items-center justify-center rounded-full bg-white px-8 py-3 text-xs font-bold uppercase tracking-wide text-neutral-900 transition hover:-translate-y-0.5 hover:bg-neutral-100",style:b})]})})]}),!s("home.craft")&&l.jsx("section",{className:"grain-band border-y border-neutral-200 bg-neutral-50 py-16 dark:border-neutral-800 dark:bg-neutral-900/40",children:l.jsxs("div",{className:"mx-auto max-w-6xl space-y-16 overflow-hidden px-4 sm:px-6",children:[l.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[l.jsx(be,{direction:"left",shine:!0,className:"rounded-xl shadow-lg",children:l.jsx("img",{src:sx,alt:n("home.craftImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})}),l.jsxs(be,{direction:"right",index:1,className:bi[y("craft").align],style:{fontFamily:y("craft").fontFamily},children:[y("craft").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:P,children:y("craft").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:C,children:y("craft").title}),l.jsx("div",{className:"legal-content text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:y("craft").bodyHtml}})]})]}),l.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[l.jsxs(be,{direction:"left",className:`order-2 md:order-1 ${bi[y("advice").align]}`,style:{fontFamily:y("advice").fontFamily},children:[y("advice").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:S,children:y("advice").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:j,children:y("advice").title}),l.jsx("div",{className:"legal-content text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:y("advice").bodyHtml}})]}),l.jsx(be,{direction:"right",index:1,shine:!0,className:"order-1 md:order-2 rounded-xl shadow-lg",children:l.jsx("img",{src:rx,alt:n("home.adviceImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})})]})]})}),!s("home.insights")&&l.jsxs("section",{className:"mx-auto max-w-6xl px-4 py-16 sm:px-6",children:[l.jsxs(be,{className:`mb-8 ${bi[y("insights").align]}`,style:{fontFamily:y("insights").fontFamily},children:[y("insights").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:L,children:y("insights").eyebrow}),l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",style:_,children:y("insights").title}),l.jsx("div",{className:"legal-content mt-2 text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:y("insights").bodyHtml}})]}),l.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:u.map((R,O)=>l.jsx(be,{index:O%3,shine:!0,className:"aspect-square overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:l.jsx("img",{src:R.src,alt:R.alt,width:R.width,height:R.height,loading:"lazy",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})},R.src))})]}),!s("home.reviews")&&l.jsx("section",{className:"grain-band border-y border-neutral-200 bg-neutral-50 py-16 dark:border-neutral-800 dark:bg-neutral-900/40",children:l.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[l.jsxs(be,{className:"mb-10 text-center",children:[l.jsx("div",{className:"mb-2 flex items-center justify-center gap-2",children:l.jsx(nx,{className:"h-6 w-6",count:N?Math.round(N.rating):5})}),l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",children:N?n("home.reviewsRatingDynamic")(N.rating,N.rating_count):n("home.reviewsRating")}),l.jsx("p",{className:"mt-1 text-neutral-600 dark:text-neutral-300",children:n("home.reviewsText")}),l.jsx("a",{href:"https://www.google.com/maps/search/?api=1&query=Hifi+Planet+Amorbach+Boxbrunner+Stra%C3%9Fe+20a",target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-block text-sm font-medium text-brand-600 hover:underline dark:text-brand-400",children:n("home.reviewsLink")})]}),l.jsx(be,{children:l.jsx(WC,{testimonials:$})})]})}),!s("home.more")&&l.jsx("section",{className:"mx-auto max-w-6xl overflow-hidden px-4 py-16 sm:px-6",children:l.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-2",children:[l.jsx(be,{direction:"left",shine:!0,className:"overflow-hidden rounded-xl shadow-lg",children:l.jsx("img",{src:YC,alt:n("home.moreImageAlt"),width:1600,height:905,className:"h-full w-full object-cover",loading:"lazy"})}),l.jsxs(be,{direction:"right",index:1,className:`rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900 ${bi[y("more").align]}`,style:{fontFamily:y("more").fontFamily},children:[y("more").eyebrow&&l.jsx("p",{className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:F,children:y("more").eyebrow}),l.jsx("h2",{className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:H,children:y("more").title}),l.jsx("div",{className:`legal-content mb-8 max-w-2xl text-neutral-600 dark:text-neutral-300 ${QC[y("more").align]}`,dangerouslySetInnerHTML:{__html:y("more").bodyHtml}}),l.jsx(pm,{label:y("more").buttonLabel,url:y("more").buttonUrl,className:"inline-block rounded-md border border-neutral-300 px-6 py-3 text-sm font-semibold text-neutral-700 transition hover:-translate-y-0.5 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",style:te})]})]})}),!s("home.faq")&&l.jsx("section",{className:"border-t border-neutral-300 py-16 dark:border-neutral-700",children:l.jsxs("div",{className:"mx-auto max-w-3xl px-4 sm:px-6",children:[l.jsx(be,{className:"mb-8 text-center",children:l.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",children:n("home.faqHeading")})}),l.jsx(be,{index:1,children:l.jsx($C,{items:c})})]})})]})}function tE(){const[e,t]=g.useState([]),[n,r]=g.useState(""),s=na(),{t:i}=Te(),o=ud(),{vehicle_tile_width:a,vehicle_tile_height:u}=ht(),c={width:`${a}px`,height:`${u}px`};return st({title:i("vehicleSelect.metaTitle"),description:i("vehicleSelect.metaDescription"),path:"/fahrzeuge"}),g.useEffect(()=>{s.vehicles.enabled&&!s.bypass||Z.get("/brands").then(t).catch(d=>r(d.message))},[s.vehicles.enabled,s.bypass]),s.vehicles.enabled&&!s.bypass?l.jsx(qs,{message:s.vehicles.message}):l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[s.vehicles.enabled&&s.bypass&&l.jsx(Qs,{inline:!0}),l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:i("vehicleSelect.title")}),l.jsx("p",{className:"mb-8 text-neutral-600 dark:text-neutral-300",children:i("vehicleSelect.intro")}),n&&l.jsx("p",{className:"text-red-600",children:n}),e.length===0&&!n&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:i("vehicleSelect.empty")}),l.jsx("div",{className:"flex flex-wrap gap-4",children:e.map(d=>d.image_path?l.jsxs(W,{to:`/fahrzeuge/${d.slug}`,style:c,className:"group relative block shrink-0 overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[l.jsx("img",{src:d.image_path,alt:"",className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:$n(o,`brands.${d.id}.name`),children:d.name})]},d.id):l.jsx(W,{to:`/fahrzeuge/${d.slug}`,style:c,className:"flex shrink-0 flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-white px-6 text-center font-semibold text-neutral-800 shadow-sm transition hover:-translate-y-0.5 hover:border-brand-500 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-100",children:l.jsx("span",{style:$n(o,`brands.${d.id}.name`),children:d.name})},d.id))})]})}function nE(){const{brandSlug:e}=$s(),[t,n]=g.useState(null),[r,s]=g.useState(""),i=na(),{t:o}=Te(),a=ud(),u=De(t?`brands.${t.brand.id}.name`:""),{vehicle_tile_width:c,vehicle_tile_height:d}=ht(),f={width:`${c}px`,height:`${d}px`};return g.useEffect(()=>{i.vehicles.enabled&&!i.bypass||Z.get(`/brands/${e}/models`).then(n).catch(h=>s(h.message))},[e,i.vehicles.enabled,i.bypass]),st({title:t?`${t.brand.name} ${o("brandPage.titleSuffix")}`:o("brandPage.metaTitleFallback"),description:t?o("brandPage.metaDescription")(t.brand.name):void 0,path:`/fahrzeuge/${e}`}),i.vehicles.enabled&&!i.bypass?l.jsx(qs,{message:i.vehicles.message}):r?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:r}):t?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[i.vehicles.enabled&&i.bypass&&l.jsx(Qs,{inline:!0}),l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(W,{to:"/fahrzeuge",className:"hover:text-brand-500",children:o("brandPage.breadcrumbVehicles")})," / ",l.jsx("span",{style:u,children:t.brand.name})]}),l.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[l.jsx("span",{style:u,children:t.brand.name})," – ",o("brandPage.titleSuffix")]}),t.models.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:o("brandPage.empty")}),l.jsx("div",{className:"flex flex-wrap gap-4",children:t.models.map(h=>h.image_path?l.jsxs(W,{to:`/fahrzeuge/${e}/${h.slug}`,style:f,className:"group relative block shrink-0 overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[l.jsx("img",{src:h.image_path,alt:"",className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:$n(a,`car_models.${h.id}.name`),children:h.name})]},h.id):l.jsx(W,{to:`/fahrzeuge/${e}/${h.slug}`,style:f,className:"flex shrink-0 flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-white px-6 text-center font-semibold text-neutral-800 shadow-sm transition hover:-translate-y-0.5 hover:border-brand-500 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-100",children:l.jsx("span",{style:$n(a,`car_models.${h.id}.name`),children:h.name})},h.id))})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:o("brandPage.loading")})}function rE({text:e}){return e?e.split(/(\*\*[^*]+\*\*)/g).map((n,r)=>{const s=n.match(/^\*\*([^*]+)\*\*$/);return s?l.jsx("strong",{children:s[1]},r):l.jsx("span",{children:n},r)}):null}const gm="data:image/webp;base64,UklGRmoNAABXRUJQVlA4IF4NAAAQjACdASrgAVYDPlEok0ajoqGhIRK4IHAKCWlu/F+5xDCoDux8VXNtc99B5Uf715Q+k/+V6E/yD7bfvf7tYI7QKys1Pu/n/K9wD+L/0L/aeqHflfZf937AH81/p//N/yXr9f9f+M/yf7c+4D6R/7n+O+BL9d+rb+0f//9yX9VQU+fHDhw4cN7KTkCBAgQIECBAgQIEB8GtgzU5WrVq1atWrVq1atTTWWxGRvDLM5r169evXr169evVcNgPhleRXp06dOnTp06dOnTpUIn65+OKaJVsmzZs2bNmzZs2bNmSyYC6ipEunTp06dOnTp06dOlydZVuN901q1atWrVq1atWrVXZqLYS16JYyeHDhw4cOHDhw4cN4wtQeDaQLgECBAgQIECBAgQIDddB6sEmQB2atWrVq1atWrVq1aq1iYS5JU9iBlzXr169evXr169evXeEPp+8N6OklatWrVq1atWrVq1V3IfqDdZ8CK1AgQIECBAgQIECBBQFoI3bXHSzdGb8+OHDhw4cOHDhw4ZwLNj/Gx48ePHjx48ePHjx5HaZ5q8hFQPLVq1atWrVq1atWrVWlrSSS1atWrVq1atWrVq1VouJ4vs1atWrVq1atWrVqzMNN6naRaj4OHDhw4cOHDhwzggYy8goXr169evXr169evXbAmy3nWg79+/fv379+/fv377Aw+GV3JG24BIkSJEiRIkSJEiRH091sORb3KZK2rVq1atWrVq1atWZgOgxn2g3CECBAgQIECBAgQHwEh4tRYq5WHRSJEiRIkSJEiRIkRmQ4gXd9q0Xa9evXr169evXr169SUP3aSDmqBOfHDhw4cOHDhw4cN/rYXzoW6jx48ePHjx48ePHjwyNgV/F/hRIkSJEiRIkSJEiRGcgeccx2x48ePHjx48ePHjx5+h2DL7y1q1atWrVq1atWrVqrLjxn1+UevXr169evXr169epWz/ixb7G7Fx48ePHjx48ePHjx64Dpo0+TFzjw4cOHDhw4cOHDhwr64/FOVqj1ftlBYsWLFixYsWLFixsB93m6MKtrfi/YePHjx48ePHjx48eGCFP4MdBX+BXbQiRIkSJEiRIkSJEiA+X4/Ne4l0FixYsWLFixYsWLTKZjxkHLs7TTrVq1atWrVq1atWrSGY83Cktx0PPjhw4cOHDhw4cN/7Xmd/H4DxEePHjx48ePHjx48ct7KWpas7p5jy5cuXLly5cuXLlyM+h2/gRIkSJEiRIkSJEiRAPRMs9EnbFixYsWLFixYsWLBwJstxClHwcOHDhw4cOHDhw3+o6GvCGxY8ePHjx48ePHjx45aAayr3BCnnxw4cOHDhw4cOG/2HuJWxIvK1JLZs2bNmzZs2bNmyAMNnZLnTo6dOnTp06dOnTp06Vd0rFPQfnwwCPHjx48ePHjx48eOU7jRhCFUn5bFixYsWLFixYsWKZRr/1LzwcOHDhw4cOHDhw4ZshIGgexQoECBAgQIECBAgQH+hD+jvXr169eu0AAP7/2BA2pStbx3f0LK6/mZcFuZpv73FLTm7GUv07j8lFLoOGX1EwKUHfPc4FImBkAvjxF1E2TgBogJKpQ2lbMv5bOqPckB4PELJo9ZXlMwGup4PkMOtTZPmrbNoaCJqn0H4Bx7A0xA439P5hkMGBnAEfInQIN5UeUIDb3y6tLej2gR8HhJ5XmTsxvmM15ltL5ZwdGmoNeW8NevUVUKqJ8mNngu7ocCsyGYaeYOGGZBBt6rj6bPVKVbxvb8onw6mljAaaxGTz0W+aNPv06kK3qhDe6/uHi8kg2qvjF3njhRMyOJKZzg12h4qOtVgTuKPAMRWYDkgwiRs9iYqcumonNNXvXk3FAk2LO5XnyjtD5sHSUO3pIrztpBvqq+UJzKeIwGBlPwA2NP46tOJxLzbrKeH4SQjt2HAsbrVcQ/b/TgKZGPwaqfGDN+OjqJK3Z9dyCkGGfGKeG1w9+HSZTm/qh052lQEJAcdUX6vm/+sDBxtrfl4Sg8iMcVnDsfTKJpsTYF/vzJ1oQ6/VPyIX1HpDwnPXsptu9rKDFazlkwc3ofi8uKJmycgPiG9xOLlzn4Af8Dm+LcjJUMAtA7XeZPLlW1bwogbRthU8oA4LcURuku6eXDJ1eb1IKUU7k/UK0cBeK+R5YVcmrOnZIyHzcIaClYnrIwerP535fHv4VXjURTO6/85BvSeTNWvQGqkW5v1hG6AEMrxBryfat3kmr+SNEz5wC2f54z1O7C2KsRpt3maISh9PhMg7jDIxmVe07eHtkLtz6v3yQUJQV95yazDYpH5JfpuYSb8dtmB1cKjeoDTPvik9dCA1UFCTZBfojpIOwXdwAR7JEdZkEi/24hMNKJJlB6udZZKqNJB1hNl24Z++z6lAGSAuRgSwDZGdbqxs+0iL6wmRHilqPOiYB6hQiPZ7cfpMZxesqRwyhcf1O29w4ORG/7BlerR8hYvY4B1XsPYbDORvPk6FHIDXwTXGpuDIta7G4F6RNDdOvCFkAl53GZo5h/p2QkWUry5YuyegnPlKjT3He6ewYypA9YOvMhaqip7kr9sF4TU2bX9foKZ+FFZNzhyySS+13+g4BdJo9YF3bw5b6eSxUfTWiDLNh50VjuqRQWHUEkiA8zJqnqkKCwuDy6iY2oF20FJQlGIPpCDKPBzdXSb/n9NDltaoUlbam7cDAU7CwNdaWFXTABRk0S0e49iF4tO106Uwul7DGYpq0Eu71TnKUjCtEBc83QH8skvRzHniEne3AtJLYRH0cMNSSzeCJ1g+Nfc8RaZkhLhCaZGZdYe5j0LGmQnVFt2iapZvGBi7Sw0X56zdziC9Foq0OPsqKFetZdICc2eUV5Vu1+nvisSzn8wlSDUt3OmRkt/gJxfJQfWxcu5HZ26qqNpA4ablWrX4E9DEmvXzpFGYCnYJMheN2BlWwBVLh1cyQ8INngXaoB8I5Pj9oYyuz/W+jvJQ6G074luX9D3pLkuc88D0Hae3ZqXrRYRzGF1vD8pHsk9Co8B6rpE/4GEwW/zsCtnjz5G8m4KFwf2qW1k0HkNv7Nlg38bcz6TdTzuw/jega5XZQQhflLu4I6l+s90BHFIR+JEXTBBqJwT+IgTnpHNc+h5Ek74HiKqXuGUNGIKIozHkiFxMlnrsklrpweBzYY6ype9CzepAuQF63xC/eIJw1pMZEC1pPgq/r+1gWx5M6g8fpu2O12sb6pLeqT+G4mK3yHMZTojfp1xwQedRmwZnWQ8SCh4XV2a/+3OTz4D4pmmumyBV7V2VW3he8y6usinSjfYPxLyTng27fgw6jQhHl2mVhxBBjiwr5ljvJV7L+MJYDiZjGWfBCsTmehk6rbNt7ahTJpHu4B9ctRqiZXjx0zGpTF91OKifmy4nTq31p1XaIsZAHCWvItXKeke06KKKRTIm6mCT9yBJVwG1sqQhjrkP77q0/JGYgOwgdCQCstsAZQ0FlOrGYXYTIQK/krLyCAZjg8vP/Ers/KVN8F88OsyU5/T1e5ba8A2F63qgwhtkWoVIEZErOVL8sM/DtpWTlcBNsvVOFl4tT+Sk6a2ScCptFL5F6cZXTIw8JmgoCbyqB6xyU+uPP5y09s5T8MDC7Em7NpxCjgD39eed40gHQrBm6CtAbS9JOCVPkPxbpcGDj/LoAGbnyYzMpOmTi28LJ9FTIqyGuAI0jxY/QpNelOOEvNK3io1HeYkK3AprImDk99tlUjgt9bc3ejCOFDXt9LqGHjFssGrhVHyJBmWjwHQipcIMHxF2jfP5jfAGuHtJRRncHIFgLWmJ1XmzJ0LLqWCJShdJSJLc7L6YeVcgKfzOZCwhtzJ7VeI3uBhPXQNOqCf5tlQ32HApAMvCIiBwhYrpfFo/kvjfTMB/NJ0w2Lk8GAFfFQY+U6uX1oB0hztGmA5HggJTwgLo8exG64m3Xu4fg2g4MmQol7z6xNwwubABnpoS3Og85giFkaarUP2ovQyixFpXki8Xf5a5NwjUGCPbx+LD3WKJiBtkiHsYMMV/VAZVNvdg/Ph/V4ZYOr+hw7g9mOJXi+oVZxG9pqJC9w8nRkegsnQ2lpRHn22lTsIa9aOkR0X8zp/IajQxUzv057a3WptBst0EZbZtfmWp6h2K0sDQS9oQT1PqOkGDJlz6ZHZzDMShDTcwJfIZMdnjpeHdPoYoqlcn3M8daRuMeTSP3mabP1/pdQrs6Wl7ToKog2Au/gv46pUMgVcKmdWNJdDF8RplMMXJpU2tZMdkTWq4ofSypsCfuWfeHOpFQGJdFF6OoH2pDJXvkqpj1a832g3uYtVQg1TGyqYqI7UBZQy4NEZbdj6O/s6MNEnfujUDQ8QZj7rSE2RI77egKDWzM708AsvlMFoeX4CVP09rMzXNP2aOZwY7zOBTvBgEEqCWlXAFlY8pW0zIm16gqSPiwRUgH41i1PuJx382C0zTWGT243ZhLnyOIlreUrMQAfwR/oYt+ljnDFKqa5PEczDPa+u/vWmR6UM+Q/lLFiIlgBJTfaekWoeLpPd9FPN4gIHzK1ZS8kDHyq3lh/e6FQ84a4Zg6JlfQC/qhAAAAA==",sE="/assets/base-BKOm0Bib.webp",iE="/assets/clear-DZZMSrMX.webp",oE="/assets/drive-BE2W1yna.webp",aE="/assets/prime-BTVNe2Gb.webp",lE="/assets/elite_r-BRvz_pyr.webp",uE="/assets/apex-CFy2qup8.webp",cE="/assets/statement-pTO-wTPx.webp",dE="/assets/limitless-DDs0S_PU.webp",fE=(e,t,n)=>{t/=100,n/=100;const r=o=>(o+e/30)%12,s=t*Math.min(n,1-n),i=o=>n-s*Math.max(-1,Math.min(r(o)-3,Math.min(9-r(o),1)));return[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)]},Za=(e,t,n)=>`rgb(${fE(e,t,n).join(", ")})`,ym=e=>e.map(([t,n,r,s,i,o])=>({bgTop:Za(t,n,r),border:Za(t,n,r+8),accent:Za(s,i,o),img:null})),xm={graphite:[{accent:"#b6b6b6",border:"#2a2a2a",bgTop:"#1c1c1c",img:sE},{accent:"#d3d3d3",border:"#2e2e2e",bgTop:"#212121",img:iE},{accent:"#8fb8bd",border:"#26383b",bgTop:"#16282b",img:oE},{accent:"#6fbf73",border:"#1f3a24",bgTop:"#122916",img:aE},{accent:"#63d34f",border:"#204a1c",bgTop:"#123312",img:lE},{accent:"#8bea3c",border:"#2b5518",bgTop:"#173a0f",img:uE},{accent:"#d9a83c",border:"#4a3a16",bgTop:"#33270d",img:cE},{accent:"#f2c14e",border:"#5a4718",bgTop:"#3d2f0c",img:dE}],"deep-blue":ym([[215,18,11,210,15,60],[212,25,11,208,32,60],[210,38,12,206,46,60],[212,46,12,205,56,61],[214,52,12,205,63,62],[216,58,12,205,68,63],[220,62,12,212,73,65],[226,66,12,216,78,68]]),"warm-bronze":ym([[30,15,11,34,22,60],[34,32,11,34,46,60],[32,46,12,30,58,60],[26,52,12,24,65,60],[20,55,12,18,68,60],[14,55,12,12,68,61],[8,52,12,6,64,62],[2,50,12,358,60,63]])},hE="#f2f2f2",mE="#8a8a8a",pE="#c4c4c4",vm=5,gE=3,yE={recommended:{Icon:hb,className:"bg-brand-500 text-white"},popular:{Icon:Ok,className:"bg-amber-400 text-neutral-950"},tip:{Icon:$k,className:"bg-sky-500 text-white"},coming_soon:{Icon:Qg,className:"bg-white text-neutral-900"},custom:{Icon:null,className:"bg-brand-500 text-white"}};function xE({pkg:e,tier:t,tierT:n,layout:r,bullets:s,formatPrice:i,contactUrl:o,t:a}){const[u,c]=g.useState(!1),[d,f]=g.useState(!1),h=g.useRef(null),x=s.length-vm,w=u?s:s.slice(0,vm);g.useLayoutEffect(()=>{const S=h.current;if(!S||u){f(!1);return}const j=()=>f([...S.querySelectorAll("[data-clamp]")].some(_=>_.scrollHeight>_.clientHeight+1));j();const L=new ResizeObserver(j);return L.observe(S),()=>L.disconnect()},[u,s.length,e.description]);const y=ud(),k=$n(y,`packages.${e.id}.description`),p=$n(y,`packages.${e.id}.price_text`),{package_card_height:m}=ht(),v=yE[e.badge],b=r!=="grid",P=e.badge==="custom"?e.badge_text:e.badge&&a(`modelPage.badges.${e.badge}`),C=t.img?null:{backgroundColor:t.accent,WebkitMaskImage:`url(${gm})`,maskImage:`url(${gm})`,maskMode:"luminance",WebkitMaskSize:"cover",maskSize:"cover",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"};return l.jsxs("div",{style:{borderColor:t.border,background:`linear-gradient(180deg, ${t.bgTop} 0%, #0b0b0b 55%, #080808 100%)`,...b?{gridRow:"span 4",gridTemplateRows:"subgrid",rowGap:0}:{minHeight:`${m}px`}},className:r==="strip"?"relative grid snap-start overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40":r==="coverflow"?"relative grid snap-center overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 will-change-transform dark:shadow-black/40":"relative flex flex-col overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40",children:[t.img?l.jsx("img",{src:t.img,alt:"","aria-hidden":"true",className:"pointer-events-none absolute inset-0 h-full w-full object-cover"}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...C,opacity:.2+n*.45,filter:"blur(18px)"},"aria-hidden":"true"}),l.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...C,opacity:.55+n*.45},"aria-hidden":"true"})]}),v&&P&&l.jsxs("span",{className:`absolute top-2 left-1/2 z-10 flex max-w-[calc(100%-16px)] -translate-x-1/2 items-center gap-1 whitespace-nowrap rounded-full px-3 py-1 text-xs font-bold shadow ${v.className}`,children:[v.Icon&&l.jsx(v.Icon,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"truncate",children:P})]}),l.jsxs("div",{className:"relative z-10 text-center",style:{padding:"34px 20px 0",gridRow:1},children:[l.jsx("div",{style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",letterSpacing:"3px",fontWeight:600,color:t.accent,textTransform:"uppercase",lineHeight:1.1},children:e.name}),l.jsx("div",{style:{width:"44px",height:"2px",margin:"14px auto 0",background:`linear-gradient(90deg, rgba(255,255,255,0) 0%, ${t.accent} 50%, rgba(255,255,255,0) 100%)`}})]}),s.length>0&&l.jsxs("div",{className:"relative z-10",style:{gridRow:2,padding:"18px 20px 14px",background:u?"linear-gradient(180deg, rgba(8,8,8,0.7) 0%, rgba(8,8,8,0.62) 94%, rgba(8,8,8,0) 100%)":"linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.48) 92%, rgba(8,8,8,0) 100%)"},children:[l.jsx("ul",{ref:h,className:"space-y-1.5 text-left",children:w.map((S,j)=>l.jsxs("li",{className:"flex items-start gap-2",style:{fontSize:"13px",color:pE,...S.fromDescription?k:null},children:[l.jsx(fk,{className:"mt-0.5 h-3.5 w-3.5 shrink-0",style:{color:t.accent}}),l.jsx("span",{"data-clamp":!0,className:"leading-snug",style:u?void 0:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:gE,overflow:"hidden"},children:S.fromDescription?l.jsx(rE,{text:S.text}):S.text})]},j))}),(u||x>0||d)&&l.jsxs("button",{type:"button",onClick:()=>c(S=>!S),className:"mt-2.5 flex items-center gap-1 hover:opacity-80",style:{fontSize:"13px",color:t.accent},children:[u?a("modelPage.lessBullets"):x>0?a("modelPage.moreBullets")(x):a("modelPage.showMore"),u?l.jsx(wk,{className:"h-3.5 w-3.5"}):l.jsx(mk,{className:"h-3.5 w-3.5"})]})]}),l.jsx("div",{className:"relative z-10 flex-1",style:{gridRow:3}}),l.jsx("div",{className:"relative z-10",style:{gridRow:4,padding:"20px 20px 28px",background:"linear-gradient(180deg, rgba(8,8,8,0) 0%, rgba(8,8,8,0.85) 45%, rgba(8,8,8,0.95) 100%)"},children:l.jsxs("div",{className:"text-center",children:[!e.price_text&&l.jsx("div",{style:{fontSize:"13px",color:mE},children:a("modelPage.totalPrice")}),l.jsx("div",{style:{marginTop:"4px",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",fontWeight:600,letterSpacing:"1px",color:hE,...e.price_text?p:null},children:e.price_text||i(e.total_price)}),l.jsx(W,{to:o(e),className:"mt-4 inline-block rounded-md bg-brand-500 px-4 py-2 text-center text-sm font-semibold text-white shadow-lg shadow-brand-500/30 hover:bg-brand-400",children:a("modelPage.requestContact")}),e.video_url&&l.jsx("div",{className:"mt-3",children:l.jsxs("a",{href:e.video_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-full border border-white/15 bg-white/5 px-3 py-1 text-xs font-semibold text-white transition hover:bg-white/15",children:[l.jsx(bk,{className:"h-4 w-4 text-red-500","aria-hidden":"true"}),a("modelPage.videoLink")]})})]})})]})}function vE(){const{brandSlug:e,modelSlug:t}=$s(),[n,r]=g.useState(null),[s,i]=g.useState(""),o=na(),{t:a,language:u}=Te(),{package_card_theme:c,package_card_layout:d,package_wheel_hint_interval:f,package_card_width:h,package_card_height:x}=ht(),w=xm[c]||xm.graphite,y=["grid","strip","coverflow"].includes(d)?d:"strip",k=Math.max(2,Number(f)||8)*1e3,p=g.useRef(null),m=g.useRef(null),v=g.useRef(null),[b,P]=g.useState(!1),C=N=>new Intl.NumberFormat(u==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(N);g.useEffect(()=>{o.vehicles.enabled&&!o.bypass||Z.get(`/models/${e}/${t}/packages`).then(r).catch(N=>i(N.message))},[e,t,o.vehicles.enabled,o.bypass]),g.useEffect(()=>{const N=p.current;if(y!=="coverflow"||!N)return;let D=0;const $=()=>{D=0;const T=N.scrollLeft+N.clientWidth/2;for(const A of N.children){const z=A.offsetLeft+A.offsetWidth/2,q=Math.max(-1,Math.min(1,(z-T)/(A.offsetWidth*1.4))),Ce=Math.abs(q);A.style.transform=`rotateY(${(-q*35).toFixed(2)}deg) scale(${(1-Ce*.13).toFixed(3)}) translateZ(${(-Ce*60).toFixed(1)}px)`,A.style.zIndex=String(100-Math.round(Ce*50))}},K=()=>{D||(D=requestAnimationFrame($))};$(),N.addEventListener("scroll",K,{passive:!0});const E=new ResizeObserver(K);return E.observe(N),()=>{N.removeEventListener("scroll",K),E.disconnect(),cancelAnimationFrame(D)}},[y,n]),g.useEffect(()=>{const N=p.current;if(y==="grid"||!N)return;const D=window.matchMedia("(pointer: coarse)").matches;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let K=[],E=0;const T=()=>{const z=Math.min(N.clientWidth*.4,160);K.push(setTimeout(()=>N.scrollTo({left:z,behavior:"smooth"}),500)),K.push(setTimeout(()=>N.scrollTo({left:0,behavior:"smooth"}),1250)),D||(K.push(setTimeout(()=>P(!0),450)),K.push(setTimeout(()=>P(!1),1700)))},A=new IntersectionObserver(([z])=>{z.isIntersecting&&(A.disconnect(),T(),E=setInterval(()=>{N.scrollLeft<=1&&T()},k))},{threshold:.35});return A.observe(N),()=>{A.disconnect(),clearInterval(E),K.forEach(clearTimeout)}},[y,n,k]),g.useEffect(()=>{const N=p.current;if(y==="grid"||!N)return;let D=0,$=0,K=!1,E=0,T=0;const A=()=>[...N.children].map(Q=>Q.offsetLeft+Q.offsetWidth/2),z=(Q,Ve)=>{let R=0,O=1/0;return Q.forEach((me,Rt)=>{const Zs=Math.abs(me-Ve);Zs{K=!1;const Q=A();if(!Q.length)return;const Ve=N.scrollLeft+N.clientWidth/2,R=z(Q,Ve);let O=R;R===E&&Math.abs(T)>4&&(O=T>0?Math.min(E+1,Q.length-1):Math.max(E-1,0));const me=N.scrollWidth-N.clientWidth,Rt=Math.max(0,Math.min(Q[O]-N.clientWidth/2,me));N.scrollTo({left:Rt,behavior:"smooth"}),clearTimeout($),$=setTimeout(()=>{N.style.scrollSnapType=""},450)},Ce=Q=>{if(Math.abs(Q.deltaX)>Math.abs(Q.deltaY))return;const Ve=N.scrollWidth-N.clientWidth;if(Ve<=1)return;const R=N.scrollLeft<=1,O=N.scrollLeft>=Ve-1;Q.deltaY<0&&R||Q.deltaY>0&&O||(Q.preventDefault(),K||(K=!0,T=0,E=z(A(),N.scrollLeft+N.clientWidth/2)),T+=Q.deltaY,N.style.scrollSnapType="none",N.scrollLeft+=Q.deltaY,clearTimeout(D),D=setTimeout(q,150))};return N.addEventListener("wheel",Ce,{passive:!1}),()=>{N.removeEventListener("wheel",Ce),clearTimeout(D),clearTimeout($)}},[y,n]),g.useEffect(()=>{const N=p.current,D=m.current,$=v.current;if(y==="grid"||!N||!D||!$)return;let K=0;const E=()=>{K=0;const O=N.scrollWidth-N.clientWidth;if(O<=1){D.style.opacity="0",D.style.pointerEvents="none";return}D.style.opacity="1",D.style.pointerEvents="auto";const me=D.clientWidth,Rt=Math.max(32,N.clientWidth/N.scrollWidth*me);$.style.width=`${Rt}px`,$.style.transform=`translateX(${(N.scrollLeft/O*(me-Rt)).toFixed(1)}px)`},T=()=>{K||(K=requestAnimationFrame(E))};E(),N.addEventListener("scroll",T,{passive:!0});const A=new ResizeObserver(T);A.observe(N);let z=!1,q=0;const Ce=O=>{const me=D.getBoundingClientRect(),Rt=$.clientWidth,Zs=Math.min(Math.max(O-me.left-q,0),me.width-Rt);N.scrollLeft=Zs/(me.width-Rt)*(N.scrollWidth-N.clientWidth)},Q=O=>{z=!0,D.setPointerCapture(O.pointerId),N.style.scrollSnapType="none";const me=$.getBoundingClientRect();q=O.clientX>=me.left&&O.clientX<=me.right?O.clientX-me.left:$.clientWidth/2,O.clientX>=me.left&&O.clientX<=me.right||Ce(O.clientX)},Ve=O=>{z&&Ce(O.clientX)},R=O=>{var me;z&&(z=!1,(me=D.hasPointerCapture)!=null&&me.call(D,O.pointerId)&&D.releasePointerCapture(O.pointerId),N.style.scrollSnapType="")};return D.addEventListener("pointerdown",Q),D.addEventListener("pointermove",Ve),D.addEventListener("pointerup",R),D.addEventListener("pointercancel",R),()=>{N.removeEventListener("scroll",T),A.disconnect(),cancelAnimationFrame(K),D.removeEventListener("pointerdown",Q),D.removeEventListener("pointermove",Ve),D.removeEventListener("pointerup",R),D.removeEventListener("pointercancel",R)}},[y,n]),st({title:n?a("modelPage.metaTitle")(n.model.brand_name,n.model.name):a("modelPage.metaTitleFallback"),description:n?a("modelPage.metaDescription")(n.model.brand_name,n.model.name):void 0,path:`/fahrzeuge/${e}/${t}`});const S=De(n?`car_models.${n.model.id}.name`:"");if(o.vehicles.enabled&&!o.bypass)return l.jsx(qs,{message:o.vehicles.message});if(s)return l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:s});if(!n)return l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:a("modelPage.loading")});const{model:j,packages:L}=n,_=new Map([...L].sort((N,D)=>N.total_price-D.total_price).map((N,D)=>[N.id,D])),F=N=>{const D=N.tier_count??L.length,$=N.tier_rank??_.get(N.id)??0,K=D<=1?0:$/(D-1),E=Math.round(K*(w.length-1));return{tier:w[E],tierT:K}},H=N=>[...N.products.map(D=>({text:D.name_override||D.scraped_name||a("modelPage.productLoading"),fromDescription:!1})),...(N.description||"").split(` +`).map(D=>D.trim()).filter(Boolean).map(D=>({text:D,fromDescription:!0}))],te=N=>`/kontakt?${new URLSearchParams({brand:j.brand_name,model:j.name,package:N.name,packageId:N.id,total:N.total_price}).toString()}`;return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"mx-auto max-w-6xl px-4 pt-12 sm:px-6",children:[o.vehicles.enabled&&o.bypass&&l.jsx(Qs,{inline:!0}),l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(W,{to:"/fahrzeuge",className:"hover:text-brand-500",children:a("modelPage.breadcrumbVehicles")})," /"," ",l.jsx(W,{to:`/fahrzeuge/${e}`,className:"hover:text-brand-500",children:j.brand_name})," / ",l.jsx("span",{style:S,children:j.name})]}),l.jsxs("h1",{className:`text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl ${L.length?"mb-2":"mb-8"}`,children:[j.brand_name," ",l.jsx("span",{style:S,children:j.name})," – ",a("modelPage.titleSuffix")]}),L.length===0&&l.jsx("p",{className:"pb-12 text-neutral-500 dark:text-neutral-400",children:a("modelPage.empty")})]}),L.length>0&&l.jsx("section",{className:"py-10 sm:py-14",style:{fontFamily:"'Barlow', sans-serif"},children:l.jsxs("div",{className:y==="grid"?"mx-auto max-w-6xl px-4 sm:px-6":"relative mx-auto max-w-[1880px] px-4 sm:px-6",children:[l.jsx("div",{ref:y==="grid"?void 0:p,className:y==="grid"?"grid items-stretch gap-[18px]":"grid select-none gap-x-[18px] overflow-x-auto pb-3 snap-x snap-mandatory [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:y==="grid"?{gridTemplateColumns:`repeat(auto-fill, minmax(${h}px, 1fr))`,gridAutoRows:"1fr"}:{gridAutoFlow:"column",gridAutoColumns:`${h}px`,gridTemplateRows:"auto auto 1fr auto",minHeight:`${Number(x)+(y==="coverflow"?22:12)}px`,...y==="coverflow"?{perspective:"1200px",paddingLeft:`calc(50% - ${h/2}px)`,paddingRight:`calc(50% - ${h/2}px)`,paddingTop:"10px"}:null},children:L.map(N=>{const{tier:D,tierT:$}=F(N);return l.jsx(xE,{pkg:N,tier:D,tierT:$,layout:y,bullets:H(N),formatPrice:C,contactUrl:te,t:a},N.id)})}),y!=="grid"&&l.jsx("div",{className:`pointer-events-none absolute inset-x-0 top-1/2 z-[200] flex -translate-y-1/2 justify-center transition-opacity duration-300 ${b?"opacity-100":"opacity-0"}`,"aria-hidden":"true",children:l.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-white/10 bg-neutral-900/85 px-4 py-2 text-xs font-medium text-white shadow-lg backdrop-blur-sm",children:[l.jsx(gk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx(Zk,{className:"h-4 w-4 text-brand-400"}),l.jsx(xk,{className:"h-3.5 w-3.5 text-brand-400"}),l.jsx("span",{children:a("modelPage.wheelHint")})]})}),y!=="grid"&&l.jsx("div",{ref:m,className:"relative mx-auto mt-5 h-2 w-56 max-w-full cursor-pointer rounded-full bg-neutral-900/10 transition-opacity duration-200 dark:bg-white/10",style:{touchAction:"none"},"aria-hidden":"true",children:l.jsx("div",{ref:v,className:"absolute left-0 top-0 h-full rounded-full bg-brand-500 shadow-[0_0_10px_rgba(107,166,38,0.7)]",style:{width:"48px"}})})]})})]})}function wE(){const[e,t]=g.useState(null),[n,r]=g.useState(""),{t:s}=Te(),{gallery_card_text_x:i,gallery_card_text_y:o}=ht();return st({title:s("galleryOverview.metaTitle"),description:s("galleryOverview.metaDescription"),path:"/galerie"}),g.useEffect(()=>{Z.get("/gallery-brands").then(t).catch(a=>r(a.message))},[]),l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:s("galleryOverview.title")}),l.jsx("p",{className:"mb-8 text-neutral-600 dark:text-neutral-300",children:s("galleryOverview.intro")}),n&&l.jsx("p",{className:"text-red-600",children:n}),!e&&!n&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.loading")}),e&&e.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:e==null?void 0:e.map(a=>l.jsxs(W,{to:`/galerie/${a.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[a.cover_image_path?l.jsx("img",{src:a.cover_image_path,alt:a.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):l.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:No(i,o,{x:0,y:100}),children:a.name})]},a.id))})]})}function kE(){const{brandSlug:e}=$s(),[t,n]=g.useState(null),[r,s]=g.useState(""),{t:i}=Te(),{gallery_card_text_x:o,gallery_card_text_y:a}=ht();return g.useEffect(()=>{Z.get(`/gallery-brands/${e}/projects`).then(n).catch(u=>s(u.message))},[e]),st({title:t?i("galleryBrandPage.metaTitle")(t.brand.name):i("galleryBrandPage.metaTitleFallback"),description:t?i("galleryBrandPage.metaDescription")(t.brand.name):void 0,path:`/galerie/${e}`}),r?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:r}):t?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(W,{to:"/galerie",className:"hover:text-brand-500",children:i("galleryBrandPage.breadcrumbGallery")})," / ",t.brand.name]}),l.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[t.brand.name," – ",i("galleryBrandPage.titleSuffix")]}),t.projects.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:i("galleryBrandPage.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:t.projects.map(u=>l.jsxs(W,{to:`/galerie/${e}/${u.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[u.cover_image_path?l.jsx("img",{src:u.cover_image_path,alt:u.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):l.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),l.jsx("span",{className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:No(o,a,{x:0,y:100}),children:u.name})]},u.id))})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:i("galleryBrandPage.loading")})}function bE({photos:e,index:t,onClose:n,onNavigate:r}){const{t:s}=Te();if(g.useEffect(()=>{if(t==null)return;const a=u=>{u.key==="Escape"&&n(),u.key==="ArrowRight"&&r(1),u.key==="ArrowLeft"&&r(-1)};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[t,n,r]),t==null)return null;const i=e[t],o=a=>a.stopPropagation();return Go.createPortal(l.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/90 p-4",onClick:n,children:[l.jsx("button",{onClick:a=>{o(a),n()},"aria-label":s("lightbox.close"),className:"absolute right-4 top-4 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-7 w-7",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})})}),e.length>1&&l.jsx("button",{onClick:a=>{o(a),r(-1)},"aria-label":s("lightbox.previous"),className:"absolute left-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:left-4",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 18-6-6 6-6"})})}),l.jsx("img",{src:i.image_path,alt:i.caption||"",onClick:o,className:"max-h-[85vh] max-w-full rounded-lg object-contain"}),e.length>1&&l.jsx("button",{onClick:a=>{o(a),r(1)},"aria-label":s("lightbox.next"),className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:right-4",children:l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 18 6-6-6-6"})})}),i.caption&&l.jsx("p",{onClick:o,className:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full bg-black/60 px-4 py-1.5 text-sm text-white",children:i.caption})]}),document.body)}function SE(){const{brandSlug:e,projectSlug:t}=$s(),[n,r]=g.useState(null),[s,i]=g.useState(""),[o,a]=g.useState(null),{t:u}=Te();g.useEffect(()=>{Z.get(`/gallery-brands/${e}/${t}/photos`).then(r).catch(d=>i(d.message))},[e,t]),st({title:n?`${n.project.name} – ${n.project.brand_name}`:u("galleryProjectPage.metaTitleFallback"),description:n?u("galleryProjectPage.metaDescription")(n.project.name):void 0,path:`/galerie/${e}/${t}`});const c=d=>{a(f=>{const h=n.photos.length;return(f+d+h)%h})};return s?l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:s}):n?l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[l.jsxs("p",{className:"mb-1 text-sm text-neutral-500 dark:text-neutral-400",children:[l.jsx(W,{to:"/galerie",className:"hover:text-brand-500",children:u("galleryProjectPage.breadcrumbGallery")})," /"," ",l.jsx(W,{to:`/galerie/${e}`,className:"hover:text-brand-500",children:n.project.brand_name})," / ",n.project.name]}),l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:n.project.name}),n.photos.length===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:u("galleryProjectPage.empty")}),l.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:n.photos.map((d,f)=>l.jsx(be,{index:f%6,shine:!0,className:"aspect-square overflow-hidden rounded-xl",children:l.jsx("button",{onClick:()=>a(f),className:"block h-full w-full","aria-label":d.caption||u("galleryProjectPage.enlargeImage"),children:l.jsx("img",{src:d.image_path,alt:d.caption||"",loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})})},d.id))}),l.jsx(bE,{photos:n.photos,index:o,onClose:()=>a(null),onNavigate:c})]}):l.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:u("galleryProjectPage.loading")})}const jE={car:qg,caravan:ck,"car-front":ak,cog:Pk,zap:vb,boxes:ik,"shield-alert":ub,video:yb},PE=g.lazy(()=>ee(()=>import("./iconRegistry-BJRytynd.js"),__vite__mapDeps([0,1,2])));function TE({name:e,className:t="h-6 w-6",...n}){if(!e)return null;const r=jE[e];return r?l.jsx(r,{className:t,...n}):l.jsx(g.Suspense,{fallback:l.jsx("span",{className:`inline-block ${t}`,"aria-hidden":"true"}),children:l.jsx(PE,{name:e,className:t,...n})})}function CE(){const[e,t]=g.useState([]),n=na(),{t:r}=Te();return g.useEffect(()=>{Z.get("/services").then(t).catch(()=>t([]))},[]),st({title:r("leistungen.metaTitle"),description:r("leistungen.metaDescription"),path:"/leistungen"}),n.services.enabled&&!n.bypass?l.jsx(qs,{message:n.services.message}):l.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[n.services.enabled&&n.bypass&&l.jsx(Qs,{inline:!0}),l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:r("leistungen.title")}),l.jsx("p",{className:"mb-10 max-w-2xl text-neutral-600 dark:text-neutral-300",children:r("leistungen.intro")}),l.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:e.map((s,i)=>l.jsxs(be,{index:i%3,shine:!0,className:"overflow-hidden rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"relative aspect-[4/3]",children:[s.image_path&&l.jsx("img",{src:s.image_path,alt:s.title,className:"h-full w-full object-cover",loading:"lazy"}),l.jsx("div",{className:"absolute -bottom-5 left-5 flex h-12 w-12 items-center justify-center rounded-full bg-brand-500 text-white shadow-lg ring-4 ring-white dark:ring-neutral-900",children:l.jsx(TE,{name:s.icon_name,className:"h-6 w-6"})})]}),l.jsxs("div",{className:"p-6 pt-8",children:[l.jsx("h2",{className:"mb-2 font-semibold text-neutral-900 dark:text-white",children:s.title}),l.jsx("p",{className:"mb-3 text-sm text-neutral-600 dark:text-neutral-300",children:s.description}),l.jsxs(W,{to:s.cta_url||"/kontakt",className:"text-sm font-semibold text-brand-600 hover:underline dark:text-brand-400",children:[s.cta_label||r("leistungen.contact")," →"]})]})]},s.id))}),l.jsxs("div",{className:"mt-12 rounded-xl border border-neutral-200 bg-neutral-50 p-8 text-center dark:border-neutral-800 dark:bg-neutral-900/40",children:[l.jsx("h2",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:r("leistungen.notListedTitle")}),l.jsx("p",{className:"mb-5 text-neutral-600 dark:text-neutral-300",children:r("leistungen.notListedText")}),l.jsx(W,{to:"/kontakt",className:"inline-block rounded-md bg-brand-500 px-6 py-3 text-sm font-semibold text-white hover:bg-brand-600",children:r("leistungen.contact")})]})]})}function EE({name:e,description:t,className:n="",children:r}){const{consent:s,acceptAll:i,openSettings:o}=Ar();return s.external?r:l.jsxs("div",{className:`flex flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-neutral-50 p-6 text-center dark:border-neutral-800 dark:bg-neutral-900/40 ${n}`,children:[l.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:t||`${e} wird erst nach deiner Zustimmung geladen, da dabei Daten an Google übertragen werden.`}),l.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[l.jsx("button",{type:"button",onClick:i,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"Laden erlauben"}),l.jsx("button",{type:"button",onClick:o,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Cookie-Einstellungen"})]})]})}const ox=e=>(e||"").replace(/[^\d+]/g,""),NE=e=>`https://wa.me/${ox(e).replace(/^0/,"49").replace("+","")}`,Wi={fontFamily:"'Michroma', sans-serif"};function _E({className:e}){return l.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:l.jsx("path",{d:"M12 2a10 10 0 0 0-8.6 15l-1.3 4.8 5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.2 14.8l-.3-.2-2.6.7.7-2.5-.2-.3A8 8 0 0 1 12 4zm4.3 9.9c-.2-.1-1.4-.7-1.6-.8s-.4-.1-.5.1l-.7.9c-.1.1-.3.2-.5.1a6.5 6.5 0 0 1-3.2-2.8c-.1-.2 0-.4.1-.5l.4-.5.2-.4v-.4l-.7-1.7c-.2-.4-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.7.7-.9 1.6-.6 2.7.5 1.7 1.6 3.1 3.4 4.2 1.7 1 2.5 1 3.4.9.5-.1 1.4-.6 1.6-1.1.2-.5.2-1 .1-1.1z"})})}function ME({path:e,className:t}){return l.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:l.jsx("path",{d:e})})}const LE={premium:"M4 12v3M8 8v11M12 4v16M16 8v11M20 12v3",germany:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0 M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5 19 19M19 5l-1.5 1.5M6.5 17.5 5 19",individual:"M6 3h12l4 6-10 12L2 9z M11 3 8 9l4 12 4-12-3-6M2 9h20",experts:"M20 6 9 17l-5-5"};function wm({formatted:e,color:t}){const[n,r]=e.split("€");return l.jsxs("span",{style:{...Wi,color:t},children:[n,l.jsx("span",{style:{fontFamily:"'Barlow', sans-serif"},children:"€"}),r]})}function Si({icon:e,label:t,name:n,type:r="text",required:s,value:i,onChange:o,placeholder:a}){return l.jsxs("div",{className:"flex flex-col gap-2",children:[l.jsx("label",{htmlFor:`kf-${n}`,className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:t}),l.jsxs("div",{className:"relative flex items-center",children:[l.jsx(e,{className:"pointer-events-none absolute left-[14px] h-[17px] w-[17px]",style:{color:"var(--kf-fieldicon)"}}),l.jsx("input",{id:`kf-${n}`,name:n,type:r,required:s,value:i,onChange:o,placeholder:a,className:"w-full rounded-lg border py-3.5 pl-[42px] pr-4 text-[15px] outline-none transition-colors",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]})]})}function AE(){const[e]=zw(),{phone:t,whatsapp:n,contact_email:r,address_street:s,address_zip:i,address_city:o,business_hours:a}=ht(),{t:u,language:c}=Te(),{consent:d}=Ar(),f=[s,[i,o].filter(Boolean).join(" ")].filter(Boolean).join(", "),h=encodeURIComponent(f),x=`https://www.google.com/maps/dir/?api=1&destination=${h}`,w=i0(a,u("footer.closed")),y=T=>new Intl.NumberFormat(c==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(T),[k,p]=g.useState({name:"",email:"",phone:"",vin:"",message:""}),[m,v]=g.useState("idle"),[b,P]=g.useState(""),[C,S]=g.useState([]),[j,L]=g.useState([]),_=e.get("packageId"),F=e.get("total")?Number(e.get("total")):null;g.useEffect(()=>{if(!_){S([]);return}Z.get(`/packages/${_}/upgrades`).then(S).catch(()=>S([]))},[_]);const H=T=>{L(A=>A.includes(T)?A.filter(z=>z!==T):[...A,T])},te=C.filter(T=>j.includes(T.id)).reduce((T,A)=>T+Number(A.price),0);st({title:u("contactPage.metaTitle"),description:u("contactPage.metaDescription"),path:"/kontakt"});const N={brand:e.get("brand")||"",model:e.get("model")||"",package:e.get("package")||""},D=!!(N.brand&&N.model&&N.package),$=T=>p(A=>({...A,[T.target.name]:T.target.value})),K=async T=>{T.preventDefault(),v("sending"),P("");try{await Z.post("/contact",{...k,brand_name:N.brand||null,model_name:N.model||null,package_name:N.package||null,product_name:e.get("product")||null,package_id:_||null,package_product_id:e.get("productId")||null,upgrade_ids:j}),v("sent"),p({name:"",email:"",phone:"",vin:"",message:""})}catch(A){P(A.message),v("idle")}},E=[{key:"premium",title:u("contactPage.featurePremiumTitle"),sub:u("contactPage.featurePremiumSub")},{key:"germany",title:u("contactPage.featureGermanyTitle"),sub:u("contactPage.featureGermanySub")},{key:"individual",title:u("contactPage.featureIndividualTitle"),sub:u("contactPage.featureIndividualSub")},{key:"experts",title:u("contactPage.featureExpertsTitle"),sub:u("contactPage.featureExpertsSub")}];return l.jsx("div",{className:"kf-page kontakt-sektion relative w-full overflow-hidden px-4 pb-10 sm:px-10",style:{color:"var(--kf-text2)",fontFamily:"'Barlow', sans-serif"},children:l.jsxs("div",{className:"relative z-10 mx-auto max-w-[1280px] pt-10 sm:pt-14",children:[l.jsx("div",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[6px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.heroEyebrow")}),l.jsxs("h1",{className:"text-[34px] leading-[1.08] sm:text-[46px] lg:text-[60px]",style:{...Wi,color:"var(--kf-text)"},children:[u("contactPage.heroTitlePre")," ",l.jsx("span",{style:{color:"var(--kf-accent2)"},children:u("contactPage.heroTitleAccent")})," ",u("contactPage.heroTitlePost")]}),l.jsx("p",{className:"mb-10 mt-5 max-w-[520px] text-lg leading-[1.55]",style:{color:"var(--kf-muted)"},children:u("contactPage.heroSubtitle")}),l.jsxs("div",{className:"grid grid-cols-1 items-start gap-10 min-[981px]:grid-cols-[minmax(0,1.35fr)_minmax(320px,1fr)]",children:[l.jsx("div",{children:l.jsxs("div",{className:"rounded-2xl border p-[22px] sm:p-10",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[D&&l.jsxs("div",{className:"mb-8 rounded-xl border px-6 py-[22px]",style:{background:"var(--kf-pkgbg)",borderColor:"var(--kf-pkgbrd)"},children:[l.jsxs("div",{className:"mb-3.5 flex items-center gap-2.5 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:[l.jsx(sb,{className:"h-4 w-4"}),u("contactPage.packageBoxTitle")]}),l.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-5 gap-y-2 text-[15px]",children:[l.jsx("span",{style:{color:"var(--kf-label)"},children:u("contactPage.contextBrand")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:N.brand}),l.jsx("span",{style:{color:"var(--kf-label)"},children:u("contactPage.contextModel")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:N.model}),l.jsx("span",{style:{color:"var(--kf-label)"},children:u("contactPage.contextPackage")}),l.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:N.package})]}),l.jsxs("div",{className:"mt-3.5 flex items-baseline justify-between border-t pt-3.5",style:{borderColor:"var(--kf-pkgbrd)"},children:[l.jsx("span",{className:"text-[13px] font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:u("contactPage.packagePrice")}),l.jsx("span",{className:"text-xl",children:F!=null?l.jsx(wm,{formatted:y(F),color:"var(--kf-text)"}):"—"})]})]}),C.length>0&&l.jsxs("div",{className:"mb-8 rounded-xl border p-5",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)"},children:[l.jsx("div",{className:"mb-3 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.optionalUpgrades")}),l.jsx("div",{className:"space-y-2",children:C.map(T=>l.jsxs("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border p-3 text-sm",style:{borderColor:"var(--kf-fieldbrd)"},children:[l.jsx("input",{type:"checkbox",checked:j.includes(T.id),onChange:()=>H(T.id),className:"mt-0.5 h-4 w-4 rounded",style:{accentColor:"var(--kf-accent)"}}),l.jsxs("span",{className:"flex-1",children:[l.jsx("span",{className:"block font-semibold",style:{color:"var(--kf-text2)"},children:T.name}),T.description&&l.jsx("span",{className:"block text-xs",style:{color:"var(--kf-muted)"},children:T.description})]}),l.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-accent2)"},children:["+",y(T.price)]})]},T.id))}),j.length>0&&F!=null&&l.jsxs("div",{className:"mt-3 flex items-baseline justify-between border-t pt-3 text-sm",style:{borderColor:"var(--kf-pkgbrd)"},children:[l.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:u("contactPage.totalWithUpgrades")}),l.jsx(wm,{formatted:y(F+te),color:"var(--kf-text)"})]})]}),l.jsx("h2",{className:"mb-8 text-xl",style:{...Wi,color:"var(--kf-text)"},children:u("contactPage.formTitle")}),m==="sent"&&l.jsxs("div",{className:"mb-6 rounded-[10px] border p-5",style:{borderColor:"var(--kf-accent)",background:"var(--kf-accentsoft)"},children:[l.jsx("div",{className:"text-base font-bold",style:{color:"var(--kf-accent2)"},children:u("contactPage.sentTitle")}),l.jsx("div",{className:"mt-1 text-sm",style:{color:"var(--kf-muted)"},children:u("contactPage.sentText")})]}),l.jsxs("form",{onSubmit:K,children:[l.jsxs("div",{className:"grid grid-cols-1 gap-6 min-[641px]:grid-cols-2",children:[l.jsx(Si,{icon:pb,label:u("contactPage.nameLabel"),name:"name",required:!0,value:k.name,onChange:$,placeholder:u("contactPage.namePlaceholder")}),l.jsx(Si,{icon:Df,label:u("contactPage.emailLabel"),name:"email",type:"email",required:!0,value:k.email,onChange:$,placeholder:u("contactPage.emailPlaceholder")}),l.jsx(Si,{icon:xo,label:u("contactPage.phoneLabel"),name:"phone",value:k.phone,onChange:$,placeholder:u("contactPage.phonePlaceholder")}),l.jsx(Si,{icon:qg,label:u("contactPage.vinLabel"),name:"vin",value:k.vin,onChange:$,placeholder:u("contactPage.vinPlaceholder")})]}),l.jsxs("div",{className:"mt-6 flex flex-col gap-2",children:[l.jsx("label",{htmlFor:"kf-message",className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:u("contactPage.messageLabel")}),l.jsx("textarea",{id:"kf-message",name:"message",rows:5,value:k.message,onChange:$,placeholder:u("contactPage.messagePlaceholder"),className:"w-full resize-y rounded-lg border px-4 py-3.5 text-[15px] outline-none",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]}),b&&l.jsx("p",{className:"mt-4 text-sm text-red-600 dark:text-red-400",children:b}),l.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-5",children:[l.jsxs("button",{type:"submit",disabled:m==="sending",className:"inline-flex items-center gap-3 rounded-lg px-8 py-4 text-sm font-bold uppercase tracking-[3px] transition-[filter,box-shadow] hover:brightness-110 disabled:opacity-60",style:{background:"var(--kf-accent)",color:"var(--kf-btntext)",boxShadow:"0 10px 24px rgba(150,200,20,0.32)"},children:[l.jsx(ab,{className:"h-[18px] w-[18px]"}),u(m==="sending"?"contactPage.sending":"contactPage.submit")]}),l.jsx("div",{className:"text-[13px]",style:{color:"var(--kf-label)"},children:u("contactPage.requiredHint")})]})]})]})}),l.jsxs("div",{className:"flex flex-col gap-6",children:[l.jsxs("div",{className:"relative overflow-hidden rounded-2xl border px-[22px] py-[26px] sm:px-8 sm:py-[34px]",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[l.jsx("div",{className:"pointer-events-none absolute -right-[60px] -top-[60px] h-[190px] w-[190px] rounded-full border border-dashed",style:{borderColor:"var(--kf-pkgbrd)"}}),l.jsx("h2",{className:"mb-7 text-[17px]",style:{...Wi,color:"var(--kf-text)"},children:u("contactPage.cardTitle")}),l.jsxs("div",{className:"flex flex-col gap-5",children:[l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(xo,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.phone")}),l.jsx("a",{href:`tel:${ox(t)}`,className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:t})]})]}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(Df,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.email")}),l.jsx("a",{href:`mailto:${r}`,className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:r})]})]}),l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(Zg,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.address")}),l.jsxs("div",{className:"text-base font-semibold leading-[1.4]",style:{color:"var(--kf-text2)"},children:[s,l.jsx("br",{}),[i,o].filter(Boolean).join(" ")]})]})]}),n&&l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:l.jsx(_E,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),l.jsxs("div",{children:[l.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("nav.whatsapp")}),l.jsx("a",{href:NE(n),className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:n})]})]})]}),l.jsxs("div",{className:"mt-7 border-t pt-6",style:{borderColor:"var(--kf-divider)"},children:[l.jsx("div",{className:"mb-3 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:u("contactPage.hours")}),l.jsx("div",{className:"grid grid-cols-[auto_1fr] gap-x-6 gap-y-2 text-[15px]",children:w.map(T=>l.jsxs("span",{style:{display:"contents"},children:[l.jsx("span",{style:{color:"var(--kf-label)"},children:T.days}),l.jsx("span",{children:T.label})]},T.key))})]})]}),l.jsxs("div",{className:"relative overflow-hidden rounded-2xl border",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[d.external&&l.jsxs("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"absolute left-3.5 top-3.5 z-10 inline-flex items-center gap-2 rounded-lg border px-3.5 py-2 text-[13px] font-semibold hover:border-[var(--kf-accent)]",style:{background:"var(--kf-pill)",borderColor:"var(--kf-pillbrd)",color:"var(--kf-text2)",boxShadow:"var(--kf-shadow2)"},children:[u("contactPage.mapOpenChip"),l.jsx(Nk,{className:"h-3.5 w-3.5",style:{color:"var(--kf-accent2)"}})]}),l.jsx(EE,{name:u("contactPage.mapEmbedName"),className:"h-[210px] w-full",children:l.jsx("div",{className:"h-[210px] overflow-hidden",children:l.jsx("iframe",{title:"HifiPlanet Amorbach – Standort",src:`https://www.google.com/maps?q=${h}&output=embed`,width:"100%",height:"290",style:{border:0,display:"block",marginTop:"-60px"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})}),l.jsxs("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2.5 border-t px-4 py-4 text-[13px] font-bold uppercase tracking-[3px] hover:bg-[var(--kf-accentsoft)]",style:{borderColor:"var(--kf-divider)",color:"var(--kf-accent2)"},children:[u("contactPage.routePlan")," →"]})]})]})]}),l.jsx("div",{className:"mt-10 grid grid-cols-1 overflow-hidden rounded-2xl border min-[641px]:grid-cols-2 min-[901px]:grid-cols-4",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow2)"},children:E.map(T=>l.jsxs("div",{className:"flex items-center gap-4 border-b p-6 last:border-b-0 min-[641px]:border-b-0 min-[641px]:border-r min-[641px]:last:border-r-0",style:{borderColor:"var(--kf-divider)"},children:[l.jsx("div",{className:"flex h-[46px] w-[46px] flex-shrink-0 items-center justify-center rounded-full border-[1.5px]",style:{borderColor:"var(--kf-pkgbrd)",color:"var(--kf-accent2)"},children:l.jsx(ME,{path:LE[T.key],className:"h-[22px] w-[22px]"})}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[15px] font-bold",style:{color:"var(--kf-text)"},children:T.title}),l.jsx("div",{className:"mt-0.5 text-[13px]",style:{color:"var(--kf-muted)"},children:T.sub})]})]},T.key))})]})})}const Nu={audio:["mp3","wav","flac","m4a","aac","ogg","opus","aif","aiff","wma"],video:["mp4","mov","webm"],pdf:["pdf"],image:["jpg","jpeg","png","webp","gif"],archive:["zip","rar","7z"],document:["txt","rtf","doc","docx","xls","xlsx","odt","ods"]},PN=Object.values(Nu).flat(),DE=["mp3","wav","flac","m4a","aac","ogg","opus"],dd=e=>{const t=(e||"").lastIndexOf(".");return t===-1?"":e.slice(t+1).toLowerCase()},RE=e=>{const t=dd(e);return Object.keys(Nu).find(n=>Nu[n].includes(t))||"document"},IE=e=>DE.includes(dd(e)),VE=(e,t="de-DE")=>{const n=["B","KB","MB","GB"];let r=Number(e)||0,s=0;for(;r>=1024&&s=2?1:0}).format(r)} ${n[s]}`},OE={audio:eb,video:Rk,pdf:Af,image:Ak,archive:Mk,document:Af},_u="hifi-downloads-password",FE=()=>{try{return localStorage.getItem(_u)||""}catch{return""}},km=e=>{try{e?localStorage.setItem(_u,e):localStorage.removeItem(_u)}catch{}},bm=e=>Z.get("/downloads",e?{headers:{"X-Download-Password":encodeURIComponent(e)}}:void 0);function zE(){const[e,t]=g.useState(null),[n,r]=g.useState(!1),[s,i]=g.useState(""),[o,a]=g.useState(!1),[u,c]=g.useState(!1),[d,f]=g.useState(""),{t:h,language:x}=Te();g.useEffect(()=>{const y=FE();bm(y).then(k=>{k.locked?(y&&km(""),r(!0)):t(k.items)}).catch(k=>f(k.message))},[]);const w=async y=>{y.preventDefault(),c(!0),a(!1);try{const k=await bm(s);k.locked?a(!0):(km(s),r(!1),t(k.items))}catch(k){f(k.message)}finally{c(!1)}};return st({title:h("downloadsPage.metaTitle"),description:h("downloadsPage.metaDescription"),path:"/downloads"}),l.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:h("downloadsPage.title")}),l.jsx("p",{className:"mb-10 max-w-2xl text-neutral-600 dark:text-neutral-300",children:h("downloadsPage.intro")}),d&&l.jsx("p",{className:"text-red-600",children:d}),!d&&!n&&e===null&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:h("downloadsPage.loading")}),(e==null?void 0:e.length)===0&&l.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:h("downloadsPage.empty")}),n&&l.jsxs("form",{onSubmit:w,className:"max-w-md rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[l.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[l.jsx(Wk,{className:"h-5 w-5 text-brand-500","aria-hidden":"true"}),l.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:h("downloadsPage.lockedTitle")})]}),l.jsx("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:h("downloadsPage.lockedText")}),l.jsx("label",{htmlFor:"downloads-password",className:"sr-only",children:h("downloadsPage.passwordLabel")}),l.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[l.jsx("input",{id:"downloads-password",type:"password",required:!0,autoComplete:"off",value:s,onChange:y=>i(y.target.value),placeholder:h("downloadsPage.passwordLabel"),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm text-neutral-900 dark:border-neutral-700 dark:bg-neutral-950 dark:text-white"}),l.jsx("button",{type:"submit",disabled:u,className:"shrink-0 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:h(u?"downloadsPage.unlocking":"downloadsPage.unlock")})]}),o&&l.jsx("p",{className:"mt-2 text-sm text-red-600",role:"alert",children:h("downloadsPage.wrongPassword")})]}),l.jsx("div",{className:"space-y-4",children:e==null?void 0:e.map((y,k)=>{const p=OE[RE(y.file_name)];return l.jsx(be,{index:k%4,className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:l.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start",children:[l.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-brand-500/10 text-brand-600 dark:text-brand-400",children:l.jsx(p,{className:"h-6 w-6","aria-hidden":"true"})}),l.jsxs("div",{className:"min-w-0 flex-1",children:[l.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:y.title}),y.description&&l.jsx("p",{className:"mt-1 whitespace-pre-line text-sm text-neutral-600 dark:text-neutral-300",children:y.description}),l.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:[dd(y.file_name).toUpperCase()," · ",VE(y.file_size,x==="de"?"de-DE":"en-US")]}),IE(y.file_name)&&l.jsx("audio",{controls:!0,preload:"none",src:y.file_path,className:"mt-3 w-full"})]}),l.jsxs("a",{href:y.file_path,download:y.file_name,className:"inline-flex shrink-0 items-center justify-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:[l.jsx(Ck,{className:"h-4 w-4","aria-hidden":"true"}),h("downloadsPage.download")]})]})},y.id)})})]})}function BE(){const[e,t]=g.useState(null);return g.useEffect(()=>{Z.get("/legal-pages/impressum").then(t).catch(()=>{})},[]),st({title:(e==null?void 0:e.title)||"Impressum",description:"Impressum von HifiPlanet Amorbach gemäß § 5 DDG.",path:"/impressum"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}function $E(){const[e,t]=g.useState(null);return g.useEffect(()=>{Z.get("/legal-pages/datenschutz").then(t).catch(()=>{})},[]),st({title:(e==null?void 0:e.title)||"Datenschutzerklärung",description:"Datenschutzerklärung von HifiPlanet Amorbach gemäß Art. 13 DSGVO.",path:"/datenschutz"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}function HE(){const[e,t]=g.useState(null);return g.useEffect(()=>{Z.get("/legal-pages/agb").then(t).catch(()=>{})},[]),st({title:(e==null?void 0:e.title)||"AGB",description:"Allgemeine Geschäftsbedingungen von HifiPlanet Amorbach.",path:"/agb"}),e?l.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[l.jsx("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:e.title}),l.jsx("div",{className:"legal-content text-sm text-neutral-600 dark:text-neutral-300",dangerouslySetInnerHTML:{__html:e.body_html}})]}):null}const Ja="hifi-chunk-reload",re=e=>g.lazy(()=>e().then(t=>{try{sessionStorage.removeItem(Ja)}catch{}return t},t=>{let n=!0;try{n=!!sessionStorage.getItem(Ja),sessionStorage.setItem(Ja,"1")}catch{}if(n)throw t;return window.location.reload(),new Promise(()=>{})})),WE=re(()=>ee(()=>import("./SetupWizard-DcHkEIZ7.js"),[])),UE=re(()=>ee(()=>import("./Login-pbnF9xt-.js"),[])),GE=re(()=>ee(()=>import("./Dashboard-CnATY8Tr.js"),[])),KE=re(()=>ee(()=>import("./Brands-iEolLqPk.js"),__vite__mapDeps([3,4,5]))),XE=re(()=>ee(()=>import("./Models-Dd9dRX1L.js"),__vite__mapDeps([6,4,5]))),YE=re(()=>ee(()=>import("./GalleryBrands-BKk_jSpw.js"),__vite__mapDeps([7,4]))),qE=re(()=>ee(()=>import("./GalleryProjects-6TCFmGT7.js"),__vite__mapDeps([8,4]))),QE=re(()=>ee(()=>import("./GalleryPhotos-DupxhhRN.js"),[])),ZE=re(()=>ee(()=>import("./Packages-DAaVovhO.js"),__vite__mapDeps([9,5,2,1]))),JE=re(()=>ee(()=>import("./Services-D3kYNcAF.js"),__vite__mapDeps([10,4,0,1,2]))),eN=re(()=>ee(()=>import("./Faqs-CXlyRVeG.js"),[])),tN=re(()=>ee(()=>import("./Partners-DL_4PdP7.js"),__vite__mapDeps([11,4]))),nN=re(()=>ee(()=>import("./Downloads-4-kfkPkq.js"),__vite__mapDeps([12,1]))),rN=re(()=>ee(()=>import("./HomeSections-BBMip_Nb.js"),__vite__mapDeps([13,14,5]))),sN=re(()=>ee(()=>import("./ContactRequests-DdKiRF9Y.js"),[])),iN=re(()=>ee(()=>import("./AccountSettings-3Az7PIEf.js"),[])),oN=re(()=>ee(()=>import("./AdminUsers-Dk5C74Dp.js"),[])),aN=re(()=>ee(()=>import("./PermissionGroups-_i9KMBTo.js"),[])),lN=re(()=>ee(()=>import("./SettingsLayout-DQStnLDk.js"),[])),uN=re(()=>ee(()=>import("./WebsiteSettings-Yhbh_5yo.js"),__vite__mapDeps([15,4]))),cN=re(()=>ee(()=>import("./LegalSettings-DGN-Kl_a.js"),__vite__mapDeps([16,14]))),dN=re(()=>ee(()=>import("./UpdateSettings-Cz_YKsj0.js"),[])),fN=re(()=>ee(()=>import("./EmailSettings-DixrL0D8.js"),__vite__mapDeps([17,14]))),hN=re(()=>ee(()=>import("./DatabaseSettings-BJdW7tk9.js"),[])),mN=re(()=>ee(()=>import("./ExportImportSettings-D1vWoWVP.js"),[])),pN=re(()=>ee(()=>import("./MaintenanceSettings-DhcTJBUJ.js"),[])),gN=re(()=>ee(()=>import("./ResetSettings-c6DDNkFb.js"),[])),yN=l.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});function xN(){const{packageId:e}=$s();return l.jsx(jr,{to:`/admin/packages?paket=${e}`,replace:!0})}function vN(){return l.jsxs(l.Fragment,{children:[l.jsx(Ww,{}),l.jsx(Kw,{}),l.jsx(Zw,{children:l.jsx(g.Suspense,{fallback:yN,children:l.jsxs(Pw,{children:[l.jsx(B,{path:"/setup",element:l.jsx(WE,{})}),l.jsxs(B,{element:l.jsx(AC,{}),children:[l.jsx(B,{path:"/",element:l.jsx(eE,{})}),l.jsx(B,{path:"/fahrzeuge",element:l.jsx(tE,{})}),l.jsx(B,{path:"/fahrzeuge/:brandSlug",element:l.jsx(nE,{})}),l.jsx(B,{path:"/fahrzeuge/:brandSlug/:modelSlug",element:l.jsx(vE,{})}),l.jsx(B,{path:"/galerie",element:l.jsx(wE,{})}),l.jsx(B,{path:"/galerie/:brandSlug",element:l.jsx(kE,{})}),l.jsx(B,{path:"/galerie/:brandSlug/:projectSlug",element:l.jsx(SE,{})}),l.jsx(B,{path:"/leistungen",element:l.jsx(CE,{})}),l.jsx(B,{path:"/kontakt",element:l.jsx(AE,{})}),l.jsx(B,{path:"/downloads",element:l.jsx(zE,{})}),l.jsx(B,{path:"/impressum",element:l.jsx(BE,{})}),l.jsx(B,{path:"/datenschutz",element:l.jsx($E,{})}),l.jsx(B,{path:"/agb",element:l.jsx(HE,{})})]}),l.jsx(B,{path:"/admin/login",element:l.jsx(UE,{})}),l.jsx(B,{path:"/admin",element:l.jsx(VC,{}),children:l.jsxs(B,{element:l.jsx(IC,{}),children:[l.jsx(B,{index:!0,element:l.jsx(GE,{})}),l.jsx(B,{path:"account",element:l.jsx(iN,{})}),l.jsx(B,{path:"brands",element:l.jsx(Ae,{permission:"brands.manage",children:l.jsx(KE,{})})}),l.jsx(B,{path:"models",element:l.jsx(Ae,{permission:"models.manage",children:l.jsx(XE,{})})}),l.jsx(B,{path:"gallery-brands",element:l.jsx(Ae,{permission:"gallery.manage",children:l.jsx(YE,{})})}),l.jsx(B,{path:"gallery-projects",element:l.jsx(Ae,{permission:"gallery.manage",children:l.jsx(qE,{})})}),l.jsx(B,{path:"gallery-projects/:projectId/photos",element:l.jsx(Ae,{permission:"gallery.manage",children:l.jsx(QE,{})})}),l.jsx(B,{path:"packages",element:l.jsx(Ae,{permission:"packages.manage",children:l.jsx(ZE,{})})}),l.jsx(B,{path:"packages/:packageId/*",element:l.jsx(xN,{})}),l.jsx(B,{path:"services",element:l.jsx(Ae,{permission:"services.manage",children:l.jsx(JE,{})})}),l.jsx(B,{path:"faqs",element:l.jsx(Ae,{permission:"content.manage",children:l.jsx(eN,{})})}),l.jsx(B,{path:"partners",element:l.jsx(Ae,{permission:"content.manage",children:l.jsx(tN,{})})}),l.jsx(B,{path:"downloads",element:l.jsx(Ae,{permission:"downloads.manage",children:l.jsx(nN,{})})}),l.jsx(B,{path:"home-sections",element:l.jsx(Ae,{permission:"content.manage",children:l.jsx(rN,{})})}),l.jsx(B,{path:"contact-requests",element:l.jsx(Ae,{permission:"contact.manage",children:l.jsx(sN,{})})}),l.jsx(B,{path:"users",element:l.jsx(Ae,{permission:"users.manage",children:l.jsx(oN,{})})}),l.jsx(B,{path:"permission-groups",element:l.jsx(Ae,{permission:"permission_groups.manage",children:l.jsx(aN,{})})}),l.jsxs(B,{path:"settings",element:l.jsx(Ae,{permission:"settings.manage",children:l.jsx(lN,{})}),children:[l.jsx(B,{index:!0,element:l.jsx(jr,{to:"website",replace:!0})}),l.jsx(B,{path:"website",element:l.jsx(uN,{})}),l.jsx(B,{path:"legal",element:l.jsx(cN,{})}),l.jsx(B,{path:"email",element:l.jsx(fN,{})}),l.jsx(B,{path:"database",element:l.jsx(hN,{})}),l.jsx(B,{path:"export-import",element:l.jsx(mN,{})}),l.jsx(B,{path:"maintenance",element:l.jsx(pN,{})}),l.jsx(B,{path:"update",element:l.jsx(Ae,{permission:"system.update",children:l.jsx(dN,{})})}),l.jsx(B,{path:"reset",element:l.jsx(gN,{})})]})]})})]})})})]})}el.createRoot(document.getElementById("root")).render(l.jsx(Dm.StrictMode,{children:l.jsx(Dw,{basename:"/".replace(/\/$/,"")||"/",children:l.jsx(kb,{children:l.jsx(Tb,{children:l.jsx(Db,{children:l.jsx(vN,{})})})})})}));export{qk as $,PN as A,ik as B,bk as C,TE as D,fk as E,gk as F,wk as G,Qg as H,Pk as I,Ck as J,Nk as K,W as L,Mk as M,jr as N,Ec as O,Ak as P,Rk as Q,Dm as R,TC as S,Af as T,Ok as U,zk as V,$k as W,Wk as X,Gk as Y,Df as Z,Zg as _,Z as a,Zk as a0,eb as a1,nb as a2,sb as a3,xo as a4,ab as a5,ub as a6,db as a7,hb as a8,pb as a9,yb as aa,vb as ab,rk as ac,kN as ad,nk as ae,Hs as b,Yo as c,tu as d,$s as e,Go as f,zw as g,mk as h,xk as i,l as j,VE as k,hm as l,Xw as m,jN as n,No as o,Vw as p,Jy as q,g as r,SN as s,Sm as t,st as u,wN as v,U as w,qg as x,ak as y,ck as z}; diff --git a/hifi/assets/index-DszEoLNc.css b/hifi/assets/index-DszEoLNc.css deleted file mode 100644 index 2000a42..0000000 --- a/hifi/assets/index-DszEoLNc.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-vietnamese-400-normal-Dpl4UHAZ.woff2) format("woff2"),url(/assets/barlow-vietnamese-400-normal-BFeobeCK.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-latin-ext-400-normal-HxX4XjxC.woff2) format("woff2"),url(/assets/barlow-latin-ext-400-normal-CvBsJvxq.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-latin-400-normal-qiz4-Cze.woff2) format("woff2"),url(/assets/barlow-latin-400-normal-fsAxiSwU.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-vietnamese-500-normal-zTViEIzf.woff2) format("woff2"),url(/assets/barlow-vietnamese-500-normal-GNfB7rCE.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-latin-ext-500-normal-DOaysfXq.woff2) format("woff2"),url(/assets/barlow-latin-ext-500-normal-CJPcKP2Q.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-latin-500-normal-BPAOfeC8.woff2) format("woff2"),url(/assets/barlow-latin-500-normal-C1h8hMer.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-vietnamese-600-normal-DcjprdFV.woff2) format("woff2"),url(/assets/barlow-vietnamese-600-normal-CA_GiK2e.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-latin-ext-600-normal-B8NK_A3D.woff2) format("woff2"),url(/assets/barlow-latin-ext-600-normal-DMVRjfRT.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-latin-600-normal-DILqtrty.woff2) format("woff2"),url(/assets/barlow-latin-600-normal-CNwfPWQD.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-vietnamese-700-normal-D6euyNzi.woff2) format("woff2"),url(/assets/barlow-vietnamese-700-normal-4Jt4k04K.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-latin-ext-700-normal-BLuWmldJ.woff2) format("woff2"),url(/assets/barlow-latin-ext-700-normal-CctuGmmz.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-latin-700-normal-A9pxMQ4z.woff2) format("woff2"),url(/assets/barlow-latin-700-normal-__SGTsZ1.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-vietnamese-500-normal-DjeaNLFD.woff2) format("woff2"),url(/assets/barlow-condensed-vietnamese-500-normal-CsrJDWc5.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-latin-ext-500-normal-yA5ONLQ9.woff2) format("woff2"),url(/assets/barlow-condensed-latin-ext-500-normal-B1RE8WP7.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-latin-500-normal-BgYH2mbd.woff2) format("woff2"),url(/assets/barlow-condensed-latin-500-normal-HIEiP5Ov.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-vietnamese-600-normal-A5AYRdjN.woff2) format("woff2"),url(/assets/barlow-condensed-vietnamese-600-normal-CNlPk46_.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-latin-ext-600-normal-18ESti3H.woff2) format("woff2"),url(/assets/barlow-condensed-latin-ext-600-normal-Clv9cIcR.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-latin-600-normal-DepVgxBB.woff2) format("woff2"),url(/assets/barlow-condensed-latin-600-normal-BFJEwTuo.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Michroma;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/michroma-latin-ext-400-normal-BeYM1uOO.woff2) format("woff2"),url(/assets/michroma-latin-ext-400-normal-DlRaauac.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Michroma;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/michroma-latin-400-normal-4gS0VCia.woff2) format("woff2"),url(/assets/michroma-latin-400-normal-C7Pn7qca.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--site-font, ui-sans-serif, system-ui, sans-serif);font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-5{bottom:-1.25rem}.-left-1\/3{left:-33.333333%}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-right-\[60px\]{right:-60px}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-3{top:-.75rem}.-top-\[60px\]{top:-60px}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-3\.5{left:.875rem}.left-5{left:1.25rem}.left-6{left:1.5rem}.left-\[14px\]{left:14px}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-3\.5{top:.875rem}.top-4{top:1rem}.top-8{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[200\]{z-index:200}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-full{grid-column:1 / -1}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.-mt-\[89px\]{margin-top:-89px}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-7{margin-bottom:1.75rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr-3{margin-right:.75rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-3\.5{margin-top:.875rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-6{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-0\.5{height:.125rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-\[17px\]{height:17px}.h-\[18px\]{height:18px}.h-\[190px\]{height:190px}.h-\[210px\]{height:210px}.h-\[22px\]{height:22px}.h-\[46px\]{height:46px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-64{max-height:16rem}.max-h-\[85vh\]{max-height:85vh}.min-h-\[10rem\]{min-height:10rem}.min-h-\[560px\]{min-height:560px}.min-h-\[70vh\]{min-height:70vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[17px\]{width:17px}.w-\[18px\]{width:18px}.w-\[190px\]{width:190px}.w-\[22px\]{width:22px}.w-\[46px\]{width:46px}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\[220px\]{min-width:220px}.min-w-\[90px\]{min-width:90px}.min-w-\[9rem\]{min-width:9rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-\[1280px\]{max-width:1280px}.max-w-\[160px\]{max-width:160px}.max-w-\[1880px\]{max-width:1880px}.max-w-\[520px\]{max-width:520px}.max-w-\[85\%\]{max-width:85%}.max-w-\[8rem\]{max-width:8rem}.max-w-\[calc\(100\%-16px\)\]{max-width:calc(100% - 16px)}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-12{--tw-rotate: 12deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.touch-pan-y{--tw-pan-y: pan-y;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.snap-start{scroll-snap-align:start}.snap-center{scroll-snap-align:center}.scroll-mt-4{scroll-margin-top:1rem}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[18px\]{gap:18px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-x-\[18px\]{-moz-column-gap:18px;column-gap:18px}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-neutral-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(245 245 245 / var(--tw-divide-opacity, 1))}.divide-neutral-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 229 229 / var(--tw-divide-opacity, 1))}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[10px\]{border-radius:10px}.rounded-\[18px\]{border-radius:18px}.rounded-\[3px\]{border-radius:3px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.border{border-width:1px}.border-0{border-width:0px}.border-4{border-width:4px}.border-\[1\.5px\]{border-width:1.5px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-brand-300{--tw-border-opacity: 1;border-color:rgb(182 227 130 / var(--tw-border-opacity, 1))}.border-brand-500{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.border-neutral-100{--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1))}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-neutral-300{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.border-neutral-700{--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.border-neutral-800{--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white\/10{border-color:#ffffff1a}.border-white\/15{border-color:#ffffff26}.border-white\/30{border-color:#ffffff4d}.border-t-brand-500{--tw-border-opacity: 1;border-top-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-black\/50{background-color:#00000080}.bg-black\/55{background-color:#0000008c}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/90{background-color:#000000e6}.bg-brand-100{--tw-bg-opacity: 1;background-color:rgb(233 246 218 / var(--tw-bg-opacity, 1))}.bg-brand-400{--tw-bg-opacity: 1;background-color:rgb(146 212 68 / var(--tw-bg-opacity, 1))}.bg-brand-50{--tw-bg-opacity: 1;background-color:rgb(245 251 238 / var(--tw-bg-opacity, 1))}.bg-brand-500{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.bg-brand-500\/10{background-color:#6ba6261a}.bg-brand-500\/60{background-color:#6ba62699}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.bg-neutral-200{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity, 1))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity, 1))}.bg-neutral-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-neutral-900\/10{background-color:#1717171a}.bg-neutral-900\/85{background-color:#171717d9}.bg-neutral-950{--tw-bg-opacity: 1;background-color:rgb(10 10 10 / var(--tw-bg-opacity, 1))}.bg-neutral-950\/90{background-color:#0a0a0ae6}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-50\/40{background-color:#fef2f266}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/10{background-color:#ffffff1a}.bg-white\/5{background-color:#ffffff0d}.bg-white\/95{background-color:#fffffff2}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-black\/70{--tw-gradient-from: rgb(0 0 0 / .7) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/85{--tw-gradient-from: rgb(0 0 0 / .85) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-700{--tw-gradient-from: #404040 var(--tw-gradient-from-position);--tw-gradient-to: rgb(64 64 64 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-950{--tw-gradient-from: #0a0a0a var(--tw-gradient-from-position);--tw-gradient-to: rgb(10 10 10 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-black\/10{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / .1) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-black\/20{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / .2) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-neutral-950\/80{--tw-gradient-to: rgb(10 10 10 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(10 10 10 / .8) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-white\/40{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / .4) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-black\/40{--tw-gradient-to: rgb(0 0 0 / .4) var(--tw-gradient-to-position)}.to-neutral-900{--tw-gradient-to: #171717 var(--tw-gradient-to-position)}.to-neutral-950\/40{--tw-gradient-to: rgb(10 10 10 / .4) var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[22px\]{padding:22px}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[22px\]{padding-left:22px;padding-right:22px}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[22px\]{padding-top:22px;padding-bottom:22px}.py-\[26px\]{padding-top:26px;padding-bottom:26px}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-\[42px\]{padding-left:42px}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pt-3{padding-top:.75rem}.pt-3\.5{padding-top:.875rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:var(--site-font, ui-sans-serif, system-ui, sans-serif)}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[17px\]{font-size:17px}.text-\[34px\]{font-size:34px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-\[1\.08\]{line-height:1.08}.leading-\[1\.4\]{line-height:1.4}.leading-\[1\.55\]{line-height:1.55}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.tracking-\[0\.2em\]{letter-spacing:.2em}.tracking-\[2px\]{letter-spacing:2px}.tracking-\[3px\]{letter-spacing:3px}.tracking-\[6px\]{letter-spacing:6px}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-brand-300{--tw-text-opacity: 1;color:rgb(182 227 130 / var(--tw-text-opacity, 1))}.text-brand-400{--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.text-brand-500{--tw-text-opacity: 1;color:rgb(107 166 38 / var(--tw-text-opacity, 1))}.text-brand-500\/10{color:#6ba6261a}.text-brand-600{--tw-text-opacity: 1;color:rgb(88 137 31 / var(--tw-text-opacity, 1))}.text-brand-700{--tw-text-opacity: 1;color:rgb(72 112 26 / var(--tw-text-opacity, 1))}.text-brand-800{--tw-text-opacity: 1;color:rgb(59 91 21 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-neutral-200{--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-800{--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-neutral-950{--tw-text-opacity: 1;color:rgb(10 10 10 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/70{color:#ffffffb3}.text-white\/80{color:#fffc}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_-8px_24px_rgba\(0\,0\,0\,0\.08\)\]{--tw-shadow: 0 -8px 24px rgba(0,0,0,.08);--tw-shadow-colored: 0 -8px 24px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_10px_rgba\(107\,166\,38\,0\.7\)\]{--tw-shadow: 0 0 10px rgba(107,166,38,.7);--tw-shadow-colored: 0 0 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-brand-500\/30{--tw-shadow-color: rgb(107 166 38 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-neutral-900\/20{--tw-shadow-color: rgb(23 23 23 / .2);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-brand-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(146 212 68 / var(--tw-ring-opacity, 1))}.ring-brand-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 166 38 / var(--tw-ring-opacity, 1))}.ring-brand-500\/40{--tw-ring-color: rgb(107 166 38 / .4)}.ring-neutral-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(82 82 82 / var(--tw-ring-opacity, 1))}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1))}.ring-white\/50{--tw-ring-color: rgb(255 255 255 / .5)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[filter\,box-shadow\]{transition-property:filter,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}.\[scrollbar-width\:none\]{scrollbar-width:none}html{scroll-behavior:smooth}.marquee-viewport{-webkit-mask-image:linear-gradient(to right,transparent,black 6%,black 94%,transparent);mask-image:linear-gradient(to right,transparent,black 6%,black 94%,transparent)}.page-texture{background-color:#f6f5f0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:180px 180px}.dark .page-texture{background-color:#0a0b07;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}.kf-page{--kf-pagebg: linear-gradient(120deg, #eef0ea 0%, #f6f8f3 45%, #fbfcf9 100%);--kf-card: #ffffff;--kf-cardbrd: #e4e8dc;--kf-text: #23271d;--kf-text2: #2a2e24;--kf-muted: #6c7360;--kf-label: #838a72;--kf-field: #fafcf6;--kf-fieldbrd: #dde2d3;--kf-fieldicon: #a7ad9d;--kf-accent: #a4d417;--kf-accent2: #8ec21a;--kf-accentsoft: #f2f8df;--kf-pill: #ffffff;--kf-pillbrd: #dfe4d6;--kf-shadow: 0 24px 60px rgba(60, 70, 40, .08);--kf-shadow2: 0 16px 40px rgba(60, 70, 40, .06);--kf-divider: #e8ecdf;--kf-topo: #d7dccd;--kf-pkgbg: #f4fbe4;--kf-pkgbrd: #cfe89a;--kf-btntext: #1f2417;--kf-scrim: linear-gradient(90deg, rgba(244, 246, 241, .35) 0%, rgba(244, 246, 241, .55) 55%, rgba(246, 248, 243, 1) 100%)}.dark .kf-page{--kf-pagebg: linear-gradient(120deg, #181b0f 0%, #111409 45%, #0a0c06 100%);--kf-card: #14170e;--kf-cardbrd: rgba(168, 225, 12, .16);--kf-text: #f3f6ea;--kf-text2: #e8ece0;--kf-muted: #9aa38c;--kf-label: #8f987f;--kf-field: rgba(0, 0, 0, .35);--kf-fieldbrd: #2c3323;--kf-fieldicon: #5f6852;--kf-accent: #a8e10c;--kf-accent2: #b6e619;--kf-accentsoft: rgba(168, 225, 12, .1);--kf-pill: #14170e;--kf-pillbrd: rgba(168, 225, 12, .28);--kf-shadow: 0 24px 60px rgba(0, 0, 0, .55);--kf-shadow2: 0 16px 40px rgba(0, 0, 0, .45);--kf-divider: rgba(168, 225, 12, .15);--kf-pkgbg: rgba(168, 225, 12, .08);--kf-pkgbrd: rgba(168, 225, 12, .4);--kf-btntext: #0f1208}.kontakt-sektion{background-image:url(/assets/bg-light-CBAG2tPV.webp);background-size:cover;background-position:center}.dark .kontakt-sektion{background-image:url(/assets/bg-dark-B4R1klEI.webp)}.kf-page input::-moz-placeholder,.kf-page textarea::-moz-placeholder{color:var(--kf-fieldicon)}.kf-page input::placeholder,.kf-page textarea::placeholder{color:var(--kf-fieldicon)}.kf-page input:focus,.kf-page textarea:focus{border-color:var(--kf-accent)!important;box-shadow:0 0 0 3px #a4d41733}.grain-band{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:180px 180px}.dark .grain-band{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}html.hifi-cursor-on,html.hifi-cursor-on *{cursor:none!important}html.hifi-cursor-on :is(input,textarea,[contenteditable=true]){cursor:auto!important}.hifi-cursor{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:99999;opacity:1;transition:opacity .2s ease}.hifi-cursor[data-hidden=true]{opacity:0}.hifi-cursor__core{position:fixed;top:0;left:0;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:9999px;background:#7fd44a;box-shadow:0 0 0 1.5px #ffffffe6,0 0 10px #7fd44abf;transition:width .18s ease,height .18s ease,margin .18s ease,background-color .18s ease,opacity .15s ease}.hifi-cursor__orbit{position:fixed;top:0;left:0;opacity:0;transition:opacity .18s ease}.hifi-cursor__ring{position:absolute;width:38px;height:15px;margin:-7.5px 0 0 -19px;border:1px solid rgba(139,234,60,.85);border-radius:50%;transform:rotate(-24deg) scale(.6);transition:transform .22s ease}.hifi-cursor__sat{position:absolute;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:9999px;background:#eaffdb;box-shadow:0 0 6px #8bea3ce6}.hifi-cursor[data-state=hover] .hifi-cursor__orbit{opacity:1}.hifi-cursor[data-state=hover] .hifi-cursor__core{width:16px;height:16px;margin:-8px 0 0 -8px;background:#8bea3c;box-shadow:0 0 0 1.5px #fffffff2,0 0 12px #8bea3cd9}.hifi-cursor[data-state=hover] .hifi-cursor__ring{transform:rotate(-24deg) scale(1.45)}.hifi-cursor[data-state=text] .hifi-cursor__core,.hifi-cursor[data-state=text] .hifi-cursor__orbit{opacity:0}.hifi-cursor[data-down=true] .hifi-cursor__core{width:20px;height:20px;margin:-10px 0 0 -10px}.hifi-cursor__pulse{position:fixed;top:0;left:0;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:9999px;border:1.5px solid rgba(139,234,60,.9);opacity:0}.hifi-cursor__pulse.is-live{animation:hifi-cursor-pulse .45s ease-out forwards}@keyframes hifi-cursor-pulse{0%{opacity:.9;transform:scale(1)}to{opacity:0;transform:scale(3.2)}}.rte-content ul{list-style:disc;padding-left:1.5rem}.rte-content ol{list-style:decimal;padding-left:1.5rem}.rte-content a{color:#3b82f6;text-decoration:underline}.rte-content p{margin:.25rem 0}.rte-content h2{font-size:1.125rem;font-weight:700;margin:.75rem 0 .25rem}.rte-content code{font-family:ui-monospace,monospace;background:#7d7d7d26;border-radius:.25rem;padding:.1rem .3rem;font-size:.85em}.legal-content h2{margin:2rem 0 .5rem;font-weight:600;color:#171717}.dark .legal-content h2{color:#fff}.legal-content h2:first-child{margin-top:0}.legal-content p{margin:.5rem 0}.legal-content ul{list-style:disc;padding-left:1.25rem;margin:.5rem 0}.legal-content li{margin:.25rem 0}.legal-content a{color:#6ba626;text-decoration:underline}.legal-content code{font-family:ui-monospace,monospace;background:#7d7d7d26;border-radius:.25rem;padding:.1rem .3rem;font-size:.85em}.file\:mr-3::file-selector-button{margin-right:.75rem}.file\:rounded-md::file-selector-button{border-radius:.375rem}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-brand-500::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.file\:px-3::file-selector-button{padding-left:.75rem;padding-right:.75rem}.file\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-semibold::file-selector-button{font-weight:600}.file\:text-white::file-selector-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.last\:border-b-0:last-child{border-bottom-width:0px}.hover\:-translate-y-0\.5:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-\[var\(--kf-accent\)\]:hover{border-color:var(--kf-accent)}.hover\:border-brand-500:hover{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.hover\:border-neutral-400:hover{--tw-border-opacity: 1;border-color:rgb(163 163 163 / var(--tw-border-opacity, 1))}.hover\:bg-\[var\(--kf-accentsoft\)\]:hover{background-color:var(--kf-accentsoft)}.hover\:bg-amber-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-400:hover{--tw-bg-opacity: 1;background-color:rgb(146 212 68 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-50:hover{--tw-bg-opacity: 1;background-color:rgb(245 251 238 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-600:hover{--tw-bg-opacity: 1;background-color:rgb(88 137 31 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-800:hover{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:bg-white\/15:hover{background-color:#ffffff26}.hover\:bg-white\/20:hover{background-color:#fff3}.hover\:text-brand-500:hover{--tw-text-opacity: 1;color:rgb(107 166 38 / var(--tw-text-opacity, 1))}.hover\:text-brand-600:hover{--tw-text-opacity: 1;color:rgb(88 137 31 / var(--tw-text-opacity, 1))}.hover\:text-neutral-600:hover{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.hover\:text-neutral-700:hover{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:grayscale-0:hover{--tw-grayscale: grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:file\:bg-brand-600::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(88 137 31 / var(--tw-bg-opacity, 1))}.focus\:border-brand-500:focus{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-brand-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 166 38 / var(--tw-ring-opacity, 1))}.active\:cursor-grabbing:active{cursor:grabbing}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:from-black\/95{--tw-gradient-from: rgb(0 0 0 / .95) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.peer:checked~.peer-checked\:translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:bg-brand-500{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.dark\:block:is(.dark *){display:block}.dark\:hidden:is(.dark *){display:none}.dark\:divide-neutral-800:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(38 38 38 / var(--tw-divide-opacity, 1))}.dark\:border-amber-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(180 83 9 / var(--tw-border-opacity, 1))}.dark\:border-brand-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(48 75 17 / var(--tw-border-opacity, 1))}.dark\:border-neutral-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.dark\:border-neutral-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.dark\:border-red-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(127 29 29 / var(--tw-border-opacity, 1))}.dark\:border-t-brand-500:is(.dark *){--tw-border-opacity: 1;border-top-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.dark\:bg-amber-900\/20:is(.dark *){background-color:#78350f33}.dark\:bg-amber-900\/30:is(.dark *){background-color:#78350f4d}.dark\:bg-amber-900\/40:is(.dark *){background-color:#78350f66}.dark\:bg-brand-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.dark\:bg-brand-900\/20:is(.dark *){background-color:#304b1133}.dark\:bg-brand-900\/40:is(.dark *){background-color:#304b1166}.dark\:bg-green-900\/20:is(.dark *){background-color:#14532d33}.dark\:bg-green-900\/40:is(.dark *){background-color:#14532d66}.dark\:bg-neutral-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(82 82 82 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-800\/50:is(.dark *){background-color:#26262680}.dark\:bg-neutral-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-900\/40:is(.dark *){background-color:#17171766}.dark\:bg-neutral-900\/95:is(.dark *){background-color:#171717f2}.dark\:bg-neutral-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(10 10 10 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-950\/95:is(.dark *){background-color:#0a0a0af2}.dark\:bg-red-900\/10:is(.dark *){background-color:#7f1d1d1a}.dark\:bg-red-900\/20:is(.dark *){background-color:#7f1d1d33}.dark\:bg-red-900\/40:is(.dark *){background-color:#7f1d1d66}.dark\:bg-slate-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.dark\:bg-white\/10:is(.dark *){background-color:#ffffff1a}.dark\:text-amber-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.dark\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark\:text-brand-200:is(.dark *){--tw-text-opacity: 1;color:rgb(211 238 180 / var(--tw-text-opacity, 1))}.dark\:text-brand-300:is(.dark *){--tw-text-opacity: 1;color:rgb(182 227 130 / var(--tw-text-opacity, 1))}.dark\:text-brand-400:is(.dark *){--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.dark\:text-brand-400\/10:is(.dark *){color:#92d4441a}.dark\:text-green-300:is(.dark *){--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.dark\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.dark\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.dark\:text-neutral-500:is(.dark *){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.dark\:text-neutral-600:is(.dark *){--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.dark\:text-neutral-900:is(.dark *){--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-slate-100:is(.dark *){--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:shadow-black\/40:is(.dark *){--tw-shadow-color: rgb(0 0 0 / .4);--tw-shadow: var(--tw-shadow-colored)}.dark\:ring-neutral-900:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(23 23 23 / var(--tw-ring-opacity, 1))}.dark\:hover\:border-neutral-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(82 82 82 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-brand-900\/20:hover:is(.dark *){background-color:#304b1133}.dark\:hover\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-neutral-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-neutral-800\/40:hover:is(.dark *){background-color:#26262666}.dark\:hover\:bg-neutral-800\/50:hover:is(.dark *){background-color:#26262680}.dark\:hover\:bg-red-900\/20:hover:is(.dark *){background-color:#7f1d1d33}.dark\:hover\:bg-red-900\/30:hover:is(.dark *){background-color:#7f1d1d4d}.dark\:hover\:text-brand-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.dark\:hover\:text-neutral-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.sm\:left-4{left:1rem}.sm\:left-8{left:2rem}.sm\:right-4{right:1rem}.sm\:top-\[65px\]{top:65px}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:-mt-\[97px\]{margin-top:-97px}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:h-16{height:4rem}.sm\:h-20{height:5rem}.sm\:h-96{height:24rem}.sm\:min-h-\[85vh\]{min-height:85vh}.sm\:w-72{width:18rem}.sm\:w-auto{width:auto}.sm\:flex-none{flex:none}.sm\:shrink-0{flex-shrink:0}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\:grid-cols-\[10rem_1fr\]{grid-template-columns:10rem 1fr}.sm\:grid-cols-\[16rem_1fr\]{grid-template-columns:16rem 1fr}.sm\:grid-cols-\[1fr_120px\]{grid-template-columns:1fr 120px}.sm\:grid-cols-\[1fr_120px_1fr\]{grid-template-columns:1fr 120px 1fr}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:p-10{padding:2.5rem}.sm\:p-5{padding:1.25rem}.sm\:p-6{padding:1.5rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.sm\:py-\[34px\]{padding-top:34px;padding-bottom:34px}.sm\:pl-11{padding-left:2.75rem}.sm\:pl-8{padding-left:2rem}.sm\:pt-1{padding-top:.25rem}.sm\:pt-14{padding-top:3.5rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-5xl{font-size:3rem;line-height:1}.sm\:text-\[46px\]{font-size:46px}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 641px){.min-\[641px\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.min-\[641px\]\:border-b-0{border-bottom-width:0px}.min-\[641px\]\:border-r{border-right-width:1px}.min-\[641px\]\:last\:border-r-0:last-child{border-right-width:0px}}@media (min-width: 768px){.md\:order-1{order:1}.md\:order-2{order:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 901px){.min-\[901px\]\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 981px){.min-\[981px\]\:grid-cols-\[minmax\(0\,1\.35fr\)_minmax\(320px\,1fr\)\]{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr)}}@media (min-width: 1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:w-80{width:20rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:text-\[60px\]{font-size:60px}}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none} diff --git a/hifi/assets/trash-2-CR1es5DZ.js b/hifi/assets/trash-2-CQGOvKRj.js similarity index 97% rename from hifi/assets/trash-2-CR1es5DZ.js rename to hifi/assets/trash-2-CQGOvKRj.js index 1f6178d..9a867f5 100644 --- a/hifi/assets/trash-2-CR1es5DZ.js +++ b/hifi/assets/trash-2-CQGOvKRj.js @@ -1,4 +1,4 @@ -import{w as c}from"./index-CeNRYcbS.js";/** +import{w as c}from"./index-DM5dAVp5.js";/** * @license lucide-react v1.23.0 - ISC * * This source code is licensed under the ISC license. diff --git a/hifi/index.html b/hifi/index.html index 35667d2..0397a3f 100644 --- a/hifi/index.html +++ b/hifi/index.html @@ -40,8 +40,8 @@ "sameAs": ["https://www.youtube.com/@hifiplanet2812"] } - - + +