@karlorz/codexhost-cli-win32-x64 0.18.0-0 → 0.19.0-0

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 (61) hide show
  1. package/README.md +1 -1
  2. package/app/codexhost-distribution.json +1 -1
  3. package/app/console-server.mjs +317 -59
  4. package/app/console-web.js +1889 -141
  5. package/app/cpa-live-voice-hook.js +1938 -428
  6. package/app/desktop-controller.mjs +2081 -212
  7. package/app/host-runtime.mjs +14818 -3381
  8. package/app/overlay-voice-bootstrap.js +1616 -0
  9. package/app/plugins/antigravity/plugin.mjs +963 -324
  10. package/app/plugins/claude-code/plugin.mjs +395 -67
  11. package/app/plugins/codebuddy/plugin.mjs +409 -76
  12. package/app/plugins/codex-usage/plugin.mjs +316 -58
  13. package/app/plugins/copilot/plugin.mjs +316 -58
  14. package/app/plugins/cursor-cli/plugin.mjs +391 -68
  15. package/app/plugins/deepseek-harness/manifest.json +2 -2
  16. package/app/plugins/deepseek-harness/plugin.mjs +343 -63
  17. package/app/plugins/devin/plugin.mjs +316 -58
  18. package/app/plugins/grok/plugin.mjs +1350 -1026
  19. package/app/plugins/hermes/plugin.mjs +395 -70
  20. package/app/plugins/kimi-code/plugin.mjs +316 -58
  21. package/app/plugins/kiro-cli/plugin.mjs +544 -74
  22. package/app/plugins/omp/plugin.mjs +1264 -902
  23. package/app/plugins/opencode/plugin.mjs +316 -58
  24. package/app/plugins/pi/plugin.mjs +1189 -862
  25. package/app/plugins/qoder/plugin.mjs +318 -62
  26. package/app/plugins/qoder-cn/plugin.mjs +318 -62
  27. package/app/plugins/qwen-code/plugin.mjs +425 -150
  28. package/app/plugins/workbuddy/plugin.mjs +409 -76
  29. package/app/plugins/zcode/plugin.mjs +389 -61
  30. package/app/renderer-extension.js +11830 -8531
  31. package/app/voice-profile-pins.json +25 -0
  32. package/app/voice-qualification.json +4 -0
  33. package/app/web/assets/index-BCyiiDDL.js +199 -0
  34. package/app/web/assets/index-BNQIOOHE.css +1 -0
  35. package/app/web/codexhost-settings.js +1895 -190
  36. package/app/web/index.html +2 -2
  37. package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
  38. package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +69 -69
  39. package/app/web/plugins/deepseek-ai__dsh-client-file-upload/client.js +1 -1
  40. package/app/web/plugins/deepseek-ai__dsh-client-locale/client.js +3 -3
  41. package/app/web/plugins/deepseek-ai__dsh-client-ui-attachment/client.js +1 -1
  42. package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +129 -8
  43. package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +65 -63
  44. package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +95 -93
  45. package/app/web/plugins/deepseek-ai__dsh-client-ui-input-trigger/client.js +1 -1
  46. package/app/web/plugins/deepseek-ai__dsh-client-ui-layout/client.js +2 -2
  47. package/app/web/plugins/deepseek-ai__dsh-client-ui-model-selection/client.js +1 -1
  48. package/app/web/plugins/deepseek-ai__dsh-client-ui-settings-general/client.js +1 -1
  49. package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-documentpreview/client.excel.js +1 -1
  50. package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-files/client.js +1 -1
  51. package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +79 -79
  52. package/app/web/plugins/deepseek-ai__dsh-client-ui-user-questions/client.js +1 -1
  53. package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +11 -11
  54. package/app/web-modules/server.mjs +3279 -1676
  55. package/bin/codexhost.exe +0 -0
  56. package/libexec/codexhost-node-repl.exe +0 -0
  57. package/libexec/codexhost-shim.exe +0 -0
  58. package/libexec/codexhost-updater.exe +0 -0
  59. package/package.json +1 -1
  60. package/app/web/assets/index-Bs17Kuah.js +0 -199
  61. package/app/web/assets/index-C3lniEH1.css +0 -1
