@runeya/runeya 1.33.32 → 1.33.34

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 (96) hide show
  1. package/node-red-contrib-runeya.tar +0 -0
  2. package/package.json +1 -1
  3. package/public/assets/App-0vRbxmNQ.js +162 -0
  4. package/public/assets/{Bugs-BuV_M_lb.js → Bugs-n-hL7tUR.js} +1 -1
  5. package/public/assets/{Configs-BK0Jsvi5.js → Configs-bQOmYUwB.js} +12 -12
  6. package/public/assets/{CurrentEditor-CwOF8PuR.js → CurrentEditor-DZy4816h.js} +1 -1
  7. package/public/assets/{DynamicComponent-B1sv1s6U.js → DynamicComponent-DCIgHp0w.js} +1 -1
  8. package/public/assets/{Editor-UHqSMXPl.js → Editor-85UXMxbX.js} +6 -6
  9. package/public/assets/{Git-BXjTBqk6.js → Git-BTmTOBkZ.js} +6 -6
  10. package/public/assets/ImportCreate-DA8nt12l.js +1 -0
  11. package/public/assets/Index-B4Jvfo8e.js +1 -0
  12. package/public/assets/{Index-B2xa1moZ.js → Index-BGpzaK8G.js} +1 -1
  13. package/public/assets/Index-BHEG6rJY.js +1 -0
  14. package/public/assets/Index-CRZ-g8e2.js +1 -0
  15. package/public/assets/{Index-sXG9TyFm.js → Index-CXn-ZwGz.js} +1 -1
  16. package/public/assets/Index-DbwN_Se_.js +1 -0
  17. package/public/assets/Index-q3C0za8f.js +1 -0
  18. package/public/assets/{Init-BBjAAas3.js → Init-DR8vFROF.js} +1 -1
  19. package/public/assets/{LeftLogo-BQhhaJXo.js → LeftLogo-CwOza4RI.js} +1 -1
  20. package/public/assets/Logs-DX9U7WTO.css +32 -0
  21. package/public/assets/Logs-jwvcWIZr.js +190 -0
  22. package/public/assets/{Markdown-B5Tgfrxo.js → Markdown-BFUj3ed1.js} +1 -1
  23. package/public/assets/Modal-2tP8c2tI.js +1 -0
  24. package/public/assets/Modals-BzQS_5UQ.js +1 -0
  25. package/public/assets/{NotUpToDate-Bqstt-lY.js → NotUpToDate-t3p2zniq.js} +1 -1
  26. package/public/assets/{Npm-Dmk7d_y9.js → Npm-Dqy7RKe-.js} +1 -1
  27. package/public/assets/Overview-DoYNIFEp.js +1 -0
  28. package/public/assets/Section-BX-e-3c4.js +1 -0
  29. package/public/assets/Section-DPgWRrmJ.css +1 -0
  30. package/public/assets/{Settings-P4TuAd-6.js → Settings-B3LTHHPc.js} +6 -6
  31. package/public/assets/{Spinner-BMsNFBmq.js → Spinner-CXzAhlRM.js} +1 -1
  32. package/public/assets/{StackChooser-BQUkjB35.js → StackChooser-BeFnlQEV.js} +1 -1
  33. package/public/assets/StackChooser-DuZcAiy1.js +1 -0
  34. package/public/assets/{StackMultiple-C90SG5fT.js → StackMultiple-Co1TxdN7.js} +1 -1
  35. package/public/assets/StackSingle-B134QzRJ.js +1 -0
  36. package/public/assets/{Tabs-BA8jGnfl.js → Tabs-Wt5WJosi.js} +1 -1
  37. package/public/assets/{Theme-bzIwiZ5B.js → Theme-D4GhxSvQ.js} +1 -1
  38. package/public/assets/{Toolbox-BIYPBdmX.js → Toolbox-Di3ea2VB.js} +1 -1
  39. package/public/assets/{cssMode-DiP8gPm8.js → cssMode-ABJDT4xL.js} +1 -1
  40. package/public/assets/currentEditor-gGWhMRDi.js +1 -0
  41. package/public/assets/{freemarker2-fhQxzLMj.js → freemarker2-C6_zUoz_.js} +1 -1
  42. package/public/assets/{fs-BO_e5aGe.js → fs-Rt3HnuaZ.js} +1 -1
  43. package/public/assets/{handlebars-aLh6Ne7C.js → handlebars-CsmUKnmI.js} +1 -1
  44. package/public/assets/{html-BSjkvURL.js → html-DwooehwI.js} +1 -1
  45. package/public/assets/{htmlMode-ju_2D_Nr.js → htmlMode-lnbtYiz1.js} +1 -1
  46. package/public/assets/{index-CZ6deEIJ.js → index-3ZvrYKa3.js} +2 -2
  47. package/public/assets/{index-e0ZhF1ea.js → index-B53oJTt9.js} +3 -3
  48. package/public/assets/{index-DGME7aKs.js → index-B6uAxUbc.js} +7 -7
  49. package/public/assets/{index-UzGzKvDE.js → index-BRvRdm2d.js} +5 -5
  50. package/public/assets/index-CHlc7El7.css +5 -0
  51. package/public/assets/{index-B_ICEWNI.js → index-CV0pET8D.js} +1 -1
  52. package/public/assets/index-CY-FD0AK.js +201 -0
  53. package/public/assets/index-CxR262qY.js +1 -0
  54. package/public/assets/index-D_XM890H.js +178 -0
  55. package/public/assets/index-DazOL6mm.js +206 -0
  56. package/public/assets/{index-BJkfmYFE.js → index-Dh1WAh9C.js} +3 -3
  57. package/public/assets/{index-DvEhrupB.js → index-rSgGIdjv.js} +6 -6
  58. package/public/assets/{javascript-GC_yMVf_.js → javascript-oMNl3vwx.js} +1 -1
  59. package/public/assets/json-tree-view-vue3.es-DGg-wd6p.js +1 -0
  60. package/public/assets/{jsonMode-Clc3SKQk.js → jsonMode-CKO6Dx_W.js} +1 -1
  61. package/public/assets/{liquid-Cl7ryLES.js → liquid-CFYVQBf0.js} +1 -1
  62. package/public/assets/{mdx-DGSKEVGT.js → mdx-_21wU5oo.js} +1 -1
  63. package/public/assets/{python-CGnKnPrn.js → python-CgDvytUF.js} +1 -1
  64. package/public/assets/{razor-XEoGvJHl.js → razor-CpvrGZ7N.js} +1 -1
  65. package/public/assets/{router-Cxk7zjvo.js → router-DK7DUOjn.js} +30 -30
  66. package/public/assets/system-CoqDRPac.js +1 -0
  67. package/public/assets/{tsMode-wgpd7Msz.js → tsMode-CIYZ5icc.js} +1 -1
  68. package/public/assets/{typescript-DUS--dzx.js → typescript-k_Xuqjo2.js} +1 -1
  69. package/public/assets/{xml-Be2UCQYa.js → xml-aHSiJT5P.js} +1 -1
  70. package/public/assets/{yaml-Ct-2OlYY.js → yaml-oLQlyCkB.js} +1 -1
  71. package/public/index.html +1 -1
  72. package/www.js +8 -2
  73. package/www.js.map +1 -1
  74. package/public/assets/App-ZLERnMNy.js +0 -101
  75. package/public/assets/ImportCreate-v1Zc-klN.js +0 -1
  76. package/public/assets/Index-ByqyAjzj.js +0 -1
  77. package/public/assets/Index-C-dSwUxh.js +0 -1
  78. package/public/assets/Index-CgE43z6S.js +0 -1
  79. package/public/assets/Index-CuLX9CEK.js +0 -1
  80. package/public/assets/Index-JDsLttr4.js +0 -1
  81. package/public/assets/Logs-B87TNYBN.js +0 -74
  82. package/public/assets/Logs-DMnPRUc7.css +0 -32
  83. package/public/assets/Modal-iAUX09_b.js +0 -1
  84. package/public/assets/Modals-BSBo1mHy.js +0 -1
  85. package/public/assets/Overview-D64dSNmB.js +0 -1
  86. package/public/assets/Section-Dz0BsVYl.css +0 -1
  87. package/public/assets/Section-u9eiCD3F.js +0 -1
  88. package/public/assets/StackChooser-Doewl5mP.js +0 -1
  89. package/public/assets/StackSingle-DmRSxhHY.js +0 -1
  90. package/public/assets/currentEditor-kBIRJ2ns.js +0 -1
  91. package/public/assets/index-BN_JECzv.js +0 -201
  92. package/public/assets/index-BelhD7LL.js +0 -264
  93. package/public/assets/index-D9v3u7Fv.css +0 -5
  94. package/public/assets/index-STDFvzob.js +0 -176
  95. package/public/assets/json-tree-view-vue3.es-DcbFXQbs.js +0 -1
  96. package/public/assets/system-CaB6RF01.js +0 -1
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runeya/runeya",
3
- "version": "1.33.32",
3
+ "version": "1.33.34",
4
4
  "description": "Monitor processes as a stack",
5
5
  "git": "https://github.com/runeya/runeya",
6
6
  "repository": "https://github.com/runeya/runeya",
