import{d as y,r as v,I as x,o as A,eL as u,b as c,c as f,w as o,f as t,u as e,aq as h,cA as V,e as s,eD as _,by as D}from"./outputWidgets.67d01534.js";import{d as I}from"./vuedraggable.umd.5b8ffc85.js";import{_ as S}from"./SaveButton.vue_vue_type_script_setup_true_lang.e12cebc6.js";import{A as C}from"./Item.f9828249.js";import{A as L}from"./index.b0ef03c9.js";import{A as w}from"./Title.3431c309.js";import{A as g}from"./index.3dca3a8f.js";import{A as b}from"./index.527f7466.js";import{A as E,F}from"./Form.18143f38.js";import{W as U}from"./workspaces.e9b90016.js";import{a as $}from"./asyncComputed.9c2e7c90.js";import"./envVars.5aa8e6b1.js";import{L as B}from"./CircularLoading.730f9e72.js";import{S as N}from"./SidebarPreview.941137ee.js";import"./UnsavedChangesHandler.8505e2c4.js";import"./ExclamationCircleOutlined.af61b8f4.js";import"./Modal.e44b2640.js";import"./Text.fce07a64.js";import"./Link.1ec60047.js";import"./hasIn.18867aca.js";import"./runnerData.0c424852.js";import"./url.df413b89.js";import"./record.97ce606c.js";import"./pubsub.ce0b10ac.js";import"./PlayerNavbar.39918cc6.js";import"./PhKanban.vue.01a8c7a1.js";import"./PhSignOut.vue.09fa917c.js";import"./index.a9d2fb7a.js";import"./Paragraph.5d6efe5b.js";import"./index.cf78c4e6.js";import"./WidgetsFrame.da1bb74c.js";import"./HomeContent.b161c23f.js";import"./PhArrowSquareOut.vue.e9645c16.js";import"./index.a0d94146.js";import"./Card.e0b50de4.js";import"./index.e94f56d7.js";import"./TabPane.3015bf00.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]="37109c5f-b98d-48df-b7e5-f63501e28940",r._sentryDebugIdIdentifier="sentry-dbid-37109c5f-b98d-48df-b7e5-f63501e28940")}catch{}})();const T=s("span",null,"Route",-1),j=s("span",null,"Title",-1),q=s("span",null,"Visible",-1),M={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))}),A(()=>{i.value=u.exports.cloneDeep(p.modelValue)}),(d,m)=>(c(),f(e(E),{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(L),{bordered:""},{header:o(()=>[t(e(V),{style:{width:"100%","justify-content":"space-between"}},{default:o(()=>[T,t(e(b),{type:"vertical"}),j,t(e(b),{type:"vertical"}),q]),_: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",M,"/"+_(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(F),{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(N,{workspace:e(a),"widgets-visible":!1},null,8,["workspace"])])]),_:1})]),_:1}))}});export{Se as default};
//# sourceMappingURL=SidebarEditor.ab1731bd.js.map
