1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[571],{248:(e,a,l)=>{l.d(a,{A:()=>i});var t=l(54705),o=l(63277),n=l(90613),s={key:0,class:"text-c-2 text-sm leading-normal text-pretty"},i=(0,o.pM)({__name:"DeleteSidebarListElement",props:{variableName:{},warningMessage:{}},emits:["close","delete"],setup(e,{emit:a}){let l=(0,o.EW)(()=>e.variableName.length>18?e.variableName.slice(0,18)+"â¦":e.variableName);return(i,r)=>((0,o.uX)(),(0,o.Wv)(t.A,{danger:"",label:`Delete ${l.value}`,onCancel:r[0]||(r[0]=e=>a("close")),onSubmit:r[1]||(r[1]=e=>a("delete"))},{default:(0,o.k6)(()=>[e.warningMessage?((0,o.uX)(),(0,o.CE)("p",s,(0,n.v_)(e.warningMessage),1)):(0,o.Q3)("",!0)]),_:1},8,["label"]))}})},5070:(e,a,l)=>{l.d(a,{A:()=>k});var t=l(38104),o=l(35764),n=l(80193),s=l(35333),i=l(55071),r=l(63277),u=l(48301),d=l(90613),p=l(52619),c={key:0},v={class:"flex flex-1 flex-col gap-1.5"},m=["for"],b={class:"centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5"},k=(0,r.pM)({__name:"Form",props:{title:{},options:{},data:{},onUpdate:{type:Function}},setup(e){let{activeEnvVariables:a,activeEnvironment:l,activeWorkspace:k}=(0,t.JC)(),f=(0,r.Bi)();return(t,g)=>((0,r.uX)(),(0,r.Wv)(i.A,{class:"last:rounded-b-lg"},(0,r.eX)({default:(0,r.k6)(()=>[(0,r.Lk)("div",v,[Object.keys(e.data).length>0&&(0,u.R1)(k)?((0,r.uX)(),(0,r.Wv)(o.A,{key:0,columns:[""],class:"rounded-b-lg"},{default:(0,r.k6)(()=>[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(e.options,(t,o)=>((0,r.uX)(),(0,r.Wv)(s.A,{key:o,class:(0,d.C4)({"border-t":0===o})},{default:(0,r.k6)(()=>[(0,r.bF)(n.A,{class:"pr-9",lineWrapping:"",id:(0,u.R1)(f),envVariables:(0,u.R1)(a),environment:(0,u.R1)(l),modelValue:e.data[t.key]??"",placeholder:t.placeholder,workspace:(0,u.R1)(k),"onUpdate:modelValue":a=>e.onUpdate(t.key,a)},(0,r.eX)({default:(0,r.k6)(()=>[(0,r.Lk)("label",{for:(0,u.R1)(f)},(0,d.v_)(t.label),9,m)]),_:2},["description"===t.key?{name:"icon",fn:(0,r.k6)(()=>[(0,r.Lk)("div",b,[(0,r.bF)((0,u.R1)(p.kv),{icon:"Markdown",size:"lg"})])]),key:"0"}:void 0]),1032,["id","envVariables","environment","modelValue","placeholder","workspace","onUpdate:modelValue"])]),_:2},1032,["class"]))),128))]),_:1})):(0,r.Q3)("",!0)])]),_:2},[e.title||t.$slots.title?{name:"title",fn:(0,r.k6)(()=>[e.title?((0,r.uX)(),(0,r.CE)("span",c,(0,d.v_)(e.title),1)):(0,r.RG)(t.$slots,"title",{key:1})]),key:"0"}:void 0]),1024))}})},20743:(e,a,l)=>{l.d(a,{A:()=>i});var t=l(91925),o=l(63277),n=l(48301),s=l(52619),i=(0,o.pM)({__name:"SidebarButton",props:{click:{type:Function},hotkey:{}},setup(e){let{layout:a}=(0,t.g)(),l=()=>{e.click()};return(t,i)=>((0,o.uX)(),(0,o.Wv)((0,n.R1)(s.RO),{class:"bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5",variant:"outlined",onClick:l},{default:(0,o.k6)(()=>[(0,o.RG)(t.$slots,"title"),e.hotkey&&"desktop"===(0,n.R1)(a)?((0,o.uX)(),(0,o.Wv)((0,n.R1)(s.RH),{key:0,class:"text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:flex",hotkey:e.hotkey},null,8,["hotkey"])):(0,o.Q3)("",!0)]),_:3}))}})},30571:(e,a,l)=>{l.r(a),l.d(a,{default:()=>M});var t=l(6135),o=l(38104),n=l(65488),s=l(10168),i=l(95541),r=l(60504),u=l(55071),d=l(60227),p=l(20743),c=l(62091),v=l(96721),m=l(5070),b=l(63277),k=l(80187),f=(0,b.pM)({__name:"CookieForm",setup(e){let{activeCookieId:a}=(0,o.JC)(),{cookies:l,cookieMutators:t}=(0,n.hA)(),s=[{label:"Name",key:"name",placeholder:"session_id"},{label:"Value",key:"value",placeholder:"my-cookie-session-id"},{label:"Domain",key:"domain",placeholder:"example.com"}],i=(0,b.EW)(()=>l[a.value]||k.c.parse({name:"",value:"",domain:"",path:""})),r=(e,l)=>{t.edit(a.value,e,l)};return(e,a)=>((0,b.uX)(),(0,b.Wv)(m.A,{data:i.value,onUpdate:r,options:s},null,8,["data"]))}}),g=l(83443),y=l(80552),h=l(8332),x=l(48301),C=l(52619),_=l(90125),R={class:"flex h-8 items-start gap-2 text-sm"},w={class:"flex h-8 items-start gap-2 text-sm"},A={class:"flex h-8 items-start gap-2 text-sm"},D=(0,b.pM)({__name:"CookieModal",props:{state:{}},emits:["cancel","submit"],setup(e,{emit:a}){let l=(0,x.KR)({name:"",value:"",domain:""}),{toast:t}=(0,_.Yf)(),o=()=>{l.value.name&&l.value.value?(a("submit",l.value),e.state.hide()):t("Please fill in all fields before adding a cookie.","error")};return(0,b.wB)(()=>e.state.open,e=>{e&&(l.value={name:"",value:"",domain:""})}),(t,n)=>((0,b.uX)(),(0,b.Wv)((0,x.R1)(C.uT),{size:"xs",state:e.state,title:"Add Cookie"},{default:(0,b.k6)(()=>[(0,b.bF)(y.A,{disabled:!l.value.name||!l.value.value,onCancel:n[3]||(n[3]=e=>a("cancel")),onSubmit:o},{submit:(0,b.k6)(()=>[...n[7]||(n[7]=[(0,b.eW)("Add Cookie",-1)])]),default:(0,b.k6)(()=>[(0,b.Lk)("div",R,[n[4]||(n[4]=(0,b.eW)(" Name: ",-1)),(0,b.bF)(h.A,{modelValue:l.value.name,"onUpdate:modelValue":n[0]||(n[0]=e=>l.value.name=e),autofocus:"",class:"!p-0",placeholder:"session_id"},null,8,["modelValue"])]),(0,b.Lk)("div",w,[n[5]||(n[5]=(0,b.eW)(" Value: ",-1)),(0,b.bF)(h.A,{modelValue:l.value.value,"onUpdate:modelValue":n[1]||(n[1]=e=>l.value.value=e),autofocus:"",class:"!p-0",placeholder:"my-cookie-session-id"},null,8,["modelValue"])]),(0,b.Lk)("div",A,[n[6]||(n[6]=(0,b.eW)(" Domain: ",-1)),(0,b.bF)(h.A,{modelValue:l.value.domain,"onUpdate:modelValue":n[2]||(n[2]=e=>l.value.domain=e),autofocus:"",class:"!p-0",placeholder:"example.com"},null,8,["modelValue"])])]),_:1},8,["disabled"])]),_:1},8,["state"]))}}),E=(0,g.A)(D,[["__scopeId","data-v-694018d6"]]),V=l(88279),X=l(89952),W={class:"flex-1"},F={class:"relative mb-[.5px] last:mb-0"}
1,M=(0,b.pM)({__name:"Cookies",setup(e){let{cookies:a,cookieMutators:l,events:m,workspaceMutators:g}=(0,n.hA)(),{activeWorkspace:y,activeCookieId:h}=(0,o.JC)(),_=(0,X.rd)(),R=(0,X.lq)(),w=(0,C.hS)(),A=e=>{let a=k.c.parse({name:e.name,value:e.value,domain:e.domain,path:"/"});l.add(a),g.edit(y.value?.uid,"cookies",[...y.value?.cookies??[],a.uid]),_.push({name:"cookies",params:{cookies:a.uid}})},D=()=>{w.show()},M=e=>{e?.createNew&&"cookies"===R.name&&D()};(0,b.sV)(()=>m.hotKeys.on(M)),(0,b.xo)(()=>m.hotKeys.off(M));let $=(0,b.EW)(()=>a[h.value]),L=(0,b.EW)(()=>Object.keys(a).length>0&&$.value);return(0,b.wB)(()=>R.query.openCookieModal,e=>{"true"===e&&D()},{immediate:!0}),(e,o)=>((0,b.uX)(),(0,b.Wv)(i.A,null,{default:(0,b.k6)(()=>[(0,b.bF)((0,x.R1)(s.A),{title:"Cookies"},{content:(0,b.k6)(()=>[(0,b.Lk)("div",W,[(0,b.bF)(c.A,null,{default:(0,b.k6)(()=>[((0,b.uX)(!0),(0,b.CE)(b.FK,null,(0,b.pI)(Object.values((0,x.R1)(a)),e=>((0,b.uX)(),(0,b.CE)("li",{key:e.uid,class:"gap-1/2 flex flex-col"},[(0,b.Lk)("div",F,[((0,b.uX)(),(0,b.Wv)(v.A,{key:e.uid,class:"text-xs",isDeletable:"",to:{name:"cookies",params:{[(0,x.R1)(t.TU).Cookies]:e.uid}},type:"cookies",variable:{name:e.name,uid:e.uid},warningMessage:"Are you sure you want to delete this cookie?",onClick:(0,V.D$)(a=>((e,a)=>{let l={name:"cookies",params:{workspace:y.value?.uid??"default",cookies:a}};if(e.metaKey){let e=_.resolve(l).href;window.open(e,"_blank");return}_.push(l)})(a,e.uid),["prevent"]),onDelete:o=>(e=>{l.delete(e),g.edit(y.value?.uid,"cookies",[...(y.value?.cookies??[]).filter(a=>a!==e)]);let o=Object.values(a).filter(a=>a.uid!==e);if(o.length>0){let e=o[o.length-1];e&&_.push(e.uid)}else _.push({name:"cookies",params:{[t.TU.Cookies]:"default"}})})(e.uid)},null,8,["to","variable","onClick","onDelete"]))])]))),128))]),_:1})])]),button:(0,b.k6)(()=>[(0,b.bF)(p.A,{click:D,hotkey:"N"},{title:(0,b.k6)(()=>[...o[1]||(o[1]=[(0,b.eW)(" Add Cookie ",-1)])]),_:1})]),_:1}),(0,b.bF)(r.A,{class:"flex-1"},{default:(0,b.k6)(()=>[L.value?((0,b.uX)(),(0,b.Wv)(u.A,{key:0,class:"*:border-b-0"},{title:(0,b.k6)(()=>[...o[2]||(o[2]=[(0,b.eW)("Edit Cookie",-1)])]),default:(0,b.k6)(()=>[(0,b.bF)(f)]),_:1})):((0,b.uX)(),(0,b.Wv)(d.A,{key:1}))]),_:1}),(0,b.bF)(E,{state:(0,x.R1)(w),onCancel:o[0]||(o[0]=e=>(0,x.R1)(w).hide()),onSubmit:A},null,8,["state"])]),_:1}))}})},40948:(e,a,l)=>{l.d(a,{s:()=>d});var t=l(48301),o=l(63277),n=l(90613),s=l(88279),i=(0,t.KR)(null),r=(0,t.KR)(null),u=["draggable"],d=((e,a)=>{let l=e.__vccOpts||e;for(let[e,t]of a)l[e]=t;return l})((0,o.pM)({__name:"Draggable",props:{ceiling:{default:.8},floor:{default:.2},isDraggable:{type:Boolean,default:!0},isDroppable:{type:[Boolean,Function],default:!0},parentIds:{},id:{}},emits:["onDragEnd","onDragStart"],setup(e,{expose:a,emit:l}){var d;let p,c=(0,o.EW)(()=>e.parentIds.at(-1)??null),v=a=>{a.dataTransfer&&a.target instanceof HTMLElement&&e.isDraggable&&(a.target.classList.add("dragging"),a.dataTransfer.dropEffect="move",a.dataTransfer.effectAllowed="move",i.value={id:e.id,parentId:c.value},l("onDragStart",{id:e.id,parentId:c.value}))},m=(d=a=>{let l;if(!i.value||i.value.id===e.id||e.parentIds.includes(i.value?.id??""))return;let t=r.value?.offset,o=a.target.offsetHeight,n=e.floor*o,s=e.ceiling*o,u=3;a.offsetY<=0&&t&&3!==t?u=t:a.offsetY<=n?u=0:a.offsetY>=s?u=1:a.offsetY>n&&a.offsetY<s&&(u=2),l=u,("function"==typeof e.isDroppable?e.isDroppable(i.value,{id:e.id,parentId:c.value,offset:l}):e.isDroppable)&&(r.value={id:e.id,parentId:c.value,offset:u})},p=!1,(...e)=>{p||(d(...e),p=!0,setTimeout(()=>p=!1,25))}),b=["above","below","asChild"],k=(0,o.EW)(()=>{let a="sidebar-indent-nested";return e.id===r.value?.id&&(a+=` dragover-${b[r.value.offset]}`),a}),f=()=>{if(!r.value||!i.value)return;let e={...i.value},a={...r.value};i.value=null,r.value=null,document.querySelectorAll("div.dragging").forEach(e=>e.classList.remove("dragging")),e.id!==a.id&&l("onDragEnd",e,a)};return a({draggingItem:i,hoveredItem:r}),(a,l)=>((0,o.uX)(),(0,o.CE)("div",{class:(0,n.C4)(k.value),draggable:e.isDraggable,onDragend:f,onDragover:l[0]||(l[0]=(0,s.D$)((...e)=>(0,t.R1)(m)&&(0,t.R1)(m)(...e),["prevent","stop"])),onDragstart:(0,s.D$)(v,["stop"])},[(0,o.RG)(a.$slots,"default",{},void 0,!0)],42,u))}}),[["__scopeId","data-v-a89d6a6e"]])},54705:(e,a,l)=>{l.d(a,{A:()=>u});var t=l(63277),o=l(88279),n=l(48301),s=l(90613),i=l(52619),r={class:"flex justify-between gap-10"},u=(0,t.pM)({__name:"SidebarListElementForm",props:{danger:{type:Boolean},label:{}},emits:["cancel","submit"],setup:(e,{emit:a})=>(l,u)=>((0,t.uX)(),(0,t.CE)("form",{class:"flex flex-col gap-4 text-base",onSubmit:u[1]||(u[1]=(0,o.D$)(e=>a("submit"),["prevent"]))},[(0,t.RG)(l.$slots,"default"),(0,t.Lk)("div",r,[(0,t.bF)((0,n.R1)(i.RO),{size:"sm",type:"button",variant:"outlined",onClick:u[0]||(u[0]=e=>a("cancel"))},{default:(0,t.k6)(()=>[...u[2]||(u[2]=[(0,t.eW)(" Cancel ",-1)])]),_:1}),(0,t.bF)((0,n.R1)(i.RO),{"data-testid":"sidebar-list-element-form-submit-button",size:"sm",type:"submit",variant:e.danger?"danger":"solid"},{default:(0,t.k6)(()=>[(0,t.eW)((0,s.v_)(e.label??"Save"),1)]),_:1},8,["variant"])])],32))})},60227:(e,a,l)=>{l.d(a,{A:()=>m});var t=l(83443),o=l(72231),n=" .:=+++++=================-\n .--#* :.\n .-:-** -.\n .:-::-+* =:\n .:-:::-=# ::\n .-:::----** ..\n .-:::::---=# ..\n :-::::::----** ..\n.:-::::::::----*= ..\n.-::::::::------+- ..\n..::::::::-------= ..\n .:::::----------++ ..\n .:::----------+**+*++*+*++*+++*++++++++++:.\n ------------+*+=-=======================.\n .----------+*+=========================:.\n :--------+*+=-========================.\n .=------+*+=-========================:.\n .=----+*+=-------=================+-.\n .----+*+=----------================.\n .:=-+*+=----------=-==============-\n .-+*+=----------------===========.\n .-+=------------------====-====:.",s=l(63277),i=l(48301),r=l(52619),u={class:"flex-center flex w-full scale-75"},d={class:"relative"},p={class:"relative -ml-12"},c={class:"relative -ml-12"},v=(0,s.pM)({__name:"EmptyState",setup:e=>(e,a)=>((0,s.uX)(),(0,s.CE)("div",u,[(0,s.Lk)("div",d,[(0,s.bF)((0,i.R1)(r.RH),{class:"keycap-hotkey right-14 border-transparent py-0 text-xl",hotkey:""}),(0,s.bF)(o.A,{art:(0,i.R1)(n),class:"text-c-3 !leading-[6px]"},null,8,["art"])]),(0,s.Lk)("div",p,[(0,s.bF)((0,i.R1)(r.RH),{class:"keycap-hotkey right-14 border-transparent py-0 text-xl",hotkey:"",modifier:["Shift"]}),(0,s.bF)(o.A,{art:(0,i.R1)(n),class:"keycap-n !leading-[6px]"},null,8,["art"])]),(0,s.Lk)("div",c,[a[0]||(a[0]=(0,s.Lk)("div",{class:"keycap-hotkey right-16 text-xl"},"P",-1)),(0,s.bF)(o.A,{art:(0,i.R1)(n),class:"keycap-n !leading-[6px]"},null,8,["art"])])]))}),m=(0,t.A)(v,[["__scopeId","data-v-b1211b87"]])},62091:(e,a,l)=>{l.d(a,{A:()=>s});var t=l(83443),o=l(63277),n={class:"gap-1/2 flex flex-col px-3 pb-[75px]"},s=(0,t.A)({},[["render",function(e,a){return(0,o.uX)(),(0,o.CE)("ul",n,[(0,o.RG)(e.$slots,"default")])}]])},80193:(e,a,l)=>{l.d(a,{A:()=>y});var t=l(83443),o=l(47118),n=l(63868),s=l(83183),i=l(63277),r=l(48301),u=l(90613),d=l(52619),p=l(79491),c=l(98291),v=l(24857),m=["for"],b={class:"relative flex min-w-0 flex-1"},k=["readOnly","type","value"],f={key:1,class:"centered-y text-orange absolute right-7 text-xs"},g=(0,i.pM)({inheritAttrs:!1,__name:"DataTableInput",props:{id:{},type:{},containerClass:{},required:{type:Boolean,default:!1},modelValue:{},canAddCustomEnumValue:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},enum:{},min:{},max:{},environment:{},envVariables:{},description:{},lineWrapping:{type:Boolean,default:!1}},emits:["update:modelValue","inputFocus","inputBlur","selectVariable"],setup(e,{emit:a}){let l=(0,r.KR)(!0),t=(0,r.KR)(!1),g=(0,r.KR)(null),y=()=>{t.value||a("inputBlur")},h=(0,i.EW)(()=>"password"===e.type?"text":e.type??"text"),x=()=>{e.enum?.length||e.readOnly||g.value?.focus()};return(t,C)=>((0,i.uX)(),(0,i.Wv)(s.A,{class:(0,u.C4)(["relative flex",e.containerClass])},{default:(0,i.k6)(()=>[t.$slots.default?((0,i.uX)(),(0,i.CE)("div",{key:0,class:"text-c-1 flex items-center pr-0 pl-3",for:e.id??"",onClick:x},[(0,i.RG)(t.$slots,"default",{},void 0,!0),C[6]||(C[6]=(0,i.eW)(": ",-1))],8,m)):(0,i.Q3)("",!0),(0,i.Lk)("div",b,[e.enum&&e.enum.length?((0,i.uX)(),(0,i.Wv)(o.A,{key:0,canAddCustomValue:e.canAddCustomEnumValue,modelValue:e.modelValue,value:e.enum,"onUpdate:modelValue":C[0]||(C[0]=e=>a("update:modelValue",e))},null,8,["canAddCustomValue","modelValue","value"])):((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[l.value&&"password"===e.type?((0,i.uX)(),(0,i.CE)("input",(0,i.v6)({key:0},e.id?{...t.$attrs,id:e.id}:t.$attrs,{autocomplete:"off",class:["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none px-2 py-1.25 -outline-offset-1",{"scalar-password-input":"password"===e.type}],"data-1p-ignore":"",readOnly:e.readOnly,spellcheck:"false",type:h.value,value:e.modelValue,onInput:C[1]||(C[1]=e=>a("update:modelValue",e.target.value??""))}),null,16,k)):((0,i.uX)(),(0,i.Wv)(n.A,(0,i.v6)({key:1},t.$attrs,{id:e.id,ref_key:"codeInput",ref:g,class:["text-c-1 disabled:text-c-2 peer w-full min-w-0 border-none -outline-offset-1",["password"===e.type&&e.description&&"pr-12",e.de
1scription&&"pr-8","password"===e.type&&"scalar-password-input"]],description:e.description,disableCloseBrackets:"",disableTabIndent:"",envVariables:e.envVariables,environment:e.environment,lineWrapping:!!e.lineWrapping,max:e.max,min:e.min,modelValue:e.modelValue??"",readOnly:e.readOnly,required:!!e.required,spellcheck:"false",type:h.value,onBlur:y,onFocus:C[2]||(C[2]=e=>a("inputFocus")),"onUpdate:modelValue":C[3]||(C[3]=e=>a("update:modelValue",e))}),null,16,["id","class","description","envVariables","environment","lineWrapping","max","min","modelValue","readOnly","required","type"]))],64))]),t.$slots.warning?((0,i.uX)(),(0,i.CE)("div",f,[(0,i.RG)(t.$slots,"warning",{},void 0,!0)])):(0,i.Q3)("",!0),(0,i.RG)(t.$slots,"icon",{},void 0,!0),e.modelValue?((0,i.uX)(),(0,i.Wv)((0,r.R1)(d.EX),{key:2,class:"-ml-.25 h-6 w-6 self-center p-1.25",icon:(0,r.R1)(p.A),label:"Clear Value",onClick:C[4]||(C[4]=e=>a("update:modelValue",""))},null,8,["icon"])):(0,i.Q3)("",!0),"password"===e.type?((0,i.uX)(),(0,i.Wv)((0,r.R1)(d.EX),{key:3,class:"-ml-.5 mr-1.25 h-6 w-6 self-center p-1.25",icon:l.value?(0,r.R1)(c.A):(0,r.R1)(v.A),label:l.value?"Show Password":"Hide Password",onClick:C[5]||(C[5]=e=>l.value=!l.value)},null,8,["icon","label"])):(0,i.Q3)("",!0)]),_:3},8,["class"]))}}),y=(0,t.A)(g,[["__scopeId","data-v-c1a50a6e"]])},96721:(e,a,l)=>{l.d(a,{A:()=>y});var t,o=l(83443),n=l(248),s=l(63277),i=l(48301),r=l(88279),u=l(52619),d=l(41365),p={class:"absolute right-1 flex opacity-0 group-hover:opacity-100"},c=((t=c||{}).Delete="Delete",t.None="None",t),v=(0,s.pM)({__name:"SidebarListElementActions",props:{variable:{},warningMessage:{},isCopyable:{type:Boolean},isDeletable:{type:Boolean},isRenameable:{type:Boolean}},emits:["delete","rename"],setup(e,{emit:a}){let l=(0,i.KR)({action:c.None,name:""}),t=(0,u.hS)(),{copyToClipboard:o}=(0,d.i)();function v(){t.hide(),l.value={action:c.None,name:""}}return(d,m)=>((0,s.uX)(),(0,s.CE)(s.FK,null,[(0,s.Lk)("div",p,[e.isCopyable?((0,s.uX)(),(0,s.CE)("button",{key:0,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:m[0]||(m[0]=a=>(0,i.R1)(o)(e.variable.name))},[(0,s.bF)((0,i.R1)(u.kv),{class:"h-3 w-3",icon:"Clipboard"})])):(0,s.Q3)("",!0),e.isRenameable?((0,s.uX)(),(0,s.CE)("button",{key:1,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:m[1]||(m[1]=l=>a("rename",e.variable.uid))},[(0,s.bF)((0,i.R1)(u.kv),{class:"h-3 w-3",icon:"Edit"})])):(0,s.Q3)("",!0),!e.variable.isDefault&&e.isDeletable?((0,s.uX)(),(0,s.CE)("button",{key:2,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",type:"button",onClick:m[2]||(m[2]=(0,r.D$)(a=>{l.value={action:c.Delete,name:e.variable.name},t.show()},["prevent"]))},[(0,s.bF)((0,i.R1)(u.kv),{class:"h-3.5 w-3.5",icon:"Close"})])):(0,s.Q3)("",!0)]),(0,s.bF)((0,i.R1)(u.uT),{size:"sm",state:(0,i.R1)(t),title:`${l.value.action} ${l.value.name}`},{default:(0,s.k6)(()=>[l.value.action===c.Delete?((0,s.uX)(),(0,s.Wv)(n.A,{key:0,variableName:l.value.name,warningMessage:e.warningMessage,onClose:v,onDelete:m[3]||(m[3]=l=>{a("delete",e.variable.uid),v()})},null,8,["variableName","warningMessage"])):(0,s.Q3)("",!0)]),_:1},8,["state","title"])],64))}}),m=l(90613),b=l(89952),k=l(40948),f={class:"empty-variable-name line-clamp-1 text-sm break-all group-hover:pr-5"},g=(0,s.pM)({__name:"SidebarListElement",props:{variable:{},warningMessage:{},to:{},isDeletable:{type:Boolean},isCopyable:{type:Boolean},isRenameable:{type:Boolean},isDraggable:{type:Boolean,default:!1},isDroppable:{type:[Boolean,Function],default:!1},collectionId:{}},emits:["delete","colorModal","rename","onDragEnd"],setup(e,{emit:a}){let l=(0,b.rd)(),t=e=>{a("delete",e)},o=e=>{a("rename",e)},n=(0,i.KR)(null),d=(0,s.EW)(()=>({ceiling:.5,floor:.5}));return(p,c)=>{let b=(0,s.g2)("router-link");return(0,s.uX)(),(0,s.CE)("li",null,[(0,s.bF)((0,i.R1)(k.s),{id:e.variable.uid,ref_key:"_draggableRef",ref:n,ceiling:d.value.ceiling,floor:d.value.floor,isDraggable:e.isDraggable,isDroppable:e.isDroppable,parentIds:e.collectionId?[e.collectionId]:[],onOnDragEnd:c[2]||(c[2]=(...e)=>p.$emit("onDragEnd",...e))},{default:(0,s.k6)(()=>[(0,s.bF)(b,{class:(0,m.C4)(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline",[e.variable.color?"pl-5":"pl-1.5"]]),exactActiveClass:"bg-b-2 !text-c-1",role:"button",to:e.to,onClick:c[1]||(c[1]=(0,r.D$)(a=>{a.metaKey?window.open(l.resolve(e.to).href,"_blank"):l.push(e.to)},["prevent"]))},{default:(0,s.k6)(()=>[e.variable.color?((0,s.uX)(),(0,s.CE)("button",{key:0,class:"hover:bg-b-3 rounded p-1.5",type:"button",onClick:c[0]||(c[0]=l=>
1{a("colorModal",e.variable.uid)})},[(0,s.Lk)("div",{class:"h-2.5 w-2.5 rounded-xl",style:(0,m.Tr)({backgroundColor:e.variable.color})},null,4)])):(0,s.Q3)("",!0),e.variable.icon?((0,s.uX)(),(0,s.Wv)((0,i.R1)(u.kv),{key:1,class:"text-sidebar-c-2 size-3.5 stroke-[2.25]",icon:e.variable.icon},null,8,["icon"])):(0,s.Q3)("",!0),(0,s.Lk)("span",f,(0,m.v_)(e.variable.name),1),(0,s.bF)(v,{isCopyable:!!e.isCopyable,isDeletable:!!e.isDeletable,isRenameable:!!e.isRenameable,variable:{...e.variable,isDefault:e.variable.isDefault??!1},warningMessage:e.warningMessage,onDelete:t,onRename:o},null,8,["isCopyable","isDeletable","isRenameable","variable","warningMessage"])]),_:1},8,["class","to"])]),_:1},8,["id","ceiling","floor","isDraggable","isDroppable","parentIds"])])}}}),y=(0,o.A)(g,[["__scopeId","data-v-298ba76d"]])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.