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,cD as A,e as r,eD as _,bz as D}from"./outputWidgets.1c4947c7.js";import{d as I}from"./vuedraggable.umd.87b5786b.js";import{_ as S}from"./SaveButton.vue_vue_type_script_setup_true_lang.193e221b.js";import{A as C}from"./Item.7f5dd51d.js";import{A as E}from"./index.ad1f68c6.js";import{A as w}from"./Title.6f4ab7f6.js";import{A as g}from"./index.a9af7b0b.js";import{A as b}from"./index.8bbe8aff.js";import{A as F,F as L}from"./Form.cba5cdce.js";import{W as U}from"./workspaces.bc120589.js";import{a as $}from"./asyncComputed.ab9c45d0.js";import"./envVars.0b2f36d2.js";import{L as B}from"./CircularLoading.a4b53b02.js";import{S as M}from"./SidebarPreview.05c5eb36.js";import"./ant-design.5014c7e6.js";import"./index.2f87ba27.js";import"./Modal.5c7e6d3c.js";import"./Text.4ed32514.js";import"./Link.1d840e4c.js";import"./hasIn.58acd238.js";import"./runnerData.79bc4400.js";import"./url.ca3e5e32.js";import"./record.438e3693.js";import"./pubsub.87f1efb9.js";import"./PlayerNavbar.d1445729.js";import"./PhKanban.vue.387ce6fc.js";import"./index.4e91d000.js";import"./Paragraph.110c4a21.js";import"./index.1f8fecc0.js";import"./WidgetsFrame.9c7b2e10.js";import"./HomeContent.a28b2ed0.js";import"./PhArrowSquareOut.vue.ffd5aa73.js";import"./index.a9ee542a.js";import"./Card.10f7bd77.js";import"./index.68ab62e0.js";import"./TabPane.333d1c75.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[a]="2ab79f71-d5a1-4fe8-a69a-86eae5eb14a6",s._sentryDebugIdIdentifier="sentry-dbid-2ab79f71-d5a1-4fe8-a69a-86eae5eb14a6")}catch{}})();const N=r("span",null,"Route",-1),T=r("span",null,"Title",-1),j=r("span",null,"Visible",-1),q={style:{flex:"1 0"}},z={style:{flex:"1 0"}},R=y({__name:"SidebarEditor",props:{modelValue:{},workspace:{}},emits:["update:modelValue"],setup(s,{emit:a}){const p=s,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(()=>[r("span",q,"/"+_(l.path),1),r("span",z,_(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}))}}),W={style:{width:"50%"}},P={style:{width:"50%"}},Ie=y({__name:"SidebarEditor",setup(s){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(()=>[r("div",W,[t(R,{modelValue:e(a).sidebar,"onUpdate:modelValue":n[0]||(n[0]=d=>e(a).sidebar=d),workspace:e(a)},null,8,["modelValue","workspace"])]),r("div",P,[t(M,{workspace:e(a),"widgets-visible":!1},null,8,["workspace"])])]),_:1})]),_:1}))}});export{Ie as default};
//# sourceMappingURL=SidebarEditor.996a1c44.js.map
