import{d as y,r as v,I as x,o as V,eM as u,b as c,c as f,w as o,f as t,u as e,aq as h,cC as A,e as s,eD as _,by as D}from"./outputWidgets.3681a2a5.js";import{d as I}from"./vuedraggable.umd.c42bb9ca.js";import{_ as S}from"./SaveButton.vue_vue_type_script_setup_true_lang.32eba51a.js";import{A as C}from"./Item.a2995b75.js";import{A as E}from"./index.83a3206f.js";import{A as w}from"./Title.142e78f1.js";import{A as g}from"./index.4f6b4519.js";import{A as b}from"./index.e9de4cca.js";import{A as F,F as L}from"./Form.c15ea82d.js";import{W as U}from"./workspaces.558330e2.js";import{a as $}from"./asyncComputed.317e87c5.js";import"./envVars.8abde7e8.js";import{L as B}from"./CircularLoading.7ff8c198.js";import{S as M}from"./SidebarPreview.62911fdb.js";import"./ant-design.2fd7d10a.js";import"./index.567558aa.js";import"./Modal.7229d3ef.js";import"./Text.1bf2a6e4.js";import"./Link.5ffe898a.js";import"./hasIn.127ddf2a.js";import"./runnerData.f97328a2.js";import"./url.ec571b6b.js";import"./record.220fa006.js";import"./pubsub.916b1e4d.js";import"./PlayerNavbar.eeb66ae5.js";import"./PhKanban.vue.792b9c22.js";import"./PhSignOut.vue.3019c4e7.js";import"./index.28b53c50.js";import"./Paragraph.326f3875.js";import"./index.b62ed045.js";import"./WidgetsFrame.eeed42f0.js";import"./HomeContent.c33916dc.js";import"./PhArrowSquareOut.vue.5596feda.js";import"./index.a1980417.js";import"./Card.f6d00432.js";import"./index.e0dbbf8d.js";import"./TabPane.ad3a7f71.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[a]="184d9ccf-5115-423b-855d-8f5a25aa6683",r._sentryDebugIdIdentifier="sentry-dbid-184d9ccf-5115-423b-855d-8f5a25aa6683")}catch{}})();const N=s("span",null,"Route",-1),T=s("span",null,"Title",-1),j=s("span",null,"Visible",-1),q={style:{flex:"1 0"}},R={style:{flex:"1 0"}},W=y({__name:"SidebarEditor",props:{modelValue:{},workspace:{}},emits:["update:modelValue"],setup(r,{emit:a}){const p=r,i=v([]),n=()=>a("update:modelValue",i.value);return x(()=>p.modelValue,(d,m)=>{u.exports.isEqual(d,m)||(i.value=u.exports.cloneDeep(d))}),V(()=>{i.value=u.exports.cloneDeep(p.modelValue)}),(d,m)=>(c(),f(e(F),{help:"Change your sidebar items position and visibility by dragging them up and down"},{default:o(()=>[t(e(g),{justify:"space-between",style:{margin:"0 0 12px 0"}},{default:o(()=>[t(e(w),{level:4,style:{margin:"0"}},{default:o(()=>[h("Sidebar items")]),_:1}),t(S,{model:d.workspace},null,8,["model"])]),_:1}),t(e(E),{bordered:""},{header:o(()=>[t(e(A),{style:{width:"100%","justify-content":"space-between"}},{default:o(()=>[N,t(e(b),{type:"vertical"}),T,t(e(b),{type:"vertical"}),j]),_:1})]),default:o(()=>[t(e(I),{modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=l=>i.value=l),style:{width:"100%"},onChange:n},{item:o(({element:l})=>[t(e(C),{style:{cursor:"ns-resize"}},{default:o(()=>[s("span",q,"/"+_(l.path),1),s("span",R,_(l.name),1),t(e(D),{checked:l.visible,"onUpdate:checked":k=>l.visible=k,type:"checkbox",onChange:n},null,8,["checked","onUpdate:checked"])]),_:2},1024)]),_:1},8,["modelValue"])]),_:1})]),_:1}))}}),z={style:{width:"50%"}},P={style:{width:"50%"}},Se=y({__name:"SidebarEditor",setup(r){const{result:a,loading:p}=$(()=>U.get());return(i,n)=>e(p)||!e(a)?(c(),f(B,{key:0})):(c(),f(e(L),{key:1,style:{width:"100%",padding:"40px 120px"}},{default:o(()=>[t(e(w),null,{default:o(()=>[h("Sidebar")]),_:1}),t(e(g),{gap:"40"},{default:o(()=>[s("div",z,[t(W,{modelValue:e(a).sidebar,"onUpdate:modelValue":n[0]||(n[0]=d=>e(a).sidebar=d),workspace:e(a)},null,8,["modelValue","workspace"])]),s("div",P,[t(M,{workspace:e(a),"widgets-visible":!1},null,8,["workspace"])])]),_:1})]),_:1}))}});export{Se as default};
//# sourceMappingURL=SidebarEditor.33a5a3f2.js.map
