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.cb8d4118.js";import{d as I}from"./vuedraggable.umd.a5629b35.js";import{_ as S}from"./SaveButton.vue_vue_type_script_setup_true_lang.e7f609c5.js";import{A as C}from"./Item.cfcde9b0.js";import{A as L}from"./index.03fdc454.js";import{A as w}from"./Title.0c6e5569.js";import{A as g}from"./index.20961092.js";import{A as b}from"./index.36e8f249.js";import{A as E,F}from"./Form.ecb5a9ca.js";import{W as U}from"./workspaces.7c770739.js";import{a as $}from"./asyncComputed.602f821b.js";import"./envVars.0aa492ca.js";import{L as B}from"./CircularLoading.0e27e652.js";import{S as N}from"./SidebarPreview.a1c11d17.js";import"./UnsavedChangesHandler.185ef1be.js";import"./ExclamationCircleOutlined.2f0efb61.js";import"./Modal.6ccabc4f.js";import"./Text.9ccde808.js";import"./Link.4ac04f66.js";import"./hasIn.9378fb46.js";import"./runnerData.c466048a.js";import"./url.f415825b.js";import"./record.3c2cc598.js";import"./pubsub.6650fe4e.js";import"./PlayerNavbar.19a48ee3.js";import"./PhKanban.vue.74e2223b.js";import"./PhSignOut.vue.c3e3ed91.js";import"./index.b090e533.js";import"./Paragraph.bf76481e.js";import"./index.ec60d2a0.js";import"./WidgetsFrame.02d82153.js";import"./HomeContent.bfd39754.js";import"./PhArrowSquareOut.vue.0c60db01.js";import"./index.c83656b2.js";import"./Card.028b3323.js";import"./index.2e27f524.js";import"./TabPane.50eb1b71.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]="9a94042e-b1bc-4b7b-a18e-752cfef42573",r._sentryDebugIdIdentifier="sentry-dbid-9a94042e-b1bc-4b7b-a18e-752cfef42573")}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.c1e66336.js.map
