limixbot 0.3.108 → 0.3.110

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.
Files changed (57) hide show
  1. package/dist/assets/{ActivityPanel-CTrLS1XS.js → ActivityPanel-ealYfVzE.js} +1 -1
  2. package/dist/assets/{App-CG84MXOY.js → App-ExQJKJEP.js} +8 -8
  3. package/dist/assets/{AppEventEditor-ZtIPD0FQ.js → AppEventEditor-C3gJpVWL.js} +1 -1
  4. package/dist/assets/{BotSettingsDialog-C3tyr4gD.js → BotSettingsDialog-BdYHpaKY.js} +4 -4
  5. package/dist/assets/{BrowserPanel-BBSj_PCL.js → BrowserPanel-CwIut2ui.js} +1 -1
  6. package/dist/assets/{BrowserProfilesManager-CBzqzPcQ.js → BrowserProfilesManager-tNRPB-uL.js} +1 -1
  7. package/dist/assets/{CloudAddDialog-tp51EOQi.js → CloudAddDialog-lItXF3Nl.js} +1 -1
  8. package/dist/assets/{ComputerFilesPane-QxES8_oW.js → ComputerFilesPane-DKBUyWJD.js} +1 -1
  9. package/dist/assets/{ComputerPanel-Go21aHH_.js → ComputerPanel-B77Lywcl.js} +2 -2
  10. package/dist/assets/{DataPanel-CohjsyZS.js → DataPanel-DRS8E4zZ.js} +1 -1
  11. package/dist/assets/{GrokMoveDialog-Dta-wMUD.js → GrokMoveDialog-DHMMT7Av.js} +1 -1
  12. package/dist/assets/{InspectorPanel-DNVQ8l5h.js → InspectorPanel-Ds9BkkJu.js} +1 -1
  13. package/dist/assets/{KeyboardShortcutsModal-DKAqPkt7.js → KeyboardShortcutsModal-CgTOpa3v.js} +1 -1
  14. package/dist/assets/{LimixResizeHandles-DkFJU9cC.js → LimixResizeHandles-DBAMoEqz.js} +1 -1
  15. package/dist/assets/{LiveDesktop-CBma2qSi.js → LiveDesktop-BJ7zgHIQ.js} +1 -1
  16. package/dist/assets/{LocalVmWorkspace-Dmj0Asui.js → LocalVmWorkspace-DES13vVe.js} +1 -1
  17. package/dist/assets/{MacLocalControl-3ulCDLa0.js → MacLocalControl-DxnBZ0Ne.js} +1 -1
  18. package/dist/assets/{MarkdownFilePreview-D14WSq4R.js → MarkdownFilePreview-BoLNjM07.js} +1 -1
  19. package/dist/assets/{NewBotDialog-YvTqJ2Ew.js → NewBotDialog-CU1eL3ey.js} +1 -1
  20. package/dist/assets/{PhoneAppDialog-ilnxxFj8.js → PhoneAppDialog-DHfTvMWh.js} +1 -1
  21. package/dist/assets/{PluginsPanel-BcyGpf-0.js → PluginsPanel-CD4M6CMA.js} +1 -1
  22. package/dist/assets/{ProIntroduction-CSkNp2Uo.js → ProIntroduction-D5GICbcu.js} +1 -1
  23. package/dist/assets/{RemoteAgentSettingsPanel-CqIm4aob.js → RemoteAgentSettingsPanel-q1QqJ2ZE.js} +1 -1
  24. package/dist/assets/{RoomPanel-DV9a_WMs.js → RoomPanel-Cnhggtf1.js} +1 -1
  25. package/dist/assets/{RoutinesPage-l0d2HuFh.js → RoutinesPage-CLRcCB9f.js} +1 -1
  26. package/dist/assets/{SettingsModal-DrG6Vc09.js → SettingsModal-DDsP9I82.js} +1 -1
  27. package/dist/assets/{ShareTeamDialog-CxhYnAKl.js → ShareTeamDialog-Bcmv1cry.js} +1 -1
  28. package/dist/assets/{SignedInSites-BLbxN4TK.js → SignedInSites-4Vge3Znu.js} +1 -1
  29. package/dist/assets/{TeamLibraryPanel-DCCNY9_4.js → TeamLibraryPanel-DKrW-8E8.js} +1 -1
  30. package/dist/assets/{TeamMapPage-BHXeLBCn.js → TeamMapPage-Bf5766G0.js} +1 -1
  31. package/dist/assets/{TriggersPage-DFXX3U13.js → TriggersPage-C_bZuLDU.js} +1 -1
  32. package/dist/assets/{VisibilitySection-Bj2CSIz8.js → VisibilitySection-CEJQJtla.js} +1 -1
  33. package/dist/assets/{WebhookTrigger-BUWw55_B.js → WebhookTrigger-BDBsUhLR.js} +1 -1
  34. package/dist/assets/{WorksOnGrid-DI002IF-.js → WorksOnGrid-0reiMxMC.js} +1 -1
  35. package/dist/assets/{core-DVjkFPvv.js → core-vzoqg-hA.js} +1 -1
  36. package/dist/assets/{import-name-He5LDxDq.js → import-name-DwslErtr.js} +1 -1
  37. package/dist/assets/{index-Cp-6CGKc.js → index-BRT0fVvF.js} +1 -1
  38. package/dist/assets/{index-DlFIRtPe.js → index-D8Gg5AcQ.js} +2 -2
  39. package/dist/assets/{mcp-servers-CLZ0PI_2.js → mcp-servers-BGIdhG_Y.js} +1 -1
  40. package/dist/assets/{new-bot-DxHaApV0.js → new-bot-BG5ujKuR.js} +1 -1
  41. package/dist/assets/{org-library-CYxHJUvG.js → org-library-DkG-rRFx.js} +1 -1
  42. package/dist/assets/{package-format-DuWZOSdu.js → package-format-65qv_MtA.js} +1 -1
  43. package/dist/assets/{remote-desktop-panel-BR4X58aF.js → remote-desktop-panel-DP90g_gu.js} +1 -1
  44. package/dist/index.html +1 -1
  45. package/dist-server/index.js +741 -723
  46. package/dist-server/limixbot.js +199 -186
  47. package/dist-server/package.json +1 -1
  48. package/dist-server/pair-cli.js +199 -186
  49. package/dist-server/server/bot-api-host.js +36 -6
  50. package/dist-server/server/bot-channels/engine.js +10 -8
  51. package/dist-server/server/channel-public-lookup.js +16 -0
  52. package/dist-server/server/drivers/antigravity-guest.js +105 -0
  53. package/dist-server/server/drivers/antigravity.js +14 -8
  54. package/dist-server/server/drivers/pi.js +5 -3
  55. package/dist-server/server/index.js +25 -3
  56. package/dist-server/server/routes/image-tools.js +6 -0
  57. package/package.json +1 -1
