auramaxx 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +37 -37
- package/.next/app-path-routes-manifest.json +8 -8
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +34 -34
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/api/[...doc]/page.js.nft.json +1 -1
- package/.next/server/app/api/[...doc]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent-requests/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/apps/install/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/apps/manifests/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/apps/static/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/docs/plain/route.js.nft.json +1 -1
- package/.next/server/app/api/docs/plain/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/import-from-openclaw/[channel]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/import-from-openclaw/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/import-from-openclaw/validate/[channel]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/page.js.nft.json +1 -1
- package/.next/server/app/api/page_client-reference-manifest.js +1 -1
- package/.next/server/app/api/restart/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/update/route.js +7 -8
- package/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/version/route.js +1 -1
- package/.next/server/app/api/version/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/workspace/[id]/apps/[wid]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/workspace/[id]/apps/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/workspace/[id]/export/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/workspace/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/workspace/config/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/workspace/import/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/workspace/route_client-reference-manifest.js +1 -1
- package/.next/server/app/app-legacy-do-not-use/page_client-reference-manifest.js +1 -1
- package/.next/server/app/app-legacy-do-not-use.html +1 -1
- package/.next/server/app/app-legacy-do-not-use.rsc +1 -1
- package/.next/server/app/approve/[actionId]/page.js +1 -1
- package/.next/server/app/approve/[actionId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/docs/[...doc]/page.js.nft.json +1 -1
- package/.next/server/app/docs/[...doc]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/docs/page.js.nft.json +1 -1
- package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/health/page_client-reference-manifest.js +1 -1
- package/.next/server/app/health.html +1 -1
- package/.next/server/app/health.rsc +1 -1
- package/.next/server/app/hello/page_client-reference-manifest.js +1 -1
- package/.next/server/app/hello.html +1 -1
- package/.next/server/app/hello.rsc +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +3 -3
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
- package/.next/server/app/privacy.html +1 -1
- package/.next/server/app/privacy.rsc +1 -1
- package/.next/server/app/share/[token]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/terms/page_client-reference-manifest.js +1 -1
- package/.next/server/app/terms.html +1 -1
- package/.next/server/app/terms.rsc +1 -1
- package/.next/server/app/yo/page.js +2 -2
- package/.next/server/app/yo/page_client-reference-manifest.js +1 -1
- package/.next/server/app/yo.html +1 -1
- package/.next/server/app/yo.rsc +3 -3
- package/.next/server/app-paths-manifest.json +8 -8
- package/.next/server/functions-config-manifest.json +2 -2
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/app/approve/[actionId]/page-c862645e19371cea.js +1 -0
- package/.next/static/chunks/app/{page-16dfcd1c7cc88bcc.js → page-9cd218b297b9c7bf.js} +1 -1
- package/.next/static/chunks/app/yo/page-fceb03605805cb44.js +1 -0
- package/.next/trace +28 -28
- package/README.md +1 -1
- package/docs/AGENT_SETUP.md +1 -1
- package/docs/AUTH.md +1 -1
- package/docs/CLI.md +0 -3
- package/docs/MCP.md +14 -7
- package/docs/SKILLS.md +1 -1
- package/docs/api/secrets/credentials.md +9 -0
- package/docs/external/HOW_TO_AURAMAXX/WORKING_WITH_SECRETS.md +2 -1
- package/docs/external/POLICY.md +2 -2
- package/package.json +1 -1
- package/public/opengraph.webp +0 -0
- package/skills/auramaxx/HEARTBEAT.md +3 -0
- package/skills/auramaxx/SKILL.md +13 -31
- package/skills/auramaxx/docs/AGENT_SETUP.md +1 -1
- package/src/app/UnlockPageClient.tsx +10 -10
- package/src/app/api/update/route.ts +9 -10
- package/src/app/approve/[actionId]/page.tsx +2 -1
- package/src/app/page.tsx +9 -0
- package/src/app/yo/layout.tsx +9 -0
- package/src/app/yo/page.tsx +1 -1
- package/src/components/layout/SettingsDrawer.tsx +1 -1
- package/src/server/cli/commands/agent.ts +75 -18
- package/src/server/cli/commands/init.ts +9 -9
- package/src/server/cli/commands/skill.ts +5 -2
- package/src/server/cli/lib/credential-resolve.ts +20 -1
- package/src/server/cli/lib/local-agent-trust.ts +4 -3
- package/src/server/lib/agent-profiles.ts +4 -3
- package/src/server/lib/update-check.ts +4 -0
- package/src/server/mcp/server.ts +88 -19
- package/src/server/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/src/server/routes/actions.ts +2 -1
- package/src/server/routes/credentials.ts +48 -5
- package/src/server/tests/cli/agent-auth.test.ts +190 -0
- package/src/server/tests/cli/local-agent-trust.test.ts +11 -6
- package/src/server/tests/endpoints/credentials.test.ts +40 -18
- package/src/server/tests/endpoints/escalation-migration-gate.test.ts +1 -1
- package/src/server/tests/lib/agent-profiles.test.ts +6 -0
- package/src/server/tests/lib/update-check.test.ts +9 -1
- package/src/server/tests/mcp/server.test.ts +142 -0
- package/src/server/tsconfig.tsbuildinfo +1 -1
- package/.next/static/chunks/app/approve/[actionId]/page-2acca1f490424f21.js +0 -1
- package/.next/static/chunks/app/yo/page-719dc5f213fdfb30.js +0 -1
- /package/.next/static/{WshFGr6RxGYP6AbWuT9OG → 7S943hv6A_w-7tx0a47LZ}/_buildManifest.js +0 -0
- /package/.next/static/{WshFGr6RxGYP6AbWuT9OG → 7S943hv6A_w-7tx0a47LZ}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9664],{7935:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>x});var r=a(95155),s=a(12115),o=a(52619),l=a.n(o),n=a(20063),c=a(54901),i=a(90960),d=a(66509);function x(){let{actionId:e}=(0,n.useParams)(),{setToken:t}=(0,c.A)(),[a,o]=(0,s.useState)("loading"),[x,f]=(0,s.useState)(null),[p,m]=(0,s.useState)(""),[v,b]=(0,s.useState)(!1),[u,h]=(0,s.useState)(!1),[g,N]=(0,s.useState)(!1),[j,w]=(0,s.useState)(null),y=(0,s.useCallback)(async()=>{try{let t=await i.FH.get(i.jI.Wallet,"/actions/".concat(encodeURIComponent(e),"/summary"));f(t)}catch(e){f(null)}},[e]);(0,s.useEffect)(()=>{let e=!1;return(async()=>{try{let t=await i.FH.get(i.jI.Wallet,"/setup");if(e)return;if(!t.hasWallet){window.location.href="/";return}if(!t.unlocked)return void o("locked");await y(),e||o("ready")}catch(t){e||o("locked")}})(),()=>{e=!0}},[y]);let k=async e=>{if(e.preventDefault(),p){h(!0),w(null);try{let{publicKeyBase64:e}=await (0,d.UI)(),a=await (0,i.WE)(p,void 0,e);a.token&&t(a.token,{persist:v?"local":"session"}),m(""),await y(),o("ready")}catch(e){w(e.message||"Unlock failed")}finally{h(!1)}}},E=async t=>{N(!0),w(null);try{await i.FH.post(i.jI.Wallet,"/actions/".concat(encodeURIComponent(e),"/resolve"),{approved:t}),await y()}catch(e){w(e.message||"Failed to resolve action")}finally{N(!1)}},I=(null==x?void 0:x.status)==="approved"?"approved":(null==x?void 0:x.status)==="rejected"?"denied":(null==x?void 0:x.status)==="expired"?"expired":"pending",C=(null==x?void 0:x.action)||"Unspecified action",P=(null==x?void 0:x.scope)||[],S=(null==x?void 0:x.impact)||[],R=S.some(e=>/^(Fund|Send|Swap) limit:/i.test(e)),O=P.some(e=>"fund"===e.trim().toLowerCase()),A=(null==x?void 0:x.type)==="fund"||O||R,D=((null==x?void 0:x.risk)||"unknown").toUpperCase(),T=null==x?void 0:x.profile,U=(null==T?void 0:T.trim().toLowerCase())==="admin",L=P.includes("admin:*"),F=U||L,M=F?["admin"]:P,G=M.length>0||S.length>0,H="approved"===I||"denied"===I||"expired"===I,W="approved"===I?{title:"ACTION APPROVED",body:"This request has been approved. Return to your CLI/agent and retry."}:"denied"===I?{title:"ACTION DENIED",body:"This request was denied. You can close this page."}:"expired"===I?{title:"ACTION EXPIRED",body:"This approval link has expired. Generate a new approval request."}:{title:"REVIEW PERMISSION REQUEST",body:"Confirm what this action can do before choosing Approve or Deny."};return(0,r.jsxs)("div",{className:"min-h-screen bg-[var(--color-background,#f4f4f5)] relative flex items-center justify-center p-4",children:[(0,r.jsxs)("div",{className:"fixed inset-0 pointer-events-none z-0 overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-grid-adaptive bg-[size:4rem_4rem] opacity-30"}),(0,r.jsx)("div",{className:"absolute inset-0 tyvek-texture opacity-40 mix-blend-multiply"}),(0,r.jsx)("div",{className:"absolute bottom-[5%] right-[5%] opacity-5 select-none",children:(0,r.jsx)("div",{className:"text-[15vw] font-bold leading-none text-[var(--color-text,#0a0a0a)] font-mono tracking-tighter text-right",children:"AURAMAXX"})}),(0,r.jsx)("div",{className:"absolute top-10 left-10 w-32 h-32 border-l-4 border-t-4 border-[var(--color-text,#0a0a0a)] opacity-10",children:(0,r.jsx)("div",{className:"absolute top-2 left-2 w-4 h-4 bg-[var(--color-text,#0a0a0a)]"})}),(0,r.jsx)("div",{className:"absolute bottom-10 right-10 w-32 h-32 border-r-4 border-b-4 border-[var(--color-text,#0a0a0a)] opacity-10 flex items-end justify-end",children:(0,r.jsx)("div",{className:"absolute bottom-2 right-2 w-4 h-4 bg-[var(--color-text,#0a0a0a)]"})})]}),(0,r.jsx)("div",{className:"fixed top-6 left-6 z-50 flex items-center gap-3",children:(0,r.jsx)("div",{className:"w-10 h-10",children:(0,r.jsx)("img",{src:"/logo.webp",alt:"AuraMaxx",className:"w-full h-full object-contain"})})}),(0,r.jsxs)("div",{className:"fixed top-7 right-6 z-50 flex items-center gap-3 font-mono text-[10px] tracking-widest",children:[(0,r.jsx)(l(),{href:"/",className:"text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"HOME"}),(0,r.jsx)(l(),{href:"/docs",className:"text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"DOCS"}),(0,r.jsx)(l(),{href:"/api",className:"text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"API"})]}),(0,r.jsxs)("div",{className:"relative z-10 w-full max-w-[420px]",children:[(0,r.jsx)("div",{className:"absolute -left-8 top-1/2 -translate-y-1/2 text-vertical label-specimen-sm text-[var(--color-text-faint,#9ca3af)] select-none hidden sm:block",children:"PERMISSION\xa0REVIEW"}),(0,r.jsxs)("div",{className:"bg-[var(--color-surface,#f4f4f2)] clip-specimen border-mech shadow-mech overflow-hidden font-mono corner-marks",children:["loading"===a&&(0,r.jsxs)("div",{className:"p-6 flex items-center justify-center gap-2",children:[(0,r.jsx)("div",{className:"w-3 h-3 border border-[var(--color-text,#0a0a0a)] border-t-transparent animate-spin"}),(0,r.jsx)("span",{className:"text-[10px] text-[var(--color-text-muted,#6b7280)] tracking-widest",children:"LOADING..."})]}),"locked"===a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"px-5 py-3 border-b border-[var(--color-border,#d4d4d8)] bg-[var(--color-surface-alt,#fafafa)] flex items-center justify-between",children:[(0,r.jsx)("span",{className:"font-sans font-bold text-sm text-[var(--color-text,#0a0a0a)] uppercase tracking-tight",children:"UNLOCK AGENT"}),(0,r.jsx)("span",{className:"text-[9px] font-bold tracking-widest text-[var(--color-warning,#ff4d00)]",children:"LOCKED"})]}),(0,r.jsxs)("div",{className:"p-6",children:[(0,r.jsx)("div",{className:"text-[10px] text-[var(--color-text-muted,#6b7280)] tracking-wider mb-4",children:"Unlock your agent to review this permission request."}),(0,r.jsxs)("form",{onSubmit:k,className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-[8px] text-[var(--color-text-faint,#9ca3af)] tracking-widest mb-1.5 uppercase",children:"Password"}),(0,r.jsx)("input",{type:"password",value:p,onChange:e=>{m(e.target.value),w(null)},placeholder:"Enter agent password",className:"w-full px-3 py-2.5 border border-[var(--color-border,#d4d4d8)] font-mono text-sm text-[var(--color-text,#0a0a0a)] focus:outline-none focus:border-[var(--color-text,#0a0a0a)] bg-[var(--color-surface,#ffffff)] placeholder-[var(--color-text-faint,#9ca3af)] transition-colors",autoFocus:!0})]}),(0,r.jsxs)("label",{className:"flex items-center justify-between gap-3 text-[8px] tracking-widest uppercase text-[var(--color-text-muted,#6b7280)]",children:[(0,r.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,r.jsx)("input",{type:"checkbox",checked:v,onChange:e=>b(e.target.checked),className:"h-3.5 w-3.5 border border-[var(--color-border,#d4d4d8)] accent-[var(--color-text,#0a0a0a)]"}),"Trusted device"]}),(0,r.jsx)("span",{children:v?"PERSISTENT":"TAB ONLY"})]}),j&&(0,r.jsx)("div",{"data-testid":"unlock-error-banner",className:"text-[9px] text-[var(--color-danger,#ef4444)] px-3 py-2 border",style:{borderColor:"color-mix(in srgb, var(--color-danger,#ef4444) 35%, transparent)",background:"color-mix(in srgb, var(--color-danger,#ef4444) 12%, transparent)"},children:j}),(0,r.jsx)("button",{type:"submit",disabled:u||!p,className:"w-full py-2.5 bg-[var(--color-text,#0a0a0a)] text-[var(--color-surface,#ffffff)] font-mono text-xs tracking-widest font-bold hover:opacity-90 transition-opacity disabled:opacity-30 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:u?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"w-3 h-3 border border-[var(--color-surface,#ffffff)] border-t-transparent animate-spin"}),"UNLOCKING..."]}):"UNLOCK"})]})]})]}),"ready"===a&&!A&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"px-5 py-3 border-b border-[var(--color-border,#d4d4d8)] bg-[var(--color-surface-alt,#fafafa)] flex items-center justify-between",children:[(0,r.jsx)("span",{className:"font-sans font-bold text-sm text-[var(--color-text,#0a0a0a)] uppercase tracking-tight",children:W.title}),(0,r.jsx)("span",{className:"text-[9px] font-bold tracking-widest ".concat("approved"===I?"text-[var(--color-info,#0047ff)]":"denied"===I?"text-[var(--color-danger,#ef4444)]":"expired"===I?"text-[var(--color-text-faint,#9ca3af)]":"text-[var(--color-warning,#ff4d00)]"),children:"approved"===I?"APPROVED":"denied"===I?"DENIED":"expired"===I?"EXPIRED":"PENDING"})]}),(0,r.jsxs)("div",{className:"p-6 space-y-4",children:[(0,r.jsx)("p",{className:"text-[10px] text-[var(--color-text-muted,#6b7280)] tracking-wider",children:W.body}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,r.jsx)("span",{className:"label-specimen-sm text-[var(--color-text-faint,#9ca3af)]",children:"ACTION"}),(0,r.jsx)("span",{className:"text-[11px] text-[var(--color-text,#0a0a0a)] font-bold tracking-wider text-right",children:C})]}),T&&(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,r.jsx)("span",{className:"label-specimen-sm text-[var(--color-text-faint,#9ca3af)]",children:"PROFILE"}),(0,r.jsx)("span",{className:"text-[11px] text-[var(--color-text,#0a0a0a)] tracking-wider text-right",children:T})]}),(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,r.jsx)("span",{className:"label-specimen-sm text-[var(--color-text-faint,#9ca3af)]",children:"RISK"}),(0,r.jsx)("span",{className:"text-[11px] font-bold tracking-wider ".concat("HIGH"===D?"text-[var(--color-danger,#ef4444)]":"MEDIUM"===D?"text-[var(--color-warning,#ff4d00)]":"text-[var(--color-text,#0a0a0a)]"),children:D})]}),(0,r.jsxs)("div",{className:"text-[8px] text-[var(--color-text-faint,#9ca3af)] tracking-widest break-all",children:["ID: ",e]})]}),G&&(0,r.jsxs)("div",{className:"border-t border-[var(--color-border,#d4d4d8)] pt-3 space-y-3",children:[M.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"label-specimen-sm text-[var(--color-text-faint,#9ca3af)] mb-1.5",children:"PERMISSIONS"}),(0,r.jsx)("div",{className:"space-y-1",children:M.map(e=>{let t=F&&"admin"===e.trim().toLowerCase();return(0,r.jsx)("div",{className:"text-[10px] tracking-wider pl-2 border-l-2 ".concat(t?"text-[var(--color-danger,#ef4444)] border-[var(--color-danger,#ef4444)]":"text-[var(--color-text,#0a0a0a)] border-[var(--color-border,#d4d4d8)]"),children:e},e)})})]}),S.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"label-specimen-sm text-[var(--color-text-faint,#9ca3af)] mb-1.5",children:"IMPACT"}),(0,r.jsx)("div",{className:"space-y-1",children:S.map(e=>(0,r.jsx)("div",{className:"text-[10px] text-[var(--color-text,#0a0a0a)] tracking-wider pl-2 border-l-2 border-[var(--color-border,#d4d4d8)]",children:e},e))})]})]}),!G&&!x&&(0,r.jsx)("div",{className:"text-[9px] text-[var(--color-warning,#ff4d00)] bg-[var(--color-warning,#ff4d00)]/10 px-3 py-2 border border-[var(--color-warning,#ff4d00)]/20",children:"Could not load action details. Use extra caution and deny if this request is unexpected."}),j&&(0,r.jsx)("div",{className:"text-[9px] text-[var(--color-danger,#ef4444)] px-3 py-2 border",style:{borderColor:"color-mix(in srgb, var(--color-danger,#ef4444) 35%, transparent)",background:"color-mix(in srgb, var(--color-danger,#ef4444) 12%, transparent)"},children:j}),!H&&(0,r.jsxs)("div",{className:"flex gap-2 pt-2",children:[(0,r.jsx)("button",{type:"button",onClick:()=>E(!0),disabled:g,className:"flex-1 py-2.5 bg-[var(--color-text,#0a0a0a)] text-[var(--color-surface,#ffffff)] font-mono text-[10px] tracking-widest font-bold text-center hover:opacity-90 transition-opacity clip-specimen-sm disabled:opacity-30 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:g?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"w-3 h-3 border border-[var(--color-surface,#ffffff)] border-t-transparent animate-spin"}),"RESOLVING..."]}):"APPROVE"}),(0,r.jsx)("button",{type:"button",onClick:()=>E(!1),disabled:g,className:"flex-1 py-2.5 border border-[var(--color-border,#d4d4d8)] text-[var(--color-text-muted,#6b7280)] font-mono text-[10px] tracking-widest font-bold text-center hover:border-[var(--color-text,#0a0a0a)] hover:text-[var(--color-text,#0a0a0a)] transition-colors disabled:opacity-30 disabled:cursor-not-allowed",children:"DENY"})]}),H&&(0,r.jsx)("div",{className:"pt-2",children:(0,r.jsx)(l(),{href:"/",className:"block w-full py-2.5 border border-[var(--color-border,#d4d4d8)] text-[var(--color-text-muted,#6b7280)] font-mono text-[10px] tracking-widest font-bold text-center hover:border-[var(--color-text,#0a0a0a)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"RETURN TO DASHBOARD"})})]})]})]})]})]})}},20063:(e,t,a)=>{"use strict";var r=a(47260);a.o(r,"useParams")&&a.d(t,{useParams:function(){return r.useParams}}),a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}}),a.o(r,"useSearchParams")&&a.d(t,{useSearchParams:function(){return r.useSearchParams}})},88383:(e,t,a)=>{Promise.resolve().then(a.bind(a,7935))}},e=>{e.O(0,[2619,4901,8441,1255,7358],()=>e(e.s=88383)),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5863],{20063:(e,t,a)=>{"use strict";var r=a(47260);a.o(r,"useParams")&&a.d(t,{useParams:function(){return r.useParams}}),a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}}),a.o(r,"useSearchParams")&&a.d(t,{useSearchParams:function(){return r.useSearchParams}})},44265:(e,t,a)=>{"use strict";a.d(t,{default:()=>o});var r=a(95155),s=a(65685);function o(){let{colorMode:e,setColorMode:t}=(0,s.D)(),a="light"===e;return(0,r.jsx)("button",{onClick:()=>{t(a?"dark":"light")},className:"p-1.5 text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] hover:bg-[var(--color-surface,#ffffff)]/50 transition-colors rounded","aria-label":a?"Switch to dark mode":"Switch to light mode",children:a?(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):(0,r.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"5"}),(0,r.jsx)("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),(0,r.jsx)("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),(0,r.jsx)("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),(0,r.jsx)("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),(0,r.jsx)("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),(0,r.jsx)("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),(0,r.jsx)("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),(0,r.jsx)("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})}},50588:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>b});var r=a(95155),s=a(52619),o=a.n(s),n=a(20063),l=a(12115),c=a(44265),i=a(53667),x=a(65685);let d={npm:"npm install -g auramaxx",npx:"npx -y auramaxx"},p="auramaxx",m=["/ss-light1.webp","/ss-light2.webp","/ss-light3.webp"],h=["/ss-dark1.webp","/ss-dark2.webp","/ss-dark3.webp"],u=[{src:"/agent9.png",label:"Agent 1",width:"clamp(24px, 3.8vw, 40px)",height:"clamp(34px, 5.6vw, 58px)",baselineOffset:"clamp(4px, 0.8vw, 8px)",spriteY:"0%",cropBottom:"4px"},{src:"/agent10.png",label:"Agent 2",width:"clamp(28px, 4.4vw, 46px)",height:"clamp(40px, 6.4vw, 66px)",baselineOffset:"0px",spriteY:"0%",cropBottom:"0px"},{src:"/agent1.png",label:"Agent 3",width:"clamp(28px, 4.4vw, 46px)",height:"clamp(40px, 6.4vw, 66px)",baselineOffset:"0px",spriteY:"0%",cropBottom:"0px"},{src:"/agent2.png",label:"Agent 4",width:"clamp(28px, 4.4vw, 46px)",height:"clamp(40px, 6.4vw, 66px)",baselineOffset:"0px",spriteY:"0%",cropBottom:"0px"},{src:"/agent3.png",label:"Agent 5",width:"clamp(28px, 4.4vw, 46px)",height:"clamp(40px, 6.4vw, 66px)",baselineOffset:"0px",spriteY:"0%",cropBottom:"0px"},{src:"/agent4.png",label:"Agent 6",width:"clamp(28px, 4.4vw, 46px)",height:"clamp(40px, 6.4vw, 66px)",baselineOffset:"0px",spriteY:"0%",cropBottom:"0px"},{src:"/agent5.png",label:"Agent 7",width:"clamp(28px, 4.4vw, 46px)",height:"clamp(40px, 6.4vw, 66px)",baselineOffset:"0px",spriteY:"0%",cropBottom:"0px"},{src:"/agent6.png",label:"Agent 8",width:"clamp(28px, 4.4vw, 46px)",height:"clamp(40px, 6.4vw, 66px)",baselineOffset:"0px",spriteY:"0%",cropBottom:"0px"},{src:"/agent7.png",label:"Agent 9",width:"clamp(28px, 4.4vw, 46px)",height:"clamp(40px, 6.4vw, 66px)",baselineOffset:"0px",spriteY:"0%",cropBottom:"0px"},{src:"/agent8.png",label:"Agent 10",width:"clamp(28px, 4.4vw, 46px)",height:"clamp(40px, 6.4vw, 66px)",baselineOffset:"0px",spriteY:"0%",cropBottom:"0px"}];function f(e){let t=1e4*Math.sin(e);return t-Math.floor(t)}function b(){let e=(0,n.useRouter)(),{colorMode:t}=(0,x.D)(),[a,s]=(0,l.useState)("npm"),[b,g]=(0,l.useState)(!1),[v,w]=(0,l.useState)(0),[y,k]=(0,l.useState)(!1),[j,N]=(0,l.useState)(!1),A=(0,l.useMemo)(()=>d[a],[a]),M=(0,l.useMemo)(()=>"dark"===t?h:m,[t]),P=(0,l.useMemo)(()=>Array.from({length:4},()=>u).flat(),[]);(0,l.useEffect)(()=>{let e=window.location.hostname.toLowerCase();g("auramaxx.sh"===e||"www.auramaxx.sh"===e)},[]),(0,l.useEffect)(()=>{let e=()=>{N(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,l.useEffect)(()=>{let e=window.setInterval(()=>{w(e=>(e+1)%M.length)},5600);return()=>window.clearInterval(e)},[M]),(0,l.useEffect)(()=>{if(!y)return;let e=window.setTimeout(()=>{k(!1)},1500);return()=>window.clearTimeout(e)},[y]),(0,l.useEffect)(()=>{w(0)},[t]);let S=M.length,C=async()=>{try{await navigator.clipboard.writeText(A),k(!0)}catch(e){k(!1)}};return(0,r.jsxs)("main",{className:"min-h-screen bg-[var(--color-background,#f4f4f5)] relative overflow-hidden","data-testid":"yo-page-shell",children:[(0,r.jsxs)("div",{className:"fixed inset-0 pointer-events-none z-0 overflow-hidden","aria-hidden":"true",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-grid-adaptive bg-[size:4rem_4rem] opacity-30"}),(0,r.jsx)("div",{className:"absolute inset-0 tyvek-texture opacity-40 mix-blend-multiply"}),(0,r.jsx)("div",{className:"absolute bottom-[5%] right-[5%] opacity-5 select-none","data-testid":"yo-background-branding",children:(0,r.jsx)("h1",{className:"text-[15vw] font-bold leading-none text-[var(--color-text,#0a0a0a)] font-mono tracking-tighter text-right",children:"AURAMAXX"})}),(0,r.jsx)("div",{className:"absolute top-10 left-10 w-32 h-32 border-l-4 border-t-4 border-[var(--color-text,#0a0a0a)] opacity-10",children:(0,r.jsx)("div",{className:"absolute top-2 left-2 w-4 h-4 bg-[var(--color-text,#0a0a0a)]"})}),(0,r.jsx)("div",{className:"absolute bottom-10 right-10 w-32 h-32 border-r-4 border-b-4 border-[var(--color-text,#0a0a0a)] opacity-10 flex items-end justify-end",children:(0,r.jsx)("div",{className:"absolute bottom-2 right-2 w-4 h-4 bg-[var(--color-text,#0a0a0a)]"})})]}),(0,r.jsxs)("div",{className:"fixed top-5 right-4 sm:top-7 sm:right-6 z-30 flex items-center gap-2 sm:gap-3 font-mono text-[9px] sm:text-[10px] tracking-widest",children:[(0,r.jsx)(o(),{href:"/docs",className:"text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"DOCS"}),(0,r.jsx)(o(),{href:"/api",className:"text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"API"}),!b&&(0,r.jsx)(o(),{href:"/",className:"text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"HOME"}),(0,r.jsx)("a",{href:"https://github.com/Aura-Industry/auramaxx",target:"_blank",rel:"noopener noreferrer",className:"text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"GITHUB"}),(0,r.jsx)("a",{href:"https://x.com/npxauramaxx",target:"_blank",rel:"noopener noreferrer",className:"text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"X"}),(0,r.jsx)("a",{href:"https://x.com/hi_im_nico",target:"_blank",rel:"noopener noreferrer",className:"text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"HELP"}),(0,r.jsx)(c.default,{})]}),(0,r.jsxs)("div",{className:"fixed bottom-4 right-4 sm:bottom-6 sm:right-6 z-30 flex items-center gap-3 font-mono text-[9px] sm:text-[10px] tracking-widest",children:[(0,r.jsx)(o(),{href:"/privacy",className:"text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"PRIVACY POLICY"}),(0,r.jsx)(o(),{href:"/terms",className:"text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"TERMS"})]}),(0,r.jsxs)("div",{className:"fixed top-4 left-4 sm:top-6 sm:left-6 z-30 flex items-center gap-2 sm:gap-3",children:[(0,r.jsx)(o(),{href:"/",className:"w-8 h-8 sm:w-10 sm:h-10 block hover:opacity-80 transition-opacity","aria-label":"AuraMaxx home",children:(0,r.jsx)("img",{src:"/logo.webp",alt:"AuraMaxx",className:"w-full h-full object-contain"})}),(0,r.jsxs)("div",{className:"hidden sm:flex sm:flex-col sm:leading-tight",children:[(0,r.jsx)(o(),{href:"/",className:"font-black text-sm tracking-tight text-[var(--color-text,#0a0a0a)] hover:opacity-80 transition-opacity",children:"AURAMAXX"}),(0,r.jsx)("a",{href:"https://x.com/hi_im_nico",target:"_blank",rel:"noopener noreferrer",className:"text-[10px] text-[var(--color-text-muted,#6b7280)] hover:text-[var(--color-text,#0a0a0a)] transition-colors",children:"by @hi_im_nico, with love"})]})]}),(0,r.jsx)("div",{className:"fixed top-20 left-1/2 z-20 w-full max-w-4xl -translate-x-1/2 px-4 pointer-events-none sm:top-24",children:(0,r.jsxs)("div",{className:"mx-auto w-full max-w-[min(94vw,740px)] bg-[var(--color-surface,#f4f4f2)] clip-specimen border-mech shadow-mech overflow-hidden font-mono corner-marks pointer-events-auto",children:[(0,r.jsxs)("div",{className:"px-4 py-2 border-b border-[var(--color-border,#d4d4d8)] bg-[var(--color-surface-alt,#fafafa)] flex items-center justify-between",children:[(0,r.jsx)("span",{className:"font-sans font-bold text-[10px] text-[var(--color-text,#0a0a0a)] uppercase tracking-tight",children:"AURAMAXX"}),(0,r.jsx)("span",{className:"ml-auto font-mono text-[10px] tracking-[0.12em] uppercase text-[var(--color-text-muted,#6b7280)]",children:"npx auramaxx"})]}),(0,r.jsxs)("div",{className:"px-4 py-4 text-center sm:px-6 sm:py-5",children:[(0,r.jsxs)("h2",{className:"font-mono text-[clamp(12px,3.2vw,30px)] font-semibold tracking-[0.03em] leading-none text-[var(--color-text,#0a0a0a)]",children:[(0,r.jsx)("span",{className:"block whitespace-nowrap",children:"THE APPLE KEYCHAIN FOR AI AGENTS"}),(0,r.jsx)("span",{className:"mt-2 block whitespace-nowrap",children:"SECURE.LOCAL.OPEN-SOURCE."})]}),(0,r.jsx)("p",{className:"mt-2 font-mono text-[11px] sm:text-[12px] tracking-wide text-[var(--color-text-muted,#6b7280)]",children:"It's me, AI. You are absolutely right. I want to auramaxx with your credit cards."}),(0,r.jsxs)("div",{className:"mt-4 flex items-center justify-center gap-2",children:[(0,r.jsx)(i.$n,{variant:"primary",size:"sm",onClick:()=>e.push("/docs"),children:"VIEW DOCS"}),(0,r.jsx)(i.$n,{variant:"secondary",size:"sm",onClick:()=>window.open("https://github.com/Aura-Industry/auramaxx","_blank","noopener,noreferrer"),children:"GITHUB"})]})]})]})}),(0,r.jsx)("div",{className:"absolute inset-0 z-[1] pointer-events-none flex items-center justify-center overflow-hidden","aria-hidden":"true",children:(0,r.jsx)("div",{className:"relative h-[min(82vh,900px)] w-[136vw] md:h-[min(74vh,860px)] md:w-[min(112vw,1720px)]",children:M.map((e,a)=>{let s=(a-v+S)%S,o=0===s?"center":1===s?"right":s===S-1?"left":"hidden",n=((e,t)=>{let a="translate(-50%, -42%)",r="translate(-50%, -50%)";if("center"===e)return{zIndex:20,opacity:1,transform:j?"".concat(a," translate3d(0, 0, 0) scale(1)"):"".concat(r," translate3d(0, 0, 0) scale(1)")};if("left"===e)return{zIndex:10,opacity:.92,transform:j?"".concat(a," translate3d(0, clamp(-250px, -23vh, -136px), 0) scale(0.66)"):"".concat(r," translate3d(clamp(-430px, -30vw, -220px), 0, 0) scale(0.68)")};if("right"===e)return{zIndex:10,opacity:.92,transform:j?"".concat(a," translate3d(0, clamp(136px, 23vh, 250px), 0) scale(0.66)"):"".concat(r," translate3d(clamp(220px, 30vw, 430px), 0, 0) scale(0.68)")};let s=t<=S/2?1:-1;return{zIndex:0,opacity:0,transform:j?"".concat(a," translate3d(0, ").concat(s>0?"360px":"-360px",", 0) scale(0.56)"):"".concat(r," translate3d(").concat(s>0?"520px":"-520px",", 0, 0) scale(0.58)")}})(o,s),l=j?"left"===o?{WebkitMaskImage:"linear-gradient(to bottom, transparent 0%, black 28%, black 100%)",maskImage:"linear-gradient(to bottom, transparent 0%, black 28%, black 100%)"}:"right"===o?{WebkitMaskImage:"linear-gradient(to top, transparent 0%, black 28%, black 100%)",maskImage:"linear-gradient(to top, transparent 0%, black 28%, black 100%)"}:{}:"left"===o?{WebkitMaskImage:"linear-gradient(to right, transparent 0%, black 30%, black 100%)",maskImage:"linear-gradient(to right, transparent 0%, black 30%, black 100%)"}:"right"===o?{WebkitMaskImage:"linear-gradient(to left, transparent 0%, black 30%, black 100%)",maskImage:"linear-gradient(to left, transparent 0%, black 30%, black 100%)"}:{};return(0,r.jsx)("div",{className:"absolute left-1/2 top-1/2 overflow-hidden transition-[transform,opacity] duration-[1700ms] ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform",style:{width:j?"min(152vw, 1080px)":"min(80vw, 1320px)",height:j?"min(74vh, 760px)":"min(70vh, 800px)",...n},children:(0,r.jsxs)("div",{className:"relative h-full w-full",style:l,children:[(0,r.jsx)("img",{src:e,alt:"",className:"h-full w-full object-contain"}),j&&"center"!==o&&(0,r.jsx)("div",{className:"absolute inset-0 pointer-events-none",style:{background:"dark"===t?"rgba(0,0,0,0.12)":"rgba(255,255,255,0.1)"}})]})},e)})})}),(0,r.jsx)("section",{className:"relative z-10 min-h-screen p-4",children:(0,r.jsx)("div",{className:"w-full max-w-4xl",children:(0,r.jsxs)("div",{className:"fixed bottom-14 left-1/2 z-20 w-[min(94vw,620px)] -translate-x-1/2 overflow-hidden border border-[#222222] bg-[#111111] md:bottom-16","data-testid":"yo-install-panel",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between border-b border-[#2a2a2a] bg-[#1a1a1a] px-3 py-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5","aria-hidden":"true",children:[(0,r.jsx)("span",{className:"h-2.5 w-2.5 rounded-full bg-[#ff5f57]"}),(0,r.jsx)("span",{className:"h-2.5 w-2.5 rounded-full bg-[#ffbd2e]"}),(0,r.jsx)("span",{className:"h-2.5 w-2.5 rounded-full bg-[#28c840]"})]}),(0,r.jsx)("span",{className:"font-mono text-[9px] tracking-widest uppercase text-[#8b8b8b]",children:"MIT"})]}),(0,r.jsxs)("div",{className:"flex items-center border-b border-[#2a2a2a] bg-[#121212]",children:[(0,r.jsx)("button",{type:"button",onClick:()=>s("npm"),"aria-pressed":"npm"===a,className:"px-4 py-2 font-mono text-[10px] tracking-widest uppercase transition-colors ".concat("npm"===a?"bg-[#0a0a0a] text-[#f5f5f5]":"text-[#8b8b8b] hover:text-[#f5f5f5] hover:bg-[#1b1b1b]"),children:"npm"}),(0,r.jsx)("button",{type:"button",onClick:()=>s("npx"),"aria-pressed":"npx"===a,className:"px-4 py-2 font-mono text-[10px] tracking-widest uppercase transition-colors ".concat("npx"===a?"bg-[#0a0a0a] text-[#f5f5f5]":"text-[#8b8b8b] hover:text-[#f5f5f5] hover:bg-[#1b1b1b]"),children:"npx"})]}),(0,r.jsx)("div",{className:"flex items-center bg-[#0a0a0a] px-4 py-4",children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,r.jsxs)("code",{className:"block min-w-0 overflow-x-auto whitespace-nowrap font-mono text-sm md:text-base text-[#9ca3af]",children:[(0,r.jsx)("span",{className:"mr-2 text-[#7d8590]",children:"$"}),A.endsWith(p)?(0,r.jsxs)(r.Fragment,{children:[A.slice(0,-p.length),(0,r.jsx)("span",{className:"text-[var(--color-accent,#34d399)]",children:p})]}):A]}),(0,r.jsx)("button",{type:"button",onClick:C,"aria-label":y?"Copied command":"Copy command",title:y?"Copied":"Copy",className:"shrink-0 flex h-5 w-5 items-center justify-center transition-colors ".concat(y?"text-[#86efac]":"text-[#a3a3a3] hover:text-[#d4d4d4]"),children:y?(0,r.jsx)("svg",{viewBox:"0 0 16 16",className:"h-3.5 w-3.5","aria-hidden":"true",children:(0,r.jsx)("path",{fill:"currentColor",d:"M13.78 3.97a.75.75 0 0 1 0 1.06L6.97 11.84a.75.75 0 0 1-1.06 0L2.22 8.16a.75.75 0 1 1 1.06-1.06l3.16 3.16 6.28-6.28a.75.75 0 0 1 1.06 0Z"})}):(0,r.jsx)("svg",{viewBox:"0 0 16 16",className:"h-3.5 w-3.5","aria-hidden":"true",children:(0,r.jsx)("path",{fill:"currentColor",d:"M10 1.75A1.75 1.75 0 0 1 11.75 3.5v.75h.75A1.75 1.75 0 0 1 14.25 6v6.5A1.75 1.75 0 0 1 12.5 14.25H6A1.75 1.75 0 0 1 4.25 12.5v-.75H3.5A1.75 1.75 0 0 1 1.75 10V3.5A1.75 1.75 0 0 1 3.5 1.75H10Zm2.5 4H6A.25.25 0 0 0 5.75 6v6.5c0 .14.11.25.25.25h6.5a.25.25 0 0 0 .25-.25V6a.25.25 0 0 0-.25-.25Zm-2.5-2.5H3.5a.25.25 0 0 0-.25.25V10c0 .14.11.25.25.25h.75V6A1.75 1.75 0 0 1 6 4.25h4.25V3.5a.25.25 0 0 0-.25-.25Z"})})})]})}),(0,r.jsx)("div",{className:"border-t border-[#2a2a2a] bg-[#0b0b0b] px-3 py-2.5 md:px-4 md:py-3","data-testid":"yo-sprite-row",children:(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsx)("div",{className:"yo-mobile-agent-marquee flex w-max items-end gap-1.5 md:gap-2",children:P.map((e,t)=>{let a=t%u.length,s=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=function(e){let t=0;for(let a=0;a<e.length;a+=1)t=(t<<5)-t+e.charCodeAt(a)|0;return Math.abs(t)}(e)+97*t+131*a,s=(f(r+1)-.5)*8,o=(f(r+2)-.5)*4+(0===a?-1.5:1.5),n=(f(r+3)-.5)*5,l=(f(r+4)-.5)*8,c=(f(r+5)-.5)*8,i=.72+.06*f(r+6);return{marginLeft:"".concat(Math.round(l),"px"),marginRight:"".concat(Math.round(c),"px"),transform:"translate(".concat(s.toFixed(1),"px, ").concat(o.toFixed(1),"px) rotate(").concat(n.toFixed(1),"deg) scale(").concat(i.toFixed(3),")")}}(e.src,a,0);return(0,r.jsx)("div",{style:s,children:(0,r.jsx)("div",{className:"yo-sprite",style:{backgroundImage:"url('".concat(e.src,"')"),animationDelay:"".concat(-150*a,"ms, ").concat(-300*a,"ms"),width:e.width,height:e.height,marginBottom:e.baselineOffset,backgroundPositionY:e.spriteY,clipPath:"inset(0 0 ".concat(e.cropBottom," 0)")},role:"img","aria-label":"".concat(e.label," sprite")})},"".concat(e.src,"-").concat(t))})})})})]})})})]})}},65685:(e,t,a)=>{"use strict";a.d(t,{D:()=>p,ThemeProvider:()=>d});var r=a(12115);let s="aura-theme",o="agent-theme-preferences",n={colorMode:"light",uiScale:"normal"},l=(0,r.createContext)(null);function c(e){return"dark"===e?{colorMode:"dark",uiScale:"normal"}:"big"===e?{colorMode:"light",uiScale:"big"}:{colorMode:"light",uiScale:"normal"}}function i(e,t){return"big"===t?"big":"dark"===e?"dark":"default"}function x(e,t){if("undefined"==typeof document)return;let a=document.documentElement;"dark"===e?a.setAttribute("data-theme","dark"):a.removeAttribute("data-theme"),a.setAttribute("data-ui-scale",t);let r="big"===t?1.25:1;a.style.setProperty("--ui-scale-factor",String(r)),a.style.setProperty("--font-size-xs","".concat(Math.round(10*r),"px")),a.style.setProperty("--font-size-sm","".concat(Math.round(12*r),"px")),a.style.setProperty("--font-size-md","".concat(Math.round(14*r),"px")),a.style.setProperty("--font-size-lg","".concat(Math.round(18*r),"px")),a.style.setProperty("--space-1","".concat(Math.round(4*r),"px")),a.style.setProperty("--space-2","".concat(Math.round(8*r),"px")),a.style.setProperty("--space-3","".concat(Math.round(12*r),"px")),a.style.setProperty("--space-4","".concat(Math.round(16*r),"px")),a.style.setProperty("--space-6","".concat(Math.round(24*r),"px")),a.style.setProperty("--radius-sm","".concat(Math.round(6*r),"px")),a.style.setProperty("--radius-md","".concat(Math.round(10*r),"px")),a.style.setProperty("--radius-lg","".concat(Math.round(14*r),"px")),a.style.setProperty("--shadow-sm","big"===t?"0 2px 4px rgba(0,0,0,0.15)":"0 1px 2px rgba(0,0,0,0.12)"),a.style.setProperty("--shadow-md","big"===t?"0 8px 20px rgba(0,0,0,0.24)":"0 6px 16px rgba(0,0,0,0.18)"),a.style.setProperty("--control-height-sm","".concat(Math.round(32*r),"px")),a.style.setProperty("--control-height-md","".concat(Math.round(36*r),"px")),a.style.setProperty("--control-height-lg","".concat(Math.round(40*r),"px")),a.style.setProperty("--space-xs","var(--space-1)"),a.style.setProperty("--space-sm","var(--space-2)"),a.style.setProperty("--space-md","var(--space-3)"),a.style.setProperty("--space-lg","var(--space-4)")}function d(e){let{children:t}=e,[a,d]=(0,r.useState)(n.colorMode),[p,m]=(0,r.useState)(n.uiScale),[h,u]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=function(){try{let e=window.localStorage.getItem(o);if(e){let t=JSON.parse(e),a="dark"===t.colorMode?"dark":"light",r="big"===t.uiScale?"big":"normal";return{colorMode:a,uiScale:r}}}catch(e){}let e=window.localStorage.getItem(s);return c("dark"===e||"big"===e?e:"default")}();d(e.colorMode),m(e.uiScale),u(!0),x(e.colorMode,e.uiScale)},[]),(0,r.useEffect)(()=>{if(!h)return;x(a,p),window.localStorage.setItem(o,JSON.stringify({colorMode:a,uiScale:p}));let e=i(a,p);"default"===e?window.localStorage.removeItem(s):window.localStorage.setItem(s,e)},[h,a,p]);let f=(0,r.useCallback)(e=>d(e),[]),b=(0,r.useCallback)(e=>m(e),[]),g=(0,r.useCallback)(e=>{let t=c(e);d(t.colorMode),m(t.uiScale)},[]),v=(0,r.useMemo)(()=>i(a,p),[a,p]),w=(0,r.useMemo)(()=>({colorMode:a,uiScale:p,setColorMode:f,setUiScale:b,theme:v,setTheme:g}),[a,p,f,b,v,g]);return(0,r.createElement)(l.Provider,{value:w},t)}function p(){let e=(0,r.useContext)(l);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e}},71847:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r=a(12115);let s=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim()};var o={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"};let n=(0,r.forwardRef)((e,t)=>{let{color:a="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:i="",children:x,iconNode:d,...p}=e;return(0,r.createElement)("svg",{ref:t,...o,width:n,height:n,stroke:a,strokeWidth:c?24*Number(l)/Number(n):l,className:s("lucide",i),...p},[...d.map(e=>{let[t,a]=e;return(0,r.createElement)(t,a)}),...Array.isArray(x)?x:[x]])}),l=(e,t)=>{let a=(0,r.forwardRef)((a,o)=>{let{className:l,...c}=a;return(0,r.createElement)(n,{ref:o,iconNode:t,className:s("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),l),...c})});return a.displayName="".concat(e),a}},84114:(e,t,a)=>{Promise.resolve().then(a.bind(a,50588))}},e=>{e.O(0,[2619,7616,3667,8441,1255,7358],()=>e(e.s=84114)),_N_E=e.O()}]);
|
|
File without changes
|
|
File without changes
|