veza/.build/incus/web/js/chunk-CZfIDqzc.js
senke 1ed6e7f07b state-ownership: delete unused optimisticStoreUpdates.ts file
- Deleted apps/web/src/utils/optimisticStoreUpdates.ts (unused file)
- File was unused - no imports found in codebase
- Mutations already use React Query's onMutate pattern
- No TypeScript errors after deletion
- Actions 4.4.1.2 and 4.4.1.3 complete
2026-01-15 19:26:53 +01:00

2 lines
3.5 KiB
JavaScript

import{j as r,c as x,aD as m,bf as f,o as l}from"./chunk-m7Vgm5hx.js";import{L as b}from"./index-vht7ZNSp.js";function w({title:e,subtitle:t,children:n,footerLinks:o,className:a}){return r.jsxs("div",{className:x("min-h-screen flex items-center justify-center bg-kodo-void py-12 px-4 sm:px-6 lg:px-8 relative overflow-hidden",a),role:"main","aria-label":"Page d'authentification",children:[r.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[r.jsx("div",{className:"absolute top-0 right-0 w-96 h-96 bg-kodo-cyan/5 rounded-full blur-3xl"}),r.jsx("div",{className:"absolute bottom-0 left-0 w-96 h-96 bg-kodo-magenta/5 rounded-full blur-3xl"})]}),r.jsxs("div",{className:"max-w-md w-full space-y-8 relative z-10 animate-fade-in",children:[r.jsxs("header",{className:"text-center",children:[r.jsxs("div",{className:"flex items-center justify-center mb-6",children:[r.jsx("div",{className:"h-12 w-12 rounded-xl bg-gradient-to-br from-kodo-cyan to-kodo-cyan-dim flex items-center justify-center shadow-glow-cyan","aria-hidden":"true",children:r.jsx("span",{className:"text-kodo-void font-bold text-2xl",children:"V"})}),r.jsx("span",{className:"ml-3 font-bold text-3xl text-white",children:"Veza"})]}),r.jsx("h1",{id:"auth-form-title",className:"text-4xl font-bold text-white mb-2",children:e}),t&&r.jsx("p",{className:"text-sm text-kodo-secondary",role:"doc-subtitle",children:t})]}),r.jsx("section",{className:"glass rounded-2xl border border-white/10 py-8 px-6 shadow-2xl backdrop-blur-xl","aria-labelledby":"auth-form-title",children:n}),o&&o.length>0&&r.jsx("nav",{className:"text-center space-x-4","aria-label":"Navigation d'authentification",children:o.map(s=>r.jsx(b,{to:s.to,className:"text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 rounded",children:s.label},s.to))})]})]})}function v({loading:e,variant:t="primary",className:n,children:o,disabled:a,...s}){return r.jsx("button",{className:x("w-full px-4 py-2 rounded-lg font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2",t==="primary"?"bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 dark:bg-blue-500 dark:hover:bg-blue-600":"bg-gray-200 text-gray-800 hover:bg-gray-300 focus:ring-gray-500 dark:bg-gray-700 dark:text-gray-200 dark:hover:bg-gray-600",(a||e)&&"opacity-50 cursor-not-allowed",n),disabled:a||e,"aria-busy":e,"aria-disabled":a||e?"true":"false",...s,children:e?r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"sr-only",children:"Chargement en cours"}),r.jsx("span",{"aria-hidden":"true",children:"Chargement..."})]}):o})}function p(e,t={}){const{context:n,includeDetails:o=!1,customMessages:a={},throwError:s=!0}=t,c=m(e),u=typeof c.code=="number"?c.code:0;if(u in a){const i=a[u];if(s)throw new Error(i);return i}const h=f(c,n,o);if(s){const i=new Error(h);throw i.apiError=c,i}return h}function d(e,t={}){return p(e,{...t,throwError:!0})}async function j(e){try{await l.post("/auth/password/reset-request",e)}catch(t){d(t,{context:"auth"})}}async function N(e){try{await l.post("/auth/password/reset",{token:e.token,password:e.password})}catch(t){d(t,{context:"auth"})}}async function k(e){try{await l.get(`/auth/verify-email?token=${e}`)}catch(t){d(t,{context:"auth"})}}async function E(e){try{await l.post("/auth/resend-verification",{email:e})}catch(t){d(t,{context:"auth"})}}export{w as A,v as a,N as b,j as c,E as r,k as v};
//# sourceMappingURL=chunk-CZfIDqzc.js.map