@xopcai/xopc 0.0.349 → 0.0.351

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 (109) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/telegram/xopc.extension.json +1 -1
  3. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CiOc0zWr.js → agent-avatar-dicebear-Dc0yBlKV.js} +1 -1
  4. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-BvL4FTKi.js → agent-defaults-settings-panel-BXFins6I.js} +1 -1
  5. package/dist/gateway/static/root/assets/{agent-plugin-dialog-BOzZvojX.js → agent-plugin-dialog-B-w6bJuj.js} +1 -1
  6. package/dist/gateway/static/root/assets/{agents-BrPqEJm5.js → agents-CuFzMN58.js} +3 -3
  7. package/dist/gateway/static/root/assets/{agents-admin-api-DZsBZ9R6.js → agents-admin-api-yUALtmym.js} +1 -1
  8. package/dist/gateway/static/root/assets/{app-management-settings-panel-BY7yVNOc.js → app-management-settings-panel-C7QjGlMZ.js} +1 -1
  9. package/dist/gateway/static/root/assets/{appearance-settings-Cqk9QUWY.js → appearance-settings-CgApGxhN.js} +1 -1
  10. package/dist/gateway/static/root/assets/{apps-page-DH1ZZh_x.js → apps-page-DWii4stP.js} +1 -1
  11. package/dist/gateway/static/root/assets/{archive-plugin-CClKYiZH.js → archive-plugin--oP0UmoE.js} +1 -1
  12. package/dist/gateway/static/root/assets/{automations-page-DqtZazSc.js → automations-page-DkV4w6xr.js} +1 -1
  13. package/dist/gateway/static/root/assets/{automations-workspace-BN0s1ILZ.js → automations-workspace-DT95Uk9d.js} +2 -2
  14. package/dist/gateway/static/root/assets/{binary-plugins-C680MkH2.js → binary-plugins-DIpBiw_8.js} +1 -1
  15. package/dist/gateway/static/root/assets/{block-editor-B4lDSWIv.js → block-editor-Di4X446B.js} +1 -1
  16. package/dist/gateway/static/root/assets/{browser-automation-inputs-BgK2Ma4E.js → browser-automation-inputs-B0TlAcoB.js} +1 -1
  17. package/dist/gateway/static/root/assets/browser-automations-page-pKPvkGW8.js +3 -0
  18. package/dist/gateway/static/root/assets/{browser-settings-page-CNVdAeRH.js → browser-settings-page-cJ200PlY.js} +1 -1
  19. package/dist/gateway/static/root/assets/{capabilities-C2vyJC-B.js → capabilities-e-fO70DK.js} +1 -1
  20. package/dist/gateway/static/root/assets/{capabilities-page-DqDP04o0.js → capabilities-page-CPKbJUDL.js} +2 -2
  21. package/dist/gateway/static/root/assets/{capabilities-settings-panel-Dd1xjlpb.js → capabilities-settings-panel-D5xUFWBJ.js} +1 -1
  22. package/dist/gateway/static/root/assets/{capability-header-actions-CHokFPVe.js → capability-header-actions-9qDm8ioP.js} +1 -1
  23. package/dist/gateway/static/root/assets/{channels-aemisJsK.js → channels-CO_9_oIH.js} +1 -1
  24. package/dist/gateway/static/root/assets/{chat-terminal-dock-C9zgTx4N.js → chat-terminal-dock-DCFwzHu2.js} +1 -1
  25. package/dist/gateway/static/root/assets/{computer-settings-page-DzIVWHw5.js → computer-settings-page-bwWQ3axN.js} +1 -1
  26. package/dist/gateway/static/root/assets/{connector-service-page-B_9tzNtD.js → connector-service-page-BIIP-gX4.js} +1 -1
  27. package/dist/gateway/static/root/assets/{connectors-page-D0qvb3mB.js → connectors-page-C0b5Xbca.js} +1 -1
  28. package/dist/gateway/static/root/assets/{date-picker-B_hPKrIP.js → date-picker-DBio7OE6.js} +1 -1
  29. package/dist/gateway/static/root/assets/{dependency-picker-BPAS7Ee7.js → dependency-picker-hyPm_1tB.js} +1 -1
  30. package/dist/gateway/static/root/assets/{desktop-pet-XzkMTcLt.js → desktop-pet-BDPfot60.js} +1 -1
  31. package/dist/gateway/static/root/assets/{desktop-pet-settings-CmhF1kse.js → desktop-pet-settings-C6IRO2iD.js} +1 -1
  32. package/dist/gateway/static/root/assets/{device-pairing-wizard-BcptV-hP.js → device-pairing-wizard-CUOh38IK.js} +1 -1
  33. package/dist/gateway/static/root/assets/{directory-picker-path-field-CHbRbJZj.js → directory-picker-path-field-ljXXfuLL.js} +1 -1
  34. package/dist/gateway/static/root/assets/{extension-debug-page-CNsneD82.js → extension-debug-page-DHw1dG1g.js} +1 -1
  35. package/dist/gateway/static/root/assets/{extension-page-DxiiQ_-P.js → extension-page-BjLN3E6q.js} +1 -1
  36. package/dist/gateway/static/root/assets/{extension-settings-page-DIh4aO4j.js → extension-settings-page-BMp6v6zP.js} +1 -1
  37. package/dist/gateway/static/root/assets/{gateway-config-swr-COCA8geG.js → gateway-config-swr-CmjHbMj7.js} +1 -1
  38. package/dist/gateway/static/root/assets/{gateway-realtime-Blcloycq.js → gateway-realtime-DzyR6LYb.js} +1 -1
  39. package/dist/gateway/static/root/assets/gateway-realtime-store-KyhksZSM.js +1 -0
  40. package/dist/gateway/static/root/assets/{gateway-settings-BNcafQJB.js → gateway-settings-D76thCuX.js} +1 -1
  41. package/dist/gateway/static/root/assets/{gateway-startup-retry-CradGmBo.js → gateway-startup-retry-CbOUnKv5.js} +1 -1
  42. package/dist/gateway/static/root/assets/{home-page-BvZcBNhP.js → home-page-D1Tyeuul.js} +1 -1
  43. package/dist/gateway/static/root/assets/{image-generation-api-CCe_-wBX.js → image-generation-api-BmLpVntI.js} +1 -1
  44. package/dist/gateway/static/root/assets/{imports-page-DgUrv_Rh.js → imports-page-CabovqRQ.js} +1 -1
  45. package/dist/gateway/static/root/assets/index-Bb32g7Ll.js +106 -0
  46. package/dist/gateway/static/root/assets/index-CPi50n0l.css +1 -0
  47. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CuQZEmVh.js → keyboard-shortcuts-settings-DvN-2bcS.js} +1 -1
  48. package/dist/gateway/static/root/assets/{local-app-workbench-page-BLbLqWVm.js → local-app-workbench-page-CSEzRWxs.js} +1 -1
  49. package/dist/gateway/static/root/assets/{local-apps-page-CErGXyIl.js → local-apps-page-C3Wy2zG2.js} +1 -1
  50. package/dist/gateway/static/root/assets/{local-session-drafts-CIcrQnQp.js → local-session-drafts-CxXjQ5Du.js} +1 -1
  51. package/dist/gateway/static/root/assets/{locale-store-K7mHrs6W.js → locale-store-WMaCMm3_.js} +1 -1
  52. package/dist/gateway/static/root/assets/{logs-page-flTbDuMT.js → logs-page-YojQFX9o.js} +1 -1
  53. package/dist/gateway/static/root/assets/{management-settings-QQT6byMB.js → management-settings-CNMk0HRn.js} +1 -1
  54. package/dist/gateway/static/root/assets/{markdown-view-BNVvybMV.js → markdown-view-Oe4rXk1N.js} +1 -1
  55. package/dist/gateway/static/root/assets/{media-plugins-Y1tnLGkI.js → media-plugins-Ds7HF3EM.js} +1 -1
  56. package/dist/gateway/static/root/assets/messages-sXePe3LQ.js +3 -0
  57. package/dist/gateway/static/root/assets/{note-detail-panel-B7HS4oqs.js → note-detail-panel-D8vQ_INI.js} +3 -3
  58. package/dist/gateway/static/root/assets/{notes-page-BYpUaCxU.js → notes-page-CIFcEPAd.js} +2 -2
  59. package/dist/gateway/static/root/assets/{page-context-capture-button-DOcROUXS.js → page-context-capture-button-YKiYT0q2.js} +1 -1
  60. package/dist/gateway/static/root/assets/{page-tabs-CU8zjRtM.js → page-tabs-ZUC486EH.js} +1 -1
  61. package/dist/gateway/static/root/assets/{preview-open-alternatives-BoZWmgG_.js → preview-open-alternatives-Ca9tBmOg.js} +1 -1
  62. package/dist/gateway/static/root/assets/{product-open-page-C0pJaYJB.js → product-open-page-BuGb8QPn.js} +1 -1
  63. package/dist/gateway/static/root/assets/{project-detail-page-xrlYOZ7-.js → project-detail-page-C6Awj1Ql.js} +1 -1
  64. package/dist/gateway/static/root/assets/{projects-page--OYwmNEy.js → projects-page-CmO8Gb9G.js} +1 -1
  65. package/dist/gateway/static/root/assets/{registry-api-DKxVZeHC.js → registry-api-DEePN1Rc.js} +1 -1
  66. package/dist/gateway/static/root/assets/{remote-access-hub-6qkix2R1.js → remote-access-hub-BsqHroXR.js} +1 -1
  67. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-C06BmltI.js → runtime-tools-settings-panel-Cva9t35o.js} +1 -1
  68. package/dist/gateway/static/root/assets/{scenes-page-BTRh_BNJ.js → scenes-page-3_61bQHN.js} +2 -2
  69. package/dist/gateway/static/root/assets/{schema-form-Dl0j1Pjj.js → schema-form-DWHFyKEB.js} +1 -1
  70. package/dist/gateway/static/root/assets/{session-api-DoE_8MbN.js → session-api-Bv-hCMKS.js} +1 -1
  71. package/dist/gateway/static/root/assets/{session-manager-B6_KNduD.js → session-manager-BcDptzCN.js} +1 -1
  72. package/dist/gateway/static/root/assets/{sessions-page-BDqe_-Sr.js → sessions-page-BaHue2bK.js} +1 -1
  73. package/dist/gateway/static/root/assets/settings-advanced-gate-C4y4c2M7.js +1 -0
  74. package/dist/gateway/static/root/assets/{settings-form-section-DX9Q7-oB.js → settings-form-section-BwdrtX6k.js} +1 -1
  75. package/dist/gateway/static/root/assets/{settings-page-DyjpNUtv.js → settings-page-B6YZFEye.js} +1 -1
  76. package/dist/gateway/static/root/assets/{setup-status-panel-D7CPCTs-.js → setup-status-panel-nMWHz-ra.js} +1 -1
  77. package/dist/gateway/static/root/assets/{share-preview-page-NXyrys7a.js → share-preview-page-DH0KHlev.js} +1 -1
  78. package/dist/gateway/static/root/assets/{shares-settings-C7APzUWD.js → shares-settings-KK-VNbMw.js} +1 -1
  79. package/dist/gateway/static/root/assets/{skill-api-D2Zav1-k.js → skill-api-BbNk-3Ig.js} +1 -1
  80. package/dist/gateway/static/root/assets/skill-reload-api-DUOG2Ig1.js +1 -0
  81. package/dist/gateway/static/root/assets/{skills-page-C8XzNFai.js → skills-page-BQya9ygw.js} +1 -1
  82. package/dist/gateway/static/root/assets/{system-settings-panel-CjAKelf_.js → system-settings-panel-akm5mc8b.js} +1 -1
  83. package/dist/gateway/static/root/assets/{task-detail-page-C2tCewyf.js → task-detail-page-wLGUc7Nu.js} +1 -1
  84. package/dist/gateway/static/root/assets/{tunnel-api-RsRe1MVk.js → tunnel-api-vZ7P_KIQ.js} +1 -1
  85. package/dist/gateway/static/root/assets/{usage-page-Cz8WM0U_.js → usage-page-BV1KJ0EY.js} +1 -1
  86. package/dist/gateway/static/root/assets/{use-autosave-Bs2Zw_LW.js → use-autosave-DQdLcZfO.js} +1 -1
  87. package/dist/gateway/static/root/assets/user-model-page-DnLTTyOE.js +2 -0
  88. package/dist/gateway/static/root/assets/{voice-api-key-field-CCznhcKT.js → voice-api-key-field-CJ-FjNHr.js} +1 -1
  89. package/dist/gateway/static/root/assets/{voice-config-api-C9HKTnnD.js → voice-config-api-DbjjZkIg.js} +1 -1
  90. package/dist/gateway/static/root/assets/{work-discovery-overlay-DzllwGa7.js → work-discovery-overlay-BA1AAqaW.js} +1 -1
  91. package/dist/gateway/static/root/assets/{workflow-run-setup-panel-C8Q_04la.js → workflow-run-setup-panel-BhIOKmjW.js} +1 -1
  92. package/dist/gateway/static/root/assets/{workflows-page-3724WDyr.js → workflows-page-aYoObmuS.js} +2 -2
  93. package/dist/gateway/static/root/index.html +15 -15
  94. package/dist/package.js +1 -1
  95. package/dist/src/cli/commands/gateway/lifecycle.js +1 -1
  96. package/dist/src/gateway/hono/routes/connectors.js +1 -1
  97. package/dist/src/gateway/service.js +4 -4
  98. package/dist/src/home-intelligence/host.js +2 -2
  99. package/dist/src/infra/update-restart.js +1 -1
  100. package/dist/src/voice/realtime/runtime.js +1 -1
  101. package/package.json +3 -3
  102. package/dist/gateway/static/root/assets/browser-automations-page-B0FqXGpQ.js +0 -3
  103. package/dist/gateway/static/root/assets/gateway-realtime-store-B87bp5kF.js +0 -1
  104. package/dist/gateway/static/root/assets/index-Cfg6ma6d.css +0 -1
  105. package/dist/gateway/static/root/assets/index-oJE8g8BL.js +0 -106
  106. package/dist/gateway/static/root/assets/messages-CY3XVeek.js +0 -3
  107. package/dist/gateway/static/root/assets/settings-advanced-gate-aDIE1Okc.js +0 -1
  108. package/dist/gateway/static/root/assets/skill-reload-api-C7-ZWRB-.js +0 -1
  109. package/dist/gateway/static/root/assets/user-model-page-BQ4P1A_c.js +0 -2
