build: reveal quiz answers locally

This commit is contained in:
Jakub Zych
2026-10-02 14:45:16 +02:00
parent 860120d9cf
commit 7110b1ab12
28 changed files with 26 additions and 26 deletions

View File

@@ -0,0 +1 @@
import{O as o}from"./index-CS-9LS0K.js";function a(s){if(s instanceof o){const e={};for(const[r,t]of Object.entries(s.errors))t.length&&(e[r]=t[0]);return{message:Object.keys(e).length&&Object.values(e).includes(s.message)?"":s.message,fields:e}}return{message:"Coś poszło nie tak. Spróbuj ponownie.",fields:{}}}function f(s){return typeof s=="string"&&s.startsWith("/")&&!s.startsWith("//")&&!s.startsWith("/\\")?s:"/"}export{a as f,f as s};