@@ -1 +1 @@
1
- import{r as l,t as s,j as t,X as $,a as X}from"./styles-DPHR6abF.js";import{c as ee,B as te,L as G}from"./PlacesRail-CaLUibn0.js";import{u as ae,v as F,w as L}from"./App-CG84MXOY.js";import{suggestedName as H}from"./WebhookTrigger-BUWw55_B.js";import"./monitor-COin3QOZ.js";import"./index-DlFIRtPe.js";import"./MenuMotion-B9JoFJEt.js";import"./remote-desktop-DDRRx8uY.js";const N="w-full rounded-xl border border-hairline/60 bg-panel px-3.5 py-2.5 text-[13px] text-ink outline-none placeholder:text-ink-tertiary focus:border-accent/70",m="mb-1.5 block text-[12px] font-medium text-ink-secondary";function de({trigger:a,bots:x,initialBotId:y,onClose:h,onSaved:J}){const{dispatch:K}=ae(),[i,Q]=l.useState(a?.botId??(y&&x.some(e=>e.id===y)?y:x[0]?.id)??""),[r,O]=l.useState(null),[v,B]=l.useState(a?.app??""),[b,k]=l.useState(a?.event??""),[g,U]=l.useState(a?.accountId??""),[I,V]=l.useState(a?.filter??{}),[f,E]=l.useState({}),[u,W]=l.useState(a?.prompt??""),[w,Y]=l.useState(a?.name??""),[P,D]=l.useState(!1),[S,C]=l.useState(""),R=l.useRef(null);ee(R,h),l.useEffect(()=>{if(a||!i)return;let e=!0;return O(null),F.events(i).then(n=>{if(!e)return;O(n);const o=n.apps.find(d=>d.events.length);B(d=>n.apps.some(z=>z.app===d)?d:o?.app??"")}).catch(n=>{e&&C(n instanceof Error?n.message:String(n))}),()=>{e=!1}},[i,a]);const p=r?.apps.find(e=>e.app===v),A=p?.events??[],c=A.find(e=>e.event===b)??(a?void 0:A[0]);l.useEffect(()=>{!a&&c&&c.event!==b&&k(c.event)},[c,b,a]);const q=(c?.configFields??[]).filter(e=>e.required),Z=v==="gmail",M=a?.delivery??c?.delivery,_=async()=>{const e=x.find(o=>o.id===i),n=Object.fromEntries(Object.entries(I).filter(([,o])=>typeof o=="string"&&o.trim()));D(!0),C("");try{const o=a?await F.update(a.id,{name:w.trim()||a.name,prompt:u.trim(),filter:Object.keys(n).length?n:null}):await F.create({botId:i,app:v,event:c?.event??b,prompt:u.trim(),name:w.trim()||H(u,e),...g?{account:g}:{},...Object.keys(n).length?{filter:n}:{},...Object.keys(f).length?{config:f}:{}});J?.(o),h()}catch(o){C(o instanceof Error?o.message:String(o))}finally{D(!1)}},j=(e,n,o)=>t.jsxs("label",{className:"block",children:[t.jsx("span",{className:m,children:n}),t.jsx("input",{value:I[e]??"",onChange:d=>V(z=>({...z,[e]:d.target.value})),placeholder:o,className:N})]},e),T=a?s("automations.editor.app.editTitle"):s("automations.editor.appEvent.title");return t.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-5",onMouseDown:e=>e.stopPropagation(),children:t.jsxs("div",{ref:R,role:"dialog","aria-modal":"true","aria-label":T,tabIndex:-1,className:"flex max-h-[90vh] w-full max-w-[560px] flex-col overflow-hidden rounded-2xl border border-hairline/60 bg-panel shadow-2xl",children:[t.jsxs("div",{className:"flex items-start justify-between border-b border-hairline/40 px-5 py-4",children:[t.jsx("div",{className:"text-[17px] font-semibold text-ink",children:T}),t.jsx("button",{type:"button",onClick:h,"aria-label":s("automations.newBox.cancel"),className:"rounded-lg p-2 text-ink-secondary hover:bg-raised hover:text-ink",children:t.jsx($,{size:18})})]}),t.jsxs("div",{className:"min-h-0 flex-1 space-y-5 overflow-y-auto p-5",children:[!a&&t.jsxs("div",{children:[t.jsx("div",{className:"mb-2 text-[13px] font-medium text-ink",children:s("automations.editor.app.who")}),t.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3",children:x.map(e=>t.jsxs("button",{type:"button",onClick:()=>Q(e.id),className:X("flex min-w-0 items-center gap-2 rounded-xl border px-3 py-2 text-left",i===e.id?"border-accent/70 bg-accent/10":"border-hairline/50 bg-inset hover:bg-raised/60"),children:[t.jsx(te,{bot:e,state:i===e.id?"happy":"idle",size:32,animated:!1}),t.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium text-ink",children:e.name})]},e.id))})]}),!a&&!r&&!S&&t.jsxs("p",{className:"flex items-center gap-2 text-[13px] text-ink-secondary",children:[t.jsx(G,{size:14,className:"animate-spin"}),s("automations.editor.appEvent.loading")]}),!a&&r&&(r.unavailable||!r.apps.some(e=>e.events.length))&&t.jsxs("div",{className:"rounded-xl border border-hairline/45 bg-inset/50 p-3.5 text-[13px] text-ink-secondary",children:[t.jsx("p",{children:r.unavailable??s("automations.editor.appEvent.noApps")}),!r.unavailable&&t.jsx("button",{type:"button",onClick:()=>K({type:"togglePlugins",open:!0,surface:"apps"}),className:"mt-2.5 rounded-lg bg-accent px-3 py-1.5 text-[13px] font-medium text-accent-ink hover:brightness-110",children:s("automations.editor.appEvent.connect")})]}),!a&&r&&p&&t.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[t.jsxs("label",{className:"block",children:[t.jsx("span",{className:m,children:s("automations.editor.appEvent.app")}),t.jsx(L,{value:v,onChange:e=>{B(e.target.value),k(""),E({})},"aria-label":s("automations.editor.appEvent.app"),className:"w-full",children:r.apps.filter(e=>e.events.length).map(e=>t.jsx("option",{value:e.app,children:e.name},e.app))})]}),t.jsxs("label",{className:"block",children:[t.jsx("span",{className:m,children:s("automations.editor.appEvent.event")}),t.jsx(L,{value:c?.event??"",onChange:e=>{k(e.target.value),E({})},"aria-label":s("automations.editor.appEvent.event"),className:"w-full",children:A.map(e=>t.jsx("option",{value:e.event,children:e.name},e.event))})]}),p.accounts.length>1&&t.jsxs("label",{className:"block sm:col-span-2",children:[t.jsx("span",{className:m,children:s("automations.editor.appEvent.account")}),t.jsxs(L,{value:g,onChange:e=>U(e.target.value),"aria-label":s("automations.editor.appEvent.account"),className:"w-full",children:[t.jsx("option",{value:""}),p.accounts.map(e=>t.jsx("option",{value:e.id,children:e.alias??e.id},e.id))]})]}),q.map(e=>t.jsxs("label",{className:"block sm:col-span-2",children:[t.jsx("span",{className:m,children:e.name}),t.jsx("input",{value:f[e.name]??"",onChange:n=>E(o=>({...o,[e.name]:n.target.value})),placeholder:e.description,className:N})]},e.name))]}),(a||p)&&t.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[Z?[j("from",s("automations.editor.appEvent.from"),"acme.com"),j("subject",s("automations.editor.appEvent.subject"),"order"),j("label",s("automations.editor.appEvent.label"),"Customers")]:j("text",s("automations.editor.appEvent.text"),"urgent"),M&&t.jsx("p",{className:"self-end text-[12px] text-ink-secondary sm:col-span-2",children:M==="poll"?s("automations.editor.appEvent.checks"):s("automations.editor.appEvent.instant")})]}),(a||p)&&t.jsxs("label",{className:"block",children:[t.jsx("span",{className:"mb-2 block text-[13px] font-medium text-ink",children:s("automations.editor.app.what")}),t.jsx("textarea",{value:u,onChange:e=>W(e.target.value),rows:3,placeholder:s("automations.editor.appEvent.whatPlaceholder"),className:X(N,"resize-y py-3 leading-relaxed")})]}),(a||p)&&t.jsxs("details",{className:"rounded-xl border border-hairline/45 bg-inset/45 px-4 py-3",children:[t.jsx("summary",{className:"cursor-pointer text-[13px] font-medium text-ink",children:s("automations.more")}),t.jsxs("label",{className:"mt-4 block",children:[t.jsx("span",{className:m,children:s("automations.editor.app.name")}),t.jsx("input",{value:w,onChange:e=>Y(e.target.value),placeholder:H(u,x.find(e=>e.id===i)),className:N})]})]}),S&&t.jsx("div",{role:"alert",className:"rounded-xl border border-danger/30 bg-danger/10 px-3.5 py-3 text-[12px] text-danger",children:S})]}),t.jsxs("div",{className:"flex justify-end gap-2 border-t border-hairline/40 px-5 py-4",children:[t.jsx("button",{type:"button",onClick:h,className:"rounded-xl px-4 py-2 text-[13px] text-ink-secondary hover:bg-raised hover:text-ink",children:s("automations.newBox.cancel")}),t.jsxs("button",{type:"button",disabled:P||!i||!a&&!c||q.some(e=>!f[e.name]?.trim()),onClick:()=>{_()},className:"flex items-center gap-2 rounded-xl bg-accent px-4 py-2 text-[13px] font-medium text-accent-ink hover:brightness-110 disabled:opacity-40",children:[P&&t.jsx(G,{size:14,className:"animate-spin"}),a?s("automations.editor.app.save"):s("automations.editor.app.create")]})]})]})})}export{de as AppEventEditor};
1
+ import{r as l,t as s,j as t,X as $,a as X}from"./styles-DPHR6abF.js";import{c as ee,B as te,L as G}from"./PlacesRail-CaLUibn0.js";import{u as ae,v as F,w as L}from"./App-ExQJKJEP.js";import{suggestedName as H}from"./WebhookTrigger-BDBsUhLR.js";import"./monitor-COin3QOZ.js";import"./index-D8Gg5AcQ.js";import"./MenuMotion-B9JoFJEt.js";import"./remote-desktop-DDRRx8uY.js";const N="w-full rounded-xl border border-hairline/60 bg-panel px-3.5 py-2.5 text-[13px] text-ink outline-none placeholder:text-ink-tertiary focus:border-accent/70",m="mb-1.5 block text-[12px] font-medium text-ink-secondary";function de({trigger:a,bots:x,initialBotId:y,onClose:h,onSaved:J}){const{dispatch:K}=ae(),[i,Q]=l.useState(a?.botId??(y&&x.some(e=>e.id===y)?y:x[0]?.id)??""),[r,O]=l.useState(null),[v,B]=l.useState(a?.app??""),[b,k]=l.useState(a?.event??""),[g,U]=l.useState(a?.accountId??""),[I,V]=l.useState(a?.filter??{}),[f,E]=l.useState({}),[u,W]=l.useState(a?.prompt??""),[w,Y]=l.useState(a?.name??""),[P,D]=l.useState(!1),[S,C]=l.useState(""),R=l.useRef(null);ee(R,h),l.useEffect(()=>{if(a||!i)return;let e=!0;return O(null),F.events(i).then(n=>{if(!e)return;O(n);const o=n.apps.find(d=>d.events.length);B(d=>n.apps.some(z=>z.app===d)?d:o?.app??"")}).catch(n=>{e&&C(n instanceof Error?n.message:String(n))}),()=>{e=!1}},[i,a]);const p=r?.apps.find(e=>e.app===v),A=p?.events??[],c=A.find(e=>e.event===b)??(a?void 0:A[0]);l.useEffect(()=>{!a&&c&&c.event!==b&&k(c.event)},[c,b,a]);const q=(c?.configFields??[]).filter(e=>e.required),Z=v==="gmail",M=a?.delivery??c?.delivery,_=async()=>{const e=x.find(o=>o.id===i),n=Object.fromEntries(Object.entries(I).filter(([,o])=>typeof o=="string"&&o.trim()));D(!0),C("");try{const o=a?await F.update(a.id,{name:w.trim()||a.name,prompt:u.trim(),filter:Object.keys(n).length?n:null}):await F.create({botId:i,app:v,event:c?.event??b,prompt:u.trim(),name:w.trim()||H(u,e),...g?{account:g}:{},...Object.keys(n).length?{filter:n}:{},...Object.keys(f).length?{config:f}:{}});J?.(o),h()}catch(o){C(o instanceof Error?o.message:String(o))}finally{D(!1)}},j=(e,n,o)=>t.jsxs("label",{className:"block",children:[t.jsx("span",{className:m,children:n}),t.jsx("input",{value:I[e]??"",onChange:d=>V(z=>({...z,[e]:d.target.value})),placeholder:o,className:N})]},e),T=a?s("automations.editor.app.editTitle"):s("automations.editor.appEvent.title");return t.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-5",onMouseDown:e=>e.stopPropagation(),children:t.jsxs("div",{ref:R,role:"dialog","aria-modal":"true","aria-label":T,tabIndex:-1,className:"flex max-h-[90vh] w-full max-w-[560px] flex-col overflow-hidden rounded-2xl border border-hairline/60 bg-panel shadow-2xl",children:[t.jsxs("div",{className:"flex items-start justify-between border-b border-hairline/40 px-5 py-4",children:[t.jsx("div",{className:"text-[17px] font-semibold text-ink",children:T}),t.jsx("button",{type:"button",onClick:h,"aria-label":s("automations.newBox.cancel"),className:"rounded-lg p-2 text-ink-secondary hover:bg-raised hover:text-ink",children:t.jsx($,{size:18})})]}),t.jsxs("div",{className:"min-h-0 flex-1 space-y-5 overflow-y-auto p-5",children:[!a&&t.jsxs("div",{children:[t.jsx("div",{className:"mb-2 text-[13px] font-medium text-ink",children:s("automations.editor.app.who")}),t.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3",children:x.map(e=>t.jsxs("button",{type:"button",onClick:()=>Q(e.id),className:X("flex min-w-0 items-center gap-2 rounded-xl border px-3 py-2 text-left",i===e.id?"border-accent/70 bg-accent/10":"border-hairline/50 bg-inset hover:bg-raised/60"),children:[t.jsx(te,{bot:e,state:i===e.id?"happy":"idle",size:32,animated:!1}),t.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium text-ink",children:e.name})]},e.id))})]}),!a&&!r&&!S&&t.jsxs("p",{className:"flex items-center gap-2 text-[13px] text-ink-secondary",children:[t.jsx(G,{size:14,className:"animate-spin"}),s("automations.editor.appEvent.loading")]}),!a&&r&&(r.unavailable||!r.apps.some(e=>e.events.length))&&t.jsxs("div",{className:"rounded-xl border border-hairline/45 bg-inset/50 p-3.5 text-[13px] text-ink-secondary",children:[t.jsx("p",{children:r.unavailable??s("automations.editor.appEvent.noApps")}),!r.unavailable&&t.jsx("button",{type:"button",onClick:()=>K({type:"togglePlugins",open:!0,surface:"apps"}),className:"mt-2.5 rounded-lg bg-accent px-3 py-1.5 text-[13px] font-medium text-accent-ink hover:brightness-110",children:s("automations.editor.appEvent.connect")})]}),!a&&r&&p&&t.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[t.jsxs("label",{className:"block",children:[t.jsx("span",{className:m,children:s("automations.editor.appEvent.app")}),t.jsx(L,{value:v,onChange:e=>{B(e.target.value),k(""),E({})},"aria-label":s("automations.editor.appEvent.app"),className:"w-full",children:r.apps.filter(e=>e.events.length).map(e=>t.jsx("option",{value:e.app,children:e.name},e.app))})]}),t.jsxs("label",{className:"block",children:[t.jsx("span",{className:m,children:s("automations.editor.appEvent.event")}),t.jsx(L,{value:c?.event??"",onChange:e=>{k(e.target.value),E({})},"aria-label":s("automations.editor.appEvent.event"),className:"w-full",children:A.map(e=>t.jsx("option",{value:e.event,children:e.name},e.event))})]}),p.accounts.length>1&&t.jsxs("label",{className:"block sm:col-span-2",children:[t.jsx("span",{className:m,children:s("automations.editor.appEvent.account")}),t.jsxs(L,{value:g,onChange:e=>U(e.target.value),"aria-label":s("automations.editor.appEvent.account"),className:"w-full",children:[t.jsx("option",{value:""}),p.accounts.map(e=>t.jsx("option",{value:e.id,children:e.alias??e.id},e.id))]})]}),q.map(e=>t.jsxs("label",{className:"block sm:col-span-2",children:[t.jsx("span",{className:m,children:e.name}),t.jsx("input",{value:f[e.name]??"",onChange:n=>E(o=>({...o,[e.name]:n.target.value})),placeholder:e.description,className:N})]},e.name))]}),(a||p)&&t.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[Z?[j("from",s("automations.editor.appEvent.from"),"acme.com"),j("subject",s("automations.editor.appEvent.subject"),"order"),j("label",s("automations.editor.appEvent.label"),"Customers")]:j("text",s("automations.editor.appEvent.text"),"urgent"),M&&t.jsx("p",{className:"self-end text-[12px] text-ink-secondary sm:col-span-2",children:M==="poll"?s("automations.editor.appEvent.checks"):s("automations.editor.appEvent.instant")})]}),(a||p)&&t.jsxs("label",{className:"block",children:[t.jsx("span",{className:"mb-2 block text-[13px] font-medium text-ink",children:s("automations.editor.app.what")}),t.jsx("textarea",{value:u,onChange:e=>W(e.target.value),rows:3,placeholder:s("automations.editor.appEvent.whatPlaceholder"),className:X(N,"resize-y py-3 leading-relaxed")})]}),(a||p)&&t.jsxs("details",{className:"rounded-xl border border-hairline/45 bg-inset/45 px-4 py-3",children:[t.jsx("summary",{className:"cursor-pointer text-[13px] font-medium text-ink",children:s("automations.more")}),t.jsxs("label",{className:"mt-4 block",children:[t.jsx("span",{className:m,children:s("automations.editor.app.name")}),t.jsx("input",{value:w,onChange:e=>Y(e.target.value),placeholder:H(u,x.find(e=>e.id===i)),className:N})]})]}),S&&t.jsx("div",{role:"alert",className:"rounded-xl border border-danger/30 bg-danger/10 px-3.5 py-3 text-[12px] text-danger",children:S})]}),t.jsxs("div",{className:"flex justify-end gap-2 border-t border-hairline/40 px-5 py-4",children:[t.jsx("button",{type:"button",onClick:h,className:"rounded-xl px-4 py-2 text-[13px] text-ink-secondary hover:bg-raised hover:text-ink",children:s("automations.newBox.cancel")}),t.jsxs("button",{type:"button",disabled:P||!i||!a&&!c||q.some(e=>!f[e.name]?.trim()),onClick:()=>{_()},className:"flex items-center gap-2 rounded-xl bg-accent px-4 py-2 text-[13px] font-medium text-accent-ink hover:brightness-110 disabled:opacity-40",children:[P&&t.jsx(G,{size:14,className:"animate-spin"}),a?s("automations.editor.app.save"):s("automations.editor.app.create")]})]})]})})}export{de as AppEventEditor};