module.exports=[550093,a=>{"use strict";var b=a.i(254157);function c({icon:a,title:c,description:d,action:e,children:f}){return(0,b.jsxs)("section",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h3",{className:"text-lg font-semibold flex items-center gap-2",children:[a,c]}),d&&(0,b.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:d})]}),e&&(0,b.jsx)("div",{children:e})]}),f]})}a.s(["SettingsSection",()=>c])},37546,a=>{"use strict";var b=a.i(839769);function c(a,d={}){let{successDuration:e=1500}=d,[f,g]=(0,b.useState)({status:"idle",data:null,error:null}),h=(0,b.useRef)(null);(0,b.useEffect)(()=>()=>{h.current&&clearTimeout(h.current)},[]);let i=(0,b.useCallback)(async(...b)=>{h.current&&clearTimeout(h.current),g({status:"loading",data:null,error:null});try{let c=await a(...b);return g({status:"success",data:c,error:null}),e>0&&(h.current=setTimeout(()=>{g(a=>({...a,status:"idle"}))},e)),c}catch(b){let a=b instanceof Error?b:Error("Request failed");throw g({status:"error",data:null,error:a}),a}},[a,e]);return{...f,isLoading:"loading"===f.status,run:i,reset:()=>g({status:"idle",data:null,error:null})}}a.s(["useRequest",()=>c])},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])},81417,a=>{"use strict";var b=a.i(254157),c=a.i(18170),d=a.i(347421);function e({onBack:a}){return(0,b.jsx)("div",{children:(0,b.jsx)(d.Card,{children:(0,b.jsxs)(d.CardContent,{className:"py-12 text-center",children:[(0,b.jsx)("p",{className:"text-muted-foreground",children:"Workspace not found"}),(0,b.jsx)(c.Button,{className:"mt-4",onClick:a,children:"Back to Workspaces"})]})})})}a.s(["WorkspaceNotFoundCard",()=>e])},237302,a=>{"use strict";var b=a.i(839769);function c({isEditing:a,historyId:c,onOpen:d,onClose:e,renderPreview:f,renderEdit:g}){(0,b.useRef)(!1),(0,b.useRef)(!1);let h=(0,b.useCallback)(()=>{d()},[d]),i=(0,b.useCallback)(()=>{e()},[e]);return(0,b.useEffect)(()=>{},[c,a,e]),(0,b.useEffect)(()=>{},[a]),a?g({close:i}):f({open:h})}a.s(["EditableCard",()=>c])}];

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