HifiPlanet-Website/hifi/assets/contactRequests-Qfsfq7Lb.js
Max Olchov b915972a12
Optimierungspaket: Kontaktformular, Admin-Komfort, Rechte, Übersetzungen
- Kontaktformular mit Spam-Schutz (Honeypot, Mindestzeit, Rate-Limit), klarer
  Bestätigung, Paketpreis vom Server, WhatsApp mit vorbereitetem Text
- Preis-Hinweis unter Paketpreisen, eigene 404-Seite, verständliche Fehler
- Admin: Toasts, Speicherleiste, Warnung bei ungespeicherten Änderungen,
  Re-Login bei abgelaufener Sitzung, Sortieren per Drag & Drop
- Neues Recht system.admin für DB, Mail, Google, Export/Import, Reset
- Englische Texte für Leistungen/Pakete/Upgrades (content_translations)
- Automatische Schema-Migration beim ersten Aufruf nach git pull
- Build in hifi/ neu erzeugt

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Dgc8etkq7JkjyZgD2DEbv
2026-10-19 21:39:01 +00:00

11 lines
847 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function i(n){return[[n.brand_name,n.model_name].filter(Boolean).join(" "),n.package_name].filter(Boolean).join(" · ")}function c(n){if(!n)return"";const e=new Date(n.replace(" ","T")),t=Math.round((Date.now()-e.getTime())/6e4);if(t<1)return"gerade eben";if(t<60)return`vor ${t} Min.`;const o=Math.round(t/60);if(o<24)return`vor ${o} Std.`;const a=Math.round(o/24);return a===1?"gestern":a<7?`vor ${a} Tagen`:e.toLocaleDateString("de-DE")}function l(n){const e=i(n),t=`Ihre Anfrage bei HifiPlanet${e?` – ${e}`:""}`,o=(n.message||"").split(`
`).map(r=>`> ${r}`).join(`
`),a=`Hallo ${n.name},
vielen Dank für Ihre Anfrage.
${o?`Ihre Nachricht:
${o}
`:""}`;return`mailto:${n.email}?subject=${encodeURIComponent(t)}&body=${encodeURIComponent(a)}`}function s(n){return`tel:${(n||"").replace(/[^\d+]/g,"")}`}export{s as a,l as m,c as t,i as v};