vibe64 0.1.60 → 0.1.61

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 (128) hide show
  1. package/bin/run.js +549 -547
  2. package/bin/upgrade-state.js +113 -105
  3. package/dist/assets/{GithubBrowserTabs-Vv-64NIg.js → GithubBrowserTabs-DAgQxPXI.js} +1 -1
  4. package/dist/assets/{LocalDatabaseServer-rolg-sXl.js → LocalDatabaseServer-m1G8ZS5i.js} +1 -1
  5. package/dist/assets/{ShellOutlet-Clsh2qYP.js → ShellOutlet-CdjsJfg9.js} +1 -1
  6. package/dist/assets/Vibe64AuthSettingsButton-D3sB4BfM.js +5 -0
  7. package/dist/assets/{Vibe64AuthSettingsButton-DbL7Ukry.css → Vibe64AuthSettingsButton-DFfFPrd7.css} +1 -1
  8. package/dist/assets/{Vibe64ConversationLog-K6aUo3q1.js → Vibe64ConversationLog-B-L5QsVr.js} +1 -1
  9. package/dist/assets/{Vibe64DashboardShell-C_wkAaSb.js → Vibe64DashboardShell-CMzX3wRM.js} +1 -1
  10. package/dist/assets/{Vibe64DatabaseWorkspace-Dy88t2ZX.js → Vibe64DatabaseWorkspace-Dewhs6_T.js} +1 -1
  11. package/dist/assets/Vibe64DestinationButton-CdyyK9tj.js +1 -0
  12. package/dist/assets/Vibe64DestinationButton-ZxY1Lwie.css +1 -0
  13. package/dist/assets/{Vibe64FileArea-BU5rPyqx.js → Vibe64FileArea-DluZTu-c.js} +1 -1
  14. package/dist/assets/{Vibe64OutputControls-Z2K52QCc.js → Vibe64OutputControls-BfbdD25Y.js} +1 -1
  15. package/dist/assets/{Vibe64RepositoryWorkspace-CWw4w5SA.js → Vibe64RepositoryWorkspace-CBsySPXN.js} +1 -1
  16. package/dist/assets/{Vibe64SessionFiles-DI8ZH6aF.js → Vibe64SessionFiles--wtVe_KC.js} +1 -1
  17. package/dist/assets/{Vibe64SessionSourceEditor-BVfoXgmZ.js → Vibe64SessionSourceEditor-BouH4fXC.js} +1 -1
  18. package/dist/assets/{Vibe64UiStoryboardView-C-99xlAo.js → Vibe64UiStoryboardView--E04EEF8.js} +2 -2
  19. package/dist/assets/{Vibe64UiStoryboardView-BYLWabXY.css → Vibe64UiStoryboardView-DqLN6ofL.css} +1 -1
  20. package/dist/assets/{Vibe64UnavailableSessions-BRB2bUR_.js → Vibe64UnavailableSessions-94bFpxMK.js} +1 -1
  21. package/dist/assets/_pageId_-Ch4OpUkd.js +1 -0
  22. package/dist/assets/_sessionId_-7PyIUeUr.css +1 -0
  23. package/dist/assets/_sessionId_-DGT4d2La.js +1 -0
  24. package/dist/assets/{_sessionTool_-CKPNp5fF.js → _sessionTool_-CBf51mfK.js} +1 -1
  25. package/dist/assets/_sessionTool_-DiYoi-BF.css +1 -0
  26. package/dist/assets/{_slug_-C5yeqlpL.js → _slug_-C8VNMRVH.js} +6 -6
  27. package/dist/assets/_slug_-CZmGS16g.css +1 -0
  28. package/dist/assets/{access-Cq6GEVhT.js → access-BAOx4iCS.js} +1 -1
  29. package/dist/assets/{app-BKwP6m9e.js → app-Bs6-Hv23.js} +1 -1
  30. package/dist/assets/{changes-DT8e3wYn.js → changes-C6eMQ9YE.js} +1 -1
  31. package/dist/assets/{client-CUQfIUus.css → client-BBJzQIWS.css} +1 -1
  32. package/dist/assets/{client-C-Rw8t8y.js → client-CIF5Y1Aj.js} +1 -1
  33. package/dist/assets/{client-B_iZQVU8.js → client-CVgL_ShV.js} +1 -1
  34. package/dist/assets/{client-Cf6iimPy.js → client-HWj_BNVZ.js} +2 -2
  35. package/dist/assets/{client-BHa4BumO.js → client-qAKnahkF.js} +2 -2
  36. package/dist/assets/{client-DWPSlYBq.js → client-qpL_kR4u.js} +2 -2
  37. package/dist/assets/{conversation-CsB1b1JZ.js → conversation-DbF0OrZB.js} +3 -3
  38. package/dist/assets/{conversation-DA_fbJJD.css → conversation-ZN3-8jbz.css} +1 -1
  39. package/dist/assets/{dashboard-DRwBugiR.js → dashboard-CzLsa0w0.js} +1 -1
  40. package/dist/assets/{english-definitions-Bi3yaDu7.js → english-definitions-BA8v5wP1.js} +1 -1
  41. package/dist/assets/{env-ObiVMW6f.js → env-BqJ_GWbz.js} +1 -1
  42. package/dist/assets/{error-kdRkyK9x.js → error-BQ7r64JO.js} +1 -1
  43. package/dist/assets/{error-CX8_snYL.js → error-BqMxhgpB.js} +1 -1
  44. package/dist/assets/{health-Ev-UBIsw.js → health-CIqrHpVK.js} +1 -1
  45. package/dist/assets/{history-U6UcbKBZ.js → history-BCjhpyP8.js} +1 -1
  46. package/dist/assets/{i18n-B5lc019_.js → i18n-Dm74yE_M.js} +1 -1
  47. package/dist/assets/{index-Wcdz2Rey.js → index-fXKdz8oR.js} +5 -5
  48. package/dist/assets/{integrations-Bo_beIy3.css → integrations-CwgrZgmM.css} +1 -1
  49. package/dist/assets/{integrations-BHURBo17.js → integrations-cgbpgNNd.js} +11 -4
  50. package/dist/assets/issues-AhouA6nE.js +1 -0
  51. package/dist/assets/issues-D46llNv-.css +1 -0
  52. package/dist/assets/{learning-BrBAyLFt.js → learning-DZXWgVEW.js} +1 -1
  53. package/dist/assets/{pages-BTk_FkDr.js → pages-BUUwIXBf.js} +1 -1
  54. package/dist/assets/{project-files-CTGwnBh7.js → project-files-BS2gdDSz.js} +1 -1
  55. package/dist/assets/{publish-BYZ7KRzq.js → publish-Bq_LPmX2.js} +1 -1
  56. package/dist/assets/pull-requests-BvChbjCD.js +1 -0
  57. package/dist/assets/pull-requests-DtqrTix0.css +1 -0
  58. package/dist/assets/{repository-DknGo0hr.js → repository-Dkow-18G.js} +1 -1
  59. package/dist/assets/{settings-BmOQ1NnW.js → settings-r5RWQVzw.js} +1 -1
  60. package/dist/assets/{useArchivedVibe64Sessions-DI9ow2ds.js → useArchivedVibe64Sessions-C0MVJuyX.js} +1 -1
  61. package/dist/assets/useAssistantAttachments-BkYZckgz.js +2 -0
  62. package/dist/assets/{useCommand-YOAaO5Wz.js → useCommand-CNDe8gM-.js} +1 -1
  63. package/dist/assets/{useUiFeedback-Bixow9mW.js → useUiFeedback-CWb6o71Z.js} +1 -1
  64. package/dist/assets/{useVibe64ConversationLog-BkcPA64C.js → useVibe64ConversationLog-CUWEZhnf.js} +2 -2
  65. package/dist/assets/{useVibe64SessionData-Df7M5k1M.js → useVibe64SessionData-kGr7R7lG.js} +1 -1
  66. package/dist/assets/{useVibe64SessionSelection-B0USk6X6.js → useVibe64SessionSelection-BZ7WnRv0.js} +1 -1
  67. package/dist/assets/vibe64RepositoryRealtime-R5QhcJ4H.js +1 -0
  68. package/dist/assets/vibe64SessionFocus-BCojr4E-.css +1 -0
  69. package/dist/assets/vibe64SessionFocus-CHKCMxcJ.js +1 -0
  70. package/dist/index.html +10 -10
  71. package/docs/colleague-usage/back-navigation.md +16 -13
  72. package/docs/colleague-usage/coding-agent-goal-pause.md +15 -1
  73. package/docs/colleague-usage/coding-agent-goals.md +23 -3
  74. package/docs/colleague-usage/colleague-watches.md +1 -1
  75. package/docs/colleague-usage/connected-projects.md +1 -1
  76. package/docs/colleague-usage/dashboard-navigation.md +14 -11
  77. package/docs/colleague-usage/database.md +1 -1
  78. package/docs/colleague-usage/development-env.md +21 -12
  79. package/docs/colleague-usage/github-work.md +1 -1
  80. package/docs/colleague-usage/integrations.md +2 -2
  81. package/docs/colleague-usage/learning-teacher-guide.md +3 -2
  82. package/docs/colleague-usage/pages.md +1 -2
  83. package/docs/colleague-usage/project-messages.md +1 -1
  84. package/docs/colleague-usage/session-archive.md +3 -1
  85. package/docs/colleague-usage/sessions.md +3 -3
  86. package/docs/colleague-usage/ui-pass.md +1 -1
  87. package/node_modules/@jskit-ai/assistant-core/locales/en.json +4 -1
  88. package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
  89. package/node_modules/@jskit-ai/assistant-runtime/package.json +1 -1
  90. package/node_modules/@jskit-ai/assistant-voice/package.json +1 -1
  91. package/node_modules/@jskit-ai/connector-google-calendar/CHANGELOG.md +4 -0
  92. package/node_modules/@jskit-ai/connector-google-calendar/package.json +1 -1
  93. package/node_modules/@jskit-ai/connectors-catalog/CHANGELOG.md +1 -0
  94. package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
  95. package/node_modules/@jskit-ai/connectors-core/CHANGELOG.md +1 -0
  96. package/node_modules/@jskit-ai/connectors-core/package.json +1 -1
  97. package/node_modules/@jskit-ai/http-runtime/package.json +1 -1
  98. package/node_modules/@jskit-ai/kernel/CHANGELOG.md +1 -0
  99. package/node_modules/@jskit-ai/kernel/package.json +3 -1
  100. package/node_modules/@jskit-ai/payments-core/CHANGELOG.md +1 -0
  101. package/node_modules/@jskit-ai/payments-core/locales/en.json +2 -1
  102. package/node_modules/@jskit-ai/payments-core/package.json +1 -1
  103. package/node_modules/@jskit-ai/realtime/package.json +1 -1
  104. package/node_modules/@jskit-ai/resource-core/package.json +1 -1
  105. package/node_modules/@jskit-ai/uploads-runtime/package.json +1 -1
  106. package/node_modules/@local/vibe64-ai-tasks/package.json +2 -1
  107. package/node_modules/@local/vibe64-execution/src/host/execHelper.js +484 -468
  108. package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +59 -59
  109. package/node_modules/@local/vibe64-genesis/src/server/agentSpecs.js +93 -67
  110. package/node_modules/@local/vibe64-genesis/src/server/index.js +463 -453
  111. package/node_modules/@local/vibe64-genesis/src/server/promptContext.js +60 -58
  112. package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +285 -282
  113. package/package.json +14 -14
  114. package/server.bundle.mjs +26461 -26434
  115. package/dist/assets/Vibe64AuthSettingsButton-BICxvZDm.js +0 -5
  116. package/dist/assets/_pageId_-DPJ8pvUs.js +0 -1
  117. package/dist/assets/_sessionId_-B5V2Fs2n.css +0 -1
  118. package/dist/assets/_sessionId_-CiU1Awul.js +0 -1
  119. package/dist/assets/_sessionTool_-Be88HWbv.css +0 -1
  120. package/dist/assets/_slug_-Vy_1jrpy.css +0 -1
  121. package/dist/assets/issues-D4Asc_wa.css +0 -1
  122. package/dist/assets/issues-DEzrDqDU.js +0 -1
  123. package/dist/assets/pull-requests-C-puL4SG.js +0 -1
  124. package/dist/assets/pull-requests-DgWKsMdI.css +0 -1
  125. package/dist/assets/useAssistantAttachments-CkseokGM.js +0 -2
  126. package/dist/assets/vibe64RepositoryRealtime-DKSXVg1B.js +0 -1
  127. package/dist/assets/vibe64SessionFocus-BJLy8eTE.js +0 -1
  128. package/dist/assets/vibe64SessionFocus-DdYRpG72.css +0 -1
