module.exports=[56656,a=>{"use strict";var b=a.i(254157),c=a.i(467313),d=a.i(395465),e=a.i(694075);function f({status:a}){return"loading"===a?(0,b.jsx)(d.IconLoader2,{className:"h-4 w-4 animate-spin text-muted-foreground"}):"success"===a?(0,b.jsx)(c.IconCheck,{className:"h-4 w-4 text-emerald-500"}):"error"===a?(0,b.jsx)(e.IconX,{className:"h-4 w-4 text-destructive"}):null}a.s(["RequestIndicator",()=>f])},681230,a=>{"use strict";var b=a.i(254157),c=a.i(431110),d=a.i(18170),e=a.i(56656);function f(){return(0,b.jsx)("span",{className:"text-xs text-yellow-500",children:"Unsaved changes"})}function g({isDirty:a,isLoading:f,status:g,onClick:h,disabled:i,cleanLabel:j="Save"}){return(0,b.jsxs)(d.Button,{type:"button",size:"default",variant:a?"secondary":"outline",onClick:h,disabled:f||!!i,className:a?"border-yellow-500/60 text-yellow-500 hover:bg-yellow-500/10":"cursor-pointer",children:[a&&(0,b.jsx)(c.IconAlertCircle,{className:"h-4 w-4 mr-2"}),a?"Save":j,"idle"!==g&&(0,b.jsx)("span",{className:"ml-2",children:(0,b.jsx)(e.RequestIndicator,{status:g})})]})}a.s(["UnsavedChangesBadge",()=>f,"UnsavedSaveButton",()=>g])}];

//# sourceMappingURL=web_components_d0f4eb4a._.js.map