@@ -1,4 +1,4 @@
1
- window.__ModuleLoader__.load({id:`@deepseek-ai/dsh-client-ui-settings-general`,factory:e=>{var t={exports:{}},n=t.exports;Object.defineProperty(n,Symbol.toStringTag,{value:`Module`});let r=e("@deepseek-ai/dsh-client-ui-slots"),i=e("@deepseek-ai/dsh-client-ui-primitives"),a=e("@deepseek-ai/dsh-client-store"),o=e("react"),s=e("react-dom"),c=e("react/jsx-runtime");function l(){return(0,a.defineStore)({init:()=>({open:!1,activeId:void 0}),actions:{open:e=>{e.open=!0},close:e=>{e.open=!1,e.activeId=void 0},select:(e,t)=>{e.activeId=t},openSection:(e,t)=>{e.activeId=t,e.open=!0}}})}function u(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=u(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function d(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=u(e))&&(r&&(r+=` `),r+=t);return r}let f=`@deepseek-ai/dsh-client-ui-settings-general/SettingsRoot.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(f)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=f,e.textContent=`.GTjkVG_triggerRow{flex:none;align-items:center;gap:8px;width:calc(100% + 4px);margin:4px -2px;display:flex;position:relative}.GTjkVG_triggerRow.GTjkVG_railRow{width:36px;margin:8px 0 10px}.GTjkVG_trigger{box-sizing:border-box;border-radius:var(--dsw-radius-md);cursor:pointer;width:auto;min-width:0;height:42px;color:var(--dsw-alias-label-primary);background:0 0;border:none;flex:1;align-items:center;gap:8px;margin:0;padding:0 10px 0 8px;font-family:inherit;font-size:14px;line-height:22px;display:flex;overflow:hidden}.GTjkVG_trigger:hover{background:var(--dsw-alias-interactive-bg-hover)}.GTjkVG_trigger.GTjkVG_rail{flex:none;justify-content:center;gap:0;width:36px;height:36px;margin:0;padding:0}.GTjkVG_triggerLabel{white-space:nowrap;overflow:hidden}.GTjkVG_overlay{z-index:1000;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.GTjkVG_mask{inset:var(--dsh-frame-chrome-top,0px) 0 0;background:var(--dsw-alias-bg-mask-1);backdrop-filter:var(--dsw-mask-blur);position:absolute}.GTjkVG_panel{z-index:1;width:1040px;height:min(800px, calc(100vh - 2 * max(24px, var(--dsh-frame-overlay-top,24px))));border-radius:var(--dsw-radius-panel);background:var(--dsw-alias-bg-layer-2);max-width:calc(100vw - 48px);box-shadow:var(--dsw-elevation-prominent);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);display:flex;position:relative;overflow:hidden}.GTjkVG_panel:focus{outline:none}.GTjkVG_nav{box-sizing:border-box;flex-direction:column;flex:none;gap:18px;width:188px;padding:22px 12px 0;display:flex}.GTjkVG_navTitle{color:var(--dsw-alias-label-primary);padding:0 12px;font-size:16px;font-weight:500;line-height:24px}.GTjkVG_navList{flex-direction:column;gap:4px;display:flex;overflow-y:auto}.GTjkVG_navCell{box-sizing:border-box;border-radius:var(--dsw-radius-md);cursor:pointer;height:40px;color:var(--dsw-alias-label-primary);text-align:left;background:0 0;border:none;align-items:center;gap:8px;padding:9px 16px 9px 12px;font-family:inherit;font-size:14px;font-weight:400;line-height:22px;display:flex}.GTjkVG_navCell:hover{background:var(--dsw-specific-sidebar-nav-item-hover)}.GTjkVG_navCell.GTjkVG_active{background:var(--dsw-specific-sidebar-nav-item-active)}.GTjkVG_navIcon{flex:none}.GTjkVG_navLabel{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.GTjkVG_content{flex-direction:column;flex:1;min-width:0;display:flex}.GTjkVG_header{box-sizing:border-box;flex:none;justify-content:space-between;align-items:flex-start;gap:8px;height:54px;padding:20px 14px 8px 10px;display:flex}.GTjkVG_actions{justify-content:flex-end;align-items:center;gap:8px;min-width:0;margin-left:auto;display:flex}.GTjkVG_close{border-radius:var(--dsw-radius-sm);cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-primary);background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.GTjkVG_close:hover{background:var(--dsw-alias-interactive-bg-hover)}.GTjkVG_options{flex:1;min-height:0;padding:0 24px 24px;overflow-y:auto}@media (width<=600px){.GTjkVG_panel{max-width:calc(100vw - 24px);height:calc(100dvh - 2 * max(12px, env(safe-area-inset-top), env(safe-area-inset-bottom)));flex-direction:column}.GTjkVG_nav{gap:12px;width:100%;padding:16px 12px 8px}.GTjkVG_navTitle{padding:0 44px 0 4px}.GTjkVG_navList{flex-direction:row;overflow-x:auto}.GTjkVG_navCell{flex:none;height:44px}.GTjkVG_content{min-height:0}.GTjkVG_header{height:auto;padding:0 16px}.GTjkVG_close{width:44px;height:44px;position:absolute;top:6px;right:6px}.GTjkVG_options{padding:0 16px 16px}}.GTjkVG_hiddenLabel{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}`,document.head.appendChild(e)}var p={actions:`GTjkVG_actions`,active:`GTjkVG_active`,close:`GTjkVG_close`,content:`GTjkVG_content`,header:`GTjkVG_header`,hiddenLabel:`GTjkVG_hiddenLabel`,mask:`GTjkVG_mask`,nav:`GTjkVG_nav`,navCell:`GTjkVG_navCell`,navIcon:`GTjkVG_navIcon`,navLabel:`GTjkVG_navLabel`,navList:`GTjkVG_navList`,navTitle:`GTjkVG_navTitle`,options:`GTjkVG_options`,overlay:`GTjkVG_overlay`,panel:`GTjkVG_panel`,rail:`GTjkVG_rail`,railRow:`GTjkVG_railRow`,trigger:`GTjkVG_trigger`,triggerLabel:`GTjkVG_triggerLabel`,triggerRow:`GTjkVG_triggerRow`};let m=`@deepseek-ai/dsh-client-ui-settings-general/DesktopUpdateIndicator.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(m)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=m,e.textContent=`.friKcq_indicator{box-sizing:border-box;border:1px solid color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 20%, transparent);border-radius:var(--dsw-radius-sm);height:28px;color:var(--dsw-alias-brand-primary-new-colorprimary-new-color);background:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 8%, transparent);text-align:left;white-space:nowrap;cursor:pointer;flex:none;grid-template-columns:14px max-content;align-items:center;column-gap:4px;padding:0 8px;font-family:inherit;font-size:12px;font-weight:500;line-height:18px;display:inline-grid}.friKcq_icon{place-items:center;width:14px;height:14px;display:grid}.friKcq_badge{inset-inline-end:2px;corner-shape:round;background:var(--dsw-alias-brand-primary-new-colorprimary-new-color);border-radius:50%;width:6px;height:6px;position:absolute;top:2px}.friKcq_errorDot{corner-shape:round;background:currentColor;border-radius:50%;width:6px;height:6px}.friKcq_spinner{animation:1s linear infinite friKcq_spin}@keyframes friKcq_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.friKcq_spinner{animation:none}}.friKcq_indicator[aria-disabled=true]{cursor:default}`,document.head.appendChild(e)}var h={badge:`friKcq_badge`,errorDot:`friKcq_errorDot`,icon:`friKcq_icon`,indicator:`friKcq_indicator`,spin:`friKcq_spin`,spinner:`friKcq_spinner`};let g=/* @__PURE__ */ new Set([`checking`,`downloading`,`verifying`,`installing`]);function _(e,t){let n={idle:``,checking:t(`desktop.update.checking`),available:t(`desktop.update.available`),downloading:t(`desktop.update.progress`,{percent:e.percent??0}),verifying:t(`desktop.update.verifying`),installing:t(`desktop.update.installing`),ready:t(`desktop.update.ready`),error:t(`desktop.update.retry`)}[e.phase];return e.phase===`checking`||e.phase===`verifying`||e.phase===`installing`?{label:n,detail:e.version??n}:e.phase===`error`?{label:n,detail:{check:t(`desktop.update.checkFailed`),"check-network":t(`desktop.update.checkNetworkFailed`),download:t(`desktop.update.downloadFailed`),"download-network":t(`desktop.update.downloadNetworkFailed`),install:t(`desktop.update.installFailed`),"install-network":t(`desktop.update.installNetworkFailed`),"stop-failed":t(`desktop.update.stopFailed`),"tasks-changed":t(`desktop.update.tasksChanged`),"tasks-unavailable":t(`desktop.update.tasksUnavailable`)}[e.failure??`install`]}:e.phase===`downloading`&&e.version!==void 0?{label:n,detail:t(`desktop.update.downloadDetail`,{percent:e.percent??0,version:e.version})}:{label:n,detail:e.version===void 0?n:t(`desktop.update.versionDetail`,{label:n,version:e.version})}}function v({wide:e,hidden:t,t:n,view:r,onOpen:a}){let{presentation:o,failed:s,opening:l}=r;if(!e||t||!s&&(o===void 0||o.phase===`idle`))return null;let u=n(`desktop.update.retry`),d=o===void 0?{label:u,detail:u}:_(o,n),f=s?u:d.label,p=s||o?.phase===`error`,m=l||o!==void 0&&g.has(o.phase);return/* @__PURE__ */ (0,c.jsx)(i.Tooltip,{label:s?u:d.detail,side:`top`,children:/* @__PURE__ */ (0,c.jsxs)(`button`,{type:`button`,className:h.indicator,"aria-label":f,"aria-disabled":m,onClick:()=>{m||a()},children:[/* @__PURE__ */ (0,c.jsx)(`span`,{className:h.icon,"aria-hidden":`true`,children:p?/* @__PURE__ */ (0,c.jsx)(`span`,{className:h.errorDot}):m?/* @__PURE__ */ (0,c.jsx)(i.IconLoadingOutlineRegular,{className:h.spinner,size:14}):/* @__PURE__ */ (0,c.jsx)(i.IconDownloadOutlineRegular,{size:14})}),/* @__PURE__ */ (0,c.jsx)(`span`,{children:f})]})})}function y({useDesktopUpdate:e,useConnectionState:t,t:n}){let{presentation:r,failed:a}=e(e=>e),o=t(e=>e);if((o===`disconnected`||o===`connecting`)&&r?.phase!==`installing`||!a&&(r===void 0||r.phase===`idle`))return null;let s=n(`desktop.update.retry`),l=r===void 0?{label:s,detail:s}:_(r,n),u=a?s:l.label;return/* @__PURE__ */ (0,c.jsx)(i.Tooltip,{label:a?u:l.detail,side:`right`,children:/* @__PURE__ */ (0,c.jsx)(`span`,{role:`img`,"aria-label":u,className:h.badge})})}function b(e){return e===`account`||e===`codexhost-accounts`?/* @__PURE__ */ (0,c.jsx)(i.IconUserOutlineMedium,{className:p.navIcon,size:16}):e===`models`||e===`codexhost-usage-statistics`?/* @__PURE__ */ (0,c.jsx)(i.IconDataOutlineMedium,{className:p.navIcon,size:16}):e===`agent-presets`?/* @__PURE__ */ (0,c.jsx)(i.IconAgentPresetOutlineMedium,{className:p.navIcon,size:16}):e===`plugins`||e===`codexhost-connections`?/* @__PURE__ */ (0,c.jsx)(i.IconPersonalizationOutlineMedium,{className:p.navIcon,size:16}):e===`archived-sessions`?/* @__PURE__ */ (0,c.jsx)(i.IconArchiveOutlineMedium,{className:p.navIcon,size:16}):/* @__PURE__ */ (0,c.jsx)(i.IconSettingsOutlineMedium,{className:p.navIcon,size:16})}function x({rows:e,renderSlot:t,activeId:n,onSelect:r,onClose:a}){let l=e.find(e=>e.id===n)?.id??e[0]?.id,u=(0,o.useId)(),f=(0,o.useRef)(null);return(0,i.useModalLayer)(f,!0,a),(0,s.createPortal)(/* @__PURE__ */ (0,c.jsxs)(`div`,{className:p.overlay,role:`presentation`,children:[/* @__PURE__ */ (0,c.jsx)(`div`,{className:p.mask,"aria-hidden":`true`,onClick:a}),/* @__PURE__ */ (0,c.jsxs)(`div`,{ref:f,tabIndex:-1,"data-shortcut-modal":`settings`,className:p.panel,role:`dialog`,"aria-modal":`true`,"aria-labelledby":u,children:[/* @__PURE__ */ (0,c.jsxs)(`nav`,{className:p.nav,children:[/* @__PURE__ */ (0,c.jsx)(`div`,{className:p.navTitle,id:u,tabIndex:-1,"data-modal-autofocus":l===void 0?``:void 0,children:t(`settings.header`,{})}),/* @__PURE__ */ (0,c.jsx)(`div`,{className:p.navList,children:e.map(e=>/* @__PURE__ */ (0,c.jsxs)(`button`,{type:`button`,className:d(p.navCell,e.id===l&&p.active),"aria-current":e.id===l?`true`:void 0,"data-modal-autofocus":e.id===l?``:void 0,onClick:()=>{r(e.id)},children:[b(e.id),/* @__PURE__ */ (0,c.jsx)(`span`,{className:p.navLabel,children:e.label})]},e.id))})]}),/* @__PURE__ */ (0,c.jsxs)(`div`,{className:p.content,children:[/* @__PURE__ */ (0,c.jsxs)(`div`,{className:p.header,children:[/* @__PURE__ */ (0,c.jsx)(`div`,{className:p.actions,children:t(`settings.action`,{})}),/* @__PURE__ */ (0,c.jsxs)(`button`,{type:`button`,className:p.close,onClick:a,children:[/* @__PURE__ */ (0,c.jsx)(i.IconCloseOutlineRegular,{size:14}),/* @__PURE__ */ (0,c.jsx)(`span`,{className:p.hiddenLabel,children:t(`settings.close`,{})})]})]}),/* @__PURE__ */ (0,c.jsx)(`div`,{className:p.options,children:l!==void 0&&t(`settings.section`,{close:a},{only:l})})]})]})]}),document.body)}function S(e){let{wide:t,reconnect:n,useConnectionState:r,useSections:a,useOnboardingSteps:s,useSessions:l,renderSlot:u,t:f,useDesktopUpdate:m,openDesktopUpdate:h,useStore:g,actions:_,useShortcuts:y}=e,{open:b,activeId:S}=g(e=>e),C=y(e=>e.find(e=>e.id===`settings.open`)),{close:w,openSection:T}=_;(0,o.useEffect)(()=>{if(window.location.hash!==`#connect-devices`)return;T(`codexhost-connect-devices`);let e=new URL(window.location.href);e.hash=``,window.history.replaceState(window.history.state,``,e.href)},[T]);let[E,D]=(0,o.useState)(),[O,k]=(0,o.useState)(()=>/* @__PURE__ */ new Set),[A,j]=(0,o.useState)(!1),[M,N]=(0,o.useState)(!1),P=(0,o.useRef)(void 0),F=a(e=>e),I=m(e=>e),L=r(e=>e),R=(0,o.useRef)(L),z=s(e=>e),B=l(e=>{let t=Object.values(e.byId).find(e=>(e.retainedBy.mainView??0)>0);return e.phase===`ready`&&(t===void 0||t.blank)}),V=E===void 0?B?z.find(e=>!O.has(e.id)):void 0:z.find(e=>e.id===E);(0,o.useEffect)(()=>{B||k(/* @__PURE__ */ new Set)},[B]);let H=(0,o.useRef)(V);(0,o.useEffect)(()=>{let e=H.current===void 0&&V!==void 0;H.current=V,e&&b&&w()},[V,b,w]),(0,o.useLayoutEffect)(()=>{let e=R.current;R.current=L,L===`connected`?(e===`disconnected`||e===`connecting`)&&j(!0):j(!1)},[L]),(0,o.useLayoutEffect)(()=>{if(!A||M)return;let e=window.setTimeout(()=>{j(!1)},2e3);return()=>{window.clearTimeout(e)}},[A,M]),(0,o.useLayoutEffect)(()=>{if(L===`connecting`){P.current=Date.now();return}let e=P.current;if(e===void 0)return;P.current=void 0;let t=800-(Date.now()-e);if(t<=0)return;N(!0);let n=window.setTimeout(()=>{N(!1)},t);return()=>{window.clearTimeout(n),N(!1)}},[L]);let U=(0,o.useCallback)(e=>{D(void 0),k(t=>t.has(e)?t:/* @__PURE__ */ new Set([...t,e]))},[]),W;return L===`connecting`||M?W=`connecting`:L===`disconnected`?W=`disconnected`:A&&(W=`recovered`),/* @__PURE__ */ (0,c.jsxs)(c.Fragment,{children:[/* @__PURE__ */ (0,c.jsxs)(`div`,{className:d(p.triggerRow,!t&&p.railRow),children:[u(`settings.launcher`,{wide:t,settingsOpen:b,openSettings:_.open,...C?.keys.length?{settingsShortcut:{keys:C.keys,aria:C.aria}}:{},openOnboarding:e=>{w(),D(e)}},{fallback:/* @__PURE__ */ (0,c.jsx)(i.Tooltip,{disabled:b,label:f(`trigger`),shortcutKeys:C?.keys,children:/* @__PURE__ */ (0,c.jsx)(`button`,{type:`button`,className:d(p.trigger,!t&&p.rail),"aria-label":f(`trigger`),"aria-keyshortcuts":C?.aria,"aria-haspopup":`dialog`,"aria-expanded":b,onClick:()=>{_.open()},children:u(`settings.trigger`,{wide:t})})})}),/* @__PURE__ */ (0,c.jsx)(i.ConnectionIndicator,{state:t&&I.presentation?.phase!==`installing`?W:void 0,disconnectedLabel:f(`connection.error`),connectingLabel:f(`connection.connecting`),recoveredLabel:f(`connection.connected`),reconnectActionLabel:f(`connection.reconnect`),restartActionLabel:f(`connection.restart`),onReconnect:n}),/* @__PURE__ */ (0,c.jsx)(v,{wide:t,hidden:W!==void 0&&I.presentation?.phase!==`installing`,t:f,view:I,onOpen:h})]}),b&&/* @__PURE__ */ (0,c.jsx)(x,{rows:F,renderSlot:u,activeId:S,onSelect:_.select,onClose:w}),V!==void 0&&u(`settings.onboarding`,{stepId:V.id,explicit:E!==void 0,complete:()=>{U(V.id)},openSection:T},{only:V.id})]})}var C=class{bridge;store=(0,a.createSnapshotStore)({failed:!1,opening:!1});live=!0;received=!1;unsubscribe;constructor(e){this.bridge=e,this.unsubscribe=e?.subscribe(e=>{this.live&&(this.received=!0,this.store.set({...this.store.getSnapshot(),presentation:e,failed:!1}))}),e?.status().then(e=>{this.live&&!this.received&&this.store.set({...this.store.getSnapshot(),presentation:e})},()=>{this.live&&!this.received&&this.store.set({...this.store.getSnapshot(),failed:!0})})}open(){if(!this.live||this.bridge===void 0)return;let e=this.store.getSnapshot();e.opening||e.presentation!==void 0&&[`checking`,`downloading`,`verifying`,`installing`].includes(e.presentation.phase)||(this.store.set({...e,opening:!0}),this.bridge.open().catch(()=>{this.live&&this.store.set({...this.store.getSnapshot(),failed:!0})}).finally(()=>{this.live&&this.store.set({...this.store.getSnapshot(),opening:!1})}))}dispose(){this.live=!1,this.unsubscribe?.()}};let w=`@deepseek-ai/dsh-client-ui-settings-general/chrome.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(w)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=w,e.textContent=`._6svrtq_triggerLabel{white-space:nowrap;overflow:hidden}`,document.head.appendChild(e)}var T={triggerLabel:`_6svrtq_triggerLabel`};function E({wide:e,t}){return/* @__PURE__ */ (0,c.jsxs)(c.Fragment,{children:[/* @__PURE__ */ (0,c.jsx)(i.IconSettingsOutlineMedium,{size:e?16:18}),e&&/* @__PURE__ */ (0,c.jsx)(`span`,{className:T.triggerLabel,children:t(`trigger`)})]})}function D({t:e}){return/* @__PURE__ */ (0,c.jsx)(c.Fragment,{children:e(`title`)})}function O({t:e}){return/* @__PURE__ */ (0,c.jsx)(c.Fragment,{children:e(`close`)})}let k=`@deepseek-ai/dsh-client-ui-settings-general/GeneralSection.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(k)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=k,e.textContent=`.z4LjqG_section{flex-direction:column;width:100%;display:flex}.z4LjqG_heading{margin-bottom:28px}.z4LjqG_title{color:var(--dsw-alias-label-primary);letter-spacing:-.5px;margin:0;font-size:24px;font-weight:600;line-height:32px}.z4LjqG_description{color:var(--dsw-alias-label-secondary);margin:8px 0 0;font-size:13px;line-height:20px}.z4LjqG_group+.z4LjqG_group{margin-top:28px}.z4LjqG_groupTitle{color:var(--dsw-alias-label-primary);margin:0 0 10px;font-size:13px;font-weight:600;line-height:20px}.z4LjqG_card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);border-radius:12px}.z4LjqG_item{min-width:0;margin:0 20px}.z4LjqG_item+.z4LjqG_item{border-top:1px solid var(--dsw-alias-border-l1)}.z4LjqG_item>[data-slot="settings.general.item"]>*{border-bottom:none}.z4LjqG_footer{margin-top:8px}@media (width<=600px){.z4LjqG_heading{margin-bottom:20px}.z4LjqG_title{font-size:20px;line-height:28px}.z4LjqG_description{margin-top:4px}.z4LjqG_group+.z4LjqG_group{margin-top:24px}.z4LjqG_item{margin:0 12px}}`,document.head.appendChild(e)}var A={card:`z4LjqG_card`,description:`z4LjqG_description`,footer:`z4LjqG_footer`,group:`z4LjqG_group`,groupTitle:`z4LjqG_groupTitle`,heading:`z4LjqG_heading`,item:`z4LjqG_item`,section:`z4LjqG_section`,title:`z4LjqG_title`};let j=[{title:`general.appAndNotifications`,items:[`codexhost.notifications`,`codexhost.pwa-install`]},{title:`general.display`,items:[`language`,`appearance`,`font-size`,`workspace.recent-navigation`]},{title:`general.interaction`,items:[`transcript-view`,`developer-tools`,`shortcuts`,`link-opening`,`composer-enter`]}],M=new Set(j.flatMap(e=>e.items));function N({renderSlot:e,t,useItems:n}){let r=(0,o.useId)(),i=n(e=>e),a=j.map(e=>({title:e.title,items:i.filter(t=>e.items.includes(t))}));return a.push({title:`general.other`,items:i.filter(e=>e!==`current-version`&&!M.has(e))}),/* @__PURE__ */ (0,c.jsxs)(`div`,{className:A.section,children:[/* @__PURE__ */ (0,c.jsxs)(`header`,{className:A.heading,children:[/* @__PURE__ */ (0,c.jsx)(`h2`,{className:A.title,children:t(`general.nav`)}),/* @__PURE__ */ (0,c.jsx)(`p`,{className:A.description,children:t(`general.description`)})]}),a.filter(e=>e.items.length>0).map(n=>/* @__PURE__ */ (0,c.jsxs)(`section`,{className:A.group,"aria-labelledby":`${r}-${n.title}`,children:[/* @__PURE__ */ (0,c.jsx)(`h3`,{className:A.groupTitle,id:`${r}-${n.title}`,children:t(n.title)}),/* @__PURE__ */ (0,c.jsx)(`div`,{className:A.card,children:n.items.map(t=>/* @__PURE__ */ (0,c.jsx)(`div`,{className:A.item,children:e(`settings.general.item`,{},{only:t})},t))})]},n.title)),i.includes(`current-version`)&&/* @__PURE__ */ (0,c.jsx)(`div`,{className:A.footer,children:e(`settings.general.item`,{},{only:`current-version`})})]})}let P=`@deepseek-ai/dsh-client-ui-settings-general/CurrentVersionRow.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(P)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=P,e.textContent=`.ndAkiW_row{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;padding:16px 0;font-size:14px;line-height:22px}`,document.head.appendChild(e)}var F={row:`ndAkiW_row`};function I({t:e}){let t={}.DSH_CLIENT_VERSION;return t===void 0?null:/* @__PURE__ */ (0,c.jsx)(`div`,{className:F.row,children:e(`general.currentVersion`,{version:t})})}let L=`@deepseek-ai/dsh-client-ui-settings-general/DeveloperToolsRow.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(L)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=L,e.textContent=`.-JgUFG_row{border-bottom:.5px solid var(--dsw-alias-border-l2);justify-content:space-between;align-items:center;gap:24px;padding:16px 0;display:flex}.-JgUFG_title{font-size:14px;line-height:20px}.-JgUFG_description{color:var(--dsw-alias-label-secondary);margin-top:4px;font-size:12px;line-height:18px}`,document.head.appendChild(e)}var R={description:`-JgUFG_description`,row:`-JgUFG_row`,title:`-JgUFG_title`};function z({useDeveloperTools:e,setEnabled:t,t:n}){let r=e(e=>e),[a,s]=(0,o.useState)(!1),[l,u]=(0,o.useState)(!1);return/* @__PURE__ */ (0,c.jsxs)(`div`,{className:R.row,children:[/* @__PURE__ */ (0,c.jsxs)(`div`,{children:[/* @__PURE__ */ (0,c.jsx)(`div`,{className:R.title,children:n(`developerTools.title`)}),/* @__PURE__ */ (0,c.jsx)(`div`,{className:R.description,children:n(`developerTools.description`)}),l&&/* @__PURE__ */ (0,c.jsx)(`div`,{role:`alert`,children:n(`developerTools.error`)})]}),/* @__PURE__ */ (0,c.jsx)(i.Switch,{checked:r,disabled:a,label:n(`developerTools.title`),onChange:e=>{u(!1),s(!0),t(e).catch(()=>{u(!0)}).finally(()=>{s(!1)})}})]})}let B=`@deepseek-ai/dsh-client-ui-settings-general/SettingsDocumentAction.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(B)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=B,e.textContent=`.oNJXkW_action{align-items:center;gap:8px;min-width:0;display:flex}.oNJXkW_error{max-width:180px;color:var(--dsw-alias-state-error-primary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px;overflow:hidden}`,document.head.appendChild(e)}var V={action:`oNJXkW_action`,error:`oNJXkW_error`};function H({controller:e,useSnapshot:t,t:n}){let r=t(e=>e);return(0,o.useEffect)(()=>{e.load()},[e]),r.status===`ready`?/* @__PURE__ */ (0,c.jsxs)(`div`,{className:V.action,children:[r.error===null?null:/* @__PURE__ */ (0,c.jsx)(`span`,{className:V.error,role:`alert`,children:n(`openDocument.error`)}),/* @__PURE__ */ (0,c.jsx)(i.Button,{variant:`outline`,size:`sm`,disabled:r.opening,onClick:()=>{e.open()},children:n(`openDocument`)})]}):null}var U=class{ctx;describeFace;store=(0,a.createSnapshotStore)({status:`idle`,opening:!1,error:null});following;constructor(e,t){this.ctx=e,this.describeFace=t}async load(){this.following??=this.describeFace.subscribe(()=>{this.derive()}),this.store.update(e=>{e.status=`loading`,e.error=null}),await this.describeFace.ensure(),this.derive()}async open(){let e=this.store.getSnapshot();if(!(e.status!==`ready`||e.opening)){this.store.update(e=>{e.opening=!0,e.error=null});try{let e=await this.ctx.remote.settings.openSettingsDocument();if(!e.ok){let{message:t}=e.error;this.store.update(e=>{e.error=t})}}finally{this.store.update(e=>{e.opening=!1})}}}dispose(){this.following?.(),this.following=void 0}derive(){let e=this.describeFace.getSnapshot();if(e.view===void 0){e.error!==null&&this.store.update(t=>{t.status=`unavailable`,t.error=e.error});return}let{hasDocument:t}=e.view;this.store.update(e=>{e.status=t?`ready`:`unavailable`,e.error=null})}};let W={trigger:`设置`,"shortcut.open":`打开设置`,"desktop.update.available":`新版本`,"desktop.update.checking":`正在检查更新…`,"desktop.update.progress":`{percent}%`,"desktop.update.verifying":`正在校验更新文件…`,"desktop.update.installing":`正在准备重启…`,"desktop.update.ready":`安装并重启`,"desktop.update.retry":`重试更新`,"desktop.update.versionDetail":`{label}:{version}`,"desktop.update.downloadDetail":`正在下载更新:{percent}%
1
+ window.__ModuleLoader__.load({id:`@deepseek-ai/dsh-client-ui-settings-general`,factory:e=>{var t={exports:{}},n=t.exports;Object.defineProperty(n,Symbol.toStringTag,{value:`Module`});let r=e("@deepseek-ai/dsh-client-ui-slots"),i=e("@deepseek-ai/dsh-client-ui-primitives"),a=e("@deepseek-ai/dsh-client-store"),o=e("react"),s=e("react-dom"),c=e("react/jsx-runtime");function l(){return(0,a.defineStore)({init:()=>({open:!1,activeId:void 0}),actions:{open:e=>{e.open=!0},close:e=>{e.open=!1,e.activeId=void 0},select:(e,t)=>{e.activeId=t},openSection:(e,t)=>{e.activeId=t,e.open=!0}}})}function u(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=u(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function d(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=u(e))&&(r&&(r+=` `),r+=t);return r}let f=`@deepseek-ai/dsh-client-ui-settings-general/SettingsRoot.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(f)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=f,e.textContent=`.GTjkVG_triggerRow{flex:none;align-items:center;gap:8px;width:calc(100% + 4px);margin:4px -2px;display:flex;position:relative}.GTjkVG_triggerRow.GTjkVG_railRow{width:36px;margin:8px 0 10px}.GTjkVG_trigger{box-sizing:border-box;border-radius:var(--dsw-radius-md);cursor:pointer;width:auto;min-width:0;height:42px;color:var(--dsw-alias-label-primary);background:0 0;border:none;flex:1;align-items:center;gap:8px;margin:0;padding:0 10px 0 8px;font-family:inherit;font-size:14px;line-height:22px;display:flex;overflow:hidden}.GTjkVG_trigger:hover{background:var(--dsw-alias-interactive-bg-hover)}.GTjkVG_trigger.GTjkVG_rail{flex:none;justify-content:center;gap:0;width:36px;height:36px;margin:0;padding:0}.GTjkVG_triggerLabel{white-space:nowrap;overflow:hidden}.GTjkVG_overlay{z-index:1000;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.GTjkVG_mask{inset:var(--dsh-frame-chrome-top,0px) 0 0;background:var(--dsw-alias-bg-mask-1);backdrop-filter:var(--dsw-mask-blur);position:absolute}.GTjkVG_panel{z-index:1;width:1040px;height:min(800px, calc(100vh - 2 * max(24px, var(--dsh-frame-overlay-top,24px))));border-radius:var(--dsw-radius-panel);background:var(--dsw-alias-bg-layer-2);max-width:calc(100vw - 48px);box-shadow:var(--dsw-elevation-prominent);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);display:flex;position:relative;overflow:hidden}.GTjkVG_panel:focus{outline:none}.GTjkVG_nav{box-sizing:border-box;flex-direction:column;flex:none;gap:18px;width:188px;padding:22px 12px 0;display:flex}.GTjkVG_navTitle{color:var(--dsw-alias-label-primary);padding:0 12px;font-size:16px;font-weight:500;line-height:24px}.GTjkVG_navList{flex-direction:column;gap:4px;display:flex;overflow-y:auto}.GTjkVG_navCell{box-sizing:border-box;border-radius:var(--dsw-radius-md);cursor:pointer;height:40px;color:var(--dsw-alias-label-primary);text-align:left;background:0 0;border:none;align-items:center;gap:8px;padding:9px 16px 9px 12px;font-family:inherit;font-size:14px;font-weight:400;line-height:22px;display:flex}.GTjkVG_navCell:hover{background:var(--dsw-specific-sidebar-nav-item-hover)}.GTjkVG_navCell.GTjkVG_active{background:var(--dsw-specific-sidebar-nav-item-active)}.GTjkVG_navIcon{flex:none}.GTjkVG_navLabel{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.GTjkVG_content{flex-direction:column;flex:1;min-width:0;display:flex}.GTjkVG_header{box-sizing:border-box;flex:none;justify-content:space-between;align-items:flex-start;gap:8px;height:54px;padding:20px 14px 8px 10px;display:flex}.GTjkVG_actions{justify-content:flex-end;align-items:center;gap:8px;min-width:0;margin-left:auto;display:flex}.GTjkVG_close{border-radius:var(--dsw-radius-sm);cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-primary);background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.GTjkVG_close:hover{background:var(--dsw-alias-interactive-bg-hover)}.GTjkVG_options{flex:1;min-height:0;padding:0 24px 24px;overflow-y:auto}@media (width<=600px){.GTjkVG_panel{max-width:calc(100vw - 24px);height:calc(100dvh - 2 * max(12px, env(safe-area-inset-top), env(safe-area-inset-bottom)));flex-direction:column}.GTjkVG_nav{gap:12px;width:100%;padding:16px 12px 8px}.GTjkVG_navTitle{padding:0 44px 0 4px}.GTjkVG_navList{flex-direction:row;overflow-x:auto}.GTjkVG_navCell{flex:none;height:44px}.GTjkVG_content{min-height:0}.GTjkVG_header{height:auto;padding:0 16px}.GTjkVG_close{width:44px;height:44px;position:absolute;top:6px;right:6px}.GTjkVG_options{padding:0 16px 16px}}.GTjkVG_hiddenLabel{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}`,document.head.appendChild(e)}var p={actions:`GTjkVG_actions`,active:`GTjkVG_active`,close:`GTjkVG_close`,content:`GTjkVG_content`,header:`GTjkVG_header`,hiddenLabel:`GTjkVG_hiddenLabel`,mask:`GTjkVG_mask`,nav:`GTjkVG_nav`,navCell:`GTjkVG_navCell`,navIcon:`GTjkVG_navIcon`,navLabel:`GTjkVG_navLabel`,navList:`GTjkVG_navList`,navTitle:`GTjkVG_navTitle`,options:`GTjkVG_options`,overlay:`GTjkVG_overlay`,panel:`GTjkVG_panel`,rail:`GTjkVG_rail`,railRow:`GTjkVG_railRow`,trigger:`GTjkVG_trigger`,triggerLabel:`GTjkVG_triggerLabel`,triggerRow:`GTjkVG_triggerRow`};let m=`@deepseek-ai/dsh-client-ui-settings-general/DesktopUpdateIndicator.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(m)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=m,e.textContent=`.friKcq_indicator{box-sizing:border-box;border:1px solid color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 20%, transparent);border-radius:var(--dsw-radius-sm);height:28px;color:var(--dsw-alias-brand-primary-new-colorprimary-new-color);background:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 8%, transparent);text-align:left;white-space:nowrap;cursor:pointer;flex:none;grid-template-columns:14px max-content;align-items:center;column-gap:4px;padding:0 8px;font-family:inherit;font-size:12px;font-weight:500;line-height:18px;display:inline-grid}.friKcq_icon{place-items:center;width:14px;height:14px;display:grid}.friKcq_badge{inset-inline-end:2px;corner-shape:round;background:var(--dsw-alias-brand-primary-new-colorprimary-new-color);border-radius:50%;width:6px;height:6px;position:absolute;top:2px}.friKcq_errorDot{corner-shape:round;background:currentColor;border-radius:50%;width:6px;height:6px}.friKcq_spinner{animation:1s linear infinite friKcq_spin}@keyframes friKcq_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.friKcq_spinner{animation:none}}.friKcq_indicator[aria-disabled=true]{cursor:default}`,document.head.appendChild(e)}var h={badge:`friKcq_badge`,errorDot:`friKcq_errorDot`,icon:`friKcq_icon`,indicator:`friKcq_indicator`,spin:`friKcq_spin`,spinner:`friKcq_spinner`};let g=/* @__PURE__ */ new Set([`checking`,`downloading`,`verifying`,`installing`]);function _(e,t){let n={idle:``,checking:t(`desktop.update.checking`),available:t(`desktop.update.available`),downloading:t(`desktop.update.progress`,{percent:e.percent??0}),verifying:t(`desktop.update.verifying`),installing:t(`desktop.update.installing`),ready:t(`desktop.update.ready`),error:t(`desktop.update.retry`)}[e.phase];return e.phase===`checking`||e.phase===`verifying`||e.phase===`installing`?{label:n,detail:e.version??n}:e.phase===`error`?{label:n,detail:{check:t(`desktop.update.checkFailed`),"check-network":t(`desktop.update.checkNetworkFailed`),download:t(`desktop.update.downloadFailed`),"download-network":t(`desktop.update.downloadNetworkFailed`),install:t(`desktop.update.installFailed`),"install-network":t(`desktop.update.installNetworkFailed`),"stop-failed":t(`desktop.update.stopFailed`),"tasks-changed":t(`desktop.update.tasksChanged`),"tasks-unavailable":t(`desktop.update.tasksUnavailable`)}[e.failure??`install`]}:e.phase===`downloading`&&e.version!==void 0?{label:n,detail:t(`desktop.update.downloadDetail`,{percent:e.percent??0,version:e.version})}:{label:n,detail:e.version===void 0?n:t(`desktop.update.versionDetail`,{label:n,version:e.version})}}function v({wide:e,hidden:t,t:n,view:r,onOpen:a}){let{presentation:o,failed:s,opening:l}=r;if(!e||t||!s&&(o===void 0||o.phase===`idle`))return null;let u=n(`desktop.update.retry`),d=o===void 0?{label:u,detail:u}:_(o,n),f=s?u:d.label,p=s||o?.phase===`error`,m=l||o!==void 0&&g.has(o.phase);return/* @__PURE__ */ (0,c.jsx)(i.Tooltip,{label:s?u:d.detail,side:`top`,children:/* @__PURE__ */ (0,c.jsxs)(`button`,{type:`button`,className:h.indicator,"aria-label":f,"aria-disabled":m,onClick:()=>{m||a()},children:[/* @__PURE__ */ (0,c.jsx)(`span`,{className:h.icon,"aria-hidden":`true`,children:p?/* @__PURE__ */ (0,c.jsx)(`span`,{className:h.errorDot}):m?/* @__PURE__ */ (0,c.jsx)(i.IconLoadingOutlineRegular,{className:h.spinner,size:14}):/* @__PURE__ */ (0,c.jsx)(i.IconDownloadOutlineRegular,{size:14})}),/* @__PURE__ */ (0,c.jsx)(`span`,{children:f})]})})}function y({useDesktopUpdate:e,useConnectionState:t,t:n}){let{presentation:r,failed:a}=e(e=>e),o=t(e=>e);if((o===`disconnected`||o===`connecting`)&&r?.phase!==`installing`||!a&&(r===void 0||r.phase===`idle`))return null;let s=n(`desktop.update.retry`),l=r===void 0?{label:s,detail:s}:_(r,n),u=a?s:l.label;return/* @__PURE__ */ (0,c.jsx)(i.Tooltip,{label:a?u:l.detail,side:`right`,children:/* @__PURE__ */ (0,c.jsx)(`span`,{role:`img`,"aria-label":u,className:h.badge})})}function b(e){return e===`account`||e===`codexhost-accounts`?/* @__PURE__ */ (0,c.jsx)(i.IconUserOutlineMedium,{className:p.navIcon,size:16}):e===`models`||e===`codexhost-usage-statistics`?/* @__PURE__ */ (0,c.jsx)(i.IconDataOutlineMedium,{className:p.navIcon,size:16}):e===`agent-presets`?/* @__PURE__ */ (0,c.jsx)(i.IconAgentPresetOutlineMedium,{className:p.navIcon,size:16}):e===`plugins`||e===`codexhost-connections`?/* @__PURE__ */ (0,c.jsx)(i.IconPersonalizationOutlineMedium,{className:p.navIcon,size:16}):e===`archived-sessions`?/* @__PURE__ */ (0,c.jsx)(i.IconArchiveOutlineMedium,{className:p.navIcon,size:16}):/* @__PURE__ */ (0,c.jsx)(i.IconSettingsOutlineMedium,{className:p.navIcon,size:16})}function x({rows:e,renderSlot:t,activeId:n,onSelect:r,onClose:a}){let l=e.find(e=>e.id===n)?.id??e[0]?.id,u=(0,o.useId)(),f=(0,o.useRef)(null);return(0,i.useModalLayer)(f,!0,a),(0,s.createPortal)(/* @__PURE__ */ (0,c.jsxs)(`div`,{className:p.overlay,role:`presentation`,children:[/* @__PURE__ */ (0,c.jsx)(`div`,{className:p.mask,"aria-hidden":`true`,onClick:a}),/* @__PURE__ */ (0,c.jsxs)(`div`,{ref:f,tabIndex:-1,"data-shortcut-modal":`settings`,className:p.panel,role:`dialog`,"aria-modal":`true`,"aria-labelledby":u,children:[/* @__PURE__ */ (0,c.jsxs)(`nav`,{className:p.nav,children:[/* @__PURE__ */ (0,c.jsx)(`div`,{className:p.navTitle,id:u,tabIndex:-1,"data-modal-autofocus":l===void 0?``:void 0,children:t(`settings.header`,{})}),/* @__PURE__ */ (0,c.jsx)(`div`,{className:p.navList,children:e.map(e=>/* @__PURE__ */ (0,c.jsxs)(`button`,{type:`button`,className:d(p.navCell,e.id===l&&p.active),"aria-current":e.id===l?`true`:void 0,"data-modal-autofocus":e.id===l?``:void 0,onClick:()=>{r(e.id)},children:[b(e.id),/* @__PURE__ */ (0,c.jsx)(`span`,{className:p.navLabel,children:e.label})]},e.id))})]}),/* @__PURE__ */ (0,c.jsxs)(`div`,{className:p.content,children:[/* @__PURE__ */ (0,c.jsxs)(`div`,{className:p.header,children:[/* @__PURE__ */ (0,c.jsx)(`div`,{className:p.actions,children:t(`settings.action`,{})}),/* @__PURE__ */ (0,c.jsxs)(`button`,{type:`button`,className:p.close,onClick:a,children:[/* @__PURE__ */ (0,c.jsx)(i.IconCloseOutlineRegular,{size:14}),/* @__PURE__ */ (0,c.jsx)(`span`,{className:p.hiddenLabel,children:t(`settings.close`,{})})]})]}),/* @__PURE__ */ (0,c.jsx)(`div`,{className:p.options,children:l!==void 0&&t(`settings.section`,{close:a},{only:l})})]})]})]}),document.body)}function S(e){let{wide:t,reconnect:n,useConnectionState:r,useSections:a,useOnboardingSteps:s,useSessions:l,renderSlot:u,t:f,useDesktopUpdate:m,openDesktopUpdate:h,useStore:g,actions:_,useShortcuts:y}=e,{open:b,activeId:S}=g(e=>e),C=y(e=>e.find(e=>e.id===`settings.open`)),{close:w,openSection:T}=_;(0,o.useEffect)(()=>{if(window.location.hash!==`#connect-devices`)return;T(`codexhost-connect-devices`);let e=new URL(window.location.href);e.hash=``,window.history.replaceState(window.history.state,``,e.href)},[T]);let[E,D]=(0,o.useState)(),[O,k]=(0,o.useState)(()=>/* @__PURE__ */ new Set),[A,j]=(0,o.useState)(!1),[M,N]=(0,o.useState)(!1),P=(0,o.useRef)(void 0),F=a(e=>e),I=m(e=>e),L=r(e=>e),R=(0,o.useRef)(L),z=s(e=>e),B=l(e=>{let t=Object.values(e.byId).find(e=>(e.retainedBy.mainView??0)>0);return e.phase===`ready`&&(t===void 0||t.blank)}),V=E===void 0?B?z.find(e=>!O.has(e.id)):void 0:z.find(e=>e.id===E);(0,o.useEffect)(()=>{B||k(/* @__PURE__ */ new Set)},[B]);let H=(0,o.useRef)(V);(0,o.useEffect)(()=>{let e=H.current===void 0&&V!==void 0;H.current=V,e&&b&&w()},[V,b,w]),(0,o.useLayoutEffect)(()=>{let e=R.current;R.current=L,L===`connected`?(e===`disconnected`||e===`connecting`)&&j(!0):j(!1)},[L]),(0,o.useLayoutEffect)(()=>{if(!A||M)return;let e=window.setTimeout(()=>{j(!1)},2e3);return()=>{window.clearTimeout(e)}},[A,M]),(0,o.useLayoutEffect)(()=>{if(L===`connecting`){P.current=Date.now();return}let e=P.current;if(e===void 0)return;P.current=void 0;let t=800-(Date.now()-e);if(t<=0)return;N(!0);let n=window.setTimeout(()=>{N(!1)},t);return()=>{window.clearTimeout(n),N(!1)}},[L]);let U=(0,o.useCallback)(e=>{D(void 0),k(t=>t.has(e)?t:/* @__PURE__ */ new Set([...t,e]))},[]),W;return L===`connecting`||M?W=`connecting`:L===`disconnected`?W=`disconnected`:A&&(W=`recovered`),/* @__PURE__ */ (0,c.jsxs)(c.Fragment,{children:[/* @__PURE__ */ (0,c.jsxs)(`div`,{className:d(p.triggerRow,!t&&p.railRow),children:[u(`settings.launcher`,{wide:t,settingsOpen:b,openSettings:_.open,...C?.keys.length?{settingsShortcut:{keys:C.keys,aria:C.aria}}:{},openOnboarding:e=>{w(),D(e)}},{fallback:/* @__PURE__ */ (0,c.jsx)(i.Tooltip,{disabled:b,label:f(`trigger`),shortcutKeys:C?.keys,children:/* @__PURE__ */ (0,c.jsx)(`button`,{type:`button`,className:d(p.trigger,!t&&p.rail),"aria-label":f(`trigger`),"aria-keyshortcuts":C?.aria,"aria-haspopup":`dialog`,"aria-expanded":b,onClick:()=>{_.open()},children:u(`settings.trigger`,{wide:t})})})}),/* @__PURE__ */ (0,c.jsx)(i.ConnectionIndicator,{state:t&&I.presentation?.phase!==`installing`?W:void 0,disconnectedLabel:f(`connection.error`),connectingLabel:f(`connection.connecting`),recoveredLabel:f(`connection.connected`),reconnectActionLabel:f(`connection.reconnect`),restartActionLabel:f(`connection.restart`),onReconnect:n}),/* @__PURE__ */ (0,c.jsx)(v,{wide:t,hidden:W!==void 0&&I.presentation?.phase!==`installing`,t:f,view:I,onOpen:h})]}),b&&/* @__PURE__ */ (0,c.jsx)(x,{rows:F,renderSlot:u,activeId:S,onSelect:_.select,onClose:w}),V!==void 0&&u(`settings.onboarding`,{stepId:V.id,explicit:E!==void 0,complete:()=>{U(V.id)},openSection:T},{only:V.id})]})}var C=class{bridge;store=(0,a.createSnapshotStore)({failed:!1,opening:!1});live=!0;received=!1;unsubscribe;constructor(e){this.bridge=e,this.unsubscribe=e?.subscribe(e=>{this.live&&(this.received=!0,this.store.set({...this.store.getSnapshot(),presentation:e,failed:!1}))}),e?.status().then(e=>{this.live&&!this.received&&this.store.set({...this.store.getSnapshot(),presentation:e})},()=>{this.live&&!this.received&&this.store.set({...this.store.getSnapshot(),failed:!0})})}open(){if(!this.live||this.bridge===void 0)return;let e=this.store.getSnapshot();e.opening||e.presentation!==void 0&&[`checking`,`downloading`,`verifying`,`installing`].includes(e.presentation.phase)||(this.store.set({...e,opening:!0}),this.bridge.open().catch(()=>{this.live&&this.store.set({...this.store.getSnapshot(),failed:!0})}).finally(()=>{this.live&&this.store.set({...this.store.getSnapshot(),opening:!1})}))}dispose(){this.live=!1,this.unsubscribe?.()}};let w=`@deepseek-ai/dsh-client-ui-settings-general/chrome.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(w)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=w,e.textContent=`._6svrtq_triggerLabel{white-space:nowrap;overflow:hidden}`,document.head.appendChild(e)}var T={triggerLabel:`_6svrtq_triggerLabel`};function E({wide:e,t}){return/* @__PURE__ */ (0,c.jsxs)(c.Fragment,{children:[/* @__PURE__ */ (0,c.jsx)(i.IconSettingsOutlineMedium,{size:e?16:18}),e&&/* @__PURE__ */ (0,c.jsx)(`span`,{className:T.triggerLabel,children:t(`trigger`)})]})}function D({t:e}){return/* @__PURE__ */ (0,c.jsx)(c.Fragment,{children:e(`title`)})}function O({t:e}){return/* @__PURE__ */ (0,c.jsx)(c.Fragment,{children:e(`close`)})}let k=`@deepseek-ai/dsh-client-ui-settings-general/GeneralSection.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(k)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=k,e.textContent=`.z4LjqG_section{flex-direction:column;width:100%;display:flex}.z4LjqG_heading{margin-bottom:28px}.z4LjqG_title{color:var(--dsw-alias-label-primary);letter-spacing:-.5px;margin:0;font-size:24px;font-weight:600;line-height:32px}.z4LjqG_description{color:var(--dsw-alias-label-secondary);margin:8px 0 0;font-size:13px;line-height:20px}.z4LjqG_group+.z4LjqG_group{margin-top:28px}.z4LjqG_groupTitle{color:var(--dsw-alias-label-primary);margin:0 0 10px;font-size:13px;font-weight:600;line-height:20px}.z4LjqG_card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);border-radius:12px}.z4LjqG_item{min-width:0;margin:0 20px}.z4LjqG_item+.z4LjqG_item{border-top:1px solid var(--dsw-alias-border-l1)}.z4LjqG_item>[data-slot="settings.general.item"]>*{border-bottom:none}.z4LjqG_footer{margin-top:8px}@media (width<=600px){.z4LjqG_heading{margin-bottom:20px}.z4LjqG_title{font-size:20px;line-height:28px}.z4LjqG_description{margin-top:4px}.z4LjqG_group+.z4LjqG_group{margin-top:24px}.z4LjqG_item{margin:0 12px}}`,document.head.appendChild(e)}var A={card:`z4LjqG_card`,description:`z4LjqG_description`,footer:`z4LjqG_footer`,group:`z4LjqG_group`,groupTitle:`z4LjqG_groupTitle`,heading:`z4LjqG_heading`,item:`z4LjqG_item`,section:`z4LjqG_section`,title:`z4LjqG_title`};let j=[{title:`general.appAndNotifications`,items:[`codexhost.notifications`,`codexhost.pwa-install`]},{title:`general.display`,items:[`language`,`appearance`,`font-size`,`workspace.thread-tree-style`,`workspace.recent-navigation`]},{title:`general.interaction`,items:[`transcript-view`,`developer-tools`,`shortcuts`,`link-opening`,`composer-enter`]}],M=new Set(j.flatMap(e=>e.items));function N({renderSlot:e,t,useItems:n}){let r=(0,o.useId)(),i=n(e=>e),a=j.map(e=>({title:e.title,items:i.filter(t=>e.items.includes(t))}));return a.push({title:`general.other`,items:i.filter(e=>e!==`current-version`&&!M.has(e))}),/* @__PURE__ */ (0,c.jsxs)(`div`,{className:A.section,children:[/* @__PURE__ */ (0,c.jsxs)(`header`,{className:A.heading,children:[/* @__PURE__ */ (0,c.jsx)(`h2`,{className:A.title,children:t(`general.nav`)}),/* @__PURE__ */ (0,c.jsx)(`p`,{className:A.description,children:t(`general.description`)})]}),a.filter(e=>e.items.length>0).map(n=>/* @__PURE__ */ (0,c.jsxs)(`section`,{className:A.group,"aria-labelledby":`${r}-${n.title}`,children:[/* @__PURE__ */ (0,c.jsx)(`h3`,{className:A.groupTitle,id:`${r}-${n.title}`,children:t(n.title)}),/* @__PURE__ */ (0,c.jsx)(`div`,{className:A.card,children:n.items.map(t=>/* @__PURE__ */ (0,c.jsx)(`div`,{className:A.item,children:e(`settings.general.item`,{},{only:t})},t))})]},n.title)),i.includes(`current-version`)&&/* @__PURE__ */ (0,c.jsx)(`div`,{className:A.footer,children:e(`settings.general.item`,{},{only:`current-version`})})]})}let P=`@deepseek-ai/dsh-client-ui-settings-general/CurrentVersionRow.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(P)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=P,e.textContent=`.ndAkiW_row{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;padding:16px 0;font-size:14px;line-height:22px}`,document.head.appendChild(e)}var F={row:`ndAkiW_row`};function I({t:e}){let t={}.DSH_CLIENT_VERSION;return t===void 0?null:/* @__PURE__ */ (0,c.jsx)(`div`,{className:F.row,children:e(`general.currentVersion`,{version:t})})}let L=`@deepseek-ai/dsh-client-ui-settings-general/DeveloperToolsRow.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(L)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=L,e.textContent=`.-JgUFG_row{border-bottom:.5px solid var(--dsw-alias-border-l2);justify-content:space-between;align-items:center;gap:24px;padding:16px 0;display:flex}.-JgUFG_title{font-size:14px;line-height:20px}.-JgUFG_description{color:var(--dsw-alias-label-secondary);margin-top:4px;font-size:12px;line-height:18px}`,document.head.appendChild(e)}var R={description:`-JgUFG_description`,row:`-JgUFG_row`,title:`-JgUFG_title`};function z({useDeveloperTools:e,setEnabled:t,t:n}){let r=e(e=>e),[a,s]=(0,o.useState)(!1),[l,u]=(0,o.useState)(!1);return/* @__PURE__ */ (0,c.jsxs)(`div`,{className:R.row,children:[/* @__PURE__ */ (0,c.jsxs)(`div`,{children:[/* @__PURE__ */ (0,c.jsx)(`div`,{className:R.title,children:n(`developerTools.title`)}),/* @__PURE__ */ (0,c.jsx)(`div`,{className:R.description,children:n(`developerTools.description`)}),l&&/* @__PURE__ */ (0,c.jsx)(`div`,{role:`alert`,children:n(`developerTools.error`)})]}),/* @__PURE__ */ (0,c.jsx)(i.Switch,{checked:r,disabled:a,label:n(`developerTools.title`),onChange:e=>{u(!1),s(!0),t(e).catch(()=>{u(!0)}).finally(()=>{s(!1)})}})]})}let B=`@deepseek-ai/dsh-client-ui-settings-general/SettingsDocumentAction.module.css`;if(typeof document<`u`&&document.querySelector(`style[data-plugin-css=`+JSON.stringify(B)+`]`)===null){let e=document.createElement(`style`);e.dataset.plugin=`@deepseek-ai/dsh-client-ui-settings-general`,e.dataset.pluginCss=B,e.textContent=`.oNJXkW_action{align-items:center;gap:8px;min-width:0;display:flex}.oNJXkW_error{max-width:180px;color:var(--dsw-alias-state-error-primary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px;overflow:hidden}`,document.head.appendChild(e)}var V={action:`oNJXkW_action`,error:`oNJXkW_error`};function H({controller:e,useSnapshot:t,t:n}){let r=t(e=>e);return(0,o.useEffect)(()=>{e.load()},[e]),r.status===`ready`?/* @__PURE__ */ (0,c.jsxs)(`div`,{className:V.action,children:[r.error===null?null:/* @__PURE__ */ (0,c.jsx)(`span`,{className:V.error,role:`alert`,children:n(`openDocument.error`)}),/* @__PURE__ */ (0,c.jsx)(i.Button,{variant:`outline`,size:`sm`,disabled:r.opening,onClick:()=>{e.open()},children:n(`openDocument`)})]}):null}var U=class{ctx;describeFace;store=(0,a.createSnapshotStore)({status:`idle`,opening:!1,error:null});following;constructor(e,t){this.ctx=e,this.describeFace=t}async load(){this.following??=this.describeFace.subscribe(()=>{this.derive()}),this.store.update(e=>{e.status=`loading`,e.error=null}),await this.describeFace.ensure(),this.derive()}async open(){let e=this.store.getSnapshot();if(!(e.status!==`ready`||e.opening)){this.store.update(e=>{e.opening=!0,e.error=null});try{let e=await this.ctx.remote.settings.openSettingsDocument();if(!e.ok){let{message:t}=e.error;this.store.update(e=>{e.error=t})}}finally{this.store.update(e=>{e.opening=!1})}}}dispose(){this.following?.(),this.following=void 0}derive(){let e=this.describeFace.getSnapshot();if(e.view===void 0){e.error!==null&&this.store.update(t=>{t.status=`unavailable`,t.error=e.error});return}let{hasDocument:t}=e.view;this.store.update(e=>{e.status=t?`ready`:`unavailable`,e.error=null})}};let W={trigger:`设置`,"shortcut.open":`打开设置`,"desktop.update.available":`新版本`,"desktop.update.checking":`正在检查更新…`,"desktop.update.progress":`{percent}%`,"desktop.update.verifying":`正在校验更新文件…`,"desktop.update.installing":`正在准备重启…`,"desktop.update.ready":`安装并重启`,"desktop.update.retry":`重试更新`,"desktop.update.versionDetail":`{label}:{version}`,"desktop.update.downloadDetail":`正在下载更新:{percent}%
2
2
  目标版本:{version}`,"desktop.update.checkFailed":`检查更新失败,请稍后重试。`,"desktop.update.downloadFailed":`下载更新失败,请重试。`,"desktop.update.installFailed":`安装更新失败,请稍后重试。`,"desktop.update.checkNetworkFailed":`检查更新失败,请检查网络连接后重试。`,"desktop.update.downloadNetworkFailed":`下载更新失败,请检查网络连接后重试。`,"desktop.update.installNetworkFailed":`安装更新失败,请检查网络连接后重试。`,"desktop.update.stopFailed":`未能安全停止任务,更新尚未安装,请稍后重试。`,"desktop.update.tasksChanged":`有新任务开始运行,请重新确认是否停止任务并更新。`,"desktop.update.tasksUnavailable":`无法确认任务状态,请在工作区就绪后重试更新。`,title:`设置`,close:`关闭`,openDocument:`打开配置文件`,"openDocument.error":`无法打开配置文件`,"general.nav":`通用设置`,"general.description":`调整界面显示、阅读与交互偏好。`,"general.display":`显示与语言`,"general.interaction":`交互与阅读`,"general.appAndNotifications":`应用与通知`,"general.other":`其他设置`,"general.currentVersion":`当前版本:{version}`,"developerTools.title":`显示代码工作视图`,"developerTools.error":`保存失败,请重试`,"developerTools.description":`在对话中显示代码 diff 和工具调用详情`,"connection.error":`连接异常,刷新重试`,"connection.connecting":`重新连接中`,"connection.connected":`连接成功`,"connection.reconnect":`连接异常,点击立即重连`,"connection.restart":`连接中断,正在重试,点击立即重连`},G={trigger:`Settings`,"shortcut.open":`Open settings`,"desktop.update.available":`Update`,"desktop.update.checking":`Checking for updates…`,"desktop.update.progress":`{percent}%`,"desktop.update.verifying":`Verifying update files…`,"desktop.update.installing":`Preparing to restart…`,"desktop.update.ready":`Install and Restart`,"desktop.update.retry":`Retry update`,"desktop.update.versionDetail":`{label}: {version}`,"desktop.update.downloadDetail":`Downloading update: {percent}%
3
3
  Target version: {version}`,"desktop.update.checkFailed":`Could not check for updates. Please try again later.`,"desktop.update.downloadFailed":`Could not download the update. Please try again.`,"desktop.update.installFailed":`Could not install the update. Please try again later.`,"desktop.update.checkNetworkFailed":`Could not check for updates. Check your connection and try again.`,"desktop.update.downloadNetworkFailed":`Could not download the update. Check your connection and try again.`,"desktop.update.installNetworkFailed":`Could not install the update. Check your connection and try again.`,"desktop.update.stopFailed":`Could not safely stop the tasks. The update has not been installed. Please try again later.`,"desktop.update.tasksChanged":`New tasks have started. Confirm again to stop the tasks and update.`,"desktop.update.tasksUnavailable":`Task status is unavailable. Try updating again when the workspace is ready.`,title:`Settings`,close:`Close`,openDocument:`Open configuration file`,"openDocument.error":`Could not open configuration file`,"general.nav":`General`,"general.description":`Adjust your display, reading, and interaction preferences.`,"general.display":`Display & language`,"general.interaction":`Interaction & reading`,"general.appAndNotifications":`App & notifications`,"general.other":`Other settings`,"general.currentVersion":`Current version: {version}`,"developerTools.title":`Show coding view`,"developerTools.error":`Could not save. Please try again.`,"developerTools.description":`Shows code diffs and detailed tool output in conversations`,"connection.error":`Disconnected`,"connection.connecting":`Reconnecting`,"connection.connected":`Connected`,"connection.reconnect":`Disconnected, reconnect now`,"connection.restart":`Reconnecting, reconnect now`},K=`settings`,q=[`slots`,`locale`,`connection`,`remote`,`remote.settings`,`configForms`,`shortcuts`];function J(e){e.slots.inject(`settings.general.item`,()=>e.slots.register({name:`settings.general.item`,id:`developer-tools`,order:15,locale:K,inject:()=>({hooks:{developerTools:e.configForms.developerTools.enabled},setEnabled:t=>e.configForms.developerTools.setEnabled(t)})},z)),e.slots.inject(`settings.general.item`,()=>e.slots.register({name:`settings.general.item`,id:`current-version`,order:100,locale:K},I)),e.effect(()=>e.locale.register(K,{zh:W,en:G}),`ui-settings-general: dictionaries`);let t=e.get(`connection`),n=globalThis.dshDesktop,a=new C(n?.protocolVersion===1?n.updates:void 0);e.effect(()=>()=>{a.dispose()},`ui-settings-general: desktop update carrier`),e.slots.inject(`sidebar.toggle.badge`,()=>e.slots.register({name:`sidebar.toggle.badge`,locale:K,inject:()=>({hooks:{desktopUpdate:a.store,connectionState:t.state}})},y));let o=e.locale.bind(K),s=e.remote.$host.isLoopback?new U(e,e.configForms.describe()):void 0,c=s===void 0?void 0:()=>({controller:s,hooks:{snapshot:s.store}});e.effect(()=>()=>{s?.dispose()},`ui-settings-general: document action directory`);let u=-1,d=-1,f=[],p=-1,m=[],h=()=>({openDesktopUpdate:()=>{a.open()},reconnect:()=>{t.reconnect()},hooks:{shortcuts:e.shortcuts.catalog,desktopUpdate:a.store,connectionState:t.state,sections:{getSnapshot:()=>{let t=e.slots.getVersion(`settings.section`),n=e.locale.getSnapshot().revision;return(t!==u||n!==d)&&(u=t,d=n,f=e.slots.entries(`settings.section`).map(e=>({
4
4
  /* v8 ignore next -- list-slot registration requires id (SlotCore rejects an entry without one) */