@@ -1,5 +0,0 @@
1
- import{Ct as toRef,Et as unref,G as renderList,H as openBlock,I as onBeforeUnmount,K as renderSlot,Kt as normalizeClass,M as mergeProps,N as nextTick,O as inject,U as provide,Xt as toDisplayString,Yt as normalizeStyle,at as watchEffect,b as createVNode,d as createBaseVNode,f as createBlock,i as Fragment,it as watch,m as createElementBlock,ot as withCtx,p as createCommentVNode,st as withDirectives,tt as useSlots,u as computed,vt as ref,xt as shallowRef,y as createTextVNode,z as onMounted}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{Bt as propsFactory,Dn as omit,S as VIcon,Tt as useRender,X as useDimension,Y as makeDimensionProps,bt as useToggleScope,cr as vShow,jt as genericComponent,lr as withKeys,mt as useDisplay,nn as clamp,nt as makeTagProps,st as useTheme,tr as consoleWarn,ur as withModifiers,yt as useProxiedModel,zt as makeComponentProps}from"./VChip-D2IukBZw.js";import{n as VList,s as VListItem,t as VMenu}from"./VMenu-DQ9SZ1Fq.js";import{t as useVibe64Learning}from"./useVibe64Learning-RE4HXHqo.js";import{a as useLayout,o as useLayoutItem,r as makeLayoutItemProps}from"./layout-B_cpKP4k.js";import{t as VTextField}from"./VTextField-BMvaWVTN.js";import{l as VIBE64_COLLEAGUE_LAUNCHER_KEY,r as VIBE64_AI_TASK_TRAY_KEY,v as elementSlotTarget}from"./vibe64AssistantHost-CyWUOG-F.js";import{S as VTooltip,a as aiOnboardingAvailable,c as onVibe64AiOnboardingRequested,h as useVibe64Accounts,l as requestVibe64AiOnboarding,m as ProviderAccountsSetup_default,n as AiOnboardingSetUpPill_default,o as aiOnboardingBlocked,s as aiOnboardingNeeded,t as accountRowsForStatus,u as AiSetup_default}from"./client-B_iZQVU8.js";import{r as useJskitText}from"./i18n-BuXRXGaO.js";import{i as useToolbarHeight,n as makeVToolbarProps,t as VToolbar}from"./VToolbar-C8ydxLzq.js";import{t as useSsrBoot}from"./ssrBoot-C6UwmCGc.js";import{i as VBtnToggle,t as VBtn}from"./VBtn-2vbH580C.js";import{t as VDivider}from"./VDivider-DGkInAUr.js";import{t as VSheet}from"./VSheet-D5wAuyc2.js";import{t as VDialog}from"./VDialog-B2W9wqR8.js";import{i as VCardTitle,n as VCardText,t as VCard}from"./VCard-BFqQSnAE.js";import{t as VSpacer}from"./VSpacer-GgPR_AzN.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import"./i18n-B5lc019_.js";import{A as onVibe64AccountConnectionsDialogRequested,C as createShellPageActionsRegistry,K as VTabs,S as SHELL_PAGE_ACTIONS_REGISTRY_KEY,Y as VContainer,b as SHELL_PAGE_ACTIONS_TARGET_KEY,g as useShellNavigationRuntime,h as useShellNavigation,n as writeAppearance,q as VTab,t as readAppearance,w as useShellWindowSizeClass,x as NO_SHELL_PAGE_ACTIONS_REGISTRY,y as SHELL_PAGE_ACTIONS_ID}from"./index-Wcdz2Rey.js";import{t as _sfc_main$7}from"./ShellOutlet-Clsh2qYP.js";var makeScrollProps=propsFactory({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},`scroll`);function useScroll(props,args={}){const{canScroll,layoutSize}=args;let previousScroll=0;let previousScrollHeight=0;const target=ref(null);const currentScroll=shallowRef(0);const savedScroll=shallowRef(0);const currentThreshold=shallowRef(0);const isScrollActive=shallowRef(false);const isScrollingUp=shallowRef(false);const isAtBottom=shallowRef(false);const reachedBottomWhileScrollingDown=shallowRef(false);const hasEnoughScrollableSpace=shallowRef(true);const scrollThreshold=computed(()=>{return Number(props.scrollThreshold)});const scrollRatio=computed(()=>{return clamp((scrollThreshold.value-currentScroll.value)/scrollThreshold.value||0)});function getScrollMetrics(targetEl){return{clientHeight:`window`in targetEl?window.innerHeight:targetEl.clientHeight,scrollHeight:`window`in targetEl?document.documentElement.scrollHeight:targetEl.scrollHeight}}function checkScrollableSpace(){const targetEl=target.value;if(!targetEl)return;const{clientHeight,scrollHeight}=getScrollMetrics(targetEl);const maxScrollableDistance=scrollHeight-clientHeight;const elementHeight=layoutSize?.value||0;const minRequiredDistance=scrollThreshold.value+elementHeight;hasEnoughScrollableSpace.value=maxScrollableDistance>minRequiredDistance}function onResize(){checkScrollableSpace()}function onScroll(){const targetEl=target.value;if(!targetEl||canScroll&&!canScroll.value)return;previousScroll=currentScroll.value;currentScroll.value=`window`in targetEl?targetEl.pageYOffset:targetEl.scrollTop;const currentScrollHeight=targetEl instanceof Window?document.documentElement.scrollHeight:targetEl.scrollHeight;if(previousScrollHeight!==currentScrollHeight){if(currentScrollHeight>previousScrollHeight)checkScrollableSpace();previousScrollHeight=currentScrollHeight}isScrollingUp.value=currentScroll.value<previousScroll;currentThreshold.value=Math.abs(currentScroll.value-scrollThreshold.value);const{clientHeight,scrollHeight}=getScrollMetrics(targetEl);const atBottom=currentScroll.value+clientHeight>=scrollHeight-5;if(!isScrollingUp.value&&atBottom&&currentScroll.value>=scrollThreshold.value&&hasEnoughScrollableSpace.value)reachedBottomWhileScrollingDown.value=true;const scrollJumped=Math.abs(currentScroll.value-previousScroll)>100;const atTop=currentScroll.value<=5;if(isScrollingUp.value&&previousScroll-currentScroll.value>1&&!atBottom||scrollJumped&&currentScroll.value<scrollThreshold.value||atTop)reachedBottomWhileScrollingDown.value=false;isAtBottom.value=atBottom}watch(isScrollingUp,()=>{savedScroll.value=savedScroll.value||currentScroll.value});watch(isScrollActive,()=>{savedScroll.value=0});onMounted(()=>{watch(()=>props.scrollTarget,scrollTarget=>{const newTarget=scrollTarget?document.querySelector(scrollTarget):window;if(!newTarget){consoleWarn(`Unable to locate element with identifier ${scrollTarget}`);return}if(newTarget===target.value)return;target.value?.removeEventListener(`scroll`,onScroll);target.value=newTarget;target.value.addEventListener(`scroll`,onScroll,{passive:true});Promise.resolve().then(()=>{checkScrollableSpace()})},{immediate:true});window.addEventListener(`resize`,onResize,{passive:true})});onBeforeUnmount(()=>{target.value?.removeEventListener(`scroll`,onScroll);window.removeEventListener(`resize`,onResize)});canScroll&&watch(canScroll,onScroll,{immediate:true});return{scrollThreshold,currentScroll,currentThreshold,isScrollActive,scrollRatio,isScrollingUp,savedScroll,isAtBottom,reachedBottomWhileScrollingDown,hasEnoughScrollableSpace}}var makeVAppBarProps=propsFactory({scrollBehavior:String,modelValue:{type:Boolean,default:true},location:{type:String,default:`top`,validator:value=>[`top`,`bottom`].includes(value)},...omit(makeVToolbarProps(),[`location`]),...makeLayoutItemProps(),...makeScrollProps(),height:{type:[Number,String],default:64}},`VAppBar`);var VAppBar=genericComponent()({name:`VAppBar`,props:makeVAppBarProps(),emits:{"update:modelValue":value=>true},setup(props,{slots}){const vToolbarRef=ref();const isActive=useProxiedModel(props,`modelValue`);const scrollBehavior=computed(()=>{const behavior=new Set(props.scrollBehavior?.split(` `)??[]);return{hide:behavior.has(`hide`),fullyHide:behavior.has(`fully-hide`),inverted:behavior.has(`inverted`),collapse:behavior.has(`collapse`),elevate:behavior.has(`elevate`),fadeImage:behavior.has(`fade-image`)}});const canScroll=computed(()=>{const behavior=scrollBehavior.value;return behavior.hide||behavior.fullyHide||behavior.inverted||behavior.collapse||behavior.elevate||behavior.fadeImage||!isActive.value});const toolbarHeight=useToolbarHeight(props,toRef(()=>props.extended??!!slots.extension));const contentHeight=toolbarHeight.contentHeight;const extensionHeight=toRef(()=>vToolbarRef.value?.extensionHeight??toolbarHeight.extensionHeight.value);const appBarHeight=toRef(()=>contentHeight.value+extensionHeight.value);const{currentScroll,scrollThreshold,isScrollingUp,scrollRatio,isAtBottom,reachedBottomWhileScrollingDown,hasEnoughScrollableSpace}=useScroll(props,{canScroll,layoutSize:appBarHeight});const canHide=toRef(()=>scrollBehavior.value.hide||scrollBehavior.value.fullyHide);const isCollapsed=computed(()=>props.collapse||scrollBehavior.value.collapse&&(scrollBehavior.value.inverted?scrollRatio.value>0:scrollRatio.value===0));const isFlat=computed(()=>props.flat||scrollBehavior.value.fullyHide&&!isActive.value||scrollBehavior.value.elevate&&(scrollBehavior.value.inverted?currentScroll.value>0:currentScroll.value===0));const opacity=computed(()=>scrollBehavior.value.fadeImage?scrollBehavior.value.inverted?1-scrollRatio.value:scrollRatio.value:void 0);const height=computed(()=>{if(scrollBehavior.value.hide&&scrollBehavior.value.inverted)return 0;if(!canHide.value)return appBarHeight.value;return currentScroll.value<scrollThreshold.value||scrollBehavior.value.fullyHide?appBarHeight.value:contentHeight.value});useToggleScope(()=>!!props.scrollBehavior,()=>{watchEffect(()=>{if(!canHide.value){isActive.value=true;return}if(scrollBehavior.value.inverted){isActive.value=currentScroll.value>scrollThreshold.value;return}if(!hasEnoughScrollableSpace.value){isActive.value=true;return}if(reachedBottomWhileScrollingDown.value){isActive.value=false;return}isActive.value=isScrollingUp.value&&!isAtBottom.value||currentScroll.value<scrollThreshold.value})});const{ssrBootStyles}=useSsrBoot();const{layoutItemStyles}=useLayoutItem({id:props.name,order:computed(()=>parseInt(props.order,10)),position:toRef(()=>props.location),layoutSize:height,elementSize:shallowRef(void 0),active:isActive,absolute:toRef(()=>props.absolute)});useRender(()=>{const toolbarProps=omit(VToolbar.filterProps(props),[`location`]);return createVNode(VToolbar,mergeProps({"ref":vToolbarRef,"class":[`v-app-bar`,{"v-app-bar--bottom":props.location===`bottom`},props.class],"style":[{...layoutItemStyles.value,"--v-toolbar-image-opacity":opacity.value,height:void 0,...ssrBootStyles.value},props.style]},toolbarProps,{"collapse":isCollapsed.value,"flat":isFlat.value}),slots)});return{}}});var makeVMainProps=propsFactory({scrollable:Boolean,...makeComponentProps(),...makeDimensionProps(),...makeTagProps({tag:`main`})},`VMain`);var VMain=genericComponent()({name:`VMain`,props:makeVMainProps(),setup(props,{slots}){const{dimensionStyles}=useDimension(props);const{mainStyles}=useLayout();const{ssrBootStyles}=useSsrBoot();useRender(()=>createVNode(props.tag,{"class":normalizeClass([`v-main`,{"v-main--scrollable":props.scrollable},props.class]),"style":normalizeStyle([mainStyles.value,ssrBootStyles.value,dimensionStyles.value,props.style])},{default:()=>[props.scrollable?createBaseVNode(`div`,{"class":`v-main__scroller`},[slots.default?.()]):slots.default?.()]}));return{}}});var _hoisted_1$2=[`id`];var _hoisted_2$1={class:`shell-page-actions-target__items`,"data-testid":`jskit-shell-page-actions-overflow-items`};var _sfc_main$6={__name:`ShellPageActionsTarget`,props:{menuItems:{type:Boolean,default:true}},setup(__props){const props=__props;const{t}=useJskitText();const menuEntries=inject(SHELL_PAGE_ACTIONS_REGISTRY_KEY,NO_SHELL_PAGE_ACTIONS_REGISTRY).menuEntries;const moreLabel=computed(()=>t(`jskit.shell.actions.more`));const slots=useSlots();const menuOpen=ref(false);function showsItems(){return props.menuItems&&Boolean(slots.menu)}function showsMenu(){return menuEntries.value.length>0||showsItems()}watch(showsMenu,shows=>{if(!shows)menuOpen.value=false});function itemProps(entry){const state=entry.state.value;const unavailable=Boolean(state.disabled||state.loading);return mergeProps(entry.attrs,{title:state.label,prependIcon:state.icon||void 0,baseColor:state.color,to:state.to,replace:state.replace,href:state.href,download:state.download,disabled:unavailable,"aria-disabled":unavailable?`true`:void 0})}return(_ctx,_cache)=>{return openBlock(),createElementBlock(Fragment,null,[createBaseVNode(`div`,{id:unref(SHELL_PAGE_ACTIONS_ID),class:`shell-page-actions-target`},null,8,_hoisted_1$2),unref(menuEntries).length>0||unref(slots).menu?(openBlock(),createBlock(VMenu,{key:0,modelValue:menuOpen.value,"onUpdate:modelValue":_cache[0]||(_cache[0]=$event=>menuOpen.value=$event),location:`bottom end`,eager:Boolean(unref(slots).menu)},{activator:withCtx(({props:menuProps})=>[showsMenu()?(openBlock(),createBlock(VTooltip,{key:0,text:moreLabel.value,location:`bottom`},{activator:withCtx(({props:tooltipProps})=>[createVNode(VBtn,mergeProps(mergeProps(menuProps,tooltipProps),{class:`shell-page-actions-overflow`,icon:`$moreVert`,variant:`text`,color:`on-surface-variant`,"aria-label":moreLabel.value,"data-testid":`jskit-shell-page-actions-overflow`}),null,16,[`aria-label`])]),_:2},1032,[`text`])):createCommentVNode(``,true)]),default:withCtx(()=>[!unref(slots).menu?(openBlock(),createBlock(VList,{key:0,role:`menu`,"min-width":`160`},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(menuEntries),entry=>{return openBlock(),createBlock(VListItem,mergeProps({key:entry.id},{ref_for:true},itemProps(entry),{role:`menuitem`,onClick:entry.activate}),null,16,[`onClick`])}),128))]),_:1})):(openBlock(),createBlock(VSheet,{key:1,class:`shell-page-actions-target__panel`,color:`surface-container`,elevation:`2`,rounded:`4`},{default:withCtx(()=>[unref(menuEntries).length>0?(openBlock(),createBlock(VList,{key:0,role:`menu`,"min-width":`160`},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(menuEntries),entry=>{return openBlock(),createBlock(VListItem,mergeProps({key:entry.id},{ref_for:true},itemProps(entry),{role:`menuitem`,onClick:entry.activate}),null,16,[`onClick`])}),128))]),_:1})):createCommentVNode(``,true),withDirectives(createBaseVNode(`div`,_hoisted_2$1,[renderSlot(_ctx.$slots,`menu`,{},void 0,true)],512),[[vShow,showsItems()]])]),_:3}))]),_:3},8,[`modelValue`,`eager`])):createCommentVNode(``,true)],64)}}};var ShellPageActionsTarget_default=_plugin_vue_export_helper_default(_sfc_main$6,[[`__scopeId`,`data-v-e1d1c68e`]]);var _sfc_main$5={__name:`ShellUpButton`,setup(__props){const{t,text}=useJskitText();const{canGoUp,up}=useShellNavigation();const pageClose=useShellNavigationRuntime().pageClose;const label=computed(()=>pageClose.value?text(pageClose.value.label()):t(`jskit.shell.actions.back`));function goUp(){pageClose.value?pageClose.value.close():up()}return(_ctx,_cache)=>{return unref(canGoUp)?(openBlock(),createBlock(VBtn,{key:0,icon:``,variant:`text`,color:`on-surface`,"data-testid":`jskit-shell-back`,"aria-label":label.value,"data-action":unref(pageClose)?`close`:`up`,onClick:goUp},{default:withCtx(()=>[createVNode(VIcon,{icon:unref(pageClose)?`$close`:`$arrowBack`},null,8,[`icon`]),createVNode(VTooltip,{activator:`parent`,location:`bottom`,text:label.value},null,8,[`text`])]),_:1},8,[`aria-label`,`data-action`])):createCommentVNode(``,true)}}};function useShellAppBar(){const navigationRuntime=useShellNavigationRuntime();const pageActions=createShellPageActionsRegistry({isCompact:useShellWindowSizeClass().isCompact});let release=null;provide(SHELL_PAGE_ACTIONS_TARGET_KEY,`#${SHELL_PAGE_ACTIONS_ID}`);provide(SHELL_PAGE_ACTIONS_REGISTRY_KEY,pageActions);onMounted(()=>{release=navigationRuntime.attachShell()});onBeforeUnmount(()=>{release?.();release=null});return{pageActions}}var _sfc_main$4={__name:`Vibe64AiTaskTrayTarget`,setup(__props){const target=inject(VIBE64_AI_TASK_TRAY_KEY);const setTarget=elementSlotTarget(target);return(_ctx,_cache)=>{return openBlock(),createElementBlock(`div`,{ref:unref(setTarget),class:`vibe64-ai-task-tray-target`},null,512)}}};var Vibe64AiTaskTrayTarget_default=_plugin_vue_export_helper_default(_sfc_main$4,[[`__scopeId`,`data-v-d64e402c`]]);var _sfc_main$3={__name:`Vibe64ColleagueLauncherTarget`,setup(__props){const target=inject(VIBE64_COLLEAGUE_LAUNCHER_KEY);const setTarget=elementSlotTarget(target);return(_ctx,_cache)=>{return openBlock(),createElementBlock(`div`,{ref:unref(setTarget),class:`vibe64-colleague-launcher-target`},null,512)}}};var Vibe64ColleagueLauncherTarget_default=_plugin_vue_export_helper_default(_sfc_main$3,[[`__scopeId`,`data-v-176fdc09`]]);var _sfc_main$2=Object.assign({inheritAttrs:false},{__name:`Vibe64LearningButton`,setup(__props){const learning=useVibe64Learning();const available=computed(()=>Boolean(learning.state.actorKey));const learn=computed(()=>learning.learnMode);const switching=computed(()=>learning.state.modeBusy===`set`);const title=computed(()=>learn.value?`Switch to Develop (your projects)`:`Switch to Learn`);return(_ctx,_cache)=>{return available.value?(openBlock(),createBlock(VBtn,mergeProps({key:0},_ctx.$attrs,{class:[`vibe64-learning-button`,{"vibe64-learning-button--active":learn.value}],"aria-label":`Learn mode`,"aria-pressed":learn.value,title:title.value,"data-vibe64-guide":`learning`,density:`comfortable`,icon:``,size:`small`,disabled:switching.value,variant:learn.value?`flat`:`outlined`,onClick:_cache[0]||(_cache[0]=$event=>unref(learning).toggleMode())}),{default:withCtx(()=>[..._cache[1]||(_cache[1]=[createBaseVNode(`span`,{"aria-hidden":`true`},`L`,-1)])]),_:1},16,[`class`,`aria-pressed`,`title`,`disabled`,`variant`])):createCommentVNode(``,true)}}});var Vibe64LearningButton_default=_plugin_vue_export_helper_default(_sfc_main$2,[[`__scopeId`,`data-v-e26bfb5c`]]);var _hoisted_1$1={class:`studio-app-shell-layout__top-right`};var SWIPE_MIN_DISTANCE_PX=64;var SWIPE_INTENT_DISTANCE_PX=12;var SWIPE_MAX_DURATION_MS=700;var SWIPE_HORIZONTAL_RATIO=2;var BROWSER_GESTURE_EDGE_PX=24;var _sfc_main$1={__name:`StudioAppShellLayout`,props:{mobilePaneSwipeEnabled:Boolean,chatCollapsed:Boolean,fillViewport:Boolean},emits:[`update:chatCollapsed`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;let paneSwipe=null;useShellAppBar();const{upTarget}=useShellNavigation();const upGuidePane=computed(()=>/\/dashboard\/[^/?#]+/u.test(upTarget.value)?`dashboard`:void 0);watch(()=>[props.mobilePaneSwipeEnabled,props.chatCollapsed],cancelPaneSwipe);function cancelPaneSwipe(){paneSwipe=null}function startPaneSwipe(event,header=false){cancelPaneSwipe();if(!props.mobilePaneSwipeEnabled||event.defaultPrevented||event.touches.length!==1||window.getSelection()?.isCollapsed===false)return;const target=event.target;if(target.closest(`
2
- input, textarea, select, [contenteditable]:not([contenteditable="false"]),
3
- [role="textbox"], [role="slider"], [role="separator"], [role="dialog"], [role="menu"],
4
- [draggable="true"], canvas, iframe, video, audio, .cm-editor, .xterm, [data-pane-swipe-ignore]
5
- `))return;if(!header&&target.closest(`a, button, [role="button"], svg`))return;for(let node=target;node;node=node.parentElement){const style=window.getComputedStyle(node);if(style.touchAction===`none`||style.touchAction.startsWith(`pan-`))return;if(node.scrollWidth>node.clientWidth+1&&/^(auto|scroll)$/u.test(style.overflowX))return;if(node===event.currentTarget)break}const touch=event.touches[0];if(touch.clientX<BROWSER_GESTURE_EDGE_PX||touch.clientX>window.innerWidth-BROWSER_GESTURE_EDGE_PX)return;paneSwipe={id:touch.identifier,x:touch.clientX,y:touch.clientY,startedAt:event.timeStamp,chatCollapsed:props.chatCollapsed}}function movePaneSwipe(event){if(!paneSwipe)return;if(!props.mobilePaneSwipeEnabled||event.defaultPrevented||event.touches.length!==1||event.timeStamp-paneSwipe.startedAt>SWIPE_MAX_DURATION_MS){cancelPaneSwipe();return}const touch=event.touches[0];const horizontalDistance=Math.abs(touch.clientX-paneSwipe.x);const verticalDistance=Math.abs(touch.clientY-paneSwipe.y);if(touch.identifier!==paneSwipe.id||verticalDistance>SWIPE_INTENT_DISTANCE_PX&&horizontalDistance<verticalDistance*SWIPE_HORIZONTAL_RATIO){cancelPaneSwipe();return}if(!(horizontalDistance>SWIPE_INTENT_DISTANCE_PX&&horizontalDistance>=verticalDistance*SWIPE_HORIZONTAL_RATIO))return;if(!event.cancelable){cancelPaneSwipe();return}event.preventDefault()}function endPaneSwipe(event){const swipe=paneSwipe;cancelPaneSwipe();if(!swipe||!props.mobilePaneSwipeEnabled||event.defaultPrevented||event.touches.length||props.chatCollapsed!==swipe.chatCollapsed||event.timeStamp-swipe.startedAt>SWIPE_MAX_DURATION_MS||window.getSelection()?.isCollapsed===false)return;const touch=Array.from(event.changedTouches).find(item=>item.identifier===swipe.id);if(!touch)return;const dx=touch.clientX-swipe.x;const horizontalDistance=Math.abs(dx);const verticalDistance=Math.abs(touch.clientY-swipe.y);if(horizontalDistance<SWIPE_MIN_DISTANCE_PX||horizontalDistance<verticalDistance*SWIPE_HORIZONTAL_RATIO)return;if(event.cancelable)event.preventDefault();emit(`update:chatCollapsed`,dx<0)}return(_ctx,_cache)=>{return openBlock(),createElementBlock(Fragment,null,[createVNode(VAppBar,{border:``,class:`shell-layout__app-bar bg-surface`,density:`comfortable`,elevation:`0`,"data-testid":`jskit-shell-app-bar`,onTouchstartPassive:_cache[0]||(_cache[0]=$event=>startPaneSwipe($event,true)),onTouchmove:movePaneSwipe,onTouchend:endPaneSwipe,onTouchcancel:cancelPaneSwipe},{default:withCtx(()=>[createVNode(Vibe64LearningButton_default,{class:`studio-app-shell-layout__learning-plate`}),createVNode(unref(_sfc_main$5),{"data-vibe64-guide-pane":upGuidePane.value},null,8,[`data-vibe64-guide-pane`]),renderSlot(_ctx.$slots,`top-left`,{},void 0,true),createVNode(VSpacer),createVNode(unref(ShellPageActionsTarget_default)),createBaseVNode(`div`,_hoisted_1$1,[createVNode(unref(_sfc_main$7),{target:`shell-layout:top-right`}),renderSlot(_ctx.$slots,`top-right`,{},void 0,true),createVNode(Vibe64AiTaskTrayTarget_default),createVNode(Vibe64ColleagueLauncherTarget_default)])]),_:3}),createVNode(VMain,{class:normalizeClass([`bg-background`,{"studio-app-shell-layout--fill-viewport":__props.fillViewport}])},{default:withCtx(()=>[createVNode(VContainer,{fluid:``,class:normalizeClass([`shell-layout__content studio-app-shell-layout__content`,{"studio-app-shell-layout__content--fill-viewport":__props.fillViewport}]),onTouchstartPassive:startPaneSwipe,onTouchmove:movePaneSwipe,onTouchend:endPaneSwipe,onTouchcancel:cancelPaneSwipe},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`,{},void 0,true)]),_:3},8,[`class`])]),_:3},8,[`class`])],64)}}};var StudioAppShellLayout_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-a496f266`]]);var VIBE64_PREFERRED_NAME_MAX_LENGTH=80;function normalizePreferredNameDraft(value=``){return String(value||``).normalize(`NFC`).replace(/\s+/gu,` `).trim()}function preferredNameDraftState(value=``){const preferredName=normalizePreferredNameDraft(value);const length=[...preferredName].length;let error=``;if(/\p{Cc}/u.test(preferredName))error=`Name cannot contain control characters.`;else if(length>80)error=`Name cannot exceed ${80} characters.`;return{error,length,preferredName,valid:!error}}var _hoisted_1={key:0,class:`vibe64-auth-settings__provider-attention`,"aria-label":`Needs attention`};var _hoisted_2={key:0,class:`vibe64-personal-profile`,"aria-labelledby":`vibe64-personal-profile-title`};var _hoisted_3={class:`vibe64-personal-profile__actions`};var _sfc_main={__name:`Vibe64AuthSettingsButton`,setup(__props){const accountProviderOptions=Object.freeze([{icon:`$smartToy`,id:`ai`,label:`AI Accounts`},{icon:`$github`,id:`github`,label:`GitHub`}]);const providerOptions=computed(()=>[...personalProfileAvailable.value?[{icon:`$person`,id:`profile`,label:`You`}]:[],...accountProviderOptions]);const dialogOpen=ref(false);const root=ref(null);const learning=useVibe64Learning();const theme=useTheme();const{smAndDown,xs}=useDisplay();const appearance=ref(readAppearance());const appearanceChoices=Object.freeze([{icon:`$lightMode`,label:`Light`,value:`light`},{icon:`$darkMode`,label:`Dark`,value:`dark`},{icon:`$desktopWindows`,label:`System`,value:`system`}]);function chooseAppearance(value){if(!value)return;appearance.value=value;theme.change(value);writeAppearance(value)}const selectedProviderId=ref(`ai`);const aiSetup=ref(null);const aiFocus=ref(``);const aiConnectionsBusy=ref(false);const accounts=useVibe64Accounts();const preferredNameField=ref(null);const preferredNameDraft=ref(``);const preferredNameSaving=computed(()=>accounts.savePersonalAiProfileCommand.isRunning===true);const personalProfile=computed(()=>accounts.status.value?.personalProfile||null);const personalProfileAvailable=computed(()=>personalProfile.value?.available===true);const preferredNameValidation=computed(()=>preferredNameDraftState(preferredNameDraft.value));const preferredNameChanged=computed(()=>preferredNameValidation.value.preferredName!==String(personalProfile.value?.preferredName||``));const statusLoaded=computed(()=>{return Boolean(accounts.status.value&&Array.isArray(accounts.status.value.accounts))});const allAccountRows=computed(()=>{return accountRowsForStatus(accounts.status.value,[`github`],{includeFallbackRows:false})});const selectedAccountRows=computed(()=>{return accountRowsForStatus(accounts.status.value,[selectedProviderId.value],{includeFallbackRows:true})});const selectedProvider=computed(()=>{return providerOptions.value.find(provider=>provider.id===selectedProviderId.value)||providerOptions.value[0]});const selectedProviderTitle=computed(()=>{return`${selectedProvider.value.label} Connection`});const selectedProviderLede=computed(()=>{if(selectedProvider.value.id===`github`)return`Configure the GitHub account and Git identity used by this local Vibe64 editor.`;return`Connect the AI accounts used by this Vibe64 editor.`});const credentialsNeedAttention=computed(()=>{if(!statusLoaded.value||aiOnboardingNeeded.value)return false;return allAccountRows.value.some(account=>account.connected!==true)});function normalizeProviderId(providerId=``){const normalized=String(providerId||``).trim();return providerOptions.value.some(provider=>provider.id===normalized)?normalized:``}async function openDialog(options={}){const profileRequested=String(options.section||``).trim()===`profile`;const requestedAi=options.codexReconnectRequired===true?`codex`:String(options.providerId||``).trim();const requestedProviderId=normalizeProviderId(requestedAi)||(requestedAi?`ai`:``);aiFocus.value=``;if(requestedProviderId)selectedProviderId.value=requestedProviderId;dialogOpen.value=true;if(profileRequested)await accounts.reloadLocalStatus();else if(options.codexReconnectRequired===true)await accounts.reloadLocalStatus();else if(options.refresh!==false)await accounts.refresh();if(profileRequested&&personalProfileAvailable.value){selectedProviderId.value=`profile`;await focusPreferredName();return}if(requestedProviderId){selectedProviderId.value=requestedProviderId;await nextTick();if(requestedProviderId===`ai`&&String(options.section||``)===`team`)aiFocus.value=`team`;if(requestedProviderId===`ai`&&requestedAi!==`ai`)aiSetup.value?.openProvider(requestedAi,options);return}selectedProviderId.value=`ai`}async function focusPreferredName(){await nextTick();preferredNameField.value?.focus()}async function savePreferredName(){if(preferredNameSaving.value||!preferredNameChanged.value||!preferredNameValidation.value.valid)return;await accounts.savePersonalAiProfile({preferredName:preferredNameValidation.value.preferredName})}function providerNeedsAttention(providerId=``){return allAccountRows.value.some(account=>account.id===providerId&&account.connected!==true)}function handleAccountConnectionsDialogRequest(event){openDialog(event?.detail||{})}function activatorElement(){return root.value?.querySelector(`.vibe64-auth-settings__button`)||null}function redoOnboarding(){requestVibe64AiOnboarding({start:`choose`,redo:true,returnFocus:activatorElement()})}function handleAiOnboardingRequest(event){if(!dialogOpen.value)return;dialogOpen.value=false;if(event?.detail&&!event.detail.returnFocus)event.detail.returnFocus=activatorElement()}let disposeAccountConnectionsDialogRequest=()=>null;let disposeAiOnboardingRequest=()=>null;onMounted(()=>{disposeAccountConnectionsDialogRequest=onVibe64AccountConnectionsDialogRequested(handleAccountConnectionsDialogRequest);disposeAiOnboardingRequest=onVibe64AiOnboardingRequested(handleAiOnboardingRequest)});onBeforeUnmount(()=>{disposeAccountConnectionsDialogRequest();disposeAiOnboardingRequest();aiOnboardingBlocked.value=false});watch(()=>dialogOpen.value&&aiConnectionsBusy.value,blocked=>{aiOnboardingBlocked.value=blocked});watch(()=>personalProfile.value?.preferredName,preferredName=>{preferredNameDraft.value=String(preferredName||``)},{immediate:true});return(_ctx,_cache)=>{return openBlock(),createElementBlock(`div`,{ref_key:`root`,ref:root,class:`vibe64-auth-settings`},[createVNode(unref(AiOnboardingSetUpPill_default)),createVNode(VMenu,{location:`bottom end`},{activator:withCtx(({props:menuProps})=>[createVNode(VBtn,mergeProps(menuProps,{class:[`vibe64-auth-settings__button`,credentialsNeedAttention.value?`vibe64-auth-settings__button--needs-attention`:``],density:`comfortable`,icon:`$manageAccounts`,size:`large`,title:`Account`,type:`button`,variant:`tonal`,"aria-label":`Account menu`,"data-vibe64-guide":`account-menu`}),null,16,[`class`])]),default:withCtx(()=>[createVNode(VList,{class:`vibe64-auth-settings__menu`,density:`comfortable`},{default:withCtx(()=>[createVNode(VListItem,{"prepend-icon":`$manageAccounts`,title:`Account settings`,"data-vibe64-guide":`account-settings`,onClick:_cache[0]||(_cache[0]=$event=>openDialog())}),unref(aiOnboardingAvailable)?(openBlock(),createBlock(VListItem,{key:0,"prepend-icon":`$autoFix`,subtitle:`Choose or switch your AI`,title:`Redo onboarding`,"data-vibe64-guide":`ai-setup`,onClick:redoOnboarding})):createCommentVNode(``,true),createVNode(VListItem,{"prepend-icon":`$route`,subtitle:`A short lesson on the screens around you`,title:`Take the tour`,"data-test":`take-the-tour`,onClick:_cache[1]||(_cache[1]=$event=>unref(learning).openOrientation())})]),_:1})]),_:1}),createVNode(VDialog,{modelValue:dialogOpen.value,"onUpdate:modelValue":_cache[6]||(_cache[6]=$event=>dialogOpen.value=$event),fullscreen:unref(smAndDown),persistent:aiConnectionsBusy.value,"max-width":`1120`,scrollable:``},{default:withCtx(()=>[createVNode(VCard,{class:normalizeClass([`vibe64-auth-settings__dialog`,{"vibe64-auth-settings__dialog--fullscreen":unref(smAndDown)}]),rounded:unref(smAndDown)?0:`lg`},{default:withCtx(()=>[createVNode(VCardTitle,{class:`vibe64-auth-settings__dialog-title`},{default:withCtx(()=>[_cache[7]||(_cache[7]=createBaseVNode(`div`,null,[createBaseVNode(`h2`,null,`Account settings`),createBaseVNode(`p`,null,`Choose how Vibe64 identifies you and connect its coding tools.`)],-1)),createVNode(VBtn,{density:`comfortable`,icon:`$close`,title:`Close account settings`,disabled:aiConnectionsBusy.value,type:`button`,variant:`text`,"aria-label":`Close account settings`,onClick:_cache[2]||(_cache[2]=$event=>dialogOpen.value=false)},null,8,[`disabled`])]),_:1}),createVNode(VTabs,{modelValue:selectedProviderId.value,"onUpdate:modelValue":_cache[3]||(_cache[3]=$event=>selectedProviderId.value=$event),class:`vibe64-auth-settings__provider-tabs`,color:`primary`,density:`comfortable`,grow:unref(xs),"show-arrows":!unref(xs),stacked:unref(xs)},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(providerOptions.value,provider=>{return openBlock(),createBlock(VTab,{key:provider.id,class:`vibe64-auth-settings__provider-tab`,"prepend-icon":provider.icon,value:provider.id,disabled:aiConnectionsBusy.value},{default:withCtx(()=>[createTextVNode(toDisplayString(provider.label)+` `,1),providerNeedsAttention(provider.id)?(openBlock(),createElementBlock(`span`,_hoisted_1)):createCommentVNode(``,true)]),_:2},1032,[`prepend-icon`,`value`,`disabled`])}),128))]),_:1},8,[`modelValue`,`grow`,`show-arrows`,`stacked`]),createVNode(VDivider),createVNode(VCardText,{class:`vibe64-auth-settings__dialog-body`},{default:withCtx(()=>[selectedProviderId.value===`profile`?(openBlock(),createElementBlock(`section`,_hoisted_2,[_cache[8]||(_cache[8]=createBaseVNode(`div`,{class:`vibe64-personal-profile__heading`},[createBaseVNode(`h3`,{id:`vibe64-personal-profile-title`},`Your profile`),createBaseVNode(`p`,null,`You — all projects`)],-1)),createVNode(VTextField,{ref_key:`preferredNameField`,ref:preferredNameField,modelValue:preferredNameDraft.value,"onUpdate:modelValue":_cache[4]||(_cache[4]=$event=>preferredNameDraft.value=$event),"data-vibe64-personal-profile":``,density:`comfortable`,"error-messages":preferredNameValidation.value.error,"hide-details":`auto`,label:`What should Vibe64 call you?`,variant:`outlined`,onKeydown:withKeys(withModifiers(savePreferredName,[`prevent`]),[`enter`])},null,8,[`modelValue`,`error-messages`,`onKeydown`]),_cache[9]||(_cache[9]=createBaseVNode(`p`,{class:`vibe64-personal-profile__supporting-text`},` This name is used in Vibe64 welcomes and collaboration cues across this installation. Leave it blank to use your computer account name. `,-1)),createBaseVNode(`div`,_hoisted_3,[createVNode(VBtn,{class:`vibe64-personal-profile__save`,color:`primary`,disabled:preferredNameSaving.value||!preferredNameChanged.value||!preferredNameValidation.value.valid,type:`button`,variant:`flat`,onClick:savePreferredName},{default:withCtx(()=>[createTextVNode(toDisplayString(preferredNameSaving.value?`Saving…`:`Save name`),1)]),_:1},8,[`disabled`])]),_cache[10]||(_cache[10]=createBaseVNode(`div`,{class:`vibe64-personal-profile__heading vibe64-personal-profile__appearance`},[createBaseVNode(`h3`,{id:`vibe64-appearance-title`},`Appearance`),createBaseVNode(`p`,null,`This browser`)],-1)),createVNode(VBtnToggle,{"model-value":appearance.value,"aria-labelledby":`vibe64-appearance-title`,class:`vibe64-personal-profile__appearance-choice`,color:`primary`,"data-vibe64-appearance":``,density:`comfortable`,divided:``,mandatory:``,rounded:`xl`,variant:`outlined`,"onUpdate:modelValue":chooseAppearance},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(appearanceChoices),choice=>{return openBlock(),createBlock(VBtn,{key:choice.value,"prepend-icon":choice.icon,value:choice.value},{default:withCtx(()=>[createTextVNode(toDisplayString(choice.label),1)]),_:2},1032,[`prepend-icon`,`value`])}),128))]),_:1},8,[`model-value`]),_cache[11]||(_cache[11]=createBaseVNode(`p`,{class:`vibe64-personal-profile__supporting-text`},` System follows your device's light or dark setting. `,-1))])):createCommentVNode(``,true),selectedProviderId.value===`ai`?(openBlock(),createBlock(unref(AiSetup_default),{key:1,ref_key:`aiSetup`,ref:aiSetup,inline:``,"can-configure":``,focus:aiFocus.value,onBusy:_cache[5]||(_cache[5]=$event=>aiConnectionsBusy.value=$event)},null,8,[`focus`])):createCommentVNode(``,true),selectedProviderId.value===`github`?(openBlock(),createBlock(unref(ProviderAccountsSetup_default),{key:2,accounts:unref(accounts),"account-rows":selectedAccountRows.value,"status-loaded":statusLoaded.value,title:selectedProviderTitle.value,lede:selectedProviderLede.value,"needed-label":`Connection needed`,"ready-label":`Connection ready`,"show-continue":false},null,8,[`accounts`,`account-rows`,`status-loaded`,`title`,`lede`])):createCommentVNode(``,true)]),_:1})]),_:1},8,[`class`,`rounded`])]),_:1},8,[`modelValue`,`fullscreen`,`persistent`])],512)}}};var Vibe64AuthSettingsButton_default=_plugin_vue_export_helper_default(_sfc_main,[[`__scopeId`,`data-v-29e5a5ca`]]);export{StudioAppShellLayout_default as n,Vibe64AuthSettingsButton_default as t};
@@ -1 +0,0 @@
1
- import{Et as unref,H as openBlock,f as createBlock,u as computed}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{g as useRoute}from"./useApi-BPuI6ZR9-rsYWyW6m.js";import{o as projectSlugFromRoute}from"./vibe64ProjectScope.local-B9ZpdYlf.js";import{n as Vibe64PageViewer_default}from"./client-DWPSlYBq.js";var _sfc_main={__name:`[pageId]`,setup(__props){const route=useRoute();const projectSlug=computed(()=>projectSlugFromRoute(route));const pageId=computed(()=>String(route.params.pageId||``));return(_ctx,_cache)=>{return openBlock(),createBlock(unref(Vibe64PageViewer_default),{"page-id":pageId.value,"project-slug":projectSlug.value},null,8,[`page-id`,`project-slug`])}}};export{_sfc_main as default};
@@ -1 +0,0 @@
1
- .studio-archived-session-detail[data-v-729d3de4]{gap:1rem;padding:1rem;display:grid}.studio-archived-session-detail__header[data-v-729d3de4]{border-bottom:1px solid rgba(var(--v-border-color), .22);justify-content:space-between;align-items:flex-start;gap:1rem;padding-bottom:.8rem;display:flex}.studio-archived-session-detail__title[data-v-729d3de4]{align-items:flex-start;gap:.6rem;min-width:0;display:flex}.studio-archived-session-detail__title h2[data-v-729d3de4]{margin:0;font-size:1rem;font-weight:700;line-height:1.2}.studio-archived-session-detail__title p[data-v-729d3de4],.studio-archived-session-detail__muted[data-v-729d3de4]{color:rgba(var(--v-theme-on-surface), .66);margin:0;font-size:.86rem}.studio-archived-session-detail__grid[data-v-729d3de4]{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;display:grid}.studio-archived-session-detail__section[data-v-729d3de4]{gap:.6rem;min-width:0;display:grid}.studio-archived-session-detail__section h3[data-v-729d3de4]{letter-spacing:0;margin:0;font-size:.9rem;font-weight:700;line-height:1.2}.studio-archived-session-detail__fact-list[data-v-729d3de4]{gap:.45rem;margin:0;display:grid}.studio-archived-session-detail__fact-row[data-v-729d3de4]{grid-template-columns:minmax(7rem,max-content) minmax(0,1fr);align-items:start;gap:.5rem;display:grid}.studio-archived-session-detail__fact-row dt[data-v-729d3de4]{color:rgba(var(--v-theme-on-surface), .68);align-items:center;gap:.3rem;min-width:0;font-size:.82rem;display:inline-flex}.studio-archived-session-detail__fact-row dd[data-v-729d3de4]{color:rgba(var(--v-theme-on-surface), .84);overflow-wrap:anywhere;margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.8rem}.studio-archived-session-detail__step-list[data-v-729d3de4]{gap:.35rem;margin:0;padding-left:1.2rem;display:grid}.studio-archived-session-detail__step-list li[data-v-729d3de4]{color:rgba(var(--v-theme-on-surface), .84);font-size:.86rem}.studio-archived-session-detail__step-list small[data-v-729d3de4]{color:rgba(var(--v-theme-on-surface), .62);font-size:.78rem;display:block}.studio-archived-session-detail__report[data-v-729d3de4]{background:rgba(var(--v-theme-surface-variant), .32);border:1px solid rgba(var(--v-border-color), .22);color:rgb(var(--v-theme-on-surface));white-space:pre-wrap;border-radius:6px;max-height:28rem;margin:0;padding:.75rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.82rem;line-height:1.42;overflow:auto}.studio-archived-session-detail__conversation[data-v-729d3de4]{border-top:1px solid rgba(var(--v-border-color), .22);padding-top:.9rem}.studio-archived-session-detail__conversation[data-v-729d3de4] .assistant-transcript__body{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:12rem;max-height:min(34rem,70vh);overflow-y:auto}@media (width<=720px){.studio-archived-session-detail__grid[data-v-729d3de4],.studio-archived-session-detail__fact-row[data-v-729d3de4]{grid-template-columns:1fr}}@media (width<=640px){.studio-archived-session-detail__header[data-v-729d3de4]{flex-direction:column;align-items:stretch}}.vibe64-dashboard-page[data-v-55d2009f]{gap:.75rem;width:100%;min-width:0;max-width:68rem;margin-inline:auto;display:grid}.vibe64-dashboard-page__header[data-v-55d2009f]{min-width:0}.vibe64-dashboard-page__empty[data-v-55d2009f]{gap:.65rem;padding:1rem;display:grid}.vibe64-dashboard-page__empty h2[data-v-55d2009f],.vibe64-dashboard-page__empty p[data-v-55d2009f]{margin:0}.vibe64-dashboard-page__empty h2[data-v-55d2009f]{letter-spacing:0;font-size:1rem;font-weight:700}.vibe64-dashboard-page__empty p[data-v-55d2009f]{color:rgba(var(--v-theme-on-surface), .66);font-size:.86rem}.vibe64-dashboard-page__empty-actions[data-v-55d2009f]{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}
@@ -1 +0,0 @@
1
- import{Et as unref,G as renderList,H as openBlock,Xt as toDisplayString,b as createVNode,d as createBaseVNode,f as createBlock,i as Fragment,m as createElementBlock,ot as withCtx,p as createCommentVNode,u as computed,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{S as VIcon,_ as VProgressLinear}from"./VChip-D2IukBZw.js";import{t as VAlert}from"./VAlert-DyCQWe9P.js";import{t as VBtn}from"./VBtn-2vbH580C.js";import{t as VSheet}from"./VSheet-D5wAuyc2.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{t as Vibe64ConversationLog_default}from"./Vibe64ConversationLog-K6aUo3q1.js";import{r as shortVibe64SessionId}from"./vibe64SessionViewModel-CQCds_jb.js";import{t as Vibe64SessionFiles_default}from"./Vibe64SessionFiles-DI8ZH6aF.js";import{i as useArchivedVibe64SessionDetail,t as archiveFactRows}from"./useArchivedVibe64Sessions-DI9ow2ds.js";var _hoisted_1$1={class:`studio-archived-session-detail__header`};var _hoisted_2$1={class:`studio-archived-session-detail__title`};var _hoisted_3={class:`studio-archived-session-detail__grid`};var _hoisted_4={class:`studio-archived-session-detail__section`};var _hoisted_5={class:`studio-archived-session-detail__fact-list`};var _hoisted_6={class:`studio-archived-session-detail__section studio-archived-session-detail__conversation`};var _hoisted_7={key:0,class:`studio-archived-session-detail__muted`};var archiveIcon=`$cancel`;var _sfc_main$1={__name:`ArchivedVibe64SessionDetail`,props:{sessionsApiPath:{type:String,default:``},projectSlug:{type:String,default:``},conversationLog:{default:()=>({}),type:Object},session:{default:null,type:Object}},setup(__props){const props=__props;const conversationTurns=computed(()=>Array.isArray(props.conversationLog?.turns)?props.conversationLog.turns:[]);const conversationError=computed(()=>String(props.conversationLog?.error||``));const conversationLoadMoreError=computed(()=>String(props.conversationLog?.loadMoreError||``));const conversationHasMoreBefore=computed(()=>Boolean(props.conversationLog?.hasMoreBefore));const conversationLoading=computed(()=>Boolean(props.conversationLog?.loading));const conversationLoadingMore=computed(()=>Boolean(props.conversationLog?.loadingMore));return(_ctx,_cache)=>{return __props.session?(openBlock(),createBlock(VSheet,{key:0,class:`studio-archived-session-detail`,rounded:`lg`,color:`surface-container-low`},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_1$1,[createBaseVNode(`div`,_hoisted_2$1,[createVNode(VIcon,{icon:archiveIcon,size:`20`}),createBaseVNode(`div`,null,[createBaseVNode(`h2`,null,`Archived session `+toDisplayString(unref(shortVibe64SessionId)(__props.session.sessionId)),1),_cache[0]||(_cache[0]=createBaseVNode(`p`,null,`Read-only history. Source restore is not available from archived sessions.`,-1))])])]),createBaseVNode(`div`,_hoisted_3,[createBaseVNode(`section`,_hoisted_4,[_cache[1]||(_cache[1]=createBaseVNode(`h3`,null,`Facts`,-1)),createBaseVNode(`dl`,_hoisted_5,[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(archiveFactRows)(__props.session),fact=>{return openBlock(),createElementBlock(`div`,{key:fact.label,class:`studio-archived-session-detail__fact-row`},[createBaseVNode(`dt`,null,[createVNode(VIcon,{icon:fact.icon,size:`16`},null,8,[`icon`]),createBaseVNode(`span`,null,toDisplayString(fact.label),1)]),createBaseVNode(`dd`,null,toDisplayString(fact.value),1)])}),128))])])]),__props.sessionsApiPath?(openBlock(),createBlock(Vibe64SessionFiles_default,{key:0,archived:``,"session-id":__props.session.sessionId,"sessions-api-path":__props.sessionsApiPath,"project-slug":__props.projectSlug,style:{"height":`30rem`}},null,8,[`session-id`,`sessions-api-path`,`project-slug`])):createCommentVNode(``,true),createBaseVNode(`section`,_hoisted_6,[_cache[2]||(_cache[2]=createBaseVNode(`h3`,null,`Conversation`,-1)),createVNode(Vibe64ConversationLog_default,{"session-id":__props.session.sessionId,error:conversationError.value,"has-more-before":conversationHasMoreBefore.value,loading:conversationLoading.value,"loading-more":conversationLoadingMore.value,"load-more-error":conversationLoadMoreError.value,reloadable:true,reloading:conversationLoading.value,"source-root":__props.session.sourcePath||``,turns:conversationTurns.value,visible:true,onLoadMore:__props.conversationLog.loadMore,onReload:__props.conversationLog.reload},null,8,[`session-id`,`error`,`has-more-before`,`loading`,`loading-more`,`load-more-error`,`reloading`,`source-root`,`turns`,`onLoadMore`,`onReload`]),!conversationLoading.value&&!conversationError.value&&conversationTurns.value.length<1?(openBlock(),createElementBlock(`p`,_hoisted_7,` No conversation messages were recorded for this archive. `)):createCommentVNode(``,true)])]),_:1})):createCommentVNode(``,true)}}};var ArchivedVibe64SessionDetail_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-729d3de4`]]);var _hoisted_1={class:`vibe64-dashboard-page vibe64-dashboard-page--archive-detail`};var _hoisted_2={class:`vibe64-dashboard-page__empty-actions`};var _sfc_main={__name:`[sessionId]`,setup(__props){const{conversationLog,error,loading,reload,session,sessionId,sessionsApiPath,projectSlug}=useArchivedVibe64SessionDetail();return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1,[_cache[2]||(_cache[2]=createBaseVNode(`header`,{class:`vibe64-dashboard-page__header`},[createBaseVNode(`h2`,{class:`text-headline-small font-weight-bold ma-0`},`Archived Session`)],-1)),unref(error)?(openBlock(),createBlock(VAlert,{key:0,type:`error`,variant:`tonal`,density:`comfortable`},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(error)),1)]),_:1})):createCommentVNode(``,true),unref(loading)&&!unref(session)?(openBlock(),createBlock(VProgressLinear,{key:1,color:`primary`,height:`6`,indeterminate:``,rounded:``})):createCommentVNode(``,true),unref(session)?(openBlock(),createBlock(ArchivedVibe64SessionDetail_default,{key:2,"conversation-log":unref(conversationLog),session:unref(session),"sessions-api-path":unref(sessionsApiPath),"project-slug":unref(projectSlug)},null,8,[`conversation-log`,`session`,`sessions-api-path`,`project-slug`])):!unref(loading)?(openBlock(),createBlock(VSheet,{key:3,class:`vibe64-dashboard-page__empty`,rounded:`lg`,color:`surface-container-low`},{default:withCtx(()=>[_cache[1]||(_cache[1]=createBaseVNode(`h2`,null,`Archived session unavailable`,-1)),createBaseVNode(`p`,null,`Session `+toDisplayString(unref(sessionId)||`unknown`)+` could not be loaded.`,1),createBaseVNode(`div`,_hoisted_2,[createVNode(VBtn,{"prepend-icon":`$refresh`,variant:`text`,onClick:unref(reload)},{default:withCtx(()=>[..._cache[0]||(_cache[0]=[createTextVNode(` Retry `,-1)])]),_:1},8,[`onClick`])])]),_:1})):createCommentVNode(``,true)])}}};var _sessionId__default=_plugin_vue_export_helper_default(_sfc_main,[[`__scopeId`,`data-v-55d2009f`]]);export{_sessionId__default as default};
@@ -1 +0,0 @@
1
- .vibe64-session-tool-route[data-v-49b9c346]{align-content:start;gap:.4rem;padding:.85rem;display:grid}.vibe64-session-tool-route h2[data-v-49b9c346],.vibe64-session-tool-route p[data-v-49b9c346]{margin:0}.vibe64-session-tool-route h2[data-v-49b9c346]{letter-spacing:0;font-size:1rem;font-weight:720}.vibe64-session-tool-route p[data-v-49b9c346]{color:rgba(var(--v-theme-on-surface), .68);font-size:.86rem}
@@ -1 +0,0 @@
1
- .shell-page-title[data-v-6a88f2bb]{color:rgb(var(--v-theme-on-surface));letter-spacing:0;text-overflow:ellipsis;white-space:nowrap;outline:none;margin:0;font-size:1.375rem;font-weight:400;line-height:1.75rem;overflow:clip visible}.vibe64-team-ai-gate[data-v-ee8c10e2]{justify-items:start;gap:.75rem;width:100%;max-width:min(36rem,100%);margin-inline:auto;padding:1.5rem;display:grid}.vibe64-team-ai-gate__icon[data-v-ee8c10e2]{background:rgba(var(--v-theme-primary), .12);color:rgb(var(--v-theme-primary));border-radius:50%;justify-content:center;align-items:center;width:3rem;height:3rem;display:inline-flex}.vibe64-team-ai-gate__title[data-v-ee8c10e2]{letter-spacing:0;margin:0;font-size:1.25rem;font-weight:760;line-height:1.2}.vibe64-team-ai-gate__text[data-v-ee8c10e2]{color:rgba(var(--v-theme-on-surface), .72);margin:0}.vibe64-team-ai-gate__ask[data-v-ee8c10e2]{background:rgba(var(--v-theme-on-surface), .05);border:1px solid rgba(var(--v-theme-on-surface), .12);border-radius:.5rem;width:100%;margin:.25rem 0;padding:.85rem 1rem;font-weight:600}.vibe64-team-ai-gate__actions[data-v-ee8c10e2]{flex-wrap:wrap;gap:.5rem;display:flex}@media (width<=599px){.vibe64-team-ai-gate[data-v-ee8c10e2]{padding:1.25rem 1rem}.vibe64-team-ai-gate__actions[data-v-ee8c10e2]{width:100%;display:grid}}.project-selection-gate[data-v-bc33f920]{align-content:start;gap:.85rem;min-width:0;display:grid}.project-selection-gate__deleted[data-v-bc33f920]{justify-items:start;gap:.75rem;width:100%;max-width:min(36rem,100%);margin-inline:auto;padding:1.25rem;display:grid}.project-selection-gate__learning-note[data-v-bc33f920]{background:var(--v64-learning-container);color:var(--v64-on-learning-container,inherit);border-radius:.5rem;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem .75rem;padding:.5rem .75rem;display:flex}.project-selection-gate__team-ai[data-v-bc33f920]{background:rgb(var(--v-theme-warning-container));border:1px solid rgba(var(--v-theme-warning), .35);color:rgb(var(--v-theme-on-warning-container));border-radius:.5rem;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem 1rem;display:flex}.project-selection-gate__team-ai-text[data-v-bc33f920]{gap:.15rem;min-width:min(100%,16rem);display:grid}.project-selection-gate__team-ai-text span[data-v-bc33f920]{opacity:.8}.project-selection-gate__project-name[data-v-bc33f920]{align-items:center;gap:.5rem;display:inline-flex}.project-selection-gate__deleted-text[data-v-bc33f920]{color:rgba(var(--v-theme-on-surface), .72);margin:0}.project-selection-gate__loading[data-v-bc33f920]{flex:auto;min-height:18rem}.project-selection-gate__picker[data-v-bc33f920]{gap:1rem;width:100%;max-width:min(48rem,100%);margin-inline:auto;padding:1rem;display:grid}.project-selection-gate__header[data-v-bc33f920]{justify-content:space-between;align-items:start;min-width:0;display:flex}.project-selection-gate__eyebrow[data-v-bc33f920]{color:rgba(var(--v-theme-on-surface), .62);letter-spacing:0;text-transform:uppercase;margin:0 0 .15rem;font-size:.76rem;font-weight:680}.project-selection-gate__title[data-v-bc33f920]{letter-spacing:0;margin:0;font-size:1.25rem;font-weight:760;line-height:1.15}.project-selection-gate__path[data-v-bc33f920]{color:rgba(var(--v-theme-on-surface), .62);overflow-wrap:anywhere;margin:.35rem 0 0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.82rem}.project-selection-gate__list[data-v-bc33f920]{gap:.45rem;display:grid}.project-selection-gate__project[data-v-bc33f920]{text-transform:none;justify-content:flex-start;min-height:3.1rem}.project-selection-gate__project[data-v-bc33f920] .v-btn__content{place-items:flex-start start;gap:.1rem;min-width:0;display:grid}.project-selection-gate__project-path[data-v-bc33f920]{color:rgba(var(--v-theme-on-surface), .62);text-overflow:ellipsis;white-space:nowrap;max-width:min(38rem,70vw);font-size:.75rem;overflow:hidden}.project-selection-gate__create[data-v-bc33f920]{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.65rem;display:grid}@media (width<=640px){.project-selection-gate__create[data-v-bc33f920]{grid-template-columns:1fr}.project-selection-gate__team-ai .v-btn[data-v-bc33f920]{width:100%}}.local-remotes[data-v-b6fd537f]{flex:none;min-width:0}.local-remotes__branch[data-v-b6fd537f]{min-width:0;max-width:100%}.local-remotes__branch-name[data-v-b6fd537f]{text-overflow:ellipsis;max-width:8rem;display:block;overflow:hidden}.local-remotes__status[data-v-b6fd537f]{color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));align-items:center;gap:.375rem;display:flex}.local-remotes__count[data-v-b6fd537f]{font-variant-numeric:tabular-nums}.local-remotes__details[data-v-b6fd537f]{grid-template-columns:auto minmax(0,1fr);gap:.75rem 1rem;display:grid}.local-remotes__details dt[data-v-b6fd537f]{color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity))}.local-remotes__details dd[data-v-b6fd537f],.local-remotes__message[data-v-b6fd537f]{overflow-wrap:anywhere;margin:0}.local-remotes__url[data-v-b6fd537f]{overflow-wrap:anywhere}.studio-ai-session-archive-dialog[data-v-1b95a4dd]{border:1px solid rgba(var(--v-theme-primary), .32)}.studio-ai-session-archive-dialog__title[data-v-1b95a4dd],.studio-ai-session-archive-dialog__actions[data-v-1b95a4dd]{align-items:center;gap:.55rem;display:flex}.studio-ai-session-archive-dialog__actions[data-v-1b95a4dd]{justify-content:flex-end;padding:0 1rem 1rem}.chat-modes__trigger[data-v-f305cb23]{flex-shrink:0}.chat-modes__details[data-v-f305cb23]{flex-direction:column;max-height:min(560px,75dvh);display:flex}.chat-modes__details-body[data-v-f305cb23]{min-height:0;overflow-y:auto}.chat-modes__model[data-v-f305cb23]{white-space:normal;overflow-wrap:anywhere}.studio-autopilot__composer-delivery[data-v-8610e218]{flex-shrink:0;align-items:center;gap:.25rem;min-width:0;margin-inline-start:auto;display:flex}.studio-autopilot__composer-action[data-v-8610e218]{flex-shrink:0}@container studio-chat-pane (width<=32rem){.studio-autopilot__composer-delivery[data-v-8610e218]{gap:0}.studio-autopilot__composer-action[data-v-8610e218]{width:clamp(2rem,10cqi,2.5rem)}}.ai-task-chat[data-v-37d8010b]{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-width:0;height:100%;min-height:0;display:grid;container:studio-chat-pane/inline-size}.ai-task-chat__ended[data-v-37d8010b]{color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));text-align:center;margin:0;padding:.5rem 1rem;font-size:.875rem}.ai-task-chat__loading[data-v-37d8010b]{color:rgba(var(--v-theme-on-surface), .72);place-self:center;margin:0}.ai-task-chat__composer[data-v-37d8010b]{flex:none;width:calc(100% - 1rem);margin:0 auto .5rem}.ai-task-chat__composer-actions[data-v-37d8010b]{align-items:center;gap:.25rem;width:100%;min-width:0;display:flex}.ai-task-chat__feedback[data-v-37d8010b]{flex:none;min-width:0;max-height:min(12dvh,6rem);overflow-y:auto}.ai-task-chat__error[data-v-37d8010b]{color:rgb(var(--v-theme-error));margin:0;padding:.3rem .55rem;font-size:.82rem}.ai-task-host__output[data-v-aab6b377]{background:rgba(var(--v-theme-on-surface), .04);white-space:pre-wrap;border-radius:.5rem;max-height:12rem;margin:0;padding:.625rem .75rem;font-size:.8125rem;overflow:auto}.setup-tools[data-v-d82209b5]{gap:var(--v64-space-2,8px);margin-top:var(--v64-space-2,8px);display:grid}.setup-tools__header[data-v-d82209b5]{gap:2px;padding-inline:2px;display:grid}.setup-tools__header strong[data-v-d82209b5]{font:var(--v64-type-title-md);font-size:.9375rem}.setup-tools__header span[data-v-d82209b5]{color:rgb(var(--v-theme-on-surface-variant));font:var(--v64-type-body-md)}.setup-tools__found[data-v-d82209b5]{color:rgb(var(--v-theme-on-surface-variant));align-items:baseline;gap:6px;margin:0;padding-inline:2px;font-size:.8125rem;display:flex}.setup-tools__found .v-icon[data-v-d82209b5]{color:rgb(var(--v-theme-success));flex:none;transform:translateY(2px)}.setup-tools__found-item[data-v-d82209b5]{margin-left:4px}.setup-tools__found-item code[data-v-d82209b5]{overflow-wrap:anywhere;background:0 0;margin-left:4px;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.75rem}.vibe64-terminal-surface.vibe64-temporary-action-terminal.vibe64-temporary-action-terminal--error{border-inline-start:.25rem solid rgb(var(--v-theme-error))}.vibe64-temporary-action-terminal .vibe64-terminal-surface__header{flex-direction:column;align-items:stretch;gap:.5rem;margin-bottom:0}.vibe64-temporary-action-terminal .vibe64-terminal-surface__body{margin-top:.5rem}.vibe64-temporary-action-terminal__summary[data-v-ef863d9d]{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title status";align-items:center;gap:.5rem;min-width:0;display:grid}.vibe64-temporary-action-terminal__title[data-v-ef863d9d]{grid-area:title;font-size:.88rem}.vibe64-temporary-action-terminal__status[data-v-ef863d9d]{grid-area:status}.vibe64-temporary-action-terminal--error .vibe64-temporary-action-terminal__line[data-v-ef863d9d]{-webkit-line-clamp:3;line-clamp:3;overflow-wrap:anywhere;white-space:normal;-webkit-box-orient:vertical;flex-basis:100%;display:-webkit-box}.vibe64-temporary-action-terminal__title[data-v-ef863d9d],.vibe64-temporary-action-terminal__line[data-v-ef863d9d]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.vibe64-temporary-action-terminal__line[data-v-ef863d9d]{color:rgba(var(--v-theme-on-surface), .72);flex:1 1 0;order:-1;min-width:0;font-size:.82rem}.studio-autopilot__checkpoint-notice summary[data-v-24c593c2]{cursor:pointer}.studio-autopilot__checkpoint-details[data-v-24c593c2]{overflow-wrap:anywhere;white-space:pre-wrap;max-height:8rem;overflow:auto}.studio-autopilot__activity[data-v-24c593c2]{grid-row:2;grid-auto-rows:max-content;gap:.3rem;min-width:0;max-height:min(24dvh,12rem);padding:.35rem .5rem;display:grid;overflow:auto}.studio-autopilot__activity[data-v-24c593c2]:has(.db-server--attention){max-height:min(80dvh,52rem)}.studio-autopilot__activity[data-v-24c593c2]:has(.setup-tools:not(.setup-tools--quiet)){max-height:min(60dvh,34rem)}.studio-autopilot__activity[data-v-24c593c2]:has(.git-stand-in){max-height:min(60dvh,26rem)}.studio-autopilot__activity[data-v-24c593c2]:empty{padding:0;display:none}.studio-autopilot__connection-recovery[data-v-24c593c2]{background:rgba(var(--v-theme-primary), .08);border:1px solid rgba(var(--v-theme-primary), .24);color:rgb(var(--v-theme-on-surface));grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:.5rem;padding:.25rem .5rem;display:grid}.studio-autopilot__connection-recovery>span[data-v-24c593c2]{overflow-wrap:anywhere;min-width:0}.studio-autopilot__connection-actions[data-v-24c593c2]{flex-direction:column;align-items:flex-start;gap:.25rem;display:flex}.agent-plan-usage[data-v-c9d31ed1]{text-transform:none;max-width:100%;font-size:.7rem}.agent-plan-usage__details[data-v-c9d31ed1]{white-space:pre-line;margin-block:.5rem}.agent-plan-usage__goal-text[data-v-c9d31ed1]{white-space:pre-wrap;overflow-wrap:anywhere}.action-label-pending[data-v-cf50198c]{visibility:hidden}.vibe64-routing-notice[data-v-cf50198c] .v-alert__content{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}details[data-v-cf50198c]{flex:13rem;min-width:0}details[open][data-v-cf50198c]{flex-basis:100%}.vibe64-routing-notice__actions[data-v-cf50198c]{flex:none;max-width:100%}.vibe64-routing-notice__actions[data-v-cf50198c] .v-btn{padding-inline:8px}summary[data-v-cf50198c]{cursor:pointer;overflow-wrap:anywhere;align-content:center;min-height:32px}@media (pointer:coarse){summary[data-v-cf50198c]{min-height:44px}}.work-plan-control[data-v-eecf64a4]{flex:none;align-items:center;display:inline-flex}.work-plan-content[data-v-eecf64a4]{overflow-wrap:anywhere;min-height:0}.work-plan-archive-context[data-v-eecf64a4]{flex:none;align-items:center;gap:.5rem;display:flex}.work-plan-archive-copy[data-v-eecf64a4]{min-width:0}.work-plan-history-title[data-v-eecf64a4]{white-space:normal;overflow-wrap:anywhere;flex:1;min-width:0}.work-plan-empty[data-v-eecf64a4]{flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:12rem;display:flex}.work-plan-item[data-v-eecf64a4]{align-items:flex-start;gap:.75rem;margin-block:.5rem;display:flex}.work-plan-item input[data-v-eecf64a4]{opacity:1;width:1.1rem;height:1.1rem;accent-color:rgb(var(--v-theme-primary));flex:none;margin-top:.25rem}.work-plan-item[data-v-eecf64a4]>:last-child{flex:1;min-width:0}.starred-menu[data-v-7ad67948]{flex-direction:column;gap:.5rem;width:min(25rem,100vw - 1rem);max-height:min(32rem,75dvh);padding:.75rem;display:flex}.starred-menu__header[data-v-7ad67948]{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem;display:grid}.starred-menu__list[data-v-7ad67948]{overscroll-behavior:contain;gap:.5rem;min-height:0;display:grid;overflow-y:auto}.starred-menu__heading[data-v-7ad67948]{letter-spacing:.06em;text-transform:uppercase;color:rgba(var(--v-theme-on-surface), .7);margin:0;padding:0 .5rem;font-size:.75rem;font-weight:600}@media (width<=599px){.starred-menu[data-v-7ad67948]{width:100%;padding-bottom:max(.75rem, env(safe-area-inset-bottom))}}.vibe64-approvals[data-v-69fa8c70]{min-width:0}.vibe64-approvals__stack[data-v-69fa8c70]{max-height:min(40vh,26rem);padding:0 0 .5rem;display:block;overflow-y:auto}.vibe64-approvals--phone .vibe64-approvals__stack[data-v-69fa8c70]{max-height:none;padding:0}.vibe64-approvals__panel[data-v-69fa8c70]{background:0 0}.vibe64-approvals__panel--sheet[data-v-69fa8c70]{background:rgb(var(--v-theme-surface));max-height:85vh;padding:0 1rem calc(1rem + env(safe-area-inset-bottom));overflow-y:auto}.vibe64-approvals__sheet-header[data-v-69fa8c70]{justify-content:space-between;align-items:center;min-height:3.5rem;display:flex}.vibe64-approvals__list[data-v-69fa8c70]{flex-direction:column;gap:.5rem;display:flex}.vibe64-approvals__card[data-v-69fa8c70]{padding:.75rem}.vibe64-approvals__head[data-v-69fa8c70]{align-items:center;gap:.625rem;min-width:0;display:flex}.vibe64-approvals__avatar[data-v-69fa8c70]{font-weight:600}.vibe64-approvals__who[data-v-69fa8c70]{flex:auto;min-width:0}.vibe64-approvals__text[data-v-69fa8c70]{overflow-wrap:anywhere;white-space:pre-wrap;margin:.5rem 0 0}.vibe64-approvals__note[data-v-69fa8c70]{margin:.375rem 0 0}.vibe64-approvals__draft[data-v-69fa8c70]{margin-top:.5rem}.vibe64-approvals__actions[data-v-69fa8c70]{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;margin-top:.5rem;display:flex}.vibe64-approvals__actions--owner[data-v-69fa8c70]{justify-content:flex-start}.vibe64-approvals--phone .vibe64-approvals__actions[data-v-69fa8c70]{flex-direction:column-reverse}.vibe64-approvals--phone .vibe64-approvals__actions--owner[data-v-69fa8c70]{flex-direction:column}.vibe64-approvals__decided[data-v-69fa8c70]{flex-direction:column;gap:.25rem;margin:0;padding:0 .25rem;list-style:none;display:flex}.vibe64-approvals__row-line[data-v-69fa8c70]{align-items:center;gap:.5rem;min-width:0;min-height:2rem;display:flex}.vibe64-approvals__row-text[data-v-69fa8c70]{overflow-wrap:anywhere;flex:auto;min-width:0}.vibe64-approvals__show[data-v-69fa8c70]{flex-shrink:0}.vibe64-approvals__excerpt[data-v-69fa8c70]{color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));min-width:0;margin:0 0 .25rem 1.625rem}p.vibe64-approvals__excerpt[data-v-69fa8c70],.vibe64-approvals__excerpt summary[data-v-69fa8c70]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.vibe64-approvals__excerpt summary[data-v-69fa8c70]{cursor:pointer;display:block}.vibe64-approvals__excerpt[open] summary[data-v-69fa8c70]{overflow-wrap:anywhere;white-space:pre-wrap}.vibe64-approvals__quote[data-v-69fa8c70]{border-inline-start:3px solid rgba(var(--v-theme-error), .5);color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));overflow-wrap:anywhere;margin:0 0 .25rem 1.625rem;padding-inline-start:.5rem}.vibe64-approvals__bar[data-v-69fa8c70]{background:rgba(var(--v-theme-secondary), .08);border:1px solid rgba(var(--v-theme-secondary), .35);color:rgb(var(--v-theme-on-surface));text-align:start;border-radius:12px;align-items:center;gap:.5rem;width:100%;min-height:48px;margin-bottom:.5rem;padding:0 .75rem;display:flex}.vibe64-approvals__bar-label[data-v-69fa8c70]{flex:auto;min-width:0;font-weight:500}.vibe64-temporary-ai__recovery-row[data-v-a85ab0b5]:not(:empty){max-height:min(20dvh,8rem);padding:.35rem .55rem 0;overflow-y:auto}.vibe64-temporary-ai__unread[data-v-e679a29f]{background:rgb(var(--v-theme-primary));border-radius:50%;flex:0 0 8px;height:8px}.vibe64-temporary-ai__tabs[data-v-e679a29f]{--vibe64-temporary-ai-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");align-items:flex-start;gap:.25rem;padding:.25rem .35rem;display:flex}.vibe64-temporary-ai__task-tabs[data-v-e679a29f]{scrollbar-width:thin;flex:auto;gap:.25rem;min-width:0;margin:-.25rem -.25rem -.25rem 0;padding:.25rem;display:flex;overflow-x:auto}.vibe64-temporary-ai__tab[data-v-e679a29f]{border:1px solid rgb(var(--v-theme-outline-variant));border-radius:var(--v64-shape-full);color:rgb(var(--v-theme-on-surface-variant));isolation:isolate;flex:none;align-items:center;max-width:100%;min-height:2rem;padding-left:.15rem;display:inline-flex;position:relative}.vibe64-temporary-ai__tab-select[data-v-e679a29f]{color:inherit;cursor:pointer;background:0 0;border:0;align-self:stretch;align-items:center;gap:.35rem;min-width:0;padding:.2rem .35rem .2rem .55rem;font-weight:500;display:inline-flex}.vibe64-temporary-ai__tab-select[data-v-e679a29f]:after{border-radius:var(--v64-shape-full);content:"";opacity:0;pointer-events:none;transition:opacity var(--v64-duration-short) var(--v64-ease-standard);z-index:-1;background:currentColor;position:absolute;inset:0}.vibe64-temporary-ai__tab-select[data-v-e679a29f]:hover:after{opacity:var(--v64-state-hover)}.vibe64-temporary-ai__tab-select[data-v-e679a29f]:focus-visible:after{opacity:var(--v64-state-focus)}.vibe64-temporary-ai__tab-select[data-v-e679a29f]:active:after{opacity:var(--v64-state-pressed)}.vibe64-temporary-ai__tab-select>span[data-v-e679a29f]:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.vibe64-temporary-ai__tab-rename[data-v-e679a29f],.vibe64-temporary-ai__tab-close[data-v-e679a29f]{flex:none}.vibe64-temporary-ai__tab-select[data-v-e679a29f]:focus-visible{outline:none}.vibe64-temporary-ai__tab[data-v-e679a29f]:has(>.vibe64-temporary-ai__tab-select:focus-visible){outline:var(--v64-focus-ring-width) solid rgb(var(--v-theme-primary));outline-offset:var(--v64-focus-ring-offset)}.vibe64-temporary-ai__tab--active[data-v-e679a29f]{background:rgb(var(--v-theme-secondary-container));color:rgb(var(--v-theme-on-secondary-container));border-color:#0000}.vibe64-temporary-ai__tab--active>.vibe64-temporary-ai__tab-select[data-v-e679a29f]:before{content:"";height:1.125rem;-webkit-mask:var(--vibe64-temporary-ai-check) center / contain no-repeat;-webkit-mask:var(--vibe64-temporary-ai-check) center / contain no-repeat;mask:var(--vibe64-temporary-ai-check) center / contain no-repeat;background:currentColor;flex:none;width:1.125rem}.vibe64-temporary-ai__new-task[data-v-e679a29f]{flex:none}.vibe64-temporary-ai__tabs-spacer[data-v-e679a29f]{flex:auto}.vibe64-temporary-ai__busy[data-v-e679a29f]{background:rgb(var(--v-theme-primary));border-radius:50%;width:.45rem;height:.45rem}@media (pointer:coarse){.vibe64-temporary-ai__tab-select[data-v-e679a29f]{min-width:3rem!important;min-height:3rem!important}}.vibe64-temporary-ai__composer-actions[data-v-716f5631]{align-items:center;gap:.25rem;width:100%;min-width:0;display:flex}.vibe64-temporary-ai[data-v-716f5631]{background:rgb(var(--v-theme-surface));border:1px solid rgb(var(--v-theme-outline-variant));box-shadow:0 14px 38px rgba(var(--v-theme-shadow), .22);z-index:12;border-radius:12px;grid-row:3/-1;grid-template-rows:auto auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-height:0;display:grid;position:absolute;inset:0 .3rem .3rem;overflow:hidden}.vibe64-temporary-ai[data-v-716f5631]:focus-visible{outline:2px solid rgb(var(--v-theme-primary));outline-offset:2px}.vibe64-temporary-ai__composer[data-v-716f5631]{flex:none}.vibe64-temporary-ai__error[data-v-716f5631]{color:rgba(var(--v-theme-on-surface), .66);font-size:.82rem}.vibe64-temporary-ai__feedback[data-v-716f5631]{flex:none;min-width:0;max-height:min(12dvh,6rem);overflow-y:auto}.vibe64-temporary-ai__error[data-v-716f5631]{color:rgb(var(--v-theme-error));padding:.3rem .55rem}@media (width<=720px){.vibe64-temporary-ai[data-v-716f5631]{z-index:30;border:0;border-radius:0;inset:0}}.studio-autopilot__reasoning-dots[data-v-20e60f61]{clip-path:inset(0 66.666% 0 0);animation:1.5s step-end infinite reasoning-dots-20e60f61;display:inline-block}@keyframes reasoning-dots-20e60f61{33%{clip-path:inset(0 33.333% 0 0)}66%{clip-path:inset(0)}}@media (prefers-reduced-motion:reduce){.studio-autopilot__reasoning-dots[data-v-20e60f61]{clip-path:none;animation:none}}.studio-autopilot__conversation[data-v-20e60f61]{grid-row:3;min-width:0;min-height:0}.studio-autopilot__composer[data-v-20e60f61]{border-top:1px solid rgb(var(--v-theme-outline-variant));box-sizing:border-box;flex:none;width:100%;min-width:0;max-width:100%;padding:4px;overflow:hidden}.studio-autopilot__composer-actions[data-v-20e60f61]{align-items:center;gap:.25rem clamp(0rem,4% - 1.25rem,.5rem);width:100%;min-width:0;display:flex}.studio-autopilot__approval-send[data-v-20e60f61]{flex-shrink:0;margin-inline-start:auto}.studio-autopilot__settings-access[data-v-20e60f61]{grid-column:1/-1}.studio-autopilot__composer-action[data-v-20e60f61]{flex-shrink:0}.studio-autopilot__assistant-button[data-v-20e60f61]{align-items:center;display:flex;position:relative}.studio-autopilot__assistant-button-label[data-v-20e60f61]{z-index:1;border:1px solid rgba(var(--v-theme-on-surface), .25);background:rgb(var(--v-theme-surface-light));color:rgb(var(--v-theme-on-surface));white-space:nowrap;letter-spacing:0;text-transform:none;border-radius:3px;padding:0 4px;font-size:9px;font-weight:600;line-height:11px;position:absolute;top:100%;left:50%;transform:translate(max(-50%,-2.5rem))}@container studio-chat-pane (width<=32rem){.studio-autopilot__composer-actions[data-v-20e60f61]{gap:0}.studio-autopilot__composer-actions .studio-autopilot__composer-action[data-v-20e60f61]{width:clamp(2rem,10cqi,2.5rem)}.studio-autopilot__composer-actions[data-v-20e60f61] button{flex-shrink:1;min-width:min-content;padding-inline:.25rem}}.studio-autopilot__composer-menu[data-v-20e60f61]{flex-direction:column;gap:.4rem;max-width:calc(100vw - 24px);display:flex}.studio-autopilot__voice-feedback[data-v-20e60f61]{flex:100%;min-width:0}.vibe64-save-target[data-v-db9660a0]{overflow-wrap:anywhere;flex-wrap:wrap;align-items:center;gap:.2rem .35rem;max-width:100%;display:inline-flex}.vibe64-save-target__repository[data-v-db9660a0]{flex:1 0 100%}.vibe64-save-target__separator[data-v-db9660a0]{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.vibe64-save-target__branch[data-v-db9660a0]{border:1px solid color-mix(in srgb, currentColor 45%, transparent);border-radius:999px;max-width:100%;padding:0 .5rem;font-weight:600;line-height:1.35}.vibe64-save-target--off-main .vibe64-save-target__branch[data-v-db9660a0]{background:rgb(var(--v-theme-warning));color:rgb(var(--v-theme-on-warning));border-color:#0000}.vibe64-save-target__note[data-v-db9660a0]{font-weight:600}.project-preview[data-v-513e8b8e]{flex-direction:column;min-width:0;height:100%;min-height:0;display:flex}.project-preview__output[data-v-513e8b8e]{flex:1;min-height:0}.project-preview__warning[data-v-513e8b8e]{overflow-wrap:anywhere;flex:none;max-height:35%;overflow-y:auto}.project-preview__warning p[data-v-513e8b8e]{margin:.25rem 0}.project-preview__warning-actions[data-v-513e8b8e]{flex-wrap:wrap;align-items:center;gap:.25rem .5rem;margin-top:.25rem;display:flex}.project-preview__warning-actions button[data-v-513e8b8e]:disabled{opacity:.6}.project-onboarding[data-v-513e8b8e]{width:min(100%,52rem);margin:auto;padding:clamp(1rem,3vw,2.5rem);overflow-y:auto}.project-onboarding h2[data-v-513e8b8e]{margin-bottom:1rem;font-size:1.6rem;line-height:1.25}.project-onboarding p[data-v-513e8b8e]{margin-bottom:1.25rem;line-height:1.6}.project-onboarding__eyebrow[data-v-513e8b8e]{letter-spacing:.06em;text-transform:uppercase;opacity:.65;font-size:.8rem;font-weight:700}.project-onboarding__group[data-v-513e8b8e]{margin-block:1.5rem}.project-onboarding__group h3[data-v-513e8b8e]{margin-bottom:.75rem}.project-onboarding__choices[data-v-513e8b8e]{grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem;display:grid}.project-onboarding__choice[data-v-513e8b8e]{text-align:left;border:1px solid rgba(var(--v-theme-on-surface), .16);background:rgb(var(--v-theme-surface));color:inherit;border-radius:1rem;flex-direction:column;gap:.7rem;padding:1.25rem;display:flex}.project-onboarding__choice[data-v-513e8b8e]:not(:disabled):hover{border-color:rgb(var(--v-theme-primary));background:rgba(var(--v-theme-primary), .05)}.project-onboarding__choice[data-v-513e8b8e]:focus-visible{outline:2px solid rgb(var(--v-theme-primary));outline-offset:3px}.project-onboarding__choice[data-v-513e8b8e]:disabled{opacity:.55}.project-onboarding__choice span[data-v-513e8b8e]{font-size:.9rem;line-height:1.5}.project-onboarding__choose[data-v-513e8b8e]{color:rgb(var(--v-theme-primary));margin-top:auto;padding-top:.5rem;font-weight:600}.project-onboarding__actions[data-v-513e8b8e]{flex-wrap:wrap;gap:.75rem;display:flex}.vibe64-learning-finished[data-v-570dccf9]{gap:var(--v64-space-3,12px);max-width:40rem;padding:var(--v64-space-6,32px) var(--v64-space-5,24px);justify-items:start;max-height:100%;margin:0 auto;display:grid;overflow-y:auto}.vibe64-learning-finished[data-v-570dccf9]>*{max-width:100%;margin:0}.vibe64-learning-finished__mark[data-v-570dccf9]{color:rgb(var(--v-theme-success))}.vibe64-learning-finished__eyebrow[data-v-570dccf9]{font:var(--v64-type-label-md,500 .75rem/1rem system-ui, sans-serif);letter-spacing:.06em;text-transform:uppercase;color:rgb(var(--v-theme-on-surface-variant))}.vibe64-learning-finished h2[data-v-570dccf9]{font:var(--v64-type-headline-sm,600 1.5rem/2rem system-ui, sans-serif);overflow-wrap:anywhere}.vibe64-learning-finished__hint[data-v-570dccf9]{color:rgb(var(--v-theme-on-surface-variant));align-items:center;display:flex}.vibe64-learning-finished__actions[data-v-570dccf9]{gap:var(--v64-space-2,8px);flex-wrap:wrap;display:flex}.vibe64-learning-finished__error[data-v-570dccf9]{color:rgb(var(--v-theme-error))}.vibe64-learning-finished .v-btn[data-v-570dccf9]{letter-spacing:0;text-transform:none}.vibe64-training-visual[data-v-ec1308da]{gap:var(--v64-space-2,8px);flex-direction:column;min-width:0;display:flex}.vibe64-training-visual__frame[data-v-ec1308da]{border:1px solid rgb(var(--v-theme-outline-variant));border-radius:var(--v64-shape-lg,16px);background:rgb(var(--v-theme-surface-container-lowest));box-shadow:var(--v64-elevation-1);animation:vibe64-training-visual-rise-ec1308da var(--v64-duration-long,.5s) var(--v64-ease-emphasized-decelerate,ease-out);overflow:hidden}.vibe64-training-visual__bar[data-v-ec1308da]{align-items:center;gap:var(--v64-space-2,8px);min-height:40px;padding:0 var(--v64-space-4,16px);background:rgb(var(--v-theme-surface-container));border-bottom:1px solid rgb(var(--v-theme-outline-variant));display:flex}.vibe64-training-visual__bar-icon[data-v-ec1308da]{color:rgb(var(--v-theme-primary));flex:none}.vibe64-training-visual__bar-title[data-v-ec1308da]{text-overflow:ellipsis;white-space:nowrap;min-width:0;font:var(--v64-type-label-lg,500 .875rem/1.25rem system-ui, sans-serif);overflow:hidden}.vibe64-training-visual__canvas[data-v-ec1308da]{position:relative}.vibe64-training-visual iframe[data-v-ec1308da]{border:0;width:100%;height:min(60vh,32rem);min-height:16rem;display:block}.vibe64-training-visual__loading[data-v-ec1308da]{position:absolute;inset:0}.vibe64-training-visual p[data-v-ec1308da]{overflow-wrap:anywhere;margin:0}.vibe64-training-visual__caption[data-v-ec1308da]{padding:var(--v64-space-3,12px) var(--v64-space-4,16px);border-radius:var(--v64-shape-md,12px);border-inline-start:4px solid var(--v64-learning);background:rgb(var(--v-theme-surface-container-low))}.vibe64-training-visual__error[data-v-ec1308da]{align-items:center;gap:var(--v64-space-3,12px);padding:var(--v64-space-3,12px) var(--v64-space-4,16px);border-radius:var(--v64-shape-lg,16px);background:rgb(var(--v-theme-error-container));color:rgb(var(--v-theme-on-surface));flex-wrap:wrap;display:flex}.vibe64-training-visual__error p[data-v-ec1308da]{flex:12rem;min-width:0}.vibe64-training-visual__error-icon[data-v-ec1308da]{color:rgb(var(--v-theme-error));flex:none}.vibe64-training-visual__error .v-btn[data-v-ec1308da]{letter-spacing:0;text-transform:none}@keyframes vibe64-training-visual-rise-ec1308da{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.vibe64-training-visual__frame[data-v-ec1308da]{animation:none}}.vibe64-learning-step h2[data-v-ae22a592]{font:var(--v64-type-headline-sm,600 1.5rem/2rem system-ui, sans-serif);margin:0 0 var(--v64-space-3,12px);overflow-wrap:anywhere}.vibe64-learning-step__eyebrow[data-v-ae22a592]{font:var(--v64-type-label-md,500 .75rem/1rem system-ui, sans-serif);letter-spacing:.06em;text-transform:uppercase;color:rgb(var(--v-theme-on-surface-variant));margin:0 0 4px}.vibe64-learning-step__visual[data-v-ae22a592],.vibe64-learning-step__check[data-v-ae22a592]{gap:var(--v64-space-3,12px);margin-block:var(--v64-space-5,24px);justify-items:start;display:grid}.vibe64-learning-step__visual[data-v-ae22a592]>:first-child{justify-self:stretch}.vibe64-learning-step__check[data-v-ae22a592]{padding:var(--v64-space-4,16px);border-radius:var(--v64-shape-lg,16px);background:rgb(var(--v-theme-surface-container-low))}.vibe64-learning-step__check h3[data-v-ae22a592]{font:var(--v64-type-title-md,600 1.125rem/1.5rem system-ui, sans-serif);margin:0}.vibe64-learning-step__hint[data-v-ae22a592],.vibe64-learning-step__note[data-v-ae22a592]{color:rgb(var(--v-theme-on-surface-variant));margin:0}.vibe64-learning-step__status[data-v-ae22a592]{font-weight:600}.vibe64-learning-step__status.is-passed[data-v-ae22a592]{color:rgb(var(--v-theme-success))}.vibe64-learning-step__error[data-v-ae22a592]{color:rgb(var(--v-theme-error))}.vibe64-learning-step__actions[data-v-ae22a592],.vibe64-learning-step__pager[data-v-ae22a592]{gap:var(--v64-space-2,8px);margin-top:var(--v64-space-4,16px);flex-wrap:wrap;display:flex}.vibe64-learning-step__pager[data-v-ae22a592]{justify-content:space-between;align-items:center}.vibe64-learning-step__pager-end[data-v-ae22a592]{justify-content:flex-end;align-items:center;gap:var(--v64-space-2,8px);flex-wrap:wrap;margin-inline-start:auto;display:flex}.vibe64-learning-step .v-btn[data-v-ae22a592]{letter-spacing:0;text-transform:none}.vibe64-learning-reader-frame[data-v-b9bfdb4e]{height:100%;min-height:0;container-type:inline-size}.vibe64-learning-reader[data-v-b9bfdb4e]{gap:var(--v64-space-4,16px);grid-template-columns:minmax(14rem,18rem) minmax(0,1fr);height:100%;min-height:0;display:grid}.vibe64-learning-reader__alert[data-v-b9bfdb4e]{grid-column:1/-1}.vibe64-learning-reader__steps[data-v-b9bfdb4e]{min-height:0;padding:var(--v64-space-4,16px);border-inline-end:1px solid rgb(var(--v-theme-outline-variant));overflow-y:auto}.vibe64-learning-reader__steps ol[data-v-b9bfdb4e]{margin:var(--v64-space-3,12px) 0;gap:4px;padding:0;list-style:none;display:grid}.vibe64-learning-reader__lesson[data-v-b9bfdb4e]{gap:2px;margin:0;display:grid}.vibe64-learning-reader__code[data-v-b9bfdb4e]{font:var(--v64-type-label-md,500 .75rem/1rem system-ui, sans-serif);color:rgb(var(--v-theme-on-surface-variant))}.vibe64-learning-reader__step[data-v-b9bfdb4e]{border-radius:var(--v64-shape-md,12px);color:inherit;cursor:pointer;align-items:center;gap:2px var(--v64-space-3,12px);min-height:48px;padding:6px var(--v64-space-2,8px);text-align:start;background:0 0;border:0;grid-template-columns:28px minmax(0,1fr);width:100%;display:grid}.vibe64-learning-reader__step[data-v-b9bfdb4e]:hover{background:rgb(var(--v-theme-surface-container))}.vibe64-learning-reader__step.is-current[data-v-b9bfdb4e]{background:rgb(var(--v-theme-surface));box-shadow:inset 0 0 0 2px var(--v64-learning-strong);color:rgb(var(--v-theme-on-surface))}.vibe64-learning-reader__step[data-v-b9bfdb4e]:focus-visible{outline:2px solid rgb(var(--v-theme-primary));outline-offset:2px}.vibe64-learning-reader__step-mark[data-v-b9bfdb4e]{border:1.5px solid;border-radius:50%;grid-row:span 2;justify-content:center;align-items:center;width:26px;height:26px;font-size:.8rem;font-weight:700;display:inline-flex}.vibe64-learning-reader__step.is-passed .vibe64-learning-reader__step-mark[data-v-b9bfdb4e]{background:rgb(var(--v-theme-success));border-color:rgb(var(--v-theme-success));color:rgb(var(--v-theme-on-success))}.vibe64-learning-reader__step-title[data-v-b9bfdb4e]{overflow-wrap:anywhere;font-weight:600}.vibe64-learning-reader__step-status[data-v-b9bfdb4e]{color:rgb(var(--v-theme-on-surface-variant));font-size:.75rem}.vibe64-learning-reader__summary[data-v-b9bfdb4e]{gap:var(--v64-space-2,8px);justify-items:start;display:grid}.vibe64-learning-reader__complete[data-v-b9bfdb4e]{color:rgb(var(--v-theme-success));margin:0;font-weight:600}.vibe64-learning-reader__complete-short[data-v-b9bfdb4e]{display:none}.vibe64-learning-reader__body[data-v-b9bfdb4e]{min-height:0;padding:var(--v64-space-4,16px) var(--v64-space-5,24px) var(--v64-space-6,32px);width:100%;max-width:52rem;overflow-y:auto}.vibe64-learning-reader__notes[data-v-b9bfdb4e]{margin-top:var(--v64-space-5,24px)}.vibe64-learning-reader .v-btn[data-v-b9bfdb4e]{letter-spacing:0;text-transform:none}@container (width<=760px){.vibe64-learning-reader[data-v-b9bfdb4e]{grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:0}.vibe64-learning-reader__steps[data-v-b9bfdb4e]{border-inline-end:0;border-bottom:1px solid rgb(var(--v-theme-outline-variant));padding:var(--v64-space-2,8px) var(--v64-space-3,12px)}.vibe64-learning-reader__steps ol[data-v-b9bfdb4e]{margin:var(--v64-space-2,8px) 0 0;display:flex;overflow-x:auto}.vibe64-learning-reader__step[data-v-b9bfdb4e]{grid-template-columns:28px;justify-items:center;min-width:48px}.vibe64-learning-reader__step-title[data-v-b9bfdb4e],.vibe64-learning-reader__step-status[data-v-b9bfdb4e]{display:none}.vibe64-learning-reader__summary[data-v-b9bfdb4e]{align-items:center;gap:4px var(--v64-space-2,8px);margin-top:var(--v64-space-2,8px);flex-wrap:wrap;display:flex}.vibe64-learning-reader__complete[data-v-b9bfdb4e]{font-size:.875rem}.vibe64-learning-reader__complete-long[data-v-b9bfdb4e]{display:none}.vibe64-learning-reader__complete-short[data-v-b9bfdb4e]{display:inline}.vibe64-learning-reader__body[data-v-b9bfdb4e]{padding:var(--v64-space-3,12px) var(--v64-space-4,16px) var(--v64-space-6,32px)}}.vibe64-learning-lesson-pane[data-v-e622ed16]{background:var(--v64-learning-container,rgb(var(--v-theme-surface)));color:rgb(var(--v-theme-on-surface));min-width:0;height:100%;min-height:0;overflow:hidden}.vibe64-learning-lesson-pane__scroll[data-v-e622ed16]{height:100%;overflow-y:auto}.vibe64-lesson-sheet[data-v-b82e0028]{background:var(--v64-learning-container,rgb(var(--v-theme-surface)));border:1px solid var(--v64-learning-strong);border-radius:var(--v64-shape-md,12px);box-shadow:0 6px 24px rgba(var(--v-theme-shadow), .22);z-index:3;flex-direction:column;min-height:0;display:flex;position:absolute;inset:0;overflow:hidden}.vibe64-lesson-sheet__header[data-v-b82e0028]{border-bottom:1px solid var(--v64-learning-strong);color:var(--v64-on-learning-container,inherit);align-items:center;gap:var(--v64-space-2,8px);flex:none;min-height:44px;padding:4px 8px 4px 12px;display:flex}.vibe64-lesson-sheet__title[data-v-b82e0028]{flex:auto;font-weight:700}.vibe64-lesson-sheet__hide[data-v-b82e0028]{letter-spacing:0;text-transform:none}.vibe64-lesson-sheet__pane[data-v-b82e0028]{flex:auto;height:auto}.studio-autopilot__project-panel[data-v-fb09fcbe],.studio-autopilot__dashboard-shell[data-v-fb09fcbe],.studio-autopilot__right-pane-page[data-v-fb09fcbe],.studio-autopilot__session-tool-pane[data-v-fb09fcbe],.studio-autopilot__session-tool-content[data-v-fb09fcbe]{min-width:0;height:100%;min-height:0}.studio-autopilot__project-panel[data-v-fb09fcbe]{contain:strict;position:relative;overflow:hidden}.studio-autopilot__right-pane-page[data-v-fb09fcbe]{overflow:auto}.studio-autopilot__session-tool-pane[data-v-fb09fcbe]{grid-template-rows:minmax(0,1fr);display:grid}.studio-autopilot__session-tool-pane[data-v-fb09fcbe]:has(>.studio-autopilot__session-tool-header){grid-template-rows:auto minmax(0,1fr)}.studio-autopilot__architecture-pane[data-v-fb09fcbe]{grid-template-rows:minmax(0,1fr);overflow:hidden}.studio-autopilot__session-tool-header[data-v-fb09fcbe]{background:rgb(var(--v-theme-surface-container-low));border-bottom:1px solid rgb(var(--v-theme-outline-variant));min-height:3rem;padding:var(--v64-space-1) var(--v64-space-2);align-items:center;gap:.4rem;display:flex}.studio-autopilot__session-tool-pane>.studio-autopilot__right-pane-page[data-v-fb09fcbe]{padding:var(--v64-space-3) var(--v64-space-4) var(--v64-space-4)}.studio-autopilot__session-tool-content[data-v-fb09fcbe]{overflow:hidden}.studio-autopilot__preview-launch[data-v-fb09fcbe]{height:100%}.studio-autopilot__architecture-file[data-v-fb09fcbe]{background:rgb(var(--v-theme-surface));border-radius:12px;flex-direction:column;height:min(84dvh,850px);min-height:0;display:flex;overflow:hidden}.studio-autopilot__architecture-file>header[data-v-fb09fcbe]{border-bottom:1px solid rgba(var(--v-theme-on-surface), .12);justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;display:flex}.studio-autopilot__architecture-file>header strong[data-v-fb09fcbe]{overflow-wrap:anywhere;font-size:14px}.studio-autopilot__architecture-file>.vibe64-source-editor[data-v-fb09fcbe]{flex:1;min-height:0}.studio-ai-sessions__create-button[data-v-911e78a2]{border:1px solid #0000;border-radius:999px;width:3rem;min-width:3rem;height:3rem;min-height:3rem;position:relative;overflow:visible;background:var(--studio-control-rest-bg,rgb(var(--v-theme-surface-container-high)))!important;box-shadow:none!important;color:rgb(var(--v-theme-primary))!important}.studio-ai-sessions__create-button[data-v-911e78a2]:hover{background:var(--studio-control-active-bg,rgb(var(--v-theme-secondary-container)))!important}.studio-ai-sessions__create-button[data-v-911e78a2] .v-icon{color:currentColor;font-size:1.15rem}.studio-ai-sessions__create-button--attention[data-v-911e78a2]:not(.v-btn--disabled){border-color:color-mix(in srgb, rgb(var(--v-theme-primary)) 36%, transparent)}.studio-ai-sessions__create-button--attention[data-v-911e78a2]:not(.v-btn--disabled):after{border-radius:inherit;content:"";opacity:0;pointer-events:none;transform-origin:50%;will-change:opacity, transform;border:2px solid;animation:6s ease-out infinite studio-ai-session-create-pulse-911e78a2;position:absolute;inset:-.18rem;transform:scale(1)translateZ(0)}.studio-ai-sessions__preview-create-button[data-v-911e78a2]{border-radius:var(--studio-control-radius,7px);letter-spacing:0;border:1px solid #0000;min-width:12rem;min-height:3rem;font-weight:500;background:var(--studio-control-active-bg,rgb(var(--v-theme-secondary-container)))!important;box-shadow:none!important;color:var(--studio-control-text,rgb(var(--v-theme-on-surface)))!important}.studio-ai-sessions__preview-create-button[data-v-911e78a2]:hover{background:var(--studio-control-rest-bg,rgb(var(--v-theme-surface-container-high)))!important}.studio-ai-sessions__create-button--unavailable[data-v-911e78a2]{cursor:not-allowed;opacity:var(--v-disabled-opacity,.38)}.studio-ai-sessions__create-button--unavailable[data-v-911e78a2]:hover{background:var(--studio-control-rest-bg,rgb(var(--v-theme-surface-container-high)))!important}@keyframes studio-ai-session-create-pulse-911e78a2{0%{opacity:.48;transform:scale(1)translateZ(0)}14%{opacity:0;transform:scale(1.34)translateZ(0)}to{opacity:0;transform:scale(1.34)translateZ(0)}}@media (prefers-reduced-motion:reduce){.studio-ai-sessions__create-button--attention[data-v-911e78a2]:not(.v-btn--disabled):after{animation:none}}.studio-ai-sessions__archive-progress[data-v-23f42387]{background:rgba(var(--v-theme-primary), .08);overflow-wrap:anywhere;border-radius:.5rem;align-items:flex-start;gap:.5rem;width:100%;padding:.5rem;font-size:.8rem;display:flex}.studio-ai-sessions__archive-detail[data-v-23f42387]{opacity:.8;margin-top:.2rem}.studio-ai-sessions__toolbar[data-v-23f42387]{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:.75rem;width:100%;min-width:0;display:flex}.studio-ai-sessions__tabs[data-v-23f42387]{flex-wrap:wrap;align-items:center;gap:.45rem;width:100%;min-width:0;display:flex}.studio-ai-sessions__tab[data-v-23f42387]{border:0;border-radius:999px;align-items:stretch;max-width:18rem;font-weight:500;position:relative;overflow:visible;box-shadow:none!important;color:var(--studio-control-text,rgb(var(--v-theme-on-surface)))!important;background:0 0!important;padding:0!important}.studio-ai-sessions__tab[data-v-23f42387] .v-chip__content{align-items:stretch;min-width:0;display:inline-flex}.studio-ai-sessions__tab-main[data-v-23f42387]{--studio-ai-sessions-chip-rest:color-mix(in srgb, rgb(var(--v-theme-on-surface)) 5%, rgb(var(--v-theme-surface)));background:var(--studio-ai-sessions-chip-rest);border:1px solid rgb(var(--v-theme-outline-variant));box-sizing:border-box;color:var(--studio-control-text,rgb(var(--v-theme-on-surface)));border-radius:999px;flex:auto;align-items:center;min-width:0;padding-inline:.85rem;display:inline-flex}.studio-ai-sessions__tab--active[data-v-23f42387]{font-weight:560;color:var(--studio-control-text,rgb(var(--v-theme-on-surface)))!important}.studio-ai-sessions__tab--archiving .studio-ai-sessions__tab-main[data-v-23f42387]{background:rgba(var(--v-theme-on-surface), .06);color:rgba(var(--v-theme-on-surface), .55)}.studio-ai-sessions__tab--archiving .studio-ai-sessions__status-dot[data-v-23f42387]{background:currentColor}.studio-ai-sessions__tab-main[data-v-23f42387],.studio-ai-sessions__tab-close-slot[data-v-23f42387]{transition:background-color var(--v64-duration-short) var(--v64-ease-standard), color var(--v64-duration-short) var(--v64-ease-standard)}.studio-ai-sessions__tab--active .studio-ai-sessions__tab-main[data-v-23f42387]{background:var(--studio-control-active-bg,rgb(var(--v-theme-secondary-container)));color:rgb(var(--v-theme-on-secondary-container));border-color:#0000;border-radius:999px 0 0 999px;padding-inline-end:.34rem}.studio-ai-sessions__tab:not(.studio-ai-sessions__tab--active) .studio-ai-sessions__tab-main[data-v-23f42387]:hover{background:color-mix(in srgb, rgb(var(--v-theme-on-surface)) 8%, var(--studio-ai-sessions-chip-rest))}.studio-ai-sessions__tab--active .studio-ai-sessions__tab-main[data-v-23f42387]:hover,.studio-ai-sessions__tab--active .studio-ai-sessions__tab-main:hover+.studio-ai-sessions__tab-close-slot[data-v-23f42387]{background:color-mix(in srgb, rgb(var(--v-theme-on-secondary-container)) 8%, var(--studio-control-active-bg,rgb(var(--v-theme-secondary-container))))}.studio-ai-sessions__tab[data-v-23f42387]:focus-visible{outline:var(--v64-focus-ring-width) solid rgb(var(--v-theme-primary));outline-offset:var(--v64-focus-ring-offset)}.studio-ai-sessions__tab[data-v-23f42387] .v-chip__overlay,.studio-ai-sessions__tab[data-v-23f42387] .v-chip__underlay{display:none}.studio-ai-sessions__tab-label[data-v-23f42387]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.studio-ai-sessions__repository-state[data-v-23f42387]{color:rgba(var(--v-theme-on-surface), .4);flex:none;margin-inline-start:.42rem}.studio-ai-sessions__tab-info[data-v-23f42387]{color:inherit;flex-shrink:0;display:none}.studio-ai-sessions__info[data-v-23f42387]{overflow-wrap:anywhere;max-width:100%;padding:.25rem}.studio-ai-sessions__info-facts[data-v-23f42387]{grid-template-columns:auto minmax(0,1fr);gap:.3rem .75rem;margin:.5rem 0 0;display:grid}.studio-ai-sessions__info-facts dt[data-v-23f42387]{opacity:.75}.studio-ai-sessions__info-facts dd[data-v-23f42387]{margin:0}.studio-ai-sessions__repository-state--saved[data-v-23f42387]{color:rgb(var(--v-theme-success))}.studio-ai-sessions__repository-state--saved.studio-ai-sessions__repository-state--provisional[data-v-23f42387]{color:rgba(var(--v-theme-on-surface), var(--v-disabled-opacity))}.studio-ai-sessions__repository-state--unsaved[data-v-23f42387],.studio-ai-sessions__repository-state--unavailable[data-v-23f42387]{color:rgb(var(--v-theme-error))}.studio-ai-sessions__tab-close-slot[data-v-23f42387]{background:var(--studio-control-active-bg,rgb(var(--v-theme-secondary-container)));box-sizing:border-box;color:rgba(var(--v-theme-on-surface), .68);border:1px solid #0000;border-left:0;border-radius:0 999px 999px 0;flex:none;justify-content:center;align-items:center;padding-inline:.14rem .28rem;display:inline-flex}.studio-ai-sessions__tab-archive[data-v-23f42387]{flex:0 0 1.38rem;min-width:1.38rem;min-height:1.38rem;color:currentColor!important;background:0 0!important;width:1.38rem!important;height:1.38rem!important;padding:0!important}.studio-ai-sessions__tab-archive[data-v-23f42387]:hover,.studio-ai-sessions__tab-archive[data-v-23f42387]:focus-visible{opacity:1;pointer-events:auto;background:color-mix(in srgb, currentColor 14%, transparent)!important}.studio-ai-sessions__tab-archive[data-v-23f42387] .v-icon{font-size:.98rem}.studio-ai-sessions__status-dot[data-v-23f42387]{background:rgb(var(--v-theme-primary));contain:paint;border-radius:999px;flex:none;width:.52rem;height:.52rem;margin-right:.42rem;display:inline-block;position:relative}.studio-ai-sessions__tab--thinking .studio-ai-sessions__status-dot[data-v-23f42387]{animation:1.3s steps(2,end) infinite studio-ai-sessions-thinking-pulse-23f42387}.studio-ai-sessions__status-dot--blocked[data-v-23f42387],.studio-ai-sessions__status-dot--failed[data-v-23f42387]{background:rgb(var(--v-theme-error))}@keyframes studio-ai-sessions-thinking-pulse-23f42387{0%,to{opacity:.45}50%{opacity:1}}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tabs[data-v-23f42387]{flex-wrap:nowrap;gap:.34rem}.studio-ai-sessions__toolbar--compact[data-v-23f42387]{min-height:2rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab[data-v-23f42387]{letter-spacing:0;flex:0 auto;min-width:3.5rem;max-width:15rem;height:1.75rem;min-height:1.75rem;font-size:.86rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab[data-v-23f42387] .v-chip__content{flex:auto;width:100%}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-main[data-v-23f42387]{padding-inline:.45rem .4rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab--active .studio-ai-sessions__tab-main[data-v-23f42387]{padding-inline-end:.18rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-close-slot[data-v-23f42387]{padding-inline:0 .14rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__status-dot[data-v-23f42387]{width:.38rem;height:.38rem;margin-right:.3rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__repository-state[data-v-23f42387]{width:12px;height:12px;margin-inline-start:.22rem;font-size:12px}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-info[data-v-23f42387]{width:1.25rem;height:1.25rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-info[data-v-23f42387] .v-icon,.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-archive[data-v-23f42387] .v-icon{font-size:.82rem}.studio-ai-sessions__toolbar--compact .studio-ai-sessions__tab-archive[data-v-23f42387]{opacity:.7;flex-basis:1.2rem;min-width:1.2rem;min-height:1.2rem;width:1.2rem!important;height:1.2rem!important}@media (width<=640px){.studio-ai-sessions__toolbar[data-v-23f42387]{flex-direction:column;align-items:stretch}}@media (hover:none),(pointer:coarse){.studio-ai-sessions__tab-info[data-v-23f42387]{display:inline-flex}.studio-ai-sessions__tab--active .studio-ai-sessions__tab-info[data-v-23f42387]{margin-inline-end:.3rem}.studio-ai-sessions__repository-state--desktop[data-v-23f42387]{display:none}.studio-ai-sessions__tab .studio-ai-sessions__tab-archive[data-v-23f42387]{box-shadow:none;opacity:1;pointer-events:auto}}@media (prefers-reduced-motion:reduce){.studio-ai-sessions__tab--thinking .studio-ai-sessions__status-dot[data-v-23f42387]{opacity:1;animation:none}}.studio-autopilot__session-header[data-v-eafb6c6f]{border-bottom:1px solid rgb(var(--v-theme-outline-variant));box-sizing:border-box;grid-row:1;justify-content:space-between;align-items:center;gap:0;width:100%;min-width:0;min-height:3rem;padding:.4rem .25rem;display:flex;overflow:hidden}.studio-autopilot__session-header[data-v-eafb6c6f] .studio-ai-sessions__toolbar{flex:auto;min-width:0;margin-inline-end:.35rem;overflow:hidden}.studio-autopilot__session-header[data-v-eafb6c6f] .studio-ai-sessions__tabs{min-width:0;overflow:hidden}.studio-autopilot__header-actions[data-v-eafb6c6f]{flex:none;align-items:center;gap:.125rem;margin-inline-start:auto;display:flex}.studio-autopilot__header-action[data-v-eafb6c6f],.studio-autopilot__save-work[data-v-eafb6c6f]{border-radius:8px}.studio-autopilot__header-action[data-v-eafb6c6f],.studio-autopilot__save-work[data-v-eafb6c6f]:not(.text-error):not(.text-warning){color:rgba(var(--v-theme-on-surface), .66)}.studio-autopilot__header-action[data-v-eafb6c6f] .v-icon,.studio-autopilot__save-work[data-v-eafb6c6f] .v-btn__content>.v-icon{width:18px;height:18px;font-size:18px}.studio-autopilot__header-action[data-v-eafb6c6f]:hover,.studio-autopilot__save-work[data-v-eafb6c6f]:not(.text-error):not(.text-warning):hover{color:rgba(var(--v-theme-on-surface), .9)}.studio-autopilot__save-work.text-error[data-v-eafb6c6f],.studio-autopilot__save-work.text-warning[data-v-eafb6c6f]{background:color-mix(in srgb, currentColor 9%, transparent)}.studio-autopilot__header-action[data-v-eafb6c6f] .v-btn__overlay,.studio-autopilot__save-work[data-v-eafb6c6f] .v-btn__overlay{border-radius:inherit}.studio-autopilot__session-action-item[data-v-eafb6c6f]{min-height:3rem}.studio-autopilot__approvals-chip[data-v-eafb6c6f]{flex-shrink:0;align-self:center}.studio-autopilot__save-work[data-v-eafb6c6f]{flex:none}.studio-autopilot__save-work--check[data-v-eafb6c6f]{opacity:var(--v-disabled-opacity)}.studio-autopilot__save-symbol[data-v-eafb6c6f]{width:24px;height:22px;position:relative}.studio-autopilot__save-symbol-disk[data-v-eafb6c6f],.studio-autopilot__save-symbol-commit[data-v-eafb6c6f]{opacity:.72;position:absolute}.studio-autopilot__save-symbol-disk[data-v-eafb6c6f]{bottom:0;left:0}.studio-autopilot__save-symbol-commit[data-v-eafb6c6f]{top:0;right:0}.studio-autopilot[data-v-d0f5d39d]{background:rgb(var(--v-theme-background));grid-template-columns:minmax(20rem,38%) minmax(0,1fr);min-width:0;height:100%;min-height:0;display:grid;overflow:hidden}.studio-home-shell-session-github-actor[data-v-d0f5d39d]{color:rgba(var(--v-theme-on-surface), .72);white-space:nowrap;align-items:center;gap:.24rem;min-width:0;max-width:100%;padding:0 .36rem;font-size:.72rem;font-weight:650;line-height:1;display:inline-flex}.studio-home-shell-session-github-actor span[data-v-d0f5d39d]{text-overflow:ellipsis;min-width:0;overflow:hidden}.studio-home-shell-session-github-actor--inactive[data-v-d0f5d39d]{color:rgba(var(--v-theme-on-surface), .46)}.studio-autopilot--chat-collapsed[data-v-d0f5d39d]{grid-template-columns:0 minmax(0,1fr)}.studio-autopilot__chat-panel[data-v-d0f5d39d]{background:rgb(var(--v-theme-surface));border-right:1px solid rgb(var(--v-theme-outline-variant));grid-template-rows:auto auto minmax(0,1fr);min-width:0;min-height:0;display:grid;position:relative;overflow:hidden;container:studio-chat-pane/inline-size}.studio-autopilot--chat-collapsed .studio-autopilot__chat-panel[data-v-d0f5d39d]{visibility:hidden}@media (width>=981px){.studio-autopilot[data-v-d0f5d39d]{gap:var(--studio-home-project-gap,.75rem);grid-template-columns:var(--studio-home-chat-column-width,32rem) minmax(0, 1fr)}.studio-autopilot--chat-collapsed[data-v-d0f5d39d]{grid-template-columns:0 minmax(0,1fr);gap:0}}@media (width<=980px){.studio-autopilot[data-v-d0f5d39d]:not(.studio-autopilot--chat-collapsed){grid-template-columns:minmax(0,1fr) 0}.studio-autopilot:not(.studio-autopilot--chat-collapsed) .studio-autopilot__project-panel[data-v-d0f5d39d]{visibility:hidden}}.vibe64-agent-terminal-drop-overlay[data-v-10105087]{background:rgba(var(--v-theme-scrim), .68);pointer-events:none;z-index:5;justify-content:center;align-items:center;padding:1rem;display:flex;position:absolute;inset:0}.vibe64-agent-terminal-drop-overlay__card[data-v-10105087]{align-items:center;gap:.7rem;padding:1rem 1.15rem;display:flex}.vibe64-agent-terminal-start-panel[data-v-e1543fc7]{background:rgba(var(--v-theme-scrim), .8);z-index:3;justify-content:center;align-items:center;padding:1rem;display:flex;position:absolute;inset:0}.vibe64-agent-terminal-start-panel__card[data-v-e1543fc7]{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.85rem;width:100%;max-width:min(42rem,100%);padding:1rem;display:grid}.vibe64-agent-terminal-start-panel__icon[data-v-e1543fc7]{background:rgba(var(--v-theme-primary), .14);color:rgb(var(--v-theme-primary));border-radius:50%;justify-content:center;align-items:center;width:3rem;height:3rem;display:flex}.vibe64-agent-terminal-start-panel__copy[data-v-e1543fc7]{gap:.15rem;min-width:0;display:grid}.vibe64-agent-terminal-start-panel__copy strong[data-v-e1543fc7]{font-size:.95rem}.vibe64-agent-terminal-start-panel__copy span[data-v-e1543fc7]{color:rgba(var(--v-theme-on-surface), .72);font-size:.8rem;line-height:1.35}.vibe64-agent-terminal-start-panel__action[data-v-e1543fc7]{min-inline-size:10rem}@media (width<=700px){.vibe64-agent-terminal-start-panel__card[data-v-e1543fc7]{grid-template-columns:auto minmax(0,1fr)}.vibe64-agent-terminal-start-panel__action[data-v-e1543fc7]{grid-column:1/-1;width:100%}}.vibe64-codex-session[data-v-4c2f6591]{min-width:0;height:100%;min-height:0;position:relative}.vibe64-codex-session--headless[data-v-4c2f6591]{pointer-events:none;width:0;height:0;position:absolute;overflow:hidden}.vibe64-codex-session--focused[data-v-4c2f6591] .vibe64-terminal-surface{border-color:rgba(var(--v-theme-primary), .72)}.vibe64-codex-session__command[data-v-4c2f6591]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.vibe64-codex-session__attachment-action[data-v-4c2f6591]{min-width:2.5rem;min-height:2.5rem}.vibe64-codex-session__start-action[data-v-4c2f6591]{min-inline-size:10rem}@media (width<=700px){.vibe64-codex-session__start-action[data-v-4c2f6591]{width:100%}}.vibe64-native-agent-session[data-v-1b9ba19d]{block-size:100%;min-block-size:0;min-inline-size:0;position:relative}.vibe64-native-agent-session--headless[data-v-1b9ba19d]{block-size:0;inline-size:0;position:absolute;overflow:hidden}.vibe64-native-agent-session__command[data-v-1b9ba19d]{color:rgba(var(--v-theme-on-surface), var(--v-medium-emphasis-opacity));font-size:.82rem}.studio-renewal-assistant[data-v-c674ce61]{border:1px solid rgb(var(--v-theme-outline-variant));border-radius:.75rem;gap:.75rem;padding:.85rem;display:grid}.studio-renewal-assistant__heading[data-v-c674ce61],.studio-renewal-assistant__error[data-v-c674ce61]{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.studio-renewal-assistant__heading>span[data-v-c674ce61]{gap:.15rem;display:grid}.studio-renewal-assistant__heading small[data-v-c674ce61],.studio-renewal-assistant__summary[data-v-c674ce61]{color:rgba(var(--v-theme-on-surface), .68)}.studio-renewal-assistant__fields[data-v-c674ce61]{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.studio-renewal-assistant__summary[data-v-c674ce61]{margin:0}@media (width<=600px){.studio-renewal-assistant__heading[data-v-c674ce61]{align-items:flex-start}.studio-renewal-assistant__fields[data-v-c674ce61]{grid-template-columns:minmax(0,1fr)}}.studio-session-renewal__progress-copy[data-v-8b509bcf]{align-items:flex-start;gap:.25rem;display:grid}.studio-session-renewal__progress-copy span[data-v-8b509bcf]{color:rgba(var(--v-theme-on-surface), .68)}.studio-session-renewal__progress-line[data-v-8b509bcf]{margin-block:.1rem .25rem}.studio-session-renewal__steps[data-v-8b509bcf]{gap:.35rem;margin:0;padding:0;list-style:none;display:grid}.studio-session-renewal__steps li[data-v-8b509bcf]{color:rgba(var(--v-theme-on-surface), .58);border-radius:.75rem;align-items:center;gap:.7rem;min-height:2.75rem;padding:.55rem .7rem;display:flex}.studio-session-renewal__step--active[data-v-8b509bcf]{background:rgba(var(--v-theme-primary), .1);color:rgb(var(--v-theme-on-surface))}.studio-session-renewal__step--complete[data-v-8b509bcf]{color:rgb(var(--v-theme-primary))}.studio-session-renewal__step-icon[data-v-8b509bcf]{flex:none;justify-content:center;align-items:center;width:1.25rem;display:inline-flex}@media (prefers-reduced-motion:reduce){.studio-session-renewal__progress-line[data-v-8b509bcf]{display:none}}.studio-session-renewal[data-v-eb92400c]{max-height:min(46rem,100dvh - 2rem)}.studio-session-renewal__header[data-v-eb92400c],.studio-session-renewal__heading[data-v-eb92400c],.studio-session-renewal__assurance[data-v-eb92400c],.studio-session-renewal__success[data-v-eb92400c]{align-items:center;display:flex}.studio-session-renewal__header[data-v-eb92400c]{justify-content:space-between;gap:1rem;min-height:4.5rem;padding:.75rem 1rem}.studio-session-renewal__heading[data-v-eb92400c]{gap:.75rem;min-width:0}.studio-session-renewal__heading>span[data-v-eb92400c]:last-child,.studio-session-renewal__assurance>span[data-v-eb92400c],.studio-session-renewal__success>span[data-v-eb92400c]{gap:.12rem;min-width:0;display:grid}.studio-session-renewal__heading h2[data-v-eb92400c]{margin:0}.studio-session-renewal__subtitle[data-v-eb92400c]{color:rgba(var(--v-theme-on-surface), .68)}.studio-session-renewal__icon[data-v-eb92400c]{background:rgba(var(--v-theme-primary), .12);color:rgb(var(--v-theme-primary));border-radius:50%;flex:none;justify-content:center;align-items:center;width:2.6rem;height:2.6rem;display:inline-flex}.studio-session-renewal__body[data-v-eb92400c]{gap:1rem;min-height:22rem;padding:1.25rem;display:grid}.studio-session-renewal__lead[data-v-eb92400c],.studio-session-renewal__supporting[data-v-eb92400c]{overflow-wrap:anywhere;margin:0}.studio-session-renewal__lead[data-v-eb92400c]{color:rgb(var(--v-theme-on-surface))}.studio-session-renewal__supporting[data-v-eb92400c]{color:rgba(var(--v-theme-on-surface), .7)}.studio-session-renewal__assurance[data-v-eb92400c],.studio-session-renewal__success[data-v-eb92400c]{gap:.75rem;padding:1rem;line-height:1.45}.studio-session-renewal__skeleton[data-v-eb92400c]{gap:1rem;display:grid}.studio-session-renewal__draft[data-v-eb92400c]{min-width:0}.studio-session-renewal__notice[data-v-eb92400c]{margin:0}.studio-session-renewal__notice-copy[data-v-eb92400c]{gap:.25rem;display:grid}.studio-session-renewal__source-details[data-v-eb92400c]{grid-template-columns:max-content minmax(0,1fr);gap:.25rem .75rem;margin:.75rem 0 0;display:grid}.studio-session-renewal__source-details dt[data-v-eb92400c]{color:rgba(var(--v-theme-on-surface), .68)}.studio-session-renewal__source-details dd[data-v-eb92400c]{overflow-wrap:anywhere;min-width:0;margin:0}.studio-session-renewal__notice-with-action[data-v-eb92400c]{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;display:flex}.studio-session-renewal__notice-with-action .studio-session-renewal__notice-copy[data-v-eb92400c]{flex:18rem}.studio-session-renewal__inline-actions[data-v-eb92400c]{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5rem;margin-top:.75rem;display:flex}.studio-session-renewal__actions[data-v-eb92400c]{flex-wrap:wrap;gap:.5rem;min-height:4.5rem;padding:.75rem 1rem}.studio-session-renewal__actions-spacer[data-v-eb92400c]{flex:auto}.studio-session-renewal--fullscreen[data-v-eb92400c]{height:100dvh;max-height:100dvh}.studio-session-renewal--fullscreen .studio-session-renewal__body[data-v-eb92400c]{min-height:0;padding:1rem}.studio-session-renewal--fullscreen .studio-session-renewal__inline-actions[data-v-eb92400c],.studio-session-renewal--fullscreen .studio-session-renewal__notice-with-action[data-v-eb92400c]{align-items:stretch}.studio-session-renewal--fullscreen .studio-session-renewal__inline-actions[data-v-eb92400c]>*,.studio-session-renewal--fullscreen .studio-session-renewal__notice-with-action[data-v-eb92400c]>:last-child{flex:100%}.studio-session-renewal__actions--compact[data-v-eb92400c]{align-items:stretch}.studio-session-renewal__actions--compact .studio-session-renewal__actions-spacer[data-v-eb92400c]{display:none}.studio-session-renewal__actions--compact .studio-session-renewal__action[data-v-eb92400c]{flex:calc(50% - .25rem)}.studio-session-renewal__actions--compact .studio-session-renewal__action--primary[data-v-eb92400c]{flex-basis:100%}.studio-ai-session-runtime[data-v-7eb1a297]{min-width:0;max-width:100%;height:100%;min-height:0;display:grid;overflow:hidden}.studio-ai-sessions__tab-terminal[data-v-7eb1a297]{min-width:0;height:100%;min-height:0}.studio-ai-sessions__tab-terminal[data-v-7eb1a297] .studio-ai-sessions__codex-terminal-shell,.studio-ai-sessions__tab-terminal[data-v-7eb1a297] .studio-ai-sessions__codex-terminal{height:100%}.studio-ai-sessions__empty-main[data-v-532b3d07],.studio-ai-sessions__empty-project-panel[data-v-532b3d07]{position:relative}.studio-ai-sessions__empty-layout[data-v-532b3d07]{gap:var(--studio-home-project-gap,.75rem);min-width:0;height:100%;min-height:0;display:grid;overflow:hidden}.studio-ai-sessions__empty-main[data-v-532b3d07],.studio-ai-sessions__empty-project-panel[data-v-532b3d07]{background:rgb(var(--v-theme-surface));border:1px solid rgb(var(--v-theme-outline-variant));box-shadow:0 .75rem 2rem rgba(var(--v-theme-shadow), .06);border-radius:14px;min-width:0;min-height:0;overflow:hidden}.studio-ai-sessions__empty-main[data-v-532b3d07],.studio-ai-sessions__empty-project-panel[data-v-532b3d07],.studio-ai-sessions__preview-empty-pane[data-v-532b3d07]{display:grid}.studio-ai-sessions__empty-main[data-v-532b3d07]{grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:.16rem;padding:.05rem .65rem .18rem;overflow:visible}.studio-ai-sessions__empty-session-header[data-v-532b3d07]{gap:.28rem;min-width:0;display:grid}.studio-ai-sessions__empty-chat-body[data-v-532b3d07]{scrollbar-gutter:stable;align-items:start;min-height:0;padding:.25rem .1rem 0 0;display:grid;overflow:hidden}.studio-ai-sessions__empty-hint[data-v-532b3d07]{background:rgba(var(--v-theme-primary), .08);border:1px solid rgba(var(--v-theme-primary), .16);color:rgba(var(--v-theme-on-surface), .76);border-radius:10px;max-width:100%;padding:.55rem .65rem;font-size:.86rem;line-height:1.35}.studio-ai-sessions__empty-thinking[data-v-532b3d07]{color:rgba(var(--v-theme-on-surface), .72);align-items:center;gap:.38rem;min-height:1.35rem;font-size:.86rem;display:flex}.studio-ai-sessions__empty-thinking--empty[data-v-532b3d07]{visibility:hidden}.studio-ai-sessions__empty-thinking-mark[data-v-532b3d07]{background:rgb(var(--v-theme-primary));box-shadow:0 0 0 .24rem rgba(var(--v-theme-primary), .12);border-radius:999px;width:.48rem;height:.48rem}.studio-ai-sessions__empty-runtime-status[data-v-532b3d07]{display:none}.studio-ai-sessions__empty-composer[data-v-532b3d07]{min-width:0;min-height:.35rem}.studio-ai-sessions__dashboard-empty-pane[data-v-532b3d07]{scrollbar-gutter:stable;align-content:start;gap:.75rem;min-width:0;min-height:0;padding:.85rem;display:grid;overflow-y:auto}.studio-ai-sessions__preview-empty-pane[data-v-532b3d07]{place-items:center;min-width:0;min-height:0;padding:1rem}.studio-ai-sessions__preview-empty-content[data-v-532b3d07]{text-align:center;place-items:center;gap:.65rem;max-width:min(100%,26rem);display:grid}.studio-ai-sessions__preview-empty-title[data-v-532b3d07]{color:rgba(var(--v-theme-on-surface), .78);margin:0;font-size:.98rem;line-height:1.35}.studio-ai-sessions__preview-empty-detail[data-v-532b3d07]{color:rgba(var(--v-theme-on-surface), .62);max-width:24rem;margin:-.25rem 0 0;font-size:.86rem;line-height:1.35}@media (width>=981px){.studio-ai-sessions__empty-layout[data-v-532b3d07]{grid-template-columns:var(--studio-home-chat-column-width,32rem) minmax(0, 1fr)}.studio-ai-sessions__empty-layout--chat-collapsed[data-v-532b3d07]{grid-template-columns:minmax(0,1fr)}.studio-ai-sessions__empty-layout--chat-collapsed .studio-ai-sessions__empty-main[data-v-532b3d07]{display:none}.studio-ai-sessions__empty-layout--dashboard[data-v-532b3d07]{align-items:stretch;height:100%;overflow:hidden}}@media (width<=980px){.studio-ai-sessions__empty-layout[data-v-532b3d07]{grid-template-rows:minmax(0,1fr)}.studio-ai-sessions__empty-project-panel[data-v-532b3d07],.studio-ai-sessions__empty-layout--chat-collapsed .studio-ai-sessions__empty-main[data-v-532b3d07]{display:none}.studio-ai-sessions__empty-layout--chat-collapsed .studio-ai-sessions__empty-project-panel[data-v-532b3d07]{display:grid}}.studio-ai-sessions[data-v-07990013]{gap:.85rem;height:100%;min-height:0;display:grid;position:relative;overflow:hidden}.studio-ai-sessions--autopilot[data-v-07990013]{box-shadow:none;background:0 0;grid-template-rows:minmax(0,1fr);gap:0;padding:0;border-radius:0!important}.studio-ai-sessions__chat-column-separator[data-v-07990013]{cursor:col-resize;bottom:0;left:var(--studio-home-chat-column-width,32rem);touch-action:none;-webkit-user-select:none;user-select:none;width:var(--studio-home-project-gap,.75rem);z-index:10;background:0 0;outline:none;position:absolute;top:0}.studio-ai-sessions__chat-column-separator[data-v-07990013]:before{background:rgba(var(--v-theme-on-surface), .14);content:"";width:1px;transition:background-color .12s,width .12s;position:absolute;top:0;bottom:0;left:50%;transform:translate(-50%)}.studio-ai-sessions__chat-column-separator[data-v-07990013]:hover:before,.studio-ai-sessions__chat-column-separator[data-v-07990013]:focus-visible:before,.studio-ai-sessions__chat-column-separator--resizing[data-v-07990013]:before{background:rgb(var(--v-theme-primary));width:2px}.studio-ai-sessions--resizing[data-v-07990013]{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}@media (width>=981px){.studio-ai-sessions[data-v-07990013]{grid-template-rows:auto minmax(0,1fr)}.studio-ai-sessions--autopilot[data-v-07990013]{grid-template-rows:minmax(0,1fr)}}@media (width<=980px){.studio-ai-sessions__chat-column-separator[data-v-07990013]{display:none!important}}.studio-ai-sessions--autopilot.studio-ai-sessions--unavailable[data-v-07990013]{grid-template-rows:auto minmax(0,1fr)}.studio-ai-sessions__preview-empty-loading[data-v-0652de7c]{width:10rem}.studio-ai-sessions__preview-empty-skeleton[data-v-0652de7c]{width:100%}.studio-ai-sessions__error-overlay[data-v-0652de7c]{z-index:12;max-width:min(42rem,100% - 1.7rem);position:absolute;top:.85rem;left:.85rem}.studio-ai-sessions-error-enter-active[data-v-0652de7c],.studio-ai-sessions-error-leave-active[data-v-0652de7c]{transition:opacity .12s,transform .12s}.studio-ai-sessions-error-enter-from[data-v-0652de7c],.studio-ai-sessions-error-leave-to[data-v-0652de7c]{opacity:0;transform:translateY(-.35rem)}.studio-ai-sessions__runtime-stack[data-v-0652de7c]{min-width:0;height:100%;min-height:0;display:grid;overflow:hidden}.vibe64-lesson-toggle[data-v-7d501641]{border:1px solid rgb(var(--v-theme-outline));border-radius:var(--v64-shape-full,999px);color:rgb(var(--v-theme-on-surface));cursor:pointer;font:inherit;white-space:nowrap;background:0 0;flex:none;align-items:center;gap:6px;height:32px;padding:0 10px 0 8px;font-size:.875rem;font-weight:500;transition:background-color .12s,border-color .12s;display:inline-flex;position:relative}.vibe64-lesson-toggle[data-v-7d501641]:before{border-radius:inherit;content:"";opacity:0;pointer-events:none;background:currentColor;transition:opacity .12s;position:absolute;inset:0}.vibe64-lesson-toggle[data-v-7d501641]:hover:before{opacity:.08}.vibe64-lesson-toggle[data-v-7d501641]:focus-visible{outline:2px solid rgb(var(--v-theme-primary));outline-offset:2px}.vibe64-lesson-toggle.is-on[data-v-7d501641]{background:var(--v64-learning);border-color:var(--v64-learning-strong);color:var(--v64-on-learning);font-weight:700}.vibe64-lesson-toggle__switch[data-v-7d501641]{background:color-mix(in srgb, currentColor 14%, transparent);box-sizing:border-box;opacity:.75;border:1.5px solid;border-radius:999px;flex:none;width:28px;height:16px;display:inline-block;position:relative}.vibe64-lesson-toggle__thumb[data-v-7d501641]{background:currentColor;border-radius:50%;justify-content:center;align-items:center;width:8px;height:8px;transition:left .12s,width .12s,height .12s,top .12s;display:flex;position:absolute;top:2.5px;left:2.5px}.vibe64-lesson-toggle.is-on .vibe64-lesson-toggle__switch[data-v-7d501641]{background:var(--v64-on-learning);border-color:var(--v64-on-learning);opacity:1}.vibe64-lesson-toggle.is-on .vibe64-lesson-toggle__thumb[data-v-7d501641]{background:var(--v64-learning);color:var(--v64-on-learning);width:11px;height:11px;top:1px;left:13px}@media (prefers-reduced-motion:reduce){.vibe64-lesson-toggle[data-v-7d501641],.vibe64-lesson-toggle[data-v-7d501641]:before,.vibe64-lesson-toggle__thumb[data-v-7d501641]{transition:none}}.vibe64-learning-step-bar-host[data-v-312ecfd5]{flex:none;min-width:0;position:relative}.vibe64-learning-step-bar[data-v-312ecfd5]{background:var(--v64-learning-container);border:1px solid var(--v64-learning-strong);border-radius:var(--v64-shape-md,12px);color:var(--v64-on-learning-container,inherit);align-items:center;gap:var(--v64-space-2,8px);min-width:0;padding:2px var(--v64-space-2,8px);flex:none;display:flex;position:relative;overflow:hidden}.vibe64-learning-step-bar__position[data-v-312ecfd5]{align-items:baseline;gap:0 var(--v64-space-2,8px);flex-wrap:wrap;flex:0 auto;min-width:0;display:flex}.vibe64-learning-step-bar__lesson[data-v-312ecfd5]{text-overflow:ellipsis;white-space:nowrap;max-width:16rem;font-weight:700;overflow:hidden}.vibe64-learning-step-bar__step[data-v-312ecfd5]{overflow-wrap:anywhere;min-width:0}.vibe64-learning-step-bar__dots[data-v-312ecfd5]{align-self:center;gap:4px;display:inline-flex}.vibe64-learning-step-bar__dot[data-v-312ecfd5]{opacity:.55;border:1.5px solid;border-radius:50%;width:8px;height:8px}.vibe64-learning-step-bar__dot.is-done[data-v-312ecfd5]{background:currentColor}.vibe64-learning-step-bar__dot.is-current[data-v-312ecfd5]{opacity:1;background:currentColor}.vibe64-learning-step-bar__line[data-v-312ecfd5]{align-items:center;gap:2px var(--v64-space-2,8px);flex-wrap:wrap;flex:auto;min-width:0;display:flex}.vibe64-learning-step-bar__beat[data-v-312ecfd5]{overflow-wrap:anywhere;flex:12rem;min-width:0;font-weight:500}.vibe64-learning-step-bar__status[data-v-312ecfd5]{opacity:.8;font-size:.8125rem}.vibe64-learning-step-bar__status.is-passed[data-v-312ecfd5]{color:rgb(var(--v-theme-success));opacity:1}.vibe64-learning-step-bar__note[data-v-312ecfd5]{flex-basis:100%;font-size:.8125rem}.vibe64-learning-step-bar__controls[data-v-312ecfd5]{flex:none;align-items:center;gap:2px;display:flex}.vibe64-learning-step-bar__progress[data-v-312ecfd5]{background:var(--v64-learning-strong);transform-origin:0;height:3px;transition:transform .1s linear;position:absolute;bottom:0;left:0;right:0}.vibe64-learning-step-bar .v-btn[data-v-312ecfd5]{letter-spacing:0;text-transform:none}.vibe64-learning-step-bar__step[data-v-312ecfd5]{font-variant-numeric:tabular-nums}.vibe64-learning-step-bar__lesson-toggle[data-v-312ecfd5]{flex:none;display:inline-flex}@media (prefers-reduced-motion:reduce){.vibe64-learning-step-bar__progress[data-v-312ecfd5]{transition:none}}@media (width<=600px){.vibe64-learning-step-bar[data-v-312ecfd5]{flex-wrap:wrap;gap:0 4px}.vibe64-learning-step-bar__stuck--beside[data-v-312ecfd5],.vibe64-learning-step-bar__lesson[data-v-312ecfd5]{display:none}.vibe64-learning-step-bar__position[data-v-312ecfd5]{flex:auto;order:1}.vibe64-learning-step-bar__lesson-toggle[data-v-312ecfd5],.vibe64-learning-step-bar__practice[data-v-312ecfd5],.vibe64-learning-step-bar__courses[data-v-312ecfd5]{order:2}.vibe64-learning-step-bar__line[data-v-312ecfd5]{flex-basis:100%;order:3;padding:0 0 2px 8px}.vibe64-learning-step-bar__controls[data-v-312ecfd5]{flex-basis:100%;order:4;justify-content:space-between}.vibe64-learning-step-bar__controls .v-btn[data-v-312ecfd5]:last-child{margin-inline-start:auto}.vibe64-learning-step-bar__courses[data-v-312ecfd5],.vibe64-learning-step-bar__practice[data-v-312ecfd5]{padding-inline:0}.vibe64-learning-step-bar__courses[data-v-312ecfd5] .v-btn__prepend,.vibe64-learning-step-bar__practice[data-v-312ecfd5] .v-btn__prepend{margin-inline:0}.vibe64-learning-step-bar__courses-label[data-v-312ecfd5],.vibe64-learning-step-bar__practice-label[data-v-312ecfd5]{display:none}}.vibe64-learning-stage[data-v-3fef98a4]{gap:var(--v64-space-2,8px);flex-direction:column;min-width:0;min-height:0;display:flex}.vibe64-learning-stage__bar[data-v-3fef98a4]{margin:var(--v64-space-2,8px) var(--v64-space-3,12px) 0}.vibe64-learning-stage__body[data-v-3fef98a4]{flex:auto;min-width:0;min-height:0;display:flex}.vibe64-learning-stage__page[data-v-3fef98a4]{flex:auto;min-width:0}.vibe64-learning-stage__anchor[data-v-3fef98a4]{height:0;top:var(--v64-space-2,8px);z-index:5;flex:0 0 0;align-self:flex-start;width:0;position:sticky}.vibe64-learning-stage__lesson[data-v-3fef98a4]{height:calc(100dvh - 140px);right:var(--v64-space-3,12px);width:min(440px,100vw - 24px);position:absolute;top:0}.is-phone .vibe64-learning-stage__bar[data-v-3fef98a4]{margin-inline:var(--v64-space-2,8px)}.is-phone .vibe64-learning-stage__lesson[data-v-3fef98a4]{height:calc(100dvh - 150px);right:var(--v64-space-2,8px);width:calc(100vw - 16px)}.vibe64-learner-art[data-v-365414ae]{--learner-skin:var(--v01e9bf29);--learner-ink:var(--v18d5d8ba);width:17rem;max-width:100%;height:auto;display:block;overflow:visible}.vibe64-learner-art__halo[data-v-365414ae]{fill:var(--v64-learning-tint)}.vibe64-learner-art__disc[data-v-365414ae]{fill:var(--v64-learning-container)}.vibe64-learner-art__shadow[data-v-365414ae]{fill:var(--learner-ink);opacity:.1}.vibe64-learner-art__skin[data-v-365414ae]{fill:var(--learner-skin)}.vibe64-learner-art__body[data-v-365414ae]{fill:rgb(var(--v-theme-primary));stroke:rgb(var(--v-theme-primary));stroke-linejoin:round;stroke-width:6px}.vibe64-learner-art__collar[data-v-365414ae]{fill:rgb(var(--v-theme-primary-container));stroke:rgb(var(--v-theme-primary-container));stroke-linejoin:round;stroke-width:3px}.vibe64-learner-art__ink[data-v-365414ae]{fill:var(--learner-ink)}.vibe64-learner-art__cheek[data-v-365414ae]{fill:var(--v3a6b411a);opacity:.55}.vibe64-learner-art__smile[data-v-365414ae]{fill:var(--v3b4f0edc)}.vibe64-learner-art__cap[data-v-365414ae]{fill:var(--learner-ink);stroke:var(--learner-ink);stroke-linejoin:round;stroke-width:3px}.vibe64-learner-art__tassel[data-v-365414ae]{fill:none;stroke:var(--v64-learning);stroke-linecap:round;stroke-linejoin:round;stroke-width:2.5px}.vibe64-learner-art__tassel-end[data-v-365414ae],.vibe64-learner-art__bulb[data-v-365414ae]{fill:var(--v64-learning)}.vibe64-learner-art__bulb[data-v-365414ae]{filter:drop-shadow(0 0 8px var(--v64-learning-glow))}.vibe64-learner-art__base[data-v-365414ae]{fill:color-mix(in srgb, var(--learner-ink) 55%, var(--ca5979b4))}.vibe64-learner-art__ray[data-v-365414ae],.vibe64-learner-art__bit--learning[data-v-365414ae]{fill:var(--v64-learning-strong)}.vibe64-learner-art__bit--primary[data-v-365414ae]{fill:rgb(var(--v-theme-primary));opacity:.65}.vibe64-learner-art__bit--outline[data-v-365414ae],.vibe64-learner-art__bit--ring[data-v-365414ae]{fill:none;stroke:rgb(var(--v-theme-primary));stroke-linejoin:round;stroke-opacity:.55;stroke-width:3px}.vibe64-learner-art__idea[data-v-365414ae]{animation:3.2s ease-in-out infinite vibe64-learner-float-365414ae}.vibe64-learner-art__wave[data-v-365414ae]{transform-box:view-box;transform-origin:182px 165px;animation:2.4s ease-in-out infinite vibe64-learner-wave-365414ae}.vibe64-learner-art__bit[data-v-365414ae]{transform-box:fill-box;transform-origin:50%;animation:2.8s ease-in-out infinite vibe64-learner-twinkle-365414ae}.vibe64-learner-art__bit[data-v-365414ae]:nth-of-type(2n){animation-delay:.9s}.vibe64-learner-art__bit[data-v-365414ae]:nth-of-type(3n){animation-delay:1.7s}@keyframes vibe64-learner-float-365414ae{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes vibe64-learner-wave-365414ae{0%,to{transform:rotate(0)}50%{transform:rotate(-7deg)}}@keyframes vibe64-learner-twinkle-365414ae{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.75)}}@media (prefers-reduced-motion:reduce){.vibe64-learner-art__idea[data-v-365414ae],.vibe64-learner-art__wave[data-v-365414ae],.vibe64-learner-art__bit[data-v-365414ae]{animation:none}}.vibe64-learn-welcome[data-v-6f9711fd]{animation:vibe64-learn-welcome-in-6f9711fd var(--v64-duration-long,.4s) var(--v64-ease-emphasized-decelerate,ease-out);align-items:center;gap:var(--v64-space-3);text-align:center;justify-items:center;min-width:0;max-width:min(24rem,100%);display:grid}.vibe64-learn-welcome__title[data-v-6f9711fd]{color:rgb(var(--v-theme-on-surface));font:var(--v64-type-headline-sm,600 1.5rem/2rem system-ui, sans-serif);letter-spacing:-.01em;margin:var(--v64-space-2) 0 0}.vibe64-learn-welcome__text[data-v-6f9711fd]{color:rgb(var(--v-theme-on-surface-variant));font:var(--v64-type-body-lg,400 1rem/1.5rem system-ui, sans-serif);margin:0}.vibe64-learn-welcome__choose[data-v-6f9711fd]{box-shadow:0 4px 14px var(--v64-learning-glow);letter-spacing:.01em;margin-top:var(--v64-space-2);text-transform:none;transition:transform var(--v64-duration-short,.15s) var(--v64-ease-standard,ease), box-shadow var(--v64-duration-short,.15s) var(--v64-ease-standard,ease);font-weight:700;background:var(--v64-learning)!important;color:var(--v64-on-learning)!important;padding-inline:var(--v64-space-6,1.5rem)!important}.vibe64-learn-welcome__choose[data-v-6f9711fd]:hover{box-shadow:0 6px 20px var(--v64-learning-glow);transform:translateY(-1px)}@keyframes vibe64-learn-welcome-in-6f9711fd{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.vibe64-learn-welcome[data-v-6f9711fd],.vibe64-learn-welcome__choose[data-v-6f9711fd]{transition:none;animation:none}}.studio-screen__no-project[data-v-6ab5b8c5]{flex:auto;min-height:0}.studio-screen__lesson-layout[data-v-6ab5b8c5]{border:1px solid rgb(var(--v-theme-outline-variant));border-radius:14px;min-width:0;height:100%;min-height:0;overflow:hidden}.studio-screen__no-project-text[data-v-6ab5b8c5]{color:rgb(var(--v-theme-on-surface-variant));gap:var(--v64-space-3);padding:var(--v64-space-4);justify-items:start;display:grid}.studio-screen__no-project-text p[data-v-6ab5b8c5]{margin:0}.studio-screen__choose-lesson[data-v-6ab5b8c5]{text-transform:none}.studio-screen__no-lesson-chat[data-v-6ab5b8c5]{min-width:0;min-height:0;padding:var(--v64-space-4) var(--v64-space-2);place-items:center;display:grid;overflow-y:auto}.studio-screen__no-lesson-note[data-v-6ab5b8c5]{color:rgb(var(--v-theme-on-surface-variant));font:var(--v64-type-body-md,400 .875rem/1.25rem system-ui, sans-serif);text-align:center;max-width:18rem;margin:0}.studio-screen__no-lesson-welcome[data-v-6ab5b8c5]{display:none}@media (width<=980px){.studio-screen__no-lesson-note[data-v-6ab5b8c5]{display:none}.studio-screen__no-lesson-welcome[data-v-6ab5b8c5]{display:grid}}.studio-home-shell-project-controls[data-v-865566b6]{flex:0 auto;align-items:center;gap:.45rem;min-width:0;display:flex}.studio-home-shell-chat-toggle[data-v-865566b6]{border-radius:var(--v64-shape-full);box-shadow:none;min-width:2.25rem;height:2.25rem;min-height:2.25rem;transition:background-color var(--v64-duration-short) var(--v64-ease-standard);border:0;flex:none;width:2.25rem;background:rgb(var(--v-theme-surface-container-high))!important;color:rgb(var(--v-theme-on-surface-variant))!important}.studio-home-shell-chat-toggle[data-v-865566b6]:hover{background:color-mix(in srgb, rgb(var(--v-theme-on-surface)) 8%, rgb(var(--v-theme-surface-container-high)))!important}.studio-home-shell-lesson-toggle[data-v-865566b6]{border-inline-start:1px solid rgb(var(--v-theme-outline-variant));flex:none;align-items:center;padding-inline-start:var(--studio-home-project-gap);display:inline-flex}.studio-home-shell-project-tabs[data-v-865566b6]{border:1px solid rgb(var(--v-theme-outline));border-radius:var(--v64-shape-full);flex:none;grid-auto-columns:minmax(5.25rem,1fr);grid-auto-flow:column;min-width:0;display:inline-grid;overflow:hidden}.studio-home-shell-project-tab[data-v-865566b6]{border:0;border-inline-start:1px solid rgb(var(--v-theme-outline));color:rgb(var(--v-theme-on-surface));cursor:pointer;font:var(--v64-type-label-lg);align-items:center;gap:var(--v64-space-1);letter-spacing:.01em;min-width:0;height:2.25rem;padding:0 var(--v64-space-3);transition:background-color var(--v64-duration-short) var(--v64-ease-standard), color var(--v64-duration-short) var(--v64-ease-standard);white-space:nowrap;background:0 0;justify-content:center;display:inline-flex;position:relative}.studio-home-shell-project-tab[data-v-865566b6]:first-child{border-inline-start:0}.studio-home-shell-project-tab[data-v-865566b6]:after{content:"";opacity:0;pointer-events:none;transition:opacity var(--v64-duration-short) var(--v64-ease-standard);background:currentColor;position:absolute;inset:0}.studio-home-shell-project-tab[data-v-865566b6]:hover:not(:disabled):after{opacity:var(--v64-state-hover)}.studio-home-shell-project-tab[data-v-865566b6]:active:not(:disabled):after{opacity:var(--v64-state-pressed)}.studio-home-shell-project-tab[data-v-865566b6]:focus-visible{outline:var(--v64-focus-ring-width) solid rgb(var(--v-theme-primary));outline-offset:-4px}.studio-home-shell-project-tab--active[data-v-865566b6]{background:rgb(var(--v-theme-secondary-container));color:rgb(var(--v-theme-on-secondary-container));font-weight:600}.studio-home-shell-project-tab--active[data-v-865566b6]:before{animation:studio-home-shell-check-in-865566b6 var(--v64-duration-medium) var(--v64-ease-emphasized-decelerate);content:"";height:1.125rem;-webkit-mask:var(--studio-home-shell-check) center / contain no-repeat;-webkit-mask:var(--studio-home-shell-check) center / contain no-repeat;mask:var(--studio-home-shell-check) center / contain no-repeat;background:currentColor;flex:none;width:1.125rem}.studio-home-shell-project-tabs[data-v-865566b6]{--studio-home-shell-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")}.studio-home-shell-project-tab[data-v-865566b6]:disabled{color:color-mix(in srgb, rgb(var(--v-theme-on-surface)) 38%, transparent);cursor:not-allowed}@keyframes studio-home-shell-check-in-865566b6{0%{opacity:0;width:0}to{opacity:1;width:1.125rem}}.studio-home-shell-preview-toolbar-host[data-v-865566b6]{flex:auto;justify-content:flex-start;align-items:center;min-width:0;max-width:min(43rem,54vw);display:flex}.studio-home-shell-preview-toolbar-host[data-v-865566b6]:empty{display:none}.studio-home-shell-usage-recording-host[data-v-865566b6]{flex:0 auto;justify-content:flex-end;align-items:center;width:0;min-width:0;display:flex;position:absolute}.studio-home-shell-usage-recording-host[data-v-865566b6]:has(.usage-recording-indicator__pill){width:22rem;position:static}.studio-home-shell-project-mobile-action[data-v-865566b6]{background:rgb(var(--v-theme-secondary-container));border-radius:var(--v64-shape-full);color:rgb(var(--v-theme-on-secondary-container));cursor:pointer;font:var(--v64-type-label-lg);align-items:center;gap:var(--v64-space-1);letter-spacing:.01em;min-width:4.5rem;min-height:2.5rem;padding:0 var(--v64-space-2) 0 var(--v64-space-4);transition:background-color var(--v64-duration-short) var(--v64-ease-standard);white-space:nowrap;border:0;flex:none;justify-content:center;display:none;position:relative}.studio-home-shell-project-mobile-action__icon[data-v-865566b6]{display:none!important}.studio-home-shell-project-mobile-action[data-v-865566b6]:hover{background:color-mix(in srgb, rgb(var(--v-theme-on-secondary-container)) 8%, rgb(var(--v-theme-secondary-container)))}.studio-home-shell-project-mobile-action[data-v-865566b6]:focus-visible{outline:var(--v64-focus-ring-width) solid rgb(var(--v-theme-primary));outline-offset:var(--v64-focus-ring-offset)}@media (prefers-reduced-motion:reduce){.studio-home-shell-project-tab--active[data-v-865566b6]:before{animation:none}}@media (width<=980px){.studio-home-shell-project-controls[data-v-865566b6]{justify-content:flex-end;min-width:0;margin-left:auto;display:flex}.studio-home-shell-project-tabs--desktop[data-v-865566b6]{display:none}.studio-home-shell-project-mobile-action[data-v-865566b6]{display:inline-flex}.studio-home-shell-preview-toolbar-host[data-v-865566b6]{flex:0 auto;max-width:min(26rem,42vw)}.studio-home-shell-project-mobile-action[data-v-865566b6]{order:1}.studio-home-shell-preview-toolbar-host[data-v-865566b6]{order:2}}@media (width<=600px){.studio-home-shell-project-controls[data-v-865566b6]{flex:none;gap:.3rem}.studio-home-shell-preview-toolbar-host[data-v-865566b6]{max-width:min(12rem,32vw)}.studio-home-shell-project-mobile-action[data-v-865566b6]{min-width:4rem;padding-inline:var(--v64-space-3) var(--v64-space-1)}.studio-home-shell-chat-toggle[data-v-865566b6]{width:2.5rem;min-width:2.5rem;height:2.5rem;min-height:2.5rem}}@media (width<=480px){.studio-home-shell-project-mobile-action[data-v-865566b6]{width:2.5rem;min-width:2.5rem;padding:0}.studio-home-shell-project-mobile-action__icon[data-v-865566b6]{display:inline-flex!important}.studio-home-shell-project-mobile-action__label[data-v-865566b6],.studio-home-shell-project-mobile-action__chevron[data-v-865566b6]{display:none!important}}body.studio-home-shell-active{--studio-home-chat-column-width:32rem;--studio-home-project-gap:.75rem;--studio-control-bg:rgb(var(--v-theme-surface));--studio-control-rest-bg:rgb(var(--v-theme-surface-container-high));--studio-control-active-bg:rgb(var(--v-theme-secondary-container));--studio-control-border:rgb(var(--v-theme-outline-variant));--studio-control-border-strong:rgb(var(--v-theme-outline));--studio-control-text:rgb(var(--v-theme-on-surface));--studio-control-muted-text:rgb(var(--v-theme-on-surface-variant));--studio-control-radius:var(--v64-shape-md)}.generated-ui-screen[data-v-0446a70f]{--generated-ui-screen-title-size:clamp(1.2rem, 1.7vw, 1.55rem);--generated-ui-screen-panel-padding:0}.studio-screen[data-v-0446a70f]{flex:auto;width:100%;max-width:none;height:100%;min-height:0;margin-inline:0;overflow:hidden}.studio-screen__panel[data-v-0446a70f]{padding:var(--generated-ui-screen-panel-padding)}.studio-screen__gate-scroll[data-v-0446a70f]{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.studio-screen__gate-scroll[data-v-0446a70f] .project-selection-gate{flex-direction:column;flex:auto;min-height:0;display:flex}.studio-screen__gate-scroll[data-v-0446a70f] .project-selection-gate .studio-ai-sessions{flex:auto;min-height:0}.studio-home-shell-heading[data-v-0446a70f]{align-items:center;gap:var(--studio-home-project-gap);overflow-clip-margin:4px;flex:auto;min-width:0;display:flex;overflow-x:clip}.studio-home-shell-title-area[data-v-0446a70f]{flex:0 1000 var(--studio-home-chat-column-width);align-items:center;gap:.42rem;min-width:0;padding-left:1rem;display:flex}.studio-home-shell-heading--chat-collapsed .studio-home-shell-title-area[data-v-0446a70f]{flex-basis:auto}@media (width>=981px){.studio-home-shell-heading:not(.studio-home-shell-heading--chat-collapsed) .studio-home-shell-title-area[data-v-0446a70f]{width:calc(var(--studio-home-chat-column-edge,var(--studio-home-chat-column-width)) - var(--studio-home-project-gap) - 2.7rem);flex:0 1000 auto}}.studio-home-shell-project-name[data-v-0446a70f]{flex:0 auto;align-items:center;min-width:0;display:flex}.studio-home-shell-project-title[data-v-0446a70f]{flex:0 auto;min-width:0}.studio-home-shell-project-selector[data-v-0446a70f]{font:inherit;letter-spacing:inherit;text-transform:none;max-width:100%}.studio-home-shell-project-selector[data-v-0446a70f] .v-btn__append{color:rgb(var(--v-theme-on-surface-variant))}.studio-home-shell-github-actor-host[data-v-0446a70f]{flex:auto;align-items:center;min-width:0;min-height:1.65rem;display:flex;overflow:hidden}.studio-home-shell-github-actor-host[data-v-0446a70f]:empty{display:none}.studio-home-shell-local-remotes-host[data-v-0446a70f],.studio-home-shell-create-session-host[data-v-0446a70f]{flex:none;display:flex}.studio-home-shell-local-remotes-host[data-v-0446a70f]:empty,.studio-home-shell-create-session-host[data-v-0446a70f]:empty{display:none}.studio-home-shell-usage-recording-strip[data-v-0446a70f]{flex:none;width:0;position:absolute}.studio-home-shell-usage-recording-strip[data-v-0446a70f]:has(.usage-recording-indicator__pill){width:100%;position:static}@media (width>=981px){.studio-screen__gate-scroll[data-v-0446a70f] .project-selection-gate .studio-ai-sessions--autopilot{padding:0}}@media (width<=980px){.studio-home-shell-heading[data-v-0446a70f]{grid-template-columns:minmax(0,1fr) auto;gap:.5rem;width:100%;display:grid}}@media (width<=600px){.studio-home-shell-heading[data-v-0446a70f]{gap:var(--v64-space-1);flex:auto;width:100%;min-width:0;padding-left:0;display:flex}.studio-home-shell-title-area[data-v-0446a70f]{flex:auto;padding-left:0}.studio-home-shell-project-name[data-v-0446a70f]{flex:auto;overflow:hidden;container-type:inline-size}.studio-home-shell-github-actor-host[data-v-0446a70f]{flex:none}.studio-home-shell-github-actor-host[data-v-0446a70f] .studio-home-shell-session-github-actor{padding:0}.studio-home-shell-github-actor-host[data-v-0446a70f] .studio-home-shell-session-github-actor span{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.studio-home-shell-heading--chat-collapsed .studio-home-shell-create-session-host[data-v-0446a70f],.studio-home-shell-heading--chat-collapsed .studio-home-shell-local-remotes-host[data-v-0446a70f],.studio-home-shell-heading--chat-collapsed .studio-home-shell-github-actor-host[data-v-0446a70f]{display:none}.studio-home-shell-project-title[data-v-0446a70f]{padding-inline-start:.375rem}.studio-home-shell-local-remotes-host[data-v-0446a70f]{margin-inline-end:.375rem}.studio-home-shell-local-remotes-host[data-v-0446a70f] .local-remotes__branch{width:2.5rem!important}.studio-home-shell-title-area[data-v-0446a70f]{gap:var(--v64-space-1)}.studio-home-shell-create-session-host[data-v-0446a70f] .studio-ai-sessions__create-button{width:2.5rem;min-width:2.5rem;height:2.5rem;min-height:2.5rem}.studio-screen[data-v-0446a70f]{max-width:100%}}@container (width<=4rem){.studio-home-shell-project-title[data-v-0446a70f]{visibility:hidden}}
@@ -1 +0,0 @@
1
- .github-label-name[data-v-9814070c]{text-overflow:ellipsis;overflow:hidden}.new-label__colours[data-v-0446a92f]{border:0;min-width:0;padding:0}.new-label__palette[data-v-0446a92f]{grid-template-columns:repeat(4,1fr);justify-items:center;gap:8px;display:grid}.new-label__preview[data-v-0446a92f]{max-width:100%}.new-label__custom[data-v-0446a92f]{border:1px solid rgb(var(--v-theme-on-surface), .38);background:rgb(var(--v-theme-surface));cursor:pointer;border-radius:8px;flex:0 0 48px;width:48px;height:48px;padding:4px}.issues-panel[data-v-06b0081c]{width:100%;min-width:0}.issues-panel__toolbar[data-v-06b0081c]{container:issues-toolbar/inline-size}.issues-panel__select-all[data-v-06b0081c]{flex:none}.issues-panel__comment-body[data-v-06b0081c]{flex:1;min-width:0}.issues-panel__search[data-v-06b0081c]{flex:16rem;min-width:0}.issues-panel__labels[data-v-06b0081c]{min-width:0}.issues-panel__label-filter[data-v-06b0081c]{flex:16rem;min-width:0}.issues-panel__item-title[data-v-06b0081c]{overflow-wrap:anywhere;min-width:0}.issues-panel__issue-link[data-v-06b0081c]{color:inherit}.issues-panel__title[data-v-06b0081c],.issues-panel__markdown[data-v-06b0081c]{overflow-wrap:anywhere}.issues-panel__markdown[data-v-06b0081c]{min-width:0;overflow-x:auto}@container issues-toolbar (width<=28rem){.issues-panel__refresh[data-v-06b0081c]{min-width:48px;padding-inline:0}.issues-panel__refresh[data-v-06b0081c] .v-btn__prepend{margin-inline:0}.issues-panel__refresh[data-v-06b0081c] .v-btn__content{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}@container issues-toolbar (width<=23rem){.issues-panel__new[data-v-06b0081c]{min-width:48px;padding-inline:0}.issues-panel__new[data-v-06b0081c] .v-btn__prepend{margin-inline:0}.issues-panel__new[data-v-06b0081c] .v-btn__content{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}
@@ -1 +0,0 @@
1
- import{$ as useId,Et as unref,G as renderList,H as openBlock,K as renderSlot,M as mergeProps,N as nextTick,Xt as toDisplayString,b as createVNode,d as createBaseVNode,f as createBlock,ft as isRef,gt as reactive,i as Fragment,it as watch,m as createElementBlock,ot as withCtx,p as createCommentVNode,q as resolveComponent,u as computed,vt as ref,xt as shallowRef,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{S as VIcon,a as VAvatar,lr as withKeys,t as VChip,ur as withModifiers}from"./VChip-D2IukBZw.js";import{N as useQueryClient,t as useEndpointResource}from"./useEndpointResource-CmMwteuX.js";import{g as useRoute}from"./useApi-BPuI6ZR9-rsYWyW6m.js";import{t as VAlert}from"./VAlert-DyCQWe9P.js";import{t as VOverlay}from"./VOverlay-DUKRqNx3.js";import{c as VListItemTitle,l as VListItemSubtitle,n as VList,s as VListItem}from"./VMenu-DQ9SZ1Fq.js";import{t as VTextField}from"./VTextField-BMvaWVTN.js";import{o as projectSlugFromRoute}from"./vibe64ProjectScope.local-B9ZpdYlf.js";import{i as scopedDevelopmentApiUrl}from"./studioUrls-k_pQIuPs.js";import{i as VBtnToggle,t as VBtn}from"./VBtn-2vbH580C.js";import{t as VAutocomplete}from"./VAutocomplete-CiXrKMyn.js";import{t as VCheckboxBtn}from"./VCheckboxBtn-6ebHAnh9.js";import{t as VDivider}from"./VDivider-DGkInAUr.js";import{t as VSheet}from"./VSheet-D5wAuyc2.js";import{t as VDialog}from"./VDialog-B2W9wqR8.js";import{i as VCardTitle,n as VCardText,o as VCardActions,t as VCard}from"./VCard-BFqQSnAE.js";import{t as VSpacer}from"./VSpacer-GgPR_AzN.js";import{t as VSkeletonLoader}from"./VSkeletonLoader-C5ZRrPV4.js";import{t as VTextarea}from"./VTextarea-CLaWcpd_.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{t as _sfc_main$8}from"./SelectField-DwWoHC2p.js";import{t as useUiFeedback}from"./useUiFeedback-Bixow9mW.js";import{r as vibe64RealtimeOriginPayload}from"./vibe64BrowserTabOrigin-vIN_87mi.js";import{u as GithubMarkdown_default}from"./index-Wcdz2Rey.js";import{a as githubProjectRepositoryName,c as invalidateGithubIssueQuery,i as githubProjectAvailable,n as githubIssueLabelsPath,o as invalidateGithubIssueListQueries,r as githubIssueMentionsPath,s as invalidateGithubIssueQueries,t as GITHUB_BODY_MAX_LENGTH}from"./vibe64GithubProject-CJneIo5O.js";import{n as useRouteQueryNavigation,t as _sfc_main$9}from"./GithubBrowserTabs-Vv-64NIg.js";var drafts=reactive(new Map);var submittedComments=reactive(new Map);function useVibe64Issues(context){const route=useRoute();const{navigate}=useRouteQueryNavigation();const queryClient=useQueryClient();const feedback=useUiFeedback({source:`vibe64.issues`});const projectSlug=computed(()=>projectSlugFromRoute(route));const repository=computed(()=>githubProjectRepositoryName(context.value.projectContext));const available=computed(()=>githubProjectAvailable(context.value.projectContext));const active=computed(()=>available.value&&context.value.active!==false);const basePath=computed(()=>scopedDevelopmentApiUrl(`/api/vibe64/issues`,projectSlug.value));const state=computed(()=>[`open`,`closed`,`all`].includes(route.query.issueState)?route.query.issueState:`open`);const search=computed(()=>typeof route.query.issueSearch===`string`?route.query.issueSearch:``);const searchDraft=ref(search.value);watch(search,value=>{searchDraft.value=value});const selectedLabels=computed(()=>{const labels=route.query.issueLabel;return(Array.isArray(labels)?labels:[labels]).filter(label=>typeof label===`string`&&label.trim())});const number=computed(()=>/^\d+$/u.test(String(route.query.issue||``))?String(route.query.issue):``);const commentCursor=ref(``);watch([basePath,number],()=>{commentCursor.value=``});const listQuery=computed(()=>({state:state.value,search:search.value,labels:selectedLabels.value,...route.query.issueCursor?{cursor:route.query.issueCursor}:{}}));const listKey=computed(()=>[`vibe64.issues`,basePath.value,listQuery.value]);const list=useEndpointResource({path:basePath,readQuery:listQuery,queryKey:listKey,enabled:computed(()=>active.value&&!number.value),queryOptions:{retry:false},requestRecoveryLabel:`GitHub issues`,fallbackLoadError:`Issues could not load.`});const labelsPath=computed(()=>githubIssueLabelsPath(basePath.value));const labelCatalog=useEndpointResource({path:labelsPath,queryKey:computed(()=>[`vibe64.issueLabels`,labelsPath.value]),enabled:computed(()=>active.value&&!number.value),queryOptions:{retry:false},fallbackLoadError:`Labels could not load.`});const detailPath=computed(()=>`${basePath.value}/${number.value}`);const detail=useEndpointResource({path:detailPath,readQuery:computed(()=>commentCursor.value?{cursor:commentCursor.value}:{}),queryKey:computed(()=>[`vibe64.issue`,detailPath.value,commentCursor.value]),enabled:computed(()=>active.value&&Boolean(number.value)),queryOptions:{retry:false},requestRecoveryLabel:`GitHub issue`,fallbackLoadError:`This issue could not load.`});const issue=computed(()=>detail.data.value?.issue||null);const draft=computed({get:()=>drafts.get(detailPath.value)||``,set:value=>value?drafts.set(detailPath.value,value):drafts.delete(detailPath.value)});const stateRequestPath=ref(``);const localComments=computed(()=>submittedComments.get(detailPath.value)||[]);const savedComments=computed(()=>issue.value?.comments?.nodes||[]);const savedCommentIds=computed(()=>new Set(savedComments.value.map(comment=>comment.id)));const comments=computed(()=>[...savedComments.value,...localComments.value.filter(comment=>!savedCommentIds.value.has(comment.id)&&(comment.delivery!==`sent`||!commentCursor.value))]);const commentCount=computed(()=>(issue.value?.comments?.totalCount||0)+comments.value.length-savedComments.value.length);const pending=computed(()=>{if(stateRequestPath.value===detailPath.value)return`state`;return localComments.value.some(comment=>comment.delivery===`sending`)?`comment`:``});watch([detail.data,detailPath,commentCursor],()=>{if(commentCursor.value||issue.value?.number!==Number(number.value))return;const remaining=localComments.value.filter(comment=>comment.delivery!==`sent`||!savedCommentIds.value.has(comment.id));if(remaining.length)submittedComments.set(detailPath.value,remaining);else submittedComments.delete(detailPath.value)},{immediate:true});function filter(nextState=state.value,nextLabels=selectedLabels.value){return navigate({issueState:nextState,issueSearch:String(searchDraft.value||``).trim()||void 0,issueLabel:nextLabels?.length?nextLabels:void 0,issueCursor:void 0,issue:void 0})}function filterLabel(label){searchDraft.value=`label:${/[\s"\\]/u.test(label)?JSON.stringify(label):label}`;return filter(state.value,[])}function issueUpdated({number:issueNumber,basePath:requestBasePath}){return invalidateGithubIssueQueries(queryClient,requestBasePath,`${requestBasePath}/${issueNumber}`)}async function issueSaved({number:issueNumber,basePath:requestBasePath}){await issueUpdated({number:issueNumber,basePath:requestBasePath});if(basePath.value===requestBasePath)await navigate({issue:String(issueNumber)})}async function mutate(kind){if(pending.value||issue.value?.number!==Number(number.value)||!active.value)return;const requestBasePath=basePath.value;const requestPath=detailPath.value;if(kind===`comment`){const submitted=draft.value;if(!submitted.trim()||submitted.length>65536)return;const comment=reactive({id:crypto.randomUUID(),body:submitted,createdAt:new Date().toISOString(),author:{login:`You`},delivery:`sending`,error:``});submittedComments.set(requestPath,[...localComments.value,comment]);drafts.delete(requestPath);commentCursor.value=``;return sendComment(comment,requestBasePath,requestPath)}stateRequestPath.value=requestPath;try{await detail.save({state:issue.value.state===`OPEN`?`closed`:`open`},{path:requestPath,method:`PATCH`});if(detailPath.value===requestPath)commentCursor.value=``;feedback.success(`Issue updated.`);await invalidateGithubIssueQueries(queryClient,requestBasePath,requestPath)}catch(error){feedback.error(error,`Issue could not be updated.`)}finally{stateRequestPath.value=``}}async function sendComment(comment,requestBasePath,requestPath){comment.delivery=`sending`;comment.error=``;try{const result=await detail.save(vibe64RealtimeOriginPayload({body:comment.body}),{path:`${requestPath}/comments`,method:`POST`});Object.assign(comment,result.comment,{delivery:`sent`})}catch(error){comment.delivery=`failed`;feedback.error(error,`Comment could not be confirmed. Refresh before posting again.`);comment.error=feedback.message.value;return}feedback.success(`Comment added.`);try{await invalidateGithubIssueQueries(queryClient,requestBasePath,requestPath)}catch(error){feedback.error(error,`Comment added, but the conversation could not refresh.`)}}function retryComment(id){const comment=localComments.value.find(entry=>entry.id===id);if(pending.value||!active.value||comment?.delivery!==`failed`)return;commentCursor.value=``;return sendComment(comment,basePath.value,detailPath.value)}return{available,repository,projectSlug,basePath,list,detail,labelCatalog,issue,number,state,searchDraft,selectedLabels,draft,pending,comments,commentCount,commentCursor,navigate,filter,filterLabel,mutate,issueSaved,issueUpdated,retryComment}}var _hoisted_1$6={class:`github-label-name`};var _sfc_main$7={__name:`GithubLabelChip`,props:{label:{type:Object,required:true}},setup(__props){const props=__props;const color=computed(()=>/^[a-f\d]{6}$/iu.test(props.label.color||``)?`#${props.label.color}`:void 0);return(_ctx,_cache)=>{return openBlock(),createBlock(VChip,{color:color.value,title:__props.label.description||__props.label.name,"aria-label":__props.label.name,variant:`flat`,size:`small`},{default:withCtx(()=>[createBaseVNode(`span`,_hoisted_1$6,toDisplayString(__props.label.name),1)]),_:1},8,[`color`,`title`,`aria-label`])}}};var GithubLabelChip_default=_plugin_vue_export_helper_default(_sfc_main$7,[[`__scopeId`,`data-v-9814070c`]]);var _hoisted_1$5={class:`d-flex align-center justify-space-between ga-3 pa-5 pb-2`};var _hoisted_2$4={class:`new-label__colours`};var _hoisted_3$3={class:`new-label__palette`};var _hoisted_4$2={class:`d-flex align-start ga-3`};var _hoisted_5$2=[`value`,`disabled`];var defaultColor=`0075ca`;var _sfc_main$6={__name:`GithubNewLabelButton`,props:{basePath:{type:String,required:true},labels:{type:Array,required:true},disabled:Boolean},emits:[`created`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const palette=[{name:`Red`,color:`d73a4a`},{name:`Orange`,color:`e9963a`},{name:`Yellow`,color:`f9d65c`},{name:`Green`,color:`4c956c`},{name:`Teal`,color:`008672`},{name:`Blue`,color:`0075ca`},{name:`Purple`,color:`8957e5`},{name:`Pink`,color:`db61a2`}];const open=ref(false);const name=ref(``);const color=ref(defaultColor);const pending=ref(false);const trimmedName=computed(()=>name.value.trim());const normalizedColor=computed(()=>color.value.trim().replace(/^#/u,``).toLowerCase());const validColor=computed(()=>/^[a-f\d]{6}$/u.test(normalizedColor.value));const nameError=computed(()=>{if(/\p{Cc}/u.test(name.value)||trimmedName.value.length>50)return`Use up to 50 characters, on one line.`;return props.labels.some(label=>label.name.toLowerCase()===trimmedName.value.toLowerCase())?`A label with this name already exists.`:``});const preview=computed(()=>({name:trimmedName.value||`Your label`,color:validColor.value?normalizedColor.value:defaultColor}));const canSubmit=computed(()=>!props.disabled&&!pending.value&&Boolean(trimmedName.value)&&!nameError.value&&validColor.value);const labelsPath=computed(()=>githubIssueLabelsPath(props.basePath));const resource=useEndpointResource({path:labelsPath,enabled:false,queryKey:computed(()=>[`vibe64.newLabel`,labelsPath.value])});const queryClient=useQueryClient();const feedback=useUiFeedback({source:`vibe64.issues.newLabel`});watch(open,value=>{if(!value)return;name.value=``;color.value=defaultColor});watch(()=>props.basePath,()=>{open.value=false});async function submit(){if(!canSubmit.value)return;const requestPath=labelsPath.value;pending.value=true;let result;try{result=await resource.save({name:trimmedName.value,color:normalizedColor.value},{path:requestPath,method:`POST`})}catch(error){feedback.error(error,`Label could not be created. Your choices have been kept.`);pending.value=false;return}const queryKey=[`vibe64.issueLabels`,requestPath];await queryClient.cancelQueries({queryKey});queryClient.setQueryData(queryKey,catalog=>{if(!catalog)return catalog;const createdName=result.label.name.toLowerCase();const labels=catalog.labels.filter(label=>label.name.toLowerCase()!==createdName);labels.push(result.label);labels.sort((a,b)=>a.name.localeCompare(b.name));return{...catalog,labels}});feedback.success(`Label created.`);if(requestPath===labelsPath.value){open.value=false;emit(`created`,result.label)}pending.value=false}return(_ctx,_cache)=>{return openBlock(),createElementBlock(Fragment,null,[createVNode(VBtn,{"prepend-icon":`$add`,color:`primary`,variant:`text`,disabled:__props.disabled||pending.value,onClick:_cache[0]||(_cache[0]=$event=>open.value=true)},{default:withCtx(()=>[..._cache[7]||(_cache[7]=[createTextVNode(`New label`,-1)])]),_:1},8,[`disabled`]),createVNode(VDialog,{modelValue:open.value,"onUpdate:modelValue":_cache[6]||(_cache[6]=$event=>open.value=$event),"max-width":`30rem`,scrollable:``,persistent:pending.value,"aria-label":`New label`},{default:withCtx(()=>[createVNode(VCard,{tag:`form`,rounded:`xl`,onSubmit:withModifiers(submit,[`prevent`,`stop`])},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_1$5,[_cache[8]||(_cache[8]=createBaseVNode(`h2`,{class:`text-title-large`},`New label`,-1)),createVNode(VBtn,{icon:`$close`,variant:`text`,size:`48`,"aria-label":`Close new label`,disabled:pending.value,onClick:_cache[1]||(_cache[1]=$event=>open.value=false)},null,8,[`disabled`])]),createVNode(VCardText,{class:`d-flex flex-column ga-4`},{default:withCtx(()=>[createVNode(VSheet,{color:`surface-light`,rounded:`lg`,class:`pa-4 d-flex flex-column align-center ga-2`},{default:withCtx(()=>[_cache[9]||(_cache[9]=createBaseVNode(`span`,{class:`text-label-small on-surface-variant`},`Preview`,-1)),createVNode(GithubLabelChip_default,{label:preview.value,class:`new-label__preview`},null,8,[`label`])]),_:1}),createVNode(VTextField,{modelValue:name.value,"onUpdate:modelValue":_cache[2]||(_cache[2]=$event=>name.value=$event),label:`Label name`,placeholder:`e.g. Ready for review`,variant:`outlined`,maxlength:`50`,autofocus:``,disabled:pending.value,"error-messages":nameError.value,"hide-details":`auto`},null,8,[`modelValue`,`disabled`,`error-messages`]),createBaseVNode(`fieldset`,_hoisted_2$4,[_cache[10]||(_cache[10]=createBaseVNode(`legend`,{class:`text-label-large mb-2`},`Colour`,-1)),createBaseVNode(`div`,_hoisted_3$3,[(openBlock(),createElementBlock(Fragment,null,renderList(palette,swatch=>{return createVNode(VBtn,{key:swatch.color,color:`#${swatch.color}`,variant:`flat`,icon:``,size:`48`,"aria-label":swatch.name,"aria-pressed":normalizedColor.value===swatch.color,disabled:pending.value,onClick:$event=>color.value=swatch.color},{default:withCtx(()=>[normalizedColor.value===swatch.color?(openBlock(),createBlock(VIcon,{key:0,icon:`$check`})):createCommentVNode(``,true)]),_:2},1032,[`color`,`aria-label`,`aria-pressed`,`disabled`,`onClick`])}),64))])]),createBaseVNode(`div`,_hoisted_4$2,[createBaseVNode(`input`,{type:`color`,value:`#${preview.value.color}`,class:`new-label__custom`,"aria-label":`Custom colour`,title:`Choose a custom colour`,disabled:pending.value,onInput:_cache[3]||(_cache[3]=$event=>color.value=$event.target.value.slice(1))},null,40,_hoisted_5$2),createVNode(VTextField,{modelValue:color.value,"onUpdate:modelValue":_cache[4]||(_cache[4]=$event=>color.value=$event),label:`Hex colour`,prefix:`#`,variant:`outlined`,density:`compact`,maxlength:`7`,disabled:pending.value,"error-messages":validColor.value?``:`Use six characters: 0–9 or A–F.`,"hide-details":`auto`,autocomplete:`off`,spellcheck:`false`},null,8,[`modelValue`,`disabled`,`error-messages`])]),_cache[11]||(_cache[11]=createBaseVNode(`p`,{class:`text-body-small on-surface-variant ma-0`},`Available to all issues in this repository.`,-1))]),_:1}),createVNode(VCardActions,{class:`pa-5 pt-2`},{default:withCtx(()=>[createVNode(VSpacer),createVNode(VBtn,{variant:`text`,disabled:pending.value,onClick:_cache[5]||(_cache[5]=$event=>open.value=false)},{default:withCtx(()=>[..._cache[12]||(_cache[12]=[createTextVNode(`Cancel`,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{type:`submit`,color:`primary`,variant:`flat`,rounded:`pill`,disabled:!canSubmit.value,"aria-busy":pending.value},{default:withCtx(()=>[createTextVNode(toDisplayString(pending.value?`Creating…`:`Create label`),1)]),_:1},8,[`disabled`,`aria-busy`])]),_:1})]),_:1})]),_:1},8,[`modelValue`,`persistent`])],64)}}};var GithubNewLabelButton_default=_plugin_vue_export_helper_default(_sfc_main$6,[[`__scopeId`,`data-v-0446a92f`]]);var _hoisted_1$4={key:1,class:`text-body-medium pa-3 ma-0`,role:`status`};var _hoisted_2$3={key:2,class:`pa-3 text-body-small`,role:`status`};var _sfc_main$5=Object.assign({inheritAttrs:false},{__name:`GithubMentionTextarea`,props:{modelValue:{type:String,default:``},basePath:{type:String,required:true},issue:{type:Object,default:null},enabled:{type:Boolean,default:true},disabled:Boolean},emits:[`update:modelValue`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const field=ref(null);const mention=ref(null);const selected=ref(0);const listId=`github-mentions-${useId()}`;const path=computed(()=>githubIssueMentionsPath(props.basePath));const number=computed(()=>props.issue?.number||null);const catalog=useEndpointResource({path,readQuery:computed(()=>number.value?{number:number.value}:{}),queryKey:computed(()=>[`vibe64.issueMentions`,path.value,number.value]),enabled:computed(()=>props.enabled),queryOptions:{retry:false,staleTime:6e4},requestRecovery:false,fallbackLoadError:`Mention suggestions could not load. You can still type any @username.`});const people=computed(()=>{const users=new Map;for(const user of[props.issue?.author,...(props.issue?.comments?.nodes||[]).map(comment=>comment.author),...catalog.data.value?.users||[]])if(user?.login)users.set(user.login.toLowerCase(),user);return[...users.values()]});const suggestions=computed(()=>{const query=mention.value?.query.toLowerCase()||``;return people.value.filter(user=>user.login.toLowerCase().includes(query)||user.name?.toLowerCase().includes(query)).sort((a,b)=>{const aStartsWithQuery=a.login.toLowerCase().startsWith(query);const bStartsWithQuery=b.login.toLowerCase().startsWith(query);return Number(bStartsWithQuery)-Number(aStartsWithQuery)||a.login.localeCompare(b.login)}).slice(0,8)});const open=computed(()=>Boolean(mention.value)&&props.enabled&&!props.disabled);const warning=computed(()=>catalog.loadError.value||catalog.data.value?.warning||``);watch([path,number,()=>props.enabled,()=>props.disabled],()=>{mention.value=null});watch(suggestions,()=>{selected.value=0});function updateMention(event){const input=event.target;if(input.tagName!==`TEXTAREA`)return;if(event.isComposing||input.selectionStart!==input.selectionEnd){mention.value=null;return}const end=input.selectionStart;const match=input.value.slice(0,end).match(/(?:^|[\s([{])@([a-z\d-]*)$/iu);mention.value=match?{start:end-match[1].length-1,end,query:match[1]}:null}async function choose(user){if(!mention.value||!user||props.disabled)return;const input=field.value?.$el.querySelector(`textarea`);if(!input)return;const{start,end}=mention.value;const after=input.value.slice(end).replace(/^[a-z\d-]*/iu,``);const insertion=`@${user.login}${/^\s/u.test(after)?``:` `}`;const value=input.value.slice(0,start)+insertion+after;if(input.maxLength>=0&&value.length>input.maxLength)return;const caret=start+insertion.length+(after.startsWith(` `)?1:0);emit(`update:modelValue`,value);mention.value=null;await nextTick();input.focus();input.setSelectionRange(caret,caret)}async function onKeydown(event){if(!open.value||event.isComposing||event.keyCode===229)return;const moveSelection=suggestions.value.length>0&&[`ArrowDown`,`ArrowUp`].includes(event.key);const acceptSelection=suggestions.value.length>0&&(event.key===`Enter`||event.key===`Tab`&&!event.shiftKey);if(event.key!==`Escape`&&!moveSelection&&!acceptSelection)return;event.preventDefault();event.stopPropagation();if(event.key===`Escape`)mention.value=null;else if(moveSelection){selected.value=(selected.value+(event.key===`ArrowDown`?1:-1)+suggestions.value.length)%suggestions.value.length;await nextTick();document.getElementById(`${listId}-${selected.value}`)?.scrollIntoView({block:`nearest`})}else await choose(suggestions.value[selected.value])}return(_ctx,_cache)=>{return openBlock(),createElementBlock(Fragment,null,[createVNode(VTextarea,mergeProps({ref_key:`field`,ref:field},_ctx.$attrs,{"model-value":__props.modelValue,disabled:__props.disabled,hint:`Markdown supported · Type @ to mention someone`,"persistent-hint":``,"aria-autocomplete":`list`,"aria-expanded":open.value,"aria-controls":open.value?listId:void 0,"aria-activedescendant":open.value&&suggestions.value.length?`${listId}-${selected.value}`:void 0,"onUpdate:modelValue":_cache[0]||(_cache[0]=$event=>emit(`update:modelValue`,$event)),onInput:updateMention,onClick:updateMention,onFocus:updateMention,onSelect:updateMention,onCompositionstart:_cache[1]||(_cache[1]=$event=>mention.value=null),onCompositionend:updateMention,onBlur:_cache[2]||(_cache[2]=$event=>mention.value=null),onKeydown,onKeyup:_cache[3]||(_cache[3]=$event=>[`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes($event.key)&&updateMention($event))}),null,16,[`model-value`,`disabled`,`aria-expanded`,`aria-controls`,`aria-activedescendant`]),createVNode(VOverlay,{"model-value":open.value,target:field.value?.$el,"location-strategy":`connected`,location:`top start`,origin:`bottom start`,"scroll-strategy":`reposition`,scrim:false,"close-on-back":false,"capture-focus":false,"retain-focus":false,width:`360`,"max-width":`calc(100vw - 32px)`,"onUpdate:modelValue":_cache[7]||(_cache[7]=$event=>!$event&&(mention.value=null))},{default:withCtx(()=>[createVNode(VSheet,{rounded:`lg`,color:`surface-container`,elevation:`3`,class:`overflow-y-auto`,"max-height":`320`},{default:withCtx(()=>[createVNode(VList,{id:listId,role:`listbox`,"aria-label":`Mention suggestions`,density:`compact`,class:`pa-1`},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(suggestions.value,(user,index)=>{return openBlock(),createBlock(VListItem,{id:`${listId}-${index}`,key:user.login,tag:`button`,type:`button`,role:`option`,tabindex:`-1`,"aria-selected":index===selected.value,active:index===selected.value,title:`@${user.login}`,subtitle:user.name||void 0,"min-height":`48`,class:`w-100 text-left`,onPointerdown:_cache[4]||(_cache[4]=withModifiers(()=>{},[`prevent`])),onClick:$event=>choose(user)},null,8,[`id`,`aria-selected`,`active`,`title`,`subtitle`,`onClick`])}),128))]),_:1}),unref(catalog).isInitialLoading.value?(openBlock(),createBlock(VSkeletonLoader,{key:0,type:`list-item`,height:`48`,"aria-label":`Loading mention suggestions`,"aria-busy":`true`})):!suggestions.value.length&&!warning.value?(openBlock(),createElementBlock(`p`,_hoisted_1$4,`No matching people`)):createCommentVNode(``,true),warning.value?(openBlock(),createElementBlock(`div`,_hoisted_2$3,[createTextVNode(toDisplayString(warning.value)+` `,1),createVNode(VBtn,{variant:`text`,disabled:unref(catalog).isFetching.value,onPointerdown:_cache[5]||(_cache[5]=withModifiers(()=>{},[`prevent`])),onClick:_cache[6]||(_cache[6]=$event=>unref(catalog).reload())},{default:withCtx(()=>[..._cache[8]||(_cache[8]=[createTextVNode(`Retry`,-1)])]),_:1},8,[`disabled`])])):createCommentVNode(``,true)]),_:1})]),_:1},8,[`model-value`,`target`])],64)}}});var _hoisted_1$3={class:`d-flex align-center justify-space-between ga-3 pa-5 pb-2`};var _hoisted_2$2={class:`d-flex align-center ga-3`};var _hoisted_3$2={class:`text-title-large`};var _hoisted_4$1={key:0,class:`text-body-medium ma-0`};var _hoisted_5$1={class:`d-flex flex-wrap justify-space-between ga-2`};var _sfc_main$4={__name:`GithubIssueEditorDialog`,props:{modelValue:Boolean,basePath:{type:String,required:true},issue:{type:Object,default:null},mode:{type:String,default:`create`}},emits:[`update:modelValue`,`saved`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const editing=computed(()=>props.mode!==`create`);const editingLabels=computed(()=>props.mode===`labels`);const heading=computed(()=>editingLabels.value?`Edit labels`:editing.value?`Edit issue`:`New issue`);const title=ref(``);const body=ref(``);const selectedLabels=ref([]);const pending=ref(false);const feedback=useUiFeedback({source:`vibe64.issues.editor`});const labelsPath=computed(()=>githubIssueLabelsPath(props.basePath));const catalog=useEndpointResource({path:labelsPath,queryKey:computed(()=>[`vibe64.issueLabels`,labelsPath.value]),enabled:computed(()=>props.modelValue&&props.mode!==`content`),queryOptions:{retry:false},fallbackLoadError:`Labels could not load.`});const labels=computed(()=>catalog.data.value?.labels||[]);const canSetLabels=computed(()=>{const permission=editing.value?`canEditLabels`:`canCreateWithLabels`;return catalog.data.value?.[permission]===true});const path=computed(()=>editing.value?`${props.basePath}/${props.issue.number}${editingLabels.value?`/labels`:``}`:props.basePath);const resource=useEndpointResource({path,queryKey:computed(()=>[`vibe64.issueEditor`,path.value]),enabled:false});const canSubmit=computed(()=>{if(pending.value||selectedLabels.value.length>100)return false;return editingLabels.value?canSetLabels.value:Boolean(title.value.trim())&&(!editing.value||props.issue.viewerCanUpdate)});const submitLabel=computed(()=>{if(pending.value)return editing.value?`Saving…`:`Creating…`;if(editingLabels.value)return`Save labels`;return editing.value?`Save issue`:`Create issue`});watch(()=>props.modelValue,open=>{if(!open)return;title.value=props.issue?.title||``;body.value=props.issue?.body||``;selectedLabels.value=props.issue?.labels?.nodes?.map(label=>label.name)||[]},{immediate:true});async function submit(){if(!canSubmit.value)return;const wasEditing=editing.value;const requestBasePath=props.basePath;pending.value=true;try{const payload=editingLabels.value?{labels:selectedLabels.value}:{title:title.value.trim(),body:body.value,...!wasEditing?{labels:selectedLabels.value}:{}};const result=await resource.save(payload,{method:wasEditing?`PUT`:`POST`});feedback.success(wasEditing?`Issue updated.`:`Issue created.`);emit(`saved`,{number:result.issue.number,basePath:requestBasePath});emit(`update:modelValue`,false)}catch(error){feedback.error(error,wasEditing?`Issue could not be updated. Your changes have been kept.`:`Issue creation could not be confirmed. Refresh the issue list before trying again.`)}finally{pending.value=false}}return(_ctx,_cache)=>{return openBlock(),createBlock(VDialog,{"model-value":__props.modelValue,"max-width":`42rem`,scrollable:``,persistent:pending.value,"onUpdate:modelValue":_cache[8]||(_cache[8]=$event=>emit(`update:modelValue`,$event))},{default:withCtx(()=>[createVNode(VCard,{tag:`form`,rounded:`xl`,onSubmit:withModifiers(submit,[`prevent`])},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_1$3,[createBaseVNode(`div`,_hoisted_2$2,[createVNode(VIcon,{icon:editingLabels.value?`$label`:editing.value?`$edit`:`$add`,color:`primary`},null,8,[`icon`]),createBaseVNode(`h2`,_hoisted_3$2,toDisplayString(heading.value),1)]),createVNode(VBtn,{icon:`$close`,variant:`text`,size:`48`,"aria-label":`Close issue dialog`,disabled:pending.value,onClick:_cache[0]||(_cache[0]=$event=>emit(`update:modelValue`,false))},null,8,[`disabled`])]),createVNode(VCardText,{class:`d-flex flex-column ga-4`},{default:withCtx(()=>[editingLabels.value?(openBlock(),createElementBlock(`p`,_hoisted_4$1,`#`+toDisplayString(__props.issue.number)+` · `+toDisplayString(__props.issue.title),1)):(openBlock(),createElementBlock(Fragment,{key:1},[createVNode(VTextField,{modelValue:title.value,"onUpdate:modelValue":_cache[1]||(_cache[1]=$event=>title.value=$event),label:`Title`,variant:`outlined`,maxlength:`256`,disabled:pending.value,"hide-details":``,autofocus:``},null,8,[`modelValue`,`disabled`]),createVNode(_sfc_main$5,{modelValue:body.value,"onUpdate:modelValue":_cache[2]||(_cache[2]=$event=>body.value=$event),label:`Description`,placeholder:`What needs to happen?`,variant:`outlined`,rows:`5`,"auto-grow":``,maxlength:unref(GITHUB_BODY_MAX_LENGTH),"base-path":__props.basePath,issue:__props.issue,enabled:__props.modelValue,disabled:pending.value},null,8,[`modelValue`,`maxlength`,`base-path`,`issue`,`enabled`,`disabled`])],64)),__props.mode!==`content`?(openBlock(),createElementBlock(Fragment,{key:2},[unref(catalog).isInitialLoading.value?(openBlock(),createBlock(VSkeletonLoader,{key:0,type:`list-item-two-line,button`,"min-height":`152`,"aria-label":`Loading labels`,"aria-busy":`true`})):unref(catalog).loadError.value?(openBlock(),createBlock(VAlert,{key:1,type:`error`,variant:`tonal`,rounded:`lg`},{append:withCtx(()=>[createVNode(VBtn,{variant:`text`,onClick:_cache[3]||(_cache[3]=$event=>unref(catalog).reload())},{default:withCtx(()=>[..._cache[9]||(_cache[9]=[createTextVNode(`Retry`,-1)])]),_:1})]),default:withCtx(()=>[createTextVNode(toDisplayString(unref(catalog).loadError.value)+` `,1)]),_:1})):(openBlock(),createElementBlock(Fragment,{key:2},[createVNode(unref(_sfc_main$8),{modelValue:selectedLabels.value,"onUpdate:modelValue":_cache[4]||(_cache[4]=$event=>selectedLabels.value=$event),searchable:``,items:labels.value,loading:unref(catalog).isLoading.value,"item-title":`name`,"item-value":`name`,multiple:``,chips:``,"closable-chips":``,label:`Labels`,variant:`outlined`,disabled:pending.value||!canSetLabels.value,"menu-props":{maxHeight:320},"error-messages":selectedLabels.value.length>100?`Choose up to 100 labels.`:``,hint:canSetLabels.value?`Search and select repository labels.`:editing.value?`Your GitHub account cannot edit labels.`:`GitHub requires write access to set labels on a new issue.`,"persistent-hint":``,"no-data-text":`No matching labels`},{chip:withCtx(({props:chipProps,item})=>[createVNode(GithubLabelChip_default,mergeProps(chipProps,{label:item}),null,16,[`label`])]),item:withCtx(({props:itemProps,item})=>[createVNode(VListItem,mergeProps(itemProps,{"min-height":`48`}),{title:withCtx(()=>[createVNode(GithubLabelChip_default,{label:item},null,8,[`label`])]),subtitle:withCtx(()=>[createTextVNode(toDisplayString(item.description),1)]),_:2},1040)]),_:1},8,[`modelValue`,`items`,`loading`,`disabled`,`error-messages`,`hint`]),createBaseVNode(`div`,_hoisted_5$1,[unref(catalog).data.value?.canCreateLabels?(openBlock(),createBlock(GithubNewLabelButton_default,{key:0,"base-path":__props.basePath,labels:labels.value,disabled:pending.value,onCreated:_cache[5]||(_cache[5]=$event=>selectedLabels.value=[...selectedLabels.value,$event.name])},null,8,[`base-path`,`labels`,`disabled`])):createCommentVNode(``,true),createVNode(VBtn,{variant:`text`,disabled:pending.value||unref(catalog).isFetching.value,onClick:_cache[6]||(_cache[6]=$event=>unref(catalog).reload())},{default:withCtx(()=>[..._cache[10]||(_cache[10]=[createTextVNode(`Refresh labels`,-1)])]),_:1},8,[`disabled`])])],64))],64)):createCommentVNode(``,true)]),_:1}),createVNode(VCardActions,{class:`pa-5 pt-2`},{default:withCtx(()=>[createVNode(VSpacer),createVNode(VBtn,{variant:`text`,disabled:pending.value,onClick:_cache[7]||(_cache[7]=$event=>emit(`update:modelValue`,false))},{default:withCtx(()=>[..._cache[11]||(_cache[11]=[createTextVNode(`Cancel`,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{type:`submit`,color:`primary`,variant:`flat`,rounded:`pill`,disabled:!canSubmit.value,"aria-busy":pending.value},{default:withCtx(()=>[createTextVNode(toDisplayString(submitLabel.value),1)]),_:1},8,[`disabled`,`aria-busy`])]),_:1})]),_:1})]),_:1},8,[`model-value`,`persistent`])}}};var _hoisted_1$2={class:`d-flex flex-wrap justify-end ga-2`};var _sfc_main$3={__name:`GithubCommentEditor`,props:{comment:{type:Object,required:true},issue:{type:Object,required:true},basePath:{type:String,required:true}},emits:[`saved`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const editing=ref(false);const body=ref(``);const pending=ref(false);const feedback=useUiFeedback({source:`vibe64.issues.commentEditor`});const path=computed(()=>`${props.basePath}/${props.issue.number}/comments/${encodeURIComponent(props.comment.id)}`);const resource=useEndpointResource({path,enabled:false});const canSubmit=computed(()=>!pending.value&&Boolean(body.value.trim())&&body.value.length<=65536);function edit(){body.value=props.comment.body;editing.value=true}async function submit(){if(!canSubmit.value)return;const savedIssue={number:props.issue.number,basePath:props.basePath};pending.value=true;try{await resource.save({body:body.value},{method:`PATCH`});editing.value=false;feedback.success(`Comment updated.`);emit(`saved`,savedIssue)}catch(error){feedback.error(error,`Comment could not be updated. Your changes have been kept.`)}finally{pending.value=false}}return(_ctx,_cache)=>{return editing.value?(openBlock(),createElementBlock(`form`,{key:0,class:`d-flex flex-column ga-2`,onSubmit:withModifiers(submit,[`prevent`])},[createVNode(_sfc_main$5,{modelValue:body.value,"onUpdate:modelValue":_cache[0]||(_cache[0]=$event=>body.value=$event),label:`Edit comment`,"base-path":__props.basePath,issue:__props.issue,disabled:pending.value,enabled:editing.value,variant:`outlined`,rows:`4`,"auto-grow":``,maxlength:unref(GITHUB_BODY_MAX_LENGTH)},null,8,[`modelValue`,`base-path`,`issue`,`disabled`,`enabled`,`maxlength`]),createBaseVNode(`div`,_hoisted_1$2,[createVNode(VBtn,{variant:`text`,disabled:pending.value,onClick:_cache[1]||(_cache[1]=$event=>editing.value=false)},{default:withCtx(()=>[..._cache[2]||(_cache[2]=[createTextVNode(`Cancel`,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{type:`submit`,color:`primary`,variant:`flat`,disabled:!canSubmit.value},{default:withCtx(()=>[createTextVNode(toDisplayString(pending.value?`Saving…`:`Save comment`),1)]),_:1},8,[`disabled`])])],32)):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot(_ctx.$slots,`default`),__props.comment.viewerCanUpdate?(openBlock(),createBlock(VBtn,{key:0,variant:`text`,onClick:edit},{default:withCtx(()=>[..._cache[3]||(_cache[3]=[createTextVNode(`Edit comment`,-1)])]),_:1})):createCommentVNode(``,true)],64))}}};var _hoisted_1$1={class:`text-body-medium ma-0`};var _hoisted_2$1={key:0,class:`d-flex justify-start`};var _hoisted_3$1={key:1,role:`status`};var _sfc_main$2={__name:`GithubBulkLabelsDialog`,props:{modelValue:Boolean,basePath:{type:String,required:true},numbers:{type:Array,required:true},labels:{type:Array,required:true},canCreateLabels:Boolean},emits:[`update:modelValue`,`applied`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const labelMode=ref(`add`);const selectedLabels=ref([]);const remaining=ref([]);const failures=ref([]);const pending=ref(false);const progress=ref(``);const feedback=useUiFeedback({source:`vibe64.issues.bulkLabels`});const queryClient=useQueryClient();const resource=useEndpointResource({path:computed(()=>props.basePath),enabled:false});const canSubmit=computed(()=>!pending.value&&selectedLabels.value.length>0&&selectedLabels.value.length<=100&&remaining.value.length>0);watch(()=>props.modelValue,open=>{if(!open)return;remaining.value=[...props.numbers];selectedLabels.value=[];labelMode.value=`add`;failures.value=[]},{immediate:true});async function submit(){if(!canSubmit.value)return;const requestBasePath=props.basePath;const numbers=[...remaining.value];const payload={labels:[...selectedLabels.value],labelMode:labelMode.value};failures.value=[];pending.value=true;for(const[index,number]of numbers.entries()){progress.value=`Updating ${index+1} of ${numbers.length}…`;const issuePath=`${requestBasePath}/${number}`;try{await resource.save(payload,{path:`${issuePath}/labels`,method:`PUT`})}catch(error){feedback.error(error,`Labels could not be updated for #${number}.`);failures.value.push({number,message:feedback.message.value});continue}remaining.value=remaining.value.filter(value=>value!==number);emit(`applied`,{number,basePath:requestBasePath});try{await invalidateGithubIssueQuery(queryClient,issuePath)}catch(error){feedback.error(error,`Labels updated for #${number}, but the issue could not refresh.`)}}if(remaining.value.length<numbers.length)try{await invalidateGithubIssueListQueries(queryClient,requestBasePath)}catch(error){feedback.error(error,`Labels were updated, but the issue list could not refresh.`)}pending.value=false;if(!remaining.value.length){feedback.success(`Labels updated for ${numbers.length} ${numbers.length===1?`issue`:`issues`}.`);emit(`update:modelValue`,false)}}return(_ctx,_cache)=>{return openBlock(),createBlock(VDialog,{"model-value":__props.modelValue,"max-width":`36rem`,scrollable:``,persistent:pending.value,"onUpdate:modelValue":_cache[4]||(_cache[4]=$event=>emit(`update:modelValue`,$event))},{default:withCtx(()=>[createVNode(VCard,{tag:`form`,rounded:`xl`,onSubmit:withModifiers(submit,[`prevent`])},{default:withCtx(()=>[createVNode(VCardTitle,{class:`pa-5 pb-2`},{default:withCtx(()=>[..._cache[5]||(_cache[5]=[createTextVNode(`Bulk edit labels`,-1)])]),_:1}),createVNode(VCardText,{class:`d-flex flex-column ga-4`},{default:withCtx(()=>[createBaseVNode(`p`,_hoisted_1$1,toDisplayString(remaining.value.length)+` selected. Other labels will stay unchanged.`,1),createVNode(VBtnToggle,{modelValue:labelMode.value,"onUpdate:modelValue":_cache[0]||(_cache[0]=$event=>labelMode.value=$event),mandatory:``,divided:``,rounded:`pill`,disabled:pending.value,"aria-label":`Label action`},{default:withCtx(()=>[createVNode(VBtn,{value:`add`},{default:withCtx(()=>[..._cache[6]||(_cache[6]=[createTextVNode(`Add labels`,-1)])]),_:1}),createVNode(VBtn,{value:`remove`},{default:withCtx(()=>[..._cache[7]||(_cache[7]=[createTextVNode(`Remove labels`,-1)])]),_:1})]),_:1},8,[`modelValue`,`disabled`]),createVNode(VAutocomplete,{modelValue:selectedLabels.value,"onUpdate:modelValue":_cache[1]||(_cache[1]=$event=>selectedLabels.value=$event),items:__props.labels,"item-title":`name`,"item-value":`name`,multiple:``,chips:``,"closable-chips":``,label:`Labels to change`,variant:`outlined`,disabled:pending.value,"menu-props":{maxHeight:320},"error-messages":selectedLabels.value.length>100?`Choose up to 100 labels.`:``,"no-data-text":`No matching labels`},{chip:withCtx(({props:chipProps,item})=>[createVNode(GithubLabelChip_default,mergeProps(chipProps,{label:item}),null,16,[`label`])]),item:withCtx(({props:itemProps,item})=>[createVNode(VListItem,mergeProps(itemProps,{"min-height":`48`}),{title:withCtx(()=>[createVNode(GithubLabelChip_default,{label:item},null,8,[`label`])]),_:2},1040)]),_:1},8,[`modelValue`,`items`,`disabled`,`error-messages`]),__props.canCreateLabels&&labelMode.value===`add`?(openBlock(),createElementBlock(`div`,_hoisted_2$1,[createVNode(GithubNewLabelButton_default,{"base-path":__props.basePath,labels:__props.labels,disabled:pending.value,onCreated:_cache[2]||(_cache[2]=$event=>selectedLabels.value=[...selectedLabels.value,$event.name])},null,8,[`base-path`,`labels`,`disabled`])])):createCommentVNode(``,true),failures.value.length?(openBlock(),createElementBlock(`div`,_hoisted_3$1,[_cache[8]||(_cache[8]=createBaseVNode(`p`,{class:`text-body-medium`},`Some issues could not be updated. Retry applies only to these issues:`,-1)),(openBlock(true),createElementBlock(Fragment,null,renderList(failures.value,failure=>{return openBlock(),createElementBlock(`p`,{key:failure.number,class:`text-body-small text-error`},`#`+toDisplayString(failure.number)+`: `+toDisplayString(failure.message),1)}),128))])):createCommentVNode(``,true)]),_:1}),createVNode(VCardActions,{class:`pa-5 pt-2 d-flex flex-wrap`},{default:withCtx(()=>[createVNode(VSpacer),createVNode(VBtn,{variant:`text`,disabled:pending.value,onClick:_cache[3]||(_cache[3]=$event=>emit(`update:modelValue`,false))},{default:withCtx(()=>[..._cache[9]||(_cache[9]=[createTextVNode(`Cancel`,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{type:`submit`,color:`primary`,variant:`flat`,disabled:!canSubmit.value},{default:withCtx(()=>[createTextVNode(toDisplayString(pending.value?progress.value:failures.value.length?`Retry failed issues`:`Apply labels`),1)]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`model-value`,`persistent`])}}};var _hoisted_1={class:`issues-panel d-flex flex-column ga-2`};var _hoisted_2={class:`issues-panel__toolbar d-flex flex-wrap align-center ga-2`};var _hoisted_3={class:`issues-panel__labels d-flex flex-wrap align-start ga-2`};var _hoisted_4={key:3,class:`d-flex justify-end`};var _hoisted_5={key:0,class:`text-body-small on-surface-variant ma-0`};var _hoisted_6={class:`d-flex align-center justify-space-between px-2 text-label-large on-surface-variant`};var _hoisted_7={key:1,class:`d-flex flex-wrap align-center ga-2`};var _hoisted_8={class:`text-label-large`,role:`status`};var _hoisted_9={class:`d-flex align-center`};var _hoisted_10={class:`d-flex flex-wrap align-center ga-1`};var _hoisted_11={key:0,class:`text-label-small`};var _hoisted_12=[`aria-label`];var _hoisted_13={class:`d-flex justify-space-between ga-2`};var _hoisted_14={class:`d-flex align-center flex-wrap ga-2 mb-3`};var _hoisted_15={class:`text-label-large on-surface-variant`};var _hoisted_16={class:`text-title-large mb-2 issues-panel__title`};var _hoisted_17={class:`text-body-small on-surface-variant mb-0`};var _hoisted_18={class:`d-flex align-center flex-wrap ga-2 mt-3`};var _hoisted_19={key:0,class:`text-body-small on-surface-variant`};var _hoisted_20={key:1,class:`text-body-medium on-surface-variant ma-0`};var _hoisted_21={class:`d-flex align-center justify-space-between flex-wrap ga-2 px-2`};var _hoisted_22={class:`text-title-medium`};var _hoisted_23={class:`on-surface-variant`};var _hoisted_24={class:`d-flex flex-wrap ga-2`};var _hoisted_25={key:1,class:`text-body-medium on-surface-variant px-2`};var _hoisted_26={class:`issues-panel__comment-body`};var _hoisted_27={class:`d-flex flex-wrap align-center ga-2 mb-2`};var _hoisted_28={class:`text-label-large`};var _hoisted_29=[`datetime`];var _hoisted_30={key:0,class:`d-flex flex-wrap align-center ga-2 mt-1`,"aria-live":`polite`};var _hoisted_31={key:0,class:`text-body-small on-surface-variant`};var _hoisted_32={class:`text-body-small text-error`};var _hoisted_33={key:0,class:`text-body-small on-surface-variant ma-0`};var _hoisted_34={class:`d-flex flex-wrap align-center justify-space-between ga-3`};var _sfc_main$1={__name:`GithubIssuesPanel`,props:{dashboardContext:{type:Object,default:()=>({})}},setup(__props){const props=__props;const{available,basePath,list,detail,labelCatalog,issue,number,state,searchDraft,selectedLabels,draft,pending,comments,commentCount,commentCursor,navigate,filter,filterLabel,mutate,issueSaved,issueUpdated,retryComment}=useVibe64Issues(computed(()=>props.dashboardContext));const route=useRoute();const bulkOpen=ref(false);const selectedNumbers=ref([]);const visibleNumbers=computed(()=>(list.data.value?.issues||[]).map(item=>item.number));const allSelected=computed(()=>visibleNumbers.value.length>0&&visibleNumbers.value.every(value=>selectedNumbers.value.includes(value)));watch(()=>[basePath.value,number.value,route.query.issueSearch,route.query.issueState,route.query.issueCursor,route.query.issueLabel],()=>{selectedNumbers.value=[];bulkOpen.value=false},{deep:true});function labelsApplied({number:issueNumber,basePath:requestBasePath}){if(basePath.value===requestBasePath)selectedNumbers.value=selectedNumbers.value.filter(value=>value!==issueNumber)}const editorOpen=ref(false);const editorMode=ref(`create`);const editorIssue=shallowRef(null);watch([basePath,number],()=>{editorOpen.value=false;editorIssue.value=null;editorMode.value=`create`});function openEditor(selectedIssue=null,mode=`create`){editorMode.value=mode;editorIssue.value=selectedIssue;editorOpen.value=true}const resource=computed(()=>number.value?detail:list);const canChangeState=computed(()=>issue.value?.state===`OPEN`?issue.value.viewerCanClose:issue.value?.viewerCanReopen);function date(value){return value?new Date(value).toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`}):``}return(_ctx,_cache)=>{const _component_router_link=resolveComponent(`router-link`);return openBlock(),createElementBlock(`section`,_hoisted_1,[createBaseVNode(`div`,_hoisted_2,[unref(available)&&unref(number)?(openBlock(),createBlock(VBtn,{key:0,color:`primary`,variant:`text`,onClick:_cache[0]||(_cache[0]=$event=>unref(navigate)({issue:void 0}))},{default:withCtx(()=>[..._cache[28]||(_cache[28]=[createTextVNode(`All issues`,-1)])]),_:1})):createCommentVNode(``,true),createVNode(VSpacer),unref(available)?(openBlock(),createBlock(VBtn,{key:1,class:`issues-panel__refresh`,"prepend-icon":`$refresh`,variant:`text`,size:`small`,disabled:resource.value.isFetching.value||Boolean(unref(pending)),onClick:_cache[1]||(_cache[1]=$event=>resource.value.reload())},{default:withCtx(()=>[createTextVNode(toDisplayString(resource.value.isFetching.value?`Refreshing…`:`Refresh`),1)]),_:1},8,[`disabled`])):createCommentVNode(``,true),unref(available)?(openBlock(),createBlock(VBtn,{key:2,class:`issues-panel__new`,"prepend-icon":`$add`,color:`primary`,variant:`tonal`,rounded:`pill`,size:`small`,onClick:_cache[2]||(_cache[2]=$event=>openEditor())},{default:withCtx(()=>[..._cache[29]||(_cache[29]=[createTextVNode(` New issue `,-1)])]),_:1})):createCommentVNode(``,true)]),!unref(available)?(openBlock(),createBlock(VAlert,{key:0,variant:`tonal`,type:`info`},{default:withCtx(()=>[..._cache[30]||(_cache[30]=[createTextVNode(`Issues are available only for GitHub projects.`,-1)])]),_:1})):(openBlock(),createElementBlock(Fragment,{key:1},[createVNode(_sfc_main$9),!unref(number)?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode(`form`,{class:`d-flex flex-wrap align-center ga-3`,onSubmit:_cache[8]||(_cache[8]=withModifiers($event=>unref(filter)(),[`prevent`]))},[createVNode(VBtnToggle,{"model-value":unref(state),mandatory:``,divided:``,rounded:`pill`,color:`primary`,variant:`outlined`,"aria-label":`Issue state`,"onUpdate:modelValue":_cache[3]||(_cache[3]=$event=>unref(filter)($event))},{default:withCtx(()=>[createVNode(VBtn,{value:`open`},{default:withCtx(()=>[..._cache[31]||(_cache[31]=[createTextVNode(`Open`,-1)])]),_:1}),createVNode(VBtn,{value:`closed`},{default:withCtx(()=>[..._cache[32]||(_cache[32]=[createTextVNode(`Closed`,-1)])]),_:1}),createVNode(VBtn,{value:`all`},{default:withCtx(()=>[..._cache[33]||(_cache[33]=[createTextVNode(`All`,-1)])]),_:1})]),_:1},8,[`model-value`]),createVNode(VTextField,{modelValue:unref(searchDraft),"onUpdate:modelValue":_cache[5]||(_cache[5]=$event=>isRef(searchDraft)?searchDraft.value=$event:null),class:`issues-panel__search`,label:`Search issues`,placeholder:`Number, text, label:new or label:"some label"`,"prepend-inner-icon":`$search`,variant:`outlined`,rounded:`pill`,"hide-details":``,maxlength:`200`,clearable:``,onKeydown:_cache[6]||(_cache[6]=withKeys(withModifiers($event=>unref(filter)(),[`prevent`]),[`enter`])),"onClick:clear":_cache[7]||(_cache[7]=$event=>{searchDraft.value=``;unref(filter)()})},{"append-inner":withCtx(()=>[createVNode(VBtn,{icon:`$arrowForward`,variant:`text`,size:`48`,"aria-label":`Search issues`,onClick:_cache[4]||(_cache[4]=$event=>unref(filter)())})]),_:1},8,[`modelValue`])],32),createBaseVNode(`div`,_hoisted_3,[unref(labelCatalog).isInitialLoading.value?(openBlock(),createBlock(VSkeletonLoader,{key:0,class:`issues-panel__label-filter`,type:`list-item`,height:`80`,"aria-label":`Loading label filters`,"aria-busy":`true`})):unref(labelCatalog).loadError.value?(openBlock(),createBlock(VAlert,{key:1,class:`issues-panel__label-filter`,type:`error`,variant:`tonal`,rounded:`lg`},{append:withCtx(()=>[createVNode(VBtn,{variant:`text`,onClick:_cache[9]||(_cache[9]=$event=>unref(labelCatalog).reload())},{default:withCtx(()=>[..._cache[34]||(_cache[34]=[createTextVNode(`Retry labels`,-1)])]),_:1})]),default:withCtx(()=>[createTextVNode(toDisplayString(unref(labelCatalog).loadError.value)+` `,1)]),_:1})):(openBlock(),createBlock(unref(_sfc_main$8),{key:2,"model-value":unref(selectedLabels),searchable:``,items:unref(labelCatalog).data.value?.labels||[],loading:unref(labelCatalog).isLoading.value,class:`issues-panel__label-filter`,"item-title":`name`,"item-value":`name`,multiple:``,chips:``,"closable-chips":``,clearable:``,label:`Filter by labels`,"prepend-inner-icon":`$label`,variant:`outlined`,rounded:`lg`,"menu-props":{maxHeight:320},hint:`Match all selected labels.`,"persistent-hint":``,"no-data-text":`No matching labels`,"onUpdate:modelValue":_cache[10]||(_cache[10]=$event=>unref(filter)(unref(state),$event))},{chip:withCtx(({props:chipProps,item})=>[createVNode(GithubLabelChip_default,mergeProps(chipProps,{label:item}),null,16,[`label`])]),item:withCtx(({props:itemProps,item})=>[createVNode(VListItem,mergeProps(itemProps,{"min-height":`48`}),{title:withCtx(()=>[createVNode(GithubLabelChip_default,{label:item},null,8,[`label`])]),subtitle:withCtx(()=>[createTextVNode(toDisplayString(item.description),1)]),_:2},1040)]),_:1},8,[`model-value`,`items`,`loading`])),unref(labelCatalog).data.value?.canCreateLabels?(openBlock(),createElementBlock(`div`,_hoisted_4,[createVNode(GithubNewLabelButton_default,{"base-path":unref(basePath),labels:unref(labelCatalog).data.value.labels},null,8,[`base-path`,`labels`])])):createCommentVNode(``,true)])],64)):createCommentVNode(``,true),resource.value.isInitialLoading.value?(openBlock(),createBlock(VSheet,{key:1,rounded:`xl`,color:`surface-container-low`,class:`pa-4`,"aria-label":`Loading issues`,"aria-busy":`true`},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(4,index=>{return createVNode(VSkeletonLoader,{key:index,type:unref(number)?`paragraph`:`list-item-two-line`},null,8,[`type`])}),64))]),_:1})):resource.value.loadError.value&&(!unref(number)||!unref(issue))?(openBlock(),createBlock(VAlert,{key:2,type:`error`,variant:`tonal`,rounded:`lg`},{append:withCtx(()=>[createVNode(VBtn,{variant:`text`,disabled:resource.value.isFetching.value,onClick:_cache[11]||(_cache[11]=$event=>resource.value.reload())},{default:withCtx(()=>[..._cache[35]||(_cache[35]=[createTextVNode(`Retry`,-1)])]),_:1},8,[`disabled`])]),default:withCtx(()=>[createTextVNode(toDisplayString(resource.value.loadError.value)+` `,1)]),_:1})):!unref(number)?(openBlock(),createElementBlock(Fragment,{key:3},[unref(list).data.value?.searchLimit&&unref(list).data.value.total>unref(list).data.value.searchLimit?(openBlock(),createElementBlock(`p`,_hoisted_5,` GitHub returns up to 1,000 matches for text searches or multiple labels. Narrow the filters to see more specific results. `)):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_6,[createBaseVNode(`span`,null,toDisplayString(unref(list).data.value?.total||0)+` `+toDisplayString(unref(list).data.value?.total===1?`issue`:`issues`),1),_cache[36]||(_cache[36]=createBaseVNode(`span`,null,`Recently updated`,-1))]),unref(labelCatalog).data.value?.canEditLabels&&visibleNumbers.value.length?(openBlock(),createElementBlock(`div`,_hoisted_7,[createVNode(VCheckboxBtn,{"model-value":allSelected.value,indeterminate:selectedNumbers.value.length>0&&!allSelected.value,label:`Select all on this page`,class:`issues-panel__select-all`,"min-height":`48`,"onUpdate:modelValue":_cache[12]||(_cache[12]=$event=>selectedNumbers.value=$event?[...visibleNumbers.value]:[])},null,8,[`model-value`,`indeterminate`]),createBaseVNode(`span`,_hoisted_8,toDisplayString(selectedNumbers.value.length)+` selected`,1),createVNode(VBtn,{variant:`tonal`,disabled:!selectedNumbers.value.length,onClick:_cache[13]||(_cache[13]=$event=>bulkOpen.value=true)},{default:withCtx(()=>[..._cache[37]||(_cache[37]=[createTextVNode(`Bulk edit labels`,-1)])]),_:1},8,[`disabled`]),selectedNumbers.value.length?(openBlock(),createBlock(VBtn,{key:0,variant:`text`,onClick:_cache[14]||(_cache[14]=$event=>selectedNumbers.value=[])},{default:withCtx(()=>[..._cache[38]||(_cache[38]=[createTextVNode(`Clear selection`,-1)])]),_:1})):createCommentVNode(``,true)])):createCommentVNode(``,true),unref(list).data.value?.issues?.length?(openBlock(),createBlock(VList,{key:2,class:`pa-0`,density:`compact`,lines:`two`,rounded:`xl`,border:``,slim:``,"aria-label":`GitHub issues`},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(list).data.value.issues,(item,index)=>{return openBlock(),createElementBlock(Fragment,{key:item.number},[index?(openBlock(),createBlock(VDivider,{key:0})):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_9,[unref(labelCatalog).data.value?.canEditLabels?(openBlock(),createBlock(VCheckboxBtn,{key:0,modelValue:selectedNumbers.value,"onUpdate:modelValue":_cache[15]||(_cache[15]=$event=>selectedNumbers.value=$event),value:item.number,"aria-label":`Select issue #${item.number}`,class:`flex-grow-0 ml-2`,"min-width":`48`,"min-height":`48`},null,8,[`modelValue`,`value`,`aria-label`])):createCommentVNode(``,true),createVNode(VListItem,{class:`py-2 flex-grow-1`,active:false},{prepend:withCtx(()=>[createVNode(VIcon,{icon:item.state===`OPEN`?`$radioOn`:`$check`,color:item.state===`OPEN`?`success`:`primary`,"aria-label":item.state===`OPEN`?`Open`:`Closed`},null,8,[`icon`,`color`,`aria-label`])]),append:withCtx(()=>[createBaseVNode(`span`,{class:`d-flex align-center ga-1 ml-3 text-label-medium on-surface-variant`,"aria-label":`${item.comments.totalCount} comments`},[createVNode(VIcon,{icon:`$comment`,size:`18`}),createTextVNode(toDisplayString(item.comments.totalCount),1)],8,_hoisted_12)]),default:withCtx(()=>[createBaseVNode(`div`,_hoisted_10,[createVNode(VListItemTitle,{class:`issues-panel__item-title text-title-medium text-wrap`},{default:withCtx(()=>[createVNode(_component_router_link,{class:`issues-panel__issue-link text-decoration-none`,to:{query:{..._ctx.$route.query,issue:String(item.number)}}},{default:withCtx(()=>[createTextVNode(toDisplayString(item.title),1)]),_:2},1032,[`to`])]),_:2},1024),(openBlock(true),createElementBlock(Fragment,null,renderList(item.labels?.nodes||[],label=>{return openBlock(),createBlock(GithubLabelChip_default,{key:label.name,label,tag:`button`,type:`button`,"aria-label":`Filter by label ${label.name}`,onClick:$event=>unref(filterLabel)(label.name)},null,8,[`label`,`aria-label`,`onClick`])}),128)),item.labels?.totalCount>item.labels?.nodes?.length?(openBlock(),createElementBlock(`span`,_hoisted_11,`+`+toDisplayString(item.labels.totalCount-item.labels.nodes.length),1)):createCommentVNode(``,true)]),createVNode(VListItemSubtitle,{class:`text-body-small mt-1`},{default:withCtx(()=>[createTextVNode(` #`+toDisplayString(item.number)+` · `+toDisplayString(item.state===`OPEN`?`Open`:`Closed`)+` · `+toDisplayString(date(item.updatedAt)),1)]),_:2},1024)]),_:2},1024)])],64)}),128))]),_:1})):(openBlock(),createBlock(VSheet,{key:3,rounded:`xl`,color:`surface-light`,class:`pa-8 text-center`},{default:withCtx(()=>[createVNode(VIcon,{icon:`$radioOn`,size:`40`,class:`mb-3`}),_cache[39]||(_cache[39]=createBaseVNode(`p`,{class:`text-title-medium mb-1`},`No issues here`,-1)),_cache[40]||(_cache[40]=createBaseVNode(`p`,{class:`text-body-medium on-surface-variant ma-0`},`Try a different filter or search.`,-1))]),_:1})),createBaseVNode(`div`,_hoisted_13,[_ctx.$route.query.issueCursor?(openBlock(),createBlock(VBtn,{key:0,variant:`text`,onClick:_cache[16]||(_cache[16]=$event=>unref(navigate)({issueCursor:void 0}))},{default:withCtx(()=>[..._cache[41]||(_cache[41]=[createTextVNode(`First page`,-1)])]),_:1})):createCommentVNode(``,true),createVNode(VSpacer),unref(list).data.value?.pageInfo?.hasNextPage?(openBlock(),createBlock(VBtn,{key:1,variant:`tonal`,"append-icon":`$arrowForward`,onClick:_cache[17]||(_cache[17]=$event=>unref(navigate)({issueCursor:unref(list).data.value.pageInfo.endCursor}))},{default:withCtx(()=>[..._cache[42]||(_cache[42]=[createTextVNode(` Next page `,-1)])]),_:1})):createCommentVNode(``,true)])],64)):unref(issue)?(openBlock(),createElementBlock(Fragment,{key:4},[unref(detail).loadError.value?(openBlock(),createBlock(VAlert,{key:0,type:`error`,variant:`tonal`,rounded:`lg`},{append:withCtx(()=>[createVNode(VBtn,{variant:`text`,disabled:unref(detail).isFetching.value,onClick:_cache[18]||(_cache[18]=$event=>unref(detail).reload())},{default:withCtx(()=>[..._cache[43]||(_cache[43]=[createTextVNode(`Refresh`,-1)])]),_:1},8,[`disabled`])]),default:withCtx(()=>[createTextVNode(toDisplayString(unref(detail).loadError.value)+` `,1)]),_:1})):createCommentVNode(``,true),createBaseVNode(`div`,null,[createBaseVNode(`div`,_hoisted_14,[createVNode(VChip,{"prepend-icon":unref(issue).state===`OPEN`?`$radioOn`:`$check`,color:unref(issue).state===`OPEN`?`success`:`primary`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(issue).state===`OPEN`?`Open`:`Closed`),1)]),_:1},8,[`prepend-icon`,`color`]),createBaseVNode(`span`,_hoisted_15,`#`+toDisplayString(unref(issue).number),1),createVNode(VSpacer),unref(issue).viewerCanUpdate?(openBlock(),createBlock(VBtn,{key:0,"prepend-icon":`$edit`,variant:`text`,onClick:_cache[19]||(_cache[19]=$event=>openEditor(unref(issue),`content`))},{default:withCtx(()=>[..._cache[44]||(_cache[44]=[createTextVNode(`Edit issue`,-1)])]),_:1})):createCommentVNode(``,true),createVNode(VBtn,{href:unref(issue).url,target:`_blank`,rel:`noopener noreferrer`,"append-icon":`$openInNew`,variant:`text`},{default:withCtx(()=>[..._cache[45]||(_cache[45]=[createTextVNode(`GitHub`,-1)])]),_:1},8,[`href`])]),createBaseVNode(`h2`,_hoisted_16,toDisplayString(unref(issue).title),1),createBaseVNode(`p`,_hoisted_17,toDisplayString(unref(issue).author?.login||`Deleted user`)+` opened this on `+toDisplayString(date(unref(issue).createdAt)),1),createBaseVNode(`div`,_hoisted_18,[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(issue).labels?.nodes||[],label=>{return openBlock(),createBlock(GithubLabelChip_default,{key:label.name,label,tag:`button`,type:`button`,"aria-label":`Filter by label ${label.name}`,onClick:$event=>unref(filterLabel)(label.name)},null,8,[`label`,`aria-label`,`onClick`])}),128)),!unref(issue).labels?.nodes?.length?(openBlock(),createElementBlock(`span`,_hoisted_19,`No labels`)):createCommentVNode(``,true),unref(issue).canEditLabels?(openBlock(),createBlock(VBtn,{key:1,"prepend-icon":`$label`,variant:`text`,onClick:_cache[20]||(_cache[20]=$event=>openEditor(unref(issue),`labels`))},{default:withCtx(()=>[..._cache[46]||(_cache[46]=[createTextVNode(`Edit labels`,-1)])]),_:1})):createCommentVNode(``,true)])]),createVNode(VSheet,{color:`surface-container-low`,rounded:`xl`,class:`pa-5 issues-panel__markdown`},{default:withCtx(()=>[unref(issue).body||unref(issue).bodyHTML?(openBlock(),createBlock(GithubMarkdown_default,{key:0,text:unref(issue).body,html:unref(issue).bodyHTML},null,8,[`text`,`html`])):(openBlock(),createElementBlock(`p`,_hoisted_20,`No description provided.`))]),_:1}),createBaseVNode(`div`,_hoisted_21,[createBaseVNode(`h3`,_hoisted_22,[_cache[47]||(_cache[47]=createTextVNode(`Comments `,-1)),createBaseVNode(`span`,_hoisted_23,toDisplayString(unref(commentCount)),1)]),createBaseVNode(`div`,_hoisted_24,[unref(commentCursor)?(openBlock(),createBlock(VBtn,{key:0,variant:`text`,onClick:_cache[21]||(_cache[21]=$event=>commentCursor.value=``)},{default:withCtx(()=>[..._cache[48]||(_cache[48]=[createTextVNode(`Latest comments`,-1)])]),_:1})):createCommentVNode(``,true),unref(issue).comments.pageInfo.hasPreviousPage?(openBlock(),createBlock(VBtn,{key:1,variant:`text`,onClick:_cache[22]||(_cache[22]=$event=>commentCursor.value=unref(issue).comments.pageInfo.startCursor)},{default:withCtx(()=>[..._cache[49]||(_cache[49]=[createTextVNode(` Older comments `,-1)])]),_:1})):createCommentVNode(``,true)])]),!unref(comments).length?(openBlock(),createElementBlock(`p`,_hoisted_25,`No comments yet. Start the conversation.`)):createCommentVNode(``,true),(openBlock(true),createElementBlock(Fragment,null,renderList(unref(comments),comment=>{return openBlock(),createElementBlock(`article`,{key:comment.id,class:`issues-panel__comment d-flex ga-3`},[createVNode(VAvatar,{color:`primary`,variant:`tonal`,size:`36`,class:`mt-1 text-label-large`,"aria-hidden":`true`},{default:withCtx(()=>[createTextVNode(toDisplayString((comment.author?.login||`?`).slice(0,1).toUpperCase()),1)]),_:2},1024),createBaseVNode(`div`,_hoisted_26,[createBaseVNode(`div`,_hoisted_27,[createBaseVNode(`span`,_hoisted_28,toDisplayString(comment.author?.login||`Deleted user`),1),createBaseVNode(`time`,{class:`text-body-small on-surface-variant`,datetime:comment.createdAt},toDisplayString(date(comment.createdAt)),9,_hoisted_29)]),(openBlock(),createBlock(_sfc_main$3,{key:`${unref(basePath)}:${unref(issue).number}:${comment.id}`,comment,issue:unref(issue),"base-path":unref(basePath),onSaved:unref(issueUpdated)},{default:withCtx(()=>[createVNode(VSheet,{color:`surface-light`,rounded:`xl`,class:`pa-4 issues-panel__markdown`},{default:withCtx(()=>[createVNode(GithubMarkdown_default,{text:comment.body,html:comment.bodyHTML},null,8,[`text`,`html`])]),_:2},1024)]),_:2},1032,[`comment`,`issue`,`base-path`,`onSaved`])),comment.delivery&&comment.delivery!==`sent`?(openBlock(),createElementBlock(`div`,_hoisted_30,[comment.delivery===`sending`?(openBlock(),createElementBlock(`span`,_hoisted_31,`Posting…`)):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode(`span`,_hoisted_32,toDisplayString(comment.error),1),createVNode(VBtn,{variant:`text`,disabled:Boolean(unref(pending)),onClick:$event=>unref(retryComment)(comment.id)},{default:withCtx(()=>[..._cache[50]||(_cache[50]=[createTextVNode(`Retry`,-1)])]),_:1},8,[`disabled`,`onClick`])],64))])):createCommentVNode(``,true)])])}),128)),createVNode(VDivider),createBaseVNode(`form`,{class:`d-flex flex-column ga-3`,onSubmit:_cache[25]||(_cache[25]=withModifiers($event=>unref(mutate)(`comment`),[`prevent`]))},[unref(issue).locked?(openBlock(),createElementBlock(`p`,_hoisted_33,`This conversation is locked. GitHub limits comments to permitted collaborators.`)):createCommentVNode(``,true),createVNode(_sfc_main$5,{modelValue:unref(draft),"onUpdate:modelValue":_cache[23]||(_cache[23]=$event=>isRef(draft)?draft.value=$event:null),label:`Add a comment`,placeholder:`Share an update or ask a question…`,variant:`outlined`,rounded:`lg`,rows:`4`,"auto-grow":``,counter:unref(draft).length>65e3?unref(GITHUB_BODY_MAX_LENGTH):void 0,"error-messages":unref(draft).length>unref(65536)?`Keep your comment under 65,536 characters.`:``,"base-path":unref(basePath),issue:unref(issue),enabled:__props.dashboardContext.active!==false},null,8,[`modelValue`,`counter`,`error-messages`,`base-path`,`issue`,`enabled`]),createBaseVNode(`div`,_hoisted_34,[createVNode(VBtn,{variant:`tonal`,"prepend-icon":unref(issue).state===`OPEN`?`$check`:`$restartAlt`,disabled:!canChangeState.value||Boolean(unref(pending)),title:canChangeState.value?``:`Your GitHub account cannot change this issue’s state.`,onClick:_cache[24]||(_cache[24]=$event=>unref(mutate)(`state`))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(pending)===`state`?`Updating…`:unref(issue).state===`OPEN`?`Close issue`:`Reopen issue`),1)]),_:1},8,[`prepend-icon`,`disabled`,`title`]),createVNode(VBtn,{type:`submit`,color:`primary`,variant:`flat`,rounded:`pill`,disabled:!unref(draft).trim()||unref(draft).length>unref(65536)||Boolean(unref(pending))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(pending)===`comment`?`Posting…`:`Comment`),1)]),_:1},8,[`disabled`])])],32)],64)):createCommentVNode(``,true)],64)),unref(available)?(openBlock(),createBlock(_sfc_main$2,{key:unref(basePath),modelValue:bulkOpen.value,"onUpdate:modelValue":_cache[26]||(_cache[26]=$event=>bulkOpen.value=$event),"base-path":unref(basePath),numbers:selectedNumbers.value,labels:unref(labelCatalog).data.value?.labels||[],"can-create-labels":unref(labelCatalog).data.value?.canCreateLabels===true,onApplied:labelsApplied},null,8,[`modelValue`,`base-path`,`numbers`,`labels`,`can-create-labels`])):createCommentVNode(``,true),unref(available)?(openBlock(),createBlock(_sfc_main$4,{key:3,modelValue:editorOpen.value,"onUpdate:modelValue":_cache[27]||(_cache[27]=$event=>editorOpen.value=$event),"base-path":unref(basePath),issue:editorIssue.value,mode:editorMode.value,onSaved:unref(issueSaved)},null,8,[`modelValue`,`base-path`,`issue`,`mode`,`onSaved`])):createCommentVNode(``,true)])}}};var GithubIssuesPanel_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-06b0081c`]]);var _sfc_main={__name:`index`,props:{dashboardContext:{type:Object,default:()=>({})}},setup(__props){return(_ctx,_cache)=>{return openBlock(),createBlock(GithubIssuesPanel_default,{"dashboard-context":__props.dashboardContext},null,8,[`dashboard-context`])}}};export{_sfc_main as default};
@@ -1 +0,0 @@
1
- import{Et as unref,G as renderList,H as openBlock,Xt as toDisplayString,b as createVNode,d as createBaseVNode,f as createBlock,i as Fragment,it as watch,m as createElementBlock,ot as withCtx,p as createCommentVNode,u as computed,vt as ref,y as createTextVNode}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{S as VIcon,lr as withKeys,t as VChip,ur as withModifiers}from"./VChip-D2IukBZw.js";import{N as useQueryClient,t as useEndpointResource}from"./useEndpointResource-CmMwteuX.js";import{_ as useRouter,g as useRoute}from"./useApi-BPuI6ZR9-rsYWyW6m.js";import{t as VSelect}from"./VSelect-9lMtP5cu.js";import{t as VAlert}from"./VAlert-DyCQWe9P.js";import{c as VListItemTitle,n as VList,s as VListItem}from"./VMenu-DQ9SZ1Fq.js";import{t as VTextField}from"./VTextField-BMvaWVTN.js";import{o as projectSlugFromRoute,r as projectAppPath}from"./vibe64ProjectScope.local-B9ZpdYlf.js";import{i as scopedDevelopmentApiUrl}from"./studioUrls-k_pQIuPs.js";import{i as VBtnToggle,t as VBtn}from"./VBtn-2vbH580C.js";import{t as VDivider}from"./VDivider-DGkInAUr.js";import{t as VSheet}from"./VSheet-D5wAuyc2.js";import{t as VDialog}from"./VDialog-B2W9wqR8.js";import{i as VCardTitle,n as VCardText,o as VCardActions,t as VCard}from"./VCard-BFqQSnAE.js";import{t as VSpacer}from"./VSpacer-GgPR_AzN.js";import{t as VSkeletonLoader}from"./VSkeletonLoader-C5ZRrPV4.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{v as LongTextPreviewBlocks_default,y as parseLongTextReviewBlocks}from"./conversation-CsB1b1JZ.js";import"./conversation-p_mmD9ie.js";import{t as useUiFeedback}from"./useUiFeedback-Bixow9mW.js";import{a as vibe64SessionPullRequest}from"./vibe64SessionViewModel-CQCds_jb.js";import{a as githubProjectRepositoryName,i as githubProjectAvailable}from"./vibe64GithubProject-CJneIo5O.js";import{n as Vibe64AssistantSessionDialog_default,r as Vibe64CreatePullRequestDialog_default,t as focusCreatedVibe64SessionTab}from"./vibe64SessionFocus-BJLy8eTE.js";import{n as useRouteQueryNavigation,t as _sfc_main$3}from"./GithubBrowserTabs-Vv-64NIg.js";var _hoisted_1$1={key:0,role:`status`,class:`text-body-medium ma-0`};var _hoisted_2$1={class:`d-flex flex-wrap ga-2 text-body-small`};var _hoisted_3$1={key:0,class:`text-body-medium ma-0`};var _hoisted_4$1={class:`d-flex flex-wrap ga-2`};var _hoisted_5$1={key:1,class:`text-body-small ma-0`};var _hoisted_6$1={key:2,class:`text-body-medium ma-0`};var _hoisted_7$1={key:3,class:`text-body-medium ma-0`};var _hoisted_8$1={class:`text-body-medium ma-0`};var _hoisted_9$1={key:0,class:`text-body-medium ma-0`};var _hoisted_10$1={key:1,class:`text-body-medium ma-0`};var _hoisted_11$1={key:1,class:`text-body-small ma-0`};var _hoisted_12$1=[`href`];var _sfc_main$2={__name:`GithubPullRequestActions`,props:{pullRequest:{type:Object,required:true},apiPath:{type:String,required:true},disabled:Boolean},emits:[`changed`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const feedback=useUiFeedback({source:`vibe64.pullRequests.actions`});const confirmation=ref(null);const pending=ref(false);const mergeMethod=ref(``);const notice=ref(``);const updatingHead=ref(``);const failed=ref(false);const methodLabels={merge:`Create a merge commit`,squash:`Squash and merge`,rebase:`Rebase and merge`};const checksLabel=computed(()=>({SUCCESS:`Checks passed`,FAILURE:`Some checks failed`,ERROR:`Checks reported an error`,PENDING:`Checks are running`,EXPECTED:`Waiting for checks`})[props.pullRequest.checksState]||`No checks reported`);const reviewLabel=computed(()=>({APPROVED:`Reviews approved`,CHANGES_REQUESTED:`Changes requested`,REVIEW_REQUIRED:`Reviews required`})[props.pullRequest.reviewDecision]||``);const path=computed(()=>confirmation.value?.path||props.apiPath);const command=useEndpointResource({path,enabled:false,queryKey:computed(()=>[`vibe64.pullRequestAction`,path.value]),mutationOptions:{retry:false}});const actionDisabled=computed(()=>props.disabled||pending.value||!props.pullRequest.review);watch(()=>props.apiPath,()=>{confirmation.value=null;notice.value=``;updatingHead.value=``;failed.value=false});watch(()=>[props.pullRequest.headRefOid,props.pullRequest.state],([head,state])=>{if(state!==`OPEN`){notice.value=``;updatingHead.value=``}else if(updatingHead.value&&head&&head!==updatingHead.value){notice.value=`New commits are available. Update your session to load them.`;updatingHead.value=``}});function open(operation){const pr=props.pullRequest;if(actionDisabled.value||pr.actions?.[operation]!==``)return;mergeMethod.value=pr.mergeMethods[0]||``;const head=`${pr.review.headRepository}:${pr.review.headBranch}`;const base=`${pr.review.repository}:${pr.review.baseBranch}`;confirmation.value={operation,path:`${props.apiPath}/${operation}`,apiPath:props.apiPath,review:{...pr.review},url:pr.url,methods:pr.mergeMethods,from:operation===`update-branch`?base:head,to:operation===`update-branch`?head:base,title:operation===`ready`?`Ready for review?`:operation===`update-branch`?`Update branch from ${pr.baseRefName}?`:`Merge into ${pr.baseRefName}?`};failed.value=false}async function submit(){const reviewed=confirmation.value;if(!reviewed||pending.value||props.disabled)return;pending.value=true;failed.value=false;try{const result=await command.save({review:reviewed.review,...reviewed.operation===`merge`?{mergeMethod:mergeMethod.value}:{}},{method:`POST`,path:reviewed.path});if(props.apiPath===reviewed.apiPath){notice.value=result.pending?result.message:``;updatingHead.value=result.pending?reviewed.review.headCommit:``;confirmation.value=null}feedback.success(`PR #${reviewed.review.number}: ${result.message}`);emit(`changed`,{apiPath:reviewed.apiPath,operation:reviewed.operation})}catch(error){if(props.apiPath===reviewed.apiPath)failed.value=true;feedback.error(error,`The result could not be confirmed. Refresh this pull request before trying again.`)}finally{pending.value=false}}return(_ctx,_cache)=>{return openBlock(),createElementBlock(Fragment,null,[createVNode(VSheet,{rounded:`xl`,color:`surface-container-low`,class:`pa-5 d-flex flex-column ga-3 pr-actions`},{default:withCtx(()=>[notice.value?(openBlock(),createElementBlock(`p`,_hoisted_1$1,toDisplayString(notice.value),1)):createCommentVNode(``,true),__props.pullRequest.state===`OPEN`?(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode(`div`,_hoisted_2$1,[createVNode(VChip,{size:`small`,color:[`FAILURE`,`ERROR`].includes(__props.pullRequest.checksState)?`warning`:void 0},{default:withCtx(()=>[createTextVNode(toDisplayString(checksLabel.value),1)]),_:1},8,[`color`]),reviewLabel.value?(openBlock(),createBlock(VChip,{key:0,size:`small`},{default:withCtx(()=>[createTextVNode(toDisplayString(reviewLabel.value),1)]),_:1})):createCommentVNode(``,true)]),__props.pullRequest.actions?.merge?(openBlock(),createElementBlock(`p`,_hoisted_3$1,toDisplayString(__props.pullRequest.actions.merge),1)):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_4$1,[__props.pullRequest.isDraft?(openBlock(),createBlock(VBtn,{key:0,color:`primary`,variant:`tonal`,"max-width":`100%`,"prepend-icon":`$check`,disabled:actionDisabled.value||Boolean(__props.pullRequest.actions?.ready),onClick:_cache[0]||(_cache[0]=$event=>open(`ready`))},{default:withCtx(()=>[..._cache[6]||(_cache[6]=[createTextVNode(` Ready for review `,-1)])]),_:1},8,[`disabled`])):createCommentVNode(``,true),__props.pullRequest.actions?.[`update-branch`]===``?(openBlock(),createBlock(VBtn,{key:1,variant:`tonal`,"max-width":`100%`,"prepend-icon":`$syncAlt`,disabled:actionDisabled.value,onClick:_cache[1]||(_cache[1]=$event=>open(`update-branch`))},{default:withCtx(()=>[createTextVNode(` Update branch from `+toDisplayString(__props.pullRequest.baseRefName),1)]),_:1},8,[`disabled`])):createCommentVNode(``,true),!__props.pullRequest.isDraft?(openBlock(),createBlock(VBtn,{key:2,color:`primary`,variant:`flat`,"max-width":`100%`,"prepend-icon":`$merge`,disabled:actionDisabled.value||Boolean(__props.pullRequest.actions?.merge),onClick:_cache[2]||(_cache[2]=$event=>open(`merge`))},{default:withCtx(()=>[createTextVNode(` Merge into `+toDisplayString(__props.pullRequest.baseRefName),1)]),_:1},8,[`disabled`])):createCommentVNode(``,true)]),__props.pullRequest.isDraft&&__props.pullRequest.actions?.ready?(openBlock(),createElementBlock(`p`,_hoisted_5$1,toDisplayString(__props.pullRequest.actions.ready),1)):createCommentVNode(``,true)],64)):__props.pullRequest.state===`MERGED`&&!notice.value?(openBlock(),createElementBlock(`p`,_hoisted_6$1,` Merged into `+toDisplayString(__props.pullRequest.baseRefName)+`. Archive your session when you have finished with it. `,1)):!notice.value?(openBlock(),createElementBlock(`p`,_hoisted_7$1,`This pull request is closed.`)):createCommentVNode(``,true)]),_:1}),createVNode(VDialog,{"model-value":Boolean(confirmation.value),"max-width":`36rem`,scrollable:``,persistent:pending.value,"onUpdate:modelValue":_cache[5]||(_cache[5]=$event=>!$event&&!pending.value&&(confirmation.value=null))},{default:withCtx(()=>[confirmation.value?(openBlock(),createBlock(VCard,{key:0,rounded:`xl`},{default:withCtx(()=>[createVNode(VCardTitle,{class:`text-wrap`},{default:withCtx(()=>[createTextVNode(toDisplayString(confirmation.value.title),1)]),_:1}),createVNode(VCardText,{class:`d-flex flex-column ga-3 pr-confirmation`},{default:withCtx(()=>[createBaseVNode(`p`,_hoisted_8$1,toDisplayString(confirmation.value.from)+` → `+toDisplayString(confirmation.value.to),1),confirmation.value.operation===`ready`?(openBlock(),createElementBlock(`p`,_hoisted_9$1,`Mark this draft ready so reviewers can review it.`)):confirmation.value.operation===`update-branch`?(openBlock(),createElementBlock(`p`,_hoisted_10$1,` Merge `+toDisplayString(confirmation.value.review.baseBranch)+` into `+toDisplayString(confirmation.value.review.headBranch)+` on GitHub. Then use Update session to load those changes into your session. `,1)):(openBlock(),createElementBlock(Fragment,{key:2},[_cache[7]||(_cache[7]=createBaseVNode(`p`,{class:`text-body-medium ma-0`},`Merge the commits already on GitHub. Save any session work you want included first.`,-1)),confirmation.value.methods.length>1?(openBlock(),createBlock(VSelect,{key:0,modelValue:mergeMethod.value,"onUpdate:modelValue":_cache[3]||(_cache[3]=$event=>mergeMethod.value=$event),label:`Merge method`,variant:`outlined`,"hide-details":``,items:confirmation.value.methods.map(value=>({title:methodLabels[value],value})),disabled:pending.value},null,8,[`modelValue`,`items`,`disabled`])):(openBlock(),createElementBlock(`p`,_hoisted_11$1,toDisplayString(methodLabels[mergeMethod.value]),1))],64)),failed.value?(openBlock(),createBlock(VAlert,{key:3,type:`warning`,variant:`tonal`},{default:withCtx(()=>[_cache[8]||(_cache[8]=createTextVNode(` This action was not confirmed. Close this dialog and refresh, or view the pull request on GitHub, before trying again. `,-1)),createBaseVNode(`a`,{href:confirmation.value.url,target:`_blank`,rel:`noopener noreferrer`},`View on GitHub`,8,_hoisted_12$1)]),_:1})):createCommentVNode(``,true)]),_:1}),createVNode(VCardActions,{class:`pa-4 flex-wrap`},{default:withCtx(()=>[createVNode(VSpacer),createVNode(VBtn,{disabled:pending.value,onClick:_cache[4]||(_cache[4]=$event=>confirmation.value=null)},{default:withCtx(()=>[..._cache[9]||(_cache[9]=[createTextVNode(`Cancel`,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{color:`primary`,variant:`flat`,disabled:pending.value||__props.disabled||failed.value,"aria-busy":pending.value,onClick:submit},{default:withCtx(()=>[createTextVNode(toDisplayString(pending.value?`Working…`:confirmation.value.operation===`ready`?`Ready for review`:confirmation.value.operation===`merge`?`Merge pull request`:`Update branch`),1)]),_:1},8,[`disabled`,`aria-busy`])]),_:1})]),_:1})):createCommentVNode(``,true)]),_:1},8,[`model-value`,`persistent`])],64)}}};var GithubPullRequestActions_default=_plugin_vue_export_helper_default(_sfc_main$2,[[`__scopeId`,`data-v-62cf0061`]]);var _hoisted_1={class:`pull-requests d-flex flex-column ga-2`};var _hoisted_2={class:`d-flex align-center flex-wrap ga-2`};var _hoisted_3={class:`d-flex justify-space-between px-2 text-label-large on-surface-variant`};var _hoisted_4={class:`d-flex flex-wrap ga-2 text-body-small on-surface-variant mt-1`};var _hoisted_5={class:`pull-requests__branch`};var _hoisted_6={class:`d-flex justify-end ga-2`};var _hoisted_7={class:`px-2`};var _hoisted_8={class:`d-flex align-center flex-wrap ga-2 mb-3`};var _hoisted_9={class:`text-body-medium on-surface-variant`};var _hoisted_10={class:`text-headline-small mb-3`};var _hoisted_11={class:`d-flex flex-wrap ga-3 text-body-small on-surface-variant`};var _hoisted_12={class:`text-success`};var _hoisted_13={class:`text-error`};var _hoisted_14={class:`d-flex align-start ga-3`};var _hoisted_15={class:`pull-requests__branch`};var _hoisted_16={class:`text-body-medium mt-1`};var _hoisted_17={class:`text-body-small on-surface-variant mt-1`};var _hoisted_18={key:0,class:`text-body-medium ma-0`};var _hoisted_19={key:1,class:`text-body-medium ma-0`};var _hoisted_20={key:2,class:`text-body-medium ma-0`};var _hoisted_21={class:`d-flex flex-wrap ga-2`};var _hoisted_22={key:1,class:`text-body-medium on-surface-variant ma-0`};var _sfc_main$1={__name:`GithubPullRequestsPanel`,props:{dashboardContext:{type:Object,required:true}},setup(__props){const props=__props;const route=useRoute();const router=useRouter();const{navigate}=useRouteQueryNavigation();const queryClient=useQueryClient();const projectSlug=computed(()=>projectSlugFromRoute(route));const repository=computed(()=>githubProjectRepositoryName(props.dashboardContext.projectContext));const available=computed(()=>githubProjectAvailable(props.dashboardContext.projectContext));const active=computed(()=>available.value&&props.dashboardContext.active!==false);const number=computed(()=>/^\d+$/u.test(String(route.query.pr||``))?String(route.query.pr):``);const state=computed(()=>[`open`,`closed`,`merged`,`all`].includes(route.query.prState)?route.query.prState:`open`);const search=ref(String(route.query.prSearch||``));watch(()=>route.query.prSearch,value=>{search.value=String(value||``)});const basePath=computed(()=>scopedDevelopmentApiUrl(`/api/vibe64/pull-requests`,projectSlug.value));const listQuery=computed(()=>({state:state.value,search:String(route.query.prSearch||``),...route.query.prCursor?{cursor:route.query.prCursor}:{}}));const list=useEndpointResource({path:basePath,readQuery:listQuery,queryKey:computed(()=>[`vibe64.pullRequests`,basePath.value,listQuery.value]),enabled:computed(()=>active.value&&!number.value),queryOptions:{retry:false},fallbackLoadError:`Pull requests could not load.`});const detail=useEndpointResource({path:computed(()=>`${basePath.value}/${number.value}`),queryKey:computed(()=>[`vibe64.pullRequest`,basePath.value,number.value]),enabled:computed(()=>active.value&&Boolean(number.value)),queryOptions:{retry:false},fallbackLoadError:`This pull request could not load.`});const resource=computed(()=>number.value?detail:list);const pr=computed(()=>detail.data.value?.pullRequest);const description=computed(()=>parseLongTextReviewBlocks(pr.value?.body||``));const assistantDialog=ref(false);const createDialog=ref(false);const selectedSource=computed(()=>vibe64SessionPullRequest(props.dashboardContext.session));const createAvailable=computed(()=>Boolean(props.dashboardContext.sessionId)&&!selectedSource.value?.number);const toolbar=computed(()=>({...props.dashboardContext.sessionToolbar,repositoryBranchSelectionDisabled:true,createSession:(selection,options={})=>props.dashboardContext.sessionToolbar.createSession(selection,{...options,pullRequestNumber:Number(number.value)})}));watch(()=>route.query.createPullRequest,value=>{if(value&&createAvailable.value)createDialog.value=true},{immediate:true});function filter(nextState=state.value){return navigate({prState:nextState,prSearch:String(search.value||``).trim()||void 0,prCursor:void 0,pr:void 0})}function status(item){if(item.state===`MERGED`)return`Merged`;if(item.state===`CLOSED`)return`Closed`;return item.isDraft?`Draft`:`Open`}function color(item){if(item.state===`MERGED`)return`primary`;if(item.state===`CLOSED`)return`error`;return item.isDraft?void 0:`success`}function icon(item){if(item.state===`MERGED`)return`$merge`;return item.state===`CLOSED`?`$cancelOutline`:`$callMerge`}function date(value){return value?new Date(value).toLocaleDateString(void 0,{month:`short`,day:`numeric`}):``}async function created(response){if(!response?.sessionId)return;await router.push(projectAppPath(projectSlug.value,`/dashboard/changes`));focusCreatedVibe64SessionTab(response.sessionId)}async function published(source){await list.reload();await navigate({pr:String(source.number),createPullRequest:void 0});await detail.reload()}async function actionFinished({apiPath}){await queryClient.invalidateQueries({queryKey:[`vibe64.pullRequests`,apiPath.replace(/\/\d+$/u,``)]});if(apiPath!==`${basePath.value}/${number.value}`)return;await detail.reload();props.dashboardContext.refreshSessionWork?.()}return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1,[createBaseVNode(`div`,_hoisted_2,[available.value&&number.value?(openBlock(),createBlock(VBtn,{key:0,color:`primary`,variant:`text`,onClick:_cache[0]||(_cache[0]=$event=>unref(navigate)({pr:void 0}))},{default:withCtx(()=>[..._cache[15]||(_cache[15]=[createTextVNode(`All pull requests`,-1)])]),_:1})):createCommentVNode(``,true),createVNode(VSpacer),available.value?(openBlock(),createBlock(VBtn,{key:1,"prepend-icon":`$refresh`,variant:`text`,size:`small`,disabled:resource.value.isFetching.value,onClick:_cache[1]||(_cache[1]=$event=>resource.value.reload())},{default:withCtx(()=>[createTextVNode(toDisplayString(resource.value.isFetching.value?`Refreshing…`:`Refresh`),1)]),_:1},8,[`disabled`])):createCommentVNode(``,true),available.value&&createAvailable.value?(openBlock(),createBlock(VBtn,{key:2,color:`primary`,variant:`tonal`,rounded:`pill`,size:`small`,"prepend-icon":`$add`,disabled:__props.dashboardContext.sourceOperationsSuspended,onClick:_cache[2]||(_cache[2]=$event=>createDialog.value=true)},{default:withCtx(()=>[..._cache[16]||(_cache[16]=[createTextVNode(` Create from session `,-1)])]),_:1},8,[`disabled`])):createCommentVNode(``,true)]),!available.value?(openBlock(),createBlock(VAlert,{key:0,type:`info`,variant:`tonal`},{default:withCtx(()=>[..._cache[17]||(_cache[17]=[createTextVNode(`Pull requests are available only for GitHub projects.`,-1)])]),_:1})):(openBlock(),createElementBlock(Fragment,{key:1},[createVNode(_sfc_main$3),!number.value?(openBlock(),createElementBlock(`form`,{key:0,class:`d-flex flex-wrap align-center ga-3`,onSubmit:_cache[8]||(_cache[8]=withModifiers($event=>filter(),[`prevent`]))},[createVNode(VBtnToggle,{"model-value":state.value,mandatory:``,divided:``,rounded:`pill`,color:`primary`,variant:`outlined`,"aria-label":`Pull request state`,"onUpdate:modelValue":_cache[3]||(_cache[3]=$event=>filter($event))},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList([`open`,`closed`,`merged`,`all`],value=>{return createVNode(VBtn,{key:value,value},{default:withCtx(()=>[createTextVNode(toDisplayString(value[0].toUpperCase()+value.slice(1)),1)]),_:2},1032,[`value`])}),64))]),_:1},8,[`model-value`]),createVNode(VTextField,{modelValue:search.value,"onUpdate:modelValue":_cache[5]||(_cache[5]=$event=>search.value=$event),class:`pull-requests__search`,label:`Search pull requests`,"prepend-inner-icon":`$search`,variant:`outlined`,rounded:`pill`,"hide-details":``,maxlength:`200`,clearable:``,onKeydown:_cache[6]||(_cache[6]=withKeys(withModifiers($event=>filter(),[`prevent`]),[`enter`])),"onClick:clear":_cache[7]||(_cache[7]=$event=>{search.value=``;filter()})},{"append-inner":withCtx(()=>[createVNode(VBtn,{icon:`$arrowForward`,variant:`text`,size:`48`,"aria-label":`Search pull requests`,onClick:_cache[4]||(_cache[4]=$event=>filter())})]),_:1},8,[`modelValue`])],32)):createCommentVNode(``,true),resource.value.isInitialLoading.value?(openBlock(),createBlock(VSheet,{key:1,rounded:`xl`,color:`surface-container-low`,class:`pa-4`,"aria-label":`Loading pull requests`,"aria-busy":`true`},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(4,index=>{return createVNode(VSkeletonLoader,{key:index,type:number.value?`paragraph`:`list-item-two-line`},null,8,[`type`])}),64))]),_:1})):resource.value.loadError.value?(openBlock(),createBlock(VAlert,{key:2,type:`error`,variant:`tonal`,rounded:`lg`},{append:withCtx(()=>[createVNode(VBtn,{variant:`text`,onClick:_cache[9]||(_cache[9]=$event=>resource.value.reload())},{default:withCtx(()=>[..._cache[18]||(_cache[18]=[createTextVNode(`Retry`,-1)])]),_:1})]),default:withCtx(()=>[createTextVNode(toDisplayString(resource.value.loadError.value)+` `,1)]),_:1})):!number.value?(openBlock(),createElementBlock(Fragment,{key:3},[createBaseVNode(`div`,_hoisted_3,[createBaseVNode(`span`,null,toDisplayString(unref(list).data.value?.total||0)+` pull requests`,1),_cache[19]||(_cache[19]=createBaseVNode(`span`,null,`Recently updated`,-1))]),unref(list).data.value?.pullRequests?.length?(openBlock(),createBlock(VList,{key:0,class:`pa-0`,density:`compact`,rounded:`xl`,border:``,slim:``,"aria-label":`GitHub pull requests`},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(list).data.value.pullRequests,(item,index)=>{return openBlock(),createElementBlock(Fragment,{key:item.number},[index?(openBlock(),createBlock(VDivider,{key:0})):createCommentVNode(``,true),createVNode(VListItem,{class:`py-2`,active:false,to:{query:{..._ctx.$route.query,pr:String(item.number)}}},{prepend:withCtx(()=>[createVNode(VIcon,{icon:icon(item),color:color(item)},null,8,[`icon`,`color`])]),default:withCtx(()=>[createVNode(VListItemTitle,{class:`text-title-medium text-wrap`},{default:withCtx(()=>[createTextVNode(toDisplayString(item.title),1)]),_:2},1024),createBaseVNode(`div`,_hoisted_4,[createBaseVNode(`span`,null,`#`+toDisplayString(item.number)+` · `+toDisplayString(status(item))+` · `+toDisplayString(item.author?.login)+` · `+toDisplayString(date(item.updatedAt)),1),createBaseVNode(`span`,_hoisted_5,toDisplayString(item.headRefName)+` → `+toDisplayString(item.baseRefName),1)])]),_:2},1032,[`to`])],64)}),128))]),_:1})):(openBlock(),createBlock(VSheet,{key:1,rounded:`xl`,color:`surface-light`,class:`pa-8 text-center`},{default:withCtx(()=>[createVNode(VIcon,{icon:`$callMerge`,size:`40`,class:`mb-3`}),_cache[20]||(_cache[20]=createBaseVNode(`h2`,{class:`text-title-large mb-2`},`No pull requests here`,-1)),_cache[21]||(_cache[21]=createBaseVNode(`p`,{class:`text-body-medium on-surface-variant`},`Try another filter, or turn your session into a pull request.`,-1))]),_:1})),createBaseVNode(`div`,_hoisted_6,[_ctx.$route.query.prCursor?(openBlock(),createBlock(VBtn,{key:0,variant:`text`,onClick:_cache[10]||(_cache[10]=$event=>unref(navigate)({prCursor:void 0}))},{default:withCtx(()=>[..._cache[22]||(_cache[22]=[createTextVNode(`First page`,-1)])]),_:1})):createCommentVNode(``,true),unref(list).data.value?.pageInfo?.hasNextPage?(openBlock(),createBlock(VBtn,{key:1,variant:`tonal`,"append-icon":`$arrowForward`,onClick:_cache[11]||(_cache[11]=$event=>unref(navigate)({prCursor:unref(list).data.value.pageInfo.endCursor}))},{default:withCtx(()=>[..._cache[23]||(_cache[23]=[createTextVNode(` Next page `,-1)])]),_:1})):createCommentVNode(``,true)])],64)):pr.value?(openBlock(),createElementBlock(Fragment,{key:4},[createBaseVNode(`div`,_hoisted_7,[createBaseVNode(`div`,_hoisted_8,[createVNode(VChip,{color:color(pr.value),"prepend-icon":icon(pr.value),variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(status(pr.value)),1)]),_:1},8,[`color`,`prepend-icon`]),createBaseVNode(`span`,_hoisted_9,`#`+toDisplayString(pr.value.number)+` · `+toDisplayString(pr.value.author?.login),1)]),createBaseVNode(`h2`,_hoisted_10,toDisplayString(pr.value.title),1),createBaseVNode(`div`,_hoisted_11,[createBaseVNode(`span`,null,toDisplayString(pr.value.changedFiles)+` files changed`,1),createBaseVNode(`span`,_hoisted_12,`+`+toDisplayString(pr.value.additions),1),createBaseVNode(`span`,_hoisted_13,`−`+toDisplayString(pr.value.deletions),1)])]),createVNode(VSheet,{rounded:`xl`,color:`surface-light`,class:`pa-5 d-flex flex-column ga-4`},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_14,[createVNode(VIcon,{icon:`$forkRight`,color:`primary`,class:`mt-1`}),createBaseVNode(`div`,_hoisted_15,[_cache[24]||(_cache[24]=createBaseVNode(`div`,{class:`text-label-large`},`Session source · Save destination`,-1)),createBaseVNode(`div`,_hoisted_16,toDisplayString(pr.value.headRepository?.nameWithOwner||`Deleted repository`)+`:`+toDisplayString(pr.value.headRefName),1),createBaseVNode(`div`,_hoisted_17,`Proposed into `+toDisplayString(repository.value)+`:`+toDisplayString(pr.value.baseRefName),1)])]),pr.value.state===`OPEN`?(openBlock(),createElementBlock(`p`,_hoisted_18,`Open an isolated session with this PR’s changes and description. Save pushes further work to its source branch.`)):createCommentVNode(``,true),pr.value.state===`OPEN`&&pr.value.unavailableReason?(openBlock(),createElementBlock(`p`,_hoisted_19,toDisplayString(pr.value.unavailableReason),1)):pr.value.state===`OPEN`&&!toolbar.value.canCreateSession?(openBlock(),createElementBlock(`p`,_hoisted_20,toDisplayString(toolbar.value.createSessionTitle),1)):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_21,[pr.value.state===`OPEN`?(openBlock(),createBlock(VBtn,{key:0,color:`primary`,rounded:`pill`,"prepend-icon":`$callMerge`,disabled:Boolean(pr.value.unavailableReason)||!toolbar.value.canCreateSession||toolbar.value.createSessionRunning,onClick:_cache[12]||(_cache[12]=$event=>assistantDialog.value=true)},{default:withCtx(()=>[..._cache[25]||(_cache[25]=[createTextVNode(` Open as session `,-1)])]),_:1},8,[`disabled`])):createCommentVNode(``,true),createVNode(VBtn,{href:pr.value.url,target:`_blank`,rel:`noopener noreferrer`,variant:`text`,"append-icon":`$openInNew`},{default:withCtx(()=>[..._cache[26]||(_cache[26]=[createTextVNode(`View on GitHub`,-1)])]),_:1},8,[`href`])])]),_:1}),createVNode(GithubPullRequestActions_default,{"pull-request":pr.value,"api-path":`${basePath.value}/${number.value}`,disabled:unref(detail).isFetching.value,onChanged:actionFinished},null,8,[`pull-request`,`api-path`,`disabled`]),createVNode(VSheet,{rounded:`xl`,color:`surface-container-low`,class:`pa-5 pull-requests__description`},{default:withCtx(()=>[_cache[27]||(_cache[27]=createBaseVNode(`h3`,{class:`text-title-medium mb-4`},`Description`,-1)),pr.value.body?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:0,blocks:description.value},null,8,[`blocks`])):(openBlock(),createElementBlock(`p`,_hoisted_22,`No description provided.`))]),_:1})],64)):createCommentVNode(``,true)],64)),available.value&&assistantDialog.value?(openBlock(),createBlock(Vibe64AssistantSessionDialog_default,{key:2,modelValue:assistantDialog.value,"onUpdate:modelValue":_cache[13]||(_cache[13]=$event=>assistantDialog.value=$event),toolbar:toolbar.value,onCreated:created},null,8,[`modelValue`,`toolbar`])):createCommentVNode(``,true),available.value?(openBlock(),createBlock(Vibe64CreatePullRequestDialog_default,{key:3,modelValue:createDialog.value,"onUpdate:modelValue":_cache[14]||(_cache[14]=$event=>createDialog.value=$event),"dashboard-context":__props.dashboardContext,onCreated:published},null,8,[`modelValue`,`dashboard-context`])):createCommentVNode(``,true)])}}};var GithubPullRequestsPanel_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-e0326122`]]);var _sfc_main={__name:`index`,props:{dashboardContext:{type:Object,default:()=>({})}},setup(__props){return(_ctx,_cache)=>{return openBlock(),createBlock(GithubPullRequestsPanel_default,{"dashboard-context":__props.dashboardContext},null,8,[`dashboard-context`])}}};export{_sfc_main as default};
@@ -1 +0,0 @@
1
- .pr-actions[data-v-62cf0061],.pr-confirmation[data-v-62cf0061]{overflow-wrap:anywhere}.pull-requests[data-v-e0326122]{width:100%;min-width:0;padding-bottom:1rem}.pull-requests__search[data-v-e0326122]{flex:16rem;min-width:0}.pull-requests__branch[data-v-e0326122],.pull-requests__description[data-v-e0326122]{overflow-wrap:anywhere;min-width:0}.pull-requests__description[data-v-e0326122]{overflow:auto}