@acedatacloud/nexior 3.277.1 → 3.277.2

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 (168) hide show
  1. package/dist/assets/{ApiCodeButton-8YzSdLWx.js → ApiCodeButton-_F8VGfz6.js} +1 -1
  2. package/dist/assets/{AskUserQuestionCard-nsK22sY7.js → AskUserQuestionCard-C-rgZ50J.js} +1 -1
  3. package/dist/assets/{Auth-DRhrQZY6.js → Auth-D0HnMvmY.js} +1 -1
  4. package/dist/assets/{Bare-Do_HisxP.js → Bare-COkwusIM.js} +1 -1
  5. package/dist/assets/{BotPlaceholder-CGjSVeUk.js → BotPlaceholder-CsbmSleA.js} +1 -1
  6. package/dist/assets/{BottomFooter-DMl3rPpW.js → BottomFooter-DMpMmqr4.js} +1 -1
  7. package/dist/assets/{Callback-Bz6GSuWa.js → Callback-Cllgoj6s.js} +1 -1
  8. package/dist/assets/{Console-DxlcFHl3.js → Console-C5hCQvvI.js} +1 -1
  9. package/dist/assets/{Consumption-BKLhsHgd.js → Consumption-sOdFzyTj.js} +1 -1
  10. package/dist/assets/{Conversation-BpUlvLwg.js → Conversation-D1MyUAvd.js} +2 -2
  11. package/dist/assets/{CopyToClipboard-Cx0LOUlj.js → CopyToClipboard-BWst2iVb.js} +1 -1
  12. package/dist/assets/{Detail-6xMgONUm.js → Detail-B0UTP8zE.js} +2 -2
  13. package/dist/assets/{Extra-CIY6q676.js → Extra-BpK_QuV5.js} +1 -1
  14. package/dist/assets/{FilePreview-DWn7VaIk.js → FilePreview-DxBIesog.js} +1 -1
  15. package/dist/assets/{Hailuo-jTsANDKz.js → Hailuo-Vq487_jN.js} +1 -1
  16. package/dist/assets/{History-UPQKY9mv.js → History-PzaVn0Qb.js} +1 -1
  17. package/dist/assets/{ImagePreview--SDvXZzb.js → ImagePreview-BONFD01I.js} +1 -1
  18. package/dist/assets/{ImageWrapper-CmewVMkV.js → ImageWrapper-DG9AFRn0.js} +1 -1
  19. package/dist/assets/{Index-Kc3Za46A.js → Index-B4gwMLQA.js} +1 -1
  20. package/dist/assets/Index-BC5RavEk.js +1 -0
  21. package/dist/assets/{Index-CWxWbL0g.js → Index-BH3zKDxE.js} +1 -1
  22. package/dist/assets/{Index-Dl1PE0QP.js → Index-BPP9LFNQ.js} +1 -1
  23. package/dist/assets/Index-BS8xKJbS.js +1 -0
  24. package/dist/assets/{Index-BXoTzH0F.js → Index-BSmwFdf3.js} +1 -1
  25. package/dist/assets/{Index-DYTm-GNN.js → Index-BYd_1Igk.js} +1 -1
  26. package/dist/assets/{Index-D8jnHygv.js → Index-BZd9sGXt.js} +1 -1
  27. package/dist/assets/{Index-BWdPzjh-.js → Index-BbQZOOMp.js} +1 -1
  28. package/dist/assets/{Index-baEFKopZ.js → Index-BclEWzuC.js} +1 -1
  29. package/dist/assets/{Index-84gbjpna.js → Index-Bgw66bG_.js} +1 -1
  30. package/dist/assets/{Index-9AGlB_au.js → Index-Bi4jTDTC.js} +1 -1
  31. package/dist/assets/{Index-DpYR6Sfv.js → Index-BnbPU1_5.js} +1 -1
  32. package/dist/assets/Index-C2AVojml.js +1 -0
  33. package/dist/assets/{Index-D1RdgHa_.js → Index-CMhi_OcN.js} +1 -1
  34. package/dist/assets/{Index-CVj4rTjm.js → Index-CTEt5y7l.js} +1 -1
  35. package/dist/assets/Index-Cq4bH0VX.js +1 -0
  36. package/dist/assets/{Index-CjNu4deI.js → Index-D82sk4fu.js} +1 -1
  37. package/dist/assets/Index-DTbtiksg.js +1 -0
  38. package/dist/assets/{Index-D9PJAquY.js → Index-DcZ5T2r-.js} +1 -1
  39. package/dist/assets/{Index-BKGx51e-.css → Index-Dv6QH5PC.css} +1 -1
  40. package/dist/assets/{Index-VxHVQlHG.js → Index-cKvDEGwi.js} +1 -1
  41. package/dist/assets/{Index-CVus44dD.js → Index-jUy6hwT5.js} +1 -1
  42. package/dist/assets/{Index-B-vaWx5A.js → Index-lZYFamZu.js} +1 -1
  43. package/dist/assets/Index-sMX_ReQd.js +1 -0
  44. package/dist/assets/{Index-BQ7z8P36.js → Index-vue5_YrA.js} +1 -1
  45. package/dist/assets/{Index-BXIF-RWG.js → Index-z7f9IBf3.js} +1 -1
  46. package/dist/assets/{Invitees-CV1hT6qL.js → Invitees-DLafR3-P.js} +1 -1
  47. package/dist/assets/{List-D9AJjFfi.js → List-6RiG5ZM_.js} +1 -1
  48. package/dist/assets/{List-BvYbsGMZ.js → List-DAHZF49n.js} +1 -1
  49. package/dist/assets/{List-Norajyml.js → List-DFYZobGA.js} +1 -1
  50. package/dist/assets/{Main-GI82KBnh.js → Main-B3Nil7ov.js} +1 -1
  51. package/dist/assets/{Model-16AzQ58m.js → Model-BOm-GsCG.js} +1 -1
  52. package/dist/assets/{Navigator-D8Wzqu62.js → Navigator-Jxq0iAHr.js} +2 -2
  53. package/dist/assets/{NoTasks-l_P0QgKI.js → NoTasks-DFKN-WpO.js} +1 -1
  54. package/dist/assets/{NotFound-DRMuoYVd.js → NotFound-CnH4FiVv.js} +1 -1
  55. package/dist/assets/{Pagination-DqEvDqEC.js → Pagination-D-Qrewom.js} +1 -1
  56. package/dist/assets/{Pay-Co29OpCU.js → Pay-2FI1nMLX.js} +1 -1
  57. package/dist/assets/{Player-BiUwM2kG.js → Player-DEzAfNr3.js} +1 -1
  58. package/dist/assets/{Seedance-CN0ZvcFv.js → Seedance-DcogSBwZ.js} +1 -1
  59. package/dist/assets/{Status-BEFWDnq9.js → Status-mQt-bcni.js} +1 -1
  60. package/dist/assets/{Subscribe-DFAR5MgJ.js → Subscribe-BFZrNxkZ.js} +1 -1
  61. package/dist/assets/{TabSwitcher-CG60fKzQ.js → TabSwitcher-DnOx9vbA.js} +1 -1
  62. package/dist/assets/{Tts-CKyvoPlt.js → Tts-CGJWvjIh.js} +1 -1
  63. package/dist/assets/{VideoPlayer-BtXLkAAR.js → VideoPlayer-BsOg3z0K.js} +1 -1
  64. package/dist/assets/{avatar-lihDYhEX.js → avatar-eI_WspJB.js} +1 -1
  65. package/dist/assets/{basic-DIGC5On1.js → basic-Cy1YlYE1.js} +1 -1
  66. package/dist/assets/{chat-Cvd9rsSR.js → chat-Cd7LGowG.js} +1 -1
  67. package/dist/assets/codingBridge--XigVvyR.js +1 -0
  68. package/dist/assets/codingBridge-B-gY1N1A.js +1 -0
  69. package/dist/assets/codingBridge-B6CatBrM.js +1 -0
  70. package/dist/assets/codingBridge-B9OgVVtV.js +2 -0
  71. package/dist/assets/codingBridge-BPDUyHBH.js +1 -0
  72. package/dist/assets/codingBridge-Bvgssc71.js +1 -0
  73. package/dist/assets/codingBridge-CAhONS09.js +1 -0
  74. package/dist/assets/codingBridge-CkaxOr4j.js +1 -0
  75. package/dist/assets/codingBridge-CvB_AifV.js +1 -0
  76. package/dist/assets/codingBridge-D1WDrcmr.js +1 -0
  77. package/dist/assets/codingBridge-DAK6VumY.js +1 -0
  78. package/dist/assets/codingBridge-DI54WF2v.js +1 -0
  79. package/dist/assets/codingBridge-DMGrbAaR.js +1 -0
  80. package/dist/assets/codingBridge-DnLwm8Vn.js +1 -0
  81. package/dist/assets/codingBridge-GHfcAtW8.js +1 -0
  82. package/dist/assets/codingBridge-Oiwx8S44.js +1 -0
  83. package/dist/assets/codingBridge-iRMNlW_S.js +1 -0
  84. package/dist/assets/codingBridge-id8MUjk3.js +1 -0
  85. package/dist/assets/codingBridge-mfpuGC6b.js +1 -0
  86. package/dist/assets/{codingBridgeNotify-wulcISIB.js → codingBridgeNotify-BgO1-q2c.js} +2 -2
  87. package/dist/assets/{collapse-Dmu2GYt3.js → collapse-BF3bD3JQ.js} +1 -1
  88. package/dist/assets/{constants-C-bSXdJ_.js → constants-BVtW3DRs.js} +1 -1
  89. package/dist/assets/{createTaskActions-BlusFyDF.js → createTaskActions-CJFLOWRL.js} +1 -1
  90. package/dist/assets/{date-picker-BQ3bLfrE.js → date-picker-CQUJSKmg.js} +1 -1
  91. package/dist/assets/{dropdown-vKgqHRPn.js → dropdown-CmHI22Qk.js} +1 -1
  92. package/dist/assets/{esm-D5CKhKE5.js → esm-9Hz_oU09.js} +1 -1
  93. package/dist/assets/{esm-BkObZSGP.js → esm-B8UUARCy.js} +1 -1
  94. package/dist/assets/esm-BqhS-60O.js +1 -0
  95. package/dist/assets/{esm-18YwGFrg.js → esm-CAmisYjo.js} +2 -2
  96. package/dist/assets/{esm-p68kwW3W.js → esm-D7t-y-u1.js} +1 -1
  97. package/dist/assets/{esm-CIr9avGQ.js → esm-DMJZShgQ.js} +3 -3
  98. package/dist/assets/{esm-DSkRMMbX.js → esm-DngzeHVk.js} +2 -2
  99. package/dist/assets/{fish-BKtKfVFt.js → fish-DwUn-O3u.js} +1 -1
  100. package/dist/assets/{flux-BHptuJew.js → flux-Z9gWtdb-.js} +1 -1
  101. package/dist/assets/{grokvideo-BNmqrx7a.js → grokvideo-DeheY06v.js} +1 -1
  102. package/dist/assets/{hailuo-BL3cUsU4.js → hailuo-CxOeW5h-.js} +1 -1
  103. package/dist/assets/{headshots-ZghebsTv.js → headshots-DFzZRzeH.js} +1 -1
  104. package/dist/assets/{image-CWcemTUB.js → image-C6NwfMIr.js} +1 -1
  105. package/dist/assets/{index-BmC-XXKj.js → index-B2cLm6qN.js} +5 -5
  106. package/dist/assets/{index.browser.esm-BJm1NApd.js → index.browser.esm-Xp9wSEpI.js} +1 -1
  107. package/dist/assets/{index.es-Cawr8qgY.js → index.es-CtAdUuvy.js} +1 -1
  108. package/dist/assets/{input-number-lf5l-6Rs.js → input-number-CGajKQ5c.js} +1 -1
  109. package/dist/assets/{kling-C0V46HIX.js → kling-DmQ_HZxb.js} +1 -1
  110. package/dist/assets/{luma-Dt5EUxmk.js → luma--3nfPKkw.js} +1 -1
  111. package/dist/assets/{midjourney-UrHtOXuT.js → midjourney-BbyZ5iSG.js} +1 -1
  112. package/dist/assets/{nanobanana-ByYhUkA2.js → nanobanana-B4zl7XWD.js} +1 -1
  113. package/dist/assets/{openaiimage-IYFXzFLb.js → openaiimage-BYU8bU-f.js} +1 -1
  114. package/dist/assets/{pagination-B3P0PVH-.js → pagination-lmE1fJNh.js} +1 -1
  115. package/dist/assets/{pika-BE0KyZge.js → pika-DnH_-ozE.js} +1 -1
  116. package/dist/assets/{pixverse-DQSwTd9O.js → pixverse-B2M8mGrc.js} +1 -1
  117. package/dist/assets/{popover-pb4ZQ5wn.js → popover-CE7suPFv.js} +1 -1
  118. package/dist/assets/{producer-Dz1qOUNB.js → producer-Z11VfxX7.js} +1 -1
  119. package/dist/assets/{qrart-av7RaoP2.js → qrart-BZb2-4I8.js} +1 -1
  120. package/dist/assets/{row-DvxqZ877.js → row-CPUbrqBF.js} +1 -1
  121. package/dist/assets/{seedance-C-h-m6TK.js → seedance-bPnnoS8W.js} +1 -1
  122. package/dist/assets/{seedream-Bx7Kn4Rp.js → seedream-CohGukzG.js} +1 -1
  123. package/dist/assets/{select-BITgEgfP.js → select-DAa8odbM.js} +1 -1
  124. package/dist/assets/{serp-DzqNeSdI.js → serp-wL6frSWn.js} +1 -1
  125. package/dist/assets/{slider-EtRPxD2X.js → slider-Cm1_uMMy.js} +1 -1
  126. package/dist/assets/{solana-wallets-BY2b12bw.js → solana-wallets-7rbqiX2h.js} +2 -2
  127. package/dist/assets/{solana-wallets-vue-BhLdYmVf.js → solana-wallets-vue-DXB0bcIf.js} +1 -1
  128. package/dist/assets/{sora-NiHaB36E.js → sora-D7Hs_5OF.js} +1 -1
  129. package/dist/assets/{suno-Dag49Y0o.js → suno-CNnBIzRH.js} +1 -1
  130. package/dist/assets/{switch-DyO-foN-.js → switch-OayEB1u5.js} +1 -1
  131. package/dist/assets/{tabs-UUQ9uIYf.js → tabs-CczvvHUm.js} +1 -1
  132. package/dist/assets/{upload-DMzqzxP6.js → upload-C1A-s7Yk.js} +1 -1
  133. package/dist/assets/{veo-Bz9pEUS3.js → veo-C_9ZZPgC.js} +1 -1
  134. package/dist/assets/{wan-CVRGdpoR.js → wan-CzgADhR-.js} +1 -1
  135. package/dist/assets/{web-BxKaidPB.js → web-3p8KfgK2.js} +1 -1
  136. package/dist/assets/{web-CGDzHxq4.js → web-BGojYlRE.js} +1 -1
  137. package/dist/assets/{web-NdOMHV9T.js → web-BnS1ZvGW.js} +1 -1
  138. package/dist/assets/{web-D1b4Pjox.js → web-Bo0J-aov.js} +1 -1
  139. package/dist/assets/{web-Cg3QDtE3.js → web-CCI8ummo.js} +1 -1
  140. package/dist/assets/{webextrator-mxX-6NeJ.js → webextrator-DmkTce7c.js} +1 -1
  141. package/dist/index.html +2 -2
  142. package/package.json +1 -1
  143. package/dist/assets/Index-B237u6Yw.js +0 -1
  144. package/dist/assets/Index-B5u3ksH1.js +0 -1
  145. package/dist/assets/Index-CGV0FjKt.js +0 -1
  146. package/dist/assets/Index-DM6Sq_kC.js +0 -1
  147. package/dist/assets/Index-DUYu1oUt.js +0 -1
  148. package/dist/assets/Index-puKo85vG.js +0 -1
  149. package/dist/assets/codingBridge-BEZBg9aj.js +0 -2
  150. package/dist/assets/codingBridge-BOKZvzSi.js +0 -1
  151. package/dist/assets/codingBridge-B_ZfiwlU.js +0 -1
  152. package/dist/assets/codingBridge-Bg53yIXw.js +0 -1
  153. package/dist/assets/codingBridge-BgJbsOHM.js +0 -1
  154. package/dist/assets/codingBridge-BkDjF5Ns.js +0 -1
  155. package/dist/assets/codingBridge-Bm8DWmf4.js +0 -1
  156. package/dist/assets/codingBridge-BnNjcRhg.js +0 -1
  157. package/dist/assets/codingBridge-BnSFqQJW.js +0 -1
  158. package/dist/assets/codingBridge-CNpJGY82.js +0 -1
  159. package/dist/assets/codingBridge-CbvBbNGy.js +0 -1
  160. package/dist/assets/codingBridge-Cbxpepos.js +0 -1
  161. package/dist/assets/codingBridge-Cpv9wMie.js +0 -1
  162. package/dist/assets/codingBridge-DTtVgNM1.js +0 -1
  163. package/dist/assets/codingBridge-DtUA-XtN.js +0 -1
  164. package/dist/assets/codingBridge-DzR2XuP9.js +0 -1
  165. package/dist/assets/codingBridge-GTx3ljIK.js +0 -1
  166. package/dist/assets/codingBridge-bZYyn5Y8.js +0 -1
  167. package/dist/assets/codingBridge-hzIb9rsQ.js +0 -1
  168. package/dist/assets/esm-CdevuNOa.js +0 -1
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{Bt as e,D as t,E as n,Ht as r,M as i,N as a,O as o,P as s,Q as c,Ut as l,X as u,et as d,k as f,lt as p,x as m,y as h}from"./vendor-chart-mdwpew_o.js";import{t as g}from"./button-DWzbdjZV.js";import{r as _,t as v}from"./select-BITgEgfP.js";import{t as y}from"./upload-DMzqzxP6.js";import{t as b}from"./tooltip-C3PYfh8V.js";import{t as x}from"./image-CWcemTUB.js";import{t as S}from"./alert-BJj7gY4q.js";import{t as C}from"./input-number-lf5l-6Rs.js";import{t as w}from"./switch-DyO-foN-.js";import{Bt as T,Ft as E,Gt as D,Ht as O,It as ee,Kt as k,Lt as A,Mt as j,Nt as M,Ot as te,Pt as ne,Rt as re,Ut as ie,Vt as ae,Wt as oe,Xt as se,Yt as ce,Zt as N,jt as le,kt as P,pi as F,qt as I,zt as L}from"./constants-C-bSXdJ_.js";import{At as R,E as z,Fn as B,Nt as V,Ot as H,Qt as U,Sr as W,jt as G,kr as K,kt as q,yr as J}from"./index-BmC-XXKj.js";import{t as Y}from"./index.es-Cawr8qgY.js";import{t as ue}from"./CopyToClipboard-Cx0LOUlj.js";import{t as X}from"./ImagePreview--SDvXZzb.js";import{t as de}from"./BotPlaceholder-CGjSVeUk.js";import{i as Z,n as fe,t as pe}from"./pagination-B3P0PVH-.js";import{n as me,t as he}from"./NoTasks-l_P0QgKI.js";import{t as ge}from"./Consumption-BKLhsHgd.js";import{t as _e}from"./ApiCodeButton-8YzSdLWx.js";import{t as ve}from"./ImageWrapper-CmewVMkV.js";import{t as ye}from"./Seedance-CN0ZvcFv.js";import{t as be}from"./VideoPlayer-BtXLkAAR.js";var xe=s({name:`SeedancePromptInput`,components:{PromptTextarea:me},computed:{prompt:{get(){return this.$store.state.seedance?.config?.prompt},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,prompt:e})}}},mounted(){this.prompt||=``}});function Se(e,n,r,i,a,o){let s=d(`prompt-textarea`);return u(),t(s,{modelValue:e.prompt,"onUpdate:modelValue":n[0]||=t=>e.prompt=t,title:e.$t(`seedance.name.prompt`),info:e.$t(`seedance.description.prompt`),placeholder:e.$t(`seedance.placeholder.prompt`),"min-rows":5},null,8,[`modelValue`,`title`,`info`,`placeholder`])}var Ce=z(xe,[[`render`,Se]]),we=s({name:`SeedanceModelSelector`,components:{ElSelect:_,ElOption:v,InfoIcon:Z},data(){return{options:[{value:re,label:this.$t(`seedance.model.seedance20`)},{value:L,label:this.$t(`seedance.model.seedance20Fast`)},{value:A,label:this.$t(`seedance.model.seedance15pro`)},{value:E,label:this.$t(`seedance.model.seedance10pro`)},{value:ee,label:this.$t(`seedance.model.seedance10proFast`)},{value:ne,label:this.$t(`seedance.model.seedance10liteT2v`)},{value:M,label:this.$t(`seedance.model.seedance10liteI2v`)}]}},computed:{value:{get(){return this.$store.state.seedance?.config?.model},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,model:e})}}},mounted(){this.value||=te}}),Te={class:`field`},Ee={class:`label`},De={class:`box`},Oe={class:`title font-bold`};function ke(e,r,i,o,s,h){let g=d(`info-icon`),_=d(`el-option`),v=d(`el-select`);return u(),f(`div`,Te,[n(`div`,Ee,[n(`div`,De,[n(`h2`,Oe,l(e.$t(`seedance.name.model`)),1),a(g,{content:e.$t(`seedance.description.model`),class:`info`},null,8,[`content`])])]),a(v,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`seedance.placeholder.select`)},{default:p(()=>[(u(!0),f(m,null,c(e.options,e=>(u(),t(_,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Ae=z(we,[[`render`,ke],[`__scopeId`,`data-v-61816a81`]]),je=s({name:`SeedanceDurationSelector`,components:{ElSelect:_,ElOption:v,InfoIcon:Z},data(){return{options:[{value:2,label:`2s`},{value:3,label:`3s`},{value:4,label:`4s`},{value:5,label:`5s`},{value:6,label:`6s`},{value:7,label:`7s`},{value:8,label:`8s`},{value:9,label:`9s`},{value:10,label:`10s`},{value:11,label:`11s`},{value:12,label:`12s`}]}},computed:{value:{get(){return this.$store.state.seedance?.config?.duration},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,duration:e})}}},mounted(){this.value||=5}}),Me={class:`field`},Ne={class:`label`},Pe={class:`box`},Fe={class:`title font-bold`};function Ie(e,r,i,o,s,h){let g=d(`info-icon`),_=d(`el-option`),v=d(`el-select`);return u(),f(`div`,Me,[n(`div`,Ne,[n(`div`,Pe,[n(`h2`,Fe,l(e.$t(`seedance.name.duration`)),1),a(g,{content:e.$t(`seedance.description.duration`),class:`info`},null,8,[`content`])])]),a(v,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`seedance.placeholder.select`)},{default:p(()=>[(u(!0),f(m,null,c(e.options,e=>(u(),t(_,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Le=z(je,[[`render`,Ie],[`__scopeId`,`data-v-5c809a72`]]),Re=I,Q={[k]:0,[I]:1,[D]:2},ze=s({name:`SeedanceResolutionSelector`,components:{InfoIcon:Z,ElTooltip:b},computed:{model(){return this.$store.state.seedance?.config?.model},capability(){return N(this.model)},isLiteModel(){return typeof this.model==`string`&&this.model.includes(`-lite-`)},options(){let e=[{value:k,label:`480p`},{value:I,label:`720p`},{value:D,label:`1080p`}],t=this.isLiteModel;return e.map(e=>({...e,disabled:t&&Q[e.value]>Q[Re]}))},value:{get(){return this.$store.state.seedance?.config?.resolution},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,resolution:e})}}},watch:{model(){this.clampValue()}},mounted(){this.value?this.clampValue():this.value=this.capability.defaultResolution||`720p`},methods:{onSelect(e){e.disabled||(this.value=e.value)},clampValue(){let e=this.value,t=this.options.find(t=>t.value===e);(!e||t&&t.disabled)&&(this.value=this.capability.defaultResolution||`720p`)}}}),Be={class:`resolution`},Ve={class:`header`},He={class:`title font-bold`},Ue={class:`items`},We=[`onClick`];function Ge(r,i,o,s,h,g){let _=d(`info-icon`),v=d(`el-tooltip`);return u(),f(`div`,Be,[n(`div`,Ve,[n(`h2`,He,l(r.$t(`seedance.name.resolution`)),1),a(_,{content:r.$t(`seedance.description.resolution`),class:`info`},null,8,[`content`])]),n(`div`,Ue,[(u(!0),f(m,null,c(r.options,i=>(u(),t(v,{key:i.value,content:r.$t(`seedance.message.resolutionNotSupported`),disabled:!i.disabled,placement:`top`},{default:p(()=>[n(`div`,{class:e([`item`,{active:r.value===i.value,disabled:i.disabled}]),onClick:e=>r.onSelect(i)},l(i.label),11,We)]),_:2},1032,[`content`,`disabled`]))),128))])])}var Ke=z(ze,[[`render`,Ge],[`__scopeId`,`data-v-fd8d4e4b`]]),qe=s({name:`SeedanceRatioSelector`,components:{InfoIcon:Z},computed:{options(){return[{value:ae,label:`16:9`,w:32,h:18},{value:ie,label:`9:16`,w:18,h:32},{value:`4:3`,label:`4:3`,w:28,h:21},{value:`3:4`,label:`3:4`,w:21,h:28},{value:`1:1`,label:`1:1`,w:24,h:24},{value:O,label:`21:9`,w:34,h:14},{value:oe,label:this.$t(`seedance.ratio.adaptive`),w:0,h:0}]},value:{get(){return this.$store.state.seedance?.config?.ratio},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,ratio:e})}}},mounted(){this.value||=P}}),Je={class:`ratio`},Ye={class:`header`},Xe={class:`title font-bold`},Ze={class:`items`},Qe=[`onClick`],$e={class:`preview`},et={key:1,class:`rect rect-auto`},tt={class:`name`};function nt(t,i,o,s,p,h){let g=d(`info-icon`);return u(),f(`div`,Je,[n(`div`,Ye,[n(`h2`,Xe,l(t.$t(`seedance.name.ratio`)),1),a(g,{content:t.$t(`seedance.description.ratio`),class:`info`},null,8,[`content`])]),n(`div`,Ze,[(u(!0),f(m,null,c(t.options,i=>(u(),f(`div`,{key:i.value,class:e([`item`,{active:t.value===i.value}]),onClick:e=>t.value=i.value},[n(`div`,$e,[i.w&&i.h?(u(),f(`div`,{key:0,class:`rect`,style:r({width:i.w+`px`,height:i.h+`px`})},null,4)):(u(),f(`div`,et,`A`))]),n(`div`,tt,l(i.label),1)],10,Qe))),128))])])}var rt=z(qe,[[`render`,nt],[`__scopeId`,`data-v-8ddec2dd`]]),it=s({name:`SeedanceGenerateAudioSwitch`,components:{ElSwitch:w,InfoIcon:Z},computed:{isSupported(){let e=this.$store.state.seedance?.config?.model;return N(e).acceptsAudio},value:{get(){return this.$store.state.seedance?.config?.generate_audio??!1},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,generate_audio:e})}}},watch:{isSupported(e){!e&&this.value&&(this.value=!1)}},mounted(){this.value===void 0&&(this.value=!1)}}),at={key:0,class:`field`},ot={class:`label`},st={class:`box`},ct={class:`title font-bold`},lt={class:`value`};function ut(e,t,r,i,s,c){let p=d(`info-icon`),m=d(`el-switch`);return e.isSupported?(u(),f(`div`,at,[n(`div`,ot,[n(`div`,st,[n(`h2`,ct,l(e.$t(`seedance.name.generateAudio`)),1),a(p,{content:e.$t(`seedance.description.generateAudio`),class:`info`},null,8,[`content`])])]),n(`div`,lt,[a(m,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,"inline-prompt":``,"active-text":e.$t(`seedance.button.on`),"inactive-text":e.$t(`seedance.button.off`)},null,8,[`modelValue`,`active-text`,`inactive-text`])])])):o(``,!0)}var dt=z(it,[[`render`,ut],[`__scopeId`,`data-v-df51dfbd`]]),ft=s({name:`SeedanceCameraFixedSwitch`,components:{ElSwitch:w,InfoIcon:Z},computed:{value:{get(){return this.$store.state.seedance?.config?.camerafixed??!1},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,camerafixed:e})}}},mounted(){this.$store.state.seedance?.config?.camerafixed===void 0&&(this.value=!1)}}),pt={class:`field`},mt={class:`label`},ht={class:`box`},gt={class:`title font-bold`},_t={class:`value`};function vt(e,t,r,i,o,s){let c=d(`info-icon`),p=d(`el-switch`);return u(),f(`div`,pt,[n(`div`,mt,[n(`div`,ht,[n(`h2`,gt,l(e.$t(`seedance.name.cameraFixed`)),1),a(c,{content:e.$t(`seedance.description.cameraFixed`),class:`info`},null,8,[`content`])])]),n(`div`,_t,[a(p,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,"inline-prompt":``,"active-text":e.$t(`seedance.button.on`),"inactive-text":e.$t(`seedance.button.off`)},null,8,[`modelValue`,`active-text`,`inactive-text`])])])}var yt=z(ft,[[`render`,vt],[`__scopeId`,`data-v-ae777d61`]]),bt=s({name:`SeedanceFirstFrameImage`,components:{ElUpload:y,ElButton:g,InfoIcon:Z,FontAwesomeIcon:Y,ImagePreview:X},mixins:[G,q],data(){return{fileList:[],uploadUrl:W()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},model(){return this.$store.state.seedance?.config?.model},capability(){return N(this.model)},urls(){return this.fileList.map(e=>e?.response?.file_url)}},watch:{"capability.acceptsImage"(e){e||(this.fileList=[],this.onSetFirstFrameUrl())}},methods:{onExceed(){K.warning(this.$t(`seedance.message.uploadExceed`))},onError(){K.error(this.$t(`seedance.message.uploadError`))},onSetFirstFrameUrl(){let e=this.urls?.[0],t=(this.$store.state.seedance?.config?.images||[]).filter(e=>e?.role!==`first_frame`);e&&t.push({url:e,role:`first_frame`}),this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,images:t.length>0?t:void 0})},async onSuccess(){this.onSetFirstFrameUrl()},async onRemove(){this.onSetFirstFrameUrl()}}}),xt={key:0,class:`relative`},St={class:`flex justify-between`},Ct={class:`flex justify-start items-center`},wt={class:`text-sm font-bold`},Tt={key:0,class:`required-badge`};function Et(e,r,s,c,m,h){let g=d(`info-icon`),_=d(`image-preview`),v=d(`font-awesome-icon`),y=d(`el-button`),b=d(`el-upload`);return e.capability.acceptsImage?(u(),f(`div`,xt,[n(`div`,St,[n(`div`,Ct,[n(`span`,wt,l(e.$t(`seedance.name.firstFrame`)),1),e.capability.requiresImage?(u(),f(`span`,Tt,l(e.$t(`seedance.name.required`)),1)):o(``,!0),a(g,{content:e.$t(`seedance.description.firstFrame`)},null,8,[`content`])])]),a(b,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,limit:1,class:`upload-wrapper`,multiple:!1,action:e.uploadUrl,"list-type":`picture`,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,"on-remove":e.onRemove,headers:e.headers},{file:p(({file:n})=>[n.url&&n.percentage!==void 0?(u(),t(_,{key:0,url:n.url,name:n.name,percentage:n.percentage,onRemove:t=>e.fileList.splice(e.fileList.indexOf(n),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])):o(``,!0)]),default:p(()=>[a(y,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:p(()=>[a(v,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+l(e.$t(`seedance.button.upload`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`on-remove`,`headers`])])):o(``,!0)}var Dt=z(bt,[[`render`,Et],[`__scopeId`,`data-v-e2597f23`]]),Ot=s({name:`SeedanceLastFrameImage`,components:{ElUpload:y,ElButton:g,ImagePreview:X,InfoIcon:Z,FontAwesomeIcon:Y},mixins:[G,q],data(){return{fileList:[],uploadUrl:W()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},model(){return this.$store.state.seedance?.config?.model},capability(){return N(this.model)},urls(){return this.fileList.map(e=>e?.response?.file_url)}},watch:{"capability.acceptsLastFrame"(e){e||(this.fileList=[],this.onSetLastFrameUrl())}},methods:{onExceed(){K.warning(this.$t(`seedance.message.uploadExceed`))},onError(){K.error(this.$t(`seedance.message.uploadError`))},onSetLastFrameUrl(){let e=this.urls?.[0],t=(this.$store.state.seedance?.config?.images||[]).filter(e=>e?.role!==`last_frame`);e&&t.push({url:e,role:`last_frame`}),this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,images:t.length>0?t:void 0})},async onSuccess(){this.onSetLastFrameUrl()},async onRemove(){this.onSetLastFrameUrl()}}}),kt={key:0,class:`relative`},At={class:`flex justify-between`},jt={class:`flex justify-start items-center`},Mt={class:`text-sm font-bold`};function Nt(e,r,s,c,m,h){let g=d(`info-icon`),_=d(`image-preview`),v=d(`font-awesome-icon`),y=d(`el-button`),b=d(`el-upload`);return e.capability.acceptsLastFrame?(u(),f(`div`,kt,[n(`div`,At,[n(`div`,jt,[n(`span`,Mt,l(e.$t(`seedance.name.lastFrame`)),1),a(g,{content:e.$t(`seedance.description.lastFrame`)},null,8,[`content`])])]),a(b,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":r[0]||=t=>e.fileList=t,name:`file`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,limit:1,class:`upload-wrapper`,multiple:!1,action:e.uploadUrl,"list-type":`picture`,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,"on-remove":e.onRemove,headers:e.headers},{file:p(({file:n})=>[n.url&&n.percentage!==void 0?(u(),t(_,{key:0,url:n.url,name:n.name,percentage:n.percentage,onRemove:t=>e.fileList.splice(e.fileList.indexOf(n),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])):o(``,!0)]),default:p(()=>[a(y,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:p(()=>[a(v,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+l(e.$t(`seedance.button.upload`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`on-remove`,`headers`])])):o(``,!0)}var Pt=z(Ot,[[`render`,Nt],[`__scopeId`,`data-v-3a191e51`]]),Ft=s({name:`SeedanceServiceTierSelector`,components:{ElSelect:_,ElOption:v,InfoIcon:Z},data(){return{options:[{value:ce,label:this.$t(`seedance.serviceTier.default`)},{value:se,label:this.$t(`seedance.serviceTier.flex`)}]}},computed:{value:{get(){return this.$store.state.seedance?.config?.service_tier},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,service_tier:e})}}},mounted(){this.value||=le}}),It={class:`field`},Lt={class:`label`},Rt={class:`box`},zt={class:`title font-bold`};function Bt(e,r,i,o,s,h){let g=d(`info-icon`),_=d(`el-option`),v=d(`el-select`);return u(),f(`div`,It,[n(`div`,Lt,[n(`div`,Rt,[n(`h2`,zt,l(e.$t(`seedance.name.serviceTier`)),1),a(g,{content:e.$t(`seedance.description.serviceTier`),class:`info`},null,8,[`content`])])]),a(v,{modelValue:e.value,"onUpdate:modelValue":r[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`seedance.placeholder.select`)},{default:p(()=>[(u(!0),f(m,null,c(e.options,e=>(u(),t(_,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Vt=z(Ft,[[`render`,Bt],[`__scopeId`,`data-v-cc938de2`]]),Ht=s({name:`SeedanceReturnLastFrameSwitch`,components:{ElSwitch:w,InfoIcon:Z},computed:{model(){return this.$store.state.seedance?.config?.model},isSupported(){return N(this.model).acceptsReturnLastFrame},value:{get(){return this.$store.state.seedance?.config?.return_last_frame},set(e){this.$store.commit(`seedance/setConfig`,{...this.$store.state.seedance?.config,return_last_frame:e})}}},watch:{isSupported(e){!e&&this.value&&(this.value=!1)}},mounted(){this.value===void 0&&(this.value=!1)}}),Ut={key:0,class:`field`},Wt={class:`label`},Gt={class:`box`},Kt={class:`title font-bold`},qt={class:`value`};function Jt(e,t,r,i,s,c){let p=d(`info-icon`),m=d(`el-switch`);return e.isSupported?(u(),f(`div`,Ut,[n(`div`,Wt,[n(`div`,Gt,[n(`h2`,Kt,l(e.$t(`seedance.name.returnLastFrame`)),1),a(p,{content:e.$t(`seedance.description.returnLastFrame`),class:`info`},null,8,[`content`])])]),n(`div`,qt,[a(m,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,"inline-prompt":``,"active-text":e.$t(`seedance.button.on`),"inactive-text":e.$t(`seedance.button.off`)},null,8,[`modelValue`,`active-text`,`inactive-text`])])])):o(``,!0)}var Yt=z(Ht,[[`render`,Jt],[`__scopeId`,`data-v-edea5451`]]),Xt=s({name:`SeedanceSeedInput`,components:{ElInputNumber:C,InfoIcon:Z},computed:{value:{get(){let e=this.$store.state.seedance?.config?.seed;return typeof e==`number`?e:-1},set(e){let t={...this.$store.state.seedance?.config||{}};t.seed=typeof e==`number`&&Number.isInteger(e)?e:-1,this.$store.commit(`seedance/setConfig`,t)}}}}),Zt={class:`field`},Qt={class:`label`},$t={class:`box`},en={class:`title font-bold`},tn={class:`value`};function nn(e,t,r,i,o,s){let c=d(`info-icon`),p=d(`el-input-number`);return u(),f(`div`,Zt,[n(`div`,Qt,[n(`div`,$t,[n(`h2`,en,l(e.$t(`seedance.name.seed`)),1),a(c,{content:e.$t(`seedance.description.seed`),class:`info`},null,8,[`content`])])]),n(`div`,tn,[a(p,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,min:-1,max:2147483647,step:1,size:`default`,"controls-position":`right`,class:`counter`},null,8,[`modelValue`])])])}var rn=s({name:`SeedanceConfigPanel`,components:{ElButton:g,FontAwesomeIcon:Y,PromptInput:Ce,ModelSelector:Ae,DurationSelector:Le,ResolutionSelector:Ke,RatioSelector:rt,GenerateAudioSwitch:dt,CameraFixedSwitch:yt,ServiceTierSelector:Vt,ReturnLastFrameSwitch:Yt,SeedInput:z(Xt,[[`render`,nn],[`__scopeId`,`data-v-685a9869`]]),FirstFrameImage:Dt,LastFrameImage:Pt,Consumption:ge},emits:[`generate`],computed:{config(){return this.$store.state.seedance?.config},consumption(){return V(this.config,this.service?.cost)},service(){return this.$store.state.seedance?.service}},methods:{onGenerate(){this.$emit(`generate`)}}}),an={class:`flex flex-col h-full`},on={class:`flex-1 overflow-y-auto p-5`},sn={class:`flex flex-col items-center justify-center px-5 pb-5`};function cn(e,t,r,o,s,c){let m=d(`prompt-input`),h=d(`model-selector`),g=d(`ratio-selector`),_=d(`resolution-selector`),v=d(`duration-selector`),y=d(`service-tier-selector`),b=d(`generate-audio-switch`),x=d(`camera-fixed-switch`),S=d(`return-last-frame-switch`),C=d(`seed-input`),w=d(`first-frame-image`),T=d(`last-frame-image`),E=d(`consumption`),D=d(`font-awesome-icon`),O=d(`el-button`);return u(),f(`div`,an,[n(`div`,on,[a(m,{class:`mb-4`}),a(h,{class:`mb-4`}),a(g,{class:`mb-4`}),a(_,{class:`mb-4`}),a(v,{class:`mb-4`}),a(y,{class:`mb-4`}),a(b,{class:`mb-4`}),a(x,{class:`mb-4`}),a(S,{class:`mb-4`}),a(C,{class:`mb-4`}),a(w,{class:`mb-2`}),a(T,{class:`mb-2`})]),n(`div`,sn,[a(E,{value:e.consumption,service:e.service},null,8,[`value`,`service`]),a(O,{type:`primary`,class:`btn w-full`,round:``,onClick:e.onGenerate},{default:p(()=>[a(D,{icon:`fa-solid fa-magic`,class:`mr-2`}),i(` `+l(e.$t(`seedance.button.generate`)),1)]),_:1},8,[`onClick`])])])}var ln=z(rn,[[`render`,cn]]),un=s({name:`SeedanceTaskPreview`,components:{ElImage:x,CopyToClipboard:ue,FontAwesomeIcon:Y,ElAlert:S,VideoPlayer:be,ElTooltip:b,ElButton:g,ImageWrapper:ve,ImagePreview:X,ApiCodeButton:_e},props:{modelValue:{type:Object,required:!0}},data(){return{seedanceLogo:j}},computed:{video(){return this.modelValue?.response?.data},referenceImages(){let e=this.modelValue?.request?.images;if(!Array.isArray(e))return[];let t=[],n=e.find(e=>e?.role===`first_frame`);n?.url&&t.push({url:n.url,name:`first-frame`});let r=e.find(e=>e?.role===`last_frame`);return r?.url&&t.push({url:r.url,name:`last-frame`}),e.forEach((e,n)=>{e?.url&&e.role!==`first_frame`&&e.role!==`last_frame`&&t.push({url:e.url,name:e.role||`image-${n}`})}),t}},methods:{onDownload(e){window.open(e,`_blank`)}}}),dn={class:`preview`},fn={class:`left`},pn={class:`main`},mn={class:`bot`},hn={class:`datetime`},gn={class:`info`},_n={key:0,class:`flex justify-start items-center gap-2 mt-2 w-full overflow-x-auto`},vn={key:1,class:`prompt mt-2`},yn={key:0},bn={key:1},xn={key:0,class:e({content:!0})},Sn={class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Cn={key:1,class:e({content:!0})},wn={key:0,class:`mb-4`},Tn={key:1,class:`mb-4`},En={key:2,class:e({operations:!0,"mt-2":!0,"mb-2":!0})},Dn={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},On={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},kn={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},An={key:0},jn={key:1},Mn={key:3,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Nn={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},$={key:4,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Pn={key:5,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Fn={key:2,class:e({content:!0})},In={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ln={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Rn={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},zn={key:2,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Bn={key:3,class:e({content:!0})},Vn={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Hn={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-0`};function Un(e,r,s,g,_,v){let y=d(`el-image`),b=d(`image-preview`),x=d(`font-awesome-icon`),S=d(`copy-to-clipboard`),C=d(`el-alert`),w=d(`video-player`),T=d(`image-wrapper`),E=d(`el-button`),D=d(`el-tooltip`),O=d(`api-code-button`);return u(),f(`div`,dn,[n(`div`,fn,[a(y,{src:e.seedanceLogo,class:`avatar`},null,8,[`src`])]),n(`div`,pn,[n(`div`,mn,[i(l(e.$t(`seedance.name.seedanceBot`))+` `,1),n(`span`,hn,l(e.$dayjs.format(``+new Date(parseFloat((e.modelValue?.created_at||``).toString())*1e3))),1)]),n(`div`,gn,[e.referenceImages.length>0?(u(),f(`div`,_n,[(u(!0),f(m,null,c(e.referenceImages,(e,n)=>(u(),t(b,{key:n,url:e.url,name:e.name,closable:!1},null,8,[`url`,`name`]))),128))])):o(``,!0),e.modelValue?.request?.prompt?(u(),f(`p`,vn,[i(l(e.modelValue?.request?.prompt)+` `,1),e.modelValue?.response?e.video?.status===`processing`||e.video?.status===`pending`?(u(),f(`span`,bn,` - (`+l(e.$t(`seedance.status.processing`))+`) `,1)):o(``,!0):(u(),f(`span`,yn,` - (`+l(e.$t(`seedance.status.pending`))+`) `,1))])):o(``,!0)]),e.modelValue?.response?e.modelValue?.response?.success===!0?(u(),f(`div`,Cn,[e.video?.video_url?(u(),f(`div`,wn,[a(w,{src:e.video?.video_url},null,8,[`src`])])):o(``,!0),e.video?.last_frame_url?(u(),f(`div`,Tn,[a(T,{src:e.video?.last_frame_url,"raw-src":e.video?.last_frame_url},null,8,[`src`,`raw-src`])])):o(``,!0),e.video?.video_url?(u(),f(`div`,En,[a(D,{class:`box-item`,effect:`dark`,content:e.$t(`seedance.message.downloadVideo`),placement:`top-start`},{default:p(()=>[a(E,{type:`info`,size:`small`,class:`btn-action`,onClick:r[0]||=h(t=>e.onDownload(e.video?.video_url),[`stop`])},{default:p(()=>[i(l(e.$t(`seedance.button.download`)),1)]),_:1})]),_:1},8,[`content`]),a(O,{path:`/seedance/videos`,body:e.modelValue?.request},null,8,[`body`])])):o(``,!0),a(C,{closable:!1,class:`mt-2 success`},{default:p(()=>[e.modelValue?.request?.model?(u(),f(`p`,Dn,[a(x,{icon:`fa-solid fa-cube`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.model`))+`: `+l(e.modelValue?.request?.model),1)])):o(``,!0),e.video?.duration?(u(),f(`p`,On,[a(x,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.duration`))+`: `+l(e.video?.duration)+`s `,1)])):o(``,!0),e.video?.resolution?(u(),f(`p`,kn,[a(x,{icon:`fa-solid fa-expand`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.resolution`))+`: `+l(e.video?.resolution)+` `,1),e.video?.ratio?(u(),f(`span`,An,` · `+l(e.video?.ratio),1)):o(``,!0),e.video?.framespersecond?(u(),f(`span`,jn,` · `+l(e.video?.framespersecond)+`fps`,1)):o(``,!0)])):o(``,!0),e.modelValue?.request?.generate_audio?(u(),f(`p`,Mn,[a(x,{icon:`fa-solid fa-volume-up`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.generateAudio`))+`: `+l(e.$t(`seedance.button.on`)),1)])):o(``,!0),n(`p`,Nn,[a(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),a(S,{content:e.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])]),e.modelValue?.elapsed?(u(),f(`p`,$,[a(x,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.elapsed`))+`: `+l(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):o(``,!0),e.modelValue?.response?.trace_id?(u(),f(`p`,Pn,[a(x,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.traceId`))+`: `+l(e.modelValue?.response?.trace_id)+` `,1),a(S,{content:e.modelValue?.response?.trace_id,class:`btn-copy inline-block`},null,8,[`content`])])):o(``,!0)]),_:1})])):e.modelValue?.response?.success===!1?(u(),f(`div`,Fn,[a(C,{closable:!1,class:`failure`},{template:p(()=>[a(x,{icon:`fa-solid fa-exclamation-triangle`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.failure`)),1)]),default:p(()=>[n(`p`,In,[a(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),a(S,{content:e.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])]),e.modelValue?.response?.error?.message?(u(),f(`p`,Ln,[a(x,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.failureReason`))+`: `+l(e.modelValue?.response?.error?.message)+` `,1),a(S,{content:e.modelValue?.response?.error?.message,class:`btn-copy inline-block`},null,8,[`content`])])):o(``,!0),e.modelValue?.elapsed?(u(),f(`p`,Rn,[a(x,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.elapsed`))+`: `+l(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):o(``,!0),e.modelValue?.response?.trace_id?(u(),f(`p`,zn,[a(x,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.traceId`))+`: `+l(e.modelValue?.response?.trace_id)+` `,1),a(S,{content:e.modelValue?.response?.trace_id,class:`btn-copy inline-block`},null,8,[`content`])])):o(``,!0)]),_:1})])):(u(),f(`div`,Bn,[a(C,{closable:!1,class:`info`},{template:p(()=>[a(x,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.status`)),1)]),default:p(()=>[n(`p`,Vn,[a(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),a(S,{content:e.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])]),e.modelValue?.response?.trace_id?(u(),f(`p`,Hn,[a(x,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.traceId`))+`: `+l(e.modelValue?.response?.trace_id)+` `,1),a(S,{content:e.modelValue?.response?.trace_id,class:`btn-copy inline-block`},null,8,[`content`])])):o(``,!0)]),_:1})])):(u(),f(`div`,xn,[a(C,{closable:!1,class:`info`},{template:p(()=>[a(x,{icon:`fa-regular fa-clock`,class:`mr-1`}),i(` `+l(e.$t(`seedance.status.pending`)),1)]),default:p(()=>[n(`p`,Sn,[a(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`seedance.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),a(S,{content:e.modelValue?.id,class:`btn-copy inline-block`},null,8,[`content`])])]),_:1})]))])])}var Wn=s({name:`SeedanceRecentPanel`,components:{TaskPreview:z(un,[[`render`,Un],[`__scopeId`,`data-v-8b7e10f0`]]),BotPlaceholder:de,NoTasks:he,ScrollList:fe},props:{loading:{type:Boolean,default:!1}},emits:[`reach-top`],computed:{tasks(){return{...this.$store.state.seedance?.tasks,items:this.$store.state.seedance?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),Gn={key:0},Kn={key:2,class:`w-full h-full flex items-center justify-center`};function qn(e,n,r,i,s,l){let h=d(`bot-placeholder`),g=d(`task-preview`),_=d(`scroll-list`),v=d(`no-tasks`);return u(),f(m,null,[e.tasks?.items===void 0?(u(),f(`div`,Gn,[a(h)])):e.tasks?.items?.length&&e.tasks?.items?.length>0?(u(),t(_,{key:1,ref:`scrollList`,class:`tasks w-full h-full overflow-y-auto`,loading:e.loading,onReachTop:n[0]||=t=>e.$emit(`reach-top`)},{default:p(()=>[(u(!0),f(m,null,c(e.tasks?.items,e=>(u(),t(g,{key:e.id,"model-value":e},null,8,[`model-value`]))),128))]),_:1},8,[`loading`])):o(``,!0),e.tasks?.items?.length===0?(u(),f(`div`,Kn,[a(v)])):o(``,!0)],64)}var Jn=z(Wn,[[`render`,qn]]),Yn=F(`seedance`),Xn=s({name:`SeedanceIndex`,components:{ConfigPanel:ln,Layout:ye,RecentPanel:Jn},mixins:[R],inject:[`initialized`],data(){return{task:void 0,job:0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.seedance?.status?.getApplications===J.Request},tasksLoading(){return this.$store.state.seedance?.status?.getTasks===J.Request||this.fetchingTasks},credential(){return this.$store.state.seedance?.credential},config(){return this.$store.state.seedance?.config},tasks(){return this.$store.state.seedance?.tasks}},watch:{initialized:{async handler(e){e&&(await this.onGetTasks(),await this.onScrollDown(),this.job=window.setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService()},async unmounted(){window.clearInterval(this.job)},methods:{async onReachTop(){await pe({tasks:this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.applicationsLoading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){await this.$store.dispatch(`seedance/getService`)},async onScrollDown(){await this.$nextTick();let e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.applicationsLoading||this.fetchingTasks)return;let{limit:t=5,createdAtMin:n,createdAtMax:r}=e||{};this.fetchingTasks=!0;try{await this.$store.dispatch(`seedance/getTasks`,{limit:t,createdAtMin:n,createdAtMax:r})}finally{this.fetchingTasks=!1}},async onGenerate(){if(!H(this.uploadTracker,e=>this.$t(e),e=>K.warning(e)))return;let e={...this.config||{}};if(typeof e?.prompt==`string`&&(e.prompt=e.prompt.trim(),e.prompt||delete e.prompt),Array.isArray(e?.images)){e.images=e.images.filter(e=>!!e?.url);let t=e.images.some(e=>e?.role===`first_frame`),n=e.images.some(e=>e?.role===`last_frame`);!t&&n&&(e.images=e.images.map(e=>e?.role===`last_frame`?{...e,role:`first_frame`}:e))}let t=Array.isArray(e?.images)&&e.images.length>0;if(!t&&`images`in e&&delete e.images,e?.model&&!T[e.model]){K.warning(this.$t(`seedance.message.modelUnsupported`));return}let n=N(e?.model);if(n.requiresImage&&!t){K.warning(this.$t(`seedance.message.modelRequiresImage`));return}if(!n.acceptsImage&&t){K.warning(this.$t(`seedance.message.modelRejectsImage`));return}if(!n.acceptsText&&!t){K.warning(this.$t(`seedance.message.modelRequiresImage`));return}!n.acceptsAudio&&e.generate_audio&&(e.generate_audio=!1),!n.acceptsReturnLastFrame&&e.return_last_frame&&(e.return_last_frame=!1),!n.acceptsLastFrame&&t&&(e.images=e.images.filter(e=>e?.role!==`last_frame`));let r={...e,callback_url:Yn},i=this.credential?.token;if(!i){console.error(`no token specified`);return}K.info(this.$t(`seedance.message.startingTask`)),B(`seedance`,U.generate(r,{token:i})).then(()=>{K.success(this.$t(`seedance.message.startTaskSuccess`))}).catch(e=>{let t=e?.response?.data;t?.error?.code===`used_up`?K.error(this.$t(`seedance.message.usedUp`)):K.error(this.$t(`seedance.message.startTaskFailed`)+(t?.error?.message||``))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}});function Zn(e,n,r,i,o,s){let c=d(`config-panel`),l=d(`recent-panel`),f=d(`layout`);return u(),t(f,null,{config:p(()=>[a(c,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),result:p(()=>[a(l,{ref:`recentPanel`,loading:e.loadingMore,onReachTop:e.onReachTop},null,8,[`loading`,`onReachTop`])]),_:1})}var Qn=z(Xn,[[`render`,Zn]]);export{Qn as default};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{$ as e,Bt as t,D as n,E as r,Ht as ee,M as i,N as a,O as o,P as s,Q as c,Ut as l,X as u,_ as d,et as f,k as p,lt as m,ut as h,x as g}from"./vendor-chart-mdwpew_o.js";import{t as _}from"./button-DWzbdjZV.js";import{r as v,t as y}from"./select-BITgEgfP.js";import{t as b}from"./upload-DMzqzxP6.js";import{t as x}from"./tooltip-C3PYfh8V.js";import{t as S}from"./image-CWcemTUB.js";import{t as C}from"./alert-BJj7gY4q.js";import{t as w}from"./drawer-BvYPSxXh.js";import{t as T}from"./switch-DyO-foN-.js";import{cr as E,dr as D,fr as O,gr as k,lr as A,mr as j,or as M,pi as N,sr as P,ur as F}from"./constants-C-bSXdJ_.js";import{At as te,E as I,Fn as ne,Ir as L,Nt as R,Ot as z,Sr as B,fn as V,jt as H,kr as U,kt as W,yr as G}from"./index-BmC-XXKj.js";import{t as K}from"./index.es-Cawr8qgY.js";import{t as q}from"./CopyToClipboard-Cx0LOUlj.js";import{t as J}from"./ImagePreview--SDvXZzb.js";import{n as Y}from"./taskDrawerMixin-Cr17Yxqk.js";import{t as X}from"./BotPlaceholder-CGjSVeUk.js";import{i as Z,n as re,t as ie}from"./pagination-B3P0PVH-.js";import{n as ae,t as oe}from"./NoTasks-l_P0QgKI.js";import{t as se}from"./Consumption-BKLhsHgd.js";import{t as ce}from"./ApiCodeButton-8YzSdLWx.js";import{t as Q}from"./VideoPlayer-BtXLkAAR.js";var le=s({name:`LayoutVeo`,components:{ElDrawer:w,ElButton:_,FontAwesomeIcon:K},mixins:[Y]}),ue={class:`main flex flex-row flex-1`},de={class:`config w-[320px] flex-none h-full overflow-y-auto bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]`},fe={class:`result h-full p-6 flex-1 flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]`};function pe(t,n,ee,i,o,s){let c=f(`font-awesome-icon`),l=f(`el-button`),g=f(`el-drawer`);return u(),p(`div`,ue,[r(`div`,de,[e(t.$slots,`config`,{},void 0,!0)]),r(`div`,fe,[e(t.$slots,`result`,{},void 0,!0)]),h(a(l,{circle:``,class:`menu`,onClick:n[0]||=e=>t.drawer=!0},{default:m(()=>[a(c,{icon:`fa-solid fa-magic`})]),_:1},512),[[d,!t.tasksEmpty]]),a(g,{modelValue:t.drawer,"onUpdate:modelValue":n[1]||=e=>t.drawer=e,direction:`ltr`,"with-header":!1,size:`350px`},{default:m(()=>[e(t.$slots,`config`,{},void 0,!0)]),_:3},8,[`modelValue`])])}var me=I(le,[[`render`,pe],[`__scopeId`,`data-v-12b82bc3`]]),he=s({name:`ModelSelector`,components:{ElSelect:v,ElOption:y},props:{modelValue:{type:String,default:void 0}},emits:[`update:modelValue`],data(){return{options:[{value:`veo2`,label:`veo2`},{value:`veo2-fast`,label:`veo2-fast`},{value:`veo3`,label:`veo3`},{value:`veo3-fast`,label:`veo3-fast`},{value:`veo31-fast`,label:`veo31-fast`},{value:`veo31`,label:`veo31`},{value:`veo31-fast-ingredients`,label:`veo31-fast-ingredients`}]}},computed:{value:{get(){return this.$store.state.veo?.config?.model},set(e){this.$store.commit(`veo/setConfig`,{...this.$store.state.veo.config,model:e})}}},mounted(){this.value||=A}}),ge={class:`field`},_e={class:`title font-bold`};function ve(e,t,ee,i,o,s){let d=f(`el-option`),h=f(`el-select`);return u(),p(`div`,ge,[r(`h2`,_e,l(e.$t(`veo.name.model`)),1),a(h,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`veo.placeholder.select`)},{default:m(()=>[(u(!0),p(g,null,c(e.options,e=>(u(),n(d,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var ye=I(he,[[`render`,ve],[`__scopeId`,`data-v-a59d89c9`]]),be=s({name:`ActionSelector`,components:{ElSelect:v,ElOption:y},data(){return{}},computed:{options(){return[{value:`text2video`,label:this.$t(`veo.button.action1`)},{value:`image2video`,label:this.$t(`veo.button.action2`)},{value:`ingredients2video`,label:this.$t(`veo.button.actionIngredients`)},{value:`upsample`,label:this.$t(`veo.button.actionUpsample`)},{value:`extend`,label:this.$t(`veo.button.actionExtend`)},{value:`reshoot`,label:this.$t(`veo.button.actionReshoot`)},{value:`object_insert`,label:this.$t(`veo.button.actionObjectInsert`)},{value:`object_remove`,label:this.$t(`veo.button.actionObjectRemove`)}]},value:{get(){return this.$store.state.veo?.config?.action},set(e){this.$store.commit(`veo/setConfig`,{...this.$store.state.veo?.config,action:e})}}},mounted(){this.value||=M}}),xe={class:`field`},Se={class:`title font-bold`},Ce={class:`float-left`};function we(e,t,ee,i,o,s){let d=f(`el-option`),h=f(`el-select`);return u(),p(`div`,xe,[r(`h2`,Se,l(e.$t(`veo.name.action`)),1),a(h,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`veo.placeholder.select`),clearable:``},{default:m(()=>[(u(!0),p(g,null,c(e.options,e=>(u(),n(d,{key:e.value,label:e.label,value:e.value},{default:m(()=>[r(`span`,Ce,l(e.label),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Te=I(be,[[`render`,we],[`__scopeId`,`data-v-f4d8785c`]]),Ee=s({name:`TranslationSelector`,components:{ElSwitch:T,InfoIcon:Z},computed:{value:{get(){return this.$store.state.veo?.config?.translation},set(e){console.debug(`set translation`,e),this.$store.commit(`veo/setConfig`,{...this.$store.state.veo?.config,translation:e})}}},mounted(){this.value===void 0&&(this.value=!1)}}),De={class:`relative`},Oe={class:`flex justify-between`},ke={class:`flex justify-start items-center`},Ae={class:`text-sm font-bold`},je={class:`flex justify-end items-center`};function Me(e,t,n,ee,i,o){let s=f(`info-icon`),c=f(`el-switch`);return u(),p(`div`,De,[r(`div`,Oe,[r(`div`,ke,[r(`span`,Ae,l(e.$t(`veo.name.translation`)),1),a(s,{content:e.$t(`veo.description.translation`)},null,8,[`content`])]),r(`div`,je,[a(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`},null,8,[`modelValue`])])])])}var Ne=I(Ee,[[`render`,Me]]),Pe=s({name:`AspectRatioSelector`,data(){return{options:[{value:`16:9`,label:`16:9`,width:25,height:13},{value:`9:16`,label:`9:16`,width:13,height:25}]}},computed:{active(){return this.options.findIndex(e=>e.value===this.value)||0},value:{get(){return this.$store.state.veo?.config?.aspect_ratio},set(e){console.debug(`set aspect_ratio`,e),this.$store.commit(`veo/setConfig`,{...this.$store.state?.veo?.config,aspect_ratio:e})}}},mounted(){this.value||=P}}),Fe={class:`text-sm font-bold mb-2 block`},Ie={class:`items`},Le=[`onClick`],Re={class:`name`};function ze(e,n,i,a,o,s){return u(),p(`div`,null,[r(`span`,Fe,l(e.$t(`veo.name.ratio`)),1),r(`div`,Ie,[(u(!0),p(g,null,c(e.options,(n,i)=>(u(),p(`div`,{key:i,class:t({active:e.active===i,item:!0}),onClick:t=>e.value=n.value},[r(`div`,{class:t([`preview`,n.label])},[r(`div`,{class:`rect`,style:ee({width:n.width+`px`,height:n.height+`px`})},null,4)],2),r(`p`,Re,l(n.label),1)],10,Le))),128))])])}var Be=I(Pe,[[`render`,ze],[`__scopeId`,`data-v-28c472c4`]]),Ve=s({name:`VideoFromInput`,components:{VideoPlayer:Q},props:{modelValue:{type:Object,required:!1,default:void 0}},data(){return{options:{quality:{default:`1080p`}}}},computed:{config(){return this.$store.state.veo?.config}}}),He={class:`relative`},Ue={class:`flex mb-2`},We={class:`text-sm font-bold`};function Ge(e,t,ee,i,a,s){let c=f(`video-player`);return u(),p(`div`,He,[r(`div`,Ue,[r(`span`,We,l(e.$t(`veo.name.action3`)),1)]),r(`div`,null,[e.config?.video_url?(u(),n(c,{key:0,src:e.config?.video_url},null,8,[`src`])):o(``,!0)])])}var Ke=I(Ve,[[`render`,Ge]]),qe=s({name:`VideoIdInput`,components:{ElInput:L},computed:{value:{get(){return this.$store.state.veo?.config?.video_id},set(e){this.$store.commit(`veo/setConfig`,{...this.$store.state.veo.config,video_id:e})}}}}),Je={class:`field`},Ye={class:`title font-bold`};function Xe(e,t,n,ee,i,o){let s=f(`el-input`);return u(),p(`div`,Je,[r(`h2`,Ye,l(e.$t(`veo.name.videoId`)),1),a(s,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`,type:`text`,placeholder:e.$t(`veo.placeholder.videoId`),clearable:``},null,8,[`modelValue`,`placeholder`])])}var Ze=I(qe,[[`render`,Xe],[`__scopeId`,`data-v-6eba4026`]]),Qe=s({name:`StartEndImage`,components:{ElUpload:b,ElButton:_,InfoIcon:Z,FontAwesomeIcon:K,ImagePreview:J},mixins:[H,W],emits:[`change`],data(){return{fileList:[],uploadUrl:B()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e?.response?.file_url)},value:{get(){return this.$store.state?.veo?.config?.image_urls},set(){}}},mounted(){this.value||=void 0,this.onSetStartEndImageUrl()},methods:{onExceed(){U.warning(this.$t(`veo.message.uploadReferencesExceed`))},onError(){U.error(this.$t(`veo.message.uploadReferencesError`))},onSetStartEndImageUrl(){let e=this.urls;this.$store.commit(`veo/setConfig`,{...this.$store.state?.veo?.config,image_urls:e})},async onSuccess(){this.onSetStartEndImageUrl()}}}),$e={class:`relative`},et={class:`flex justify-between`},tt={class:`flex justify-start items-center`},nt={class:`text-sm font-bold`};function rt(e,t,ee,s,c,d){let h=f(`info-icon`),g=f(`image-preview`),_=f(`font-awesome-icon`),v=f(`el-button`),y=f(`el-upload`);return u(),p(`div`,$e,[r(`div`,et,[r(`div`,tt,[r(`span`,nt,l(e.$t(`veo.name.startEndImage`)),1),a(h,{content:e.$t(`veo.description.uploadStartEndImage`)},null,8,[`content`])])]),a(y,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":t[0]||=t=>e.fileList=t,name:`file`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,limit:2,class:`upload-wrapper`,multiple:!1,action:e.uploadUrl,"list-type":`picture`,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{file:m(({file:t})=>[t.url&&t.percentage!==void 0?(u(),n(g,{key:0,url:t.url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])):o(``,!0)]),default:m(()=>[a(v,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:m(()=>[a(_,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),i(` `+l(e.$t(`veo.button.uploadReferences`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`headers`])])}var it=I(Qe,[[`render`,rt],[`__scopeId`,`data-v-f9a79b4a`]]),at=s({name:`UpsampleActionSelector`,components:{ElSelect:v,ElOption:y},computed:{options(){return k.map(e=>({value:e,label:e}))},value:{get(){return this.$store.state.veo?.config?.upsample_action},set(e){this.$store.commit(`veo/setConfig`,{...this.$store.state.veo.config,upsample_action:e})}}},mounted(){this.value||=D}}),ot={class:`field`},st={class:`title font-bold`};function ct(e,t,ee,i,o,s){let d=f(`el-option`),h=f(`el-select`);return u(),p(`div`,ot,[r(`h2`,st,l(e.$t(`veo.name.upsampleAction`)),1),a(h,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`veo.placeholder.select`)},{default:m(()=>[(u(!0),p(g,null,c(e.options,e=>(u(),n(d,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var lt=I(at,[[`render`,ct],[`__scopeId`,`data-v-8b74a7ae`]]),ut=s({name:`ExtendModelSelector`,components:{ElSelect:v,ElOption:y},computed:{options(){return O.map(e=>({value:e,label:e}))},value:{get(){return this.$store.state.veo?.config?.model},set(e){this.$store.commit(`veo/setConfig`,{...this.$store.state.veo.config,model:e})}}},mounted(){(!this.value||!O.includes(this.value))&&(this.value=E)}}),dt={class:`field`},ft={class:`title font-bold`};function pt(e,t,ee,i,o,s){let d=f(`el-option`),h=f(`el-select`);return u(),p(`div`,dt,[r(`h2`,ft,l(e.$t(`veo.name.model`)),1),a(h,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`veo.placeholder.select`)},{default:m(()=>[(u(!0),p(g,null,c(e.options,e=>(u(),n(d,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var mt=I(ut,[[`render`,pt],[`__scopeId`,`data-v-cc3f9355`]]),ht=s({name:`MotionTypeSelector`,components:{ElSelect:v,ElOption:y},computed:{options(){return j.map(e=>({value:e,label:e}))},value:{get(){return this.$store.state.veo?.config?.motion_type},set(e){this.$store.commit(`veo/setConfig`,{...this.$store.state.veo.config,motion_type:e})}}},mounted(){this.value||=F}}),gt={class:`field`},_t={class:`title font-bold`};function vt(e,t,ee,i,o,s){let d=f(`el-option`),h=f(`el-select`);return u(),p(`div`,gt,[r(`h2`,_t,l(e.$t(`veo.name.motionType`)),1),a(h,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`veo.placeholder.select`),filterable:``},{default:m(()=>[(u(!0),p(g,null,c(e.options,e=>(u(),n(d,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var yt=I(ht,[[`render`,vt],[`__scopeId`,`data-v-3affff3c`]]),bt=s({name:`ImageMaskInput`,components:{ElInput:L},computed:{value:{get(){return this.$store.state.veo?.config?.image_mask},set(e){this.$store.commit(`veo/setConfig`,{...this.$store.state.veo.config,image_mask:e})}}}}),xt={class:`field`},St={class:`title font-bold`};function Ct(e,t,n,ee,i,o){let s=f(`el-input`);return u(),p(`div`,xt,[r(`h2`,St,l(e.$t(`veo.name.imageMask`)),1),a(s,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`,type:`text`,placeholder:e.$t(`veo.placeholder.imageMask`),clearable:``},null,8,[`modelValue`,`placeholder`])])}var wt=I(bt,[[`render`,Ct],[`__scopeId`,`data-v-6cc27c68`]]),Tt=s({name:`PromptInput`,components:{PromptTextarea:ae},computed:{prompt:{get(){return this.$store.state.veo?.config?.prompt},set(e){this.$store.commit(`veo/setConfig`,{...this.$store.state.veo?.config,prompt:e})}}},mounted(){this.prompt||=``}});function Et(e,t,r,ee,i,a){let o=f(`prompt-textarea`);return u(),n(o,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||=t=>e.prompt=t,title:e.$t(`veo.name.prompt`),info:e.$t(`veo.description.prompt`),placeholder:e.$t(`veo.placeholder.prompt`)},null,8,[`modelValue`,`title`,`info`,`placeholder`])}var Dt=I(Tt,[[`render`,Et]]),Ot=[`upsample`,`extend`,`reshoot`,`object_insert`,`object_remove`,`get1080p`],kt=[`text2video`,`image2video`,`ingredients2video`],At=s({name:`ConfigPanel`,components:{ElButton:_,Consumption:se,FontAwesomeIcon:K,PromptInput:Dt,ModelSelector:ye,StartEndImage:it,ActionSelector:Te,VideoFromInput:Ke,VideoIdInput:Ze,UpsampleActionSelector:lt,ExtendModelSelector:mt,MotionTypeSelector:yt,ImageMaskInput:wt,TranslationSelector:Ne,AspectRatioSelector:Be},emits:[`generate`],computed:{config(){return this.$store.state.veo?.config},consumption(){return R(this.config,this.service?.cost)},service(){return this.$store.state.veo?.service},isPostProcessing(){return Ot.includes(this.config?.action??``)},isGeneration(){return kt.includes(this.config?.action??``)}},methods:{onGenerate(){this.$emit(`generate`)}}}),jt={class:`flex flex-col h-full`},Mt={class:`flex-1 overflow-y-auto p-5`},Nt={class:`flex flex-col items-center justify-center px-5 pb-5`};function Pt(e,t,ee,s,c,d){let h=f(`action-selector`),_=f(`video-from-input`),v=f(`video-id-input`),y=f(`upsample-action-selector`),b=f(`extend-model-selector`),x=f(`prompt-input`),S=f(`motion-type-selector`),C=f(`image-mask-input`),w=f(`translation-selector`),T=f(`aspect-ratio-selector`),E=f(`model-selector`),D=f(`start-end-image`),O=f(`consumption`),k=f(`font-awesome-icon`),A=f(`el-button`);return u(),p(`div`,jt,[r(`div`,Mt,[a(h,{class:`mb-4`}),e.isPostProcessing?(u(),p(g,{key:0},[e.config?.video_url?(u(),n(_,{key:0,class:`mb-4`})):o(``,!0),a(v,{class:`mb-4`})],64)):o(``,!0),e.config?.action===`upsample`?(u(),n(y,{key:1,class:`mb-4`})):o(``,!0),e.config?.action===`extend`?(u(),n(b,{key:2,class:`mb-4`})):o(``,!0),e.config?.action===`extend`?(u(),n(x,{key:3,class:`mb-4`})):o(``,!0),e.config?.action===`reshoot`?(u(),n(S,{key:4,class:`mb-4`})):o(``,!0),e.config?.action===`object_insert`?(u(),n(x,{key:5,class:`mb-4`})):o(``,!0),e.config?.action===`object_insert`||e.config?.action===`object_remove`?(u(),n(C,{key:6,class:`mb-4`})):o(``,!0),e.config?.action===`object_remove`?(u(),n(x,{key:7,class:`mb-4`})):o(``,!0),e.isGeneration?(u(),p(g,{key:8},[a(w,{class:`mb-4`}),a(T,{class:`mb-4`}),a(x,{class:`mb-4`}),e.config?.action===`ingredients2video`?o(``,!0):(u(),n(E,{key:0,class:`mb-4`})),e.config?.action===`image2video`||e.config?.action===`ingredients2video`?(u(),n(D,{key:1,class:`mb-2`})):o(``,!0)],64)):o(``,!0)]),r(`div`,Nt,[a(O,{value:e.consumption,service:e.service},null,8,[`value`,`service`]),a(A,{type:`primary`,class:`btn w-full`,round:``,onClick:e.onGenerate},{default:m(()=>[a(k,{icon:`fa-solid fa-magic`,class:`mr-2`}),i(` `+l(e.$t(`veo.button.generate`)),1)]),_:1},8,[`onClick`])])])}var Ft=I(At,[[`render`,Pt]]),It=s({name:`TaskPreview`,components:{ElImage:S,CopyToClipboard:q,FontAwesomeIcon:K,ElAlert:C,VideoPlayer:Q,ElTooltip:x,ElButton:_,ApiCodeButton:ce},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){return this.$store.state.veo?.application},config(){return this.$store.state.veo?.config}},methods:{onPickAction(e,t,n,r){console.debug(`seed config from preview`,{action:n,upsampleAction:r,response:t}),this.$store.commit(`veo/setConfig`,{...this.$store.state.veo?.config,action:n,video_id:t?.data?.[0]?.id,video_url:t?.data?.[0]?.video_url,...r?{upsample_action:r}:{}})},onDownload(e,t){e?.stopPropagation(),console.log(`on download`),window.open(t,`_blank`)},onOpenVideo(e){window.open(e,`_blank`)}}}),Lt={class:`preview`},Rt={class:`left`},zt={class:`main`},Bt={class:`bot`},Vt={class:`datetime`},Ht={class:`info`},Ut={key:0,class:`prompt mt-2`},Wt={key:0},Gt={key:1},Kt={key:0,class:t({content:!0,failed:!0})},qt={key:0,class:`mb-4`},Jt={key:1,class:t({operations:!0,"mt-2":!0})},Yt={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Xt={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Zt={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Qt={key:1,class:t({content:!0})},$t={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},en={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},$={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},tn={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},nn={key:2,class:t({content:!0})},rn={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},an={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-0`};function on(e,t,ee,s,c,d){let h=f(`el-image`),g=f(`video-player`),_=f(`el-button`),v=f(`el-tooltip`),y=f(`api-code-button`),b=f(`font-awesome-icon`),x=f(`copy-to-clipboard`),S=f(`el-alert`);return u(),p(`div`,Lt,[r(`div`,Rt,[a(h,{src:`https://cdn.acedata.cloud/8nxyy9.jpg`,class:`avatar`})]),r(`div`,zt,[r(`div`,Bt,[i(l(e.$t(`veo.name.veoBot`))+` `,1),r(`span`,Vt,l(e.$dayjs.format(``+new Date(parseFloat((e.modelValue?.created_at||``).toString())*1e3))),1)]),r(`div`,Ht,[e.modelValue?.request?.prompt?(u(),p(`p`,Ut,[i(l(e.modelValue?.request?.prompt)+` `,1),e.modelValue?.response?o(``,!0):(u(),p(`span`,Wt,` - (`+l(e.$t(`veo.status.pending`))+`) `,1)),Array.isArray(e.modelValue?.response?.data)&&e.modelValue?.response?.data[0]?.state===`running`?(u(),p(`span`,Gt,` - (`+l(e.$t(`veo.status.processing`))+`) `,1)):o(``,!0)])):o(``,!0)]),e.modelValue?.response?.success===!0&&e.modelValue?.response?.data?(u(),p(`div`,Kt,[e.modelValue?.response?.data[0]?.video_url?(u(),p(`div`,qt,[a(g,{src:e.modelValue?.response?.data[0]?.video_url},null,8,[`src`])])):o(``,!0),e.modelValue?.response.success?(u(),p(`div`,Jt,[e.modelValue?.response?.data[0]?.video_url?(u(),n(_,{key:0,type:`info`,size:`small`,class:`btn-action`,onClick:t[0]||=t=>e.onPickAction(t,e.modelValue?.response,`upsample`,`1080p`)},{default:m(()=>[i(l(e.$t(`veo.button.actionUpsample1080p`)),1)]),_:1})):o(``,!0),e.modelValue?.response?.data[0]?.video_url?(u(),n(_,{key:1,type:`info`,size:`small`,class:`btn-action`,onClick:t[1]||=t=>e.onPickAction(t,e.modelValue?.response,`upsample`,`4k`)},{default:m(()=>[i(l(e.$t(`veo.button.actionUpsample4k`)),1)]),_:1})):o(``,!0),e.modelValue?.response?.data[0]?.video_url?(u(),n(_,{key:2,type:`info`,size:`small`,class:`btn-action`,onClick:t[2]||=t=>e.onPickAction(t,e.modelValue?.response,`upsample`,`gif`)},{default:m(()=>[i(l(e.$t(`veo.button.actionUpsampleGif`)),1)]),_:1})):o(``,!0),e.modelValue?.response?.data[0]?.video_url?(u(),n(_,{key:3,type:`info`,size:`small`,class:`btn-action`,onClick:t[3]||=t=>e.onPickAction(t,e.modelValue?.response,`extend`)},{default:m(()=>[i(l(e.$t(`veo.button.actionExtend`)),1)]),_:1})):o(``,!0),e.modelValue?.response?.data[0]?.video_url?(u(),n(_,{key:4,type:`info`,size:`small`,class:`btn-action`,onClick:t[4]||=t=>e.onPickAction(t,e.modelValue?.response,`reshoot`)},{default:m(()=>[i(l(e.$t(`veo.button.actionReshoot`)),1)]),_:1})):o(``,!0),e.modelValue?.response?.data[0]?.video_url?(u(),n(_,{key:5,type:`info`,size:`small`,class:`btn-action`,onClick:t[5]||=t=>e.onPickAction(t,e.modelValue?.response,`object_insert`)},{default:m(()=>[i(l(e.$t(`veo.button.actionObjectInsert`)),1)]),_:1})):o(``,!0),e.modelValue?.response?.data[0]?.video_url?(u(),n(_,{key:6,type:`info`,size:`small`,class:`btn-action`,onClick:t[6]||=t=>e.onPickAction(t,e.modelValue?.response,`object_remove`)},{default:m(()=>[i(l(e.$t(`veo.button.actionObjectRemove`)),1)]),_:1})):o(``,!0),a(v,{class:`box-item`,effect:`dark`,content:e.$t(`veo.message.downloadVideo`),placement:`top-start`},{default:m(()=>[e.modelValue?.response?.data[0]?.video_url?(u(),n(_,{key:0,type:`info`,size:`small`,class:`btn-action`,onClick:t[7]||=t=>e.onDownload(t,e.modelValue?.response?.data[0]?.video_url)},{default:m(()=>[i(l(e.$t(`veo.button.download`)),1)]),_:1})):o(``,!0)]),_:1},8,[`content`]),a(y,{path:`/veo/videos`,body:e.modelValue?.request},null,8,[`body`])])):o(``,!0),a(S,{closable:!1,class:`mt-2 success`},{default:m(()=>[r(`p`,Yt,[a(b,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+l(e.$t(`veo.name.model`))+`: `+l(e.modelValue?.request?.model),1)]),r(`p`,Xt,[a(b,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`veo.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),a(x,{content:e.modelValue?.id},null,8,[`content`])]),e.modelValue?.elapsed?(u(),p(`p`,Zt,[a(b,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+l(e.$t(`veo.name.elapsed`))+`: `+l(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):o(``,!0)]),_:1})])):o(``,!0),e.modelValue?.response?.success===!1?(u(),p(`div`,Qt,[a(S,{closable:!1,class:`failure`},{template:m(()=>[a(b,{icon:`fa-solid fa-exclamation-triangle`,class:`mr-1`}),i(` `+l(e.$t(`veo.name.failure`)),1)]),default:m(()=>[r(`p`,$t,[a(b,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`veo.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),a(x,{content:e.modelValue?.id},null,8,[`content`])]),r(`p`,en,[a(b,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),i(` `+l(e.$t(`veo.name.failureReason`))+`: `+l(e.modelValue?.response?.error?.message)+` `,1),a(x,{content:e.modelValue?.response?.error?.message},null,8,[`content`])]),e.modelValue?.elapsed?(u(),p(`p`,$,[a(b,{icon:`fa-solid fa-clock`,class:`mr-1`}),i(` `+l(e.$t(`veo.name.elapsed`))+`: `+l(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):o(``,!0),e.modelValue?.response?.trace_id?(u(),p(`p`,tn,[a(b,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+l(e.$t(`veo.name.traceId`))+`: `+l(e.modelValue?.response?.trace_id)+` `,1),a(x,{content:e.modelValue?.response?.trace_id},null,8,[`content`])])):o(``,!0)]),_:1})])):o(``,!0),e.modelValue?.response?.success===void 0?(u(),p(`div`,nn,[a(S,{closable:!1,class:`info`},{template:m(()=>[a(b,{icon:`fa-solid fa-exclamation-triangle`,class:`mr-1`}),i(` `+l(e.$t(`veo.name.failure`)),1)]),default:m(()=>[r(`p`,rn,[a(b,{icon:`fa-solid fa-magic`,class:`mr-1`}),i(` `+l(e.$t(`veo.name.taskId`))+`: `+l(e.modelValue?.id)+` `,1),a(x,{content:e.modelValue?.id},null,8,[`content`])]),e.modelValue?.response?.trace_id?(u(),p(`p`,an,[a(b,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),i(` `+l(e.$t(`veo.name.traceId`))+`: `+l(e.modelValue?.response?.trace_id)+` `,1),a(x,{content:e.modelValue?.response?.trace_id},null,8,[`content`])])):o(``,!0)]),_:1})])):o(``,!0)])])}var sn=s({name:`RecentPanel`,components:{TaskPreview:I(It,[[`render`,on],[`__scopeId`,`data-v-9698fe5f`]]),NoTasks:oe,BotPlaceholder:X,ScrollList:re},props:{loading:{type:Boolean,default:!1}},emits:[`reach-top`],data(){return{job:0}},computed:{tasks(){return{...this.$store.state.veo?.tasks,items:this.$store.state.veo?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),cn={key:0},ln={key:2,class:`w-full h-full flex items-center justify-center`};function un(e,t,r,ee,i,s){let l=f(`bot-placeholder`),d=f(`task-preview`),h=f(`scroll-list`),_=f(`no-tasks`);return u(),p(g,null,[e.tasks?.items===void 0?(u(),p(`div`,cn,[a(l)])):e.tasks?.items?.length&&e.tasks?.items?.length>0?(u(),n(h,{key:1,ref:`scrollList`,class:`tasks h-full w-full overflow-y-auto`,loading:e.loading,onReachTop:t[0]||=t=>e.$emit(`reach-top`)},{default:m(()=>[(u(!0),p(g,null,c(e.tasks?.items,(e,t)=>(u(),n(d,{key:t,"model-value":e},null,8,[`model-value`]))),128))]),_:1},8,[`loading`])):o(``,!0),e.tasks?.items?.length===0?(u(),p(`div`,ln,[a(_)])):o(``,!0)],64)}var dn=I(sn,[[`render`,un]]),fn=N(`veo`),pn=s({name:`VeoIndex`,components:{ConfigPanel:Ft,Layout:me,RecentPanel:dn},mixins:[te],inject:[`initialized`],data(){return{task:void 0,job:0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.veo?.status?.getApplications===G.Request},tasksLoading(){return this.$store.state.veo?.status?.getTasks===G.Request||this.fetchingTasks},credential(){return this.$store.state.veo.credential},config(){return this.$store.state.veo.config},tasks(){return this.$store.state.veo.tasks}},watch:{tasks:{handler(e,t){e?.items?.length>t?.items?.length&&console.debug(`new tasks detected`)},deep:!0},initialized:{async handler(e){e&&(console.debug(`layout initialized`),await this.onGetTasks(),await this.onScrollDown(),this.job=window.setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService()},async unmounted(){window.clearInterval(this.job)},methods:{async onReachTop(){await ie({tasks:this.tasks,getTasks:()=>this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.applicationsLoading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){console.debug(`start onGetService`),await this.$store.dispatch(`veo/getService`),console.debug(`end onGetService`)},async onGetApplication(){console.debug(`start onGetApplication`),await this.$store.dispatch(`veo/getApplications`),console.debug(`end onGetApplication`),await this.onGetTasks()},async onScrollDown(){await this.$nextTick();let e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.applicationsLoading||this.fetchingTasks){console.debug(`loading`);return}console.debug(`start onGetTasks`,e);let{limit:t=5,createdAtMin:n,createdAtMax:r}=e||{};console.debug(`limit`,t,`createdAtMin`,n,`createdAtMax`,r),this.fetchingTasks=!0;try{await this.$store.dispatch(`veo/getTasks`,{limit:t,createdAtMin:n,createdAtMax:r})}finally{this.fetchingTasks=!1}},async onGenerate(){if(!z(this.uploadTracker,e=>this.$t(e),e=>U.warning(e)))return;let e={...this.config,callback_url:fn},t=this.credential?.token;if(!t){console.error(`no token specified`);return}if(e.action===`image2video`&&!(e.image_urls&&e.image_urls.length>0)){U.warning(this.$t(`veo.message.imageRequired`));return}(!e.image_urls||e.image_urls.length===0)&&delete e.image_urls,U.info(this.$t(`veo.message.startingTask`)),ne(`veo`,V.generate(e,{token:t})).then(()=>{U.success(this.$t(`veo.message.startTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?U.error(this.$t(`veo.message.usedUp`)):U.error(this.$t(`veo.message.startTaskFailed`))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}});function mn(e,t,r,ee,i,o){let s=f(`config-panel`),c=f(`recent-panel`),l=f(`layout`);return u(),n(l,null,{config:m(()=>[a(s,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),result:m(()=>[a(c,{ref:`recentPanel`,loading:e.loadingMore,onReachTop:e.onReachTop},null,8,[`loading`,`onReachTop`])]),_:1})}var hn=I(pn,[[`render`,mn]]);export{hn as default};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{$ as e,Bt as t,D as n,E as r,Ht as i,M as a,N as o,O as s,P as c,Q as l,Ut as u,X as d,_ as f,et as p,k as m,lt as h,ut as g,x as _}from"./vendor-chart-mdwpew_o.js";import{t as v}from"./button-DWzbdjZV.js";import{r as y,t as b}from"./select-BITgEgfP.js";import{t as x}from"./upload-DMzqzxP6.js";import{t as S}from"./tooltip-C3PYfh8V.js";import{t as C}from"./image-CWcemTUB.js";import{t as w}from"./alert-BJj7gY4q.js";import{t as T}from"./drawer-BvYPSxXh.js";import{$n as E,Qn as D,Xn as O,Zn as k,er as A,ir as ee,pi as te,rr as j,tr as M}from"./constants-C-bSXdJ_.js";import{At as N,E as P,Fn as F,Nt as I,Ot as L,Sr as R,dn as z,jt as B,kr as V,kt as H,yr as U}from"./index-BmC-XXKj.js";import{t as W}from"./index.es-Cawr8qgY.js";import{t as G}from"./CopyToClipboard-Cx0LOUlj.js";import{t as K}from"./ImagePreview--SDvXZzb.js";import{n as q}from"./taskDrawerMixin-Cr17Yxqk.js";import{t as J}from"./BotPlaceholder-CGjSVeUk.js";import{i as Y,n as X,t as Z}from"./pagination-B3P0PVH-.js";import{n as Q,t as ne}from"./NoTasks-l_P0QgKI.js";import{t as re}from"./Consumption-BKLhsHgd.js";import{t as ie}from"./ApiCodeButton-8YzSdLWx.js";import{t as ae}from"./VideoPlayer-BtXLkAAR.js";var oe=c({name:`LayoutSora`,components:{ElDrawer:T,ElButton:v,FontAwesomeIcon:W},mixins:[q]}),se={class:`main flex flex-row flex-1`},ce={class:`config w-[320px] flex-none h-full overflow-y-auto bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]`},le={class:`result h-full p-6 flex-1 flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]`};function ue(t,n,i,a,s,c){let l=p(`font-awesome-icon`),u=p(`el-button`),_=p(`el-drawer`);return d(),m(`div`,se,[r(`div`,ce,[e(t.$slots,`config`,{},void 0,!0)]),r(`div`,le,[e(t.$slots,`result`,{},void 0,!0)]),g(o(u,{circle:``,class:`menu`,onClick:n[0]||=e=>t.drawer=!0},{default:h(()=>[o(l,{icon:`fa-solid fa-magic`})]),_:1},512),[[f,!t.tasksEmpty]]),o(_,{modelValue:t.drawer,"onUpdate:modelValue":n[1]||=e=>t.drawer=e,direction:`ltr`,"with-header":!1,size:`350px`},{default:h(()=>[e(t.$slots,`config`,{},void 0,!0)]),_:3},8,[`modelValue`])])}var de=P(oe,[[`render`,ue],[`__scopeId`,`data-v-531ab990`]]),fe=c({name:`ModelSelector`,components:{ElSelect:y,ElOption:b},props:{modelValue:{type:String,default:void 0}},emits:[`update:modelValue`],data(){return{options:[{value:ee,label:`sora-2`},{value:j,label:`sora-2-pro`}]}},computed:{value:{get(){return this.$store.state.sora?.config?.model},set(e){let t=this.$store.state.sora?.config||{},n=O[e]||[10],r=t.duration,i=r&&n.includes(r)?r:n.includes(10)?10:n[0],a={...t,model:e,duration:i,size:t.size||`small`};this.$store.commit(`sora/setConfig`,a)}}},mounted(){this.value||=E}}),pe={class:`field`},me={class:`title font-bold`};function he(e,t,i,a,s,c){let f=p(`el-option`),g=p(`el-select`);return d(),m(`div`,pe,[r(`h2`,me,u(e.$t(`sora.name.model`)),1),o(g,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`sora.placeholder.select`)},{default:h(()=>[(d(!0),m(_,null,l(e.options,e=>(d(),n(f,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var ge=P(fe,[[`render`,he],[`__scopeId`,`data-v-0cb7913d`]]),_e=c({name:`ActionSelector`,components:{ElSelect:y,ElOption:b},data(){return{}},computed:{options(){return[{value:`text2video`,label:this.$t(`sora.button.action1`)},{value:`image2video`,label:this.$t(`sora.button.action2`)}]},value:{get(){return this.$store.state.sora?.config?.action},set(e){this.$store.commit(`sora/setConfig`,{...this.$store.state.sora?.config,action:e})}}},mounted(){this.value||=D}}),ve={class:`field`},ye={class:`title font-bold`},be={class:`float-left`};function xe(e,t,i,a,s,c){let f=p(`el-option`),g=p(`el-select`);return d(),m(`div`,ve,[r(`h2`,ye,u(e.$t(`sora.name.action`)),1),o(g,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`sora.placeholder.select`),clearable:``},{default:h(()=>[(d(!0),m(_,null,l(e.options,e=>(d(),n(f,{key:e.value,label:e.label,value:e.value},{default:h(()=>[r(`span`,be,u(e.label),1)]),_:2},1032,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Se=P(_e,[[`render`,xe],[`__scopeId`,`data-v-7b82fa7f`]]),Ce=c({name:`DurationSelector`,components:{ElSelect:y,ElOption:b},computed:{model(){return this.$store.state.sora?.config?.model||`sora-2`},allowedDurations(){return O[this.model]||[10]},optionsForModel(){return this.allowedDurations.map(e=>({value:e,label:`${e}s`}))},value:{get(){return this.$store.state.sora?.config?.duration},set(e){let t=this.$store.state.sora?.config||{};this.$store.commit(`sora/setConfig`,{...t,duration:e})}}},watch:{allowedDurations(){let e=this.allowedDurations;if(!e.includes(this.value)){let t=e.includes(10)?10:e[0];this.value=t}}},mounted(){this.value||=10}}),we={class:`field`},Te={class:`control`},Ee={class:`title font-bold`};function De(e,t,i,a,s,c){let f=p(`el-option`),g=p(`el-select`);return d(),m(`div`,we,[r(`div`,Te,[r(`h2`,Ee,u(e.$t(`sora.name.duration`)),1),o(g,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`sora.placeholder.select`)},{default:h(()=>[(d(!0),m(_,null,l(e.optionsForModel,e=>(d(),n(f,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])])}var Oe=P(Ce,[[`render`,De],[`__scopeId`,`data-v-c2934598`]]),ke=c({name:`OrientationSelector`,data(){return{options:[{value:`portrait`,labelKey:`sora.option.portrait`,width:13,height:25},{value:`landscape`,labelKey:`sora.option.landscape`,width:25,height:13}]}},computed:{active(){let e=this.options.findIndex(e=>e.value===this.value);return e>=0?e:0},value:{get(){return this.$store.state.sora?.config?.orientation},set(e){console.debug(`set orientation`,e),this.$store.commit(`sora/setConfig`,{...this.$store.state?.sora?.config,orientation:e})}}},mounted(){this.value||=A}}),Ae={class:`text-sm font-bold mb-2 block`},je={class:`items`},Me=[`onClick`],Ne={class:`name`};function Pe(e,n,a,o,s,c){return d(),m(`div`,null,[r(`span`,Ae,u(e.$t(`sora.name.orientation`)),1),r(`div`,je,[(d(!0),m(_,null,l(e.options,(n,a)=>(d(),m(`div`,{key:a,class:t({active:e.active===a,item:!0}),onClick:t=>e.value=n.value},[r(`div`,{class:t([`preview`,n.value])},[r(`div`,{class:`rect`,style:i({width:n.width+`px`,height:n.height+`px`})},null,4)],2),r(`p`,Ne,u(e.$t(n.labelKey)),1)],10,Me))),128))])])}var Fe=P(ke,[[`render`,Pe],[`__scopeId`,`data-v-a20be6d9`]]),Ie=c({name:`StartEndImage`,components:{ElUpload:x,ElButton:v,InfoIcon:Y,FontAwesomeIcon:W,ImagePreview:K},mixins:[B,H],emits:[`change`],data(){return{fileList:[],uploadUrl:R()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e?.response?.file_url)},value:{get(){return this.$store.state?.sora?.config?.image_urls},set(){}}},mounted(){this.value||=void 0,this.onSetStartEndImageUrl()},methods:{onExceed(){V.warning(this.$t(`sora.message.uploadReferencesExceed`))},onError(){V.error(this.$t(`sora.message.uploadReferencesError`))},onSetStartEndImageUrl(){let e=this.urls;this.$store.commit(`sora/setConfig`,{...this.$store.state?.sora?.config,image_urls:e})},async onSuccess(){this.onSetStartEndImageUrl()}}}),Le={class:`relative`},Re={class:`flex justify-between`},ze={class:`flex justify-start items-center`},Be={class:`text-sm font-bold`};function Ve(e,t,i,c,l,f){let g=p(`info-icon`),_=p(`image-preview`),v=p(`font-awesome-icon`),y=p(`el-button`),b=p(`el-upload`);return d(),m(`div`,Le,[r(`div`,Re,[r(`div`,ze,[r(`span`,Be,u(e.$t(`sora.name.startEndImage`)),1),o(g,{content:e.$t(`sora.description.uploadStartEndImage`)},null,8,[`content`])])]),o(b,{ref:`uploader`,"file-list":e.fileList,"onUpdate:fileList":t[0]||=t=>e.fileList=t,name:`file`,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,limit:2,class:`upload-wrapper`,multiple:!1,action:e.uploadUrl,"list-type":`picture`,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{file:h(({file:t})=>[t.url&&t.percentage!==void 0?(d(),n(_,{key:0,url:t.url,name:t.name,percentage:t.percentage,onRemove:n=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])):s(``,!0)]),default:h(()=>[o(y,{round:``,type:`primary`,size:`small`,class:`btn btn-upload`},{default:h(()=>[o(v,{icon:`fa-solid fa-upload`,class:`icon mr-1`}),a(` `+u(e.$t(`sora.button.uploadReferences`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`headers`])])}var He=P(Ie,[[`render`,Ve],[`__scopeId`,`data-v-4f7d9ba5`]]),Ue=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),We=c({name:`SizeSelector`,components:{ElSelect:y,ElOption:b},data(){return{options:k.map(e=>({value:e,label:Ue(e)}))}},computed:{value:{get(){return this.$store.state.sora?.config?.size},set(e){let t=this.$store.state.sora?.config||{};this.$store.commit(`sora/setConfig`,{...t,size:e})}}},mounted(){this.value||=M}}),Ge={class:`field`},Ke={class:`control`},qe={class:`title font-bold`};function Je(e,t,i,a,s,c){let f=p(`el-option`),g=p(`el-select`);return d(),m(`div`,Ge,[r(`div`,Ke,[r(`h2`,qe,u(e.$t(`sora.name.size`)),1),o(g,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,class:`value`,placeholder:e.$t(`sora.placeholder.select`)},{default:h(()=>[(d(!0),m(_,null,l(e.options,e=>(d(),n(f,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])])}var Ye=P(We,[[`render`,Je],[`__scopeId`,`data-v-8c485f0f`]]),Xe=c({name:`PromptInput`,components:{PromptTextarea:Q},computed:{prompt:{get(){return this.$store.state.sora?.config?.prompt},set(e){this.$store.commit(`sora/setConfig`,{...this.$store.state.sora?.config,prompt:e})}}},mounted(){this.prompt||=``}});function Ze(e,t,r,i,a,o){let s=p(`prompt-textarea`);return d(),n(s,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||=t=>e.prompt=t,title:e.$t(`sora.name.prompt`),info:e.$t(`sora.description.prompt`),placeholder:e.$t(`sora.placeholder.prompt`)},null,8,[`modelValue`,`title`,`info`,`placeholder`])}var Qe=c({name:`ConfigPanel`,components:{ElButton:v,Consumption:re,FontAwesomeIcon:W,PromptInput:P(Xe,[[`render`,Ze]]),ModelSelector:ge,StartEndImage:He,SizeSelector:Ye,ActionSelector:Se,OrientationSelector:Fe,DurationSelector:Oe},emits:[`generate`],computed:{config(){return this.$store.state.sora?.config},consumption(){return I(this.config,this.service?.cost)},service(){return this.$store.state.sora?.service}},methods:{onGenerate(){this.$emit(`generate`)}}}),$e={class:`flex flex-col h-full`},et={class:`flex-1 overflow-y-auto p-5`},tt={class:`flex flex-col items-center justify-center px-5 pb-5`};function nt(e,t,n,i,s,c){let l=p(`model-selector`),_=p(`action-selector`),v=p(`duration-selector`),y=p(`size-selector`),b=p(`orientation-selector`),x=p(`prompt-input`),S=p(`start-end-image`),C=p(`consumption`),w=p(`font-awesome-icon`),T=p(`el-button`);return d(),m(`div`,$e,[r(`div`,et,[o(l,{class:`mb-4`}),o(_,{class:`mb-4`}),o(v,{class:`mb-4`}),o(y,{class:`mb-4`}),o(b,{class:`mb-4`}),o(x,{class:`mb-4`}),g(o(S,{class:`mb-2`},null,512),[[f,e.config?.action===`image2video`]])]),r(`div`,tt,[o(C,{value:e.consumption,service:e.service},null,8,[`value`,`service`]),o(T,{type:`primary`,class:`btn w-full`,round:``,onClick:e.onGenerate},{default:h(()=>[o(w,{icon:`fa-solid fa-magic`,class:`mr-2`}),a(` `+u(e.$t(`sora.button.generate`)),1)]),_:1},8,[`onClick`])])])}var rt=P(Qe,[[`render`,nt]]),it=c({name:`TaskPreview`,components:{ElImage:C,CopyToClipboard:G,FontAwesomeIcon:W,ElAlert:w,VideoPlayer:ae,ElTooltip:S,ElButton:v,ApiCodeButton:ie},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){return this.$store.state.sora?.application},config(){return this.$store.state.sora?.config}},methods:{onDownload(e,t){e?.stopPropagation(),console.log(`on download`),window.open(t,`_blank`)},onOpenVideo(e){window.open(e,`_blank`)}}}),at={class:`preview`},ot={class:`left`},st={class:`main`},ct={class:`bot`},lt={class:`datetime`},ut={class:`info`},dt={key:0,class:`prompt mt-2`},ft={key:0},pt={key:1},mt={key:0,class:t({content:!0,failed:!0})},ht={key:0,class:`mb-4`},gt={key:1,class:t({operations:!0,"mt-2":!0})},_t={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},vt={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},yt={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},bt={key:1,class:t({content:!0})},xt={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},St={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},Ct={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-2`},wt={key:1,class:`text-[var(--el-text-color-regular)] text-xs mb-0`},Tt={key:2,class:t({content:!0})},Et={class:`text-[var(--el-text-color-regular)] text-xs mb-2`},$={key:0,class:`text-[var(--el-text-color-regular)] text-xs mb-0`};function Dt(e,t,i,c,l,f){let g=p(`el-image`),_=p(`video-player`),v=p(`el-button`),y=p(`el-tooltip`),b=p(`api-code-button`),x=p(`font-awesome-icon`),S=p(`copy-to-clipboard`),C=p(`el-alert`);return d(),m(`div`,at,[r(`div`,ot,[o(g,{src:`https://cdn.acedata.cloud/z5id1u.png`,class:`avatar`})]),r(`div`,st,[r(`div`,ct,[a(u(e.$t(`sora.name.soraBot`))+` `,1),r(`span`,lt,u(e.$dayjs.format(``+new Date(parseFloat((e.modelValue?.created_at||``).toString())*1e3))),1)]),r(`div`,ut,[e.modelValue?.request?.prompt?(d(),m(`p`,dt,[a(u(e.modelValue?.request?.prompt)+` `,1),e.modelValue?.response?s(``,!0):(d(),m(`span`,ft,` - (`+u(e.$t(`sora.status.pending`))+`) `,1)),Array.isArray(e.modelValue?.response?.data)&&e.modelValue?.response?.data[0]?.state===`pending`?(d(),m(`span`,pt,` - (`+u(e.$t(`sora.status.processing`))+`) `,1)):s(``,!0)])):s(``,!0)]),e.modelValue?.response?.success===!0&&e.modelValue?.response?.data?(d(),m(`div`,mt,[e.modelValue?.response?.data[0]?.video_url?(d(),m(`div`,ht,[o(_,{src:e.modelValue?.response?.data[0]?.video_url},null,8,[`src`])])):s(``,!0),e.modelValue?.response.success?(d(),m(`div`,gt,[o(y,{class:`box-item`,effect:`dark`,content:e.$t(`sora.message.downloadVideo`),placement:`top-start`},{default:h(()=>[e.modelValue?.response?.data[0]?.video_url?(d(),n(v,{key:0,type:`info`,size:`small`,class:`btn-action`,onClick:t[0]||=t=>e.onDownload(t,e.modelValue?.response?.data[0]?.video_url)},{default:h(()=>[a(u(e.$t(`sora.button.download`)),1)]),_:1})):s(``,!0)]),_:1},8,[`content`]),o(b,{path:`/sora/videos`,body:e.modelValue?.request},null,8,[`body`])])):s(``,!0),o(C,{closable:!1,class:`mt-2 success`},{default:h(()=>[r(`p`,_t,[o(x,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),a(` `+u(e.$t(`sora.name.model`))+`: `+u(e.modelValue?.request?.model),1)]),r(`p`,vt,[o(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),a(` `+u(e.$t(`sora.name.taskId`))+`: `+u(e.modelValue?.id)+` `,1),o(S,{content:e.modelValue?.id},null,8,[`content`])]),e.modelValue?.elapsed?(d(),m(`p`,yt,[o(x,{icon:`fa-solid fa-clock`,class:`mr-1`}),a(` `+u(e.$t(`sora.name.elapsed`))+`: `+u(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):s(``,!0)]),_:1})])):s(``,!0),e.modelValue?.response?.success===!1?(d(),m(`div`,bt,[o(C,{closable:!1,class:`failure`},{template:h(()=>[o(x,{icon:`fa-solid fa-exclamation-triangle`,class:`mr-1`}),a(` `+u(e.$t(`sora.name.failure`)),1)]),default:h(()=>[r(`p`,xt,[o(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),a(` `+u(e.$t(`sora.name.taskId`))+`: `+u(e.modelValue?.id)+` `,1),o(S,{content:e.modelValue?.id},null,8,[`content`])]),r(`p`,St,[o(x,{icon:`fa-solid fa-circle-info`,class:`mr-1`}),a(` `+u(e.$t(`sora.name.failureReason`))+`: `+u(e.modelValue?.response?.error?.message)+` `,1),o(S,{content:e.modelValue?.response?.error?.message},null,8,[`content`])]),e.modelValue?.elapsed?(d(),m(`p`,Ct,[o(x,{icon:`fa-solid fa-clock`,class:`mr-1`}),a(` `+u(e.$t(`sora.name.elapsed`))+`: `+u(e.modelValue?.elapsed?.toFixed(2))+`s `,1)])):s(``,!0),e.modelValue?.response?.trace_id?(d(),m(`p`,wt,[o(x,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),a(` `+u(e.$t(`sora.name.traceId`))+`: `+u(e.modelValue?.response?.trace_id)+` `,1),o(S,{content:e.modelValue?.response?.trace_id},null,8,[`content`])])):s(``,!0)]),_:1})])):s(``,!0),e.modelValue?.response?.success===void 0?(d(),m(`div`,Tt,[o(C,{closable:!1,class:`info`},{template:h(()=>[o(x,{icon:`fa-solid fa-exclamation-triangle`,class:`mr-1`}),a(` `+u(e.$t(`sora.name.failure`)),1)]),default:h(()=>[r(`p`,Et,[o(x,{icon:`fa-solid fa-magic`,class:`mr-1`}),a(` `+u(e.$t(`sora.name.taskId`))+`: `+u(e.modelValue?.id)+` `,1),o(S,{content:e.modelValue?.id},null,8,[`content`])]),e.modelValue?.response?.trace_id?(d(),m(`p`,$,[o(x,{icon:`fa-solid fa-hashtag`,class:`mr-1`}),a(` `+u(e.$t(`sora.name.traceId`))+`: `+u(e.modelValue?.response?.trace_id)+` `,1),o(S,{content:e.modelValue?.response?.trace_id},null,8,[`content`])])):s(``,!0)]),_:1})])):s(``,!0)])])}var Ot=c({name:`RecentPanel`,components:{TaskPreview:P(it,[[`render`,Dt],[`__scopeId`,`data-v-564d52e9`]]),NoTasks:ne,BotPlaceholder:J,ScrollList:X},props:{loading:{type:Boolean,default:!1}},emits:[`reach-top`],data(){return{job:0}},computed:{tasks(){return{...this.$store.state.sora?.tasks,items:this.$store.state.sora?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),kt={key:0},At={key:2,class:`w-full h-full flex items-center justify-center`};function jt(e,t,r,i,a,c){let u=p(`bot-placeholder`),f=p(`task-preview`),g=p(`scroll-list`),v=p(`no-tasks`);return d(),m(_,null,[e.tasks?.items===void 0?(d(),m(`div`,kt,[o(u)])):e.tasks?.items?.length&&e.tasks?.items?.length>0?(d(),n(g,{key:1,ref:`scrollList`,class:`tasks h-full w-full overflow-y-auto`,loading:e.loading,onReachTop:t[0]||=t=>e.$emit(`reach-top`)},{default:h(()=>[(d(!0),m(_,null,l(e.tasks?.items,(e,t)=>(d(),n(f,{key:t,"model-value":e},null,8,[`model-value`]))),128))]),_:1},8,[`loading`])):s(``,!0),e.tasks?.items?.length===0?(d(),m(`div`,At,[o(v)])):s(``,!0)],64)}var Mt=P(Ot,[[`render`,jt]]),Nt=te(`sora`),Pt=c({name:`SoraIndex`,components:{ConfigPanel:rt,Layout:de,RecentPanel:Mt},mixins:[N],inject:[`initialized`],data(){return{task:void 0,job:0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.sora?.status?.getApplications===U.Request},tasksLoading(){return this.$store.state.sora?.status?.getTasks===U.Request||this.fetchingTasks},credential(){return this.$store.state.sora.credential},config(){return this.$store.state.sora.config},tasks(){return this.$store.state.sora.tasks}},watch:{tasks:{handler(e,t){e?.items?.length>t?.items?.length&&console.debug(`new tasks detected`)},deep:!0},initialized:{async handler(e){e&&(console.debug(`layout initialized`),await this.onGetTasks(),await this.onScrollDown(),this.job=window.setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService()},async unmounted(){window.clearInterval(this.job)},methods:{async onReachTop(){await Z({tasks:this.tasks,getTasks:()=>this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.applicationsLoading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){console.debug(`start onGetService`),await this.$store.dispatch(`sora/getService`),console.debug(`end onGetService`)},async onGetApplication(){console.debug(`start onGetApplication`),await this.$store.dispatch(`sora/getApplications`),console.debug(`end onGetApplication`),await this.onGetTasks()},async onScrollDown(){await this.$nextTick();let e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.applicationsLoading||this.fetchingTasks){console.debug(`loading`);return}console.debug(`start onGetTasks`,e);let{limit:t=5,createdAtMin:n,createdAtMax:r}=e||{};console.debug(`limit`,t,`createdAtMin`,n,`createdAtMax`,r),this.fetchingTasks=!0;try{await this.$store.dispatch(`sora/getTasks`,{limit:t,createdAtMin:n,createdAtMax:r})}finally{this.fetchingTasks=!1}},async onGenerate(){if(!L(this.uploadTracker,e=>this.$t(e),e=>V.warning(e)))return;let e={...this.config,callback_url:Nt},t=this.credential?.token;if(!t){console.error(`no token specified`);return}V.info(this.$t(`sora.message.startingTask`)),F(`sora`,z.generate(e,{token:t})).then(()=>{V.success(this.$t(`sora.message.startTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?V.error(this.$t(`sora.message.usedUp`)):V.error(this.$t(`sora.message.startTaskFailed`))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}});function Ft(e,t,r,i,a,s){let c=p(`config-panel`),l=p(`recent-panel`),u=p(`layout`);return d(),n(u,null,{config:h(()=>[o(c,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),result:h(()=>[o(l,{ref:`recentPanel`,loading:e.loadingMore,onReachTop:e.onReachTop},null,8,[`loading`,`onReachTop`])]),_:1})}var It=P(Pt,[[`render`,Ft]]);export{It as default};
@@ -1 +0,0 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{D as e,E as t,M as n,N as r,O as i,P as a,Ut as o,X as s,et as c,k as l,lt as u,x as d}from"./vendor-chart-mdwpew_o.js";import{t as f}from"./button-DWzbdjZV.js";import{$ as p,Q as m,Z as h}from"./constants-C-bSXdJ_.js";import{E as ee,Et as g,r as _,s as v,v as y,x as b,y as x}from"./index-BmC-XXKj.js";import{t as S}from"./index.es-Cawr8qgY.js";var C=a({name:`DownloadIndex`,components:{ElButton:f,QrCode:g,FontAwesomeIcon:S},data(){return{faAndroid:y,faApple:x,faGooglePlay:b,faDownload:v,faCircleInfo:_}},computed:{version(){return p},brandTitle(){return this.$store.state.site?.title||`AceData`},brandLogo(){return this.$store.state.site?.logo||`/assets/logo-CDy94G52.png`},androidDownloadUrl(){return h},hasAndroidDownload(){return!!h},playStoreUrl(){return m},hasPlayStore(){return!!m},iosDownloadUrl(){return``},iosFallbackUrl(){return``},hasIosDownload(){return!1}},methods:{openSupport(){window.open(`https://platform.acedata.cloud/support`,`_blank`)}}}),w={class:`download-page`},T={class:`download-page__inner`},E={class:`hero`},D={class:`hero__brand`},O=[`src`,`alt`],k={class:`hero__eyebrow`},A={class:`hero__title`},j={class:`hero__subtitle`},M={class:`hero__badges`},N={class:`badge badge--live`},P={class:`badge`},F={class:`badge`},I={class:`hero__actions`},L={class:`platforms`},R={class:`platform platform--android`},z={class:`platform__head`},B={class:`platform__os`},V={class:`chip chip--live`},H={class:`platform__title`},U={class:`platform__text`},W={key:0,class:`qr`},G={class:`qr__hint`},te={class:`platform__foot platform__foot--stack`},K={key:0,class:`platform__fallback`},q={class:`platform__meta`},J={class:`platform__meta`},Y={class:`platform platform--ios`},X={class:`platform__head`},Z={class:`platform__os`},Q={class:`chip chip--pending`},ne={class:`platform__title`},re={class:`platform__text`},ie={key:0,class:`platform__foot platform__foot--stack`},ae={class:`btn-row`},oe={class:`platform__meta`},se={class:`ios-soon`},ce={class:`ios-soon__text`},le={class:`platform__foot platform__foot--stack`},ue={class:`advantages`},de={class:`advantage`},fe={class:`advantage__title`},pe={class:`advantage__text`},$={class:`advantage`},me={class:`advantage__title`},he={class:`advantage__text`},ge={class:`advantage`},_e={class:`advantage__title`},ve={class:`advantage__text`},ye={class:`note`},be={class:`note__text`};function xe(a,f,p,m,h,ee){let g=c(`font-awesome-icon`),_=c(`el-button`),v=c(`qr-code`);return s(),l(`div`,w,[f[8]||=t(`div`,{class:`download-page__glow`,"aria-hidden":`true`},null,-1),t(`div`,T,[t(`header`,E,[t(`span`,D,[t(`img`,{src:a.brandLogo,alt:a.brandTitle,class:`hero__logo`},null,8,O)]),t(`p`,k,o(a.brandTitle)+` · `+o(a.$t(`common.nav.mobileApp`)),1),t(`h1`,A,o(a.$t(`common.title.mobileApp`)),1),t(`p`,j,o(a.$t(`common.message.mobileAppDescription`)),1),t(`div`,M,[t(`span`,N,[f[0]||=t(`span`,{class:`badge__dot`},null,-1),n(o(a.$t(`common.message.mobileAvailableNow`)),1)]),t(`span`,P,`v`+o(a.version),1),t(`span`,F,o(a.$t(`common.message.mobileSharedAccount`)),1)]),t(`div`,I,[a.hasPlayStore?(s(),e(_,{key:0,type:`primary`,round:``,size:`large`,tag:`a`,href:a.playStoreUrl,target:`_blank`},{default:u(()=>[r(g,{icon:a.faGooglePlay,class:`btn-icon`},null,8,[`icon`]),n(` `+o(a.$t(`common.button.getOnGooglePlay`)),1)]),_:1},8,[`href`])):a.hasAndroidDownload?(s(),e(_,{key:1,type:`primary`,round:``,size:`large`,tag:`a`,href:a.androidDownloadUrl,target:`_blank`},{default:u(()=>[r(g,{icon:a.faAndroid,class:`btn-icon`},null,8,[`icon`]),n(` `+o(a.$t(`common.button.downloadAndroid`)),1)]),_:1},8,[`href`])):i(``,!0),r(_,{round:``,size:`large`,class:`btn-ghost`,onClick:a.openSupport},{default:u(()=>[n(o(a.$t(`common.nav.support`)),1)]),_:1},8,[`onClick`])])]),t(`section`,L,[t(`article`,R,[t(`div`,z,[t(`span`,B,[r(g,{icon:a.faAndroid,class:`platform__os-icon`},null,8,[`icon`]),f[1]||=n(` Android `,-1)]),t(`span`,V,[f[2]||=t(`span`,{class:`chip__dot`},null,-1),n(o(a.$t(`common.message.mobileAvailableNow`)),1)])]),t(`h2`,H,o(a.$t(`common.button.downloadAndroid`)),1),t(`p`,U,o(a.$t(`common.message.mobileAndroidHint`)),1),a.hasPlayStore||a.hasAndroidDownload?(s(),l(`div`,W,[r(v,{value:a.hasPlayStore?a.playStoreUrl:a.androidDownloadUrl,width:184,height:184,class:`qr__img`,type:`image/png`,color:{dark:`#0e2a33ff`,light:`#ffffffff`}},null,8,[`value`]),t(`p`,G,o(a.hasPlayStore?a.$t(`common.message.mobilePlayStoreHint`):a.$t(`common.message.mobileSecureDelivery`)),1)])):i(``,!0),t(`div`,te,[a.hasPlayStore?(s(),e(_,{key:0,type:`primary`,round:``,size:`large`,tag:`a`,href:a.playStoreUrl,target:`_blank`},{default:u(()=>[r(g,{icon:a.faGooglePlay,class:`btn-icon`},null,8,[`icon`]),n(` `+o(a.$t(`common.button.getOnGooglePlay`)),1)]),_:1},8,[`href`])):i(``,!0),a.hasAndroidDownload?(s(),l(d,{key:1},[a.hasPlayStore?(s(),l(`div`,K,[r(_,{round:``,tag:`a`,href:a.androidDownloadUrl,target:`_blank`,class:`btn-ghost`},{default:u(()=>[r(g,{icon:a.faDownload,class:`btn-icon`},null,8,[`icon`]),n(` `+o(a.$t(`common.button.downloadAndroid`)),1)]),_:1},8,[`href`]),t(`span`,q,o(a.$t(`common.message.mobileApkFallback`))+` · v`+o(a.version),1)])):(s(),l(d,{key:1},[r(_,{type:`primary`,round:``,size:`large`,tag:`a`,href:a.androidDownloadUrl,target:`_blank`},{default:u(()=>[r(g,{icon:a.faDownload,class:`btn-icon`},null,8,[`icon`]),n(` `+o(a.$t(`common.button.downloadAndroid`)),1)]),_:1},8,[`href`]),t(`span`,J,o(a.$t(`common.message.mobileDirectInstall`))+` · v`+o(a.version),1)],64))],64)):i(``,!0)])]),t(`article`,Y,[t(`div`,X,[t(`span`,Z,[r(g,{icon:a.faApple,class:`platform__os-icon`},null,8,[`icon`]),f[3]||=n(` iOS `,-1)]),t(`span`,Q,[f[4]||=t(`span`,{class:`chip__dot`},null,-1),n(o(a.$t(`common.message.mobileComingSoon`)),1)])]),t(`h2`,ne,o(a.$t(`common.button.downloadIos`)),1),t(`p`,re,o(a.hasIosDownload?a.$t(`common.message.mobileIosHint`):a.$t(`common.message.mobileIosPending`)),1),a.hasIosDownload?(s(),l(`div`,ie,[t(`div`,ae,[r(_,{type:`primary`,round:``,size:`large`,tag:`a`,href:a.iosDownloadUrl,target:`_blank`},{default:u(()=>[r(g,{icon:a.faApple,class:`btn-icon`},null,8,[`icon`]),n(` `+o(a.$t(`common.button.installIos`)),1)]),_:1},8,[`href`]),r(_,{round:``,size:`large`,class:`btn-ghost`,tag:`a`,href:a.iosFallbackUrl,target:`_blank`},{default:u(()=>[n(o(a.$t(`common.button.downloadIos`)),1)]),_:1},8,[`href`])]),t(`span`,oe,o(a.$t(`common.message.mobileInstallNote`)),1)])):(s(),l(d,{key:1},[t(`div`,se,[r(g,{icon:a.faApple,class:`ios-soon__icon`},null,8,[`icon`]),t(`p`,ce,o(a.$t(`common.message.mobileComingSoon`)),1)]),t(`div`,le,[r(_,{round:``,size:`large`,class:`btn-ghost`,onClick:a.openSupport},{default:u(()=>[n(o(a.$t(`common.nav.support`)),1)]),_:1},8,[`onClick`])])],64))])]),t(`section`,ue,[t(`article`,de,[f[5]||=t(`span`,{class:`advantage__num`},`01`,-1),t(`h3`,fe,o(a.$t(`common.title.mobileFastAccess`)),1),t(`p`,pe,o(a.$t(`common.message.mobileFastAccess`)),1)]),t(`article`,$,[f[6]||=t(`span`,{class:`advantage__num`},`02`,-1),t(`h3`,me,o(a.$t(`common.title.mobileTrustedRelease`)),1),t(`p`,he,o(a.$t(`common.message.mobileTrustedRelease`)),1)]),t(`article`,ge,[f[7]||=t(`span`,{class:`advantage__num`},`03`,-1),t(`h3`,_e,o(a.$t(`common.title.mobileUnifiedExperience`)),1),t(`p`,ve,o(a.$t(`common.message.mobileUnifiedExperience`)),1)])]),t(`aside`,ye,[r(g,{icon:a.faCircleInfo,class:`note__icon`},null,8,[`icon`]),t(`p`,be,o(a.$t(`common.message.mobileInstallNote`)),1)])])])}var Se=ee(C,[[`render`,xe],[`__scopeId`,`data-v-46efd51c`]]);export{Se as default};
@@ -1,2 +0,0 @@
1
- import{A as e,B as t,C as n,D as r,E as i,F as a,I as o,L as s,M as c,N as l,O as u,P as d,R as f,S as ee,T as te,_ as ne,a as p,b as m,c as h,d as g,f as _,fi as v,g as re,h as y,i as b,j as ie,k as x,l as S,m as C,n as w,o as T,p as E,r as D,s as O,t as k,u as A,v as j,w as M,x as N,y as P,z as F}from"./constants-C-bSXdJ_.js";import{Dr as I,Ln as L,Tr as R,Wt as z,yr as B}from"./index-BmC-XXKj.js";import{a as ae,i as V,n as H,o as U,r as W}from"./codingBridgeNotify-wulcISIB.js";var G=()=>typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID().replace(/-/g,``):`${Date.now().toString(16)}${Math.random().toString(16).slice(2)}`,K=()=>{try{return typeof localStorage<`u`&&localStorage.getItem(`cbDebug`)===`1`}catch{return!1}},q=(e,t)=>{if(!K())return;let n=t?.payload??{};console.debug(`[codingBridge]`,e,{type:t?.type,id:t?.id,node_id:t?.node_id??t?.from_node,action:n?.action,event:n?.event,session_id:n?.session_id,trace_id:n?.trace_id})},J=class{ws;token;handlers;reconnectDelay=t;reconnectTimer;closedByUser=!1;constructor(e,t){this.token=e,this.handlers=t}get isOpen(){return this.ws?.readyState===WebSocket.OPEN}connect(){this.closedByUser=!1,this.open()}open(){if(this.ws&&(this.ws.readyState===WebSocket.OPEN||this.ws.readyState===WebSocket.CONNECTING))return;let e=`${v}?token=${encodeURIComponent(this.token)}`,n;try{n=new WebSocket(e)}catch(e){console.warn(`[codingBridge] failed to open socket`,e),this.scheduleReconnect();return}this.ws=n,n.onopen=()=>{this.reconnectDelay=t,this.handlers.onOpen?.()},n.onmessage=e=>this.onMessage(e),n.onclose=()=>{this.handlers.onClose?.(),this.closedByUser||this.scheduleReconnect()},n.onerror=()=>{n.close()}}onMessage(e){let t;try{t=JSON.parse(e.data)}catch{return}let n=t?.payload??{};switch(q(`recv`,t),t?.type){case f:this.handlers.onEvent?.(n,t?.from_node);break;case o:this.handlers.onNodesSnapshot?.(n.nodes??[]);break;case s:this.handlers.onNodeStatus?.(n.node_id,n.status);break;case y:this.handlers.onRelayError?.(n.code??`error`,n.message??``);break;default:break}}scheduleReconnect(){if(this.closedByUser||this.reconnectTimer)return;let e=this.reconnectDelay;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.open()},e),this.reconnectDelay=Math.min(this.reconnectDelay*2,F)}sendEnvelope(e,t){if(!this.isOpen)return;let n={v:2,id:G(),ts:Date.now(),type:e,...t};q(`send`,n),this.ws?.send(JSON.stringify(n))}sendToNode(e,t){this.sendEnvelope(C,{node_id:e,payload:t})}listNodes(){this.sendEnvelope(_,{})}resume(e){this.sendEnvelope(E,{payload:{resume_from:e}})}close(){if(this.closedByUser=!0,this.reconnectTimer&&=(clearTimeout(this.reconnectTimer),void 0),this.ws){this.ws.onclose=null,this.ws.onerror=null,this.ws.onmessage=null,this.ws.onopen=null;try{this.ws.close()}catch{}this.ws=void 0}}},Y,X=()=>typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID().replace(/-/g,``):`${Date.now().toString(16)}${Math.random().toString(16).slice(2)}`,Z=(e,t,n)=>({id:X(),session_id:e,kind:t,ts:Date.now(),...n}),Q=e=>{try{let t=JSON.parse(e);if(t&&typeof t==`object`)return t}catch{}return{answers:{}}},oe=e=>{let t=Q(e).answers??{};return Object.entries(t).map(([e,t])=>`${e} → ${Array.isArray(t)?t.join(`, `):t}`).join(`
2
- `)},se=(e,t)=>{H({title:`Approval needed`,body:`Claude wants to use ${t.tool||`a tool`}. Tap to review.`,data:t},t=>{t.node_id&&e(`selectNode`,t.node_id)})},ce=(t,o,s,f,p)=>{let h=f?.event,g=f?.session_id,_=f?.trace_id,v=f?.seq;if(typeof v==`number`&&g){let e=s.lastSeq[g];if(e!==void 0&&v<=e)return;t(`setLastSeq`,{session_id:g,seq:v})}switch(g&&_&&t(`updateSession`,{session_id:g,trace_id:_}),h){case x:t(`upsertSession`,{session_id:g,node_id:p,status:`running`,cwd:f.cwd,model:f.model,...f.effort===void 0?{}:{effort:f.effort},...f.permission_mode===void 0?{}:{permission_mode:f.permission_mode},trace_id:_});break;case c:{let e=f.id;e&&s.events[g]?.find(t=>t.kind===`text`&&t.stream_id===e)?t(`appendDelta`,{session_id:g,stream_id:e,text:f.text??``}):t(`appendEvent`,Z(g,`text`,{text:f.text??``,stream_id:e,streaming:!0,trace_id:_}));break}case ie:{let e=f.id;e&&s.events[g]?.find(t=>t.kind===`text`&&t.stream_id===e)?t(`finalizeStream`,{session_id:g,stream_id:e,text:f.text}):t(`appendEvent`,Z(g,`text`,{text:f.text,trace_id:_}));break}case l:t(`appendEvent`,Z(g,`thinking`,{text:f.text,trace_id:_}));break;case a:t(`appendEvent`,Z(g,`tool_use`,{tool:f.tool,tool_use_id:f.tool_use_id,input:f.input,trace_id:_}));break;case d:t(`appendEvent`,Z(g,`tool_result`,{tool_use_id:f.tool_use_id,content:f.content,is_error:f.is_error,trace_id:_}));break;case N:t(`addPermission`,{request_id:f.request_id,session_id:g,node_id:p,tool:f.tool,input:f.input,title:f.title,display_name:f.display_name,description:f.description}),se(o,{node_id:p,session_id:g,request_id:f.request_id,tool:f.display_name||f.title||f.tool});break;case m:for(let e of f.requests??[])t(`addPermission`,{request_id:e.request_id,session_id:e.session_id,node_id:p,tool:e.tool,input:e.input,title:e.title,display_name:e.display_name,description:e.description});break;case ee:t(`removePermission`,f.request_id);break;case r:t(`finalizeAllStreams`,{session_id:g}),t(`appendEvent`,Z(g,`result`,{subtype:f.subtype,is_error:f.is_error,text:f.result,cost_usd:f.cost_usd,cut_uuid:f.cut_uuid,sdk_session_id:f.sdk_session_id,trace_id:_})),t(`updateSession`,{session_id:g,status:`idle`,cost_usd:f.cost_usd,...f.sdk_session_id?{sdk_session_id:f.sdk_session_id}:{}});break;case i:t(`appendEvent`,Z(g,`notice`,{text:f.text,subtype:f.code,command:f.command,level:f.level}));break;case te:t(`finalizeAllStreams`,{session_id:g}),t(`appendEvent`,Z(g,`error`,{text:f.message,trace_id:_})),t(`updateSession`,{session_id:g,status:`error`});break;case M:t(`finalizeAllStreams`,{session_id:g}),t(`updateSession`,{session_id:g,status:`closed`});break;case u:t(`rewindToCut`,{session_id:g,cut_uuid:f.cut_uuid}),f.prompt&&t(`appendEvent`,Z(g,`prompt`,{text:f.prompt,trace_id:_})),t(`updateSession`,{session_id:g,status:`running`});break;case e:o(`resyncSession`,g);break;case n:for(let e of f.sessions??[])t(`upsertSession`,{session_id:e.session_id,node_id:p,status:e.status??`idle`,cwd:e.cwd,model:e.model});break;case P:if(p){t(`setHistory`,{node_id:p,sessions:f.sessions??[]}),t(`updateStatus`,{key:`getHistory`,value:B.Success});let e=s.historyRef;e&&e.node_id===p&&!s.currentSessionId&&o(`getHistoryDetail`,e)}break;case j:le(t,s,f,p);break;case ne:t(`setDirectory`,{path:f.path,parent:f.parent??null,sep:f.sep??`/`,entries:f.entries??[],truncated:f.truncated,error:f.error});break;case re:p&&t(`setCapabilities`,{node_id:p,capabilities:{providers:f.providers??[]}});break;default:break}},le=(e,t,n,r)=>{let i=n?.session_id,a=n?.provider===`codex`?`codex`:`claude`;if(!i||!r)return;let o=a===`claude`,s=t.lastComposer?.[r]??{};e(`upsertSession`,{session_id:i,node_id:r,status:`idle`,cwd:n.cwd??s.cwd,model:n.model??s.model,effort:n.effort??s.effort,permission_mode:n.permission_mode??s.permissionMode,provider:a,started:!1,readonly:!o,resume_session_id:o?i:void 0}),e(`setEvents`,{session_id:i,events:(n.events??[]).map((e,t)=>({id:X(),session_id:i,kind:e.kind,ts:typeof e.ts==`number`?e.ts:Date.now()+t,text:e.text,tool:e.tool,tool_use_id:e.tool_use_id,input:e.input,content:e.content,is_error:e.is_error,subtype:e.subtype,cost_usd:e.cost_usd}))}),e(`setCurrentNode`,r),e(`setCurrentSession`,i),e(`setHistoryRef`,{node_id:r,provider:a,session_id:i})},$={namespaced:!0,state:L,mutations:{resetAll:e=>{Object.assign(e,L())},updateStatus:(e,t)=>{e.status[t.key]=t.value},setConnection:(e,t)=>{e.connection=t},setNodes:(e,t)=>{e.nodes=t},mergeNodeSnapshot:(e,t)=>{let n=new Set(t.map(e=>e.node_id));for(let t of e.nodes)t.status=n.has(t.node_id)?`online`:`offline`;for(let n of t)e.nodes.some(e=>e.node_id===n.node_id)||e.nodes.push({...n,status:`online`})},setNodeStatus:(e,t)=>{let n=e.nodes.find(e=>e.node_id===t.node_id);n&&(n.status=t.status)},setCurrentNode:(e,t)=>{e.currentNodeId=t},setCurrentSession:(e,t)=>{e.currentSessionId=t},upsertSession:(e,t)=>{e.sessions[t.session_id]={...e.sessions[t.session_id],...t},e.events[t.session_id]||(e.events[t.session_id]=[])},updateSession:(e,t)=>{let n=e.sessions[t.session_id];n&&(e.sessions[t.session_id]={...n,...t})},appendEvent:(e,t)=>{e.events[t.session_id]||(e.events[t.session_id]=[]),e.events[t.session_id].push(t)},truncateEventsBefore:(e,t)=>{let n=e.events[t.session_id];if(!n)return;let r=n.findIndex(e=>e.id===t.event_id);r>=0&&(e.events[t.session_id]=n.slice(0,r))},rewindToCut:(e,t)=>{let n=e.events[t.session_id];if(!n)return;if(!t.cut_uuid){e.events[t.session_id]=[];return}let r=n.findIndex(e=>e.kind===`result`&&e.cut_uuid===t.cut_uuid);r>=0&&(e.events[t.session_id]=n.slice(0,r+1))},setLastSeq:(e,t)=>{let n=e.lastSeq[t.session_id]??0;t.seq>n&&(e.lastSeq[t.session_id]=t.seq)},appendDelta:(e,t)=>{let n=e.events[t.session_id];if(!n)return;let r=n.find(e=>e.kind===`text`&&e.stream_id===t.stream_id);r&&(r.text=(r.text??``)+(t.text??``))},finalizeStream:(e,t)=>{let n=e.events[t.session_id];if(!n)return;let r=n.find(e=>e.kind===`text`&&e.stream_id===t.stream_id);r&&(typeof t.text==`string`&&(r.text=t.text),r.streaming=!1)},finalizeAllStreams:(e,t)=>{let n=e.events[t.session_id];if(n)for(let e of n)e.streaming&&=!1},setEvents:(e,t)=>{e.events[t.session_id]=t.events},setHistory:(e,t)=>{e.history[t.node_id]=t.sessions},setHistoryRef:(e,t)=>{e.historyRef=t},setDirectory:(e,t)=>{e.directory=t,e.directoryLoading=!1},setDirectoryLoading:(e,t)=>{e.directoryLoading=t},setLastComposer:(e,t)=>{e.lastComposer={...e.lastComposer,[t.node_id]:{...e.lastComposer[t.node_id],...t.prefs}}},setCapabilities:(e,t)=>{e.capabilities[t.node_id]=t.capabilities},addPermission:(e,t)=>{e.permissions.some(e=>e.request_id===t.request_id)||e.permissions.push(t)},removePermission:(e,t)=>{e.permissions=e.permissions.filter(e=>e.request_id!==t)},removeNodeData:(e,t)=>{delete e.history[t],delete e.capabilities[t],e.historyRef?.node_id===t&&(e.historyRef=void 0);for(let n of Object.values(e.sessions))n.node_id===t&&(delete e.sessions[n.session_id],delete e.events[n.session_id],delete e.lastSeq[n.session_id],e.currentSessionId===n.session_id&&(e.currentSessionId=void 0))}},actions:{resetAll:({commit:e})=>{e(`resetAll`)},getApplications:async()=>{},setApplication:async()=>{},getNodes:async({commit:e,rootState:t})=>{let n=t.token?.access;if(!n)return[];e(`updateStatus`,{key:`getNodes`,value:B.Request});try{let{data:t}=await z.getNodes({token:n});return e(`setNodes`,t.nodes??[]),e(`updateStatus`,{key:`getNodes`,value:B.Success}),t.nodes??[]}catch(t){throw e(`updateStatus`,{key:`getNodes`,value:B.Error}),t}},claimPair:async({commit:e,dispatch:t,rootState:n},r)=>{let i=n.token?.access;if(!i)throw Error(`not authenticated`);e(`updateStatus`,{key:`claimPair`,value:B.Request});try{let{data:n}=await z.claimPair(r.trim(),{token:i});return e(`updateStatus`,{key:`claimPair`,value:B.Success}),await t(`getNodes`),n.node_name}catch(t){throw e(`updateStatus`,{key:`claimPair`,value:B.Error}),t}},deleteNode:async({commit:e,dispatch:t,state:n,rootState:r},i)=>{let a=r.token?.access;if(!a)throw Error(`not authenticated`);e(`updateStatus`,{key:`deleteNode`,value:B.Request});try{await z.deleteNode(i,{token:a}),e(`removeNodeData`,i),n.currentNodeId===i&&(e(`setCurrentNode`,void 0),e(`setCurrentSession`,void 0)),e(`updateStatus`,{key:`deleteNode`,value:B.Success}),await t(`getNodes`)}catch(t){throw e(`updateStatus`,{key:`deleteNode`,value:B.Error}),t}},connect:({commit:e,dispatch:t,state:n,rootState:r})=>{let i=r.token?.access;i&&(Y?.isOpen||(Y?.close(),e(`setConnection`,`connecting`),Y=new J(i,{onOpen:()=>{e(`setConnection`,`connected`);let r={...n.lastSeq};Object.keys(r).length&&Y?.resume(r),n.currentNodeId&&(t(`getHistory`,n.currentNodeId),t(`getCapabilities`,n.currentNodeId),t(`requestPendingPermissions`,n.currentNodeId))},onClose:()=>e(`setConnection`,`disconnected`),onEvent:(r,i)=>ce(e,t,n,r,i),onNodesSnapshot:t=>{e(`mergeNodeSnapshot`,t)},onNodeStatus:(r,i)=>{e(`setNodeStatus`,{node_id:r,status:i}),i===`online`&&r===n.currentNodeId&&(t(`getHistory`,r),t(`getCapabilities`,r),t(`requestPendingPermissions`,r))},onRelayError:(e,t)=>console.warn(`[codingBridge] relay error`,e,t)}),Y.connect()))},disconnect:({commit:e})=>{Y?.close(),Y=void 0,e(`setConnection`,`disconnected`)},selectNode:({commit:e,dispatch:t,state:n},r)=>{if(e(`setCurrentNode`,r),!r){e(`setCurrentSession`,void 0);return}let i=Object.values(n.sessions).filter(e=>e.node_id===r).map(e=>e.session_id);e(`setCurrentSession`,i.length?i[i.length-1]:void 0),t(`getHistory`,r),t(`getCapabilities`,r),t(`requestPendingPermissions`,r)},requestPendingPermissions:({state:e},t)=>{let n=t??e.currentNodeId;!n||!Y||Y.sendToNode(n,{action:p})},enableNotifications:async({dispatch:e,rootState:t})=>{let n=t.token?.access;if(!n)return`unsupported`;if(I()){let t=await W(t=>{t?.node_id&&(e(`selectNode`,t.node_id),e(`requestPendingPermissions`,t.node_id))});return t?(await z.savePushSubscription({kind:R()?`apns`:`fcm`,token:t,ua:navigator.userAgent},{token:n}),`enabled`):`denied`}let r=await V();if(r===`unsupported`)return`unsupported`;if(r!==`granted`)return`denied`;try{let{data:e}=await z.getPushConfig();if(e.web_push_enabled&&e.vapid_public_key){let t=await ae(e.vapid_public_key);t&&await z.savePushSubscription({kind:`webpush`,subscription:t,ua:navigator.userAgent},{token:n})}}catch(e){console.warn(`[codingBridge] web push setup skipped`,e)}return`enabled`},disableNotifications:async({rootState:e})=>{let t=e.token?.access;if(I()||!t)return;let n=await U();if(n)try{await z.deletePushSubscription({endpoint:n},{token:t})}catch(e){console.warn(`[codingBridge] failed to deregister web push`,e)}},newSession:({commit:e})=>{e(`setCurrentSession`,void 0),e(`setHistoryRef`,void 0)},sendPrompt:({commit:e,state:t},n)=>{let r=t.currentNodeId,i=n.prompt?.trim(),a=n.images?.length?n.images:void 0,o=n.attachments?.length?n.attachments:void 0;if(!r||!Y||!i&&!a&&!o)return;let s=X(),c=t.currentSessionId,l=c?t.sessions[c]:void 0;if(!l||!l.started){let t=l?.provider||n.provider||`claude`;l?(c=l.session_id,e(`updateSession`,{session_id:c,status:`starting`,trace_id:s,...n.cwd?{cwd:n.cwd}:{},...n.model===void 0?{}:{model:n.model},...n.effort===void 0?{}:{effort:n.effort},...n.permissionMode===void 0?{}:{permission_mode:n.permissionMode}})):(c=X(),e(`upsertSession`,{session_id:c,node_id:r,status:`starting`,cwd:n.cwd,model:n.model,effort:n.effort,permission_mode:n.permissionMode,provider:t,trace_id:s}),e(`setCurrentSession`,c)),e(`appendEvent`,Z(c,`prompt`,{text:i,images:a,attachments:o,trace_id:s})),e(`updateSession`,{session_id:c,started:!0}),Y.sendToNode(r,{action:g,session_id:c,trace_id:s,prompt:i,cwd:n.cwd||l?.cwd||void 0,model:n.model||l?.model||void 0,permission_mode:n.permissionMode||`default`,provider:t,effort:n.effort||void 0,images:a,attachments:o,resume_session_id:l?.resume_session_id||void 0})}else e(`updateSession`,{session_id:c,trace_id:s}),e(`appendEvent`,Z(c,`prompt`,{text:i,images:a,attachments:o,trace_id:s})),e(`updateSession`,{session_id:c,status:`running`,model:n.model||void 0,...n.effort===void 0?{}:{effort:n.effort},...n.permissionMode===void 0?{}:{permission_mode:n.permissionMode}}),Y.sendToNode(r,{action:A,session_id:c,trace_id:s,prompt:i,model:n.model??``,...n.effort===void 0?{}:{effort:n.effort},...n.permissionMode===void 0?{}:{permission_mode:n.permissionMode},images:a,attachments:o})},editPrompt:({commit:e,state:t},n)=>{let r=t.currentNodeId,i=t.currentSessionId,a=n.prompt?.trim();if(!r||!i||!Y||!a)return;let o=t.sessions[i],s=t.events[i]??[],c=s.findIndex(e=>e.id===n.eventId);if(!o||c<0)return;let l;for(let e=c-1;e>=0;e--)if(s[e].kind===`result`&&s[e].cut_uuid){l=s[e].cut_uuid;break}let u=n.images?.length?n.images:void 0,d=n.attachments?.length?n.attachments:void 0,f=X();e(`truncateEventsBefore`,{session_id:i,event_id:n.eventId}),e(`updateSession`,{session_id:i,status:`running`,trace_id:f,model:n.model||o.model||void 0,...n.effort===void 0?{}:{effort:n.effort},...n.permissionMode===void 0?{}:{permission_mode:n.permissionMode}}),e(`appendEvent`,Z(i,`prompt`,{text:a,images:u,attachments:d,trace_id:f})),Y.sendToNode(r,{action:h,session_id:i,trace_id:f,cut_uuid:l,prompt:a,model:n.model||o.model||void 0,permission_mode:n.permissionMode||void 0,effort:n.effort||void 0,images:u,attachments:d,restore_code:!!n.restoreCode})},retryLastPrompt:({commit:e,dispatch:t,state:n})=>{let r=n.currentSessionId;if(!r)return;let i=n.sessions[r],a=[...n.events[r]??[]].reverse().find(e=>e.kind===`prompt`);!i||!a||(e(`updateSession`,{session_id:r,started:!1}),t(`sendPrompt`,{prompt:a.text??``,cwd:i.cwd,model:i.model,provider:i.provider,images:a.images,attachments:a.attachments}))},interruptSession:({state:e})=>{let t=e.currentSessionId,n=e.currentNodeId;!t||!n||!Y||Y.sendToNode(n,{action:S,session_id:t})},closeSession:({commit:e,state:t},n)=>{let r=n??t.currentSessionId;if(!r)return;let i=t.sessions[r]?.node_id??t.currentNodeId;i&&Y&&Y.sendToNode(i,{action:O,session_id:r}),e(`updateSession`,{session_id:r,status:`closed`}),t.currentSessionId===r&&e(`setCurrentSession`,void 0)},resolvePermission:({commit:e,state:t},n)=>{let r=t.permissions.find(e=>e.request_id===n.request_id);r&&(Y?.sendToNode(r.node_id,{action:T,request_id:n.request_id,decision:n.decision}),e(`removePermission`,n.request_id))},answerQuestion:({commit:e,state:t},n)=>{let r=t.permissions.find(e=>e.request_id===n.request_id);r&&(Y?.sendToNode(r.node_id,{action:T,request_id:n.request_id,decision:`allow`,answer:Q(n.output),answer_text:oe(n.output)}),e(`removePermission`,n.request_id))},getHistory:({commit:e,state:t},n)=>{let r=n??t.currentNodeId;!r||!Y||(e(`updateStatus`,{key:`getHistory`,value:B.Request}),Y.sendToNode(r,{action:b,limit:200}))},getHistoryDetail:(e,t)=>{!t?.node_id||!t?.session_id||!Y||Y.sendToNode(t.node_id,{action:D,provider:t.provider,session_id:t.session_id})},resyncSession:({state:e,dispatch:t},n)=>{let r=e.sessions[n];r?.node_id&&t(`getHistoryDetail`,{node_id:r.node_id,session_id:n,provider:r.provider??`claude`})},browseDir:({commit:e,state:t},n)=>{let r=t.currentNodeId;!r||!Y||(e(`setDirectoryLoading`,!0),Y.sendToNode(r,{action:w,path:n||void 0}))},clearDirectory:({commit:e})=>{e(`setDirectory`,void 0)},getCapabilities:({state:e},t)=>{let n=t??e.currentNodeId;!n||!Y||Y.sendToNode(n,{action:k})}}};export{$ as codingBridge,$ as default};
@@ -1 +0,0 @@
1
- var e={"nodeList.title":{message:`Devices`,description:`Coding Bridge device list title`},"nodeList.refresh":{message:`Refresh`,description:`Refresh the device list`},"nodeList.pair":{message:`Pair device`,description:`Open the pairing dialog`},"nodeList.empty":{message:`No devices paired yet.`,description:`Empty device list message`},"nodeList.pairFirst":{message:`Pair your first device`,description:`Empty-state pairing button`},"nodeList.remove":{message:`Remove`,description:`Remove a device`},"nodeList.removeConfirm":{message:`Remove device "{name}"? It will need to be paired again.`,description:`Device removal confirmation`},"nodeList.removeSuccess":{message:`Device removed.`,description:`Device removed toast`},"nodeList.removeFailed":{message:`Failed to remove device.`,description:`Device removal error toast`},"status.online":{message:`Online`,description:`Device online status`},"status.offline":{message:`Offline`,description:`Device offline status`},"connection.disconnected":{message:`Disconnected`,description:`Relay connection disconnected`},"connection.connecting":{message:`Connecting…`,description:`Relay connection connecting`},"connection.connected":{message:`Connected`,description:`Relay connection connected`},"connection.error":{message:`Connection error`,description:`Relay connection error`},"pair.title":{message:`Pair a device`,description:`Pairing dialog title`},"pair.intro":{message:`Run the Coding Bridge agent on your computer, then enter its pairing code here to control it from the web.`,description:`Pairing dialog intro`},"pair.step1":{message:`Install the agent (requires Python 3.10+):`,description:`Pairing step 1`},"pair.step2":{message:`Start it and follow the prompt:`,description:`Pairing step 2`},"pair.step3":{message:`Enter the pairing code it shows below.`,description:`Pairing step 3`},"pair.codePlaceholder":{message:`Pairing code`,description:`Pairing code input placeholder`},"pair.claim":{message:`Pair device`,description:`Pairing confirm button`},"pair.success":{message:`Device "{name}" paired.`,description:`Pairing success toast`},"pair.invalidCode":{message:`Invalid or expired pairing code.`,description:`Pairing invalid code error`},"pair.usedCode":{message:`This pairing code has already been used.`,description:`Pairing used code error`},"pair.failed":{message:`Failed to pair device.`,description:`Pairing generic error`},"permission.title":{message:`Permission required`,description:`Permission dialog title`},"permission.subtitle":{message:`The agent wants to use a tool. Approve to continue.`,description:`Permission dialog subtitle`},"permission.deny":{message:`Deny`,description:`Deny a tool permission`},"permission.allow":{message:`Allow`,description:`Allow a tool permission`},"session.noDevice":{message:`Select a device to start coding.`,description:`No device selected placeholder`},"session.newSession":{message:`New session`,description:`Start a new session`},"session.deviceOffline":{message:`This device is offline. Start the Coding Bridge agent on it to continue.`,description:`Device offline warning`},"session.nodeId":{message:`Device ID`,description:`Diagnostic label for the node id`},"session.sessionId":{message:`Session ID`,description:`Diagnostic label for the session id`},"session.traceId":{message:`Trace ID`,description:`Diagnostic label for the trace id`},"session.startHint":{message:`Send a message to start a session on this device.`,description:`Empty transcript hint`},"session.cwdPlaceholder":{message:`Working directory (optional)`,description:`Working directory input placeholder`},"session.modelPlaceholder":{message:`Model (optional)`,description:`Model input placeholder`},"session.promptPlaceholder":{message:`Send a message to the agent…`,description:`Prompt input placeholder`},"session.send":{message:`Send`,description:`Send prompt button`},"session.retry":{message:`Retry`,description:`Re-run the last prompt after a failure`},"session.editPrompt":{message:`Edit`,description:`Edit a sent prompt and resend it as a new turn`},"session.editingBanner":{message:`Editing — sending rewinds the conversation to this point.`,description:`Banner shown while editing a past prompt`},"session.editRestoreCode":{message:`Also restore code`,description:`Checkbox to also roll back file changes when editing`},"session.editCancel":{message:`Cancel`,description:`Cancel editing a past prompt`},"session.editSubmit":{message:`Update`,description:`Submit an edited prompt (rewind and re-run)`},"session.enterHint":{message:`Enter to send, Shift+Enter for a new line.`,description:`Composer keyboard hint`},"transcript.turnFailed":{message:`Turn failed`,description:`Turn result failed label`},"transcript.turnDone":{message:`Done`,description:`Turn result done label`},"history.button":{message:`History`,description:`Open the conversation history drawer`},"history.title":{message:`Conversation history`,description:`History drawer title`},"history.intro":{message:`Past Claude Code & Codex sessions on this device.`,description:`History drawer intro`},"history.refresh":{message:`Refresh`,description:`Reload the history list`},"history.loading":{message:`Loading history…`,description:`History loading message`},"history.empty":{message:`No history found on this device.`,description:`Empty history message`},"history.messages":{message:`{count} messages`,description:`History item message count`},"history.readonly":{message:`This Codex conversation is read-only and cannot be continued. Start a new session to keep coding.`,description:`Read-only replay notice`},"history.resumeHint":{message:`Sending a message will resume this conversation on the device.`,description:`Resume composer hint`},"history.claudeLabel":{message:`Claude history`,description:`Replayed Claude session label`},"history.codexLabel":{message:`Codex history (read-only)`,description:`Replayed Codex session label`},"session.permissionModeLabel":{message:`Permission mode`,description:`Permission-mode selector label`},"session.permissionModeDefault":{message:`Default (ask each time)`,description:`Permission mode: ask before each tool use`},"session.permissionModeAcceptEdits":{message:`Auto-accept edits`,description:`Permission mode: auto-accept file edits`},"session.permissionModePlan":{message:`Plan mode (read-only)`,description:`Permission mode: read-only planning`},"session.permissionModeBypass":{message:`Bypass all permissions`,description:`Permission mode: bypass all permission prompts`},"session.providerLabel":{message:`Backend`,description:`Agent backend selector label`},"session.providerClaude":{message:`Claude Code`,description:`Backend option: Claude Code`},"session.providerCodex":{message:`Codex`,description:`Backend option: Codex`},"session.providerUnavailable":{message:`(not installed)`,description:`Suffix shown next to a backend whose CLI is not installed on the node`},"session.providerUnavailableHint":{message:`{name} is not installed on this device.`,description:`Composer hint shown when the selected backend is not installed on the node`},"session.effortLabel":{message:`Reasoning effort`,description:`Reasoning-effort selector label`},"session.effortDefault":{message:`Default`,description:`Reasoning effort: backend default`},"session.effortLow":{message:`Low`,description:`Reasoning effort: low`},"session.effortMedium":{message:`Medium`,description:`Reasoning effort: medium`},"session.effortHigh":{message:`High`,description:`Reasoning effort: high`},"session.effortMax":{message:`Max`,description:`Reasoning effort: maximum (Claude only)`},"directory.title":{message:`Choose working directory`,description:`Working-directory picker dialog title`},"directory.choose":{message:`Use this directory`,description:`Button: select the current directory`},"directory.up":{message:`Parent directory`,description:`Button: go to the parent directory`},"directory.refresh":{message:`Refresh`,description:`Button: reload the current directory`},"directory.loading":{message:`Loading…`,description:`Directory listing loading hint`},"directory.empty":{message:`This directory is empty.`,description:`Empty directory hint`},"directory.truncated":{message:`Showing the first 1000 entries.`,description:`Hint shown when the listing was truncated`},"session.attachImage":{message:`Attach image`,description:`Attach image button title`},"session.removeImage":{message:`Remove image`,description:`Remove attached image button title`},"session.imageAlt":{message:`Attached image`,description:`Attached image thumbnail alt text`},"session.imageTooLarge":{message:`Image is too large; keep each under 12 MB.`,description:`Warning shown when an image exceeds the size limit`},"session.imageLimit":{message:`You can attach up to {count} images.`,description:`Warning shown when exceeding the max number of images`},"session.modelDefault":{message:`Default model`,description:`Default model`},"session.cwdDefault":{message:`Default directory`,description:`Default directory`},"session.settings":{message:`Session settings`,description:`Session settings`},"session.settingsLocked":{message:`Settings are locked for this session`,description:`Settings are locked for this session`},"session.attachFile":{message:`Attach file`,description:`Attach file`},"session.attachmentImageAlt":{message:`Attached image`,description:`Attached image`},"session.removeAttachment":{message:`Remove attachment`,description:`Remove attachment`},"session.uploadingAttachment":{message:`Uploading attachments…`,description:`Uploading attachments…`},"session.attachmentTooLarge":{message:`File is too large; keep each under 50 MB.`,description:`File is too large; keep each under 50 MB.`},"session.attachmentLimit":{message:`You can attach up to {count} files.`,description:`You can attach up to {count} files.`},"session.attachmentUploadError":{message:`Failed to upload attachment.`,description:`Failed to upload attachment.`},"notice.slashUnavailable":{message:`/{command} is an interactive command and isn't available in a remote session.`,description:`Notice shown when a slash command can't run in a remote session`},"notice.slashCodexUnsupported":{message:`/{command} isn't available for Codex in a remote session.`,description:`Notice shown when a Codex slash command isn't supported remotely`},"notify.enable":{message:`Enable notifications`,description:`Tooltip on the notification bell when notifications are off`},"notify.disable":{message:`Disable notifications`,description:`Tooltip on the notification bell when notifications are on`},"notify.enabled":{message:`Notifications enabled. We'll alert you when a session needs approval.`,description:`Toast after enabling notifications`},"notify.disabled":{message:`Notifications disabled.`,description:`Toast after disabling notifications`},"notify.denied":{message:`Notifications are blocked. Allow them in your browser settings to get approval alerts.`,description:`Toast when notification permission is denied`},"notify.unsupported":{message:`Notifications aren't supported on this device.`,description:`Toast when notifications are unsupported`},"notify.failed":{message:`Couldn't update notification settings.`,description:`Toast when enabling or disabling notifications errors`}};export{e as default};
@@ -1 +0,0 @@
1
- var e={"nodeList.title":{message:`Devices`,description:`Coding Bridge device list title`},"nodeList.refresh":{message:`Refresh`,description:`Refresh the device list`},"nodeList.pair":{message:`Pair device`,description:`Open the pairing dialog`},"nodeList.empty":{message:`No devices paired yet.`,description:`Empty device list message`},"nodeList.pairFirst":{message:`Pair your first device`,description:`Empty-state pairing button`},"nodeList.remove":{message:`Remove`,description:`Remove a device`},"nodeList.removeConfirm":{message:`Remove device "{name}"? It will need to be paired again.`,description:`Device removal confirmation`},"nodeList.removeSuccess":{message:`Device removed.`,description:`Device removed toast`},"nodeList.removeFailed":{message:`Failed to remove device.`,description:`Device removal error toast`},"status.online":{message:`Online`,description:`Device online status`},"status.offline":{message:`Offline`,description:`Device offline status`},"connection.disconnected":{message:`Disconnected`,description:`Relay connection disconnected`},"connection.connecting":{message:`Connecting…`,description:`Relay connection connecting`},"connection.connected":{message:`Connected`,description:`Relay connection connected`},"connection.error":{message:`Connection error`,description:`Relay connection error`},"pair.title":{message:`Pair a device`,description:`Pairing dialog title`},"pair.intro":{message:`Run the Coding Bridge agent on your computer, then enter its pairing code here to control it from the web.`,description:`Pairing dialog intro`},"pair.step1":{message:`Install the agent (requires Python 3.10+):`,description:`Pairing step 1`},"pair.step2":{message:`Start it and follow the prompt:`,description:`Pairing step 2`},"pair.step3":{message:`Enter the pairing code it shows below.`,description:`Pairing step 3`},"pair.codePlaceholder":{message:`Pairing code`,description:`Pairing code input placeholder`},"pair.claim":{message:`Pair device`,description:`Pairing confirm button`},"pair.success":{message:`Device "{name}" paired.`,description:`Pairing success toast`},"pair.invalidCode":{message:`Invalid or expired pairing code.`,description:`Pairing invalid code error`},"pair.usedCode":{message:`This pairing code has already been used.`,description:`Pairing used code error`},"pair.failed":{message:`Failed to pair device.`,description:`Pairing generic error`},"permission.title":{message:`Permission required`,description:`Permission dialog title`},"permission.subtitle":{message:`The agent wants to use a tool. Approve to continue.`,description:`Permission dialog subtitle`},"permission.deny":{message:`Deny`,description:`Deny a tool permission`},"permission.allow":{message:`Allow`,description:`Allow a tool permission`},"session.noDevice":{message:`Select a device to start coding.`,description:`No device selected placeholder`},"session.newSession":{message:`New session`,description:`Start a new session`},"session.deviceOffline":{message:`This device is offline. Start the Coding Bridge agent on it to continue.`,description:`Device offline warning`},"session.nodeId":{message:`デバイス ID`,description:`Diagnostic label for the node id`},"session.sessionId":{message:`セッション ID`,description:`Diagnostic label for the session id`},"session.traceId":{message:`トレース ID`,description:`Diagnostic label for the trace id`},"session.startHint":{message:`Send a message to start a session on this device.`,description:`Empty transcript hint`},"session.cwdPlaceholder":{message:`Working directory (optional)`,description:`Working directory input placeholder`},"session.modelPlaceholder":{message:`Model (optional)`,description:`Model input placeholder`},"session.promptPlaceholder":{message:`Send a message to the agent…`,description:`Prompt input placeholder`},"session.send":{message:`Send`,description:`Send prompt button`},"session.retry":{message:`再試行`,description:`Re-run the last prompt after a failure`},"session.editPrompt":{message:`Edit`,description:`Edit a sent prompt and resend it as a new turn`},"session.editingBanner":{message:`Editing — sending rewinds the conversation to this point.`,description:`Banner shown while editing a past prompt`},"session.editRestoreCode":{message:`Also restore code`,description:`Checkbox to also roll back file changes when editing`},"session.editCancel":{message:`Cancel`,description:`Cancel editing a past prompt`},"session.editSubmit":{message:`Update`,description:`Submit an edited prompt (rewind and re-run)`},"session.enterHint":{message:`Enter to send, Shift+Enter for a new line.`,description:`Composer keyboard hint`},"transcript.turnFailed":{message:`Turn failed`,description:`Turn result failed label`},"transcript.turnDone":{message:`Done`,description:`Turn result done label`},"history.button":{message:`履歴`,description:`Open the conversation history drawer`},"history.title":{message:`会話履歴`,description:`History drawer title`},"history.intro":{message:`このデバイス上の過去の Claude Code および Codex セッション。`,description:`History drawer intro`},"history.refresh":{message:`更新`,description:`Reload the history list`},"history.loading":{message:`履歴を読み込み中…`,description:`History loading message`},"history.empty":{message:`このデバイスに履歴が見つかりません。`,description:`Empty history message`},"history.messages":{message:`{count} 件のメッセージ`,description:`History item message count`},"history.readonly":{message:`この Codex の会話は読み取り専用で続行できません。コーディングを続けるには新しいセッションを開始してください。`,description:`Read-only replay notice`},"history.resumeHint":{message:`メッセージを送信すると、デバイス上でこの会話が再開されます。`,description:`Resume composer hint`},"history.claudeLabel":{message:`Claude 履歴`,description:`Replayed Claude session label`},"history.codexLabel":{message:`Codex 履歴(読み取り専用)`,description:`Replayed Codex session label`},"session.permissionModeLabel":{message:`権限モード`,description:`Permission-mode selector label`},"session.permissionModeDefault":{message:`デフォルト(毎回確認)`,description:`Permission mode: ask before each tool use`},"session.permissionModeAcceptEdits":{message:`編集を自動承認`,description:`Permission mode: auto-accept file edits`},"session.permissionModePlan":{message:`プランモード(読み取り専用)`,description:`Permission mode: read-only planning`},"session.permissionModeBypass":{message:`すべての権限をバイパス`,description:`Permission mode: bypass all permission prompts`},"session.providerLabel":{message:`バックエンド`,description:`Agent backend selector label`},"session.providerClaude":{message:`Claude Code`,description:`Backend option: Claude Code`},"session.providerCodex":{message:`Codex`,description:`Backend option: Codex`},"session.providerUnavailable":{message:`(未インストール)`,description:`Suffix shown next to a backend whose CLI is not installed on the node`},"session.providerUnavailableHint":{message:`{name} はこのデバイスにインストールされていません。`,description:`Composer hint shown when the selected backend is not installed on the node`},"session.effortLabel":{message:`推論の強度`,description:`Reasoning-effort selector label`},"session.effortDefault":{message:`デフォルト`,description:`Reasoning effort: backend default`},"session.effortLow":{message:`低`,description:`Reasoning effort: low`},"session.effortMedium":{message:`中`,description:`Reasoning effort: medium`},"session.effortHigh":{message:`高`,description:`Reasoning effort: high`},"session.effortMax":{message:`最大`,description:`Reasoning effort: maximum (Claude only)`},"directory.title":{message:`作業ディレクトリを選択`,description:`Working-directory picker dialog title`},"directory.choose":{message:`このディレクトリを使用`,description:`Button: select the current directory`},"directory.up":{message:`親ディレクトリ`,description:`Button: go to the parent directory`},"directory.refresh":{message:`更新`,description:`Button: reload the current directory`},"directory.loading":{message:`読み込み中…`,description:`Directory listing loading hint`},"directory.empty":{message:`このディレクトリは空です。`,description:`Empty directory hint`},"directory.truncated":{message:`最初の 1000 件を表示しています。`,description:`Hint shown when the listing was truncated`},"session.attachImage":{message:`画像を添付`,description:`Attach image button title`},"session.removeImage":{message:`画像を削除`,description:`Remove attached image button title`},"session.imageAlt":{message:`添付された画像`,description:`Attached image thumbnail alt text`},"session.imageTooLarge":{message:`画像が大きすぎます。1 枚あたり 12 MB 以内にしてください。`,description:`Warning shown when an image exceeds the size limit`},"session.imageLimit":{message:`画像は最大 {count} 枚まで添付できます。`,description:`Warning shown when exceeding the max number of images`},"session.modelDefault":{message:`Default model`,description:`Default model`},"session.cwdDefault":{message:`Default directory`,description:`Default directory`},"session.settings":{message:`Session settings`,description:`Session settings`},"session.settingsLocked":{message:`Settings are locked for this session`,description:`Settings are locked for this session`},"session.attachFile":{message:`Attach file`,description:`Attach file`},"session.attachmentImageAlt":{message:`Attached image`,description:`Attached image`},"session.removeAttachment":{message:`Remove attachment`,description:`Remove attachment`},"session.uploadingAttachment":{message:`Uploading attachments…`,description:`Uploading attachments…`},"session.attachmentTooLarge":{message:`File is too large; keep each under 50 MB.`,description:`File is too large; keep each under 50 MB.`},"session.attachmentLimit":{message:`You can attach up to {count} files.`,description:`You can attach up to {count} files.`},"session.attachmentUploadError":{message:`Failed to upload attachment.`,description:`Failed to upload attachment.`},"notice.slashUnavailable":{message:`/{command} は対話型コマンドのため、リモートセッションでは実行できません。`,description:`Notice shown when a slash command can't run in a remote session`},"notice.slashCodexUnsupported":{message:`/{command} はリモートセッションの Codex では利用できません。`,description:`Notice shown when a Codex slash command isn't supported remotely`},"notify.enable":{message:`通知を有効にする`,description:`Tooltip on the notification bell when notifications are off`},"notify.disable":{message:`通知を無効にする`,description:`Tooltip on the notification bell when notifications are on`},"notify.enabled":{message:`通知を有効にしました。セッションで承認が必要なときにお知らせします。`,description:`Toast after enabling notifications`},"notify.disabled":{message:`通知を無効にしました。`,description:`Toast after disabling notifications`},"notify.denied":{message:`通知がブロックされています。承認通知を受け取るにはブラウザの設定で許可してください。`,description:`Toast when notification permission is denied`},"notify.unsupported":{message:`このデバイスでは通知がサポートされていません。`,description:`Toast when notifications are unsupported`},"notify.failed":{message:`通知設定を更新できませんでした。`,description:`Toast when enabling or disabling notifications errors`}};export{e as default};
@@ -1 +0,0 @@
1
- var e={"nodeList.title":{message:`Devices`,description:`Coding Bridge device list title`},"nodeList.refresh":{message:`Refresh`,description:`Refresh the device list`},"nodeList.pair":{message:`Pair device`,description:`Open the pairing dialog`},"nodeList.empty":{message:`No devices paired yet.`,description:`Empty device list message`},"nodeList.pairFirst":{message:`Pair your first device`,description:`Empty-state pairing button`},"nodeList.remove":{message:`Remove`,description:`Remove a device`},"nodeList.removeConfirm":{message:`Remove device "{name}"? It will need to be paired again.`,description:`Device removal confirmation`},"nodeList.removeSuccess":{message:`Device removed.`,description:`Device removed toast`},"nodeList.removeFailed":{message:`Failed to remove device.`,description:`Device removal error toast`},"status.online":{message:`Online`,description:`Device online status`},"status.offline":{message:`Offline`,description:`Device offline status`},"connection.disconnected":{message:`Disconnected`,description:`Relay connection disconnected`},"connection.connecting":{message:`Connecting…`,description:`Relay connection connecting`},"connection.connected":{message:`Connected`,description:`Relay connection connected`},"connection.error":{message:`Connection error`,description:`Relay connection error`},"pair.title":{message:`Pair a device`,description:`Pairing dialog title`},"pair.intro":{message:`Run the Coding Bridge agent on your computer, then enter its pairing code here to control it from the web.`,description:`Pairing dialog intro`},"pair.step1":{message:`Install the agent (requires Python 3.10+):`,description:`Pairing step 1`},"pair.step2":{message:`Start it and follow the prompt:`,description:`Pairing step 2`},"pair.step3":{message:`Enter the pairing code it shows below.`,description:`Pairing step 3`},"pair.codePlaceholder":{message:`Pairing code`,description:`Pairing code input placeholder`},"pair.claim":{message:`Pair device`,description:`Pairing confirm button`},"pair.success":{message:`Device "{name}" paired.`,description:`Pairing success toast`},"pair.invalidCode":{message:`Invalid or expired pairing code.`,description:`Pairing invalid code error`},"pair.usedCode":{message:`This pairing code has already been used.`,description:`Pairing used code error`},"pair.failed":{message:`Failed to pair device.`,description:`Pairing generic error`},"permission.title":{message:`Permission required`,description:`Permission dialog title`},"permission.subtitle":{message:`The agent wants to use a tool. Approve to continue.`,description:`Permission dialog subtitle`},"permission.deny":{message:`Deny`,description:`Deny a tool permission`},"permission.allow":{message:`Allow`,description:`Allow a tool permission`},"session.noDevice":{message:`Select a device to start coding.`,description:`No device selected placeholder`},"session.newSession":{message:`New session`,description:`Start a new session`},"session.deviceOffline":{message:`This device is offline. Start the Coding Bridge agent on it to continue.`,description:`Device offline warning`},"session.nodeId":{message:`Enhets-ID`,description:`Diagnostic label for the node id`},"session.sessionId":{message:`Sessions-ID`,description:`Diagnostic label for the session id`},"session.traceId":{message:`Spårnings-ID`,description:`Diagnostic label for the trace id`},"session.startHint":{message:`Send a message to start a session on this device.`,description:`Empty transcript hint`},"session.cwdPlaceholder":{message:`Working directory (optional)`,description:`Working directory input placeholder`},"session.modelPlaceholder":{message:`Model (optional)`,description:`Model input placeholder`},"session.promptPlaceholder":{message:`Send a message to the agent…`,description:`Prompt input placeholder`},"session.send":{message:`Send`,description:`Send prompt button`},"session.retry":{message:`Försök igen`,description:`Re-run the last prompt after a failure`},"session.editPrompt":{message:`Edit`,description:`Edit a sent prompt and resend it as a new turn`},"session.editingBanner":{message:`Editing — sending rewinds the conversation to this point.`,description:`Banner shown while editing a past prompt`},"session.editRestoreCode":{message:`Also restore code`,description:`Checkbox to also roll back file changes when editing`},"session.editCancel":{message:`Cancel`,description:`Cancel editing a past prompt`},"session.editSubmit":{message:`Update`,description:`Submit an edited prompt (rewind and re-run)`},"session.enterHint":{message:`Enter to send, Shift+Enter for a new line.`,description:`Composer keyboard hint`},"transcript.turnFailed":{message:`Turn failed`,description:`Turn result failed label`},"transcript.turnDone":{message:`Done`,description:`Turn result done label`},"history.button":{message:`Historik`,description:`Open the conversation history drawer`},"history.title":{message:`Konversationshistorik`,description:`History drawer title`},"history.intro":{message:`Tidigare Claude Code- och Codex-sessioner på den här enheten.`,description:`History drawer intro`},"history.refresh":{message:`Uppdatera`,description:`Reload the history list`},"history.loading":{message:`Laddar historik…`,description:`History loading message`},"history.empty":{message:`Ingen historik hittades på den här enheten.`,description:`Empty history message`},"history.messages":{message:`{count} meddelanden`,description:`History item message count`},"history.readonly":{message:`Den här Codex-konversationen är skrivskyddad och kan inte fortsättas. Starta en ny session för att fortsätta koda.`,description:`Read-only replay notice`},"history.resumeHint":{message:`Att skicka ett meddelande återupptar konversationen på enheten.`,description:`Resume composer hint`},"history.claudeLabel":{message:`Claude-historik`,description:`Replayed Claude session label`},"history.codexLabel":{message:`Codex-historik (skrivskyddad)`,description:`Replayed Codex session label`},"session.permissionModeLabel":{message:`Behörighetsläge`,description:`Permission-mode selector label`},"session.permissionModeDefault":{message:`Standard (fråga varje gång)`,description:`Permission mode: ask before each tool use`},"session.permissionModeAcceptEdits":{message:`Acceptera ändringar automatiskt`,description:`Permission mode: auto-accept file edits`},"session.permissionModePlan":{message:`Planeringsläge (skrivskyddat)`,description:`Permission mode: read-only planning`},"session.permissionModeBypass":{message:`Kringgå alla behörigheter`,description:`Permission mode: bypass all permission prompts`},"session.providerLabel":{message:`Backend`,description:`Agent backend selector label`},"session.providerClaude":{message:`Claude Code`,description:`Backend option: Claude Code`},"session.providerCodex":{message:`Codex`,description:`Backend option: Codex`},"session.providerUnavailable":{message:`(inte installerat)`,description:`Suffix shown next to a backend whose CLI is not installed on the node`},"session.providerUnavailableHint":{message:`{name} är inte installerat på den här enheten.`,description:`Composer hint shown when the selected backend is not installed on the node`},"session.effortLabel":{message:`Resonemangsnivå`,description:`Reasoning-effort selector label`},"session.effortDefault":{message:`Standard`,description:`Reasoning effort: backend default`},"session.effortLow":{message:`Låg`,description:`Reasoning effort: low`},"session.effortMedium":{message:`Medel`,description:`Reasoning effort: medium`},"session.effortHigh":{message:`Hög`,description:`Reasoning effort: high`},"session.effortMax":{message:`Max`,description:`Reasoning effort: maximum (Claude only)`},"directory.title":{message:`Välj arbetskatalog`,description:`Working-directory picker dialog title`},"directory.choose":{message:`Använd den här katalogen`,description:`Button: select the current directory`},"directory.up":{message:`Överordnad katalog`,description:`Button: go to the parent directory`},"directory.refresh":{message:`Uppdatera`,description:`Button: reload the current directory`},"directory.loading":{message:`Läser in…`,description:`Directory listing loading hint`},"directory.empty":{message:`Den här katalogen är tom.`,description:`Empty directory hint`},"directory.truncated":{message:`Visar de första 1000 posterna.`,description:`Hint shown when the listing was truncated`},"session.attachImage":{message:`Bifoga bild`,description:`Attach image button title`},"session.removeImage":{message:`Ta bort bild`,description:`Remove attached image button title`},"session.imageAlt":{message:`Bifogad bild`,description:`Attached image thumbnail alt text`},"session.imageTooLarge":{message:`Bilden är för stor; håll varje under 12 MB.`,description:`Warning shown when an image exceeds the size limit`},"session.imageLimit":{message:`Du kan bifoga upp till {count} bilder.`,description:`Warning shown when exceeding the max number of images`},"session.modelDefault":{message:`Default model`,description:`Default model`},"session.cwdDefault":{message:`Default directory`,description:`Default directory`},"session.settings":{message:`Session settings`,description:`Session settings`},"session.settingsLocked":{message:`Settings are locked for this session`,description:`Settings are locked for this session`},"session.attachFile":{message:`Attach file`,description:`Attach file`},"session.attachmentImageAlt":{message:`Attached image`,description:`Attached image`},"session.removeAttachment":{message:`Remove attachment`,description:`Remove attachment`},"session.uploadingAttachment":{message:`Uploading attachments…`,description:`Uploading attachments…`},"session.attachmentTooLarge":{message:`File is too large; keep each under 50 MB.`,description:`File is too large; keep each under 50 MB.`},"session.attachmentLimit":{message:`You can attach up to {count} files.`,description:`You can attach up to {count} files.`},"session.attachmentUploadError":{message:`Failed to upload attachment.`,description:`Failed to upload attachment.`},"notice.slashUnavailable":{message:`/{command} är ett interaktivt kommando och kan inte köras i en fjärrsession.`,description:`Notice shown when a slash command can't run in a remote session`},"notice.slashCodexUnsupported":{message:`/{command} är inte tillgängligt för Codex i en fjärrsession.`,description:`Notice shown when a Codex slash command isn't supported remotely`},"notify.enable":{message:`Aktivera aviseringar`,description:`Tooltip on the notification bell when notifications are off`},"notify.disable":{message:`Inaktivera aviseringar`,description:`Tooltip on the notification bell when notifications are on`},"notify.enabled":{message:`Aviseringar aktiverade. Vi meddelar dig när en session behöver godkännande.`,description:`Toast after enabling notifications`},"notify.disabled":{message:`Aviseringar inaktiverade.`,description:`Toast after disabling notifications`},"notify.denied":{message:`Aviseringar är blockerade. Tillåt dem i webbläsarinställningarna för att få godkännandeaviseringar.`,description:`Toast when notification permission is denied`},"notify.unsupported":{message:`Aviseringar stöds inte på den här enheten.`,description:`Toast when notifications are unsupported`},"notify.failed":{message:`Det gick inte att uppdatera aviseringsinställningarna.`,description:`Toast when enabling or disabling notifications errors`}};export{e as default};
@@ -1 +0,0 @@
1
- var e={"nodeList.title":{message:`Devices`,description:`Coding Bridge device list title`},"nodeList.refresh":{message:`Refresh`,description:`Refresh the device list`},"nodeList.pair":{message:`Pair device`,description:`Open the pairing dialog`},"nodeList.empty":{message:`No devices paired yet.`,description:`Empty device list message`},"nodeList.pairFirst":{message:`Pair your first device`,description:`Empty-state pairing button`},"nodeList.remove":{message:`Remove`,description:`Remove a device`},"nodeList.removeConfirm":{message:`Remove device "{name}"? It will need to be paired again.`,description:`Device removal confirmation`},"nodeList.removeSuccess":{message:`Device removed.`,description:`Device removed toast`},"nodeList.removeFailed":{message:`Failed to remove device.`,description:`Device removal error toast`},"status.online":{message:`Online`,description:`Device online status`},"status.offline":{message:`Offline`,description:`Device offline status`},"connection.disconnected":{message:`Disconnected`,description:`Relay connection disconnected`},"connection.connecting":{message:`Connecting…`,description:`Relay connection connecting`},"connection.connected":{message:`Connected`,description:`Relay connection connected`},"connection.error":{message:`Connection error`,description:`Relay connection error`},"pair.title":{message:`Pair a device`,description:`Pairing dialog title`},"pair.intro":{message:`Run the Coding Bridge agent on your computer, then enter its pairing code here to control it from the web.`,description:`Pairing dialog intro`},"pair.step1":{message:`Install the agent (requires Python 3.10+):`,description:`Pairing step 1`},"pair.step2":{message:`Start it and follow the prompt:`,description:`Pairing step 2`},"pair.step3":{message:`Enter the pairing code it shows below.`,description:`Pairing step 3`},"pair.codePlaceholder":{message:`Pairing code`,description:`Pairing code input placeholder`},"pair.claim":{message:`Pair device`,description:`Pairing confirm button`},"pair.success":{message:`Device "{name}" paired.`,description:`Pairing success toast`},"pair.invalidCode":{message:`Invalid or expired pairing code.`,description:`Pairing invalid code error`},"pair.usedCode":{message:`This pairing code has already been used.`,description:`Pairing used code error`},"pair.failed":{message:`Failed to pair device.`,description:`Pairing generic error`},"permission.title":{message:`Permission required`,description:`Permission dialog title`},"permission.subtitle":{message:`The agent wants to use a tool. Approve to continue.`,description:`Permission dialog subtitle`},"permission.deny":{message:`Deny`,description:`Deny a tool permission`},"permission.allow":{message:`Allow`,description:`Allow a tool permission`},"session.noDevice":{message:`Select a device to start coding.`,description:`No device selected placeholder`},"session.newSession":{message:`New session`,description:`Start a new session`},"session.deviceOffline":{message:`This device is offline. Start the Coding Bridge agent on it to continue.`,description:`Device offline warning`},"session.nodeId":{message:`ID uređaja`,description:`Diagnostic label for the node id`},"session.sessionId":{message:`ID sesije`,description:`Diagnostic label for the session id`},"session.traceId":{message:`ID praćenja`,description:`Diagnostic label for the trace id`},"session.startHint":{message:`Send a message to start a session on this device.`,description:`Empty transcript hint`},"session.cwdPlaceholder":{message:`Working directory (optional)`,description:`Working directory input placeholder`},"session.modelPlaceholder":{message:`Model (optional)`,description:`Model input placeholder`},"session.promptPlaceholder":{message:`Send a message to the agent…`,description:`Prompt input placeholder`},"session.send":{message:`Send`,description:`Send prompt button`},"session.retry":{message:`Покушај поново`,description:`Re-run the last prompt after a failure`},"session.editPrompt":{message:`Edit`,description:`Edit a sent prompt and resend it as a new turn`},"session.editingBanner":{message:`Editing — sending rewinds the conversation to this point.`,description:`Banner shown while editing a past prompt`},"session.editRestoreCode":{message:`Also restore code`,description:`Checkbox to also roll back file changes when editing`},"session.editCancel":{message:`Cancel`,description:`Cancel editing a past prompt`},"session.editSubmit":{message:`Update`,description:`Submit an edited prompt (rewind and re-run)`},"session.enterHint":{message:`Enter to send, Shift+Enter for a new line.`,description:`Composer keyboard hint`},"transcript.turnFailed":{message:`Turn failed`,description:`Turn result failed label`},"transcript.turnDone":{message:`Done`,description:`Turn result done label`},"history.button":{message:`Историја`,description:`Open the conversation history drawer`},"history.title":{message:`Историја разговора`,description:`History drawer title`},"history.intro":{message:`Претходне Claude Code и Codex сесије на овом уређају.`,description:`History drawer intro`},"history.refresh":{message:`Освежи`,description:`Reload the history list`},"history.loading":{message:`Учитавање историје…`,description:`History loading message`},"history.empty":{message:`Историја није пронађена на овом уређају.`,description:`Empty history message`},"history.messages":{message:`Поруке: {count}`,description:`History item message count`},"history.readonly":{message:`Овај Codex разговор је само за читање и не може се наставити. Покрените нову сесију да наставите са кодирањем.`,description:`Read-only replay notice`},"history.resumeHint":{message:`Слање поруке ће наставити овај разговор на уређају.`,description:`Resume composer hint`},"history.claudeLabel":{message:`Claude историја`,description:`Replayed Claude session label`},"history.codexLabel":{message:`Codex историја (само за читање)`,description:`Replayed Codex session label`},"session.permissionModeLabel":{message:`Режим дозвола`,description:`Permission-mode selector label`},"session.permissionModeDefault":{message:`Подразумевано (питај сваки пут)`,description:`Permission mode: ask before each tool use`},"session.permissionModeAcceptEdits":{message:`Аутоматски прихватај измене`,description:`Permission mode: auto-accept file edits`},"session.permissionModePlan":{message:`Режим планирања (само за читање)`,description:`Permission mode: read-only planning`},"session.permissionModeBypass":{message:`Заобиђи све дозволе`,description:`Permission mode: bypass all permission prompts`},"session.providerLabel":{message:`Бекенд`,description:`Agent backend selector label`},"session.providerClaude":{message:`Claude Code`,description:`Backend option: Claude Code`},"session.providerCodex":{message:`Codex`,description:`Backend option: Codex`},"session.providerUnavailable":{message:`(није инсталирано)`,description:`Suffix shown next to a backend whose CLI is not installed on the node`},"session.providerUnavailableHint":{message:`{name} није инсталиран на овом уређају.`,description:`Composer hint shown when the selected backend is not installed on the node`},"session.effortLabel":{message:`Ниво размишљања`,description:`Reasoning-effort selector label`},"session.effortDefault":{message:`Подразумевано`,description:`Reasoning effort: backend default`},"session.effortLow":{message:`Низак`,description:`Reasoning effort: low`},"session.effortMedium":{message:`Средњи`,description:`Reasoning effort: medium`},"session.effortHigh":{message:`Висок`,description:`Reasoning effort: high`},"session.effortMax":{message:`Максималан`,description:`Reasoning effort: maximum (Claude only)`},"directory.title":{message:`Изаберите радни директоријум`,description:`Working-directory picker dialog title`},"directory.choose":{message:`Користи овај директоријум`,description:`Button: select the current directory`},"directory.up":{message:`Надређени директоријум`,description:`Button: go to the parent directory`},"directory.refresh":{message:`Освежи`,description:`Button: reload the current directory`},"directory.loading":{message:`Учитавање…`,description:`Directory listing loading hint`},"directory.empty":{message:`Овај директоријум је празан.`,description:`Empty directory hint`},"directory.truncated":{message:`Приказано првих 1000 ставки.`,description:`Hint shown when the listing was truncated`},"session.attachImage":{message:`Приложи слику`,description:`Attach image button title`},"session.removeImage":{message:`Уклони слику`,description:`Remove attached image button title`},"session.imageAlt":{message:`Приложена слика`,description:`Attached image thumbnail alt text`},"session.imageTooLarge":{message:`Слика је превелика; нека свака буде испод 12 MB.`,description:`Warning shown when an image exceeds the size limit`},"session.imageLimit":{message:`Можеш приложити највише {count} слика.`,description:`Warning shown when exceeding the max number of images`},"session.modelDefault":{message:`Default model`,description:`Default model`},"session.cwdDefault":{message:`Default directory`,description:`Default directory`},"session.settings":{message:`Session settings`,description:`Session settings`},"session.settingsLocked":{message:`Settings are locked for this session`,description:`Settings are locked for this session`},"session.attachFile":{message:`Attach file`,description:`Attach file`},"session.attachmentImageAlt":{message:`Attached image`,description:`Attached image`},"session.removeAttachment":{message:`Remove attachment`,description:`Remove attachment`},"session.uploadingAttachment":{message:`Uploading attachments…`,description:`Uploading attachments…`},"session.attachmentTooLarge":{message:`File is too large; keep each under 50 MB.`,description:`File is too large; keep each under 50 MB.`},"session.attachmentLimit":{message:`You can attach up to {count} files.`,description:`You can attach up to {count} files.`},"session.attachmentUploadError":{message:`Failed to upload attachment.`,description:`Failed to upload attachment.`},"notice.slashUnavailable":{message:`/{command} је интерактивна команда и не може да се изврши у удаљеној сесији.`,description:`Notice shown when a slash command can't run in a remote session`},"notice.slashCodexUnsupported":{message:`/{command} није доступна за Codex у удаљеној сесији.`,description:`Notice shown when a Codex slash command isn't supported remotely`},"notify.enable":{message:`Омогући обавештења`,description:`Tooltip on the notification bell when notifications are off`},"notify.disable":{message:`Онемогући обавештења`,description:`Tooltip on the notification bell when notifications are on`},"notify.enabled":{message:`Обавештења су омогућена. Обавестићемо вас када сесија захтева одобрење.`,description:`Toast after enabling notifications`},"notify.disabled":{message:`Обавештења су онемогућена.`,description:`Toast after disabling notifications`},"notify.denied":{message:`Обавештења су блокирана. Дозволите их у подешавањима прегледача да бисте примали обавештења о одобрењу.`,description:`Toast when notification permission is denied`},"notify.unsupported":{message:`Обавештења нису подржана на овом уређају.`,description:`Toast when notifications are unsupported`},"notify.failed":{message:`Ажурирање подешавања обавештења није успело.`,description:`Toast when enabling or disabling notifications errors`}};export{e as default};
@@ -1 +0,0 @@
1
- var e={"nodeList.title":{message:`Devices`,description:`Coding Bridge device list title`},"nodeList.refresh":{message:`Refresh`,description:`Refresh the device list`},"nodeList.pair":{message:`Pair device`,description:`Open the pairing dialog`},"nodeList.empty":{message:`No devices paired yet.`,description:`Empty device list message`},"nodeList.pairFirst":{message:`Pair your first device`,description:`Empty-state pairing button`},"nodeList.remove":{message:`Remove`,description:`Remove a device`},"nodeList.removeConfirm":{message:`Remove device "{name}"? It will need to be paired again.`,description:`Device removal confirmation`},"nodeList.removeSuccess":{message:`Device removed.`,description:`Device removed toast`},"nodeList.removeFailed":{message:`Failed to remove device.`,description:`Device removal error toast`},"status.online":{message:`Online`,description:`Device online status`},"status.offline":{message:`Offline`,description:`Device offline status`},"connection.disconnected":{message:`Disconnected`,description:`Relay connection disconnected`},"connection.connecting":{message:`Connecting…`,description:`Relay connection connecting`},"connection.connected":{message:`Connected`,description:`Relay connection connected`},"connection.error":{message:`Connection error`,description:`Relay connection error`},"pair.title":{message:`Pair a device`,description:`Pairing dialog title`},"pair.intro":{message:`Run the Coding Bridge agent on your computer, then enter its pairing code here to control it from the web.`,description:`Pairing dialog intro`},"pair.step1":{message:`Install the agent (requires Python 3.10+):`,description:`Pairing step 1`},"pair.step2":{message:`Start it and follow the prompt:`,description:`Pairing step 2`},"pair.step3":{message:`Enter the pairing code it shows below.`,description:`Pairing step 3`},"pair.codePlaceholder":{message:`Pairing code`,description:`Pairing code input placeholder`},"pair.claim":{message:`Pair device`,description:`Pairing confirm button`},"pair.success":{message:`Device "{name}" paired.`,description:`Pairing success toast`},"pair.invalidCode":{message:`Invalid or expired pairing code.`,description:`Pairing invalid code error`},"pair.usedCode":{message:`This pairing code has already been used.`,description:`Pairing used code error`},"pair.failed":{message:`Failed to pair device.`,description:`Pairing generic error`},"permission.title":{message:`Permission required`,description:`Permission dialog title`},"permission.subtitle":{message:`The agent wants to use a tool. Approve to continue.`,description:`Permission dialog subtitle`},"permission.deny":{message:`Deny`,description:`Deny a tool permission`},"permission.allow":{message:`Allow`,description:`Allow a tool permission`},"session.noDevice":{message:`Select a device to start coding.`,description:`No device selected placeholder`},"session.newSession":{message:`New session`,description:`Start a new session`},"session.deviceOffline":{message:`This device is offline. Start the Coding Bridge agent on it to continue.`,description:`Device offline warning`},"session.nodeId":{message:`ID пристрою`,description:`Diagnostic label for the node id`},"session.sessionId":{message:`ID сеансу`,description:`Diagnostic label for the session id`},"session.traceId":{message:`ID трасування`,description:`Diagnostic label for the trace id`},"session.startHint":{message:`Send a message to start a session on this device.`,description:`Empty transcript hint`},"session.cwdPlaceholder":{message:`Working directory (optional)`,description:`Working directory input placeholder`},"session.modelPlaceholder":{message:`Model (optional)`,description:`Model input placeholder`},"session.promptPlaceholder":{message:`Send a message to the agent…`,description:`Prompt input placeholder`},"session.send":{message:`Send`,description:`Send prompt button`},"session.retry":{message:`Повторити`,description:`Re-run the last prompt after a failure`},"session.editPrompt":{message:`Edit`,description:`Edit a sent prompt and resend it as a new turn`},"session.editingBanner":{message:`Editing — sending rewinds the conversation to this point.`,description:`Banner shown while editing a past prompt`},"session.editRestoreCode":{message:`Also restore code`,description:`Checkbox to also roll back file changes when editing`},"session.editCancel":{message:`Cancel`,description:`Cancel editing a past prompt`},"session.editSubmit":{message:`Update`,description:`Submit an edited prompt (rewind and re-run)`},"session.enterHint":{message:`Enter to send, Shift+Enter for a new line.`,description:`Composer keyboard hint`},"transcript.turnFailed":{message:`Turn failed`,description:`Turn result failed label`},"transcript.turnDone":{message:`Done`,description:`Turn result done label`},"history.button":{message:`Історія`,description:`Open the conversation history drawer`},"history.title":{message:`Історія розмов`,description:`History drawer title`},"history.intro":{message:`Попередні сесії Claude Code та Codex на цьому пристрої.`,description:`History drawer intro`},"history.refresh":{message:`Оновити`,description:`Reload the history list`},"history.loading":{message:`Завантаження історії…`,description:`History loading message`},"history.empty":{message:`Історію на цьому пристрої не знайдено.`,description:`Empty history message`},"history.messages":{message:`Повідомлень: {count}`,description:`History item message count`},"history.readonly":{message:`Ця розмова Codex доступна лише для читання й не може бути продовжена. Почніть нову сесію, щоб продовжити програмувати.`,description:`Read-only replay notice`},"history.resumeHint":{message:`Надсилання повідомлення відновить цю розмову на пристрої.`,description:`Resume composer hint`},"history.claudeLabel":{message:`Історія Claude`,description:`Replayed Claude session label`},"history.codexLabel":{message:`Історія Codex (лише читання)`,description:`Replayed Codex session label`},"session.permissionModeLabel":{message:`Режим дозволів`,description:`Permission-mode selector label`},"session.permissionModeDefault":{message:`За замовчуванням (запитувати щоразу)`,description:`Permission mode: ask before each tool use`},"session.permissionModeAcceptEdits":{message:`Автоматично приймати зміни`,description:`Permission mode: auto-accept file edits`},"session.permissionModePlan":{message:`Режим планування (лише читання)`,description:`Permission mode: read-only planning`},"session.permissionModeBypass":{message:`Обійти всі дозволи`,description:`Permission mode: bypass all permission prompts`},"session.providerLabel":{message:`Бекенд`,description:`Agent backend selector label`},"session.providerClaude":{message:`Claude Code`,description:`Backend option: Claude Code`},"session.providerCodex":{message:`Codex`,description:`Backend option: Codex`},"session.providerUnavailable":{message:`(не встановлено)`,description:`Suffix shown next to a backend whose CLI is not installed on the node`},"session.providerUnavailableHint":{message:`{name} не встановлено на цьому пристрої.`,description:`Composer hint shown when the selected backend is not installed on the node`},"session.effortLabel":{message:`Рівень міркувань`,description:`Reasoning-effort selector label`},"session.effortDefault":{message:`За замовчуванням`,description:`Reasoning effort: backend default`},"session.effortLow":{message:`Низький`,description:`Reasoning effort: low`},"session.effortMedium":{message:`Середній`,description:`Reasoning effort: medium`},"session.effortHigh":{message:`Високий`,description:`Reasoning effort: high`},"session.effortMax":{message:`Максимальний`,description:`Reasoning effort: maximum (Claude only)`},"directory.title":{message:`Виберіть робочий каталог`,description:`Working-directory picker dialog title`},"directory.choose":{message:`Використати цей каталог`,description:`Button: select the current directory`},"directory.up":{message:`Батьківський каталог`,description:`Button: go to the parent directory`},"directory.refresh":{message:`Оновити`,description:`Button: reload the current directory`},"directory.loading":{message:`Завантаження…`,description:`Directory listing loading hint`},"directory.empty":{message:`Цей каталог порожній.`,description:`Empty directory hint`},"directory.truncated":{message:`Показано перші 1000 записів.`,description:`Hint shown when the listing was truncated`},"session.attachImage":{message:`Прикріпити зображення`,description:`Attach image button title`},"session.removeImage":{message:`Видалити зображення`,description:`Remove attached image button title`},"session.imageAlt":{message:`Прикріплене зображення`,description:`Attached image thumbnail alt text`},"session.imageTooLarge":{message:`Зображення занадто велике; кожне має бути менше 12 МБ.`,description:`Warning shown when an image exceeds the size limit`},"session.imageLimit":{message:`Можна прикріпити до {count} зображень.`,description:`Warning shown when exceeding the max number of images`},"session.modelDefault":{message:`Default model`,description:`Default model`},"session.cwdDefault":{message:`Default directory`,description:`Default directory`},"session.settings":{message:`Session settings`,description:`Session settings`},"session.settingsLocked":{message:`Settings are locked for this session`,description:`Settings are locked for this session`},"session.attachFile":{message:`Attach file`,description:`Attach file`},"session.attachmentImageAlt":{message:`Attached image`,description:`Attached image`},"session.removeAttachment":{message:`Remove attachment`,description:`Remove attachment`},"session.uploadingAttachment":{message:`Uploading attachments…`,description:`Uploading attachments…`},"session.attachmentTooLarge":{message:`File is too large; keep each under 50 MB.`,description:`File is too large; keep each under 50 MB.`},"session.attachmentLimit":{message:`You can attach up to {count} files.`,description:`You can attach up to {count} files.`},"session.attachmentUploadError":{message:`Failed to upload attachment.`,description:`Failed to upload attachment.`},"notice.slashUnavailable":{message:`/{command} — інтерактивна команда, її не можна виконати у віддаленому сеансі.`,description:`Notice shown when a slash command can't run in a remote session`},"notice.slashCodexUnsupported":{message:`/{command} недоступна для Codex у віддаленому сеансі.`,description:`Notice shown when a Codex slash command isn't supported remotely`},"notify.enable":{message:`Увімкнути сповіщення`,description:`Tooltip on the notification bell when notifications are off`},"notify.disable":{message:`Вимкнути сповіщення`,description:`Tooltip on the notification bell when notifications are on`},"notify.enabled":{message:`Сповіщення ввімкнено. Ми повідомимо, коли сесія потребуватиме підтвердження.`,description:`Toast after enabling notifications`},"notify.disabled":{message:`Сповіщення вимкнено.`,description:`Toast after disabling notifications`},"notify.denied":{message:`Сповіщення заблоковано. Дозвольте їх у налаштуваннях браузера, щоб отримувати сповіщення про підтвердження.`,description:`Toast when notification permission is denied`},"notify.unsupported":{message:`Сповіщення не підтримуються на цьому пристрої.`,description:`Toast when notifications are unsupported`},"notify.failed":{message:`Не вдалося оновити налаштування сповіщень.`,description:`Toast when enabling or disabling notifications errors`}};export{e as default};
@@ -1 +0,0 @@
1
- var e={"nodeList.title":{message:`Devices`,description:`Coding Bridge device list title`},"nodeList.refresh":{message:`Refresh`,description:`Refresh the device list`},"nodeList.pair":{message:`Pair device`,description:`Open the pairing dialog`},"nodeList.empty":{message:`No devices paired yet.`,description:`Empty device list message`},"nodeList.pairFirst":{message:`Pair your first device`,description:`Empty-state pairing button`},"nodeList.remove":{message:`Remove`,description:`Remove a device`},"nodeList.removeConfirm":{message:`Remove device "{name}"? It will need to be paired again.`,description:`Device removal confirmation`},"nodeList.removeSuccess":{message:`Device removed.`,description:`Device removed toast`},"nodeList.removeFailed":{message:`Failed to remove device.`,description:`Device removal error toast`},"status.online":{message:`Online`,description:`Device online status`},"status.offline":{message:`Offline`,description:`Device offline status`},"connection.disconnected":{message:`Disconnected`,description:`Relay connection disconnected`},"connection.connecting":{message:`Connecting…`,description:`Relay connection connecting`},"connection.connected":{message:`Connected`,description:`Relay connection connected`},"connection.error":{message:`Connection error`,description:`Relay connection error`},"pair.title":{message:`Pair a device`,description:`Pairing dialog title`},"pair.intro":{message:`Run the Coding Bridge agent on your computer, then enter its pairing code here to control it from the web.`,description:`Pairing dialog intro`},"pair.step1":{message:`Install the agent (requires Python 3.10+):`,description:`Pairing step 1`},"pair.step2":{message:`Start it and follow the prompt:`,description:`Pairing step 2`},"pair.step3":{message:`Enter the pairing code it shows below.`,description:`Pairing step 3`},"pair.codePlaceholder":{message:`Pairing code`,description:`Pairing code input placeholder`},"pair.claim":{message:`Pair device`,description:`Pairing confirm button`},"pair.success":{message:`Device "{name}" paired.`,description:`Pairing success toast`},"pair.invalidCode":{message:`Invalid or expired pairing code.`,description:`Pairing invalid code error`},"pair.usedCode":{message:`This pairing code has already been used.`,description:`Pairing used code error`},"pair.failed":{message:`Failed to pair device.`,description:`Pairing generic error`},"permission.title":{message:`Permission required`,description:`Permission dialog title`},"permission.subtitle":{message:`The agent wants to use a tool. Approve to continue.`,description:`Permission dialog subtitle`},"permission.deny":{message:`Deny`,description:`Deny a tool permission`},"permission.allow":{message:`Allow`,description:`Allow a tool permission`},"session.noDevice":{message:`Select a device to start coding.`,description:`No device selected placeholder`},"session.newSession":{message:`New session`,description:`Start a new session`},"session.deviceOffline":{message:`This device is offline. Start the Coding Bridge agent on it to continue.`,description:`Device offline warning`},"session.nodeId":{message:`Geräte-ID`,description:`Diagnostic label for the node id`},"session.sessionId":{message:`Sitzungs-ID`,description:`Diagnostic label for the session id`},"session.traceId":{message:`Trace-ID`,description:`Diagnostic label for the trace id`},"session.startHint":{message:`Send a message to start a session on this device.`,description:`Empty transcript hint`},"session.cwdPlaceholder":{message:`Working directory (optional)`,description:`Working directory input placeholder`},"session.modelPlaceholder":{message:`Model (optional)`,description:`Model input placeholder`},"session.promptPlaceholder":{message:`Send a message to the agent…`,description:`Prompt input placeholder`},"session.send":{message:`Send`,description:`Send prompt button`},"session.retry":{message:`Erneut versuchen`,description:`Re-run the last prompt after a failure`},"session.editPrompt":{message:`Edit`,description:`Edit a sent prompt and resend it as a new turn`},"session.editingBanner":{message:`Editing — sending rewinds the conversation to this point.`,description:`Banner shown while editing a past prompt`},"session.editRestoreCode":{message:`Also restore code`,description:`Checkbox to also roll back file changes when editing`},"session.editCancel":{message:`Cancel`,description:`Cancel editing a past prompt`},"session.editSubmit":{message:`Update`,description:`Submit an edited prompt (rewind and re-run)`},"session.enterHint":{message:`Enter to send, Shift+Enter for a new line.`,description:`Composer keyboard hint`},"transcript.turnFailed":{message:`Turn failed`,description:`Turn result failed label`},"transcript.turnDone":{message:`Done`,description:`Turn result done label`},"history.button":{message:`Verlauf`,description:`Open the conversation history drawer`},"history.title":{message:`Konversationsverlauf`,description:`History drawer title`},"history.intro":{message:`Frühere Claude-Code- und Codex-Sitzungen auf diesem Gerät.`,description:`History drawer intro`},"history.refresh":{message:`Aktualisieren`,description:`Reload the history list`},"history.loading":{message:`Verlauf wird geladen…`,description:`History loading message`},"history.empty":{message:`Kein Verlauf auf diesem Gerät gefunden.`,description:`Empty history message`},"history.messages":{message:`{count} Nachrichten`,description:`History item message count`},"history.readonly":{message:`Diese Codex-Konversation ist schreibgeschützt und kann nicht fortgesetzt werden. Starte eine neue Sitzung, um weiterzuarbeiten.`,description:`Read-only replay notice`},"history.resumeHint":{message:`Eine Nachricht setzt diese Konversation auf dem Gerät fort.`,description:`Resume composer hint`},"history.claudeLabel":{message:`Claude-Verlauf`,description:`Replayed Claude session label`},"history.codexLabel":{message:`Codex-Verlauf (schreibgeschützt)`,description:`Replayed Codex session label`},"session.permissionModeLabel":{message:`Berechtigungsmodus`,description:`Permission-mode selector label`},"session.permissionModeDefault":{message:`Standard (jedes Mal fragen)`,description:`Permission mode: ask before each tool use`},"session.permissionModeAcceptEdits":{message:`Änderungen automatisch akzeptieren`,description:`Permission mode: auto-accept file edits`},"session.permissionModePlan":{message:`Planungsmodus (schreibgeschützt)`,description:`Permission mode: read-only planning`},"session.permissionModeBypass":{message:`Alle Berechtigungen umgehen`,description:`Permission mode: bypass all permission prompts`},"session.providerLabel":{message:`Backend`,description:`Agent backend selector label`},"session.providerClaude":{message:`Claude Code`,description:`Backend option: Claude Code`},"session.providerCodex":{message:`Codex`,description:`Backend option: Codex`},"session.providerUnavailable":{message:`(nicht installiert)`,description:`Suffix shown next to a backend whose CLI is not installed on the node`},"session.providerUnavailableHint":{message:`{name} ist auf diesem Gerät nicht installiert.`,description:`Composer hint shown when the selected backend is not installed on the node`},"session.effortLabel":{message:`Denkaufwand`,description:`Reasoning-effort selector label`},"session.effortDefault":{message:`Standard`,description:`Reasoning effort: backend default`},"session.effortLow":{message:`Niedrig`,description:`Reasoning effort: low`},"session.effortMedium":{message:`Mittel`,description:`Reasoning effort: medium`},"session.effortHigh":{message:`Hoch`,description:`Reasoning effort: high`},"session.effortMax":{message:`Maximal`,description:`Reasoning effort: maximum (Claude only)`},"directory.title":{message:`Arbeitsverzeichnis wählen`,description:`Working-directory picker dialog title`},"directory.choose":{message:`Dieses Verzeichnis verwenden`,description:`Button: select the current directory`},"directory.up":{message:`Übergeordnetes Verzeichnis`,description:`Button: go to the parent directory`},"directory.refresh":{message:`Aktualisieren`,description:`Button: reload the current directory`},"directory.loading":{message:`Wird geladen…`,description:`Directory listing loading hint`},"directory.empty":{message:`Dieses Verzeichnis ist leer.`,description:`Empty directory hint`},"directory.truncated":{message:`Die ersten 1000 Einträge werden angezeigt.`,description:`Hint shown when the listing was truncated`},"session.attachImage":{message:`Bild anhängen`,description:`Attach image button title`},"session.removeImage":{message:`Bild entfernen`,description:`Remove attached image button title`},"session.imageAlt":{message:`Angehängtes Bild`,description:`Attached image thumbnail alt text`},"session.imageTooLarge":{message:`Bild ist zu groß; halte jedes unter 12 MB.`,description:`Warning shown when an image exceeds the size limit`},"session.imageLimit":{message:`Du kannst bis zu {count} Bilder anhängen.`,description:`Warning shown when exceeding the max number of images`},"session.modelDefault":{message:`Default model`,description:`Default model`},"session.cwdDefault":{message:`Default directory`,description:`Default directory`},"session.settings":{message:`Session settings`,description:`Session settings`},"session.settingsLocked":{message:`Settings are locked for this session`,description:`Settings are locked for this session`},"session.attachFile":{message:`Attach file`,description:`Attach file`},"session.attachmentImageAlt":{message:`Attached image`,description:`Attached image`},"session.removeAttachment":{message:`Remove attachment`,description:`Remove attachment`},"session.uploadingAttachment":{message:`Uploading attachments…`,description:`Uploading attachments…`},"session.attachmentTooLarge":{message:`File is too large; keep each under 50 MB.`,description:`File is too large; keep each under 50 MB.`},"session.attachmentLimit":{message:`You can attach up to {count} files.`,description:`You can attach up to {count} files.`},"session.attachmentUploadError":{message:`Failed to upload attachment.`,description:`Failed to upload attachment.`},"notice.slashUnavailable":{message:`/{command} ist ein interaktiver Befehl und kann in einer Remote-Sitzung nicht ausgeführt werden.`,description:`Notice shown when a slash command can't run in a remote session`},"notice.slashCodexUnsupported":{message:`/{command} ist für Codex in einer Remote-Sitzung nicht verfügbar.`,description:`Notice shown when a Codex slash command isn't supported remotely`},"notify.enable":{message:`Benachrichtigungen aktivieren`,description:`Tooltip on the notification bell when notifications are off`},"notify.disable":{message:`Benachrichtigungen deaktivieren`,description:`Tooltip on the notification bell when notifications are on`},"notify.enabled":{message:`Benachrichtigungen aktiviert. Wir melden uns, wenn eine Sitzung eine Freigabe benötigt.`,description:`Toast after enabling notifications`},"notify.disabled":{message:`Benachrichtigungen deaktiviert.`,description:`Toast after disabling notifications`},"notify.denied":{message:`Benachrichtigungen sind blockiert. Erlaube sie in deinen Browser-Einstellungen, um Freigabe-Hinweise zu erhalten.`,description:`Toast when notification permission is denied`},"notify.unsupported":{message:`Benachrichtigungen werden auf diesem Gerät nicht unterstützt.`,description:`Toast when notifications are unsupported`},"notify.failed":{message:`Benachrichtigungseinstellungen konnten nicht aktualisiert werden.`,description:`Toast when enabling or disabling notifications errors`}};export{e as default};
@@ -1 +0,0 @@
1
- var e={"nodeList.title":{message:`Devices`,description:`Coding Bridge device list title`},"nodeList.refresh":{message:`Refresh`,description:`Refresh the device list`},"nodeList.pair":{message:`Pair device`,description:`Open the pairing dialog`},"nodeList.empty":{message:`No devices paired yet.`,description:`Empty device list message`},"nodeList.pairFirst":{message:`Pair your first device`,description:`Empty-state pairing button`},"nodeList.remove":{message:`Remove`,description:`Remove a device`},"nodeList.removeConfirm":{message:`Remove device "{name}"? It will need to be paired again.`,description:`Device removal confirmation`},"nodeList.removeSuccess":{message:`Device removed.`,description:`Device removed toast`},"nodeList.removeFailed":{message:`Failed to remove device.`,description:`Device removal error toast`},"status.online":{message:`Online`,description:`Device online status`},"status.offline":{message:`Offline`,description:`Device offline status`},"connection.disconnected":{message:`Disconnected`,description:`Relay connection disconnected`},"connection.connecting":{message:`Connecting…`,description:`Relay connection connecting`},"connection.connected":{message:`Connected`,description:`Relay connection connected`},"connection.error":{message:`Connection error`,description:`Relay connection error`},"pair.title":{message:`Pair a device`,description:`Pairing dialog title`},"pair.intro":{message:`Run the Coding Bridge agent on your computer, then enter its pairing code here to control it from the web.`,description:`Pairing dialog intro`},"pair.step1":{message:`Install the agent (requires Python 3.10+):`,description:`Pairing step 1`},"pair.step2":{message:`Start it and follow the prompt:`,description:`Pairing step 2`},"pair.step3":{message:`Enter the pairing code it shows below.`,description:`Pairing step 3`},"pair.codePlaceholder":{message:`Pairing code`,description:`Pairing code input placeholder`},"pair.claim":{message:`Pair device`,description:`Pairing confirm button`},"pair.success":{message:`Device "{name}" paired.`,description:`Pairing success toast`},"pair.invalidCode":{message:`Invalid or expired pairing code.`,description:`Pairing invalid code error`},"pair.usedCode":{message:`This pairing code has already been used.`,description:`Pairing used code error`},"pair.failed":{message:`Failed to pair device.`,description:`Pairing generic error`},"permission.title":{message:`Permission required`,description:`Permission dialog title`},"permission.subtitle":{message:`The agent wants to use a tool. Approve to continue.`,description:`Permission dialog subtitle`},"permission.deny":{message:`Deny`,description:`Deny a tool permission`},"permission.allow":{message:`Allow`,description:`Allow a tool permission`},"session.noDevice":{message:`Select a device to start coding.`,description:`No device selected placeholder`},"session.newSession":{message:`New session`,description:`Start a new session`},"session.deviceOffline":{message:`This device is offline. Start the Coding Bridge agent on it to continue.`,description:`Device offline warning`},"session.nodeId":{message:`Identyfikator urządzenia`,description:`Diagnostic label for the node id`},"session.sessionId":{message:`Identyfikator sesji`,description:`Diagnostic label for the session id`},"session.traceId":{message:`Identyfikator śledzenia`,description:`Diagnostic label for the trace id`},"session.startHint":{message:`Send a message to start a session on this device.`,description:`Empty transcript hint`},"session.cwdPlaceholder":{message:`Working directory (optional)`,description:`Working directory input placeholder`},"session.modelPlaceholder":{message:`Model (optional)`,description:`Model input placeholder`},"session.promptPlaceholder":{message:`Send a message to the agent…`,description:`Prompt input placeholder`},"session.send":{message:`Send`,description:`Send prompt button`},"session.retry":{message:`Ponów`,description:`Re-run the last prompt after a failure`},"session.editPrompt":{message:`Edit`,description:`Edit a sent prompt and resend it as a new turn`},"session.editingBanner":{message:`Editing — sending rewinds the conversation to this point.`,description:`Banner shown while editing a past prompt`},"session.editRestoreCode":{message:`Also restore code`,description:`Checkbox to also roll back file changes when editing`},"session.editCancel":{message:`Cancel`,description:`Cancel editing a past prompt`},"session.editSubmit":{message:`Update`,description:`Submit an edited prompt (rewind and re-run)`},"session.enterHint":{message:`Enter to send, Shift+Enter for a new line.`,description:`Composer keyboard hint`},"transcript.turnFailed":{message:`Turn failed`,description:`Turn result failed label`},"transcript.turnDone":{message:`Done`,description:`Turn result done label`},"history.button":{message:`Historia`,description:`Open the conversation history drawer`},"history.title":{message:`Historia rozmów`,description:`History drawer title`},"history.intro":{message:`Poprzednie sesje Claude Code i Codex na tym urządzeniu.`,description:`History drawer intro`},"history.refresh":{message:`Odśwież`,description:`Reload the history list`},"history.loading":{message:`Ładowanie historii…`,description:`History loading message`},"history.empty":{message:`Nie znaleziono historii na tym urządzeniu.`,description:`Empty history message`},"history.messages":{message:`Wiadomości: {count}`,description:`History item message count`},"history.readonly":{message:`Ta rozmowa Codex jest tylko do odczytu i nie można jej kontynuować. Rozpocznij nową sesję, aby kontynuować kodowanie.`,description:`Read-only replay notice`},"history.resumeHint":{message:`Wysłanie wiadomości wznowi tę rozmowę na urządzeniu.`,description:`Resume composer hint`},"history.claudeLabel":{message:`Historia Claude`,description:`Replayed Claude session label`},"history.codexLabel":{message:`Historia Codex (tylko do odczytu)`,description:`Replayed Codex session label`},"session.permissionModeLabel":{message:`Tryb uprawnień`,description:`Permission-mode selector label`},"session.permissionModeDefault":{message:`Domyślny (pytaj za każdym razem)`,description:`Permission mode: ask before each tool use`},"session.permissionModeAcceptEdits":{message:`Automatycznie akceptuj zmiany`,description:`Permission mode: auto-accept file edits`},"session.permissionModePlan":{message:`Tryb planowania (tylko do odczytu)`,description:`Permission mode: read-only planning`},"session.permissionModeBypass":{message:`Pomiń wszystkie uprawnienia`,description:`Permission mode: bypass all permission prompts`},"session.providerLabel":{message:`Backend`,description:`Agent backend selector label`},"session.providerClaude":{message:`Claude Code`,description:`Backend option: Claude Code`},"session.providerCodex":{message:`Codex`,description:`Backend option: Codex`},"session.providerUnavailable":{message:`(niezainstalowane)`,description:`Suffix shown next to a backend whose CLI is not installed on the node`},"session.providerUnavailableHint":{message:`{name} nie jest zainstalowany na tym urządzeniu.`,description:`Composer hint shown when the selected backend is not installed on the node`},"session.effortLabel":{message:`Wysiłek rozumowania`,description:`Reasoning-effort selector label`},"session.effortDefault":{message:`Domyślny`,description:`Reasoning effort: backend default`},"session.effortLow":{message:`Niski`,description:`Reasoning effort: low`},"session.effortMedium":{message:`Średni`,description:`Reasoning effort: medium`},"session.effortHigh":{message:`Wysoki`,description:`Reasoning effort: high`},"session.effortMax":{message:`Maksymalny`,description:`Reasoning effort: maximum (Claude only)`},"directory.title":{message:`Wybierz katalog roboczy`,description:`Working-directory picker dialog title`},"directory.choose":{message:`Użyj tego katalogu`,description:`Button: select the current directory`},"directory.up":{message:`Katalog nadrzędny`,description:`Button: go to the parent directory`},"directory.refresh":{message:`Odśwież`,description:`Button: reload the current directory`},"directory.loading":{message:`Ładowanie…`,description:`Directory listing loading hint`},"directory.empty":{message:`Ten katalog jest pusty.`,description:`Empty directory hint`},"directory.truncated":{message:`Wyświetlono pierwsze 1000 pozycji.`,description:`Hint shown when the listing was truncated`},"session.attachImage":{message:`Załącz obraz`,description:`Attach image button title`},"session.removeImage":{message:`Usuń obraz`,description:`Remove attached image button title`},"session.imageAlt":{message:`Załączony obraz`,description:`Attached image thumbnail alt text`},"session.imageTooLarge":{message:`Obraz jest za duży; każdy powinien mieć mniej niż 12 MB.`,description:`Warning shown when an image exceeds the size limit`},"session.imageLimit":{message:`Możesz załączyć maksymalnie {count} obrazów.`,description:`Warning shown when exceeding the max number of images`},"session.modelDefault":{message:`Default model`,description:`Default model`},"session.cwdDefault":{message:`Default directory`,description:`Default directory`},"session.settings":{message:`Session settings`,description:`Session settings`},"session.settingsLocked":{message:`Settings are locked for this session`,description:`Settings are locked for this session`},"session.attachFile":{message:`Attach file`,description:`Attach file`},"session.attachmentImageAlt":{message:`Attached image`,description:`Attached image`},"session.removeAttachment":{message:`Remove attachment`,description:`Remove attachment`},"session.uploadingAttachment":{message:`Uploading attachments…`,description:`Uploading attachments…`},"session.attachmentTooLarge":{message:`File is too large; keep each under 50 MB.`,description:`File is too large; keep each under 50 MB.`},"session.attachmentLimit":{message:`You can attach up to {count} files.`,description:`You can attach up to {count} files.`},"session.attachmentUploadError":{message:`Failed to upload attachment.`,description:`Failed to upload attachment.`},"notice.slashUnavailable":{message:`/{command} to polecenie interaktywne i nie może działać w sesji zdalnej.`,description:`Notice shown when a slash command can't run in a remote session`},"notice.slashCodexUnsupported":{message:`/{command} nie jest dostępne dla Codex w sesji zdalnej.`,description:`Notice shown when a Codex slash command isn't supported remotely`},"notify.enable":{message:`Włącz powiadomienia`,description:`Tooltip on the notification bell when notifications are off`},"notify.disable":{message:`Wyłącz powiadomienia`,description:`Tooltip on the notification bell when notifications are on`},"notify.enabled":{message:`Powiadomienia włączone. Powiadomimy Cię, gdy sesja będzie wymagać zatwierdzenia.`,description:`Toast after enabling notifications`},"notify.disabled":{message:`Powiadomienia wyłączone.`,description:`Toast after disabling notifications`},"notify.denied":{message:`Powiadomienia są zablokowane. Zezwól na nie w ustawieniach przeglądarki, aby otrzymywać alerty o zatwierdzeniu.`,description:`Toast when notification permission is denied`},"notify.unsupported":{message:`Powiadomienia nie są obsługiwane na tym urządzeniu.`,description:`Toast when notifications are unsupported`},"notify.failed":{message:`Nie udało się zaktualizować ustawień powiadomień.`,description:`Toast when enabling or disabling notifications errors`}};export{e as default};
@@ -1 +0,0 @@
1
- var e={"nodeList.title":{message:`Devices`,description:`Coding Bridge device list title`},"nodeList.refresh":{message:`Refresh`,description:`Refresh the device list`},"nodeList.pair":{message:`Pair device`,description:`Open the pairing dialog`},"nodeList.empty":{message:`No devices paired yet.`,description:`Empty device list message`},"nodeList.pairFirst":{message:`Pair your first device`,description:`Empty-state pairing button`},"nodeList.remove":{message:`Remove`,description:`Remove a device`},"nodeList.removeConfirm":{message:`Remove device "{name}"? It will need to be paired again.`,description:`Device removal confirmation`},"nodeList.removeSuccess":{message:`Device removed.`,description:`Device removed toast`},"nodeList.removeFailed":{message:`Failed to remove device.`,description:`Device removal error toast`},"status.online":{message:`Online`,description:`Device online status`},"status.offline":{message:`Offline`,description:`Device offline status`},"connection.disconnected":{message:`Disconnected`,description:`Relay connection disconnected`},"connection.connecting":{message:`Connecting…`,description:`Relay connection connecting`},"connection.connected":{message:`Connected`,description:`Relay connection connected`},"connection.error":{message:`Connection error`,description:`Relay connection error`},"pair.title":{message:`Pair a device`,description:`Pairing dialog title`},"pair.intro":{message:`Run the Coding Bridge agent on your computer, then enter its pairing code here to control it from the web.`,description:`Pairing dialog intro`},"pair.step1":{message:`Install the agent (requires Python 3.10+):`,description:`Pairing step 1`},"pair.step2":{message:`Start it and follow the prompt:`,description:`Pairing step 2`},"pair.step3":{message:`Enter the pairing code it shows below.`,description:`Pairing step 3`},"pair.codePlaceholder":{message:`Pairing code`,description:`Pairing code input placeholder`},"pair.claim":{message:`Pair device`,description:`Pairing confirm button`},"pair.success":{message:`Device "{name}" paired.`,description:`Pairing success toast`},"pair.invalidCode":{message:`Invalid or expired pairing code.`,description:`Pairing invalid code error`},"pair.usedCode":{message:`This pairing code has already been used.`,description:`Pairing used code error`},"pair.failed":{message:`Failed to pair device.`,description:`Pairing generic error`},"permission.title":{message:`Permission required`,description:`Permission dialog title`},"permission.subtitle":{message:`The agent wants to use a tool. Approve to continue.`,description:`Permission dialog subtitle`},"permission.deny":{message:`Deny`,description:`Deny a tool permission`},"permission.allow":{message:`Allow`,description:`Allow a tool permission`},"session.noDevice":{message:`Select a device to start coding.`,description:`No device selected placeholder`},"session.newSession":{message:`New session`,description:`Start a new session`},"session.deviceOffline":{message:`This device is offline. Start the Coding Bridge agent on it to continue.`,description:`Device offline warning`},"session.nodeId":{message:`ID do dispositivo`,description:`Diagnostic label for the node id`},"session.sessionId":{message:`ID da sessão`,description:`Diagnostic label for the session id`},"session.traceId":{message:`ID de rastreamento`,description:`Diagnostic label for the trace id`},"session.startHint":{message:`Send a message to start a session on this device.`,description:`Empty transcript hint`},"session.cwdPlaceholder":{message:`Working directory (optional)`,description:`Working directory input placeholder`},"session.modelPlaceholder":{message:`Model (optional)`,description:`Model input placeholder`},"session.promptPlaceholder":{message:`Send a message to the agent…`,description:`Prompt input placeholder`},"session.send":{message:`Send`,description:`Send prompt button`},"session.retry":{message:`Tentar novamente`,description:`Re-run the last prompt after a failure`},"session.editPrompt":{message:`Edit`,description:`Edit a sent prompt and resend it as a new turn`},"session.editingBanner":{message:`Editing — sending rewinds the conversation to this point.`,description:`Banner shown while editing a past prompt`},"session.editRestoreCode":{message:`Also restore code`,description:`Checkbox to also roll back file changes when editing`},"session.editCancel":{message:`Cancel`,description:`Cancel editing a past prompt`},"session.editSubmit":{message:`Update`,description:`Submit an edited prompt (rewind and re-run)`},"session.enterHint":{message:`Enter to send, Shift+Enter for a new line.`,description:`Composer keyboard hint`},"transcript.turnFailed":{message:`Turn failed`,description:`Turn result failed label`},"transcript.turnDone":{message:`Done`,description:`Turn result done label`},"history.button":{message:`Histórico`,description:`Open the conversation history drawer`},"history.title":{message:`Histórico de conversas`,description:`History drawer title`},"history.intro":{message:`Sessões anteriores do Claude Code e do Codex neste dispositivo.`,description:`History drawer intro`},"history.refresh":{message:`Atualizar`,description:`Reload the history list`},"history.loading":{message:`Carregando histórico…`,description:`History loading message`},"history.empty":{message:`Nenhum histórico encontrado neste dispositivo.`,description:`Empty history message`},"history.messages":{message:`{count} mensagens`,description:`History item message count`},"history.readonly":{message:`Esta conversa do Codex é somente leitura e não pode ser continuada. Inicie uma nova sessão para continuar programando.`,description:`Read-only replay notice`},"history.resumeHint":{message:`Enviar uma mensagem retomará esta conversa no dispositivo.`,description:`Resume composer hint`},"history.claudeLabel":{message:`Histórico do Claude`,description:`Replayed Claude session label`},"history.codexLabel":{message:`Histórico do Codex (somente leitura)`,description:`Replayed Codex session label`},"session.permissionModeLabel":{message:`Modo de permissões`,description:`Permission-mode selector label`},"session.permissionModeDefault":{message:`Padrão (perguntar sempre)`,description:`Permission mode: ask before each tool use`},"session.permissionModeAcceptEdits":{message:`Aceitar edições automaticamente`,description:`Permission mode: auto-accept file edits`},"session.permissionModePlan":{message:`Modo de planejamento (somente leitura)`,description:`Permission mode: read-only planning`},"session.permissionModeBypass":{message:`Ignorar todas as permissões`,description:`Permission mode: bypass all permission prompts`},"session.providerLabel":{message:`Backend`,description:`Agent backend selector label`},"session.providerClaude":{message:`Claude Code`,description:`Backend option: Claude Code`},"session.providerCodex":{message:`Codex`,description:`Backend option: Codex`},"session.providerUnavailable":{message:`(não instalado)`,description:`Suffix shown next to a backend whose CLI is not installed on the node`},"session.providerUnavailableHint":{message:`{name} não está instalado neste dispositivo.`,description:`Composer hint shown when the selected backend is not installed on the node`},"session.effortLabel":{message:`Esforço de raciocínio`,description:`Reasoning-effort selector label`},"session.effortDefault":{message:`Padrão`,description:`Reasoning effort: backend default`},"session.effortLow":{message:`Baixo`,description:`Reasoning effort: low`},"session.effortMedium":{message:`Médio`,description:`Reasoning effort: medium`},"session.effortHigh":{message:`Alto`,description:`Reasoning effort: high`},"session.effortMax":{message:`Máximo`,description:`Reasoning effort: maximum (Claude only)`},"directory.title":{message:`Escolher diretório de trabalho`,description:`Working-directory picker dialog title`},"directory.choose":{message:`Usar este diretório`,description:`Button: select the current directory`},"directory.up":{message:`Diretório pai`,description:`Button: go to the parent directory`},"directory.refresh":{message:`Atualizar`,description:`Button: reload the current directory`},"directory.loading":{message:`A carregar…`,description:`Directory listing loading hint`},"directory.empty":{message:`Este diretório está vazio.`,description:`Empty directory hint`},"directory.truncated":{message:`A mostrar as primeiras 1000 entradas.`,description:`Hint shown when the listing was truncated`},"session.attachImage":{message:`Anexar imagem`,description:`Attach image button title`},"session.removeImage":{message:`Remover imagem`,description:`Remove attached image button title`},"session.imageAlt":{message:`Imagem anexada`,description:`Attached image thumbnail alt text`},"session.imageTooLarge":{message:`A imagem é muito grande; mantenha cada uma abaixo de 12 MB.`,description:`Warning shown when an image exceeds the size limit`},"session.imageLimit":{message:`Você pode anexar até {count} imagens.`,description:`Warning shown when exceeding the max number of images`},"session.modelDefault":{message:`Default model`,description:`Default model`},"session.cwdDefault":{message:`Default directory`,description:`Default directory`},"session.settings":{message:`Session settings`,description:`Session settings`},"session.settingsLocked":{message:`Settings are locked for this session`,description:`Settings are locked for this session`},"session.attachFile":{message:`Attach file`,description:`Attach file`},"session.attachmentImageAlt":{message:`Attached image`,description:`Attached image`},"session.removeAttachment":{message:`Remove attachment`,description:`Remove attachment`},"session.uploadingAttachment":{message:`Uploading attachments…`,description:`Uploading attachments…`},"session.attachmentTooLarge":{message:`File is too large; keep each under 50 MB.`,description:`File is too large; keep each under 50 MB.`},"session.attachmentLimit":{message:`You can attach up to {count} files.`,description:`You can attach up to {count} files.`},"session.attachmentUploadError":{message:`Failed to upload attachment.`,description:`Failed to upload attachment.`},"notice.slashUnavailable":{message:`/{command} é um comando interativo e não pode ser executado numa sessão remota.`,description:`Notice shown when a slash command can't run in a remote session`},"notice.slashCodexUnsupported":{message:`/{command} não está disponível para o Codex numa sessão remota.`,description:`Notice shown when a Codex slash command isn't supported remotely`},"notify.enable":{message:`Ativar notificações`,description:`Tooltip on the notification bell when notifications are off`},"notify.disable":{message:`Desativar notificações`,description:`Tooltip on the notification bell when notifications are on`},"notify.enabled":{message:`Notificações ativadas. Avisaremos quando uma sessão precisar de aprovação.`,description:`Toast after enabling notifications`},"notify.disabled":{message:`Notificações desativadas.`,description:`Toast after disabling notifications`},"notify.denied":{message:`As notificações estão bloqueadas. Permita-as nas configurações do navegador para receber alertas de aprovação.`,description:`Toast when notification permission is denied`},"notify.unsupported":{message:`As notificações não são compatíveis com este dispositivo.`,description:`Toast when notifications are unsupported`},"notify.failed":{message:`Não foi possível atualizar as configurações de notificação.`,description:`Toast when enabling or disabling notifications errors`}};export{e as default};
@@ -1 +0,0 @@
1
- var e={"nodeList.title":{message:`Devices`,description:`Coding Bridge device list title`},"nodeList.refresh":{message:`Refresh`,description:`Refresh the device list`},"nodeList.pair":{message:`Pair device`,description:`Open the pairing dialog`},"nodeList.empty":{message:`No devices paired yet.`,description:`Empty device list message`},"nodeList.pairFirst":{message:`Pair your first device`,description:`Empty-state pairing button`},"nodeList.remove":{message:`Remove`,description:`Remove a device`},"nodeList.removeConfirm":{message:`Remove device "{name}"? It will need to be paired again.`,description:`Device removal confirmation`},"nodeList.removeSuccess":{message:`Device removed.`,description:`Device removed toast`},"nodeList.removeFailed":{message:`Failed to remove device.`,description:`Device removal error toast`},"status.online":{message:`Online`,description:`Device online status`},"status.offline":{message:`Offline`,description:`Device offline status`},"connection.disconnected":{message:`Disconnected`,description:`Relay connection disconnected`},"connection.connecting":{message:`Connecting…`,description:`Relay connection connecting`},"connection.connected":{message:`Connected`,description:`Relay connection connected`},"connection.error":{message:`Connection error`,description:`Relay connection error`},"pair.title":{message:`Pair a device`,description:`Pairing dialog title`},"pair.intro":{message:`Run the Coding Bridge agent on your computer, then enter its pairing code here to control it from the web.`,description:`Pairing dialog intro`},"pair.step1":{message:`Install the agent (requires Python 3.10+):`,description:`Pairing step 1`},"pair.step2":{message:`Start it and follow the prompt:`,description:`Pairing step 2`},"pair.step3":{message:`Enter the pairing code it shows below.`,description:`Pairing step 3`},"pair.codePlaceholder":{message:`Pairing code`,description:`Pairing code input placeholder`},"pair.claim":{message:`Pair device`,description:`Pairing confirm button`},"pair.success":{message:`Device "{name}" paired.`,description:`Pairing success toast`},"pair.invalidCode":{message:`Invalid or expired pairing code.`,description:`Pairing invalid code error`},"pair.usedCode":{message:`This pairing code has already been used.`,description:`Pairing used code error`},"pair.failed":{message:`Failed to pair device.`,description:`Pairing generic error`},"permission.title":{message:`Permission required`,description:`Permission dialog title`},"permission.subtitle":{message:`The agent wants to use a tool. Approve to continue.`,description:`Permission dialog subtitle`},"permission.deny":{message:`Deny`,description:`Deny a tool permission`},"permission.allow":{message:`Allow`,description:`Allow a tool permission`},"session.noDevice":{message:`Select a device to start coding.`,description:`No device selected placeholder`},"session.newSession":{message:`New session`,description:`Start a new session`},"session.deviceOffline":{message:`This device is offline. Start the Coding Bridge agent on it to continue.`,description:`Device offline warning`},"session.nodeId":{message:`ID dispositivo`,description:`Diagnostic label for the node id`},"session.sessionId":{message:`ID sessione`,description:`Diagnostic label for the session id`},"session.traceId":{message:`ID traccia`,description:`Diagnostic label for the trace id`},"session.startHint":{message:`Send a message to start a session on this device.`,description:`Empty transcript hint`},"session.cwdPlaceholder":{message:`Working directory (optional)`,description:`Working directory input placeholder`},"session.modelPlaceholder":{message:`Model (optional)`,description:`Model input placeholder`},"session.promptPlaceholder":{message:`Send a message to the agent…`,description:`Prompt input placeholder`},"session.send":{message:`Send`,description:`Send prompt button`},"session.retry":{message:`Riprova`,description:`Re-run the last prompt after a failure`},"session.editPrompt":{message:`Edit`,description:`Edit a sent prompt and resend it as a new turn`},"session.editingBanner":{message:`Editing — sending rewinds the conversation to this point.`,description:`Banner shown while editing a past prompt`},"session.editRestoreCode":{message:`Also restore code`,description:`Checkbox to also roll back file changes when editing`},"session.editCancel":{message:`Cancel`,description:`Cancel editing a past prompt`},"session.editSubmit":{message:`Update`,description:`Submit an edited prompt (rewind and re-run)`},"session.enterHint":{message:`Enter to send, Shift+Enter for a new line.`,description:`Composer keyboard hint`},"transcript.turnFailed":{message:`Turn failed`,description:`Turn result failed label`},"transcript.turnDone":{message:`Done`,description:`Turn result done label`},"history.button":{message:`Cronologia`,description:`Open the conversation history drawer`},"history.title":{message:`Cronologia delle conversazioni`,description:`History drawer title`},"history.intro":{message:`Sessioni Claude Code e Codex precedenti su questo dispositivo.`,description:`History drawer intro`},"history.refresh":{message:`Aggiorna`,description:`Reload the history list`},"history.loading":{message:`Caricamento della cronologia…`,description:`History loading message`},"history.empty":{message:`Nessuna cronologia trovata su questo dispositivo.`,description:`Empty history message`},"history.messages":{message:`{count} messaggi`,description:`History item message count`},"history.readonly":{message:`Questa conversazione Codex è di sola lettura e non può essere continuata. Avvia una nuova sessione per continuare a programmare.`,description:`Read-only replay notice`},"history.resumeHint":{message:`L’invio di un messaggio riprenderà questa conversazione sul dispositivo.`,description:`Resume composer hint`},"history.claudeLabel":{message:`Cronologia Claude`,description:`Replayed Claude session label`},"history.codexLabel":{message:`Cronologia Codex (sola lettura)`,description:`Replayed Codex session label`},"session.permissionModeLabel":{message:`Modalità autorizzazioni`,description:`Permission-mode selector label`},"session.permissionModeDefault":{message:`Predefinito (chiedi ogni volta)`,description:`Permission mode: ask before each tool use`},"session.permissionModeAcceptEdits":{message:`Accetta automaticamente le modifiche`,description:`Permission mode: auto-accept file edits`},"session.permissionModePlan":{message:`Modalità pianificazione (sola lettura)`,description:`Permission mode: read-only planning`},"session.permissionModeBypass":{message:`Ignora tutte le autorizzazioni`,description:`Permission mode: bypass all permission prompts`},"session.providerLabel":{message:`Backend`,description:`Agent backend selector label`},"session.providerClaude":{message:`Claude Code`,description:`Backend option: Claude Code`},"session.providerCodex":{message:`Codex`,description:`Backend option: Codex`},"session.providerUnavailable":{message:`(non installato)`,description:`Suffix shown next to a backend whose CLI is not installed on the node`},"session.providerUnavailableHint":{message:`{name} non è installato su questo dispositivo.`,description:`Composer hint shown when the selected backend is not installed on the node`},"session.effortLabel":{message:`Sforzo di ragionamento`,description:`Reasoning-effort selector label`},"session.effortDefault":{message:`Predefinito`,description:`Reasoning effort: backend default`},"session.effortLow":{message:`Basso`,description:`Reasoning effort: low`},"session.effortMedium":{message:`Medio`,description:`Reasoning effort: medium`},"session.effortHigh":{message:`Alto`,description:`Reasoning effort: high`},"session.effortMax":{message:`Massimo`,description:`Reasoning effort: maximum (Claude only)`},"directory.title":{message:`Scegli la directory di lavoro`,description:`Working-directory picker dialog title`},"directory.choose":{message:`Usa questa directory`,description:`Button: select the current directory`},"directory.up":{message:`Directory superiore`,description:`Button: go to the parent directory`},"directory.refresh":{message:`Aggiorna`,description:`Button: reload the current directory`},"directory.loading":{message:`Caricamento…`,description:`Directory listing loading hint`},"directory.empty":{message:`Questa directory è vuota.`,description:`Empty directory hint`},"directory.truncated":{message:`Mostrate le prime 1000 voci.`,description:`Hint shown when the listing was truncated`},"session.attachImage":{message:`Allega immagine`,description:`Attach image button title`},"session.removeImage":{message:`Rimuovi immagine`,description:`Remove attached image button title`},"session.imageAlt":{message:`Immagine allegata`,description:`Attached image thumbnail alt text`},"session.imageTooLarge":{message:`L'immagine è troppo grande; mantieni ciascuna sotto i 12 MB.`,description:`Warning shown when an image exceeds the size limit`},"session.imageLimit":{message:`Puoi allegare fino a {count} immagini.`,description:`Warning shown when exceeding the max number of images`},"session.modelDefault":{message:`Default model`,description:`Default model`},"session.cwdDefault":{message:`Default directory`,description:`Default directory`},"session.settings":{message:`Session settings`,description:`Session settings`},"session.settingsLocked":{message:`Settings are locked for this session`,description:`Settings are locked for this session`},"session.attachFile":{message:`Attach file`,description:`Attach file`},"session.attachmentImageAlt":{message:`Attached image`,description:`Attached image`},"session.removeAttachment":{message:`Remove attachment`,description:`Remove attachment`},"session.uploadingAttachment":{message:`Uploading attachments…`,description:`Uploading attachments…`},"session.attachmentTooLarge":{message:`File is too large; keep each under 50 MB.`,description:`File is too large; keep each under 50 MB.`},"session.attachmentLimit":{message:`You can attach up to {count} files.`,description:`You can attach up to {count} files.`},"session.attachmentUploadError":{message:`Failed to upload attachment.`,description:`Failed to upload attachment.`},"notice.slashUnavailable":{message:`/{command} è un comando interattivo e non può essere eseguito in una sessione remota.`,description:`Notice shown when a slash command can't run in a remote session`},"notice.slashCodexUnsupported":{message:`/{command} non è disponibile per Codex in una sessione remota.`,description:`Notice shown when a Codex slash command isn't supported remotely`},"notify.enable":{message:`Attiva le notifiche`,description:`Tooltip on the notification bell when notifications are off`},"notify.disable":{message:`Disattiva le notifiche`,description:`Tooltip on the notification bell when notifications are on`},"notify.enabled":{message:`Notifiche attivate. Ti avviseremo quando una sessione richiede un'approvazione.`,description:`Toast after enabling notifications`},"notify.disabled":{message:`Notifiche disattivate.`,description:`Toast after disabling notifications`},"notify.denied":{message:`Le notifiche sono bloccate. Consentile nelle impostazioni del browser per ricevere gli avvisi di approvazione.`,description:`Toast when notification permission is denied`},"notify.unsupported":{message:`Le notifiche non sono supportate su questo dispositivo.`,description:`Toast when notifications are unsupported`},"notify.failed":{message:`Impossibile aggiornare le impostazioni delle notifiche.`,description:`Toast when enabling or disabling notifications errors`}};export{e as default};