@@ -1 +1 @@
1
- import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{t as i}from"./cn-JdwAhgNB.js";import{Ns as a}from"./index-oJE8g8BL.js";var o=n(),s=e(t(),1),c=r();function l(e){let t=(0,o.c)(40),{items:n,activeTab:r,onChange:l,ariaLabel:u,tabIdPrefix:d,panelIdPrefix:f,className:p,buttonClassName:m,selectedClassName:h,unselectedClassName:g,countClassName:_,onReorder:v}=e,y=h===void 0?`bg-surface-active text-fg`:h,b=g===void 0?`text-fg-muted hover:bg-surface-hover hover:text-fg`:g,[x,S]=(0,s.useState)(null),[C,w]=(0,s.useState)(null),T;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{S(null),w(null)},t[0]=T):T=t[0];let E=T,D;t[1]===p?D=t[2]:(D=i(`-mx-1 flex gap-1 overflow-x-auto overscroll-x-contain px-1 pb-1`,p),t[1]=p,t[2]=D);let O;t[3]===v?O=t[4]:(O=e=>{if(!v)return;let t=e.relatedTarget;t instanceof Node&&e.currentTarget.contains(t)||w(null)},t[3]=v,t[4]=O);let k;t[5]!==r||t[6]!==n||t[7]!==l?(k=e=>{if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key)||!n.length)return;e.preventDefault();let t=n.findIndex(e=>e.id===r),i=e.key===`Home`?0:e.key===`End`?n.length-1:(Math.max(0,t)+(e.key===`ArrowRight`?1:-1)+n.length)%n.length;l(n[i].id);let a=e.currentTarget.querySelectorAll(`[role="tab"]`)[i];a?.focus(),a?.scrollIntoView({block:`nearest`,inline:`nearest`})},t[5]=r,t[6]=n,t[7]=l,t[8]=k):k=t[8];let A;if(t[9]!==r||t[10]!==m||t[11]!==_||t[12]!==x||t[13]!==C||t[14]!==n||t[15]!==l||t[16]!==v||t[17]!==f||t[18]!==y||t[19]!==d||t[20]!==b){let e;t[22]!==r||t[23]!==m||t[24]!==_||t[25]!==x||t[26]!==C||t[27]!==l||t[28]!==v||t[29]!==f||t[30]!==y||t[31]!==d||t[32]!==b?(e=e=>{let{id:t,icon:n,label:o,count:s,suffix:u,title:p}=e,h=t===r,g=x===t,T=C?.id===t&&C.position===`before`,D=C?.id===t&&C.position===`after`;return(0,c.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":h,tabIndex:h?0:-1,id:d?`${d}-${t}`:void 0,"aria-controls":f?`${f}-${t}`:void 0,"aria-grabbed":v?g:void 0,draggable:!!v,title:p,className:i(`touch-target relative inline-flex shrink-0 items-center gap-1.5 rounded-lg px-3 py-2 text-sm font-medium transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,a.press,h?y:b,v&&`cursor-grab active:cursor-grabbing`,g&&`scale-[0.98] border border-edge bg-surface-active/60 opacity-55 shadow-surface`,(T||D)&&!g&&`bg-surface-hover text-fg`,m),onClick:()=>l(t),onDragStart:e=>{v&&(S(t),w(null),e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`text/plain`,t))},onDragOver:e=>{if(!v||!x)return;if(x===t){w(null);return}e.preventDefault(),e.dataTransfer.dropEffect=`move`;let n=e.currentTarget.getBoundingClientRect(),r=e.clientX<n.left+n.width/2?`before`:`after`;w(e=>e?.id===t&&e.position===r?e:{id:t,position:r})},onDrop:e=>{!v||!x||x===t||(e.preventDefault(),v(x,t,C?.id===t?C.position:`before`),E())},onDragEnd:E,children:[T?(0,c.jsx)(`span`,{className:`pointer-events-none absolute -left-0.5 top-1/2 h-5 w-0.5 -translate-y-1/2 rounded-full bg-accent shadow-[0_0_0_2px_var(--color-surface-panel)]`,"aria-hidden":!0}):null,n?(0,c.jsx)(n,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}):null,(0,c.jsx)(`span`,{children:o}),s==null?null:(0,c.jsx)(`span`,{className:i(`rounded-full bg-surface-hover px-1.5 py-0.5 text-xs tabular-nums text-fg-muted`,_),children:s}),u,D?(0,c.jsx)(`span`,{className:`pointer-events-none absolute -right-0.5 top-1/2 h-5 w-0.5 -translate-y-1/2 rounded-full bg-accent shadow-[0_0_0_2px_var(--color-surface-panel)]`,"aria-hidden":!0}):null]},t)},t[22]=r,t[23]=m,t[24]=_,t[25]=x,t[26]=C,t[27]=l,t[28]=v,t[29]=f,t[30]=y,t[31]=d,t[32]=b,t[33]=e):e=t[33],A=n.map(e),t[9]=r,t[10]=m,t[11]=_,t[12]=x,t[13]=C,t[14]=n,t[15]=l,t[16]=v,t[17]=f,t[18]=y,t[19]=d,t[20]=b,t[21]=A}else A=t[21];let j;return t[34]!==u||t[35]!==D||t[36]!==O||t[37]!==k||t[38]!==A?(j=(0,c.jsx)(`nav`,{"aria-label":u,className:D,role:`tablist`,onDragLeave:O,onKeyDown:k,children:A}),t[34]=u,t[35]=D,t[36]=O,t[37]=k,t[38]=A,t[39]=j):j=t[39],j}export{l as t};
1
+ import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{t as i}from"./cn-JdwAhgNB.js";import{Ns as a}from"./index-Bb32g7Ll.js";var o=n(),s=e(t(),1),c=r();function l(e){let t=(0,o.c)(40),{items:n,activeTab:r,onChange:l,ariaLabel:u,tabIdPrefix:d,panelIdPrefix:f,className:p,buttonClassName:m,selectedClassName:h,unselectedClassName:g,countClassName:_,onReorder:v}=e,y=h===void 0?`bg-surface-active text-fg`:h,b=g===void 0?`text-fg-muted hover:bg-surface-hover hover:text-fg`:g,[x,S]=(0,s.useState)(null),[C,w]=(0,s.useState)(null),T;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{S(null),w(null)},t[0]=T):T=t[0];let E=T,D;t[1]===p?D=t[2]:(D=i(`-mx-1 flex gap-1 overflow-x-auto overscroll-x-contain px-1 pb-1`,p),t[1]=p,t[2]=D);let O;t[3]===v?O=t[4]:(O=e=>{if(!v)return;let t=e.relatedTarget;t instanceof Node&&e.currentTarget.contains(t)||w(null)},t[3]=v,t[4]=O);let k;t[5]!==r||t[6]!==n||t[7]!==l?(k=e=>{if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key)||!n.length)return;e.preventDefault();let t=n.findIndex(e=>e.id===r),i=e.key===`Home`?0:e.key===`End`?n.length-1:(Math.max(0,t)+(e.key===`ArrowRight`?1:-1)+n.length)%n.length;l(n[i].id);let a=e.currentTarget.querySelectorAll(`[role="tab"]`)[i];a?.focus(),a?.scrollIntoView({block:`nearest`,inline:`nearest`})},t[5]=r,t[6]=n,t[7]=l,t[8]=k):k=t[8];let A;if(t[9]!==r||t[10]!==m||t[11]!==_||t[12]!==x||t[13]!==C||t[14]!==n||t[15]!==l||t[16]!==v||t[17]!==f||t[18]!==y||t[19]!==d||t[20]!==b){let e;t[22]!==r||t[23]!==m||t[24]!==_||t[25]!==x||t[26]!==C||t[27]!==l||t[28]!==v||t[29]!==f||t[30]!==y||t[31]!==d||t[32]!==b?(e=e=>{let{id:t,icon:n,label:o,count:s,suffix:u,title:p}=e,h=t===r,g=x===t,T=C?.id===t&&C.position===`before`,D=C?.id===t&&C.position===`after`;return(0,c.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":h,tabIndex:h?0:-1,id:d?`${d}-${t}`:void 0,"aria-controls":f?`${f}-${t}`:void 0,"aria-grabbed":v?g:void 0,draggable:!!v,title:p,className:i(`touch-target relative inline-flex shrink-0 items-center gap-1.5 rounded-lg px-3 py-2 text-sm font-medium transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,a.press,h?y:b,v&&`cursor-grab active:cursor-grabbing`,g&&`scale-[0.98] border border-edge bg-surface-active/60 opacity-55 shadow-surface`,(T||D)&&!g&&`bg-surface-hover text-fg`,m),onClick:()=>l(t),onDragStart:e=>{v&&(S(t),w(null),e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`text/plain`,t))},onDragOver:e=>{if(!v||!x)return;if(x===t){w(null);return}e.preventDefault(),e.dataTransfer.dropEffect=`move`;let n=e.currentTarget.getBoundingClientRect(),r=e.clientX<n.left+n.width/2?`before`:`after`;w(e=>e?.id===t&&e.position===r?e:{id:t,position:r})},onDrop:e=>{!v||!x||x===t||(e.preventDefault(),v(x,t,C?.id===t?C.position:`before`),E())},onDragEnd:E,children:[T?(0,c.jsx)(`span`,{className:`pointer-events-none absolute -left-0.5 top-1/2 h-5 w-0.5 -translate-y-1/2 rounded-full bg-accent shadow-[0_0_0_2px_var(--color-surface-panel)]`,"aria-hidden":!0}):null,n?(0,c.jsx)(n,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}):null,(0,c.jsx)(`span`,{children:o}),s==null?null:(0,c.jsx)(`span`,{className:i(`rounded-full bg-surface-hover px-1.5 py-0.5 text-xs tabular-nums text-fg-muted`,_),children:s}),u,D?(0,c.jsx)(`span`,{className:`pointer-events-none absolute -right-0.5 top-1/2 h-5 w-0.5 -translate-y-1/2 rounded-full bg-accent shadow-[0_0_0_2px_var(--color-surface-panel)]`,"aria-hidden":!0}):null]},t)},t[22]=r,t[23]=m,t[24]=_,t[25]=x,t[26]=C,t[27]=l,t[28]=v,t[29]=f,t[30]=y,t[31]=d,t[32]=b,t[33]=e):e=t[33],A=n.map(e),t[9]=r,t[10]=m,t[11]=_,t[12]=x,t[13]=C,t[14]=n,t[15]=l,t[16]=v,t[17]=f,t[18]=y,t[19]=d,t[20]=b,t[21]=A}else A=t[21];let j;return t[34]!==u||t[35]!==D||t[36]!==O||t[37]!==k||t[38]!==A?(j=(0,c.jsx)(`nav`,{"aria-label":u,className:D,role:`tablist`,onDragLeave:O,onKeyDown:k,children:A}),t[34]=u,t[35]=D,t[36]=O,t[37]=k,t[38]=A,t[39]=j):j=t[39],j}export{l as t};
@@ -1 +1 @@
1
- import{n as e,t}from"./vendor-react-BOUWij0V.js";import{t as n}from"./download-Dk-ZjtO6.js";import{t as r}from"./external-link-DjqjBmc3.js";import{t as i}from"./cn-JdwAhgNB.js";import{n as a}from"./electron-env-Dit0bHgy.js";import{Ns as o}from"./index-oJE8g8BL.js";var s=e(),c=t();function l(e){let t=(0,s.c)(31),{message:l,downloadLabel:u,onDownload:d,openSystemLabel:f,onOpenWithSystemApp:p,chooseAppLabel:m,onChooseOpenWithApp:h,canOpenWithSystemApp:g,canChooseOpenWithApp:_}=e,v=g===void 0?!0:g,y=_===void 0?!0:_,b;t[0]!==v||t[1]!==p||t[2]!==f?(b=a()&&v&&typeof p==`function`&&typeof f==`string`&&f.length>0,t[0]=v,t[1]=p,t[2]=f,t[3]=b):b=t[3];let x=b,S;t[4]!==y||t[5]!==m||t[6]!==h?(S=a()&&y&&typeof h==`function`&&typeof m==`string`&&m.length>0,t[4]=y,t[5]=m,t[6]=h,t[7]=S):S=t[7];let C=S,w;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(w=i(`flex flex-col gap-2 rounded-lg border border-edge-subtle bg-surface-hover/60 p-3 sm:flex-row sm:items-center sm:justify-between dark:border-edge`),t[8]=w):w=t[8];let T;t[9]===l?T=t[10]:(T=(0,c.jsx)(`p`,{className:`min-w-0 text-xs leading-relaxed text-fg-muted`,children:l}),t[9]=l,t[10]=T);let E;t[11]!==p||t[12]!==f||t[13]!==x?(E=x?(0,c.jsxs)(`button`,{type:`button`,className:i(`inline-flex items-center gap-1.5 rounded-md border border-edge bg-surface-panel px-3 py-1.5 text-xs font-medium text-fg shadow-sm dark:border-edge`,o.transition,o.press,o.focusRingPanel),onClick:()=>void p?.(),children:[(0,c.jsx)(r,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),f]}):null,t[11]=p,t[12]=f,t[13]=x,t[14]=E):E=t[14];let D;t[15]!==m||t[16]!==h||t[17]!==C?(D=C?(0,c.jsxs)(`button`,{type:`button`,className:i(`inline-flex items-center gap-1.5 rounded-md border border-edge bg-surface-panel px-3 py-1.5 text-xs font-medium text-fg shadow-sm dark:border-edge`,o.transition,o.press,o.focusRingPanel),onClick:()=>void h?.(),children:[(0,c.jsx)(r,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),m]}):null,t[15]=m,t[16]=h,t[17]=C,t[18]=D):D=t[18];let O;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(O=i(`inline-flex items-center gap-1.5 rounded-md border border-accent bg-accent px-3 py-1.5 text-xs font-medium text-on-accent shadow-sm`,o.transition,o.press,o.focusRingPanel),t[19]=O):O=t[19];let k;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,c.jsx)(n,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[20]=k):k=t[20];let A;t[21]!==u||t[22]!==d?(A=(0,c.jsxs)(`button`,{type:`button`,className:O,onClick:d,children:[k,u]}),t[21]=u,t[22]=d,t[23]=A):A=t[23];let j;t[24]!==A||t[25]!==E||t[26]!==D?(j=(0,c.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2`,children:[E,D,A]}),t[24]=A,t[25]=E,t[26]=D,t[27]=j):j=t[27];let M;return t[28]!==j||t[29]!==T?(M=(0,c.jsxs)(`div`,{className:w,children:[T,j]}),t[28]=j,t[29]=T,t[30]=M):M=t[30],M}export{l as t};
1
+ import{n as e,t}from"./vendor-react-BOUWij0V.js";import{t as n}from"./download-Dk-ZjtO6.js";import{t as r}from"./external-link-DjqjBmc3.js";import{t as i}from"./cn-JdwAhgNB.js";import{n as a}from"./electron-env-Dit0bHgy.js";import{Ns as o}from"./index-Bb32g7Ll.js";var s=e(),c=t();function l(e){let t=(0,s.c)(31),{message:l,downloadLabel:u,onDownload:d,openSystemLabel:f,onOpenWithSystemApp:p,chooseAppLabel:m,onChooseOpenWithApp:h,canOpenWithSystemApp:g,canChooseOpenWithApp:_}=e,v=g===void 0?!0:g,y=_===void 0?!0:_,b;t[0]!==v||t[1]!==p||t[2]!==f?(b=a()&&v&&typeof p==`function`&&typeof f==`string`&&f.length>0,t[0]=v,t[1]=p,t[2]=f,t[3]=b):b=t[3];let x=b,S;t[4]!==y||t[5]!==m||t[6]!==h?(S=a()&&y&&typeof h==`function`&&typeof m==`string`&&m.length>0,t[4]=y,t[5]=m,t[6]=h,t[7]=S):S=t[7];let C=S,w;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(w=i(`flex flex-col gap-2 rounded-lg border border-edge-subtle bg-surface-hover/60 p-3 sm:flex-row sm:items-center sm:justify-between dark:border-edge`),t[8]=w):w=t[8];let T;t[9]===l?T=t[10]:(T=(0,c.jsx)(`p`,{className:`min-w-0 text-xs leading-relaxed text-fg-muted`,children:l}),t[9]=l,t[10]=T);let E;t[11]!==p||t[12]!==f||t[13]!==x?(E=x?(0,c.jsxs)(`button`,{type:`button`,className:i(`inline-flex items-center gap-1.5 rounded-md border border-edge bg-surface-panel px-3 py-1.5 text-xs font-medium text-fg shadow-sm dark:border-edge`,o.transition,o.press,o.focusRingPanel),onClick:()=>void p?.(),children:[(0,c.jsx)(r,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),f]}):null,t[11]=p,t[12]=f,t[13]=x,t[14]=E):E=t[14];let D;t[15]!==m||t[16]!==h||t[17]!==C?(D=C?(0,c.jsxs)(`button`,{type:`button`,className:i(`inline-flex items-center gap-1.5 rounded-md border border-edge bg-surface-panel px-3 py-1.5 text-xs font-medium text-fg shadow-sm dark:border-edge`,o.transition,o.press,o.focusRingPanel),onClick:()=>void h?.(),children:[(0,c.jsx)(r,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),m]}):null,t[15]=m,t[16]=h,t[17]=C,t[18]=D):D=t[18];let O;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(O=i(`inline-flex items-center gap-1.5 rounded-md border border-accent bg-accent px-3 py-1.5 text-xs font-medium text-on-accent shadow-sm`,o.transition,o.press,o.focusRingPanel),t[19]=O):O=t[19];let k;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,c.jsx)(n,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),t[20]=k):k=t[20];let A;t[21]!==u||t[22]!==d?(A=(0,c.jsxs)(`button`,{type:`button`,className:O,onClick:d,children:[k,u]}),t[21]=u,t[22]=d,t[23]=A):A=t[23];let j;t[24]!==A||t[25]!==E||t[26]!==D?(j=(0,c.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2`,children:[E,D,A]}),t[24]=A,t[25]=E,t[26]=D,t[27]=j):j=t[27];let M;return t[28]!==j||t[29]!==T?(M=(0,c.jsxs)(`div`,{className:w,children:[T,j]}),t[28]=j,t[29]=T,t[30]=M):M=t[30],M}export{l as t};
@@ -1 +1 @@
1
- import{n as e,t}from"./vendor-react-BOUWij0V.js";import{r as n,t as r,u as i}from"./chunk-KS7C4IRE-BMYIfy9x.js";import{n as a}from"./locale-store-K7mHrs6W.js";import{a as o,r as s}from"./product-delivery-BAks11S4.js";import{i as c}from"./vendor-swr-BIWyz7Rc.js";import{t as l}from"./skeleton-BwbyijEw.js";import{wr as u}from"./index-oJE8g8BL.js";var d=e();function f(e){return e.installationState===`installed`&&e.enabled&&e.status===`installed`?`/extensions/${encodeURIComponent(e.extensionId)}`:`/local-apps/${encodeURIComponent(e.id)}`}var p=t();function m(){let e=(0,d.c)(14),t=i(),r=a(h)===`zh`,m=s(`xopc://open${t.search}`),_=m?.kind===`local_app`?m.id:null,{data:v,error:y}=c(_?[`local-app-open`,_]:null,()=>u(_));if(!m){let t=r?`这个打开链接无效。`:`This open link is invalid.`,n;return e[0]!==t||e[1]!==r?(n=(0,p.jsx)(g,{message:t,zh:r}),e[0]=t,e[1]=r,e[2]=n):n=e[2],n}if(m.kind!==`local_app`){let t=o({...m,title:m.id,capabilities:[`open`]}),i;return e[3]!==t||e[4]!==r?(i=t?(0,p.jsx)(n,{to:t,replace:!0}):(0,p.jsx)(g,{message:r?`这个内容无法在应用中打开。`:`This content cannot be opened in the app.`,zh:r}),e[3]=t,e[4]=r,e[5]=i):i=e[5],i}if(y){let t=typeof y==`object`&&y&&`status`in y&&y.status===404?r?`找不到这个应用,它可能已被删除。`:`This app was not found and may have been deleted.`:y instanceof Error?y.message:r?`无法打开这个应用。`:`Unable to open this app.`,n;return e[6]!==t||e[7]!==r?(n=(0,p.jsx)(g,{message:t,zh:r}),e[6]=t,e[7]=r,e[8]=n):n=e[8],n}if(v){let t;e[9]===v?t=e[10]:(t=f(v),e[9]=v,e[10]=t);let r;return e[11]===t?r=e[12]:(r=(0,p.jsx)(n,{to:t,replace:!0}),e[11]=t,e[12]=r),r}let b;return e[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,p.jsxs)(`div`,{className:`flex w-full flex-col gap-4 px-3 py-6 sm:px-5 xl:px-6`,"aria-busy":!0,children:[(0,p.jsx)(l,{className:`h-6 w-48`}),(0,p.jsx)(l,{className:`h-32 rounded-xl`})]}),e[13]=b):b=e[13],b}function h(e){return e.language}function g(e){let t=(0,d.c)(7),{message:n,zh:i}=e,a;t[0]===n?a=t[1]:(a=(0,p.jsx)(`p`,{children:n}),t[0]=n,t[1]=a);let o=i?`查看应用`:`View apps`,s;t[2]===o?s=t[3]:(s=(0,p.jsx)(r,{className:`mt-3 inline-flex font-medium text-accent hover:underline`,to:`/local-apps`,children:o}),t[2]=o,t[3]=s);let c;return t[4]!==a||t[5]!==s?(c=(0,p.jsxs)(`div`,{className:`m-6 rounded-xl border border-danger/30 bg-danger-soft p-4 text-sm text-danger`,role:`alert`,children:[a,s]}),t[4]=a,t[5]=s,t[6]=c):c=t[6],c}export{m as ProductOpenPage};
1
+ import{n as e,t}from"./vendor-react-BOUWij0V.js";import{r as n,t as r,u as i}from"./chunk-KS7C4IRE-BMYIfy9x.js";import{n as a}from"./locale-store-WMaCMm3_.js";import{a as o,r as s}from"./product-delivery-BAks11S4.js";import{i as c}from"./vendor-swr-BIWyz7Rc.js";import{t as l}from"./skeleton-BwbyijEw.js";import{wr as u}from"./index-Bb32g7Ll.js";var d=e();function f(e){return e.installationState===`installed`&&e.enabled&&e.status===`installed`?`/extensions/${encodeURIComponent(e.extensionId)}`:`/local-apps/${encodeURIComponent(e.id)}`}var p=t();function m(){let e=(0,d.c)(14),t=i(),r=a(h)===`zh`,m=s(`xopc://open${t.search}`),_=m?.kind===`local_app`?m.id:null,{data:v,error:y}=c(_?[`local-app-open`,_]:null,()=>u(_));if(!m){let t=r?`这个打开链接无效。`:`This open link is invalid.`,n;return e[0]!==t||e[1]!==r?(n=(0,p.jsx)(g,{message:t,zh:r}),e[0]=t,e[1]=r,e[2]=n):n=e[2],n}if(m.kind!==`local_app`){let t=o({...m,title:m.id,capabilities:[`open`]}),i;return e[3]!==t||e[4]!==r?(i=t?(0,p.jsx)(n,{to:t,replace:!0}):(0,p.jsx)(g,{message:r?`这个内容无法在应用中打开。`:`This content cannot be opened in the app.`,zh:r}),e[3]=t,e[4]=r,e[5]=i):i=e[5],i}if(y){let t=typeof y==`object`&&y&&`status`in y&&y.status===404?r?`找不到这个应用,它可能已被删除。`:`This app was not found and may have been deleted.`:y instanceof Error?y.message:r?`无法打开这个应用。`:`Unable to open this app.`,n;return e[6]!==t||e[7]!==r?(n=(0,p.jsx)(g,{message:t,zh:r}),e[6]=t,e[7]=r,e[8]=n):n=e[8],n}if(v){let t;e[9]===v?t=e[10]:(t=f(v),e[9]=v,e[10]=t);let r;return e[11]===t?r=e[12]:(r=(0,p.jsx)(n,{to:t,replace:!0}),e[11]=t,e[12]=r),r}let b;return e[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,p.jsxs)(`div`,{className:`flex w-full flex-col gap-4 px-3 py-6 sm:px-5 xl:px-6`,"aria-busy":!0,children:[(0,p.jsx)(l,{className:`h-6 w-48`}),(0,p.jsx)(l,{className:`h-32 rounded-xl`})]}),e[13]=b):b=e[13],b}function h(e){return e.language}function g(e){let t=(0,d.c)(7),{message:n,zh:i}=e,a;t[0]===n?a=t[1]:(a=(0,p.jsx)(`p`,{children:n}),t[0]=n,t[1]=a);let o=i?`查看应用`:`View apps`,s;t[2]===o?s=t[3]:(s=(0,p.jsx)(r,{className:`mt-3 inline-flex font-medium text-accent hover:underline`,to:`/local-apps`,children:o}),t[2]=o,t[3]=s);let c;return t[4]!==a||t[5]!==s?(c=(0,p.jsxs)(`div`,{className:`m-6 rounded-xl border border-danger/30 bg-danger-soft p-4 text-sm text-danger`,role:`alert`,children:[a,s]}),t[4]=a,t[5]=s,t[6]=c):c=t[6],c}export{m as ProductOpenPage};