{#if commandPaletteOpen} { commandPaletteOpen = false; }} onCheckoutBranch={checkout} onOpenFile={openFileFromCommandPalette} onSelectCommit={selectCommitFromCommandPalette} onFetch={fetchRepo} onPull={pullRepo} onPush={pushRepo} onRefresh={refreshRepo} onOpenSearch={openGlobalSearchDialog} onOpenCompare={openCompareSelect} onOpenReflog={openReflog} onOpenBisect={openBisect} onOpenInteractiveRebase={openInteractiveRebase} onOpenWorktrees={openWorktreeDialog} onOpenSyncSettings={openSyncOptions} onOpenSettings={openAppSettings} onOpenAiSettings={openAiSettings} onOpenHelp={openHelp} /> {/if} {#if updateToastOpen} {/if} {#if analyticsNoticeOpen} {/if} {#if appSettingsOpen} refreshDetectedExternalTools(false)} onSave={saveAppSettings} onClose={() => { appSettingsOpen = false; }} /> {/if} {#if helpOpen} {#await import("./lib/components/HelpOverlay.svelte") then module} { helpOpen = false; }} /> {/await} {/if} {#if aiReviewOpen && aiReviewResult} { aiReviewOpen = false; }} /> {/if} {#if aiCommitSplitOpen && aiCommitPlan} { if (!commitAiSplitting) aiCommitSplitOpen = false; }} /> {/if} {#if linePatchOpen && linePatchFile} {#await import("./lib/components/LinePatchDialog.svelte") then module} {/await} {/if} {#if blameOpen} {#await import("./lib/components/BlameDialog.svelte") then module} {/await} {/if} {#if confirmDialogRequest} answerConfirmation(true, result.value, result.checked)} onCancel={() => answerConfirmation(false)} /> {/if} {#if pendingDiscard} {/if} {#if fileHistoryDialogOpen} {#await import("./lib/components/FileHistoryDialog.svelte") then module} {/await} {/if} {#if globalSearchOpen} {#await import("./lib/components/GlobalSearchDialog.svelte") then module} {/await} {/if} {#if worktreeDialogOpen} {#await import("./lib/components/WorktreeDialog.svelte") then module} refreshWorktrees()} onOpen={openWorktreeTab} onAdd={createWorktree} onRemove={removeSelectedWorktree} onMove={moveSelectedWorktree} onLock={lockSelectedWorktree} onUnlock={unlockSelectedWorktree} onPrune={pruneStaleWorktrees} onRepair={repairSelectedWorktree} onClose={closeWorktreeDialog} /> {/await} {/if} {#if gitLfsDialogOpen} {#await import("./lib/components/GitLfsDialog.svelte") then module} {/await} {/if} {#if newBranchCommit} { newBranchCommit = null; }} /> {/if} {#if mergeBranchTarget} { if (!isBusy) mergeBranchTarget = null; }} /> {/if} {#if commitNoteTarget} syncActiveCommitNotes(remote, "fetch")} onPush={(remote) => syncActiveCommitNotes(remote, "push")} onClose={closeCommitNoteDialog} /> {/if} {#if renameBranchTarget} { renameBranchTarget = null; }} /> {/if} {#if deleteBranchTarget} {/if} {#if interactiveRebaseOpen} {#await import("./lib/components/InteractiveRebaseDialog.svelte") then module} { if (!isBusy) interactiveRebaseOpen = false; }} /> {/await} {/if} {#if reflogOpen} entry.selector === "HEAD@{0}")?.hash ?? ""} isLoading={reflogLoading} {isBusy} {operation} error={reflogError} onPreview={previewReflogEntry} onRestore={recoverReflogEntry} onClose={() => { if (!isBusy) reflogOpen = false; }} /> {/if} {#if bisectOpen} {#await import("./lib/components/BisectDialog.svelte") then module} { if (!isBusy) bisectOpen = false; }} /> {/await} {/if} {#if compareSelectOpen} { compareFrom = val; }} onCompareToChange={(val) => { compareTo = val; }} onCompare={compareSelectedTargets} onClose={() => { compareSelectOpen = false; }} /> {/if} {#if compareDialogOpen && comparison} {#await import("./lib/components/CompareDialog.svelte") then module} {/await} {/if} {#if credDialogOpen && credDialogAction} { credDialogOpen = false; credDialogAction = null; pendingRemoteDelete = null; credDialogError = ""; credDialogKey = null; credDialogUsername = ""; credDialogMode = "credentials"; }} /> {/if} {#if syncSettingsOpen} branch.name)} currentBranch={status?.current_branch ?? ""} currentUpstream={status?.upstream ?? ""} strategy={pullStrategy} {selectedRemote} {isBusy} language={appLanguage} onSaveSync={saveSyncSettings} onAddRemote={addSyncRemote} onUpdateRemote={updateSyncRemote} onRemoveRemote={removeSyncRemote} onClose={() => { if (!isBusy) syncSettingsOpen = false; }} /> {/if} {#if cloneDialogOpen} { if (!isBusy) cloneDialogOpen = false; }} /> {/if} {#if initRepositoryDialogOpen} { if (!isBusy) initRepositoryDialogOpen = false; }} /> {/if} {#if openingRepo} {/if} {#if cloningRepo} {/if} {#if resolveDialogOpen} {#await import("./lib/components/ResolveDialog.svelte") then module} { resolveDialogOpen = false; }} onSelectFile={selectConflictFile} onMarkResolved={handleMarkResolved} onApply={applyPreparedResolutions} onExternalMerge={openConflictInExternalMerge} /> {/await} {/if} {#if submoduleDialogOpen} {#await import("./lib/components/SubmoduleDialog.svelte") then module} { submoduleRecursive = value; void refreshSubmodules(); }} onRefresh={refreshSubmodules} onClose={closeSubmoduleDialog} onOpen={openSubmoduleTab} onLoadTags={(selected) => listTags(selected.full_path)} onCheckout={(selected, revision, kind) => runSubmoduleOperation(path => checkoutSubmoduleRevision(path, selected.path, revision, kind))} onAdd={(url, destination, branch) => runSubmoduleOperation(path => withSubmoduleCredentials(url, (username, password) => addSubmodule(path, url, destination, branch, username, password)))} onAction={(selected, action) => runSubmoduleOperation(path => (action === "update" || action === "fetch") ? withSubmoduleCredentials(selected.url, (username, password) => submoduleAction(path, selected.path, action, submoduleRecursive, username, password)) : submoduleAction(path, selected.path, action, submoduleRecursive))} /> {/await} {/if} {#if pendingSubmoduleInitialization} {#await import("./lib/components/SubmoduleInitDialog.svelte") then module} {/await} {/if} {#if submoduleAuthRequest} {/if}