import{j as r}from"./@radix-DnFH_oo1.js";import{T as i,z as a}from"./index-Davdjm1d.js";import{C as c,a as m}from"./sharedSchema-Dbpe2oAO.js";function g({type:t,children:e}){return r.jsxs(i,{rounded:!1,className:"inline-flex items-center gap-0.5 text-text-sm",color:"purple",emphasis:"minimal",children:[r.jsx(c,{type:t,className:"h-4 w-4 fill-current"}),r.jsx("span",{children:e})]})}const o=a.enum(["aws","gcp","azure"]),u=a.object({provider:o}),S=a.object({region:a.string().trim().min(1),stackName:m}),s="new-infra-data",n=a.object({provider:o,stackName:a.string().min(1).trim(),location:a.string().min(1).trim(),timestamp:a.string().min(1).trim()});function h(t){localStorage.setItem(s,JSON.stringify(t))}function x(){try{const t=localStorage.getItem(s),e=t?JSON.parse(t):{};return n.safeParse(e)}catch{return p(),n.safeParse({})}}function p(){localStorage.removeItem(s)}export{g as C,S as a,u as b,p as c,o as d,x as p,h as s};