@@ -0,0 +1,162 @@
1
+ import{u as ce,S as j,n as A,P as ft,p as pt}from"./router-DK7DUOjn.js";import de from"./system-CoqDRPac.js";import{s as vt}from"./sort-BibmqbFD.js";import{_ as K}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as Y,a as y,o as v,b as p,d as U,t as O,n as F,r as S,w as Ie,e as k,f as $,g as M,h as we,T as ht,i as ke,j as te,S as x,k as fe,l as V,m as nt,v as mt,p as Je,F as D,q as H,s as B,u as Q,x as gt,y as ot,B as it,z as Ce,A as Z,C as le,D as se,E as Ae,G as yt,H as bt,I as wt,J as kt,K as Oe,L as Ct,M as _t,N as Et,O as ue,P as Fe,$ as ne,Q as ge,R as Le,U as $t,V as _e,W as ee,X as St,Y as Ne,Z as P,_ as It,a0 as xt,a1 as Tt}from"./index-DazOL6mm.js";import{s as pe,a as At,b as Ve}from"./index-CY-FD0AK.js";import{s as J}from"./index-Dh1WAh9C.js";import{s as Ee,B as Ot,C as Lt,u as ye,R as Vt}from"./index-D_XM890H.js";import{M as De}from"./Modal-2tP8c2tI.js";import{P as rt}from"./Section-BX-e-3c4.js";import{T as $e}from"./Theme-D4GhxSvQ.js";import{Z as Ke,s as Mt}from"./index-BRvRdm2d.js";import{s as jt}from"./index-3ZvrYKa3.js";import{S as Dt}from"./Spinner-CXzAhlRM.js";import{s as qe}from"./index-CV0pET8D.js";import"./lodash-D2RHCRSL.js";import{s as Pt,a as Rt}from"./index-B53oJTt9.js";import{d as Bt}from"./index-DzbsgEyi.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./Editor-85UXMxbX.js";import"./index-CxR262qY.js";/* empty css */import"./_baseFor-DiPelG4M.js";const Nt={key:0,class:"fas fa-exclamation"},zt={key:1,class:"fas fa-heartbeat success"},Ut={key:2,class:"fas fa-times warning"},Ht={key:3,class:"fas fa-square"},Wt={__name:"sidebarItem",props:{service:{default:null}},setup(n){const e=ce(),t=n,o=Y(()=>{var d;const f=e.currentRoute.value.fullPath.split("?")[0].split("/").filter(c=>c).pop();return(d=t.service)!=null&&d.label?encodeURIComponent(t.service.label)===f:!1});function i(r){localStorage.setItem("last-service-visisted",r.label||""),e.push({name:"stack-single",params:{label:r.label}})}return(r,f)=>(v(),y("div",{onClick:f[0]||(f[0]=d=>i(n.service)),class:F(["sidebar-item",{active:o.value,disabled:!n.service.enabled,crashed:n.service.crashed}])},[p("span",null,[n.service.crashed?(v(),y("i",Nt)):n.service.enabled&&!n.service.exited?(v(),y("i",zt)):n.service.exited?(v(),y("i",Ut)):(v(),y("i",Ht)),U(" "+O(n.service.label),1)]),f[1]||(f[1]=p("i",{class:"fas fa-chevron-right hover","aria-hidden":"true"},null,-1))],2))}},Jt=K(Wt,[["__scopeId","data-v-30b21d4f"]]),Ft={class:"title"},Kt={__name:"sidebarGroup",props:{header:{default:""},open:{default:!1}},emits:["open","close"],setup(n,{emit:e}){const t=n,o=e,i=S(t.open),r=S();Ie(()=>t.open,async()=>{i.value=t.open,await ke(),r.value&&(r.value.style.maxHeight=`${r.value.scrollHeight}px`)});function f(){i.value=!i.value,i.value?o("open"):o("close")}return(d,c)=>(v(),y("div",{class:F({open:i.value})},[p("div",{class:"header",onClick:f},[c[0]||(c[0]=p("i",{class:"fas fa-chevron-right"},null,-1)),p("h3",Ft,O(n.header),1)]),k(ht,{name:"fade-sidebar"},{default:$(()=>[i.value?(v(),y("div",{key:0,class:"slot-container",ref_key:"slotRef",ref:r},[we(d.$slots,"default",{},void 0,!0)],512)):M("",!0)]),_:3})],2))}},qt=K(Kt,[["__scopeId","data-v-e715e98d"]]),Gt={components:{sidebarItem:Jt,sidebarGroup:qt,Dialog:pe,Button:J,InputText:Ee},props:{currentService:{default:null},isMinimized:{default:!1}},setup(){const n=ce(),e=S(""),t=S("All"),o=S(!1);te(async()=>{await j.loadServices(),x.on("service:crash",async({label:d,code:c,signal:l})=>{A.next("error",`${d} has crashed with code ${c}`),await j.loadServices()}),x.on("service:exit",async({label:d,code:c,signal:l})=>{await j.loadServices()}),x.on("service:healthcheck:down",async({label:d,code:c,signal:l})=>{const h=await j.getService(d);h!=null&&h.crashed||await j.loadServices()}),x.on("service:healthcheck:up",async({label:d,code:c,signal:l})=>{const h=await j.getService(d);h!=null&&h.crashed&&await j.loadServices()})});const i=Y(()=>vt(j.services.value.filter(d=>(d.label||"").toUpperCase().includes(e.value.toUpperCase()))).desc(d=>d.enabled)),r=Y(()=>{const d=i.value.reduce((c,l)=>{var h;return(h=l.groups)!=null&&h.length&&l.groups.forEach(m=>{c[m]||(c[m]=[]),c[m].push(l)}),c},{});return Object.keys(d).map(c=>({label:c,services:d[c]})).sort((c,l)=>c.label.localeCompare(l.label))}),f=S("");return{groups:r,openGroup:t,search:e,sortedStack:i,System:de,serviceLabelToAdd:f,addServiceModalVisible:o,addServiceError:Y(()=>j.services.value.find(d=>d.label===f.value)?"A service already exists with this label":""),addService(){j.services.value.find(d=>d.label===f.value)||fe.post("/stack/services",{label:f.value}).then(()=>{const d=f.value;o.value=!1,setTimeout(()=>{n.push({name:"stack-single",params:{label:d},query:{tab:"Configuration"}})},100),f.value=""})},launchService(d){const c=i.value[0];d.ctrlKey&&c&&(c==null||c.restart(),localStorage.setItem("last-service-visisted",c.label||""),n.push({name:"stack-single",params:{label:c.label}}))},openAddServiceModal(){o.value=!0},cancelAddService(){o.value=!1,f.value=""}}}},Zt={class:"sidebar-root"},Qt={class:"sidebar"},Yt={class:"add-container"},Xt={key:0},en={class:"header"},tn={class:"services-container"},nn={class:"minimized-container"},on={class:"p-fluid"},rn={class:"p-field"},ln={key:0,class:"p-error"};function sn(n,e,t,o,i,r){const f=V("Button"),d=V("sidebar-item"),c=V("sidebar-group"),l=V("InputText"),h=V("Dialog");return v(),y("div",Zt,[p("div",Qt,[p("div",Yt,[k(f,{class:"add-button",fluid:"",outlined:"",icon:"fas fa-plus",label:"Add service",onClick:o.openAddServiceModal},null,8,["onClick"]),o.addServiceError?(v(),y("label",Xt,O(o.addServiceError),1)):M("",!0)]),p("div",en,[nt(p("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=m=>o.search=m),onInput:e[1]||(e[1]=m=>o.openGroup="All"),class:"search-input",placeholder:"Search service...",onKeypress:e[2]||(e[2]=Je((...m)=>o.launchService&&o.launchService(...m),["enter"]))},null,544),[[mt,o.search]])]),p("div",tn,[k(c,{header:"All",open:o.openGroup==="All",onOpen:e[3]||(e[3]=m=>o.openGroup="All")},{default:$(()=>[(v(!0),y(D,null,H(o.sortedStack,m=>(v(),B(d,{key:m.label,service:m},null,8,["service"]))),128))]),_:1},8,["open"]),(v(!0),y(D,null,H(o.groups,m=>(v(),B(c,{header:m.label,open:o.openGroup===m.label,onOpen:I=>o.openGroup=m.label,onClose:e[4]||(e[4]=I=>o.openGroup="All")},{default:$(()=>[(v(!0),y(D,null,H(m.services,I=>(v(),B(d,{key:I.label,service:I},null,8,["service"]))),128))]),_:2},1032,["header","open","onOpen"]))),256))]),p("div",nn,[t.isMinimized?M("",!0):(v(),B(f,{key:0,icon:"fas fa-chevron-left",outlined:"",onClick:e[5]||(e[5]=m=>n.$emit("toggle-minimized"))}))])]),k(h,{visible:o.addServiceModalVisible,"onUpdate:visible":e[7]||(e[7]=m=>o.addServiceModalVisible=m),modal:"",header:"Add new service",style:{width:"350px"}},{footer:$(()=>[k(f,{label:"Cancel",icon:"fas fa-times",onClick:o.cancelAddService,class:"p-button-text"},null,8,["onClick"]),k(f,{label:"Add",icon:"fas fa-plus",onClick:o.addService,disabled:!!o.addServiceError||!o.serviceLabelToAdd},null,8,["onClick","disabled"])]),default:$(()=>[p("div",on,[p("div",rn,[k(l,{modelValue:o.serviceLabelToAdd,"onUpdate:modelValue":e[6]||(e[6]=m=>o.serviceLabelToAdd=m),placeholder:"Service name",onKeypress:Je(o.addService,["enter"]),autofocus:"",fluid:""},null,8,["modelValue","onKeypress"]),o.addServiceError?(v(),y("small",ln,O(o.addServiceError),1)):M("",!0)])])]),_:1},8,["visible"])])}const an=K(Gt,[["render",sn],["__scopeId","data-v-367d8d42"]]);function un(n={}){let e;if(n.repoUrl)e=n.repoUrl;else if(n.user&&n.repo)e=`https://github.com/${n.user}/${n.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");const t=new URL(`${e}/issues/new`),o=["body","title","labels","template","milestone","assignee","projects","type"];for(const i of o){let r=n[i];if(r!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(r))throw new TypeError(`The \`${i}\` option should be an array`);r=r.join(",")}t.searchParams.set(i,r)}}return t.toString()}const cn=un({user:"runeya",repo:"runeya",body:`
2
+ ## Issue
3
+
4
+ ### Plateform
5
+ \`\`\`<Windows10, Archlinux, MacOS...>\`\`\`
6
+
7
+ ### Configuration file
8
+ \`\`\` javascript
9
+ <upload your configuration file but without sensitive infos>
10
+ \`\`\`
11
+
12
+ ### Description
13
+ \\<Which part of this application bug...>
14
+
15
+
16
+ ### Reproduction
17
+ \\<Step to bug...>
18
+
19
+ `}),dn={key:0},fn={key:1},pn={class:"messages"},vn={key:0,class:"badge"},hn={key:2,class:"badge"},mn={__name:"Notification",props:{width:{default:"420px"},notif:{default:null},nolimit:{default:!1}},setup(n){return(e,t)=>{var o,i,r,f,d,c,l;return n.notif?(v(),y("div",{key:0,class:F([n.notif.type,"notif"]),style:Q({maxWidth:n.width})},[n.notif.hover?n.notif.serviceLabel?(v(),y("h2",fn,t[0]||(t[0]=[p("i",{class:"fas fa-chevron-right"},null,-1)]))):M("",!0):(v(),y(D,{key:0},[n.notif.serviceLabel?(v(),y("h2",dn,O(n.notif.serviceLabel),1)):M("",!0)],64)),p("div",pn,[(v(!0),y(D,null,H((o=n.notif)==null?void 0:o.msgs,h=>{var m,I;return v(),y("div",{class:F(["message",{glow:((I=(m=n.notif)==null?void 0:m.msgs)==null?void 0:I.length)>1,oneline:!n.nolimit}]),key:h.label},[U(O(h.label)+" ",1),n.notif.msgs.length>1&&(h==null?void 0:h.nb)>1?(v(),y("div",vn,O(h==null?void 0:h.nb),1)):M("",!0)],2)}),128))]),((r=(i=n.notif)==null?void 0:i.msgs)==null?void 0:r.length)===1&&((d=(f=n.notif)==null?void 0:f.msgs[0])==null?void 0:d.nb)>1?(v(),y("div",hn,O((l=(c=n.notif)==null?void 0:c.msgs[0])==null?void 0:l.nb),1)):M("",!0)],6)):M("",!0)}}},lt=K(mn,[["__scopeId","data-v-e8fbbfbc"]]),gn={components:{Notification:lt},setup(){const n=(e,t)=>A.remove(e,t);return{notifs:A.notifs,remove:n,trash(){ft.map(A.notifs.value||[],async e=>{await new Promise(t=>setTimeout(t,50)),A.notifs.value.map(t=>n(t,!1))})}}}},yn={class:"notifications-container"};function bn(n,e,t,o,i,r){var d;const f=V("notification");return v(),y("div",yn,[(d=o.notifs)!=null&&d.length?(v(),y("div",{key:0,class:"trash",onClick:e[0]||(e[0]=(...c)=>o.trash&&o.trash(...c))},e[1]||(e[1]=[p("i",{class:"fas fa-trash"},null,-1)]))):M("",!0),k(gt,{tag:"div",class:"root-notification",name:"slide"},{default:$(()=>[(v(!0),y(D,null,H(o.notifs,c=>(v(),B(f,{key:c.id,notif:c,onClick:l=>o.remove(c,!0),onMouseenter:l=>c.hover=!0,onMouseleave:l=>c.hover=!1},null,8,["notif","onClick","onMouseenter","onMouseleave"]))),128))]),_:1})])}const wn=K(gn,[["render",bn],["__scopeId","data-v-5b545583"]]);x.on("alert",n=>{A.next(n.type||"error",n.message,n.label,null,n.commandId)});const kn={components:{Modal:De,Notification:lt},setup(){const n=S(null);return te(()=>{A.openHistory.subscribe(()=>{var t;(t=n.value)==null||t.open()})}),{notifs:S(A.notifsHistory.value),remove(t){A.removeHistory(t,!0)},modal:n}}},Cn={class:"notif-history-root"},_n={class:"notifications"};function En(n,e,t,o,i,r){const f=V("notification"),d=V("modal");return v(),y("div",Cn,[k(d,{position:"right",ref:"modal",width:"600px",noActions:!0},{header:$(()=>e[0]||(e[0]=[U(" Notifications ")])),body:$(()=>[p("div",_n,[(v(!0),y(D,null,H(o.notifs,c=>(v(),B(f,{key:c.id,width:"100%",notif:c,onClick:l=>o.remove(c),nolimit:!0},null,8,["notif","onClick"]))),128))])]),_:1},512)])}const $n=K(kn,[["render",En],["__scopeId","data-v-5c55cf64"]]),Sn=["title"],In=["alt","src"],xn={__name:"SidebarViewModeItem",props:{button:{default:null}},setup(n){const e=ce(),t=n,o=Y(()=>e.currentRoute.value.fullPath.includes(t.button.active));return(i,r)=>(v(),B(rt,{appendTo:"parent",trigger:"mouseenter",placement:"right"},{trigger:$(()=>[p("button",{onClick:r[0]||(r[0]=f=>n.button.click()),class:F([{active:o.value},"sidebar-item"]),title:n.button.text},[n.button.icon?(v(),y("i",{key:0,class:F({[n.button.icon]:!0}),"aria-hidden":"true"},null,2)):n.button.img?(v(),y("img",{key:1,alt:`Icon for ${n.button.text}`,src:n.button.img},null,8,In)):M("",!0)],10,Sn)]),content:$(()=>[U(O(n.button.text),1)]),_:1}))}},Tn=K(xn,[["__scopeId","data-v-e115a663"]]),An={name:"doughtnut-chart",props:{value:{default:0},rayon:{default:150},strokeWidth:{default:25},strokeWidthBg:{default:10},strokeColorBg:{default:"#b8d3ca"},strokeColor:{default:"#5e9985"},padding:{default:50},title:{default:""},adjustTop:{default:0},adjustLeft:{default:0},adjustTitleTop:{default:0},adjustTitleLeft:{default:0},adjustSubtitleTop:{default:0},adjustSubtitleLeft:{default:0},adjustContainer:{default:0},subtitle:{default:""},width:{default:"auto"},textAlign:{default:"left"},noSubtitle:{default:!1},fontSize:{default:30},titleSuffix:{default:""},color:{default:"#606060"},placeholder:{default:""}},data(){return{anim:1}},mounted(){this.animation()},methods:{animation(){this.anim=this.anim?1:2}}},On=["title"],Ln=["width","height"],Vn=["stroke","stroke-width","cx","cy","r"],Mn=["stroke","stroke-width","cx","cy","r","stroke-dasharray","stroke-dashoffset"],jn=["y","fill","font-size"],Dn=["x","y","fill","font-size"],Pn=["x","y","fill"];function Rn(n,e,t,o,i,r){return t.value!==null?(v(),y("div",{key:0,style:Q({width:t.width,textAlign:t.textAlign,marginLeft:t.adjustLeft,marginTop:t.adjustTop}),class:"root",title:t.placeholder},[p("section",null,[(v(),y("svg",{width:t.rayon*2+t.strokeWidth+t.padding+t.adjustContainer,height:t.rayon*2+t.strokeWidth+t.padding+t.adjustContainer,xmlns:"http://www.w3.org/2000/svg"},[p("circle",{stroke:t.strokeColorBg,"stroke-width":t.strokeWidthBg,fill:"none",cx:t.rayon+t.strokeWidth/2+t.padding/2+t.adjustContainer/2,cy:t.rayon+t.strokeWidth/2+t.padding/2+t.adjustContainer/2,r:t.rayon},null,8,Vn),p("circle",{class:"circle",stroke:t.strokeColor,"stroke-width":t.strokeWidth,fill:"none",cx:t.rayon+t.strokeWidth/2+t.padding/2+t.adjustContainer/2,cy:t.rayon+t.strokeWidth/2+t.padding/2+t.adjustContainer/2,r:t.rayon,"stroke-dasharray":2*3.14*t.rayon,"stroke-dashoffset":2*3.14*t.rayon*(1-t.value/100)},null,8,Mn),t.noSubtitle?M("",!0):(v(),y("g",{key:0,class:F("info info-anim-"+i.anim)},[p("text",{class:"text",x:"50%",y:t.rayon+13+t.padding/2+t.adjustSubtitleTop,width:"70",textAlign:"center","dominant-baseline":"central","alignment-baseline":"central","text-anchor":"middle",fill:t.strokeColorBg,"font-weight":"bold","font-size":t.fontSize},O(t.value.toFixed(0))+"% ",9,jn)],2)),p("text",{class:"additionnalText",x:t.rayon+t.padding-10+t.adjustTitleLeft+t.adjustContainer/2,y:t.rayon+t.padding-25+t.adjustTitleTop+t.adjustContainer/2,width:"60","dominant-baseline":"central","alignment-baseline":"central","text-anchor":"middle",fill:t.color,"font-size":t.fontSize},O(t.title)+" "+O(t.titleSuffix),9,Dn),p("text",{class:"additionnalSubText",x:t.rayon+t.padding-10+t.adjustTitleLeft,y:t.rayon+10+t.padding+t.adjustTitleTop,width:"60","dominant-baseline":"central","alignment-baseline":"central","text-anchor":"middle",fill:t.color,"font-size":"15"},O(t.subtitle),9,Pn)],8,Ln))])],12,On)):M("",!0)}const Bn=K(An,[["render",Rn],["__scopeId","data-v-6a6c8b71"]]);var Nn=ot`
20
+ .p-tooltip {
21
+ position: absolute;
22
+ display: none;
23
+ max-width: dt('tooltip.max.width');
24
+ }
25
+
26
+ .p-tooltip-right,
27
+ .p-tooltip-left {
28
+ padding: 0 dt('tooltip.gutter');
29
+ }
30
+
31
+ .p-tooltip-top,
32
+ .p-tooltip-bottom {
33
+ padding: dt('tooltip.gutter') 0;
34
+ }
35
+
36
+ .p-tooltip-text {
37
+ white-space: pre-line;
38
+ word-break: break-word;
39
+ background: dt('tooltip.background');
40
+ color: dt('tooltip.color');
41
+ padding: dt('tooltip.padding');
42
+ box-shadow: dt('tooltip.shadow');
43
+ border-radius: dt('tooltip.border.radius');
44
+ }
45
+
46
+ .p-tooltip-arrow {
47
+ position: absolute;
48
+ width: 0;
49
+ height: 0;
50
+ border-color: transparent;
51
+ border-style: solid;
52
+ }
53
+
54
+ .p-tooltip-right .p-tooltip-arrow {
55
+ margin-top: calc(-1 * dt('tooltip.gutter'));
56
+ border-width: dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter') 0;
57
+ border-right-color: dt('tooltip.background');
58
+ }
59
+
60
+ .p-tooltip-left .p-tooltip-arrow {
61
+ margin-top: calc(-1 * dt('tooltip.gutter'));
62
+ border-width: dt('tooltip.gutter') 0 dt('tooltip.gutter') dt('tooltip.gutter');
63
+ border-left-color: dt('tooltip.background');
64
+ }
65
+
66
+ .p-tooltip-top .p-tooltip-arrow {
67
+ margin-left: calc(-1 * dt('tooltip.gutter'));
68
+ border-width: dt('tooltip.gutter') dt('tooltip.gutter') 0 dt('tooltip.gutter');
69
+ border-top-color: dt('tooltip.background');
70
+ border-bottom-color: dt('tooltip.background');
71
+ }
72
+
73
+ .p-tooltip-bottom .p-tooltip-arrow {
74
+ margin-left: calc(-1 * dt('tooltip.gutter'));
75
+ border-width: 0 dt('tooltip.gutter') dt('tooltip.gutter') dt('tooltip.gutter');
76
+ border-top-color: dt('tooltip.background');
77
+ border-bottom-color: dt('tooltip.background');
78
+ }
79
+ `,zn={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},Un=it.extend({name:"tooltip-directive",style:Nn,classes:zn}),Hn=Ot.extend({style:Un});function Wn(n,e){return qn(n)||Kn(n,e)||Fn(n,e)||Jn()}function Jn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
80
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fn(n,e){if(n){if(typeof n=="string")return Ge(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ge(n,e):void 0}}function Ge(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,o=Array(e);t<e;t++)o[t]=n[t];return o}function Kn(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var o,i,r,f,d=[],c=!0,l=!1;try{if(r=(t=t.call(n)).next,e!==0)for(;!(c=(o=r.call(t)).done)&&(d.push(o.value),d.length!==e);c=!0);}catch(h){l=!0,i=h}finally{try{if(!c&&t.return!=null&&(f=t.return(),Object(f)!==f))return}finally{if(l)throw i}}return d}}function qn(n){if(Array.isArray(n))return n}function Ze(n,e,t){return(e=Gn(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Gn(n){var e=Zn(n,"string");return oe(e)=="symbol"?e:e+""}function Zn(n,e){if(oe(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var o=t.call(n,e);if(oe(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function oe(n){"@babel/helpers - typeof";return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(n)}var Qn=Hn.extend("tooltip",{beforeMount:function(e,t){var o,i=this.getTarget(e);if(i.$_ptooltipModifiers=this.getModifiers(t),t.value){if(typeof t.value=="string")i.$_ptooltipValue=t.value,i.$_ptooltipDisabled=!1,i.$_ptooltipEscape=!0,i.$_ptooltipClass=null,i.$_ptooltipFitContent=!0,i.$_ptooltipIdAttr=ye("pv_id")+"_tooltip",i.$_ptooltipShowDelay=0,i.$_ptooltipHideDelay=0,i.$_ptooltipAutoHide=!0;else if(oe(t.value)==="object"&&t.value){if(Fe(t.value.value)||t.value.value.trim()==="")return;i.$_ptooltipValue=t.value.value,i.$_ptooltipDisabled=!!t.value.disabled===t.value.disabled?t.value.disabled:!1,i.$_ptooltipEscape=!!t.value.escape===t.value.escape?t.value.escape:!0,i.$_ptooltipClass=t.value.class||"",i.$_ptooltipFitContent=!!t.value.fitContent===t.value.fitContent?t.value.fitContent:!0,i.$_ptooltipIdAttr=t.value.id||ye("pv_id")+"_tooltip",i.$_ptooltipShowDelay=t.value.showDelay||0,i.$_ptooltipHideDelay=t.value.hideDelay||0,i.$_ptooltipAutoHide=!!t.value.autoHide===t.value.autoHide?t.value.autoHide:!0}}else return;i.$_ptooltipZIndex=(o=t.instance.$primevue)===null||o===void 0||(o=o.config)===null||o===void 0||(o=o.zIndex)===null||o===void 0?void 0:o.tooltip,this.bindEvents(i,t),e.setAttribute("data-pd-tooltip",!0)},updated:function(e,t){var o=this.getTarget(e);if(o.$_ptooltipModifiers=this.getModifiers(t),this.unbindEvents(o),!!t.value){if(typeof t.value=="string")o.$_ptooltipValue=t.value,o.$_ptooltipDisabled=!1,o.$_ptooltipEscape=!0,o.$_ptooltipClass=null,o.$_ptooltipIdAttr=o.$_ptooltipIdAttr||ye("pv_id")+"_tooltip",o.$_ptooltipShowDelay=0,o.$_ptooltipHideDelay=0,o.$_ptooltipAutoHide=!0,this.bindEvents(o,t);else if(oe(t.value)==="object"&&t.value)if(Fe(t.value.value)||t.value.value.trim()===""){this.unbindEvents(o,t);return}else o.$_ptooltipValue=t.value.value,o.$_ptooltipDisabled=!!t.value.disabled===t.value.disabled?t.value.disabled:!1,o.$_ptooltipEscape=!!t.value.escape===t.value.escape?t.value.escape:!0,o.$_ptooltipClass=t.value.class||"",o.$_ptooltipFitContent=!!t.value.fitContent===t.value.fitContent?t.value.fitContent:!0,o.$_ptooltipIdAttr=t.value.id||o.$_ptooltipIdAttr||ye("pv_id")+"_tooltip",o.$_ptooltipShowDelay=t.value.showDelay||0,o.$_ptooltipHideDelay=t.value.hideDelay||0,o.$_ptooltipAutoHide=!!t.value.autoHide===t.value.autoHide?t.value.autoHide:!0,this.bindEvents(o,t)}},unmounted:function(e,t){var o=this.getTarget(e);this.hide(e,0),this.remove(o),this.unbindEvents(o,t),o.$_ptooltipScrollHandler&&(o.$_ptooltipScrollHandler.destroy(),o.$_ptooltipScrollHandler=null)},timer:void 0,methods:{bindEvents:function(e,t){var o=this,i=e.$_ptooltipModifiers;i.focus?(e.$_ptooltipFocusEvent=function(r){return o.onFocus(r,t)},e.$_ptooltipBlurEvent=this.onBlur.bind(this),e.addEventListener("focus",e.$_ptooltipFocusEvent),e.addEventListener("blur",e.$_ptooltipBlurEvent)):(e.$_ptooltipMouseEnterEvent=function(r){return o.onMouseEnter(r,t)},e.$_ptooltipMouseLeaveEvent=this.onMouseLeave.bind(this),e.$_ptooltipClickEvent=this.onClick.bind(this),e.addEventListener("mouseenter",e.$_ptooltipMouseEnterEvent),e.addEventListener("mouseleave",e.$_ptooltipMouseLeaveEvent),e.addEventListener("click",e.$_ptooltipClickEvent)),e.$_ptooltipKeydownEvent=this.onKeydown.bind(this),e.addEventListener("keydown",e.$_ptooltipKeydownEvent),e.$_pWindowResizeEvent=this.onWindowResize.bind(this,e)},unbindEvents:function(e){var t=e.$_ptooltipModifiers;t.focus?(e.removeEventListener("focus",e.$_ptooltipFocusEvent),e.$_ptooltipFocusEvent=null,e.removeEventListener("blur",e.$_ptooltipBlurEvent),e.$_ptooltipBlurEvent=null):(e.removeEventListener("mouseenter",e.$_ptooltipMouseEnterEvent),e.$_ptooltipMouseEnterEvent=null,e.removeEventListener("mouseleave",e.$_ptooltipMouseLeaveEvent),e.$_ptooltipMouseLeaveEvent=null,e.removeEventListener("click",e.$_ptooltipClickEvent),e.$_ptooltipClickEvent=null),e.removeEventListener("keydown",e.$_ptooltipKeydownEvent),window.removeEventListener("resize",e.$_pWindowResizeEvent),e.$_ptooltipId&&this.remove(e)},bindScrollListener:function(e){var t=this;e.$_ptooltipScrollHandler||(e.$_ptooltipScrollHandler=new Lt(e,function(){t.hide(e)})),e.$_ptooltipScrollHandler.bindScrollListener()},unbindScrollListener:function(e){e.$_ptooltipScrollHandler&&e.$_ptooltipScrollHandler.unbindScrollListener()},onMouseEnter:function(e,t){var o=e.currentTarget,i=o.$_ptooltipShowDelay;this.show(o,t,i)},onMouseLeave:function(e){var t=e.currentTarget,o=t.$_ptooltipHideDelay,i=t.$_ptooltipAutoHide;if(i)this.hide(t,o);else{var r=ue(e.target,"data-pc-name")==="tooltip"||ue(e.target,"data-pc-section")==="arrow"||ue(e.target,"data-pc-section")==="text"||ue(e.relatedTarget,"data-pc-name")==="tooltip"||ue(e.relatedTarget,"data-pc-section")==="arrow"||ue(e.relatedTarget,"data-pc-section")==="text";!r&&this.hide(t,o)}},onFocus:function(e,t){var o=e.currentTarget,i=o.$_ptooltipShowDelay;this.show(o,t,i)},onBlur:function(e){var t=e.currentTarget,o=t.$_ptooltipHideDelay;this.hide(t,o)},onClick:function(e){var t=e.currentTarget,o=t.$_ptooltipHideDelay;this.hide(t,o)},onKeydown:function(e){var t=e.currentTarget,o=t.$_ptooltipHideDelay;e.code==="Escape"&&this.hide(e.currentTarget,o)},onWindowResize:function(e){Et()||this.hide(e),window.removeEventListener("resize",e.$_pWindowResizeEvent)},tooltipActions:function(e,t){if(!(e.$_ptooltipDisabled||!Ct(e))){var o=this.create(e,t);this.align(e),!this.isUnstyled()&&_t(o,250);var i=this;window.addEventListener("resize",e.$_pWindowResizeEvent),o.addEventListener("mouseleave",function r(){i.hide(e),o.removeEventListener("mouseleave",r),e.removeEventListener("mouseenter",e.$_ptooltipMouseEnterEvent),setTimeout(function(){return e.addEventListener("mouseenter",e.$_ptooltipMouseEnterEvent)},50)}),this.bindScrollListener(e),Ke.set("tooltip",o,e.$_ptooltipZIndex)}},show:function(e,t,o){var i=this;o!==void 0?this.timer=setTimeout(function(){return i.tooltipActions(e,t)},o):this.tooltipActions(e,t)},tooltipRemoval:function(e){this.remove(e),this.unbindScrollListener(e),window.removeEventListener("resize",e.$_pWindowResizeEvent)},hide:function(e,t){var o=this;clearTimeout(this.timer),t!==void 0?setTimeout(function(){return o.tooltipRemoval(e)},t):this.tooltipRemoval(e)},getTooltipElement:function(e){return document.getElementById(e.$_ptooltipId)},getArrowElement:function(e){var t=this.getTooltipElement(e);return Z(t,'[data-pc-section="arrow"]')},create:function(e){var t=e.$_ptooltipModifiers,o=Oe("div",{class:!this.isUnstyled()&&this.cx("arrow"),"p-bind":this.ptm("arrow",{context:t})}),i=Oe("div",{class:!this.isUnstyled()&&this.cx("text"),"p-bind":this.ptm("text",{context:t})});e.$_ptooltipEscape?(i.innerHTML="",i.appendChild(document.createTextNode(e.$_ptooltipValue))):i.innerHTML=e.$_ptooltipValue;var r=Oe("div",Ze(Ze({id:e.$_ptooltipIdAttr,role:"tooltip",style:{display:"inline-block",width:e.$_ptooltipFitContent?"fit-content":void 0,pointerEvents:!this.isUnstyled()&&e.$_ptooltipAutoHide&&"none"},class:[!this.isUnstyled()&&this.cx("root"),e.$_ptooltipClass]},this.$attrSelector,""),"p-bind",this.ptm("root",{context:t})),o,i);return document.body.appendChild(r),e.$_ptooltipId=r.id,this.$el=r,r},remove:function(e){if(e){var t=this.getTooltipElement(e);t&&t.parentElement&&(Ke.clear(t),document.body.removeChild(t)),e.$_ptooltipId=null}},align:function(e){var t=e.$_ptooltipModifiers;t.top?(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignTop(e))):t.left?(this.alignLeft(e),this.isOutOfBounds(e)&&(this.alignRight(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignLeft(e))))):t.bottom?(this.alignBottom(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&this.alignBottom(e))):(this.alignRight(e),this.isOutOfBounds(e)&&(this.alignLeft(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignRight(e)))))},getHostOffset:function(e){var t=e.getBoundingClientRect(),o=t.left+wt(),i=t.top+kt();return{left:o,top:i}},alignRight:function(e){this.preAlign(e,"right");var t=this.getTooltipElement(e),o=this.getArrowElement(e),i=this.getHostOffset(e),r=i.left+le(e),f=i.top+(se(e)-se(t))/2;t.style.left=r+"px",t.style.top=f+"px",o.style.top="50%",o.style.right=null,o.style.bottom=null,o.style.left="0"},alignLeft:function(e){this.preAlign(e,"left");var t=this.getTooltipElement(e),o=this.getArrowElement(e),i=this.getHostOffset(e),r=i.left-le(t),f=i.top+(se(e)-se(t))/2;t.style.left=r+"px",t.style.top=f+"px",o.style.top="50%",o.style.right="0",o.style.bottom=null,o.style.left=null},alignTop:function(e){this.preAlign(e,"top");var t=this.getTooltipElement(e),o=this.getArrowElement(e),i=le(t),r=le(e),f=Ae(),d=f.width,c=this.getHostOffset(e),l=c.left+(r-i)/2,h=c.top-se(t);l<0?l=0:l+i>d&&(l=Math.floor(c.left+r-i)),t.style.left=l+"px",t.style.top=h+"px";var m=c.left-this.getHostOffset(t).left+r/2;o.style.top=null,o.style.right=null,o.style.bottom="0",o.style.left=m+"px"},alignBottom:function(e){this.preAlign(e,"bottom");var t=this.getTooltipElement(e),o=this.getArrowElement(e),i=le(t),r=le(e),f=Ae(),d=f.width,c=this.getHostOffset(e),l=c.left+(r-i)/2,h=c.top+se(e);l<0?l=0:l+i>d&&(l=Math.floor(c.left+r-i)),t.style.left=l+"px",t.style.top=h+"px";var m=c.left-this.getHostOffset(t).left+r/2;o.style.top="0",o.style.right=null,o.style.bottom=null,o.style.left=m+"px"},preAlign:function(e,t){var o=this.getTooltipElement(e);o.style.left="-999px",o.style.top="-999px",yt(o,"p-tooltip-".concat(o.$_ptooltipPosition)),!this.isUnstyled()&&bt(o,"p-tooltip-".concat(t)),o.$_ptooltipPosition=t,o.setAttribute("data-p-position",t)},isOutOfBounds:function(e){var t=this.getTooltipElement(e),o=t.getBoundingClientRect(),i=o.top,r=o.left,f=le(t),d=se(t),c=Ae();return r+f>c.width||r<0||i<0||i+d>c.height},getTarget:function(e){var t;return Ce(e,"p-inputwrapper")&&(t=Z(e,"input"))!==null&&t!==void 0?t:e},getModifiers:function(e){return e.modifiers&&Object.keys(e.modifiers).length?e.modifiers:e.arg&&oe(e.arg)==="object"?Object.entries(e.arg).reduce(function(t,o){var i=Wn(o,2),r=i[0],f=i[1];return(r==="event"||r==="position")&&(t[f]=!0),t},{}):{}}}}),Yn=ot`
81
+ .p-speeddial {
82
+ position: static;
83
+ display: flex;
84
+ gap: dt('speeddial.gap');
85
+ }
86
+
87
+ .p-speeddial-button {
88
+ z-index: 1;
89
+ }
90
+
91
+ .p-speeddial-button.p-speeddial-rotate {
92
+ transition:
93
+ transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
94
+ background dt('speeddial.transition.duration'),
95
+ color dt('speeddial.transition.duration'),
96
+ border-color dt('speeddial.transition.duration'),
97
+ box-shadow dt('speeddial.transition.duration'),
98
+ outline-color dt('speeddial.transition.duration');
99
+ will-change: transform;
100
+ }
101
+
102
+ .p-speeddial-list {
103
+ margin: 0;
104
+ padding: 0;
105
+ list-style: none;
106
+ display: flex;
107
+ align-items: center;
108
+ justify-content: center;
109
+ transition: inset-block-start 0s linear dt('speeddial.transition.duration');
110
+ pointer-events: none;
111
+ outline: 0 none;
112
+ z-index: 2;
113
+ gap: dt('speeddial.gap');
114
+ }
115
+
116
+ .p-speeddial-item {
117
+ transform: scale(0);
118
+ opacity: 0;
119
+ transition:
120
+ transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
121
+ opacity 0.8s;
122
+ will-change: transform;
123
+ }
124
+
125
+ .p-speeddial-circle .p-speeddial-item,
126
+ .p-speeddial-semi-circle .p-speeddial-item,
127
+ .p-speeddial-quarter-circle .p-speeddial-item {
128
+ position: absolute;
129
+ }
130
+
131
+ .p-speeddial-mask {
132
+ position: absolute;
133
+ inset-inline-start: 0;
134
+ inset-block-start: 0;
135
+ width: 100%;
136
+ height: 100%;
137
+ opacity: 0;
138
+ background: dt('mask.background');
139
+ border-radius: 6px;
140
+ transition: opacity 150ms;
141
+ }
142
+
143
+ .p-speeddial-mask-visible {
144
+ pointer-events: none;
145
+ opacity: 1;
146
+ transition: opacity 150ms;
147
+ }
148
+
149
+ .p-speeddial-open .p-speeddial-list {
150
+ pointer-events: auto;
151
+ }
152
+
153
+ .p-speeddial-open .p-speeddial-item {
154
+ transform: scale(1);
155
+ opacity: 1;
156
+ }
157
+
158
+ .p-speeddial-open .p-speeddial-rotate {
159
+ transform: rotate(45deg);
160
+ }
161
+ `;function ve(n){"@babel/helpers - typeof";return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ve(n)}function Me(n,e,t){return(e=Xn(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Xn(n){var e=eo(n,"string");return ve(e)=="symbol"?e:e+""}function eo(n,e){if(ve(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var o=t.call(n,e);if(ve(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var to={root:function(e){var t=e.props;return{alignItems:(t.direction==="up"||t.direction==="down")&&"center",justifyContent:(t.direction==="left"||t.direction==="right")&&"center",flexDirection:t.direction==="up"?"column-reverse":t.direction==="down"?"column":t.direction==="left"?"row-reverse":t.direction==="right"?"row":null}},list:function(e){var t=e.props;return{flexDirection:t.direction==="up"?"column-reverse":t.direction==="down"?"column":t.direction==="left"?"row-reverse":t.direction==="right"?"row":null}}},no={root:function(e){var t=e.instance,o=e.props;return["p-speeddial p-component p-speeddial-".concat(o.type),Me(Me(Me({},"p-speeddial-direction-".concat(o.direction),o.type!=="circle"),"p-speeddial-open",t.d_visible),"p-disabled",o.disabled)]},pcButton:function(e){var t=e.props;return["p-speeddial-button",{"p-speeddial-rotate":t.rotateAnimation&&!t.hideIcon}]},list:"p-speeddial-list",item:"p-speeddial-item",action:"p-speeddial-action",actionIcon:"p-speeddial-action-icon",mask:function(e){var t=e.instance;return["p-speeddial-mask",{"p-speeddial-mask-visible":t.d_visible}]}},oo=it.extend({name:"speeddial",style:Yn,classes:no,inlineStyles:to}),io={name:"BaseSpeedDial",extends:jt,props:{model:null,visible:{type:Boolean,default:!1},direction:{type:String,default:"up"},transitionDelay:{type:Number,default:30},type:{type:String,default:"linear"},radius:{type:Number,default:0},mask:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hideOnClickOutside:{type:Boolean,default:!0},buttonClass:null,maskStyle:null,maskClass:null,showIcon:{type:String,default:void 0},hideIcon:{type:String,default:void 0},rotateAnimation:{type:Boolean,default:!0},tooltipOptions:null,style:null,class:null,buttonProps:{type:Object,default:function(){return{rounded:!0}}},actionButtonProps:{type:Object,default:function(){return{severity:"secondary",rounded:!0,size:"small"}}},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:oo,provide:function(){return{$pcSpeedDial:this,$parentInstance:this}}};function he(n){"@babel/helpers - typeof";return he=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(n)}function Qe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,o)}return t}function ro(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Qe(Object(t),!0).forEach(function(o){lo(n,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Qe(Object(t)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(t,o))})}return n}function lo(n,e,t){return(e=so(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function so(n){var e=ao(n,"string");return he(e)=="symbol"?e:e+""}function ao(n,e){if(he(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var o=t.call(n,e);if(he(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function be(n){return po(n)||fo(n)||co(n)||uo()}function uo(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
162
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function co(n,e){if(n){if(typeof n=="string")return Pe(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Pe(n,e):void 0}}function fo(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function po(n){if(Array.isArray(n))return Pe(n)}function Pe(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,o=Array(e);t<e;t++)o[t]=n[t];return o}var je=3.14159265358979,st={name:"SpeedDial",extends:io,inheritAttrs:!1,emits:["click","show","hide","focus","blur"],documentClickListener:null,container:null,list:null,data:function(){return{d_visible:this.visible,isItemClicked:!1,focused:!1,focusedOptionIndex:-1}},watch:{visible:function(e){this.d_visible=e}},mounted:function(){if(this.type!=="linear"){var e=Z(this.container,'[data-pc-name="pcbutton"]'),t=Z(this.list,'[data-pc-section="item"]');if(e&&t){var o=Math.abs(e.offsetWidth-t.offsetWidth),i=Math.abs(e.offsetHeight-t.offsetHeight);this.list.style.setProperty(ne("item.diff.x").name,"".concat(o/2,"px")),this.list.style.setProperty(ne("item.diff.y").name,"".concat(i/2,"px"))}}this.hideOnClickOutside&&this.bindDocumentClickListener()},beforeUnmount:function(){this.unbindDocumentClickListener()},methods:{getPTOptions:function(e,t){return this.ptm(t,{context:{active:this.isItemActive(e),hidden:!this.d_visible}})},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){this.focusedOptionIndex=-1,this.$emit("blur",e)},onItemClick:function(e,t){t.command&&t.command({originalEvent:e,item:t}),this.hide(),this.isItemClicked=!0,e.preventDefault()},onClick:function(e){this.d_visible?this.hide():this.show(),this.isItemClicked=!0,this.$emit("click",e)},show:function(){this.d_visible=!0,this.$emit("show")},hide:function(){this.d_visible=!1,this.$emit("hide")},calculateTransitionDelay:function(e){var t=this.model.length,o=this.d_visible;return(o?e:t-e-1)*this.transitionDelay},onTogglerKeydown:function(e){switch(e.code){case"ArrowDown":case"ArrowLeft":this.onTogglerArrowDown(e);break;case"ArrowUp":case"ArrowRight":this.onTogglerArrowUp(e);break;case"Escape":this.onEscapeKey();break}},onKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"ArrowRight":this.onArrowRight(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break}},onTogglerArrowUp:function(e){this.show(),this.navigatePrevItem(e),e.preventDefault()},onTogglerArrowDown:function(e){this.show(),this.navigateNextItem(e),e.preventDefault()},onEnterKey:function(e){var t=this,o=ge(this.container,'[data-pc-section="item"]'),i=be(o).findIndex(function(f){return f.id===t.focusedOptionIndex}),r=Z(this.container,"button");this.onItemClick(e,this.model[i]),this.onBlur(e),r&&Le(r)},onEscapeKey:function(){this.hide();var e=Z(this.container,"button");e&&Le(e)},onArrowUp:function(e){this.direction==="down"?this.navigatePrevItem(e):this.navigateNextItem(e)},onArrowDown:function(e){this.direction==="down"?this.navigateNextItem(e):this.navigatePrevItem(e)},onArrowLeft:function(e){var t=["left","up-right","down-left"],o=["right","up-left","down-right"];t.includes(this.direction)?this.navigateNextItem(e):o.includes(this.direction)?this.navigatePrevItem(e):this.navigatePrevItem(e)},onArrowRight:function(e){var t=["left","up-right","down-left"],o=["right","up-left","down-right"];t.includes(this.direction)?this.navigatePrevItem(e):o.includes(this.direction)?this.navigateNextItem(e):this.navigateNextItem(e)},onEndKey:function(e){e.preventDefault(),this.focusedOptionIndex=-1,this.navigatePrevItem(e)},onHomeKey:function(e){e.preventDefault(),this.focusedOptionIndex=-1,this.navigateNextItem(e)},navigateNextItem:function(e){var t=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.preventDefault()},navigatePrevItem:function(e){var t=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.preventDefault()},changeFocusedOptionIndex:function(e){var t=ge(this.container,'[data-pc-section="item"]'),o=be(t).filter(function(r){return!Ce(Z(r,"a"),"p-disabled")});if(o[e]){this.focusedOptionIndex=o[e].getAttribute("id");var i=Z(o[e],'[type="button"]');i&&Le(i)}},findPrevOptionIndex:function(e){var t=ge(this.container,'[data-pc-section="item"]'),o=be(t).filter(function(f){return!Ce(Z(f,"a"),"p-disabled")}),i=e===-1?o[o.length-1].id:e,r=o.findIndex(function(f){return f.getAttribute("id")===i});return r=e===-1?o.length-1:r-1,r},findNextOptionIndex:function(e){var t=ge(this.container,'[data-pc-section="item"]'),o=be(t).filter(function(f){return!Ce(Z(f,"a"),"p-disabled")}),i=e===-1?o[0].id:e,r=o.findIndex(function(f){return f.getAttribute("id")===i});return r=e===-1?0:r+1,r},calculatePointStyle:function(e){var t=this.type;if(t!=="linear"){var o=this.model.length,i=this.radius||o*20;if(t==="circle"){var r=2*je/o;return{left:"calc(".concat(i*Math.cos(r*e),"px + ").concat(ne("item.diff.x").variable,")"),top:"calc(".concat(i*Math.sin(r*e),"px + ").concat(ne("item.diff.y").variable,")")}}else if(t==="semi-circle"){var f=this.direction,d=je/(o-1),c="calc(".concat(i*Math.cos(d*e),"px + ").concat(ne("item.diff.x").variable,")"),l="calc(".concat(i*Math.sin(d*e),"px + ").concat(ne("item.diff.y").variable,")");if(f==="up")return{left:c,bottom:l};if(f==="down")return{left:c,top:l};if(f==="left")return{right:l,top:c};if(f==="right")return{left:l,top:c}}else if(t==="quarter-circle"){var h=this.direction,m=je/(2*(o-1)),I="calc(".concat(i*Math.cos(m*e),"px + ").concat(ne("item.diff.x").variable,")"),L="calc(".concat(i*Math.sin(m*e),"px + ").concat(ne("item.diff.y").variable,")");if(h==="up-left")return{right:I,bottom:L};if(h==="up-right")return{left:I,bottom:L};if(h==="down-left")return{right:L,top:I};if(h==="down-right")return{left:L,top:I}}}return{}},getItemStyle:function(e){var t=this.calculateTransitionDelay(e),o=this.calculatePointStyle(e);return ro({transitionDelay:"".concat(t,"ms")},o)},bindDocumentClickListener:function(){var e=this;this.documentClickListener||(this.documentClickListener=function(t){e.d_visible&&e.isOutsideClicked(t)&&e.hide(),e.isItemClicked=!1},document.addEventListener("click",this.documentClickListener))},unbindDocumentClickListener:function(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)},isOutsideClicked:function(e){return this.container&&!(this.container.isSameNode(e.target)||this.container.contains(e.target)||this.isItemClicked)},isItemVisible:function(e){return typeof e.visible=="function"?e.visible():e.visible!==!1},isItemActive:function(e){return e===this.focusedOptionId},containerRef:function(e){this.container=e},listRef:function(e){this.list=e}},computed:{containerClass:function(){return[this.cx("root"),this.class]},focusedOptionId:function(){return this.focusedOptionIndex!==-1?this.focusedOptionIndex:null}},components:{Button:J,PlusIcon:At},directives:{ripple:Vt,tooltip:Qn}},vo=["id"],ho=["id","data-p-active"];function mo(n,e,t,o,i,r){var f=V("Button"),d=$t("tooltip");return v(),y(D,null,[p("div",ee({ref:r.containerRef,class:r.containerClass,style:[n.style,n.sx("root")]},n.ptmi("root")),[we(n.$slots,"button",{visible:i.d_visible,toggleCallback:r.onClick},function(){return[k(f,ee({class:[n.cx("pcButton"),n.buttonClass],disabled:n.disabled,"aria-expanded":i.d_visible,"aria-haspopup":!0,"aria-controls":n.$id+"_list","aria-label":n.ariaLabel,"aria-labelledby":n.ariaLabelledby,unstyled:n.unstyled,onClick:e[0]||(e[0]=function(c){return r.onClick(c)}),onKeydown:r.onTogglerKeydown},n.buttonProps,{pt:n.ptm("pcButton")}),{icon:$(function(c){return[we(n.$slots,"icon",{visible:i.d_visible},function(){return[i.d_visible&&n.hideIcon?(v(),B(_e(n.hideIcon?"span":"PlusIcon"),ee({key:0,class:[n.hideIcon,c.class]},n.ptm("pcButton").icon,{"data-pc-section":"icon"}),null,16,["class"])):(v(),B(_e(n.showIcon?"span":"PlusIcon"),ee({key:1,class:[i.d_visible&&n.hideIcon?n.hideIcon:n.showIcon,c.class]},n.ptm("pcButton").icon,{"data-pc-section":"icon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","aria-expanded","aria-controls","aria-label","aria-labelledby","unstyled","onKeydown","pt"])]}),p("ul",ee({ref:r.listRef,id:n.$id+"_list",class:n.cx("list"),style:n.sx("list"),role:"menu",tabindex:"-1",onFocus:e[1]||(e[1]=function(){return r.onFocus&&r.onFocus.apply(r,arguments)}),onBlur:e[2]||(e[2]=function(){return r.onBlur&&r.onBlur.apply(r,arguments)}),onKeydown:e[3]||(e[3]=function(){return r.onKeyDown&&r.onKeyDown.apply(r,arguments)})},n.ptm("list")),[(v(!0),y(D,null,H(n.model,function(c,l){return v(),y(D,{key:l},[r.isItemVisible(c)?(v(),y("li",ee({key:0,id:"".concat(n.$id,"_").concat(l),class:n.cx("item",{id:"".concat(n.$id,"_").concat(l)}),style:r.getItemStyle(l),role:"none","data-p-active":r.isItemActive("".concat(n.$id,"_").concat(l)),ref_for:!0},r.getPTOptions("".concat(n.$id,"_").concat(l),"item")),[n.$slots.item?(v(),B(_e(n.$slots.item),{key:1,item:c,onClick:function(m){return r.onItemClick(m,c)},toggleCallback:function(m){return r.onItemClick(m,c)}},null,8,["item","onClick","toggleCallback"])):nt((v(),B(f,ee({key:0,tabindex:-1,role:"menuitem",class:n.cx("pcAction",{item:c}),"aria-label":c.label,disabled:n.disabled,unstyled:n.unstyled,onClick:function(m){return r.onItemClick(m,c)},ref_for:!0},n.actionButtonProps,{pt:r.getPTOptions("".concat(n.$id,"_").concat(l),"pcAction")}),St({_:2},[c.icon?{name:"icon",fn:$(function(h){return[we(n.$slots,"itemicon",{item:c,class:F(h.class)},function(){return[p("span",ee({class:[c.icon,h.class],ref_for:!0},r.getPTOptions("".concat(n.$id,"_").concat(l),"actionIcon")),null,16)]})]}),key:"0"}:void 0]),1040,["class","aria-label","disabled","unstyled","onClick","pt"])),[[d,{value:c.label,disabled:!n.tooltipOptions},n.tooltipOptions]])],16,ho)):M("",!0)],64)}),128))],16,vo)],16),n.mask?(v(),y("div",ee({key:0,class:[n.cx("mask"),n.maskClass],style:n.maskStyle},n.ptm("mask")),null,16)):M("",!0)],64)}st.render=mo;const go={components:{SidebarViewModeItem:Tn,DoughtnutChart:Bn,Popover:rt,SpeedDial:st,Button:J},setup(){const n=ce(),e=S([]),t=S([]),o=S(0),i=S(0);te(async()=>{await j.loadServices();const{data:d}=await fe.get("/plugins/sidebar"),{data:c}=await fe.get("/plugins/sidebar-top");e.value=(d==null?void 0:d.flat())||[],t.value=(c==null?void 0:c.flat())||[],x.on("infos:global",l=>{const{memPercentage:h,cpu:m}=l;o.value=m,i.value=h})});function r(d){return d.placements.map(c=>{if(typeof c!="string")return{text:c.label,icon:c.icon,img:de.proxyImg(c.img),click:c.goTo?()=>n.push(c.goTo||"/"):()=>{},active:c.active}})}function f(d){return d.map(r).flat().filter(c=>c)}return{speedDialVisible:S(!0),Theme:$e,groups:Y(()=>{const d=Object.keys($e.themes.value).reduce((l,h)=>{const m=$e.themes.value[h];if(m.id=h,!m.public||!m.preview)return l;const I=m.group||"Unknown";return l[I]||(l[I]={group:"unknown",themes:[]}),l[I].group=I,l[I].themes.push(m),l},{}),c=Object.keys(d).map(l=>({group:l,themes:d[l].themes}));return console.log(c.sort((l,h)=>l.group.localeCompare(h.group))),c.sort((l,h)=>l.group.localeCompare(h.group))}),buttons:Y(()=>[{text:"Overview",active:"overview",icon:"fas fa-home",click:()=>n.push({name:"overview"})},{text:"Single View",active:"single",icon:"fas fa-columns",click:()=>{var c;const d=j.services.value.find(l=>l.label===localStorage.getItem("last-service-visisted"));d?n.push({name:"stack-single",params:{label:d.label}}):j.services.value[0]?n.push({name:"stack-single",params:{label:(c=j.services.value[0])==null?void 0:c.label}}):n.push({name:"stack-single-no-view"})}},{text:"Multiple view",active:"multiple",icon:"fas fa-th",click:()=>n.push({name:"stack-multiple"})},...f(t.value)]),buttonsPlugins:Y(()=>[...f(e.value),...globalThis.sidebarPlugins.value.map(d=>({...d,active:`/dynamic/${encodeURIComponent(d.id)}`,click:()=>{n.push({path:`/dynamic/${encodeURIComponent(d.id)}`})}}))]),buttonsBottom:Y(()=>[{text:"Settings",active:"settings",icon:"fas fa-cog",click:()=>n.push({name:"settings-no-view"})},{text:"Disconnect",icon:"fas fa-unlink",click:()=>de.disconnect()}]),cpu:o,mem:i,System:de}}},yo={class:"sidebar"},bo={key:0},wo={key:1},ko={style:{position:"relative"}},Co={class:"button-container"},_o=["onClick","title"],Eo=["alt"],$o={class:"groups"},So={class:"group"},Io={class:"themes"},xo=["onClick"];function To(n,e,t,o,i,r){const f=V("sidebar-view-mode-item"),d=V("Popover"),c=V("doughtnut-chart");return v(),y("div",yo,[o.buttons.length?(v(),y("ul",bo,[(v(!0),y(D,null,H(o.buttons,l=>(v(),B(f,{key:l.label,button:l},null,8,["button"]))),128))])):M("",!0),o.buttonsBottom.length?(v(),y("ul",wo,[p("div",ko,[(v(!0),y(D,null,H(o.buttonsPlugins,l=>(v(),y("div",{key:l==null?void 0:l.text},[k(d,{appendTo:"parent",trigger:"mouseenter",placement:"right"},{trigger:$(()=>[p("div",Co,[p("button",{onClick:h=>l==null?void 0:l.click(),class:F([{active:n.$router.currentRoute.value.fullPath.includes((l==null?void 0:l.active)||""),"button-speed-dial":!0},"sidebar-item"]),title:l==null?void 0:l.text},[l!=null&&l.icon?(v(),y("i",{key:0,class:F({[l==null?void 0:l.icon]:!0}),"aria-hidden":"true"},null,2)):l!=null&&l.img?(v(),y("div",{key:1,alt:`Icon for ${l==null?void 0:l.text}`,class:"masked-icon",style:Q({WebkitMaskImage:`url(${l==null?void 0:l.img})`,maskImage:`url(${l==null?void 0:l.img})`})},null,12,Eo)):M("",!0)],10,_o)])]),content:$(()=>[U(O(l==null?void 0:l.text),1)]),_:2},1024)]))),128))]),k(d,{appendTo:"parent",trigger:"mouseenter",placement:"right"},{trigger:$(()=>[k(c,{placeholder:"CPU",width:"10px",rayon:17,fontSize:"11",value:o.cpu*100,strokeWidth:3,strokeWidthBg:5,adjustSubtitleLeft:-2,adjustTitleTop:-5,adjustSubtitleTop:-11,padding:14,strokeColor:"var(--system-primary600-lightest)",strokeColorBg:"var(--system-primary400)"},null,8,["value"])]),content:$(()=>e[0]||(e[0]=[U(" CPU ")])),_:1}),k(d,{appendTo:"parent",trigger:"mouseenter",placement:"right"},{trigger:$(()=>[k(c,{placeholder:"RAM",width:"10px",rayon:17,value:o.mem,fontSize:"11",strokeWidth:3,strokeWidthBg:5,adjustSubtitleTop:-11,adjustSubtitleLeft:-2,adjustTitleTop:-5,padding:14,strokeColor:"var(--system-tertiary400)",strokeColorBg:"var(--system-tertiary600)"},null,8,["value"])]),content:$(()=>e[1]||(e[1]=[U(" RAM ")])),_:1}),k(d,{appendTo:"parent",trigger:"mouseenter",placement:"left-start",showOnCreate:!1},{trigger:$(()=>[k(f,{key:"Themes",button:{text:"",icon:"fas fa-sun",click:()=>{var l,h;console.log(o.Theme),(h=(l=o.Theme)==null?void 0:l.toggle)==null||h.call(l)}}},null,8,["button"])]),content:$(()=>[p("div",$o,[(v(!0),y(D,null,H(o.groups,l=>(v(),y("div",So,[U(O(l.group)+" ",1),p("div",Io,[(v(!0),y(D,null,H(l.themes,h=>(v(),y("div",{class:"theme",onClick:m=>o.Theme.apply(h.id),key:h.id},[(v(),y("div",{class:"view",key:h.id},[p("div",{class:"viewwindows",style:Q({...h.preview.background||{},border:`4px solid ${h.preview.background.backgroundColor}`})},[p("div",{class:"rad",style:Q(h.preview.foreground4||h.preview.foreground1)},null,4),p("div",{class:"rad",style:Q(h.preview.foreground3||h.preview.foreground1)},null,4),p("div",{class:"rad",style:Q(h.preview.foreground2||h.preview.foreground1)},null,4),p("div",{class:"rad",style:Q(h.preview.foreground1)},null,4)],4)]))],8,xo))),128))])]))),256))])]),_:1}),(v(!0),y(D,null,H(o.buttonsBottom,l=>(v(),B(f,{key:l.label,button:l},null,8,["button"]))),128))])):M("",!0)])}const Ao=K(go,[["render",To],["__scopeId","data-v-792676e1"]]),Oo={class:"reload-modal"},Lo={__name:"EnvironmentsChooser",setup(n){const e=ce(),t=S(null),o=S([]),i=S(!1),r=S(null),f=S(null),d=S({label:"",color:"",bgColor:""});te(c);async function c(){t.value=await j.getEnvironment(),o.value=await j.getEnvironments()}te(()=>{x.on("reloadEnvironments",c)}),Ne(()=>{x.off("reloadEnvironments",c)});async function l(){var C,w;await((C=f.value)==null?void 0:C.open().promise)&&(w=d.value)!=null&&w.label&&(await j.createEnvironment(d.value),d.value={label:"",color:"",bgColor:""})}function h(){var L;return(L=j.services.value)==null?void 0:L.filter(C=>C.enabled).reduce((C,w)=>{var N,W;const T=Object.keys(((N=w==null?void 0:w.spawnOptions)==null?void 0:N.overrideEnvs)||{});return Object.keys(((W=w==null?void 0:w.spawnOptions)==null?void 0:W.env)||{}).some(X=>T.includes(X))&&C.push(w),C},[])}async function m({value:L}){const C=h();C!=null&&C.length&&r.value&&!await r.value.open(C).promise||(i.value=!0,await j.changeEnvironment(L).then(()=>{window.location.reload()}).catch(w=>{console.error(w),A.next("error","Problem has occured")}).finally(()=>{i.value=!1}))}function I(){e.push({name:"settings",params:{setting:"environments"}})}return(L,C)=>(v(),y(D,null,[t.value?(v(),y("div",{key:0,class:"banner",style:Q({backgroundColor:t.value.bgColor||"transparent",color:t.value.color||"transparent"})},[p("div",null,[C[3]||(C[3]=U(" Current environment ")),k(P(Mt),{class:"select",size:"small",defaultValue:t.value.label,value:t.value.label,onChange:m,options:o.value.filter(w=>w),optionLabel:"label",optionValue:"label",placeholder:"Select an environment"},{footer:$(()=>[k(P(J),{label:"Add New",fluid:"",severity:"secondary",text:"",size:"small",icon:"fas fa-plus",onClick:l}),k(P(J),{label:"Edit",fluid:"",severity:"secondary",text:"",size:"small",icon:"fas fa-edit",onClick:I})]),_:1},8,["defaultValue","value","options"])])],4)):M("",!0),i.value?(v(),B(It,{key:1,to:"body"},[p("div",Oo,[k(Dt),C[4]||(C[4]=U(" Change environments... "))])])):M("",!0),k(De,{ref_key:"overrideModalRef",ref:r,cancelString:"Cancel",validateString:"Ok"},{header:$(({data:w})=>C[5]||(C[5]=[U(" Change environment ")])),body:$(({data:w})=>[C[6]||(C[6]=U(" Because .env in services root folder is the main truth. Some environments may not be taken into account. ")),p("ul",null,[(v(!0),y(D,null,H(w,T=>(v(),y("li",{key:T.id},[U(O(T.label)+" ",1),p("ul",null,[(v(!0),y(D,null,H(T.spawnOptions.overrideEnvs,(R,N)=>(v(),y("li",null,O(N)+": "+O(R),1))),256))])]))),128))])]),_:1},512),k(De,{ref_key:"createEnvironmentModalRef",ref:f,cancelString:"Cancel",validateString:"Ok"},{header:$(()=>C[7]||(C[7]=[U(" Create environment ")])),body:$(()=>[k(P(Ve),null,{default:$(()=>[k(P(Ee),{id:"environment-to-create-label",size:"small",modelValue:d.value.label,"onUpdate:modelValue":C[0]||(C[0]=w=>d.value.label=w),fluid:""},null,8,["modelValue"]),C[8]||(C[8]=p("label",{for:"environment-to-create-label"},"Label",-1))]),_:1,__:[8]}),k(P(Ve),null,{default:$(()=>[k(P(Ee),{id:"environment-to-create-bgColor",size:"small",modelValue:d.value.bgColor,"onUpdate:modelValue":C[1]||(C[1]=w=>d.value.bgColor=w),fluid:""},null,8,["modelValue"]),C[9]||(C[9]=p("label",{for:"environment-to-create-bgColor"},"Background color",-1))]),_:1,__:[9]}),k(P(Ve),null,{default:$(()=>[k(P(Ee),{id:"environment-to-create-color",size:"small",modelValue:d.value.color,"onUpdate:modelValue":C[2]||(C[2]=w=>d.value.color=w),fluid:""},null,8,["modelValue"]),C[10]||(C[10]=p("label",{for:"environment-to-create-color"},"Color",-1))]),_:1,__:[10]})]),_:1},512)],64))}},Vo=K(Lo,[["__scopeId","data-v-42a01f9f"]]);function ie(){}ie.prototype={diff:function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.callback;typeof o=="function"&&(i=o,o={}),this.options=o;var r=this;function f(w){return i?(setTimeout(function(){i(void 0,w)},0),!0):w}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var d=t.length,c=e.length,l=1,h=d+c,m=[{newPos:-1,components:[]}],I=this.extractCommon(m[0],t,e,0);if(m[0].newPos+1>=d&&I+1>=c)return f([{value:this.join(t),count:t.length}]);function L(){for(var w=-1*l;w<=l;w+=2){var T=void 0,R=m[w-1],N=m[w+1],W=(N?N.newPos:0)-w;R&&(m[w-1]=void 0);var X=R&&R.newPos+1<d,G=N&&0<=W&&W<c;if(!X&&!G){m[w]=void 0;continue}if(!X||G&&R.newPos<N.newPos?(T=jo(N),r.pushComponent(T.components,void 0,!0)):(T=R,T.newPos++,r.pushComponent(T.components,!0,void 0)),W=r.extractCommon(T,t,e,w),T.newPos+1>=d&&W+1>=c)return f(Mo(r,T.components,t,e,r.useLongestToken));m[w]=T}l++}if(i)(function w(){setTimeout(function(){if(l>h)return i();L()||w()},0)})();else for(;l<=h;){var C=L();if(C)return C}},pushComponent:function(e,t,o){var i=e[e.length-1];i&&i.added===t&&i.removed===o?e[e.length-1]={count:i.count+1,added:t,removed:o}:e.push({count:1,added:t,removed:o})},extractCommon:function(e,t,o,i){for(var r=t.length,f=o.length,d=e.newPos,c=d-i,l=0;d+1<r&&c+1<f&&this.equals(t[d+1],o[c+1]);)d++,c++,l++;return l&&e.components.push({count:l}),e.newPos=d,c},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],o=0;o<e.length;o++)e[o]&&t.push(e[o]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function Mo(n,e,t,o,i){for(var r=0,f=e.length,d=0,c=0;r<f;r++){var l=e[r];if(l.removed){if(l.value=n.join(o.slice(c,c+l.count)),c+=l.count,r&&e[r-1].added){var m=e[r-1];e[r-1]=e[r],e[r]=m}}else{if(!l.added&&i){var h=t.slice(d,d+l.count);h=h.map(function(L,C){var w=o[c+C];return w.length>L.length?w:L}),l.value=n.join(h)}else l.value=n.join(t.slice(d,d+l.count));d+=l.count,l.added||(c+=l.count)}}var I=e[f-1];return f>1&&typeof I.value=="string"&&(I.added||I.removed)&&n.equals("",I.value)&&(e[f-2].value+=I.value,e.pop()),e}function jo(n){return{newPos:n.newPos,components:n.components.slice(0)}}function Do(n,e){if(typeof n=="function")e.callback=n;else if(n)for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}var Ye=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Xe=/\S/,ze=new ie;ze.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!Xe.test(n)&&!Xe.test(e)};ze.tokenize=function(n){for(var e=n.split(/(\s+|[()[\]{}'"]|\b)/),t=0;t<e.length-1;t++)!e[t+1]&&e[t+2]&&Ye.test(e[t])&&Ye.test(e[t+2])&&(e[t]+=e[t+2],e.splice(t+1,2),t--);return e};function et(n,e,t){return t=Do(t,{ignoreWhitespace:!0}),ze.diff(n,e,t)}var at=new ie;at.tokenize=function(n){var e=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var o=0;o<t.length;o++){var i=t[o];o%2&&!this.options.newlineIsToken?e[e.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),e.push(i))}return e};var Po=new ie;Po.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var Ro=new ie;Ro.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function Se(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Se=function(e){return typeof e}:Se=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(n)}var Bo=Object.prototype.toString,me=new ie;me.useLongestToken=!0;me.tokenize=at.tokenize;me.castInput=function(n){var e=this.options,t=e.undefinedReplacement,o=e.stringifyReplacer,i=o===void 0?function(r,f){return typeof f>"u"?t:f}:o;return typeof n=="string"?n:JSON.stringify(Re(n,null,null,i),i," ")};me.equals=function(n,e){return ie.prototype.equals.call(me,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function Re(n,e,t,o,i){e=e||[],t=t||[],o&&(n=o(i,n));var r;for(r=0;r<e.length;r+=1)if(e[r]===n)return t[r];var f;if(Bo.call(n)==="[object Array]"){for(e.push(n),f=new Array(n.length),t.push(f),r=0;r<n.length;r+=1)f[r]=Re(n[r],e,t,o,i);return e.pop(),t.pop(),f}if(n&&n.toJSON&&(n=n.toJSON()),Se(n)==="object"&&n!==null){e.push(n),f={},t.push(f);var d=[],c;for(c in n)n.hasOwnProperty(c)&&d.push(c);for(d.sort(),r=0;r<d.length;r+=1)c=d[r],f[c]=Re(n[c],e,t,o,c);e.pop(),t.pop()}else f=n;return f}var Be=new ie;Be.tokenize=function(n){return n.slice()};Be.join=Be.removeEmpty=function(n){return n};const No={key:0,class:"conflict-container"},zo={class:"conflict-header"},Uo={key:0,class:"file-info"},Ho={class:"version-actions"},Wo={key:0,class:"json-conflicts"},Jo={class:"json-conflicts-list"},Fo={class:"json-header"},Ko={class:"json-path"},qo={class:"manual-edit-actions"},Go={class:"conflict-section"},Zo={class:"conflict-versions"},Qo=["onClick","data-index"],Yo={class:"json-content"},Xo=["onClick","data-index"],ei={class:"json-content"},ti={class:"manual-edit-container"},ni={key:1,class:"conflicts-container"},oi={class:"conflict-columns"},ii={class:"conflict-column"},ri={class:"interactive-conflict"},li=["innerHTML"],si={class:"conflict-column"},ai={class:"manual-edit-container"},ui={key:1,class:"no-conflict-message"},ci={class:"flex justify-content-end"},di={class:"flex gap-2"},fi={__name:"GitConflictModal",emits:["conflict-resolved"],setup(n,{expose:e,emit:t}){const o=S(!1),i=S(null),r=S([]);function f(a,s){const u=et(a,s),b=[];let g="",_=0;return u.forEach(E=>{if(E.added||E.removed){const z=`chunk-${_++}`;E.added?(b.push({id:z,ourVersion:"",theirVersion:E.value,selectedVersion:"ours"}),g+=`<span class="diff-chunk their-version not-selected" data-chunk-id="${z}">${E.value}</span>`):E.removed&&(b.push({id:z,ourVersion:E.value,theirVersion:"",selectedVersion:"ours"}),g+=`<span class="diff-chunk our-version selected" data-chunk-id="${z}">${E.value}</span>`)}else g+=`<span class="common-text">${E.value}</span>`}),[b,g]}function d(){i.value&&(i.value.isJson&&i.value.jsonConflicts?(i.value.jsonConflicts.forEach(a=>{a.selectedVersion="ours"}),T()):i.value.chunks&&(i.value.chunks.forEach(a=>{a.selectedVersion="ours";const s=document.querySelector(`.diff-chunk[data-chunk-id="${a.id}"]`);s&&(s.classList.contains("our-version")?(s.classList.add("selected"),s.classList.remove("not-selected")):(s.classList.remove("selected"),s.classList.add("not-selected")))}),h()))}function c(){i.value&&(i.value.isJson&&i.value.jsonConflicts?(i.value.jsonConflicts.forEach(a=>{a.selectedVersion="theirs"}),T()):i.value.chunks&&(i.value.chunks.forEach(a=>{a.selectedVersion="theirs";const s=document.querySelector(`.diff-chunk[data-chunk-id="${a.id}"]`);s&&(s.classList.contains("their-version")?(s.classList.add("selected"),s.classList.remove("not-selected")):(s.classList.remove("selected"),s.classList.add("not-selected")))}),h()))}function l(a){if(!i.value||!i.value.chunks)return;const s=i.value.chunks.find(b=>b.id===a);if(!s)return;s.selectedVersion=s.selectedVersion==="ours"?"theirs":"ours";const u=document.querySelector(`.diff-chunk[data-chunk-id="${a}"]`);u&&(u.classList.toggle("selected"),u.classList.toggle("not-selected"),u.classList.contains("our-version")?s.selectedVersion==="ours"?(u.classList.add("selected"),u.classList.remove("not-selected")):(u.classList.remove("selected"),u.classList.add("not-selected")):s.selectedVersion==="theirs"?(u.classList.add("selected"),u.classList.remove("not-selected")):(u.classList.remove("selected"),u.classList.add("not-selected"))),h()}function h(){if(!i.value||!i.value.chunks){console.warn("updateResolution appelée alors que currentConflict ou ses chunks sont null");return}try{let a="";const s=et(i.value.ourVersion,i.value.theirVersion),u=i.value.chunks;s.forEach(b=>{try{if(b.added){const g=u.find(_=>_.theirVersion===b.value&&_.ourVersion==="");g&&g.selectedVersion==="theirs"&&(a+=b.value)}else if(b.removed){const g=u.find(_=>_.ourVersion===b.value&&_.theirVersion==="");(!g||g.selectedVersion==="ours")&&(a+=b.value)}else a+=b.value}catch(g){console.error("Erreur lors du traitement d'une partie:",g)}}),i.value&&(i.value.resolution=a)}catch(a){console.error("Erreur lors de la mise à jour de la résolution:",a)}}function m(){if(!i.value){console.warn("setupChunkListeners appelé alors que currentConflict.value est null"),setTimeout(()=>{i.value&&m()},50);return}console.log("Mise en place des écouteurs d'événements sur les chunks");try{const a=()=>{const s=document.querySelectorAll(".json-value");console.log(`Found ${s.length} JSON value elements`),s.forEach(u=>{if(u instanceof HTMLElement){const b=u.getAttribute("data-version"),g=u.getAttribute("data-index");if(b&&g&&(b==="ours"||b==="theirs"))try{const _=parseInt(g,10);u.addEventListener("click",E=>{E.stopPropagation(),console.log(`Clic sur JSON value: index=${_}, version=${b}`),(b==="ours"||b==="theirs")&&w(_,b)}),u.style.cursor="pointer"}catch(_){console.error("Error parsing index:",_)}}})};ke(()=>{setTimeout(()=>{if(!i.value){console.warn("setupChunkListeners: currentConflict.value est devenu null pendant le délai");return}const s=document.querySelectorAll(".diff-chunk");if(console.log(`${s.length} chunks trouvés pour le conflit`),s.length===0){console.warn("Aucun chunk trouvé, tentative avec un délai plus long"),setTimeout(m,200);return}s.forEach(u=>{try{const b=u.getAttribute("data-chunk-id");if(b){u.replaceWith(u.cloneNode(!0));const g=document.querySelector(`.diff-chunk[data-chunk-id="${b}"]`);g&&(g.addEventListener("click",_=>{_.stopPropagation();try{console.log(`Clic sur le chunk ${b}`),l(b)}catch(E){console.error(`Erreur sur le clic du chunk ${b}:`,E)}}),g instanceof HTMLElement&&(g.style.cursor="pointer",g.style.userSelect="none"))}}catch(b){console.error("Erreur lors de la configuration d'un chunk:",b)}}),a(),console.log("Écouteurs d'événements ajoutés avec succès")},150)})}catch(a){console.error("Erreur générale dans setupChunkListeners:",a)}}function I(a,s){try{const u=JSON.parse(a),b=JSON.parse(s);return L(u,b)}catch{return[]}}function L(a,s,u=""){const b=[];for(const g in a){const _=u?`${u}.${g}`:g;if(!(g in s)){const E={path:_,ourValue:a[g],theirValue:void 0,selectedVersion:"ours",manualEdit:JSON.stringify(a[g],null,2)};b.push(E);continue}if(typeof a[g]=="object"&&a[g]!==null&&typeof s[g]=="object"&&s[g]!==null&&!Array.isArray(a[g])&&!Array.isArray(s[g])){b.push(...L(a[g],s[g],_));continue}if(JSON.stringify(a[g])!==JSON.stringify(s[g])){const E={path:_,ourValue:a[g],theirValue:s[g],selectedVersion:"ours",manualEdit:JSON.stringify(a[g],null,2)};b.push(E)}}for(const g in s)if(!(g in a)){const E={path:u?`${u}.${g}`:g,ourValue:void 0,theirValue:s[g],selectedVersion:"ours",manualEdit:"undefined"};b.push(E)}return b}function C(a){if(a===void 0)return"undefined";try{return JSON.stringify(a,null,2)}catch{return String(a)}}function w(a,s){if(console.log(`Tentative de sélection JSON : index=${a}, version=${s}`),!i.value||!i.value.jsonConflicts){console.error("selectJsonVersion: currentConflict ou jsonConflicts est null");return}const u=i.value.jsonConflicts[a];if(u){console.log(`Avant changement: selectedVersion=${u.selectedVersion}`),u.selectedVersion=s;const b=s==="ours"?u.ourValue:u.theirValue;u.manualEdit=C(b),console.log(`Après changement: selectedVersion=${u.selectedVersion}, manualEdit mis à jour`),T()}else console.error(`Aucun conflit JSON trouvé à l'index ${a}`)}function T(){if(!i.value||!i.value.jsonConflicts){console.warn("updateJsonResolution appelée alors que currentConflict ou ses jsonConflicts sont null");return}try{console.log("Mise à jour de la résolution JSON à partir des éditions manuelles");const a=JSON.parse(i.value.ourVersion),s=JSON.parse(JSON.stringify(a));if(i.value.jsonConflicts.forEach((u,b)=>{try{if(!u||!u.path){console.warn(`Conflit JSON invalide ou sans chemin à l'index ${b}`);return}const g=u.path.split(".");let _=s;for(let z=0;z<g.length-1;z++){const q=g[z];q in _||(_[q]={}),_=_[q]}const E=g[g.length-1];if(u.manualEdit&&u.manualEdit.trim()!==""&&u.manualEdit!=="undefined")try{console.log(`Utilisation de l'édition manuelle pour ${u.path}:`,u.manualEdit);const z=JSON.parse(u.manualEdit);_[E]=z,console.log(`Édition manuelle appliquée avec succès pour ${u.path}`)}catch(z){console.warn(`Échec du parsing de l'édition manuelle pour ${u.path}:`,z),console.log("Contenu de l'édition manuelle:",u.manualEdit),u.selectedVersion==="ours"?u.ourValue!==void 0?(console.log(`Fallback à notre version pour ${u.path}`),_[E]=u.ourValue):(console.log(`Suppression de ${u.path} car notre version est undefined`),delete _[E]):u.theirValue!==void 0?(console.log(`Fallback à leur version pour ${u.path}`),_[E]=u.theirValue):(console.log(`Suppression de ${u.path} car leur version est undefined`),delete _[E])}else console.log(`Pas d'édition manuelle pour ${u.path}, utilisation de la version ${u.selectedVersion}`),u.selectedVersion==="ours"?u.ourValue!==void 0?(_[E]=u.ourValue,console.log(`Utilisé notre version pour ${u.path}`)):(delete _[E],console.log(`Supprimé ${u.path} car notre version est undefined`)):u.theirValue!==void 0?(_[E]=u.theirValue,console.log(`Utilisé leur version pour ${u.path}`)):(delete _[E],console.log(`Supprimé ${u.path} car leur version est undefined`))}catch(g){console.error(`Erreur lors du traitement du conflit JSON à l'index ${b}:`,g)}}),i.value){const u=JSON.stringify(s,null,2);i.value.resolution=u,console.log("Résolution JSON finale mise à jour:",u.substring(0,100)+"...")}}catch(a){console.error("Erreur lors de la mise à jour de la résolution JSON:",a)}}Y(()=>{if(!i.value||!i.value.resolution)return{};try{return JSON.parse(i.value.resolution)}catch{return{}}});async function R(a){if(!a)return!1;try{if(console.log("Affichage du conflit:",{id:a.id,filename:a.filename,hasOriginal:!!a.original,originalLength:a.original?a.original.length:0,hasOurVersion:!!a.ourVersion,hasTheirVersion:!!a.theirVersion}),!a.original)return console.error(`Impossible d'afficher le conflit: champ "original" manquant`),A.next("error","Impossible d'afficher ce conflit: données originales manquantes"),!1;const s=I(a.ourVersion,a.theirVersion),u=s.length>0,[b,g]=f(a.ourVersion,a.theirVersion);return i.value={...a,chunks:b,mergedDisplay:g,resolution:a.resolution||a.ourVersion,jsonConflicts:u?s:void 0,isJson:u},o.value=!0,setTimeout(()=>{var _;m(),u&&((_=i.value)!=null&&_.jsonConflicts)&&console.log("Configuration de l'interface pour les conflits JSON")},300),!0}catch(s){return console.error("Erreur lors de l'affichage du conflit:",s),A.next("error",`Échec de l'affichage du conflit: ${xe(s)}`),!1}}function N(){var a;try{const s=(a=i.value)==null?void 0:a.id;console.log(`Fermeture de la modal pour le conflit ${s||"inconnu"}`),o.value=!1,i.value=null}catch(s){console.error("Erreur lors de la fermeture de la modal:",s)}}async function W(){try{await ae(),A.next("success","Liste des conflits rafraîchie")}catch(a){console.error("Erreur lors du rafraîchissement des conflits:",a),A.next("error","Erreur lors du rafraîchissement des conflits")}}async function X(){try{A.next("success","Redémarrage de l'application en cours...","Veuillez patienter"),await j.restartApplication()}catch(a){console.error("Erreur lors du redémarrage de l'application:",a);const s=a instanceof Error?a.message:String(a);A.next("error",`Erreur lors du redémarrage: ${s}`)}}async function G(){console.log("Début de la résolution du conflit");const a=document.querySelector('button[label="Resolve and save"]');a&&a.setAttribute("disabled","disabled");try{const s=i.value?{...i.value}:null;if(!s){console.error("Impossible de résoudre : conflit est null"),A.next("error","Impossible de résoudre ce conflit. Données manquantes.");return}if(!s.resolution){console.error("Impossible de résoudre : résolution manquante"),A.next("error","Impossible de résoudre ce conflit. Résolution manquante.");return}if(!s.original){console.error("Impossible de résoudre : données originales manquantes"),A.next("error","Impossible de résoudre ce conflit. Données originales manquantes.");return}const u=s.id;console.log(`Résolution du conflit ${u} avec une copie sécurisée`);const b={conflictId:u,resolution:s.resolution,original:s.original};if(s.isJson&&s.resolution)try{const g=JSON.parse(s.resolution);if(s.filename&&s.filename.includes("/service/")&&g&&!g.label){console.error("Service sans label détecté lors de la résolution:",g),A.next("error",`Le service doit avoir une propriété "label". Veuillez l'ajouter manuellement.`);return}b.resolution=JSON.stringify(g)}catch(g){console.error("Erreur de parsing JSON:",g),A.next("error","Le format JSON de la résolution est invalide");return}console.log("Envoi de la résolution au serveur:",b);try{const g=await fe.post("/crypto/resolve-conflict",b);console.log("Réponse du serveur après résolution:",g.data),A.next("success","Conflit résolu avec succès, redémarrage de l'application..."),i.value&&i.value.id===u&&(console.log(`Fermeture du conflit ${u} après résolution`),o.value=!1,i.value=null),await ae(),setTimeout(async()=>{try{await X()}catch(_){console.error("Erreur lors du redémarrage:",_)}},1e3);try{let _=null;if(s.filename&&s.filename.includes("/service/")){const E=s.filename.split("/"),q=E[E.length-1].replace(".encrypted.json","");console.log(`Attempting to restart service: ${q}`);try{const We=(await j.loadServices()).find(dt=>dt.label===q);We?(console.log(`Service found for restart: ${q}`),await We.restart(),A.next("success",`Service ${q} restarted successfully`)):console.log(`No service found with name: ${q}`)}catch(He){console.error(`Error while searching/restarting service ${q}:`,He)}}else console.log("The file is not associated with a specific service, no restart needed")}catch(_){console.error("Error while attempting to restart the service:",_)}console.log("Immediate processing of the next conflict after resolution"),re()}catch(g){throw console.error("Error during server request:",g),g}}catch(s){console.error("Error during conflict resolution:",s);let u="Error during conflict resolution";typeof s=="object"&&s!==null&&"response"in s&&s.response&&typeof s.response=="object"&&"data"in s.response&&s.response.data&&typeof s.response.data=="object"&&"message"in s.response.data?u=String(s.response.data.message):s instanceof Error&&(u=`${s.name}: ${s.message}`),A.next("error",u)}finally{a&&a.removeAttribute("disabled")}}async function re(){if(console.log("Processing next conflict. Queue size:",r.value.length,"isVisible:",o.value),o.value||r.value.length===0){console.log("No conflict to process: modal already visible or empty queue");return}try{if(r.value.length===0){console.log("The queue is empty, nothing to process");return}const a={...r.value[0]};if(!a.id||!a.original){console.error("Invalid conflict found in the queue, ignored"),r.value.shift(),setTimeout(re,50);return}console.log("Preparing to display the next conflict:",a.id),await R(a)?(console.log("Conflict displayed successfully, removing from queue"),r.value.shift()):(console.error("Failed to display conflict, it remains in the queue"),r.value.shift(),setTimeout(re,200))}catch(a){console.error("Erreur lors du traitement du prochain conflit:",a),A.next("error",`Erreur lors du traitement du conflit: ${xe(a)}`),r.value.length>0&&(r.value.shift(),setTimeout(re,300))}}te(async()=>{console.log("GitConflictModal mounted"),setTimeout(()=>{const s=document.querySelector(".conflict-dialog .p-dialog-content");s&&(console.log("Adding click event listener to modal content for debugging"),s.addEventListener("click",u=>{console.log("Click detected in modal content",{target:u.target,currentTarget:u.currentTarget,classes:u.target instanceof HTMLElement?Array.from(u.target.classList):[],id:u.target instanceof HTMLElement?u.target.id:null,tagName:u.target instanceof HTMLElement?u.target.tagName:null})}))},1e3);const a=new MutationObserver(s=>{for(const u of s)if(u.type==="attributes"&&u.attributeName==="class"){const b=document.querySelector(".conflict-dialog");b&&b.classList.contains("p-dialog-visible")&&(console.log("Modal is now visible - setting up click debugging"),document.querySelectorAll(".json-value").forEach(_=>{if(_ instanceof HTMLElement){_.addEventListener("click",z=>{console.log("Direct click on json-value:",{element:_,classes:Array.from(_.classList),version:_.getAttribute("data-version"),index:_.getAttribute("data-index")})}),_.style.position="relative";const E=document.createElement("div");E.innerText="👆 Clickable",E.style.position="absolute",E.style.top="0",E.style.right="0",E.style.background="rgba(255,0,0,0.2)",E.style.color="white",E.style.padding="2px 5px",E.style.fontSize="10px",E.style.borderRadius="3px",_.appendChild(E)}}),a.disconnect())}});a.observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["class"]}),i.value=null,o.value=!1,r.value=[],await ae(),x.on("crypto:conflict-resolved",async s=>{var u;try{if(console.log("Event crypto:conflict-resolved received:",s),!s||!s.conflictId){console.warn("Resolution event received without conflict ID");return}const b=s.conflictId,g=(u=i.value)==null?void 0:u.id;o.value&&g===b?(console.log(`Closing conflict ${b} following external resolution`),o.value=!1,i.value=null):console.log(`The resolved conflict ${b} is not currently displayed (displayed: ${g})`);const E=r.value.filter(q=>q.id!==b),z=r.value.length-E.length;z>0&&(console.log(`${z} conflict(s) removed from the queue`),r.value=E),await ae(),!o.value&&r.value.length>0&&(console.log("Scheduling processing of the next conflict"),setTimeout(re,200))}catch(b){console.error("Error while processing conflict-resolved event:",b)}}),x.on("crypto:conflict",async s=>{try{if(!s||!s.id){console.warn("New conflict event received without valid data");return}console.log("New conflict detected:",s.id),await ae(),s&&s.id&&s.original&&Te(s)}catch(u){console.error("Error while processing a new conflict:",u)}})}),xt(()=>{console.log("GitConflictModal unmounted"),x.off("crypto:conflict-resolved"),x.off("crypto:conflict")});async function ae(){try{const{data:a}=await fe.get("/crypto/pending-conflicts");if(console.log("Conflicts retrieved from server:",a?a.length:0),Array.isArray(a)&&a.length>0){console.log("Details of retrieved conflicts:",a.map(u=>({id:u.id,filename:u.filename,hasOriginal:!!u.original,hasOurVersion:!!u.ourVersion,hasTheirVersion:!!u.theirVersion})));const s=a.filter(u=>!u.id||!u.original?(console.warn("Invalid conflict ignored (id or original missing):",u.id),!1):((!u.ourVersion||!u.theirVersion)&&console.warn("Conflict with missing versions:",u.id),!0));s.forEach(u=>{Te(u)}),s.length>0&&A.next("error",`${s.length} Git conflict(s) pending resolution`,"Git Conflicts")}}catch(a){console.error("Error while retrieving pending conflicts:",a),A.next("error",`Error while retrieving conflicts: ${xe(a)}`)}}function xe(a){if(!a)return"Unknown error";if(typeof a=="object"&&a!==null){if("response"in a&&a.response&&typeof a.response=="object"&&"data"in a.response&&a.response.data&&typeof a.response.data=="object"&&"message"in a.response.data)return String(a.response.data.message);if("message"in a&&typeof a.message=="string")return a.message}try{return String(a)}catch{return"Unknown error"}}function Te(a){console.log("Adding a new conflict to the queue:",a.id),r.value.push(a),re()}function ut(){}function ct(a){if(!i.value){console.error("updateManualEditForConflict: currentConflict.value is null");return}if(!i.value.jsonConflicts){console.error("updateManualEditForConflict: jsonConflicts is null");return}if(a<0||a>=i.value.jsonConflicts.length){console.error(`updateManualEditForConflict: invalid index ${a}, jsonConflicts length: ${i.value.jsonConflicts.length}`);return}const s=i.value.jsonConflicts[a];if(!s){console.error(`updateManualEditForConflict: conflict at index ${a} is null`);return}try{s.manualEdit!==void 0&&T()}catch(u){console.error(`Error while updating manual edit for index ${a}:`,u)}}function Ue(a,s){if(!i.value){console.error("useVersionInManualEdit: currentConflict.value is null");return}if(!i.value.jsonConflicts){console.error("useVersionInManualEdit: jsonConflicts is null");return}if(a<0||a>=i.value.jsonConflicts.length){console.error(`useVersionInManualEdit: invalid index ${a}, jsonConflicts length: ${i.value.jsonConflicts.length}`);return}const u=i.value.jsonConflicts[a];if(!u){console.error(`useVersionInManualEdit: conflict at index ${a} is null`);return}try{console.log(`Using version ${s} for manual edit at index ${a}`);const b=s==="ours"?u.ourValue:u.theirValue;u.manualEdit=C(b),u.selectedVersion=s,console.log(`Manual edit updated with version ${s}:`,u.manualEdit),T()}catch(b){console.error(`Error while updating manual version for index ${a}:`,b)}}return e({addConflict:Te,showConflict:R,resolveConflict:G,closeModal:N,refreshConflicts:W,processNextConflict:re,fetchPendingConflicts:ae}),Ie(o,a=>{a&&i.value&&(console.log("Modal displayed, setting up event listeners"),ke(()=>{m()}))}),Ie(()=>{var a;return(a=i.value)==null?void 0:a.id},(a,s)=>{a&&a!==s&&(console.log(`New conflict displayed (${a}), setting up event listeners`),ke(()=>{m()}))}),(a,s)=>(v(),B(P(pe),{visible:o.value,"onUpdate:visible":s[1]||(s[1]=u=>o.value=u),modal:!0,closable:!0,style:{width:"95vw"},maximizable:!0,header:"Git Conflict Resolution",class:"conflict-dialog"},{footer:$(()=>[p("div",ci,[p("div",di,[k(P(J),{label:"Cancel",icon:"pi pi-times",onClick:N,class:"p-button-text"}),k(P(J),{label:"Refresh",icon:"pi pi-refresh",onClick:W,class:"p-button-outlined"}),k(P(J),{label:"Resolve and save",icon:"pi pi-check",onClick:G,disabled:!i.value||!i.value.resolution||!i.value.original},null,8,["disabled"])])])]),default:$(()=>[i.value&&i.value.id?(v(),y("div",No,[p("div",zo,[i.value.filename?(v(),y("div",Uo,[s[2]||(s[2]=p("i",{class:"pi pi-file"},null,-1)),p("span",null,O(i.value.filename),1)])):M("",!0),p("div",Ho,[k(P(J),{label:"Keep all your versions",icon:"pi pi-user",class:"p-button-outlined p-button-success",onClick:d}),k(P(J),{label:"Keep all their versions",icon:"pi pi-users",class:"p-button-outlined p-button-info",onClick:c})])]),i.value.isJson&&i.value.jsonConflicts&&i.value.jsonConflicts.length>0?(v(),y("div",Wo,[s[9]||(s[9]=p("h3",null,"Conflicts detected in JSON",-1)),p("div",Jo,[(v(!0),y(D,null,H(i.value.jsonConflicts,(u,b)=>(v(),y("div",{key:u.path||b,class:"json-conflict-item"},[p("div",Fo,[p("div",Ko,[s[3]||(s[3]=p("i",{class:"pi pi-key"},null,-1)),p("span",null,O(u.path||"Unknown path"),1)]),p("div",qo,[k(P(J),{label:"Use your version",size:"small",class:"p-button-sm p-button-text",onClick:g=>Ue(b,"ours")},null,8,["onClick"]),k(P(J),{label:"Use remote version",size:"small",class:"p-button-sm p-button-text",onClick:g=>Ue(b,"theirs")},null,8,["onClick"])])]),p("div",Go,[p("div",Zo,[p("div",{class:F(["json-value our-value",{selected:u.selectedVersion==="ours"}]),onClick:g=>w(b,"ours"),"data-version":"ours","data-index":b},[s[4]||(s[4]=p("div",{class:"json-value-header"},[p("span",{class:"legend-color your-version"}),p("span",null,"Your version")],-1)),p("pre",Yo,O(C(u.ourValue)),1),s[5]||(s[5]=p("div",{class:"select-overlay"},"Click to select your version",-1))],10,Qo),p("div",{class:F(["json-value their-value",{selected:u.selectedVersion==="theirs"}]),onClick:g=>w(b,"theirs"),"data-version":"theirs","data-index":b},[s[6]||(s[6]=p("div",{class:"json-value-header"},[p("span",{class:"legend-color their-version"}),p("span",null,"Remote version")],-1)),p("pre",ei,O(C(u.theirValue)),1),s[7]||(s[7]=p("div",{class:"select-overlay"},"Click to select remote version",-1))],10,Xo)]),p("div",ti,[s[8]||(s[8]=p("div",{class:"manual-edit-header"},[p("h4",null,"Manual editing (final)"),p("span",{class:"manual-edit-info"},"This value will be used with priority for resolution")],-1)),k(P(qe),{modelValue:u.manualEdit,"onUpdate:modelValue":g=>u.manualEdit=g,class:"manual-edit-area",onInput:g=>ct(b),autoResize:!0},null,8,["modelValue","onUpdate:modelValue","onInput"])])])]))),128))])])):(v(),y("div",ni,[p("div",oi,[p("div",ii,[s[10]||(s[10]=p("div",{class:"column-header"},[p("h4",null,"Differences")],-1)),p("div",ri,[i.value.mergedDisplay?(v(),y("div",{key:0,class:"interactive-editor",innerHTML:i.value.mergedDisplay},null,8,li)):M("",!0)])]),p("div",si,[s[12]||(s[12]=p("div",{class:"column-header"},[p("h4",null,"Manual editing")],-1)),p("div",ai,[s[11]||(s[11]=p("div",{class:"manual-edit-header"},[p("h4",null,"Manual editing (final)"),p("span",{class:"manual-edit-info"},"This value will be used with priority for resolution")],-1)),k(P(qe),{modelValue:i.value.resolution,"onUpdate:modelValue":s[0]||(s[0]=u=>i.value.resolution=u),class:"manual-edit-area",onInput:ut,autoResize:!0},null,8,["modelValue"])])])])]))])):o.value?(v(),y("div",ui,s[13]||(s[13]=[p("p",null,"No conflict to display or incomplete data.",-1)]))):M("",!0)]),_:1},8,["visible"]))}},pi=K(fi,[["__scopeId","data-v-43eafe4e"]]),vi={__name:"PluginDev",setup(n){const e=S(null),t=S(!1),o=S(null);return x.on("plugins:front:changed",i=>{console.log(`🔄 Plugin ${i} changed, reloading page...`),t.value=!1,o.value=null,document.location.reload()}),x.on("plugins:front:building",i=>{console.log(`🔄 Plugin ${i} building...`),o.value=i,t.value=!0}),(i,r)=>(v(),y("div",null,[k(P(pe),{ref_key:"modalBuildingRef",ref:e,visible:t.value,"onUpdate:visible":r[0]||(r[0]=f=>t.value=f),closable:!1,modal:!0},{default:$(()=>[p("h1",null,"Plugin "+O(o.value)+" is building...",1)]),_:1},8,["visible"])]))}},hi={class:"error-header"},mi={__name:"PluginInstallError",setup(n){const e=S([]),t=S({plugin:null,step:null});function o(l){return{INSTALL_BACKEND_START:"Installing backend",LOAD_BACKEND_START:"Loading backend",CLEAR_CACHE:"Clearing cache",REQUIRE_BACKEND:"Requiring backend",INSTALL_START:"Installing plugin"}[l]||l}const i=l=>{console.log("closeError",l),e.value.splice(e.value.indexOf(l),1)},r=()=>{t.value={plugin:null,step:null}},f=l=>{const{plugin:h,step:m}=l;t.value={plugin:h,step:m}},d=(l,h)=>{e.value.push({id:crypto.randomUUID(),pluginName:l,error:h,message:`An error occurred while installing the plugin ${l}`,header:"Error while installing plugin"})},c=l=>{e.value.push({id:crypto.randomUUID(),error:l,message:"A critical error occurred",header:"Critical Error"})};return te(()=>{x.on("plugins:install:error",d),x.on("plugins:loading:error",d),x.on("critical:error",c),x.on("plugins:loading:progress",f)}),Ne(()=>{x.off("plugins:install:error",d),x.off("plugins:loading:error",d),x.off("critical:error",c),x.off("plugins:loading:progress",f)}),(l,h)=>(v(),y(D,null,[(v(!0),y(D,null,H(e.value,m=>(v(),B(P(pe),{visible:!0,modal:!0,key:m.id,"onUpdate:visible":I=>i(m)},{header:$(()=>[p("h2",hi,[h[1]||(h[1]=p("i",{class:"fas fa-exclamation-triangle"},null,-1)),U(" "+O(m.header),1)])]),default:$(()=>[p("p",null,O(m.message),1),p("pre",null,O(m.error),1)]),_:2},1032,["onUpdate:visible"]))),128)),k(P(pe),{visible:!!t.value.step,modal:!0,"onUpdate:visible":h[0]||(h[0]=m=>r())},{header:$(()=>[p("h2",null,O(t.value.plugin),1)]),default:$(()=>[p("p",null,O(o(t.value.step)),1)]),_:1},8,["visible"])],64))}},gi=K(mi,[["__scopeId","data-v-ea51820a"]]),tt=pt.filter(n=>n.load).reduce((n,{cmp:e,name:t})=>(n[t]=e,n),{}),yi={components:{sidebar:an,Notifications:wn,NotifHistory:$n,SidebarViewMode:Ao,EnvironmentsChooser:Vo,GitConflictModal:pi,Splitter:Rt,SplitterPanel:Pt,Button:J,PluginDev:vi,PluginInstallError:gi,...tt},setup(){(async()=>{const w=await j.getAdditionalThemes().catch(T=>(console.error(T),{}));$e.load(w)})();const n=ce(),e=S(!0),t=S(null),o=S(null),i=S([]),r=async()=>{e.value=x.socket.connected,e.value||(j.services.value=[]),(n.currentRoute.value.fullPath.startsWith("/stack-single")||n.currentRoute.value.fullPath.startsWith("/stack-multiple"))&&n.push({name:"stack-chooser"}),await j.shouldSetup()&&n.push({name:"settings",params:{setting:"crypto"},query:{wrongKey:"true"}})},f=()=>{console.log("reload"),window.location.reload()},d=()=>n.push({name:"settings",params:{setting:"crypto"},query:{wrongKey:"true"}});te(async()=>{x.on("connect",r),x.on("disconnect",r),x.on("forceReload",f),x.on("system:wrongKey",d),x.on("plugins:installed",f),x.on("plugins:uninstalled",f),x.on("crypto:conflict",c),await r(),setTimeout(()=>{o.value&&typeof o.value.fetchPendingConflicts=="function"?(o.value.fetchPendingConflicts(),i.value.length>0&&(console.log(`Traitement de ${i.value.length} conflits en attente...`),i.value.forEach(w=>{o.value&&typeof o.value.addConflict=="function"&&o.value.addConflict(w)}),i.value=[])):console.warn("GitConflictModal n'est pas correctement initialisé, impossible de récupérer les conflits en attente.")},500)}),Ne(()=>{x.off("crypto:conflict",c),x.off("plugins:installed",f),x.off("plugins:uninstalled",f),x.off("forceReload",f),x.off("system:wrongKey",d)});function c(w){if(o.value&&typeof o.value.addConflict=="function"){o.value.addConflict(w),A.next("error","Conflit Git détecté dans un fichier chiffré","Conflit Git");return}console.log("GitConflictModal n'est pas encore prêt, nouvelle tentative dans 500ms..."),setTimeout(()=>{o.value&&typeof o.value.addConflict=="function"?(o.value.addConflict(w),A.next("error","Conflit Git détecté dans un fichier chiffré","Conflit Git")):(console.error("Impossible d'ajouter le conflit Git: le composant GitConflictModal n'est pas correctement initialisé."),i.value.push(w),A.next("error","Conflit Git détecté mais l'interface n'est pas prête. Rechargez la page pour le résoudre.","Conflit Git"))},500)}let l=S({local:"",remote:"",hasUpdate:!1});te(async()=>{var w;l.value=await de.hasUpdate(),(w=l.value)!=null&&w.hasUpdate&&A.next("error",`Update available: ${l.value.local} => ${l.value.remote}`)});const h=S(40),m=S(!1),I=S(null),L=S(!1);Ie(L,()=>{m.value&&(L.value?C(h.value):C(0))});const C=w=>{var N,W;const T=(N=t.value)==null?void 0:N.$el,R=(W=I.value)==null?void 0:W.$el;!T||!R||(T.style["flex-basis"]=`calc(${w}%)`,T.style.transition="100ms",T.style["will-change"]="flex-basis",R.style["flex-basis"]=`calc(${100-w}%)`,R.style.transition="100ms",R.style["will-change"]="flex-basis",w===0?T.style["min-width"]="0px":T.style["min-width"]="160px",setTimeout(()=>{T.style.transition="0ms",R.style.transition="0ms"},300))};return{componentsToLoad:S(Object.keys(tt)),redirect:r,connected:e,githubIssue:cn,versions:l,gitConflictModalRef:o,sidebarPanelRef:t,mainPanelRef:I,isMinimized:m,mouseInAnchor:L,toggleMinimized:()=>{m.value=!m.value;const w=m.value?0:h.value;C(w)},debouncedMouseInAnchor:Bt(w=>{L.value=w},75)}}},bi={key:0,id:"app-container"},wi={id:"app"},ki={key:0,class:"fas fa-thumbtack"},Ci={key:1,class:"fas fa-chevron-right"},_i={class:"main"},Ei={key:2,class:"main"},$i={key:1,class:"not-connected"},Si=["href"];function Ii(n,e,t,o,i,r){var W,X;const f=V("sidebar-view-mode"),d=V("sidebar"),c=V("SplitterPanel"),l=V("Button"),h=V("router-view"),m=V("Splitter"),I=V("EnvironmentsChooser"),L=V("PluginDev"),C=V("Finder"),w=V("notif-history"),T=V("notifications"),R=V("GitConflictModal"),N=V("PluginInstallError");return v(),y(D,null,[o.connected?(v(),y("div",bi,[p("div",wi,[["stack-chooser","import-create"].includes(((W=n.$route.name)==null?void 0:W.toString())||"")?M("",!0):(v(),B(f,{key:0})),["stack-single","stack-single-no-view"].includes(((X=n.$route.name)==null?void 0:X.toString())||"")?(v(),B(m,{key:1,class:"splitter",pt:{gutter:{style:{width:o.isMinimized?"0px":"5px"}}}},{default:$(()=>[k(c,{ref:"sidebarPanelRef",style:{minWidth:"160px",maxWidth:"660px"},size:20,onMouseenter:e[0]||(e[0]=G=>o.debouncedMouseInAnchor(!0)),onMouseleave:e[1]||(e[1]=G=>o.debouncedMouseInAnchor(!1))},{default:$(()=>[k(d,{onToggleMinimized:o.toggleMinimized,"is-minimized":o.isMinimized},null,8,["onToggleMinimized","is-minimized"])]),_:1},512),k(c,{ref:"mainPanelRef",class:"main-panel",size:80},{default:$(()=>[k(l,{class:F(["maximize",{"mouse-in-anchor":o.mouseInAnchor}]),style:Q({display:o.isMinimized?"flex":"none"}),pt:{root:{style:{margin:"0",borderRadius:"0"}}},onMouseenter:e[2]||(e[2]=G=>o.debouncedMouseInAnchor(!0)),onMouseleave:e[3]||(e[3]=G=>o.debouncedMouseInAnchor(!1)),onClick:Tt(o.toggleMinimized,["stop"])},{default:$(()=>[o.isMinimized?(v(),y(D,{key:0},[o.mouseInAnchor?(v(),y("i",ki)):(v(),y("i",Ci))],64)):M("",!0)]),_:1},8,["class","style","onClick"]),p("div",_i,[k(h)])]),_:1},512)]),_:1},8,["pt"])):(v(),y("div",Ei,[k(h)]))]),k(I),k(L)])):(v(),y("div",$i,[e[4]||(e[4]=U(" Server is not connected or has crashed ")),e[5]||(e[5]=p("br",null,null,-1)),e[6]||(e[6]=U(" Try to restart it or fill an issue: ")),e[7]||(e[7]=p("br",null,null,-1)),e[8]||(e[8]=p("br",null,null,-1)),p("a",{href:o.githubIssue,target:"_blank"},"Click here",8,Si)])),(v(!0),y(D,null,H(o.componentsToLoad,G=>(v(),B(_e(G)))),256)),k(C),k(w),k(T),k(R,{ref:"gitConflictModalRef"},null,512),k(N)],64)}const Qi=K(yi,[["render",Ii],["__scopeId","data-v-7179e5a8"]]);export{Qi as default};
@@ -1 +1 @@
1
- import{a as k,n as g}from"./router-Cxk7zjvo.js";import{_ as x}from"./Section-u9eiCD3F.js";import{S as N}from"./Spinner-BMsNFBmq.js";import{s as S}from"./index-UzGzKvDE.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{l as f,a as r,o as i,e as h,s as B,g as w,f as I,d as F,F as y,q as M,n as O,b as C,t as u,u as P,r as p,j as T,w as b}from"./index-BelhD7LL.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./Editor-UHqSMXPl.js";import"./index-CZ6deEIJ.js";import"./index-STDFvzob.js";const j={components:{sectionCmp:x,spinner:N,Select:S},props:{service:{default:null,required:!0,type:k},isInMultiMode:{type:Boolean}},setup(o){const n=p([]),t=p(!1),e=p([]),c=p(),d=async()=>{o.service&&(e.value=await o.service.getNpmPaths(),c.value||(c.value=e.value[0]))};return T(d),b(()=>o.service,d),{reload:d,launch:async()=>{n.value=[],t.value=!0,n.value=await o.service.getBugs(c.value).catch(a=>{var m,l,s,_;return((l=(m=a==null?void 0:a.response)==null?void 0:m.data)==null?void 0:l.code)==="TSC_NOT_FOUND"&&g.next("error",'Please "npm i -g typescript"'),((_=(s=a==null?void 0:a.response)==null?void 0:s.data)==null?void 0:_.code)==="JSCONFIG_NOT_FOUND"&&g.next("error","Please create a jsconfig.json in project"),[]}).finally(()=>{t.value=!1})},npmPaths:e,cwd:c,loading:t,bugs:n,openInVsCode(a){o.service.openLinkInVsCode(a.path)}}}},z={key:0,class:"loading"},D={key:1,class:"bugs"},L=["onClick"],U={class:"message"};function q(o,n,t,e,c,d){var l;const v=f("Select"),a=f("spinner"),m=f("section-cmp");return i(),r(y,null,[h(v,{modelValue:e.cwd,"onUpdate:modelValue":n[0]||(n[0]=s=>e.cwd=s),options:e.npmPaths,style:{marginBottom:"10px"}},null,8,["modelValue","options"]),t.service?(i(),B(m,{key:t.service.label,header:"Bugs("+(((l=e.bugs)==null?void 0:l.length)||0)+")",class:"bug-root",style:P({maxHeight:t.isInMultiMode?"400px":"inherit"}),actions:[{label:"Launch",icon:"fas fa-play",click:()=>e.launch(),hidden:e.loading}]},{default:I(()=>[e.loading?(i(),r("div",z,[h(a,{size:40}),n[1]||(n[1]=F(" Analyse en cours "))])):(i(),r("div",D,[(i(!0),r(y,null,M(e.bugs,s=>(i(),r("div",{class:O(["bug",s.category]),key:s},[C("div",{class:"path",onClick:_=>e.openInVsCode(s)},u(s.fileName)+"("+u(s.line)+","+u(s.column)+")",9,L),C("div",U,u(s.messageText),1)],2))),128))]))]),_:1},8,["header","style","actions"])):w("",!0)],64)}const Y=V(j,[["render",q],["__scopeId","data-v-6048e2b3"]]);export{Y as default};
1
+ import{a as k,n as g}from"./router-DK7DUOjn.js";import{_ as x}from"./Section-BX-e-3c4.js";import{S as N}from"./Spinner-CXzAhlRM.js";import{s as S}from"./index-BRvRdm2d.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{l as f,a as r,o as i,e as h,s as B,g as w,f as I,d as F,F as y,q as M,n as O,b as C,t as u,u as P,r as p,j as T,w as b}from"./index-DazOL6mm.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./Editor-85UXMxbX.js";import"./index-3ZvrYKa3.js";import"./index-D_XM890H.js";const j={components:{sectionCmp:x,spinner:N,Select:S},props:{service:{default:null,required:!0,type:k},isInMultiMode:{type:Boolean}},setup(o){const n=p([]),t=p(!1),e=p([]),c=p(),d=async()=>{o.service&&(e.value=await o.service.getNpmPaths(),c.value||(c.value=e.value[0]))};return T(d),b(()=>o.service,d),{reload:d,launch:async()=>{n.value=[],t.value=!0,n.value=await o.service.getBugs(c.value).catch(a=>{var m,l,s,_;return((l=(m=a==null?void 0:a.response)==null?void 0:m.data)==null?void 0:l.code)==="TSC_NOT_FOUND"&&g.next("error",'Please "npm i -g typescript"'),((_=(s=a==null?void 0:a.response)==null?void 0:s.data)==null?void 0:_.code)==="JSCONFIG_NOT_FOUND"&&g.next("error","Please create a jsconfig.json in project"),[]}).finally(()=>{t.value=!1})},npmPaths:e,cwd:c,loading:t,bugs:n,openInVsCode(a){o.service.openLinkInVsCode(a.path)}}}},z={key:0,class:"loading"},D={key:1,class:"bugs"},L=["onClick"],U={class:"message"};function q(o,n,t,e,c,d){var l;const v=f("Select"),a=f("spinner"),m=f("section-cmp");return i(),r(y,null,[h(v,{modelValue:e.cwd,"onUpdate:modelValue":n[0]||(n[0]=s=>e.cwd=s),options:e.npmPaths,style:{marginBottom:"10px"}},null,8,["modelValue","options"]),t.service?(i(),B(m,{key:t.service.label,header:"Bugs("+(((l=e.bugs)==null?void 0:l.length)||0)+")",class:"bug-root",style:P({maxHeight:t.isInMultiMode?"400px":"inherit"}),actions:[{label:"Launch",icon:"fas fa-play",click:()=>e.launch(),hidden:e.loading}]},{default:I(()=>[e.loading?(i(),r("div",z,[h(a,{size:40}),n[1]||(n[1]=F(" Analyse en cours "))])):(i(),r("div",D,[(i(!0),r(y,null,M(e.bugs,s=>(i(),r("div",{class:O(["bug",s.category]),key:s},[C("div",{class:"path",onClick:_=>e.openInVsCode(s)},u(s.fileName)+"("+u(s.line)+","+u(s.column)+")",9,L),C("div",U,u(s.messageText),1)],2))),128))]))]),_:1},8,["header","style","actions"])):w("",!0)],64)}const Y=V(j,[["render",q],["__scopeId","data-v-6048e2b3"]]);export{Y as default};