PageSourceSearch

https://app.ustechautomations.com/assets/UpdateComponentModal-DXXukTZn.js

js ustechautomations.com collected 2026-09-26 00:53:23 UTC 3,387 bytes, 1 lines download raw bytes

1import{a as e,p as s}from"./chunk-6CSD65Y2-xYubHBmU.js";import{l as n,m as a,n as r,o as t,b as i,p as o,a4 as d,R as c}from"./CoreLayout-V9PVLCM0.js";import{X as m}from"./overlayFocus-BmDVzTk_.js";import"./voiceStore-D_K9cjIr.js";import"./index-BfJR_dAR.js";import"./createLucideIcon-B7UGDY3i.js";import"./index-BcwKVuK3.js";import"./loader-circle-Mux4UJzI.js";import"./user-BccZgP0Q.js";import"./AuthContextDefinition-CrUuQ85U.js";const l=e.memo(({open:e,onOpenChange:l,componentName:p,hasBreakingChange:x=!1,currentVersion:h,newVersion:g,changeDescription:u,onUpdate:j,isUpdating:f=!1})=>s.jsx(n,{open:e,onOpenChange:l,children:s.jsxs(a,{className:"sm:max-w-[500px]",children:[s.jsxs(r,{children:[s.jsxs(t,{className:"flex items-center gap-2",children:[x&&s.jsx(i,{className:"h-5 w-5 text-warning"}),s.jsx("span",{children:"Update Component"})]}),s.jsx(o,{children:x?s.jsx("span",{className:"text-warning-foreground",children:"This update contains breaking changes that may affect your workflow."}):s.jsx("span",{children:"A new version of this component is available."})})]}),s.jsxs("div",{className:"space-y-4 py-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"flex items-center justify-between rounded-md bg-muted p-3",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:p}),h&&g&&s.jsxs("p",{className:"text-xs text-muted-foreground",children:[h," → ",g]})]}),x&&s.jsx("span",{className:"rounded-full bg-warning px-2 py-1 text-xs font-medium text-warning-foreground",children:"Breaking Change"})]}),u&&s.jsxs("div",{className:"rounded-md border border-border bg-card p-3",children:[s.jsx("p",{className:"text-sm font-medium text-foreground mb-2",children:"What's Changed:"}),s.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-wrap",children:u})]}),x&&s.jsx("div",{className:"rounded-md border border-warning bg-warning/10 p-3",children:s.jsxs("div",{className:"flex gap-2",children:[s.jsx(i,{className:"h-4 w-4 text-warning flex-shrink-0 mt-0.5"}),s.jsxs("div",{className:"space-y-1",children:[s.jsx("p",{className:"text-sm font-medium text-warning-foreground",children:"Warning: Breaking Changes"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"This update may change how the component behaves. Your existing configurations might need to be adjusted after updating."})]})]})})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsxs("button",{className:d("flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors","border border-border bg-background hover:bg-accent hover:text-accent-foreground","focus:outline-none","disabled:pointer-events-none disabled:opacity-50"),onClick:()=>l(!1),disabled:f,children:[s.jsx(m,{className:"h-4 w-4"}),"Cancel"]}),s.jsx("button",{className:d("flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors",x?"bg-warning text-warning-foreground hover:bg-warning/90":"bg-primary text-primary-foreground hover:bg-primary/90","focus:outline-none","disabled:pointer-events-none disabled:opacity-50"),onClick:j,disabled:f,children:f?s.jsxs(s.Fragment,{children:[s.jsx(c,{className:"h-4 w-4 animate-spin"}),"Updating..."]}):s.jsxs(s.Fragment,{children:[s.jsx(c,{className:"h-4 w-4"}),"Update Component"]})})]})]})]})}));
1l.displayName="UpdateComponentModal";export{l as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.