import{d as y,r as g,J as k,o as v,eM as c,b as u,c as f,w as a,f as t,u as e,ar as x,cE as V,e as r,eD as _,bA as A}from"./outputWidgets.809f1c57.js";import{d as D}from"./vuedraggable.umd.b760043d.js";import{_ as I}from"./SaveButton.vue_vue_type_script_setup_true_lang.11586e5b.js";import{a as S,A as C}from"./index.8896cd5a.js";import{A as E}from"./Title.f3656269.js";import{A as h}from"./index.ee508a43.js";import{A as b}from"./index.172b9854.js";import{A as F,F as L}from"./Form.023148df.js";import{W as T}from"./workspaces.e780abe0.js";import{a as U}from"./asyncComputed.466c4877.js";import"./envVars.af90a51f.js";import{L as $}from"./CircularLoading.0cd781d9.js";import{S as B}from"./SidebarPreview.71a69ff4.js";import"./ant-design.6830cf3a.js";import"./index.090bf6ae.js";import"./Modal.ae5cc76f.js";import"./Typography.f29a9c7e.js";import"./Link.ba2a3e03.js";import"./Base.4c033746.js";import"./hasIn.e1b15717.js";import"./runnerData.db905523.js";import"./url.638cfb3e.js";import"./record.41a2948e.js";import"./pubsub.67132179.js";import"./PlayerNavbar.276c9b67.js";import"./index.7be49aa4.js";import"./icons.8975fdbd.js";import"./repository.67ba2e42.js";import"./ArrowRightOutlined.08fa31dd.js";import"./WidgetsFrame.a78a7e64.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[o]="0f7510b9-efcf-485d-92e3-c5074b91bf90",s._sentryDebugIdIdentifier="sentry-dbid-0f7510b9-efcf-485d-92e3-c5074b91bf90")}catch{}})();const M=r("span",null,"Route",-1),N=r("span",null,"Title",-1),j=r("span",null,"Visible",-1),R={style:{flex:"1 0"}},W={style:{flex:"1 0"}},q=y({__name:"SidebarEditor",props:{modelValue:{},workspace:{}},emits:["update:modelValue"],setup(s,{emit:o}){const n=s,i=g([]),p=()=>o("update:modelValue",i.value);return k(()=>n.modelValue,(d,m)=>{c.exports.isEqual(d,m)||(i.value=c.exports.cloneDeep(d))}),v(()=>{i.value=c.exports.cloneDeep(n.modelValue)}),(d,m)=>(u(),f(e(F),{help:"Change your sidebar items position and visibility by dragging them up and down"},{default:a(()=>[t(e(h),{justify:"space-between",style:{margin:"0 0 12px 0"}},{default:a(()=>[t(e(E),{level:4,style:{margin:"0"}},{default:a(()=>[x("Sidebar items")]),_:1}),t(I,{model:d.workspace},null,8,["model"])]),_:1}),t(e(C),{bordered:""},{header:a(()=>[t(e(V),{style:{width:"100%","justify-content":"space-between"}},{default:a(()=>[M,t(e(b),{type:"vertical"}),N,t(e(b),{type:"vertical"}),j]),_:1})]),default:a(()=>[t(e(D),{modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=l=>i.value=l),style:{width:"100%"},onChange:p},{item:a(({element:l})=>[t(e(S),{style:{cursor:"ns-resize"}},{default:a(()=>[r("span",R,"/"+_(l.path),1),r("span",W,_(l.name),1),t(e(A),{checked:l.visible,"onUpdate:checked":w=>l.visible=w,type:"checkbox",onChange:p},null,8,["checked","onUpdate:checked"])]),_:2},1024)]),_:1},8,["modelValue"])]),_:1})]),_:1}))}}),z={style:{width:"50%"}},J={style:{width:"50%"}},ke=y({__name:"SidebarEditor",setup(s){const{result:o,loading:n}=U(()=>T.get());return(i,p)=>e(n)||!e(o)?(u(),f($,{key:0})):(u(),f(e(L),{key:1,style:{width:"100%",padding:"40px 120px"}},{default:a(()=>[t(e(h),{gap:"40"},{default:a(()=>[r("div",z,[t(q,{modelValue:e(o).sidebar,"onUpdate:modelValue":p[0]||(p[0]=d=>e(o).sidebar=d),workspace:e(o)},null,8,["modelValue","workspace"])]),r("div",J,[t(B,{workspace:e(o),"widgets-visible":!1},null,8,["workspace"])])]),_:1})]),_:1}))}});export{ke as default};
//# sourceMappingURL=SidebarEditor.ffebee1f.js.map
