Files
boc/landvex-site/assets/Principles-CmpgkpiO.js
T
Bernt 48ea61cdcc docs: add quixzoom-auth-core product to AAMOS
- Product documentation in docs/products/
- Updated MEMORY.md with product info
- quiXzoom Auth Core as AAMOS Identity product
2026-07-14 09:58:53 +00:00

3 lines
5.1 KiB
JavaScript

import{ao as x,r as h,j as e,ax as g,p as t,b7 as p,b9 as b,T as u,S as y,y as f,ba as j,v as N}from"./index-CZD3_4lD.js";import{u as v}from"./useQuery-CHKCqCt4.js";import{S as k}from"./shield-DIM7u0gp.js";import{H as w}from"./heart-Bn8C2h_q.js";import{E as C}from"./eye-IKrhkOAd.js";import{N as S,B as A}from"./network-DPfpWoXe.js";import{K as E}from"./key-C9i37qxc.js";import{G as P}from"./graduation-cap-TNnu1wlO.js";import{C as I}from"./chevron-down-DA--jGG2.js";import{A as K}from"./index-DXB3_sFe.js";import{A as M}from"./arrow-left-DyClWdEf.js";const B=()=>v({queryKey:["principles"],queryFn:async()=>{const a=await x("/principles?order=order_index.asc");return Array.isArray(a)?a:[]}}),G={target:u,"graduation-cap":P,wallet:b,key:E,brain:A,users:p,network:S,eye:C,heart:w,shield:k},c=["from-primary/20 to-primary/5 border-primary/30","from-blue-500/20 to-blue-500/5 border-blue-500/30","from-amber-500/20 to-amber-500/5 border-amber-500/30","from-emerald-500/20 to-emerald-500/5 border-emerald-500/30","from-violet-500/20 to-violet-500/5 border-violet-500/30","from-rose-500/20 to-rose-500/5 border-rose-500/30","from-cyan-500/20 to-cyan-500/5 border-cyan-500/30","from-orange-500/20 to-orange-500/5 border-orange-500/30","from-indigo-500/20 to-indigo-500/5 border-indigo-500/30","from-teal-500/20 to-teal-500/5 border-teal-500/30"],m=["text-primary bg-primary/20","text-blue-500 bg-blue-500/20","text-amber-500 bg-amber-500/20","text-emerald-500 bg-emerald-500/20","text-violet-500 bg-violet-500/20","text-rose-500 bg-rose-500/20","text-cyan-500 bg-cyan-500/20","text-orange-500 bg-orange-500/20","text-indigo-500 bg-indigo-500/20","text-teal-500 bg-teal-500/20"],L=({principle:a,index:s,isExpanded:i,onToggle:d})=>{const n=a.icon?G[a.icon]:y,l=c[s%c.length],r=m[s%m.length];return e.jsx(t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4,delay:s*.08},children:e.jsx(f,{className:`overflow-hidden cursor-pointer transition-all duration-300 bg-gradient-to-br ${l} hover:shadow-lg border`,onClick:d,children:e.jsxs("div",{className:"p-5",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center shrink-0 ${r}`,children:n&&e.jsx(n,{className:"w-6 h-6"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"flex items-center gap-2 mb-1",children:e.jsx("span",{className:"text-xs font-bold text-muted-foreground opacity-60",children:String(a.order_index).padStart(2,"0")})}),e.jsx("h3",{className:"font-semibold text-lg text-foreground leading-tight",children:a.title}),e.jsx("p",{className:"text-sm text-muted-foreground mt-2 leading-relaxed",children:a.summary})]}),e.jsx(t.div,{animate:{rotate:i?180:0},transition:{duration:.2},className:"shrink-0 mt-1",children:e.jsx(I,{className:"w-5 h-5 text-muted-foreground"})})]}),e.jsx(K,{children:i&&e.jsx(t.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:e.jsx("div",{className:"pt-4 mt-4 border-t border-border/50",children:e.jsx("p",{className:"text-foreground/90 leading-relaxed whitespace-pre-line",children:a.content})})})})]})})})},T=()=>{const{data:a,isLoading:s,error:i}=B(),[d,n]=h.useState(null),l=r=>{n(o=>o===r?null:r)};return s?e.jsx("div",{className:"space-y-4 p-4",children:[...Array(4)].map((r,o)=>e.jsx(g,{className:"h-32 w-full rounded-xl"},o))}):i?e.jsx("div",{className:"p-4 text-center text-muted-foreground",children:"Kunde inte ladda principer"}):e.jsxs("div",{className:"space-y-6 p-4",children:[e.jsxs(t.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"text-center space-y-3 pb-4",children:[e.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"Master Prompt"}),e.jsx("p",{className:"text-muted-foreground max-w-md mx-auto text-sm leading-relaxed",children:"Etisk, teknisk och samhällsbärande ram för utbildning, kompetens och systembyggande."})]}),e.jsx("div",{className:"space-y-3",children:a==null?void 0:a.map((r,o)=>e.jsx(L,{principle:r,index:o,isExpanded:d===r.id,onToggle:()=>l(r.id)},r.id))}),e.jsx(t.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.8},className:"text-center pt-6 pb-2",children:e.jsx("p",{className:"text-xs text-muted-foreground italic max-w-sm mx-auto",children:'"Vi tar ansvar för framtiden genom att bygga öppna, etiska och tekniskt korrekta system som låter människor arbeta, lära och utvecklas i takt med verkligheten."'})})]})},V=()=>e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(t.header,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"sticky top-0 z-50 bg-background/80 backdrop-blur-md border-b border-border",children:e.jsxs("div",{className:"container flex items-center gap-4 h-14 px-4",children:[e.jsx(j,{to:"/",children:e.jsx(N,{variant:"ghost",size:"icon",className:"shrink-0",children:e.jsx(M,{className:"w-5 h-5"})})}),e.jsx("h1",{className:"font-semibold truncate",children:"Manifest"})]})}),e.jsx("main",{className:"container max-w-2xl pb-20",children:e.jsx(T,{})})]});export{V as default};
//# sourceMappingURL=Principles-CmpgkpiO.js.map