panoma 0.9.0 → 0.9.1

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 (138) hide show
  1. package/app/BUILD-INFO.json +2 -2
  2. package/app/apps/web/.next-bundle/BUILD_ID +1 -1
  3. package/app/apps/web/.next-bundle/app-build-manifest.json +186 -186
  4. package/app/apps/web/.next-bundle/app-path-routes-manifest.json +38 -38
  5. package/app/apps/web/.next-bundle/build-manifest.json +2 -2
  6. package/app/apps/web/.next-bundle/prerender-manifest.json +9 -9
  7. package/app/apps/web/.next-bundle/server/app/(app)/agents/page_client-reference-manifest.js +1 -1
  8. package/app/apps/web/.next-bundle/server/app/(app)/ai/page_client-reference-manifest.js +1 -1
  9. package/app/apps/web/.next-bundle/server/app/(app)/apps/[id]/page.js +2 -2
  10. package/app/apps/web/.next-bundle/server/app/(app)/apps/[id]/page_client-reference-manifest.js +1 -1
  11. package/app/apps/web/.next-bundle/server/app/(app)/apps/page.js +2 -2
  12. package/app/apps/web/.next-bundle/server/app/(app)/apps/page_client-reference-manifest.js +1 -1
  13. package/app/apps/web/.next-bundle/server/app/(app)/bridge/page_client-reference-manifest.js +1 -1
  14. package/app/apps/web/.next-bundle/server/app/(app)/copies/page_client-reference-manifest.js +1 -1
  15. package/app/apps/web/.next-bundle/server/app/(app)/credentials/page_client-reference-manifest.js +1 -1
  16. package/app/apps/web/.next-bundle/server/app/(app)/disk/page_client-reference-manifest.js +1 -1
  17. package/app/apps/web/.next-bundle/server/app/(app)/hidden/page_client-reference-manifest.js +1 -1
  18. package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/page.js +1 -1
  19. package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/page_client-reference-manifest.js +1 -1
  20. package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/video/page.js +2 -2
  21. package/app/apps/web/.next-bundle/server/app/(app)/p/[slug]/video/page_client-reference-manifest.js +1 -1
  22. package/app/apps/web/.next-bundle/server/app/(app)/packages/page_client-reference-manifest.js +1 -1
  23. package/app/apps/web/.next-bundle/server/app/(app)/page.js +1 -1
  24. package/app/apps/web/.next-bundle/server/app/(app)/page_client-reference-manifest.js +1 -1
  25. package/app/apps/web/.next-bundle/server/app/(app)/runs/[id]/page_client-reference-manifest.js +1 -1
  26. package/app/apps/web/.next-bundle/server/app/(app)/runs/page_client-reference-manifest.js +1 -1
  27. package/app/apps/web/.next-bundle/server/app/(app)/search/page_client-reference-manifest.js +1 -1
  28. package/app/apps/web/.next-bundle/server/app/(app)/spend/page_client-reference-manifest.js +1 -1
  29. package/app/apps/web/.next-bundle/server/app/(app)/twin/look/page_client-reference-manifest.js +1 -1
  30. package/app/apps/web/.next-bundle/server/app/(app)/twin/page_client-reference-manifest.js +1 -1
  31. package/app/apps/web/.next-bundle/server/app/(app)/unsaved/page_client-reference-manifest.js +1 -1
  32. package/app/apps/web/.next-bundle/server/app/_not-found/page_client-reference-manifest.js +1 -1
  33. package/app/apps/web/.next-bundle/server/app/api/accounts/route_client-reference-manifest.js +1 -1
  34. package/app/apps/web/.next-bundle/server/app/api/agent/consult/route_client-reference-manifest.js +1 -1
  35. package/app/apps/web/.next-bundle/server/app/api/agent/context/route_client-reference-manifest.js +1 -1
  36. package/app/apps/web/.next-bundle/server/app/api/agent/hello/route_client-reference-manifest.js +1 -1
  37. package/app/apps/web/.next-bundle/server/app/api/agent/journal/route_client-reference-manifest.js +1 -1
  38. package/app/apps/web/.next-bundle/server/app/api/agent/keys/route_client-reference-manifest.js +1 -1
  39. package/app/apps/web/.next-bundle/server/app/api/agent/log/route_client-reference-manifest.js +1 -1
  40. package/app/apps/web/.next-bundle/server/app/api/agent/mcp/route_client-reference-manifest.js +1 -1
  41. package/app/apps/web/.next-bundle/server/app/api/agent/notes/route_client-reference-manifest.js +1 -1
  42. package/app/apps/web/.next-bundle/server/app/api/agent/tasks/[id]/route_client-reference-manifest.js +1 -1
  43. package/app/apps/web/.next-bundle/server/app/api/agent/tasks/route_client-reference-manifest.js +1 -1
  44. package/app/apps/web/.next-bundle/server/app/api/ai/route_client-reference-manifest.js +1 -1
  45. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/[operation]/route_client-reference-manifest.js +1 -1
  46. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/credentials/route_client-reference-manifest.js +1 -1
  47. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/jobs/route_client-reference-manifest.js +1 -1
  48. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/legal/route_client-reference-manifest.js +1 -1
  49. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/route_client-reference-manifest.js +1 -1
  50. package/app/apps/web/.next-bundle/server/app/api/apps/[id]/settings/route_client-reference-manifest.js +1 -1
  51. package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/artifact/route_client-reference-manifest.js +1 -1
  52. package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/cancel/route_client-reference-manifest.js +1 -1
  53. package/app/apps/web/.next-bundle/server/app/api/apps/jobs/[jobId]/route_client-reference-manifest.js +1 -1
  54. package/app/apps/web/.next-bundle/server/app/api/apps/route_client-reference-manifest.js +1 -1
  55. package/app/apps/web/.next-bundle/server/app/api/assets/route_client-reference-manifest.js +1 -1
  56. package/app/apps/web/.next-bundle/server/app/api/assignments/launch/route_client-reference-manifest.js +1 -1
  57. package/app/apps/web/.next-bundle/server/app/api/assignments/route_client-reference-manifest.js +1 -1
  58. package/app/apps/web/.next-bundle/server/app/api/catalog/route_client-reference-manifest.js +1 -1
  59. package/app/apps/web/.next-bundle/server/app/api/check/route_client-reference-manifest.js +1 -1
  60. package/app/apps/web/.next-bundle/server/app/api/consultations/route_client-reference-manifest.js +1 -1
  61. package/app/apps/web/.next-bundle/server/app/api/describe/route_client-reference-manifest.js +1 -1
  62. package/app/apps/web/.next-bundle/server/app/api/disk/route_client-reference-manifest.js +1 -1
  63. package/app/apps/web/.next-bundle/server/app/api/enrich/route_client-reference-manifest.js +1 -1
  64. package/app/apps/web/.next-bundle/server/app/api/environment/route_client-reference-manifest.js +1 -1
  65. package/app/apps/web/.next-bundle/server/app/api/hooks/route_client-reference-manifest.js +1 -1
  66. package/app/apps/web/.next-bundle/server/app/api/ingest/route_client-reference-manifest.js +1 -1
  67. package/app/apps/web/.next-bundle/server/app/api/md/apply/route_client-reference-manifest.js +1 -1
  68. package/app/apps/web/.next-bundle/server/app/api/md/context/route_client-reference-manifest.js +1 -1
  69. package/app/apps/web/.next-bundle/server/app/api/md/inspect/route_client-reference-manifest.js +1 -1
  70. package/app/apps/web/.next-bundle/server/app/api/md/repair/route_client-reference-manifest.js +1 -1
  71. package/app/apps/web/.next-bundle/server/app/api/md/review/route_client-reference-manifest.js +1 -1
  72. package/app/apps/web/.next-bundle/server/app/api/memory/export/route_client-reference-manifest.js +1 -1
  73. package/app/apps/web/.next-bundle/server/app/api/north/route_client-reference-manifest.js +1 -1
  74. package/app/apps/web/.next-bundle/server/app/api/notes/route_client-reference-manifest.js +1 -1
  75. package/app/apps/web/.next-bundle/server/app/api/open/all/route_client-reference-manifest.js +1 -1
  76. package/app/apps/web/.next-bundle/server/app/api/open/route_client-reference-manifest.js +1 -1
  77. package/app/apps/web/.next-bundle/server/app/api/project/route_client-reference-manifest.js +1 -1
  78. package/app/apps/web/.next-bundle/server/app/api/rescan/route_client-reference-manifest.js +1 -1
  79. package/app/apps/web/.next-bundle/server/app/api/roots/route_client-reference-manifest.js +1 -1
  80. package/app/apps/web/.next-bundle/server/app/api/runs/[id]/route_client-reference-manifest.js +1 -1
  81. package/app/apps/web/.next-bundle/server/app/api/runs/route_client-reference-manifest.js +1 -1
  82. package/app/apps/web/.next-bundle/server/app/api/scale/route_client-reference-manifest.js +1 -1
  83. package/app/apps/web/.next-bundle/server/app/api/search/route_client-reference-manifest.js +1 -1
  84. package/app/apps/web/.next-bundle/server/app/api/secrets/route_client-reference-manifest.js +1 -1
  85. package/app/apps/web/.next-bundle/server/app/api/spend/route_client-reference-manifest.js +1 -1
  86. package/app/apps/web/.next-bundle/server/app/api/tasks/route_client-reference-manifest.js +1 -1
  87. package/app/apps/web/.next-bundle/server/app/api/today/route_client-reference-manifest.js +1 -1
  88. package/app/apps/web/.next-bundle/server/app/api/twin/assign/route_client-reference-manifest.js +1 -1
  89. package/app/apps/web/.next-bundle/server/app/api/twin/classify/route_client-reference-manifest.js +1 -1
  90. package/app/apps/web/.next-bundle/server/app/api/twin/critique/route_client-reference-manifest.js +1 -1
  91. package/app/apps/web/.next-bundle/server/app/api/twin/design/route_client-reference-manifest.js +1 -1
  92. package/app/apps/web/.next-bundle/server/app/api/twin/distill/route_client-reference-manifest.js +1 -1
  93. package/app/apps/web/.next-bundle/server/app/api/twin/episodes/learn/route_client-reference-manifest.js +1 -1
  94. package/app/apps/web/.next-bundle/server/app/api/twin/episodes/route_client-reference-manifest.js +1 -1
  95. package/app/apps/web/.next-bundle/server/app/api/twin/look/route_client-reference-manifest.js +1 -1
  96. package/app/apps/web/.next-bundle/server/app/api/twin/mine/route_client-reference-manifest.js +1 -1
  97. package/app/apps/web/.next-bundle/server/app/api/twin/rehearse/route_client-reference-manifest.js +1 -1
  98. package/app/apps/web/.next-bundle/server/app/api/twin/score/route_client-reference-manifest.js +1 -1
  99. package/app/apps/web/.next-bundle/server/app/api/twin/shot/route_client-reference-manifest.js +1 -1
  100. package/app/apps/web/.next-bundle/server/app/api/twin/sources/route_client-reference-manifest.js +1 -1
  101. package/app/apps/web/.next-bundle/server/app/api/twin/synthesize/route_client-reference-manifest.js +1 -1
  102. package/app/apps/web/.next-bundle/server/app/api/twin/taste/route_client-reference-manifest.js +1 -1
  103. package/app/apps/web/.next-bundle/server/app/api/twin/verdicts/route_client-reference-manifest.js +1 -1
  104. package/app/apps/web/.next-bundle/server/app/api/watch/route_client-reference-manifest.js +1 -1
  105. package/app/apps/web/.next-bundle/server/app/icon/[id]/route_client-reference-manifest.js +1 -1
  106. package/app/apps/web/.next-bundle/server/app-paths-manifest.json +38 -38
  107. package/app/apps/web/.next-bundle/server/chunks/4146.js +1 -0
  108. package/app/apps/web/.next-bundle/server/chunks/5103.js +1 -1
  109. package/app/apps/web/.next-bundle/server/chunks/6206.js +1 -0
  110. package/app/apps/web/.next-bundle/server/chunks/7245.js +1 -1
  111. package/app/apps/web/.next-bundle/server/chunks/8384.js +1 -1
  112. package/app/apps/web/.next-bundle/server/chunks/8463.js +1 -1
  113. package/app/apps/web/.next-bundle/server/chunks/8990.js +2 -2
  114. package/app/apps/web/.next-bundle/server/functions-config-manifest.json +8 -8
  115. package/app/apps/web/.next-bundle/server/middleware-manifest.json +5 -5
  116. package/app/apps/web/.next-bundle/server/pages/500.html +1 -1
  117. package/app/apps/web/.next-bundle/server/server-reference-manifest.json +1 -1
  118. package/app/apps/web/.next-bundle/static/chunks/1369-514f421b74ddd546.js +1 -0
  119. package/app/apps/web/.next-bundle/static/chunks/2575-ba51754e97b2189d.js +1 -0
  120. package/app/apps/web/.next-bundle/static/chunks/2921-f3e642805b96ae85.js +1 -0
  121. package/app/apps/web/.next-bundle/static/chunks/7f092448-ce01f3ec11fa0291.js +1 -0
  122. package/app/apps/web/.next-bundle/static/chunks/app/(app)/apps/[id]/{page-dc2c3a7874636c29.js → page-9a7e13c300242729.js} +1 -1
  123. package/app/apps/web/.next-bundle/static/chunks/app/(app)/apps/page-99d4589f3e46f564.js +1 -0
  124. package/app/apps/web/.next-bundle/static/chunks/app/(app)/{layout-7f3d387ae540018d.js → layout-92c4e9bb06d75cea.js} +1 -1
  125. package/app/apps/web/.next-bundle/static/chunks/app/(app)/p/[slug]/video/page-e30a1bc740d37b83.js +1 -0
  126. package/app/apps/web/.next-bundle/static/css/069f32b7135b82ec.css +1 -0
  127. package/npm-shrinkwrap.json +2 -2
  128. package/package.json +1 -1
  129. package/app/apps/web/.next-bundle/server/chunks/5941.js +0 -1
  130. package/app/apps/web/.next-bundle/static/chunks/1369-8f6dde7e48bc4684.js +0 -1
  131. package/app/apps/web/.next-bundle/static/chunks/2575-62182d00e5cf3115.js +0 -1
  132. package/app/apps/web/.next-bundle/static/chunks/261-1c2829beaca77dc9.js +0 -1
  133. package/app/apps/web/.next-bundle/static/chunks/7f092448-e07c21e2897ac52e.js +0 -1
  134. package/app/apps/web/.next-bundle/static/chunks/app/(app)/apps/page-00ec4bf42a14ac17.js +0 -1
  135. package/app/apps/web/.next-bundle/static/chunks/app/(app)/p/[slug]/video/page-088684f252e3d59c.js +0 -1
  136. package/app/apps/web/.next-bundle/static/css/988bfb2024e770b7.css +0 -1
  137. /package/app/apps/web/.next-bundle/static/{mhsTm5XiqL98MCgDVB08u → STqjZGMJekTAROlGQ0_CG}/_buildManifest.js +0 -0
  138. /package/app/apps/web/.next-bundle/static/{mhsTm5XiqL98MCgDVB08u → STqjZGMJekTAROlGQ0_CG}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2921],{10354:(e,s,t)=>{var a=t(61990);t.o(a,"usePathname")&&t.d(s,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(s,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(s,{useSearchParams:function(){return a.useSearchParams}})},56684:(e,s,t)=>{t.d(s,{k5:()=>p});var a=t(32165),l={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=a.createContext&&a.createContext(l),r=["attr","size","title"];function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(null,arguments)}function c(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);s&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function o(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?c(Object(t),!0).forEach(function(s){var a,l,n;a=e,l=s,n=t[s],(l=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,s||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(l))in a?Object.defineProperty(a,l,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[l]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))})}return e}function p(e){return s=>a.createElement(d,i({attr:o({},e.attr)},s),function e(s){return s&&s.map((s,t)=>a.createElement(s.tag,o({key:t},s.attr),e(s.child)))}(e.child))}function d(e){var s=s=>{var t,l=e.attr,n=e.size,c=e.title,p=function(e,s){if(null==e)return{};var t,a,l=function(e,s){if(null==e)return{};var t={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==s.indexOf(a))continue;t[a]=e[a]}return t}(e,s);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],-1===s.indexOf(t)&&({}).propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}(e,r),d=n||s.size||"1em";return s.className&&(t=s.className),e.className&&(t=(t?t+" ":"")+e.className),a.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,l,p,{className:t,style:o(o({color:e.color||s.color},s.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&a.createElement("title",null,c),e.children)};return void 0!==n?a.createElement(n.Consumer,null,e=>s(e)):s(l)}},57776:(e,s,t)=>{t.d(s,{AppDetail:()=>y,uV:()=>x,jY:()=>w});var a=t(38657),l=t(32165),n=t(3043),r=t(9144),i=t(72340),c=t(97234),o=t(76982),p=t(3953),d=t.n(p),u=t(10354);function m(e){var s,t;let{ready:c,project:o,projects:p,loadError:m=!1,step:x}=e,h=(0,r.kj)(),b=(0,u.useRouter)(),j=(0,l.useId)(),[v,g]=(0,l.useTransition)(),[f,N]=(0,l.useState)(null),k=f&&f.queryProject===o?f.slug:null!=o?o:"",y=p.find(e=>e.slug===k),w=!!(k&&!y),C=new Map;for(let e of p)C.set(e.name,(null!=(s=C.get(e.name))?s:0)+1);return(0,a.jsxs)(i.Zp,{as:"section",id:"app-launch",tabIndex:-1,"aria-labelledby":"".concat(j,"-title"),"aria-busy":v||void 0,className:"scroll-mt-[calc(var(--bar-height)+var(--space-4))]",children:[x,(0,a.jsx)("h2",{id:"".concat(j,"-title"),className:"mt-1 text-base font-semibold text-chalk",children:h("apps.launch.title")}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-smoke",children:h("apps.launch.intro")}),m?(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)(i.lZ,{text:h("apps.launch.loadError")}),(0,a.jsx)(i.rA,{tone:"surface",className:"mt-3",type:"button",onClick:function(){g(()=>b.refresh())},busy:v,busyLabel:h("apps.launch.loading"),children:h("apps.retry")})]}):0===p.length?(0,a.jsx)(i.pp,{variant:"bare",className:"mt-4",title:h("apps.launch.empty"),action:(0,a.jsx)(d(),{href:"/",className:"text-xs text-chalk underline underline-offset-4",children:h("apps.launch.catalog")}),children:h("apps.launch.emptyHint")}):(0,a.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,a.jsxs)(i.l6,{label:h("apps.launch.project"),size:"lg",value:null!=(t=null==y?void 0:y.slug)?t:"",disabled:v,"aria-describedby":"".concat(j,"-open-hint").concat(w?" ".concat(j,"-missing"):""),onChange:e=>N({queryProject:o,slug:e.target.value}),children:[(0,a.jsx)("option",{value:"",children:h("apps.launch.choose")}),p.map(e=>{var s;return(0,a.jsx)("option",{value:e.slug,children:(null!=(s=C.get(e.name))?s:0)>1?"".concat(e.name," \xb7 ").concat(e.slug):e.name},e.slug)})]}),w&&(0,a.jsx)("p",{id:"".concat(j,"-missing"),role:"status",className:"text-xs leading-relaxed text-smoke",children:h("apps.launch.missingProject")}),c&&y?(0,a.jsxs)(d(),{href:"/p/".concat(encodeURIComponent(y.slug),"/video"),prefetch:!1,className:"apps-button apps-button-primary gap-2",children:[h("apps.launch.open"),(0,a.jsx)(n.r9I,{className:"size-4","aria-hidden":!0})]}):(0,a.jsxs)(i.rA,{tone:"accent",size:"lg",type:"button",disabled:!0,children:[h("apps.launch.open"),(0,a.jsx)(n.r9I,{className:"size-4","aria-hidden":!0})]}),(0,a.jsx)("p",{id:"".concat(j,"-open-hint"),className:"text-xs leading-relaxed text-smoke",children:h("apps.launch.openHint")})]}),!c&&(0,a.jsxs)("div",{className:"mt-4 border-t border-edge pt-3",children:[(0,a.jsx)("p",{className:"text-xs leading-relaxed text-smoke",children:h("apps.launch.setupHint")}),(0,a.jsx)(d(),{href:"#app-requirements",className:"mt-2 inline-block text-xs text-chalk underline underline-offset-4",children:h("apps.launch.setupLink")})]}),(0,a.jsx)("p",{role:"status",className:"sr-only",children:v?h("apps.launch.loading"):""})]})}function x(e){let{error:s}=e,t=(0,r.kj)();if(!s)return null;let l=(0,c.hz)(s),n=l.stage?{...l.vars,stage:t("apps.jobs.stage.".concat(l.stage))}:l.vars;return(0,a.jsxs)("div",{className:"mt-4 rounded border border-edge bg-raised p-3 text-sm",role:"alert",children:[(0,a.jsx)("p",{className:"text-smoke",children:t(l.key,n)}),l.quote&&(0,a.jsx)("blockquote",{className:"mt-1 break-words",children:l.quote})]})}let h={install:"apps.working.install",update:"apps.working.update",browser:"apps.working.browser",doctor:"apps.working.doctor"};function b(e){var s;let{job:t}=e,l=(0,r.kj)();if(!t)return null;let n=(0,c.xK)(t),i="browser"===t.tool&&void 0!==n?l("apps.working.browserPercent",{n:n}):l(null!=(s=h[t.tool])?s:"apps.working.other");return(0,a.jsxs)("div",{className:"mt-3",role:"status","aria-live":"polite",children:[(0,a.jsx)("p",{className:"text-sm text-smoke",children:i}),void 0!==n&&(0,a.jsx)("progress",{className:"mt-2 w-full",max:100,value:n,"aria-label":l("apps.jobs.progress",{n:n})})]})}function j(e){let{n:s,total:t=3}=e,l=(0,r.kj)();return(0,a.jsx)("p",{className:"eyebrow",children:l("apps.stepOf",{n:s,total:t})})}function v(e){var s;let{t,app:l,busy:n,onOperate:r}=e,i=(null==(s=l.npm)?void 0:s.present)===!1;return(0,a.jsxs)("div",{className:"mt-6 flex flex-wrap gap-2",children:[l.version&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{className:"apps-button",disabled:n||i,onClick:()=>r("update"),children:t("apps.update")}),(0,a.jsx)("button",{className:"apps-button",disabled:n,onClick:()=>r(!1===l.enabled?"enable":"disable"),children:t(!1===l.enabled?"apps.enable":"apps.disable")}),l.previousVersion&&(0,a.jsx)("button",{className:"apps-button",disabled:n,onClick:()=>r("rollback"),children:t("apps.rollback")})]}),(0,a.jsx)("button",{className:"apps-button",disabled:n,onClick:()=>r("check"),children:t("apps.check")})]})}function g(e){var s,t,l,n;let{t:r,locale:c,requirement:o,app:p,busy:d,working:u,onOperate:m}=e,x=!0===o.present?"apps.present":!1===o.present?"apps.missing":"apps.unchecked";return(0,a.jsxs)("div",{className:"mt-5 border-t border-edge pt-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold",children:r("browser"===o.id?"apps.browser":"apps.ffmpeg")}),(0,a.jsx)(i.vw,{size:"md",tone:o.present?"live":!1===o.present?"idle":"neutral",children:r(x)})]}),(0,a.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-smoke",children:r("browser"===o.id?"apps.browserHint":"apps.ffmpegHint")}),"browser"===o.id?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-smoke",children:r("apps.browserOwnCopy")}),!o.present&&(0,a.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-smoke",children:r("apps.browserConsent",{n:null!=(t=o.approxMB)?t:550})}),(0,a.jsx)("a",{className:"mt-2 inline-block text-sm underline",href:null!=(l=o.termsUrl)?l:"https://www.google.com/chrome/terms/",target:"_blank",rel:"noreferrer",children:r("apps.terms")}),!o.present&&(0,a.jsx)("div",{children:(0,a.jsx)("button",{className:"apps-button mt-3",disabled:d||!p.version,onClick:()=>m("browser"),children:r("apps.download")})}),(0,a.jsx)(b,{job:u})]}):!o.present&&(0,a.jsx)("p",{className:"mt-2 break-words text-sm leading-relaxed text-smoke",children:null!=(n=null==(s=o.install)?void 0:s[c])?n:r("apps.ffmpegInstall")})]})}function f(e){var s;let{t,locale:l,app:n,busy:r,working:o,onOperate:p}=e,d=o&&["install","update","doctor"].includes(o.tool)?o:void 0;return(0,a.jsxs)(i.Zp,{as:"section",id:"app-requirements",tabIndex:-1,"aria-labelledby":"app-requirements-title",className:"scroll-mt-[calc(var(--bar-height)+var(--space-4))]",children:[(0,a.jsx)(j,{n:1}),(0,a.jsx)("h2",{id:"app-requirements-title",className:"mt-1 text-base font-semibold",children:t("apps.requirements")}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-smoke",children:t("apps.setupIntro")}),!n.version&&(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)("button",{className:"apps-button apps-button-primary",disabled:r||(null==(s=n.npm)?void 0:s.present)===!1,onClick:()=>p("install"),children:t("apps.install")}),(0,a.jsx)("p",{className:"mt-2 text-xs text-smoke",children:t("apps.installHint")})]}),n.version&&!1===n.enabled&&(0,a.jsx)("button",{className:"apps-button apps-button-primary mt-4",disabled:r,onClick:()=>p("enable"),children:t("apps.enable")}),n.version&&(0,a.jsx)("button",{className:"apps-button mt-3",disabled:r,onClick:()=>p("doctor"),children:t("apps.refreshRequirements")}),(0,a.jsx)(b,{job:d}),n.requirementsAt&&(0,a.jsx)("p",{className:"mt-2 text-xs text-smoke",children:t("apps.checkedAt",{date:new Date(n.requirementsAt).toLocaleString(l)})}),(0,c.CG)(n).map(e=>(0,a.jsx)(g,{t:t,locale:l,requirement:e,app:n,busy:r,working:(null==o?void 0:o.tool)===e.id?o:void 0,onOperate:p},e.id))]})}function N(e){var s,t,n,r,c;let{t:o,locale:p,app:d,busy:u,onOperate:m}=e,[x,h]=(0,l.useState)(!1),b=null!=(n=null==(s=d.space)?void 0:s.dataBytes)?n:0;return(0,a.jsxs)(i.Zp,{as:"section",children:[(0,a.jsx)("h2",{className:"text-base font-semibold",children:o("apps.versions")}),(0,a.jsxs)("div",{className:"mt-3 space-y-2 font-mono text-xs",children:[(0,a.jsx)("p",{children:d.pkg}),(0,a.jsx)("p",{children:o("apps.version",{version:null!=(r=d.version)?r:"—"})}),d.previousVersion&&(0,a.jsx)("p",{children:o("apps.previous",{version:d.previousVersion})}),d.latestVersion&&(0,a.jsx)("p",{children:o("apps.available",{version:d.latestVersion})}),d.registryAt&&(0,a.jsx)("p",{children:o("apps.registryAt",{date:new Date(d.registryAt).toLocaleString(p)})}),d.stagedVersion&&(0,a.jsx)("p",{children:o("apps.staged",{version:d.stagedVersion})}),(0,a.jsx)("p",{children:o("apps.packageSpace",{bytes:(0,i.z3)(null!=(c=null==(t=d.space)?void 0:t.packageBytes)?c:0)})}),(0,a.jsx)("p",{children:o("apps.dataSpace",{bytes:(0,i.z3)(b)})})]}),(0,a.jsx)(v,{t:o,app:d,busy:u,onOperate:m}),d.version&&(0,a.jsx)("button",{className:"apps-button mt-4",disabled:u,onClick:()=>m("uninstall"),children:o("apps.uninstall")}),b>0&&(0,a.jsx)("button",{className:"apps-button mt-3",disabled:u,onClick:()=>h(!0),children:o("apps.clean")}),x&&(0,a.jsxs)("div",{className:"mt-3 rounded border border-edge p-3",children:[(0,a.jsx)("p",{className:"text-sm",children:o("apps.cleanConfirm",{bytes:(0,i.z3)(b)})}),(0,a.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,a.jsx)("button",{className:"apps-button",disabled:u,onClick:()=>{h(!1),m("clean")},children:o("apps.confirm")}),(0,a.jsx)("button",{className:"apps-button",onClick:()=>h(!1),children:o("apps.cancel")})]})]})]})}function k(e){let{t:s,app:t}=e;return(0,a.jsxs)(i.Zp,{as:"section",children:[(0,a.jsx)("h2",{className:"text-base font-semibold",children:s("apps.legal")}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-relaxed text-smoke",children:s("apps.privacy")}),t.version&&(0,a.jsx)("div",{className:"mt-4 flex gap-4 text-sm",children:["license","notices","codecs"].map(e=>(0,a.jsx)("a",{className:"underline",href:"/api/apps/".concat(t.id,"/legal?document=").concat(e),target:"_blank",rel:"noreferrer",children:s("apps.".concat(e))},e))})]})}function y(e){var s,t,p,d,u,h;let{id:b,project:v,projects:g,projectsError:y}=e,C=(0,r.kj)(),S=(0,r.Ym)(),{app:O,error:P,setError:A,reload:q}=function(e){var s,t;let[a,n]=(0,l.useState)(null),[r,i]=(0,l.useState)(null),o=(0,l.useCallback)(async()=>{try{n(await (0,c.Tl)("/api/apps/".concat(encodeURIComponent(e),"?space=1"))),i(null)}catch(e){i(String(e instanceof Error?e.message:e))}},[e]);(0,l.useEffect)(()=>{o()},[o]);let p=null==a||null==(t=a.jobs)||null==(s=t.find(e=>c.Cn.has(e.status)))?void 0:s.id;return(0,l.useEffect)(()=>{if(!p)return;let e=new AbortController;return(0,c.E4)(p,e.signal,e=>{n(s=>{var t;return s?{...s,jobs:null==(t=s.jobs)?void 0:t.map(s=>s.id===e.id?e:s)}:s}),i(null),c.Cn.has(e.status)||o()},i),()=>e.abort()},[p,o]),{app:a,error:r,setError:i,reload:o}}(b),[E,z]=(0,l.useState)(!1),I=(0,l.useCallback)(async e=>{z(!0),A(null);try{await (0,c.Tl)("/api/apps/".concat(encodeURIComponent(b),"/").concat(e),{}),await q()}catch(e){A(e.message)}finally{z(!1)}},[b,q,A]),T=(0,l.useCallback)(e=>{I(e)},[I]);if(!O)return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{error:P}),(0,a.jsx)("p",{className:"mt-6 text-smoke",children:C("apps.loading")}),P&&(0,a.jsx)("button",{className:"apps-button mt-3",onClick:()=>void q(),children:C("apps.retry")})]});let R=E||!!(null==(s=O.jobs)?void 0:s.some(e=>c.Cn.has(e.status))),D=(0,c.Qp)(O),L=(0,c.sk)(O);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("header",{className:"mt-5",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,a.jsx)(n.UW0,{"aria-hidden":!0,className:"h-16 w-16 shrink-0 text-accent"}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"eyebrow",children:C("apps.official")}),(0,a.jsx)("h1",{className:"page-shell__title mt-1",children:(0,c.JB)(O,S)})]}),(0,a.jsx)(i.vw,{size:"md",tone:O.ready&&!1!==O.enabled?"live":"strong",children:C((0,c.nN)(O))})]}),(0,a.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-smoke",children:null!=(u=null==(p=O.manifest)||null==(t=p.summary)?void 0:t[S])?u:C("apps.videoSummary")}),(0,a.jsx)("p",{className:"mt-3 text-sm font-semibold text-chalk",children:(0,a.jsx)("a",{className:"underline underline-offset-4",href:"create"===L?"#app-launch":"#app-requirements",children:C("apps.next.".concat(L))})})]}),(0,a.jsx)(x,{error:null!=P?P:O.error}),(null==(d=O.npm)?void 0:d.present)===!1&&(0,a.jsx)("p",{className:"mt-4 text-sm text-smoke",children:C("apps.npmMissing")}),(0,a.jsxs)("div",{className:"mt-6 flex flex-col gap-4 lg:grid lg:grid-cols-2 lg:items-start",children:[(0,a.jsxs)("div",{className:"contents lg:flex lg:flex-col lg:gap-4",children:[(0,a.jsx)("div",{className:"order-1 lg:contents",children:(0,a.jsx)(f,{t:C,locale:S,app:O,busy:R,working:D,onOperate:T})}),(0,a.jsx)("div",{className:"order-3 lg:contents",children:(0,a.jsx)(m,{ready:!!(O.ready&&!1!==O.enabled),project:v,projects:g,loadError:y,step:(0,a.jsx)(j,{n:3})})})]}),(0,a.jsxs)("div",{className:"contents lg:flex lg:flex-col lg:gap-4",children:[(0,a.jsx)("div",{className:"order-2 lg:contents",children:(0,a.jsx)(o.G,{app:O,busy:R,onSave:q,step:(0,a.jsx)(j,{n:2})})}),(0,a.jsx)("div",{className:"order-4 lg:contents",children:(0,a.jsx)(N,{t:C,locale:S,app:O,busy:R,onOperate:T})})]})]}),(0,a.jsx)("div",{className:"mt-4 grid items-start gap-4 lg:grid-cols-2",children:(0,a.jsx)(k,{t:C,app:O})}),(0,a.jsxs)("section",{className:"mt-8",children:[(0,a.jsx)("h2",{className:"text-base font-semibold",children:C("apps.jobs.title")}),(0,a.jsx)(w,{jobs:null!=(h=O.jobs)?h:[],onCancel:e=>{(0,c.Tl)("/api/apps/jobs/".concat(e.id,"/cancel"),{}).then(q).catch(e=>A(e.message))}})]})]})}function w(e){let{jobs:s,onCancel:t}=e,l=(0,r.kj)(),n=(0,r.Ym)();return(0,a.jsxs)("div",{className:"mt-4 space-y-3",children:[0===s.length&&(0,a.jsx)(i.pp,{variant:"note",title:l("apps.jobs.empty")}),s.map(e=>{var s,r;let i=(0,c.xK)(e),o=c.Cn.has(e.status),p=e.requestedAt?new Date(e.requestedAt).toLocaleString(n):"";return(0,a.jsxs)("div",{className:"rounded border border-edge p-4",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,a.jsxs)("p",{className:"text-sm",role:"status",children:[(0,a.jsx)("span",{className:"font-mono",children:e.tool})," \xb7 ",l((0,c.$J)(e.status)),p&&(0,a.jsxs)("span",{className:"text-faint",children:[" \xb7 ",p]})]}),t&&o&&(0,a.jsx)("button",{className:"apps-button",disabled:"cancelling"===e.status,onClick:()=>t(e),children:l("apps.jobs.cancel")})]}),o&&(null==(s=e.progress)?void 0:s.message)&&(0,a.jsx)("blockquote",{className:"mt-2 text-sm text-smoke",children:e.progress.message}),o&&void 0!==i&&(0,a.jsx)("progress",{className:"mt-3 w-full",max:100,value:i,"aria-label":l("apps.jobs.progress",{n:i})}),(0,a.jsx)(x,{error:e.error}),!o&&e.error&&(null==(r=e.progress)?void 0:r.message)&&(0,a.jsxs)("details",{className:"mt-2 text-sm",children:[(0,a.jsx)("summary",{className:"text-smoke",children:l("apps.jobs.lastSaid")}),(0,a.jsx)("blockquote",{className:"mt-2 break-words text-smoke",children:e.progress.message})]})]},e.id)})]})}},76982:(e,s,t)=>{t.d(s,{G:()=>u,n:()=>d});var a=t(38657),l=t(3953),n=t.n(l),r=t(32165),i=t(3043),c=t(97234),o=t(9144),p=t(72340);let d=[{value:"claude",label:"Claude Code"},{value:"codex",label:"Codex"},{value:"anthropic",label:"Anthropic API"},{value:"openai",label:"OpenAI API"}];function u(e){var s,t,l,u,x,h,b,j,v,g;let{app:f,busy:N,onSave:k,step:y}=e,w=(0,o.kj)(),C=(0,o.Ym)(),[S,O]=(0,r.useState)(null),[P,A]=(0,r.useState)(null),[q,E]=(0,r.useState)(!1),[z,I]=(0,r.useState)(!1),[T,R]=(0,r.useState)(!1),[D,L]=(0,r.useState)(!1),[Z,H]=(0,r.useState)(null),[V,_]=(0,r.useState)(!1),[F,U]=(0,r.useState)(!0),J=(0,r.useRef)(!1),B=null!=(b=null!=S?S:null==(s=f.settings)?void 0:s.brain)?b:"none",G=null!=(j=null!=P?P:null==(t=f.settings)?void 0:t.voice)&&j,M="none"!==B&&B!==(null!=(v=null==(l=f.settings)?void 0:l.brain)?v:"none")||G&&!(null==(u=f.settings)?void 0:u.voice),Y=G&&!(null==Z?void 0:Z.configured),K=N||z,W="/api/apps/".concat(encodeURIComponent(f.id),"/credentials"),Q=(0,r.useCallback)(async e=>{U(!0),_(!1);try{let s=await (0,c.Tl)(W,void 0,"GET",e);(null==e?void 0:e.aborted)||H(s)}catch(s){(null==e?void 0:e.aborted)||_(!0)}finally{(null==e?void 0:e.aborted)||U(!1)}},[W]);function $(){E(!1),R(!1),L(!1)}async function X(){if(!J.current&&!K&&!Y&&(!M||q)){J.current=!0,I(!0),R(!1),L(!1);try{let e=await (0,c.Tl)("/api/apps/".concat(encodeURIComponent(f.id),"/settings"),{brain:B,voice:G,confirm:q},"PATCH");O(e.settings.brain),A(e.settings.voice),await k(),E(!1),R(!0)}catch(e){L(!0)}finally{J.current=!1,I(!1)}}}return(0,r.useEffect)(()=>{let e=new AbortController;return Q(e.signal),()=>e.abort()},[Q]),(0,a.jsxs)(p.Zp,{as:"section","aria-labelledby":"app-providers-title",children:[y,(0,a.jsxs)("div",{className:"mt-1 flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsx)("h2",{id:"app-providers-title",className:"text-base font-semibold",children:w("apps.providers")}),(0,a.jsx)(p.vw,{size:"md",children:w("apps.optional")})]}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-smoke",children:w("apps.providersIntro")}),(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsxs)(p.l6,{label:w("apps.brain"),value:B,disabled:K,onChange:e=>{O(e.target.value),$()},children:[(0,a.jsx)("option",{value:"none",children:w("apps.none")}),(0,a.jsx)("option",{value:"auto",children:w("apps.auto")}),d.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,a.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-smoke",children:w("apps.brainHint")}),(0,a.jsx)(n(),{href:"/ai",className:"mt-2 inline-block text-xs underline underline-offset-4",children:w("apps.configureModel")})]}),(0,a.jsxs)("div",{className:"mt-5 border-t border-edge pt-5",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(i.INy,{"aria-hidden":!0,className:"h-5 w-5"}),(0,a.jsx)("h3",{className:"text-sm font-semibold",children:w("apps.voice")})]}),(0,a.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-smoke",children:w("apps.voiceHint")}),F?(0,a.jsx)("p",{role:"status",className:"mt-3 text-xs text-smoke",children:w("apps.key.loading")}):V?(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsx)(p.lZ,{text:w("apps.key.loadFailed")}),(0,a.jsx)(p.rA,{type:"button",tone:"surface",className:"mt-2",onClick:()=>void Q(),children:w("apps.retry")})]}):Z&&(0,a.jsx)(m,{endpoint:W,status:Z,busy:K,onChanged:e=>{H(e),$()}}),(0,a.jsx)(p.Jl,{size:"lg",className:"mt-4",checked:G,disabled:K||F&&!G||!(null==Z?void 0:Z.configured)&&!G,onChange:e=>{A(e.target.checked),$()},children:w("apps.enableVoice")}),Y&&(0,a.jsx)("p",{className:"mt-2 text-xs text-smoke",children:w("apps.key.required")})]}),M&&(0,a.jsxs)("div",{className:"mt-5 border-t border-edge pt-4",children:[(0,a.jsx)("div",{className:"space-y-2 text-xs leading-relaxed text-smoke",children:(null!=(g=null==(h=f.manifest)||null==(x=h.providers)?void 0:x.filter(e=>"brain"===e.id?"none"!==B:G))?g:[]).map(e=>(0,a.jsx)("p",{children:e.sends[C]},e.id))}),(0,a.jsx)(p.Jl,{size:"lg",className:"mt-3",checked:q,disabled:K,onChange:e=>E(e.target.checked),children:w("apps.providerConfirm")})]}),(0,a.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-3 border-t border-edge pt-4",children:[(0,a.jsx)(p.rA,{type:"button",tone:"accent",busy:z,busyLabel:w("apps.saving"),disabled:K||Y||M&&!q,onClick:()=>void X(),children:w("apps.providerSave")}),(0,a.jsx)("p",{role:"status",className:"text-xs text-smoke",children:T?w("apps.providersSaved"):""})]}),D&&(0,a.jsx)(p.lZ,{text:w("apps.providersFailed"),className:"mt-3"}),(0,a.jsx)(n(),{href:"/spend",className:"mt-3 inline-block text-xs underline underline-offset-4",children:w("apps.spendLink")})]})}function m(e){let{endpoint:s,status:t,busy:l,onChanged:n}=e,d=(0,o.kj)(),[u,m]=(0,r.useState)(""),[x,h]=(0,r.useState)(!1),[b,j]=(0,r.useState)(!1),[v,g]=(0,r.useState)(!1),[f,N]=(0,r.useState)(!1),[k,y]=(0,r.useState)(null),w=(0,r.useRef)(!1),C=l||v,S=(0,r.useRef)(null);async function O(e){if(!w.current&&!C){w.current=!0,g(!0),N(!1),y(null);try{let t=await (0,c.Tl)(s,"POST"===e?{provider:"elevenlabs",key:u.trim()}:{provider:"elevenlabs"},e);m(""),h(!1),j(!1),y("POST"===e?"saved":"removed"),n(t)}catch(e){N(!0)}finally{w.current=!1,g(!1)}}}return(0,r.useEffect)(()=>{var e,s;x&&(null==(s=S.current)||null==(e=s.querySelector("input"))||e.focus())},[x]),(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[(0,a.jsx)(i.JPZ,{"aria-hidden":!0,className:"h-4 w-4"}),(0,a.jsx)(p.vw,{size:"md",tone:t.configured?"strong":"neutral",children:d(t.configured?"apps.key.configured":"apps.key.missing")})]}),(!t.configured||x)&&(0,a.jsxs)("form",{ref:S,className:"mt-3",onSubmit:e=>{e.preventDefault(),u.trim()&&O("POST")},children:[(0,a.jsx)(p.D0,{label:d("apps.key.label"),type:"password",autoComplete:"off",spellCheck:!1,required:!0,maxLength:500,value:u,disabled:C,"aria-describedby":"elevenlabs-key-hint",onChange:e=>{m(e.target.value),N(!1),y(null)}}),(0,a.jsx)("p",{id:"elevenlabs-key-hint",className:"mt-2 text-xs leading-relaxed text-smoke",children:d("apps.key.hint")}),(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[(0,a.jsx)(p.rA,{type:"submit",tone:"surface",busy:v,busyLabel:d("apps.saving"),disabled:C||!u.trim(),children:d("apps.key.save")}),x&&(0,a.jsx)(p.rA,{type:"button",tone:"quiet",disabled:C,onClick:()=>{h(!1),m("")},children:d("apps.cancel")}),(0,a.jsx)("a",{href:"https://elevenlabs.io/app/settings/api-keys",target:"_blank",rel:"noreferrer",className:"text-xs underline underline-offset-4",children:d("apps.key.get")})]})]}),t.configured&&!x&&!b&&(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,a.jsx)(p.rA,{type:"button",tone:"surface",disabled:C,onClick:()=>{h(!0),y(null)},children:d("apps.key.replace")}),(0,a.jsx)(p.rA,{type:"button",tone:"quiet",disabled:C,onClick:()=>j(!0),children:d("apps.key.remove")})]}),b&&(0,a.jsxs)("div",{className:"mt-3 border-l border-edge pl-3",children:[(0,a.jsx)("p",{className:"text-xs leading-relaxed",children:d("apps.key.removeConfirm")}),(0,a.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2",children:[(0,a.jsx)(p.rA,{type:"button",tone:"danger",busy:v,disabled:C,onClick:()=>void O("DELETE"),children:d("apps.key.remove")}),(0,a.jsx)(p.rA,{type:"button",tone:"quiet",disabled:C,onClick:()=>j(!1),children:d("apps.cancel")})]})]}),(0,a.jsx)("p",{role:"status",className:"mt-2 text-xs text-smoke",children:k?d("saved"===k?"apps.key.saved":"apps.key.removed"):""}),f&&(0,a.jsx)(p.lZ,{text:d("apps.key.saveFailed"),className:"mt-2"})]})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6587],{3043:(t,r,e)=>{e.d(r,{$mg:()=>tt,A6:()=>P,AN7:()=>tl,B3U:()=>th,CU3:()=>T,Dco:()=>X,Dho:()=>tc,ENP:()=>u,EgV:()=>K,G7A:()=>p,INy:()=>A,J7E:()=>m,JJh:()=>w,JPZ:()=>x,Jhl:()=>b,K0m:()=>L,K7t:()=>n,K8V:()=>Y,KQe:()=>D,OvC:()=>to,UW0:()=>Z,V83:()=>B,XVA:()=>R,XcM:()=>g,Y48:()=>I,YJZ:()=>C,YL0:()=>V,YT$:()=>v,YUE:()=>M,Yzk:()=>c,Zs_:()=>s,ax_:()=>f,bZk:()=>N,bv7:()=>i,d7T:()=>z,dNM:()=>tr,efr:()=>ta,f9d:()=>E,fZH:()=>a,gBk:()=>H,gj5:()=>j,hru:()=>$,jXD:()=>td,lPA:()=>G,mUU:()=>W,mmf:()=>S,ngD:()=>y,o7e:()=>q,oNX:()=>d,qRK:()=>F,r9I:()=>ti,sdO:()=>l,tZt:()=>k,vsK:()=>_,wNU:()=>te,wl$:()=>tn,x5m:()=>Q,yRo:()=>h,z1N:()=>U,zKo:()=>O,zMq:()=>J});var o=e(56684);function n(t){return(0,o.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z",clipRule:"evenodd"},child:[]}]})(t)}function i(t){return(0,o.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"},child:[]}]})(t)}function a(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"},child:[]}]})(t)}function d(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},child:[]}]})(t)}function c(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"},child:[]}]})(t)}function h(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"},child:[]}]})(t)}function l(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"},child:[]}]})(t)}function u(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"},child:[]}]})(t)}function s(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"},child:[]}]})(t)}function k(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"},child:[]}]})(t)}function v(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.348 14.652a3.75 3.75 0 0 1 0-5.304m5.304 0a3.75 3.75 0 0 1 0 5.304m-7.425 2.121a6.75 6.75 0 0 1 0-9.546m9.546 0a6.75 6.75 0 0 1 0 9.546M5.106 18.894c-3.808-3.807-3.808-9.98 0-13.788m13.788 0c3.808 3.807 3.808 9.98 0 13.788M12 12h.008v.008H12V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"},child:[]}]})(t)}function g(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.907a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"},child:[]}]})(t)}function m(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 17.25v-.228a4.5 4.5 0 0 0-.12-1.03l-2.268-9.64a3.375 3.375 0 0 0-3.285-2.602H7.923a3.375 3.375 0 0 0-3.285 2.602l-2.268 9.64a4.5 4.5 0 0 0-.12 1.03v.228m19.5 0a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3m19.5 0a3 3 0 0 0-3-3H5.25a3 3 0 0 0-3 3m16.5 0h.008v.008h-.008v-.008Zm-3 0h.008v.008h-.008v-.008Z"},child:[]}]})(t)}function L(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"},child:[]}]})(t)}function f(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"},child:[]}]})(t)}function p(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"},child:[]}]})(t)}function M(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"},child:[]}]})(t)}function C(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"},child:[]}]})(t)}function A(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18.75a6 6 0 0 0 6-6v-1.5m-6 7.5a6 6 0 0 1-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 0 1-3-3V4.5a3 3 0 1 1 6 0v8.25a3 3 0 0 1-3 3Z"},child:[]}]})(t)}function w(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"},child:[]}]})(t)}function j(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"},child:[]}]})(t)}function x(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"},child:[]}]})(t)}function B(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 3.75H6.912a2.25 2.25 0 0 0-2.15 1.588L2.35 13.177a2.25 2.25 0 0 0-.1.661V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 0 0-2.15-1.588H15M2.25 13.5h3.86a2.25 2.25 0 0 1 2.012 1.244l.256.512a2.25 2.25 0 0 0 2.013 1.244h3.218a2.25 2.25 0 0 0 2.013-1.244l.256-.512a2.25 2.25 0 0 1 2.013-1.244h3.859M12 3v8.25m0 0-3-3m3 3 3-3"},child:[]}]})(t)}function W(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"},child:[]}]})(t)}function H(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"},child:[]}]})(t)}function V(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.864 4.243A7.5 7.5 0 0 1 19.5 10.5c0 2.92-.556 5.709-1.568 8.268M5.742 6.364A7.465 7.465 0 0 0 4.5 10.5a7.464 7.464 0 0 1-1.15 3.993m1.989 3.559A11.209 11.209 0 0 0 8.25 10.5a3.75 3.75 0 1 1 7.5 0c0 .527-.021 1.049-.064 1.565M12 10.5a14.94 14.94 0 0 1-3.6 9.75m6.633-4.596a18.666 18.666 0 0 1-2.485 5.33"},child:[]}]})(t)}function Z(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h1.5C5.496 19.5 6 18.996 6 18.375m-3.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-1.5A1.125 1.125 0 0 1 18 18.375M20.625 4.5H3.375m17.25 0c.621 0 1.125.504 1.125 1.125M20.625 4.5h-1.5C18.504 4.5 18 5.004 18 5.625m3.75 0v1.5c0 .621-.504 1.125-1.125 1.125M3.375 4.5c-.621 0-1.125.504-1.125 1.125M3.375 4.5h1.5C5.496 4.5 6 5.004 6 5.625m-3.75 0v1.5c0 .621.504 1.125 1.125 1.125m0 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m1.5-3.75C5.496 8.25 6 7.746 6 7.125v-1.5M4.875 8.25C5.496 8.25 6 8.754 6 9.375v1.5m0-5.25v5.25m0-5.25C6 5.004 6.504 4.5 7.125 4.5h9.75c.621 0 1.125.504 1.125 1.125m1.125 2.625h1.5m-1.5 0A1.125 1.125 0 0 1 18 7.125v-1.5m1.125 2.625c-.621 0-1.125.504-1.125 1.125v1.5m2.625-2.625c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125M18 5.625v5.25M7.125 12h9.75m-9.75 0A1.125 1.125 0 0 1 6 10.875M7.125 12C6.504 12 6 12.504 6 13.125m0-2.25C6 11.496 5.496 12 4.875 12M18 10.875c0 .621-.504 1.125-1.125 1.125M18 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m-12 5.25v-5.25m0 5.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125m-12 0v-1.5c0-.621-.504-1.125-1.125-1.125M18 18.375v-5.25m0 5.25v-1.5c0-.621.504-1.125 1.125-1.125M18 13.125v1.5c0 .621.504 1.125 1.125 1.125M18 13.125c0-.621.504-1.125 1.125-1.125M6 13.125v1.5c0 .621-.504 1.125-1.125 1.125M6 13.125C6 12.504 5.496 12 4.875 12m-1.5 0h1.5m-1.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M19.125 12h1.5m0 0c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h1.5m14.25 0h1.5"},child:[]}]})(t)}function N(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"},child:[]}]})(t)}function K(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"},child:[]}]})(t)}function U(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"},child:[]}]})(t)}function E(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"},child:[]}]})(t)}function J(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"},child:[]}]})(t)}function R(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"},child:[]}]})(t)}function Y(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"},child:[]}]})(t)}function _(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"},child:[]}]})(t)}function b(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"},child:[]}]})(t)}function z(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"},child:[]}]})(t)}function D(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"},child:[]}]})(t)}function X(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"},child:[]}]})(t)}function P(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184"},child:[]}]})(t)}function $(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"},child:[]}]})(t)}function q(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"},child:[]}]})(t)}function y(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},child:[]}]})(t)}function I(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"},child:[]}]})(t)}function O(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"},child:[]}]})(t)}function S(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"},child:[]}]})(t)}function T(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},child:[]}]})(t)}function G(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 3.75V16.5L12 14.25 7.5 16.5V3.75m9 0H18A2.25 2.25 0 0 1 20.25 6v12A2.25 2.25 0 0 1 18 20.25H6A2.25 2.25 0 0 1 3.75 18V6A2.25 2.25 0 0 1 6 3.75h1.5m9 0h-9"},child:[]}]})(t)}function Q(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"},child:[]}]})(t)}function F(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 3.104v5.714a2.25 2.25 0 0 1-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 0 1 4.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0 1 12 15a9.065 9.065 0 0 0-6.23-.693L5 14.5m14.8.8 1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0 1 12 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5"},child:[]}]})(t)}function tt(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"},child:[]}]})(t)}function tr(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm3 0h.008v.008H18V10.5Zm-12 0h.008v.008H6V10.5Z"},child:[]}]})(t)}function te(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"},child:[]}]})(t)}function to(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 19.5 15-15m0 0H8.25m11.25 0v11.25"},child:[]}]})(t)}function tn(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"},child:[]}]})(t)}function ti(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"},child:[]}]})(t)}function ta(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"},child:[]}]})(t)}function td(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"},child:[]}]})(t)}function tc(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"},child:[]}]})(t)}function th(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"},child:[]}]})(t)}function tl(t){return(0,o.k5)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"},child:[]}]})(t)}}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5974],{83042:(e,s,n)=>{Promise.resolve().then(n.bind(n,22956)),Promise.resolve().then(n.t.bind(n,3953,23))}},e=>{e.O(0,[6587,3953,2575,2340,1369,261,1305,6823,7358],()=>e(e.s=83042)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5974],{83042:(e,s,n)=>{Promise.resolve().then(n.bind(n,57776)),Promise.resolve().then(n.t.bind(n,3953,23))}},e=>{e.O(0,[6587,3953,2575,2340,1369,2921,1305,6823,7358],()=>e(e.s=83042)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7852],{20240:(e,s,a)=>{"use strict";a.d(s,{AppsCatalog:()=>m});var t=a(38657),l=a(3953),n=a.n(l),i=a(32165),r=a(3043),o=a(97234),c=a(57776),p=a(9144),d=a(72340);function m(){let e=(0,p.kj)(),s=(0,p.Ym)(),[a,l]=(0,i.useState)(null),[m,x]=(0,i.useState)(null),[u,h]=(0,i.useState)(!0),[f,N]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let e=new AbortController;return(0,o.Tl)("/api/apps",void 0,"GET",e.signal).then(s=>{e.signal.aborted||(l(s.apps),x(null))}).catch(s=>{e.signal.aborted||x(s instanceof Error?s.message:String(s))}).finally(()=>{e.signal.aborted||h(!1)}),()=>e.abort()},[f]),(0,t.jsxs)("div",{className:"mt-8",children:[(0,t.jsx)(c.uV,{error:m}),m&&(0,t.jsx)("button",{className:"apps-button mt-3",disabled:u,onClick:function(){h(!0),N(e=>e+1)},children:e("apps.retry")}),u&&(0,t.jsx)("p",{role:"status",className:"text-sm text-smoke",children:e("apps.loading")}),!u&&!m&&(null==a?void 0:a.length)===0&&(0,t.jsx)(d.pp,{role:"status",icon:(0,t.jsx)(r.ENP,{className:"h-8 w-8"}),title:e("apps.catalogEmpty")}),(0,t.jsx)("div",{className:"flex flex-wrap items-start gap-5",children:null==a?void 0:a.map(a=>{let l=(0,o.JB)(a,s),i="panoma-video"===a.id?r.UW0:r.ENP;return(0,t.jsxs)(d.Zp,{as:"article",className:"flex aspect-square w-80 max-w-full min-w-0 flex-col",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsx)(i,{"aria-hidden":!0,className:"h-16 w-16 shrink-0 text-accent"}),a.version&&(0,t.jsx)("p",{className:"break-words text-right font-mono text-xs text-smoke",children:e("apps.catalogVersion",{version:a.version})})]}),(0,t.jsx)("h2",{className:"mt-3 break-words font-display text-xl font-semibold",children:l}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(d.vw,{tone:"strong",size:"md",children:e((0,o.nN)(a))})}),(0,t.jsx)("div",{className:"mt-auto pt-4",children:(0,t.jsxs)(n(),{href:"/apps/".concat(encodeURIComponent(a.id)),className:"apps-button w-full gap-2","aria-label":e("apps.catalogOpen",{name:l}),children:[e("apps.open"),(0,t.jsx)(r.r9I,{"aria-hidden":!0,className:"h-4 w-4"})]})})]},a.id)})})]})}},66141:(e,s,a)=>{Promise.resolve().then(a.bind(a,20240))}},e=>{e.O(0,[6587,3953,2575,2340,1369,2921,1305,6823,7358],()=>e(e.s=66141)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4944],{416:()=>{},1810:(e,t,a)=>{"use strict";a.d(t,{y:()=>r});var n=a(32165);function r(e,t,a){let r=(0,n.useRef)(a);(0,n.useEffect)(()=>{r.current=a}),(0,n.useEffect)(()=>{if(!t)return;let a=t=>{var a;let n=t.target;(null==(a=e.current)||!a.contains(n))&&(n instanceof Element&&n.closest('[aria-modal="true"]')||r.current("outside"))},n=e=>{"Escape"===e.key&&r.current("escape")};return window.addEventListener("pointerdown",a),window.addEventListener("keydown",n),()=>{window.removeEventListener("pointerdown",a),window.removeEventListener("keydown",n)}},[e,t])}},9144:(e,t,a)=>{"use strict";a.d(t,{I18nProvider:()=>o,Ym:()=>c,Zs:()=>u,kj:()=>d});var n=a(38657),r=a(32165),l=a(2575);let s=(0,r.createContext)("en"),i=(0,r.createContext)("panoma");function o(e){let{locale:t,cli:a,children:r}=e;return(0,n.jsx)(s.Provider,{value:t,children:(0,n.jsx)(i.Provider,{value:a,children:r})})}function c(){return(0,r.useContext)(s)}function u(){return(0,r.useContext)(i)}function d(){let e=(0,r.useContext)(s),t=(0,r.useContext)(i);return(0,r.useCallback)((a,n)=>(0,l.t)(e,a,{cli:t,...n}),[e,t])}},10354:(e,t,a)=>{"use strict";var n=a(61990);a.o(n,"usePathname")&&a.d(t,{usePathname:function(){return n.usePathname}}),a.o(n,"useRouter")&&a.d(t,{useRouter:function(){return n.useRouter}}),a.o(n,"useSearchParams")&&a.d(t,{useSearchParams:function(){return n.useSearchParams}})},13e3:(e,t,a)=>{"use strict";let n;a.d(t,{R:()=>o,b:()=>s});var r=a(32165);let l={remote:!1,editor:null,editors:[],desktopApps:[],agents:[]};function s(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],[t,a]=(0,r.useState)(l);return(0,r.useEffect)(()=>{if(!e)return;null!=n||(n=fetch("/api/open").then(e=>e.json()).catch(()=>l));let t=!0;return n.then(e=>{t&&a(e)}),()=>{t=!1}},[e]),t}let i={cursor:"cursor",code:"vscode",windsurf:"windsurf",zed:"zed"};function o(e,t,a,n){let r=i[null!=e?e:"code"];if(!r)return null;let l=encodeURI("".concat(t.replace(/\/$/,""),"/").concat(a)).replace(/#/g,"%23").replace(/\?/g,"%3F");return"".concat(r,"://file").concat(l.startsWith("/")?"":"/").concat(l,":").concat(n)}},26548:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},30953:(e,t,a)=>{"use strict";function n(e){return(null!=e?e:"").toLowerCase().normalize("NFD").replace(RegExp("\\p{Diacritic}","gu"),"")}a.d(t,{A:()=>n})},41268:(e,t,a)=>{"use strict";a.d(t,{SearchProvider:()=>c,S:()=>o});var n=a(38657),r=a(10354),l=a(32165);function s(e,t){var a;return"/"!==e?"":null!=(a=("string"==typeof t?new URLSearchParams(t):t).get("q"))?a:""}let i=(0,l.createContext)({query:"",setQuery:()=>{}});function o(){return(0,l.useContext)(i)}function c(e){let{children:t}=e,a=(0,r.usePathname)(),o=(0,r.useSearchParams)(),[c,u]=(0,l.useState)(()=>s(a,o));(0,l.useEffect)(()=>{u(s(a,o))},[a,o]);let d=(0,l.useMemo)(()=>({query:c,setQuery:u}),[c]);return(0,n.jsx)(i.Provider,{value:d,children:t})}},52302:(e,t,a)=>{"use strict";a.d(t,{r:()=>r});var n=a(32165);function r(e,t){(0,n.useEffect)(()=>{if(!t)return;let a=document.activeElement,n=t=>{if("Tab"!==t.key)return;let a=e.current;if(!a)return;let n=[...a.querySelectorAll('a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])')].filter(e=>e.tabIndex>=0&&e.getClientRects().length>0);if(0===n.length)return void t.preventDefault();let r=n[0],l=n[n.length-1],s=document.activeElement,i=!a.contains(s);(t.shiftKey?s===r||i:s===l||i)&&(t.preventDefault(),(t.shiftKey?l:r).focus())};return window.addEventListener("keydown",n,!0),()=>{var e;window.removeEventListener("keydown",n,!0),null==a||null==(e=a.focus)||e.call(a)}},[e,t])}},54434:(e,t,a)=>{"use strict";a.d(t,{AppShell:()=>E});var n=a(38657),r=a(3953),l=a.n(r),s=a(10354),i=a(32165),o=a(3043),c=a(2575),u=a(67112),d=a(9144),h=a(13e3),p=a(52302),f=a(30953);let m=[{href:"/",label:"nav.projects",icon:o.ENP},{href:"/bridge",label:"dest.bridge",icon:o.YT$},{href:"/spend",label:"nav.spend",icon:o.dNM},{href:"/unsaved",label:"dest.unsaved",icon:o.YUE},{href:"/disk",label:"dest.disk",icon:o.o7e},{href:"/search",label:"dest.searchCode",icon:o.JJh},{href:"/credentials",label:"dest.credentials",icon:o.JPZ},{href:"/agents",label:"dest.agents",icon:o.gj5},{href:"/twin",label:"dest.twin",icon:o.YL0},{href:"/twin/look",label:"dest.look",icon:o.bZk},{href:"/ai",label:"dest.ai",icon:o.K8V},{href:"/packages",label:"nav.packages",icon:o.XVA},{href:"/apps",label:"apps.title",icon:o.UW0},{href:"/runs",label:"nav.activity",icon:o.G7A},{href:"/copies",label:"nav.copies",icon:o.Zs_},{href:"/hidden",label:"dest.hidden",icon:o.B3U}];function b(){let e=(0,s.useRouter)(),t=(0,d.kj)(),[a,r]=(0,i.useState)(!1),[l,c]=(0,i.useState)(""),[b,j]=(0,i.useState)(null),[x,y]=(0,i.useState)(0),[w,k]=(0,i.useState)(null),E=(0,i.useRef)(null),N=(0,i.useRef)(null),P=(0,i.useRef)(null);(0,i.useEffect)(()=>{a&&!b&&fetch("/api/catalog").then(e=>e.json()).then(e=>j(e.projects)).catch(()=>j([]))},[a,b]),(0,i.useEffect)(()=>{function e(e){if((e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()){e.preventDefault(),r(e=>!e);return}"Escape"===e.key&&r(!1)}window.addEventListener("keydown",e);let t=()=>r(!0);return window.addEventListener("panoma:palette",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("panoma:palette",t)}},[]),(0,i.useEffect)(()=>{a&&(c(""),y(0),k(null),requestAnimationFrame(()=>{var e;return null==(e=E.current)?void 0:e.focus()}))},[a]);let{remote:S}=(0,h.b)(a),C=(0,i.useCallback)(async(e,a)=>{k(t("palette.opening",{name:e.name}));try{var n;let l=await fetch("/api/open",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.id,tool:a})}),s=await l.json();k(l.ok?null:null!=(n=s.error)?n:t("palette.openFailed")),l.ok&&r(!1)}catch(e){k(t("palette.unreachable"))}},[t]),O=(0,i.useCallback)(t=>{r(!1),e.push(t)},[e]),_=(0,i.useMemo)(()=>{let e=(0,f.A)(l.trim()),t=(null!=b?b:[]).filter(t=>{var a,n,r;return!e||(a=t,n=e,(0,f.A)([a.name,a.root,null!=(r=a.language)?r:""].join(" ")).includes(n))});return e&&t.sort((t,a)=>v(a.name,e)-v(t.name,e)),t.slice(0,8)},[b,l]),[L,A]=(0,i.useState)(0);(0,i.useEffect)(()=>{x<_.length&&A(x)},[x,_.length]);let R=_[Math.min(L,_.length-1)],D=(0,i.useMemo)(()=>{let e=(0,f.A)(l.trim()),a=_.map(e=>({key:"p:".concat(e.id),label:e.name,hint:g(e.root),enter:t(S?"palette.enterCard":"palette.enterEditor"),icon:S?o.wl$:o.KQe,group:"palette.groupProjects",run:()=>S?O("/p/".concat(e.slug)):C(e,"editor")}));for(let n of(R&&(S||(a.push({key:"folder:".concat(R.id),label:t("palette.openFolderOf",{name:R.name}),hint:g(R.root),icon:o.gBk,group:"palette.groupActions",run:()=>C(R,"folder")}),a.push({key:"terminal:".concat(R.id),label:t("palette.openTerminalOf",{name:R.name}),hint:g(R.root),icon:o.Jhl,group:"palette.groupActions",run:()=>C(R,"terminal")})),a.push({key:"card:".concat(R.id),label:t("palette.openCardOf",{name:R.name}),icon:o.wl$,group:"palette.groupActions",run:()=>O("/p/".concat(R.slug))})),e.length>=2&&a.push({key:"search-code",label:t("palette.searchEverywhere",{query:l.trim()}),icon:o.JJh,group:"palette.groupActions",run:()=>O("/search?q=".concat(encodeURIComponent(l.trim())))}),m))(!e||(0,f.A)(t(n.label)).includes(e))&&a.push({key:"go:".concat(n.href),label:t(n.label),icon:n.icon,group:"palette.groupGoTo",run:()=>O(n.href)});return a},[O,_,C,l,S,t,R]);(0,i.useEffect)(()=>{y(e=>Math.min(e,Math.max(0,D.length-1)))},[D.length]);let J=null!==b&&D.length>0;if((0,p.r)(P,a),(0,i.useEffect)(()=>{var e;if(!a)return;let t=null==(e=N.current)?void 0:e.querySelector('[aria-selected="true"]');null==t||t.scrollIntoView({block:"nearest",behavior:"instant"})},[x,a,D.length]),!a)return null;let M="";return(0,u.createPortal)((0,n.jsx)("div",{className:"palette-backdrop",role:"presentation",onClick:e=>{e.target===e.currentTarget&&r(!1)},children:(0,n.jsxs)("div",{className:"palette",role:"dialog","aria-modal":"true","aria-label":t("palette.aria"),ref:P,children:[(0,n.jsxs)("div",{className:"palette__search",children:[(0,n.jsx)(o.JJh,{"aria-hidden":!0}),(0,n.jsx)("input",{ref:E,value:l,onChange:e=>{c(e.target.value),y(0)},onKeyDown:function(e){if(null!==b){if("ArrowDown"===e.key)e.preventDefault(),y(e=>(e+1)%Math.max(1,D.length));else if("ArrowUp"===e.key)e.preventDefault(),y(e=>(e-1+D.length)%Math.max(1,D.length));else if("Enter"===e.key){var t;e.preventDefault(),null==(t=D[x])||t.run()}}},placeholder:t("palette.placeholder"),"aria-label":t("palette.searchAria"),role:"combobox","aria-autocomplete":"list","aria-expanded":J,"aria-controls":"palette-results","aria-activedescendant":J?"palette-option-".concat(x):void 0}),(0,n.jsx)("kbd",{children:"esc"})]}),(0,n.jsx)("p",{className:"sr-only",role:"status",children:null===b?t("palette.loading"):t("palette.results",{n:D.length})}),null===b?(0,n.jsx)("p",{className:"palette__empty",children:t("palette.loading")}):0===D.length?(0,n.jsx)("p",{className:"palette__empty",children:t("palette.noMatch",{query:l})}):(0,n.jsx)("ul",{className:"palette__list",id:"palette-results",ref:N,role:"listbox","aria-label":t("palette.aria"),children:D.map((e,a)=>{let r=e.icon,l=e.group!==M?e.group:null;return M=e.group,(0,n.jsxs)(i.Fragment,{children:[l&&(0,n.jsx)("li",{role:"presentation","aria-hidden":!0,children:(0,n.jsx)("p",{className:"palette__group",children:t(l)})}),(0,n.jsx)("li",{role:"presentation",children:(0,n.jsxs)("button",{id:"palette-option-".concat(a),type:"button",role:"option",tabIndex:-1,"aria-selected":a===x,className:a===x?"is-active":void 0,onMouseEnter:()=>y(a),onClick:()=>void e.run(),children:[(0,n.jsx)(r,{"aria-hidden":!0}),(0,n.jsx)("span",{children:e.label}),e.hint&&(0,n.jsx)("span",{className:"palette__hint",children:e.hint}),a===x&&e.enter&&(0,n.jsx)("kbd",{className:"palette__enter",children:e.enter})]})})]},e.key)})}),w&&(0,n.jsx)("p",{className:"palette__notice",role:"status",children:w}),(0,n.jsxs)("p",{className:"palette__footer",children:[(0,n.jsx)("span",{children:t("palette.keysMove")}),(0,n.jsx)("span",{children:t("palette.keysOpen")}),(0,n.jsx)("span",{children:t("palette.keysClose")})]})]})}),document.body)}function v(e,t){let a=(0,f.A)(e);return a===t?3:a.startsWith(t)?2:+!!a.includes(t)}function g(e){let t=e.split("/");return t.length<=3?e:"…/".concat(t.slice(-2).join("/"))}var j=a(41268),x=a(1810);let y=[{href:"/",label:"nav.projects",icon:o.mUU,exact:!0},{href:"/bridge",label:"nav.bridge",icon:o.gj5,badge:"bridgePending",badgeLabel:"shell.setupLeft"},{href:"/spend",label:"nav.spend",icon:o.dNM},{href:"/runs",label:"nav.activity",icon:o.G7A,badge:"proposedRuns"},{href:"/unsaved",label:"nav.unsaved",icon:o.YUE,badge:"unsaved"},{href:"/agents",label:"nav.agents",icon:o.Jhl,groupStart:!0},{href:"/apps",label:"apps.title",icon:o.ENP},{href:"/twin",label:"nav.twin",icon:o.YL0},{href:"/ai",label:"nav.ai",icon:o.K8V},{href:"/packages",label:"nav.packages",icon:o.XVA,groupStart:!0},{href:"/search",label:"nav.searchCode",icon:o.d7T},{href:"/credentials",label:"nav.credentials",icon:o.JPZ},{href:"/copies",label:"nav.copies",icon:o.Zs_},{href:"/disk",label:"nav.disk",icon:o.J7E}];function w(e,t){return t.exact?e===t.href:e.startsWith(t.href)}let k="https://github.com/PanomaAI/panoma";function E(e){let{stats:t,ephemeral:a,notice:r}=e,u=(0,s.usePathname)(),h=(0,s.useRouter)(),p=(0,d.kj)(),f=(0,d.Ym)(),{query:m,setQuery:v}=(0,j.S)(),[g,E]=(0,i.useState)(!0),[S,C]=(0,i.useState)(!1),O=y.slice(4).some(e=>w(u,e)),_=(0,i.useRef)(null),L=(0,i.useRef)(null);function A(e){e!==f&&(document.cookie="".concat(c.CL,"=").concat(e,"; path=/; max-age=31536000; samesite=lax"),h.refresh())}return(0,x.y)(_,S,e=>{var t;C(!1),"escape"===e&&(null==(t=L.current)||t.focus())}),(0,i.useEffect)(()=>{C(!1)},[u]),(0,i.useLayoutEffect)(()=>{"hidden"===window.localStorage.getItem("panoma-shell-sidebar")&&E(!1)},[]),(0,i.useLayoutEffect)(()=>(document.documentElement.classList.toggle("sidebar-collapsed",!g),()=>document.documentElement.classList.remove("sidebar-collapsed")),[g]),(0,i.useEffect)(()=>{let e=window.requestAnimationFrame(()=>{document.documentElement.classList.add("sidebar-ready")});return()=>{window.cancelAnimationFrame(e),document.documentElement.classList.remove("sidebar-ready")}},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b,{}),(0,n.jsxs)("header",{className:"app-topbar",children:[(0,n.jsxs)("div",{className:"brand-cluster",children:[(0,n.jsx)("button",{type:"button",className:"sidebar-toggle",onClick:function(){E(e=>{let t=!e;return window.localStorage.setItem("panoma-shell-sidebar",t?"open":"hidden"),t})},"aria-expanded":g,"aria-controls":"app-sidebar","aria-label":p(g?"shell.hideSidebar":"shell.showSidebar"),title:p(g?"shell.hideSidebar":"shell.showSidebar"),children:g?(0,n.jsx)(o.Y48,{"aria-hidden":!0}):(0,n.jsx)(o.ngD,{"aria-hidden":!0})}),(0,n.jsxs)(l(),{href:"/",className:"brand-lockup","aria-label":p("shell.brandHome"),children:[(0,n.jsx)("img",{src:"/assets/brand/panoma.svg",alt:"",width:38,height:38}),(0,n.jsx)("span",{children:"Panoma"})]})]}),(0,n.jsxs)("form",{className:"global-search",role:"search",onSubmit:function(e){e.preventDefault();let t=new URLSearchParams;m.trim()&&t.set("q",m.trim()),h.push(t.size>0?"/?".concat(t.toString()):"/")},children:[(0,n.jsx)(o.JJh,{"aria-hidden":!0}),(0,n.jsx)("input",{value:m,onChange:e=>v(e.target.value),placeholder:p("shell.searchPlaceholder"),"aria-label":p("shell.searchPlaceholder")}),(0,n.jsx)("button",{type:"button",onClick:()=>window.dispatchEvent(new CustomEvent("panoma:palette")),"aria-label":p("shell.openPalette"),children:(0,n.jsx)("kbd",{children:"⌘ K"})})]}),(0,n.jsxs)("div",{className:"topbar-actions",children:[(0,n.jsxs)("div",{className:"lang-toggle",role:"group","aria-label":p("shell.language"),children:[(0,n.jsx)("button",{type:"button",onClick:()=>A("es"),className:"es"===f?"is-active":void 0,"aria-pressed":"es"===f,"aria-label":"Espa\xf1ol",lang:"es",title:"Espa\xf1ol",children:"ES"}),(0,n.jsx)("button",{type:"button",onClick:()=>A("en"),className:"en"===f?"is-active":void 0,"aria-pressed":"en"===f,"aria-label":"English",lang:"en",title:"English",children:"EN"})]}),(0,n.jsx)(N,{ephemeral:a,notice:r})]})]}),(0,n.jsxs)("aside",{ref:_,id:"app-sidebar",className:"app-sidebar","aria-label":p("shell.sections"),children:[(0,n.jsxs)("div",{className:"sidebar-scroll",children:[(0,n.jsxs)("nav",{"aria-label":p("shell.sections"),children:[y.map(e=>{var a;let r=e.icon,s=w(u,e),i=e.badge?null==t?void 0:t[e.badge]:void 0;return(0,n.jsxs)(l(),{href:e.href,className:s?"is-active":void 0,"aria-current":s?"page":void 0,"data-group-start":e.groupStart||void 0,title:g?void 0:p(e.label),children:[(0,n.jsx)(r,{"aria-hidden":!0}),(0,n.jsx)("span",{className:"nav-label",children:p(e.label)}),"number"==typeof i&&i>0&&(0,n.jsx)("span",{className:"nav-badge","aria-label":p(null!=(a=e.badgeLabel)?a:"shell.pending",{n:i}),children:i}),(0,n.jsx)(P,{})]},e.label)}),(0,n.jsxs)("button",{ref:L,type:"button",className:O?"mobile-more is-active":"mobile-more","aria-expanded":S,"aria-controls":"mobile-sections",onClick:()=>C(e=>!e),"aria-label":p("apps.moreSections"),children:[(0,n.jsx)(o.zMq,{"aria-hidden":!0}),(0,n.jsx)("span",{children:p("apps.more")})]})]}),S&&(0,n.jsxs)("div",{className:"mobile-sections",id:"mobile-sections",children:[(0,n.jsx)("p",{children:p("apps.moreSections")}),y.slice(4).map(e=>{let t=e.icon;return(0,n.jsxs)(l(),{href:e.href,"aria-current":w(u,e)?"page":void 0,onClick:()=>C(!1),children:[(0,n.jsx)(t,{"aria-hidden":!0}),(0,n.jsx)("span",{children:p(e.label)})]},e.href)})]})]}),(0,n.jsx)("div",{className:"sidebar-foot",children:(0,n.jsxs)("p",{className:"sidebar-update",children:[(0,n.jsx)("span",{children:p("shell.footerLocal")}),(0,n.jsx)("span",{children:p("shell.footerPrivate")}),(0,n.jsx)("a",{href:k,target:"_blank",rel:"noreferrer",children:p("shell.footerSource")})]})})]})]})}function N(e){let{ephemeral:t,notice:a}=e,r=(0,d.kj)(),l=(0,d.Zs)(),s=void 0===a?"shell.localAccount":"restart"===a.kind?"shell.localAccountRestart":"shell.localAccountUpdate",[c,u]=(0,i.useState)(!1),h=(0,i.useRef)(null),p=(0,i.useRef)(null);return(0,x.y)(h,c,e=>{var t;u(!1),"escape"===e&&(null==(t=p.current)||t.focus())}),(0,n.jsxs)("div",{className:"account-holder",ref:h,children:[(0,n.jsxs)("button",{ref:p,type:"button",className:"account-button","aria-expanded":c,"aria-label":r(s),title:r(s),onClick:()=>u(e=>!e),children:[(0,n.jsx)(o.vsK,{"aria-hidden":!0}),a&&(0,n.jsx)("span",{className:"account-dot","aria-hidden":!0})]}),c&&(0,n.jsxs)("div",{className:"account-card",role:"dialog","aria-label":r("shell.localAccount"),children:[(0,n.jsx)("strong",{children:r("shell.footerLocal")}),a&&(0,n.jsxs)("p",{className:"account-update",children:[(0,n.jsx)("strong",{children:"restart"===a.kind?r("shell.restartReady",{running:a.running}):r("shell.updateReady",{latest:a.latest})}),(0,n.jsx)("br",{}),"restart"===a.kind?r("shell.restartHave",{installed:a.installed}):r("shell.updateHave",{running:a.running}),(0,n.jsx)("br",{}),r("restart"===a.kind?"shell.restartHow":t?"shell.updateHowNpx":"shell.updateHowNpm",{cli:l})]}),(0,n.jsx)("p",{children:r("shell.accountNone")}),t&&(0,n.jsxs)("p",{className:"account-ephemeral",children:[(0,n.jsx)("strong",{children:r("shell.ephemeral")}),(0,n.jsx)("br",{}),r("shell.ephemeralDetail")]}),(0,n.jsx)("a",{href:k,target:"_blank",rel:"noreferrer",children:r("shell.footerSource")})]})]})}function P(){let{pending:e}=(0,r.useLinkStatus)();return e?(0,n.jsx)("span",{className:"nav-pending","aria-hidden":!0}):null}},56684:(e,t,a)=>{"use strict";a.d(t,{k5:()=>u});var n=a(32165),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},l=n.createContext&&n.createContext(r),s=["attr","size","title"];function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach(function(t){var n,r,l;n=e,r=t,l=a[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in n?Object.defineProperty(n,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[r]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function u(e){return t=>n.createElement(d,i({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,a)=>n.createElement(t.tag,c({key:a},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var a,r=e.attr,l=e.size,o=e.title,u=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;a[n]=e[n]}return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],-1===t.indexOf(a)&&({}).propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,s),d=l||t.size||"1em";return t.className&&(a=t.className),e.className&&(a=(a?a+" ":"")+e.className),n.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,u,{className:a,style:c(c({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),o&&n.createElement("title",null,o),e.children)};return void 0!==l?n.createElement(l.Consumer,null,e=>t(e)):t(r)}},66670:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,416,23)),Promise.resolve().then(a.bind(a,54434)),Promise.resolve().then(a.bind(a,9144)),Promise.resolve().then(a.bind(a,41268)),Promise.resolve().then(a.t.bind(a,26548,23))}},e=>{e.O(0,[781,9232,6587,3953,2575,1305,6823,7358],()=>e(e.s=66670)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4944],{416:()=>{},1810:(e,t,a)=>{"use strict";a.d(t,{y:()=>r});var n=a(32165);function r(e,t,a){let r=(0,n.useRef)(a);(0,n.useEffect)(()=>{r.current=a}),(0,n.useEffect)(()=>{if(!t)return;let a=t=>{var a;let n=t.target;(null==(a=e.current)||!a.contains(n))&&(n instanceof Element&&n.closest('[aria-modal="true"]')||r.current("outside"))},n=e=>{"Escape"===e.key&&r.current("escape")};return window.addEventListener("pointerdown",a),window.addEventListener("keydown",n),()=>{window.removeEventListener("pointerdown",a),window.removeEventListener("keydown",n)}},[e,t])}},9144:(e,t,a)=>{"use strict";a.d(t,{I18nProvider:()=>o,Ym:()=>c,Zs:()=>u,kj:()=>d});var n=a(38657),r=a(32165),l=a(2575);let s=(0,r.createContext)("en"),i=(0,r.createContext)("panoma");function o(e){let{locale:t,cli:a,children:r}=e;return(0,n.jsx)(s.Provider,{value:t,children:(0,n.jsx)(i.Provider,{value:a,children:r})})}function c(){return(0,r.useContext)(s)}function u(){return(0,r.useContext)(i)}function d(){let e=(0,r.useContext)(s),t=(0,r.useContext)(i);return(0,r.useCallback)((a,n)=>(0,l.t)(e,a,{cli:t,...n}),[e,t])}},10354:(e,t,a)=>{"use strict";var n=a(61990);a.o(n,"usePathname")&&a.d(t,{usePathname:function(){return n.usePathname}}),a.o(n,"useRouter")&&a.d(t,{useRouter:function(){return n.useRouter}}),a.o(n,"useSearchParams")&&a.d(t,{useSearchParams:function(){return n.useSearchParams}})},13e3:(e,t,a)=>{"use strict";let n;a.d(t,{R:()=>o,b:()=>s});var r=a(32165);let l={remote:!1,editor:null,editors:[],desktopApps:[],agents:[]};function s(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],[t,a]=(0,r.useState)(l);return(0,r.useEffect)(()=>{if(!e)return;null!=n||(n=fetch("/api/open").then(e=>e.json()).catch(()=>l));let t=!0;return n.then(e=>{t&&a(e)}),()=>{t=!1}},[e]),t}let i={cursor:"cursor",code:"vscode",windsurf:"windsurf",zed:"zed"};function o(e,t,a,n){let r=i[null!=e?e:"code"];if(!r)return null;let l=encodeURI("".concat(t.replace(/\/$/,""),"/").concat(a)).replace(/#/g,"%23").replace(/\?/g,"%3F");return"".concat(r,"://file").concat(l.startsWith("/")?"":"/").concat(l,":").concat(n)}},26548:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},30953:(e,t,a)=>{"use strict";function n(e){return(null!=e?e:"").toLowerCase().normalize("NFD").replace(RegExp("\\p{Diacritic}","gu"),"")}a.d(t,{A:()=>n})},41268:(e,t,a)=>{"use strict";a.d(t,{SearchProvider:()=>c,S:()=>o});var n=a(38657),r=a(10354),l=a(32165);function s(e,t){var a;return"/"!==e?"":null!=(a=("string"==typeof t?new URLSearchParams(t):t).get("q"))?a:""}let i=(0,l.createContext)({query:"",setQuery:()=>{}});function o(){return(0,l.useContext)(i)}function c(e){let{children:t}=e,a=(0,r.usePathname)(),o=(0,r.useSearchParams)(),[c,u]=(0,l.useState)(()=>s(a,o));(0,l.useEffect)(()=>{u(s(a,o))},[a,o]);let d=(0,l.useMemo)(()=>({query:c,setQuery:u}),[c]);return(0,n.jsx)(i.Provider,{value:d,children:t})}},52302:(e,t,a)=>{"use strict";a.d(t,{r:()=>r});var n=a(32165);function r(e,t){(0,n.useEffect)(()=>{if(!t)return;let a=document.activeElement,n=t=>{if("Tab"!==t.key)return;let a=e.current;if(!a)return;let n=[...a.querySelectorAll('a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])')].filter(e=>e.tabIndex>=0&&e.getClientRects().length>0);if(0===n.length)return void t.preventDefault();let r=n[0],l=n[n.length-1],s=document.activeElement,i=!a.contains(s);(t.shiftKey?s===r||i:s===l||i)&&(t.preventDefault(),(t.shiftKey?l:r).focus())};return window.addEventListener("keydown",n,!0),()=>{var e;window.removeEventListener("keydown",n,!0),null==a||null==(e=a.focus)||e.call(a)}},[e,t])}},54434:(e,t,a)=>{"use strict";a.d(t,{AppShell:()=>E});var n=a(38657),r=a(3953),l=a.n(r),s=a(10354),i=a(32165),o=a(3043),c=a(2575),u=a(67112),d=a(9144),h=a(13e3),p=a(52302),f=a(30953);let m=[{href:"/",label:"nav.projects",icon:o.ENP},{href:"/bridge",label:"dest.bridge",icon:o.YT$},{href:"/spend",label:"nav.spend",icon:o.dNM},{href:"/unsaved",label:"dest.unsaved",icon:o.YUE},{href:"/disk",label:"dest.disk",icon:o.o7e},{href:"/search",label:"dest.searchCode",icon:o.JJh},{href:"/credentials",label:"dest.credentials",icon:o.JPZ},{href:"/agents",label:"dest.agents",icon:o.gj5},{href:"/twin",label:"dest.twin",icon:o.YL0},{href:"/twin/look",label:"dest.look",icon:o.bZk},{href:"/ai",label:"dest.ai",icon:o.K8V},{href:"/packages",label:"nav.packages",icon:o.XVA},{href:"/apps",label:"apps.title",icon:o.UW0},{href:"/runs",label:"nav.activity",icon:o.G7A},{href:"/copies",label:"nav.copies",icon:o.Zs_},{href:"/hidden",label:"dest.hidden",icon:o.B3U}];function b(){let e=(0,s.useRouter)(),t=(0,d.kj)(),[a,r]=(0,i.useState)(!1),[l,c]=(0,i.useState)(""),[b,j]=(0,i.useState)(null),[x,y]=(0,i.useState)(0),[w,k]=(0,i.useState)(null),E=(0,i.useRef)(null),N=(0,i.useRef)(null),P=(0,i.useRef)(null);(0,i.useEffect)(()=>{a&&!b&&fetch("/api/catalog").then(e=>e.json()).then(e=>j(e.projects)).catch(()=>j([]))},[a,b]),(0,i.useEffect)(()=>{function e(e){if((e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()){e.preventDefault(),r(e=>!e);return}"Escape"===e.key&&r(!1)}window.addEventListener("keydown",e);let t=()=>r(!0);return window.addEventListener("panoma:palette",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("panoma:palette",t)}},[]),(0,i.useEffect)(()=>{a&&(c(""),y(0),k(null),requestAnimationFrame(()=>{var e;return null==(e=E.current)?void 0:e.focus()}))},[a]);let{remote:S}=(0,h.b)(a),C=(0,i.useCallback)(async(e,a)=>{k(t("palette.opening",{name:e.name}));try{var n;let l=await fetch("/api/open",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.id,tool:a})}),s=await l.json();k(l.ok?null:null!=(n=s.error)?n:t("palette.openFailed")),l.ok&&r(!1)}catch(e){k(t("palette.unreachable"))}},[t]),O=(0,i.useCallback)(t=>{r(!1),e.push(t)},[e]),_=(0,i.useMemo)(()=>{let e=(0,f.A)(l.trim()),t=(null!=b?b:[]).filter(t=>{var a,n,r;return!e||(a=t,n=e,(0,f.A)([a.name,a.root,null!=(r=a.language)?r:""].join(" ")).includes(n))});return e&&t.sort((t,a)=>v(a.name,e)-v(t.name,e)),t.slice(0,8)},[b,l]),[L,A]=(0,i.useState)(0);(0,i.useEffect)(()=>{x<_.length&&A(x)},[x,_.length]);let R=_[Math.min(L,_.length-1)],D=(0,i.useMemo)(()=>{let e=(0,f.A)(l.trim()),a=_.map(e=>({key:"p:".concat(e.id),label:e.name,hint:g(e.root),enter:t(S?"palette.enterCard":"palette.enterEditor"),icon:S?o.wl$:o.KQe,group:"palette.groupProjects",run:()=>S?O("/p/".concat(e.slug)):C(e,"editor")}));for(let n of(R&&(S||(a.push({key:"folder:".concat(R.id),label:t("palette.openFolderOf",{name:R.name}),hint:g(R.root),icon:o.gBk,group:"palette.groupActions",run:()=>C(R,"folder")}),a.push({key:"terminal:".concat(R.id),label:t("palette.openTerminalOf",{name:R.name}),hint:g(R.root),icon:o.Jhl,group:"palette.groupActions",run:()=>C(R,"terminal")})),a.push({key:"card:".concat(R.id),label:t("palette.openCardOf",{name:R.name}),icon:o.wl$,group:"palette.groupActions",run:()=>O("/p/".concat(R.slug))})),e.length>=2&&a.push({key:"search-code",label:t("palette.searchEverywhere",{query:l.trim()}),icon:o.JJh,group:"palette.groupActions",run:()=>O("/search?q=".concat(encodeURIComponent(l.trim())))}),m))(!e||(0,f.A)(t(n.label)).includes(e))&&a.push({key:"go:".concat(n.href),label:t(n.label),icon:n.icon,group:"palette.groupGoTo",run:()=>O(n.href)});return a},[O,_,C,l,S,t,R]);(0,i.useEffect)(()=>{y(e=>Math.min(e,Math.max(0,D.length-1)))},[D.length]);let J=null!==b&&D.length>0;if((0,p.r)(P,a),(0,i.useEffect)(()=>{var e;if(!a)return;let t=null==(e=N.current)?void 0:e.querySelector('[aria-selected="true"]');null==t||t.scrollIntoView({block:"nearest",behavior:"instant"})},[x,a,D.length]),!a)return null;let M="";return(0,u.createPortal)((0,n.jsx)("div",{className:"palette-backdrop",role:"presentation",onClick:e=>{e.target===e.currentTarget&&r(!1)},children:(0,n.jsxs)("div",{className:"palette",role:"dialog","aria-modal":"true","aria-label":t("palette.aria"),ref:P,children:[(0,n.jsxs)("div",{className:"palette__search",children:[(0,n.jsx)(o.JJh,{"aria-hidden":!0}),(0,n.jsx)("input",{ref:E,value:l,onChange:e=>{c(e.target.value),y(0)},onKeyDown:function(e){if(null!==b){if("ArrowDown"===e.key)e.preventDefault(),y(e=>(e+1)%Math.max(1,D.length));else if("ArrowUp"===e.key)e.preventDefault(),y(e=>(e-1+D.length)%Math.max(1,D.length));else if("Enter"===e.key){var t;e.preventDefault(),null==(t=D[x])||t.run()}}},placeholder:t("palette.placeholder"),"aria-label":t("palette.searchAria"),role:"combobox","aria-autocomplete":"list","aria-expanded":J,"aria-controls":"palette-results","aria-activedescendant":J?"palette-option-".concat(x):void 0}),(0,n.jsx)("kbd",{children:"esc"})]}),(0,n.jsx)("p",{className:"sr-only",role:"status",children:null===b?t("palette.loading"):t("palette.results",{n:D.length})}),null===b?(0,n.jsx)("p",{className:"palette__empty",children:t("palette.loading")}):0===D.length?(0,n.jsx)("p",{className:"palette__empty",children:t("palette.noMatch",{query:l})}):(0,n.jsx)("ul",{className:"palette__list",id:"palette-results",ref:N,role:"listbox","aria-label":t("palette.aria"),children:D.map((e,a)=>{let r=e.icon,l=e.group!==M?e.group:null;return M=e.group,(0,n.jsxs)(i.Fragment,{children:[l&&(0,n.jsx)("li",{role:"presentation","aria-hidden":!0,children:(0,n.jsx)("p",{className:"palette__group",children:t(l)})}),(0,n.jsx)("li",{role:"presentation",children:(0,n.jsxs)("button",{id:"palette-option-".concat(a),type:"button",role:"option",tabIndex:-1,"aria-selected":a===x,className:a===x?"is-active":void 0,onMouseEnter:()=>y(a),onClick:()=>void e.run(),children:[(0,n.jsx)(r,{"aria-hidden":!0}),(0,n.jsx)("span",{children:e.label}),e.hint&&(0,n.jsx)("span",{className:"palette__hint",children:e.hint}),a===x&&e.enter&&(0,n.jsx)("kbd",{className:"palette__enter",children:e.enter})]})})]},e.key)})}),w&&(0,n.jsx)("p",{className:"palette__notice",role:"status",children:w}),(0,n.jsxs)("p",{className:"palette__footer",children:[(0,n.jsx)("span",{children:t("palette.keysMove")}),(0,n.jsx)("span",{children:t("palette.keysOpen")}),(0,n.jsx)("span",{children:t("palette.keysClose")})]})]})}),document.body)}function v(e,t){let a=(0,f.A)(e);return a===t?3:a.startsWith(t)?2:+!!a.includes(t)}function g(e){let t=e.split("/");return t.length<=3?e:"…/".concat(t.slice(-2).join("/"))}var j=a(41268),x=a(1810);let y=[{href:"/",label:"nav.projects",icon:o.mUU,exact:!0},{href:"/bridge",label:"nav.bridge",icon:o.gj5,badge:"bridgePending",badgeLabel:"shell.setupLeft"},{href:"/spend",label:"nav.spend",icon:o.dNM},{href:"/runs",label:"nav.activity",icon:o.G7A,badge:"proposedRuns"},{href:"/unsaved",label:"nav.unsaved",icon:o.YUE,badge:"unsaved"},{href:"/agents",label:"nav.agents",icon:o.Jhl,groupStart:!0},{href:"/apps",label:"apps.title",icon:o.ENP},{href:"/twin",label:"nav.twin",icon:o.YL0},{href:"/ai",label:"nav.ai",icon:o.K8V},{href:"/packages",label:"nav.packages",icon:o.XVA,groupStart:!0},{href:"/search",label:"nav.searchCode",icon:o.d7T},{href:"/credentials",label:"nav.credentials",icon:o.JPZ},{href:"/copies",label:"nav.copies",icon:o.Zs_},{href:"/disk",label:"nav.disk",icon:o.J7E}];function w(e,t){return t.exact?e===t.href:e.startsWith(t.href)}let k="https://github.com/PanomaAI/panoma";function E(e){let{stats:t,ephemeral:a,notice:r,version:u}=e,h=(0,s.usePathname)(),p=(0,s.useRouter)(),f=(0,d.kj)(),m=(0,d.Ym)(),{query:v,setQuery:g}=(0,j.S)(),[E,S]=(0,i.useState)(!0),[C,O]=(0,i.useState)(!1),_=y.slice(4).some(e=>w(h,e)),L=(0,i.useRef)(null),A=(0,i.useRef)(null);function R(e){e!==m&&(document.cookie="".concat(c.CL,"=").concat(e,"; path=/; max-age=31536000; samesite=lax"),p.refresh())}return(0,x.y)(L,C,e=>{var t;O(!1),"escape"===e&&(null==(t=A.current)||t.focus())}),(0,i.useEffect)(()=>{O(!1)},[h]),(0,i.useLayoutEffect)(()=>{"hidden"===window.localStorage.getItem("panoma-shell-sidebar")&&S(!1)},[]),(0,i.useLayoutEffect)(()=>(document.documentElement.classList.toggle("sidebar-collapsed",!E),()=>document.documentElement.classList.remove("sidebar-collapsed")),[E]),(0,i.useEffect)(()=>{let e=window.requestAnimationFrame(()=>{document.documentElement.classList.add("sidebar-ready")});return()=>{window.cancelAnimationFrame(e),document.documentElement.classList.remove("sidebar-ready")}},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b,{}),(0,n.jsxs)("header",{className:"app-topbar",children:[(0,n.jsxs)("div",{className:"brand-cluster",children:[(0,n.jsx)("button",{type:"button",className:"sidebar-toggle",onClick:function(){S(e=>{let t=!e;return window.localStorage.setItem("panoma-shell-sidebar",t?"open":"hidden"),t})},"aria-expanded":E,"aria-controls":"app-sidebar","aria-label":f(E?"shell.hideSidebar":"shell.showSidebar"),title:f(E?"shell.hideSidebar":"shell.showSidebar"),children:E?(0,n.jsx)(o.Y48,{"aria-hidden":!0}):(0,n.jsx)(o.ngD,{"aria-hidden":!0})}),(0,n.jsxs)(l(),{href:"/",className:"brand-lockup","aria-label":f("shell.brandHome"),children:[(0,n.jsx)("img",{src:"/assets/brand/panoma.svg",alt:"",width:38,height:38}),(0,n.jsx)("span",{children:"Panoma"})]})]}),(0,n.jsxs)("form",{className:"global-search",role:"search",onSubmit:function(e){e.preventDefault();let t=new URLSearchParams;v.trim()&&t.set("q",v.trim()),p.push(t.size>0?"/?".concat(t.toString()):"/")},children:[(0,n.jsx)(o.JJh,{"aria-hidden":!0}),(0,n.jsx)("input",{value:v,onChange:e=>g(e.target.value),placeholder:f("shell.searchPlaceholder"),"aria-label":f("shell.searchPlaceholder")}),(0,n.jsx)("button",{type:"button",onClick:()=>window.dispatchEvent(new CustomEvent("panoma:palette")),"aria-label":f("shell.openPalette"),children:(0,n.jsx)("kbd",{children:"⌘ K"})})]}),(0,n.jsxs)("div",{className:"topbar-actions",children:[(0,n.jsxs)("div",{className:"lang-toggle",role:"group","aria-label":f("shell.language"),children:[(0,n.jsx)("button",{type:"button",onClick:()=>R("es"),className:"es"===m?"is-active":void 0,"aria-pressed":"es"===m,"aria-label":"Espa\xf1ol",lang:"es",title:"Espa\xf1ol",children:"ES"}),(0,n.jsx)("button",{type:"button",onClick:()=>R("en"),className:"en"===m?"is-active":void 0,"aria-pressed":"en"===m,"aria-label":"English",lang:"en",title:"English",children:"EN"})]}),(0,n.jsx)(N,{ephemeral:a,notice:r,version:u})]})]}),(0,n.jsxs)("aside",{ref:L,id:"app-sidebar",className:"app-sidebar","aria-label":f("shell.sections"),children:[(0,n.jsxs)("div",{className:"sidebar-scroll",children:[(0,n.jsxs)("nav",{"aria-label":f("shell.sections"),children:[y.map(e=>{var a;let r=e.icon,s=w(h,e),i=e.badge?null==t?void 0:t[e.badge]:void 0;return(0,n.jsxs)(l(),{href:e.href,className:s?"is-active":void 0,"aria-current":s?"page":void 0,"data-group-start":e.groupStart||void 0,title:E?void 0:f(e.label),children:[(0,n.jsx)(r,{"aria-hidden":!0}),(0,n.jsx)("span",{className:"nav-label",children:f(e.label)}),"number"==typeof i&&i>0&&(0,n.jsx)("span",{className:"nav-badge","aria-label":f(null!=(a=e.badgeLabel)?a:"shell.pending",{n:i}),children:i}),(0,n.jsx)(P,{})]},e.label)}),(0,n.jsxs)("button",{ref:A,type:"button",className:_?"mobile-more is-active":"mobile-more","aria-expanded":C,"aria-controls":"mobile-sections",onClick:()=>O(e=>!e),"aria-label":f("apps.moreSections"),children:[(0,n.jsx)(o.zMq,{"aria-hidden":!0}),(0,n.jsx)("span",{children:f("apps.more")})]})]}),C&&(0,n.jsxs)("div",{className:"mobile-sections",id:"mobile-sections",children:[(0,n.jsx)("p",{children:f("apps.moreSections")}),y.slice(4).map(e=>{let t=e.icon;return(0,n.jsxs)(l(),{href:e.href,"aria-current":w(h,e)?"page":void 0,onClick:()=>O(!1),children:[(0,n.jsx)(t,{"aria-hidden":!0}),(0,n.jsx)("span",{children:f(e.label)})]},e.href)})]})]}),(0,n.jsx)("div",{className:"sidebar-foot",children:(0,n.jsxs)("p",{className:"sidebar-update",children:[u&&(0,n.jsx)("span",{children:f("shell.version",{version:u})}),(0,n.jsx)("span",{children:f("shell.footerLocal")}),(0,n.jsx)("span",{children:f("shell.footerPrivate")}),(0,n.jsx)("a",{href:k,target:"_blank",rel:"noreferrer",children:f("shell.footerSource")})]})})]})]})}function N(e){let{ephemeral:t,notice:a,version:r}=e,l=(0,d.kj)(),s=(0,d.Zs)(),c=void 0===a?"shell.localAccount":"restart"===a.kind?"shell.localAccountRestart":"shell.localAccountUpdate",[u,h]=(0,i.useState)(!1),p=(0,i.useRef)(null),f=(0,i.useRef)(null);return(0,x.y)(p,u,e=>{var t;h(!1),"escape"===e&&(null==(t=f.current)||t.focus())}),(0,n.jsxs)("div",{className:"account-holder",ref:p,children:[(0,n.jsxs)("button",{ref:f,type:"button",className:"account-button","aria-expanded":u,"aria-label":l(c),title:l(c),onClick:()=>h(e=>!e),children:[(0,n.jsx)(o.vsK,{"aria-hidden":!0}),a&&(0,n.jsx)("span",{className:"account-dot","aria-hidden":!0})]}),u&&(0,n.jsxs)("div",{className:"account-card",role:"dialog","aria-label":l("shell.localAccount"),children:[(0,n.jsx)("strong",{children:l("shell.footerLocal")}),r&&(0,n.jsx)("p",{children:l("shell.version",{version:r})}),a&&(0,n.jsxs)("p",{className:"account-update",children:[(0,n.jsx)("strong",{children:"restart"===a.kind?l("shell.restartReady",{running:a.running}):l("shell.updateReady",{latest:a.latest})}),(0,n.jsx)("br",{}),"restart"===a.kind?l("shell.restartHave",{installed:a.installed}):l("shell.updateHave",{running:a.running}),(0,n.jsx)("br",{}),l("restart"===a.kind?"shell.restartHow":t?"shell.updateHowNpx":"shell.updateHowNpm",{cli:s})]}),(0,n.jsx)("p",{children:l("shell.accountNone")}),t&&(0,n.jsxs)("p",{className:"account-ephemeral",children:[(0,n.jsx)("strong",{children:l("shell.ephemeral")}),(0,n.jsx)("br",{}),l("shell.ephemeralDetail")]}),(0,n.jsx)("a",{href:k,target:"_blank",rel:"noreferrer",children:l("shell.footerSource")})]})]})}function P(){let{pending:e}=(0,r.useLinkStatus)();return e?(0,n.jsx)("span",{className:"nav-pending","aria-hidden":!0}):null}},56684:(e,t,a)=>{"use strict";a.d(t,{k5:()=>u});var n=a(32165),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},l=n.createContext&&n.createContext(r),s=["attr","size","title"];function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach(function(t){var n,r,l;n=e,r=t,l=a[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in n?Object.defineProperty(n,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[r]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function u(e){return t=>n.createElement(d,i({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,a)=>n.createElement(t.tag,c({key:a},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var a,r=e.attr,l=e.size,o=e.title,u=function(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;a[n]=e[n]}return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],-1===t.indexOf(a)&&({}).propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,s),d=l||t.size||"1em";return t.className&&(a=t.className),e.className&&(a=(a?a+" ":"")+e.className),n.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,u,{className:a,style:c(c({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),o&&n.createElement("title",null,o),e.children)};return void 0!==l?n.createElement(l.Consumer,null,e=>t(e)):t(r)}},66670:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,416,23)),Promise.resolve().then(a.bind(a,54434)),Promise.resolve().then(a.bind(a,9144)),Promise.resolve().then(a.bind(a,41268)),Promise.resolve().then(a.t.bind(a,26548,23))}},e=>{e.O(0,[781,9232,6587,3953,2575,1305,6823,7358],()=>e(e.s=66670)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1080],{4737:(e,s,t)=>{"use strict";t.d(s,{VideoProduction:()=>I});var a=t(38657),l=t(3953),n=t.n(l),o=t(32165),i=t(3043),r=t(9144),d=t(57776),c=t(76982),p=t(72340),m=t(97234);let u=Object.fromEntries(m.t3.map(e=>[e.value,e.ratio])),x={es:"Espa\xf1ol",en:"English"},b="mt-2 block w-full rounded border border-edge bg-surface p-2",j="rounded-xl border border-edge p-5";function h(e){let{width:s,height:t}=e,l=s>=t?22:Math.round(22*s/t),n=t>=s?22:Math.round(22*t/s);return(0,a.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"size-6 shrink-0",children:(0,a.jsx)("rect",{x:(24-l)/2,y:(24-n)/2,width:l,height:n,rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})})}function v(e){let{value:s,onChange:t,label:l,disabled:n=!1}=e,i=(0,r.kj)(),d=(0,o.useId)();return(0,a.jsxs)("fieldset",{className:"min-w-0 text-sm",disabled:n,children:[(0,a.jsx)("legend",{children:l}),(0,a.jsx)("div",{className:"mt-2 grid grid-cols-3 gap-2",children:m.t3.map(e=>{let l=s===e.value;return(0,a.jsxs)("label",{className:"flex cursor-pointer flex-col items-center gap-1 rounded border px-2 py-2 text-center has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2 has-[:focus-visible]:outline-accent ".concat(l?"border-accent bg-raised text-chalk":"border-edge text-smoke hover:border-edge-bright"),title:i("apps.jobs.formatFor".concat(e.value.toUpperCase())),children:[(0,a.jsx)("input",{type:"radio",name:d,value:e.value,checked:l,onChange:()=>t(e.value),className:"sr-only"}),(0,a.jsx)(h,{width:e.width,height:e.height}),(0,a.jsx)("span",{className:"text-xs font-semibold",children:i(e.key)}),(0,a.jsx)("span",{className:"font-mono text-[10px] text-faint",children:e.ratio}),(0,a.jsx)("span",{className:"sr-only",children:i("apps.jobs.formatFor".concat(e.value.toUpperCase()))})]},e.value)})})]})}function f(e){var s,t,l,o,i;let{t:r,app:d,identity:u,slug:x,credential:b}=e,h=(0,m.CG)(d),v=e=>{let s=h.find(s=>s.id===e);return(null==s?void 0:s.present)===!0?{tone:"live",text:r("apps.present")}:(null==s?void 0:s.present)===!1?{tone:"idle",text:r("apps.missing")}:{tone:"neutral",text:r("apps.unchecked")}},f=null!=(o=null==(s=d.settings)?void 0:s.brain)?o:"none",g="none"===f?r("apps.none"):"auto"===f?r("apps.auto"):null!=(i=null==(t=c.n.find(e=>e.value===f))?void 0:t.label)?i:f,N=!!(null==(l=d.settings)?void 0:l.voice),k=N&&null!==b&&!b.configured,y=N?k?{tone:"idle",text:"".concat(r("apps.jobs.voiceOn")," \xb7 ").concat(r("apps.key.missing"))}:{tone:"live",text:(null==b?void 0:b.configured)?"".concat(r("apps.jobs.voiceOn")," \xb7 ").concat(r("apps.key.configured")):r("apps.jobs.voiceOn")}:{tone:"neutral",text:r("apps.jobs.voiceOff")},w=[{label:r("apps.jobs.beforeApp"),tone:d.version?"live":"idle",text:d.version?"panoma video ".concat(d.version):r("apps.status.absent")},{label:r("apps.browser"),...v("browser")},{label:r("apps.ffmpeg"),...v("ffmpeg")},{label:r("apps.jobs.beforeBrain"),tone:"none"===f?"neutral":"live",text:g},{label:r("apps.jobs.beforeVoice"),...y},{label:r("apps.jobs.beforeProject"),tone:u?"live":"idle",text:u?x:r("apps.jobs.noIdentity")}],C=!!(d.ready&&!1!==d.enabled&&u&&!k);return(0,a.jsxs)("section",{className:"mt-5 ".concat(j),"aria-labelledby":"video-preflight-title",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,a.jsx)("h2",{id:"video-preflight-title",className:"font-display text-xl font-semibold",children:r("apps.jobs.beforeTitle")}),(0,a.jsx)(p.vw,{size:"md",tone:C?"live":"idle",children:r(C?"apps.jobs.beforeReady":"apps.jobs.beforeNotReady")})]}),(0,a.jsx)("p",{className:"mt-2 text-sm text-smoke",children:r("apps.jobs.beforeIntro")}),(0,a.jsx)("dl",{className:"mt-4 grid gap-x-6 gap-y-2 text-sm sm:grid-cols-2",children:w.map(e=>(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 border-t border-edge pt-2",children:[(0,a.jsx)("dt",{className:"text-smoke",children:e.label}),(0,a.jsx)("dd",{children:(0,a.jsx)(p.vw,{size:"md",tone:e.tone,children:e.text})})]},e.label))}),(0,a.jsx)(n(),{className:"mt-4 inline-block text-sm underline underline-offset-4",href:"/apps/panoma-video?project=".concat(encodeURIComponent(x)),children:r("apps.jobs.changeInApp")})]})}function g(e){let{value:s,tracks:t,onChange:l,label:n}=e;return(0,a.jsxs)("label",{className:"text-sm",children:[n,(0,a.jsx)("select",{className:b,value:s,onChange:e=>l(e.target.value),children:t.map(e=>(0,a.jsx)("option",{value:e,children:x[e]},e))})]})}function N(e){let{t:s,locked:t,onStart:l}=e,n=(0,r.Ym)(),[i,d]=(0,o.useState)("promo"),[c,p]=(0,o.useState)("v"),[m,u]=(0,o.useState)(n);return(0,a.jsxs)("form",{className:"mt-7 ".concat(j),onSubmit:e=>{e.preventDefault(),l({goal:i,format:c,language:m})},children:[(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-[1fr_auto_1fr]",children:[(0,a.jsxs)("label",{className:"text-sm",children:[s("apps.jobs.goal"),(0,a.jsxs)("select",{className:b,value:i,onChange:e=>d(e.target.value),children:[(0,a.jsx)("option",{value:"promo",children:s("apps.jobs.promo")}),(0,a.jsx)("option",{value:"tutorial",children:s("apps.jobs.tutorial")}),(0,a.jsx)("option",{value:"spotlight",children:s("apps.jobs.spotlight")})]})]}),(0,a.jsx)(v,{value:c,onChange:p,label:s("apps.jobs.format")}),(0,a.jsx)(g,{value:m,tracks:["es","en"],onChange:u,label:s("apps.jobs.language")})]}),(0,a.jsx)("button",{className:"apps-button apps-button-primary mt-5",disabled:t,children:s("apps.jobs.start")})]})}function k(e){let{state:s}=e;return"done"===s?(0,a.jsx)(i.mmf,{"aria-hidden":!0,className:"size-4 shrink-0 text-live"}):"failed"===s?(0,a.jsx)(i.fZH,{"aria-hidden":!0,className:"size-4 shrink-0 text-fail"}):"skipped"===s?(0,a.jsx)(i.YJZ,{"aria-hidden":!0,className:"size-4 shrink-0 text-faint"}):(0,a.jsx)("span",{"aria-hidden":!0,className:"flex size-4 shrink-0 items-center justify-center",children:(0,a.jsx)("span",{className:"size-2 rounded-full ".concat("current"===s?"bg-accent animate-pulse":"border border-edge-bright")})})}function y(e){let{t:s,job:t}=e,{asked:l,others:n}=(0,m.hY)(t);if(!l.length&&!n.length)return null;let o="string"==typeof t.input.goal?t.input.goal:"all",i=e=>{let t=m.i9[e];return t?s(t):e},r=l.length?l:n,d=l.length?n:[];return(0,a.jsxs)("div",{className:"mt-4 rounded border border-edge bg-raised p-3 text-sm",children:[(0,a.jsx)("p",{className:"text-smoke",children:"all"!==o&&l.length?s("apps.jobs.notPlanned",{goal:i(o)}):s("apps.jobs.notPlannedAny")}),(0,a.jsx)("ul",{className:"mt-2 space-y-2",children:r.map(e=>(0,a.jsxs)("li",{children:[(0,a.jsx)("p",{className:"font-semibold",children:i(e.goal)}),(0,a.jsx)("blockquote",{className:"mt-1 break-words",children:e.why})]},e.goal))}),d.length>0&&(0,a.jsxs)("details",{className:"mt-3",children:[(0,a.jsx)("summary",{className:"text-smoke",children:s("apps.jobs.otherGoals")}),(0,a.jsx)("ul",{className:"mt-2 space-y-2",children:d.map(e=>(0,a.jsxs)("li",{children:[(0,a.jsx)("p",{className:"font-semibold",children:i(e.goal)}),(0,a.jsx)("blockquote",{className:"mt-1 break-words text-smoke",children:e.why})]},e.goal))})]})]})}function w(e){var s,t;let{t:l,job:n,locked:i,onCancel:r}=e,c=m.Cn.has(n.status),[u,x]=(0,o.useState)(()=>Date.now());(0,o.useEffect)(()=>{if(!c)return;let e=setInterval(()=>x(Date.now()),1e3);return()=>clearInterval(e)},[c]);let b=(0,m.X0)(n),h=(0,m.p_)(n,u),v=c&&!m.I.includes(null!=(t=null==(s=n.progress)?void 0:s.stage)?t:""),f=b.find(e=>"plan"===e.name&&"failed"===e.state),{asked:g,others:N}=(0,m.hY)(n),w=!!(f&&(g.length||N.length));return(0,a.jsxs)("section",{className:"mt-7 ".concat(j),"aria-labelledby":"video-stages-title","aria-live":c?"polite":void 0,children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,a.jsx)("h2",{id:"video-stages-title",className:"font-display text-xl font-semibold",children:l(c?"apps.jobs.stages":"apps.jobs.report")}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[!c&&(0,a.jsx)(p.vw,{size:"md",tone:"done"===n.status?"live":"failed"===n.status?"fail":"neutral",children:l("apps.jobs.".concat("done"===n.status?"done":"failed"===n.status?"failed":"cancelled"))}),c&&r&&(0,a.jsx)("button",{className:"apps-button",disabled:i&&"cancelling"===n.status,onClick:()=>r(n),children:l("apps.jobs.cancel")})]})]}),void 0!==h&&(0,a.jsx)("p",{className:"mt-2 text-sm text-smoke",children:l(c?"apps.jobs.elapsed":"apps.jobs.took",{time:h<60?l("apps.jobs.seconds",{s:h}):l("apps.jobs.minutes",{m:Math.floor(h/60),s:h%60})})}),v&&(0,a.jsx)("p",{className:"mt-2 text-sm text-smoke",children:l("apps.jobs.starting")}),(0,a.jsx)("ol",{className:"mt-4 grid gap-x-6 gap-y-1 sm:grid-cols-2",children:b.map(e=>(0,a.jsxs)("li",{className:"flex gap-2 py-1 text-sm ".concat("pending"===e.state||"skipped"===e.state?"text-faint":"text-chalk"),"aria-current":"current"===e.state?"step":void 0,children:[(0,a.jsx)("span",{className:"mt-0.5",children:(0,a.jsx)(k,{state:e.state})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("p",{className:"current"===e.state?"font-semibold":"",children:[l("apps.jobs.stage.".concat(e.name)),(0,a.jsxs)("span",{className:"sr-only",children:[" \xb7 ",l("apps.jobs.stageState.".concat(e.state))]})]}),e.summary&&!("plan"===e.name&&w)&&(0,a.jsx)("blockquote",{className:"mt-0.5 break-words text-xs text-smoke",children:e.summary})]})]},e.name))}),!c&&n.error&&(0,a.jsx)(d.uV,{error:n.error}),f&&(0,a.jsx)(y,{t:l,job:n}),!c&&"done"===n.status&&(0,a.jsx)("p",{className:"mt-3 text-sm text-smoke",children:l("apps.jobs.reportDone")})]})}function C(e){var s;let{t,job:l,locked:n,onEnqueue:o}=e,i=(0,m.Zp)(l),r=i.find(e=>"video"===e.kind),d=i.find(e=>"image"===e.kind),c=l.result,p=null!=(s=null==c?void 0:c.renders)?s:(null==c?void 0:c.render_id)?[{id:c.render_id,file:""}]:[];return(0,a.jsxs)("section",{className:"mt-7 ".concat(j),children:[(0,a.jsx)("h2",{className:"font-display text-xl font-semibold",children:t("apps.jobs.preview")}),r&&(0,a.jsx)("video",{controls:!0,preload:"metadata",className:"mt-4 max-h-[540px] w-full rounded bg-raised",src:(0,m.Wk)(l.id,r.path),"aria-label":t("apps.jobs.preview")}),d&&(0,a.jsx)("a",{href:(0,m.Wk)(l.id,d.path),target:"_blank",rel:"noreferrer",children:(0,a.jsx)("img",{className:"mt-4 max-h-80 w-full rounded object-contain",src:(0,m.Wk)(l.id,d.path),alt:t("apps.jobs.contacts")})}),(0,a.jsx)("h3",{className:"mt-4 text-sm font-semibold",children:t("apps.jobs.artifacts")}),(0,a.jsx)("ul",{className:"mt-2 space-y-1 text-sm",children:i.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)("a",{className:"break-all underline",href:(0,m.Wk)(l.id,e.path),download:e.name,children:e.name})},e.path))}),(0,a.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:p.map(e=>(0,a.jsxs)("button",{className:"apps-button",disabled:n,onClick:()=>o("panoma_video_review",{render_id:e.id}),children:[t("apps.jobs.review"),p.length>1?" \xb7 ".concat(e.id):""]},e.id))})]})}function _(e){var s;let{t,production:l,brief:n,historical:o,current:i,languages:r,format:d,language:c,locked:p,onFormat:b,onLanguage:h,onEnqueue:f,onOpenCurrent:N}=e;if(o)return(0,a.jsxs)("section",{className:"mt-5 ".concat(j),children:[(0,a.jsx)("p",{className:"text-sm text-smoke",children:t("apps.jobs.historical")}),i&&(0,a.jsx)("button",{className:"apps-button mt-3",onClick:()=>N(i.id),children:t("apps.jobs.current")})]});let k=n?t("apps.jobs.exportVariant",{format:null!=(s=u[d])?s:d,language:x[c]}):t("apps.jobs.export");return(0,a.jsxs)("section",{className:"mt-5 ".concat(j),children:[(0,a.jsx)("p",{className:"text-sm text-smoke",children:t("apps.jobs.savedStory")}),n&&(0,a.jsxs)("div",{className:"mt-4 grid gap-4 sm:grid-cols-[auto_1fr]",children:[(0,a.jsx)(v,{value:d,onChange:b,label:t("apps.jobs.format"),disabled:p}),(0,a.jsx)(g,{value:c,tracks:r,onChange:h,label:t("apps.jobs.language")})]}),(0,a.jsxs)("div",{className:"mt-4 flex flex-wrap gap-3",children:[(0,a.jsx)("button",{className:"apps-button",disabled:p,onClick:()=>{let e=(0,m.KU)(l,{language:c,format:d});f(e.tool,e.input)},children:k}),n&&(0,a.jsx)("button",{className:"apps-button",disabled:p,onClick:()=>f("panoma_video_story",{brief_id:n}),children:t("apps.jobs.story")})]})]})}function S(e){let{t:s,story:t,brief:l,language:n,format:i,locked:d,onEnqueue:c}=e,p=(0,r.Ym)(),[m,u]=(0,o.useState)(""),[x,h]=(0,o.useState)("");return(0,o.useEffect)(()=>{u(""),h("")},[t.revision,n]),(0,a.jsxs)("section",{className:"mt-7 ".concat(j),children:[(0,a.jsx)("h2",{className:"font-display text-xl font-semibold",children:s("apps.jobs.revise")}),(0,a.jsx)("p",{className:"mt-2 text-sm text-smoke",children:s("apps.jobs.revisionHelp")}),(0,a.jsxs)("label",{className:"mt-4 block text-sm",children:[s("apps.jobs.scene"),(0,a.jsxs)("select",{className:b,value:m,onChange:e=>{var s;u(e.target.value);let a=t.scenes.find(s=>s.id===e.target.value);h(null!=(s=null==a?void 0:a.text[n])?s:"")},children:[(0,a.jsx)("option",{value:"",children:"—"}),t.scenes.filter(e=>e.editable).map(e=>(0,a.jsxs)("option",{value:e.id,children:[e.id," \xb7 ",e.text[n]]},e.id))]})]}),(0,a.jsxs)("label",{className:"mt-4 block text-sm",children:[s("apps.jobs.revision"),(0,a.jsx)("textarea",{className:"mt-2 block min-h-28 w-full rounded border border-edge bg-surface p-3",value:x,maxLength:1e3,onChange:e=>h(e.target.value)})]}),(0,a.jsx)("button",{className:"apps-button mt-4",disabled:d||!m||!x.trim(),onClick:()=>c("panoma_video_revise",{brief_id:l,expectedRevision:t.revision,edits:[{kind:"text",sceneId:m,lang:n,text:x}]}),children:s("apps.jobs.revise")}),l&&(0,a.jsx)("button",{className:"apps-button ml-3 mt-4",disabled:d,onClick:()=>c("panoma_video_render",{brief_id:l,lang:n,format:i}),children:s("apps.jobs.start")}),t.history&&(0,a.jsxs)("details",{className:"mt-5",children:[(0,a.jsx)("summary",{className:"text-sm",children:s("apps.jobs.history")}),(0,a.jsx)("ul",{className:"mt-3 space-y-3",children:t.history.map(e=>(0,a.jsxs)("li",{className:"rounded border border-edge p-3",children:[(0,a.jsxs)("p",{className:"text-xs text-smoke",children:[new Date(e.at).toLocaleString(p)," \xb7 ",e.number]}),(0,a.jsx)("blockquote",{className:"mt-1 text-sm",children:e.note}),e.revision!==t.revision&&(0,a.jsx)("button",{className:"apps-button mt-2",disabled:d,onClick:()=>c("panoma_video_revise",{brief_id:l,expectedRevision:t.revision,restoreRevision:e.revision}),children:s("apps.jobs.restore")})]},e.revision))})]})]})}function E(e){var s,t;let{t:l,job:n}=e,o=n.result,i=null!=(s=null==o?void 0:o.checks)?s:[];return(0,a.jsxs)("details",{className:"mt-4 rounded border border-edge p-4",children:[(0,a.jsx)("summary",{children:l("apps.jobs.reviewStatus",{status:null!=(t=null==o?void 0:o.status)?t:n.status})}),(0,a.jsx)("h3",{className:"mt-3 text-sm font-semibold",children:l("apps.jobs.reviewChecks")}),(0,a.jsx)("ul",{className:"mt-2 space-y-2 text-sm",children:i.map(e=>{var s;return(0,a.jsxs)("li",{className:"rounded border border-edge p-3",children:[(0,a.jsxs)("p",{className:"font-mono text-xs",children:[e.id," \xb7 ",e.status]}),(0,a.jsx)("blockquote",{className:"mt-1",children:e.summary}),e.threshold&&(0,a.jsx)("p",{className:"mt-1 text-xs text-smoke",children:e.threshold}),(null==(s=e.fix)?void 0:s.hint)&&(0,a.jsx)("blockquote",{className:"mt-1 text-xs text-smoke",children:e.fix.hint})]},e.id)})})]})}function q(e){let{t:s,jobs:t,locked:l,onCancel:n,onEnqueue:o}=e;return(0,a.jsxs)("section",{className:"mt-8",children:[(0,a.jsx)("h2",{className:"font-display text-xl font-semibold",children:s("apps.jobs.title")}),(0,a.jsx)(d.jY,{jobs:t,onCancel:n}),t.filter(e=>"failed"===e.status||"cancelled"===e.status).map(e=>(0,a.jsxs)("button",{className:"apps-button mr-2 mt-3",disabled:l,onClick:()=>o(e.tool,e.input),children:[s("apps.jobs.retry")," \xb7 ",e.tool]},e.id)),t.filter(e=>"panoma_video_review"===e.tool&&e.result).map(e=>(0,a.jsx)(E,{t:s,job:e},e.id))]})}function I(e){var s,t,l;let{projectId:i,identity:c,slug:p}=e,u=(0,r.kj)(),x=(0,r.Ym)(),[j,h]=(0,o.useState)(null),[v,g]=(0,o.useState)([]),[k,y]=(0,o.useState)(null),[E,I]=(0,o.useState)(!1),[z,O]=(0,o.useState)(""),[R,P]=(0,o.useState)(null),[T,Y]=(0,o.useState)(null),[A,D]=(0,o.useState)(null),U=(0,o.useCallback)(async()=>{try{let e=await (0,m.Tl)("/api/apps/panoma-video");if(h(e),c){let e="identity=".concat(encodeURIComponent(c)),s=await (0,m.Tl)("/api/apps/panoma-video/jobs?".concat(e));g(s.jobs)}y(null)}catch(e){y(e.message)}},[c]);(0,o.useEffect)(()=>{U()},[U]);let F=!!(null==j||null==(s=j.settings)?void 0:s.voice);(0,o.useEffect)(()=>{if(!F)return void D(null);let e=new AbortController;return(0,m.Tl)("/api/apps/panoma-video/credentials",void 0,"GET",e.signal).then(s=>{e.signal.aborted||D(s)}).catch(()=>{e.signal.aborted||D(null)}),()=>e.abort()},[F]);let L=v.find(e=>m.Cn.has(e.status)),V=null==L?void 0:L.id;(0,o.useEffect)(()=>{if(!V)return;let e=new AbortController;return(0,m.E4)(V,e.signal,e=>{g(s=>s.map(s=>s.id===e.id?e:s)),y(null),m.Cn.has(e.status)||U()},y),()=>e.abort()},[V,U]);let W=(0,o.useCallback)((e,s)=>{c&&(I(!0),y(null),(0,m.Tl)("/api/apps/panoma-video/jobs",{identity:c,projectId:i,tool:e,input:s}).then(U).catch(e=>y(e.message)).finally(()=>I(!1)))},[c,i,U]),Z=v.filter(e=>e.result&&"panoma_video_auto"===e.tool&&"done"===e.status),G=null!=(t=Z.find(e=>e.id===z))?t:Z[0],H=v.find(e=>"panoma_video_auto"===e.tool),{brief:M,job:B}=(0,m.Lu)(v,G),J=null==B?void 0:B.result,K=(0,m.nn)(v,G),Q=!!(G&&(null==K?void 0:K.id)!==G.id),X=(0,m.Ht)(G,B),$=R&&X.includes(R)?R:X[0],ee=null==G?void 0:G.input.format,es=null!=T?T:(0,m.Fv)(ee)?ee:"v";(0,o.useEffect)(()=>{P(null),Y(null)},[null==G?void 0:G.id]);let et=E||!!L||!(null==j?void 0:j.ready)||!1===j.enabled||!c,ea=v.filter(e=>"panoma_video_review"!==e.tool&&(0,m.Zp)(e).length>0&&(!Q||e.id===(null==G?void 0:G.id))&&("panoma_video_auto"!==e.tool||e.id===(null==G?void 0:G.id))),el=e=>{(0,m.Tl)("/api/apps/jobs/".concat(e.id,"/cancel"),{}).then(U).catch(e=>y(e.message))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.uV,{error:k}),!c&&(0,a.jsx)("p",{className:"mt-5 rounded border border-edge p-4 text-sm",children:u("apps.jobs.noIdentity")}),j&&(!j.ready||!1===j.enabled)&&(0,a.jsxs)("div",{className:"mt-5 rounded border border-edge p-4",children:[(0,a.jsx)("p",{className:"text-sm",children:u("apps.needsSetup")}),(0,a.jsx)(n(),{className:"apps-button mt-3 inline-flex",href:"/apps/panoma-video?project=".concat(encodeURIComponent(p)),children:u("apps.open")})]}),j&&(0,a.jsx)(f,{t:u,app:j,identity:c,slug:p,credential:A}),(0,a.jsx)(N,{t:u,locked:et,onStart:e=>W("panoma_video_auto",(0,m.EQ)(e))}),L&&(0,a.jsx)(w,{t:u,job:L,locked:et,onCancel:el}),!L&&H&&"done"!==H.status&&(0,a.jsx)(w,{t:u,job:H,locked:et}),Z.length>1&&(0,a.jsxs)("label",{className:"mt-6 block text-sm",children:[u("apps.jobs.chooseProduction"),(0,a.jsx)("select",{className:b,value:null!=(l=null==G?void 0:G.id)?l:"",onChange:e=>O(e.target.value),children:Z.map(e=>{var s,t;let l=null==(s=e.result.briefs)?void 0:s.map(e=>e.id).join(", "),n=new Date(null!=(t=e.requestedAt)?t:"").toLocaleString(x);return(0,a.jsxs)("option",{value:e.id,children:[n," \xb7 ",null!=l?l:e.id]},e.id)})})]}),ea.map(e=>(0,a.jsx)(C,{t:u,job:e,locked:et,onEnqueue:W},e.id)),G&&(0,a.jsx)(_,{t:u,production:G,brief:M,historical:Q,current:K,languages:X,format:es,language:$,locked:et,onFormat:Y,onLanguage:P,onEnqueue:W,onOpenCurrent:O}),!Q&&(null==J?void 0:J.scenes)&&J.revision&&(0,a.jsx)(S,{t:u,story:J,brief:M,language:$,format:es,locked:et,onEnqueue:W}),(0,a.jsx)(q,{t:u,jobs:v,locked:et,onCancel:el,onEnqueue:W})]})}},7739:(e,s,t)=>{Promise.resolve().then(t.bind(t,4737)),Promise.resolve().then(t.t.bind(t,3953,23))}},e=>{e.O(0,[6587,3953,2575,2340,1369,2921,1305,6823,7358],()=>e(e.s=7739)),_N_E=e.O()}]);