PageSourceSearch

https://doc-ai-lemon.vercel.app/_next/static/chunks/4116.cb5919a87a5798c8.js

js doc-ai-lemon.vercel.app collected 2026-10-03 06:45:38 UTC 5,228 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4116],{4116:(e,l,t)=>{t.r(l),t.d(l,{default:()=>L});var a=t(16082),n=t(30306),o=t(26659),s=t(24179),i=t(49866),c=t(79396),r=t(95017),d=t(31935),u=t(15361);let p={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},m={class:"flex flex-col gap-2"},v={class:"bg-b-2 rounded-lg border text-sm"},b={class:"bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3"},f={class:"text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap"},k={class:"flex items-center"},h=["href"],g={class:"flex flex-col gap-4"},x={class:"flex items-center justify-between rounded-lg border p-3 text-sm"},w=(0,a.pM)({__name:"CollectionSettings",setup(e){let{activeCollection:l,activeWorkspace:t,activeWorkspaceCollections:w}=(0,d.JC)(),{collectionMutators:L}=(0,u.hA)(),{replace:R}=(0,i.rd)(),_=(0,s.hS)();function C(){l.value&&l.value?.documentUrl&&L.edit(l.value.uid,"watchMode",!l.value?.watchMode)}function y(){if(!l.value||!t.value)return;L.delete(l.value,t.value);let e=w.value[0];e&&R({name:"collection",params:{[r.TU.Workspace]:t.value.uid,[r.TU.Collection]:e.uid}}),_.hide()}return(e,t)=>((0,a.uX)(),(0,a.CE)(a.FK,null,[(0,a.Lk)("div",p,[(0,a.Lk)("div",m,[t[5]||(t[5]=(0,a.Lk)("div",{class:"flex h-8 items-center"},[(0,a.Lk)("h3",{class:"font-bold"},"Features")],-1)),(0,a.Lk)("div",v,[(0,a.Lk)("div",b,[t[2]||(t[2]=(0,a.Lk)("div",null,[(0,a.Lk)("h4",null,"Watch Mode"),(0,a.Lk)("p",{class:"text-c-2 mt-1"}," When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")],-1)),(0,a.bF)((0,n.R1)(s.$J),{class:"w-4",disabled:!(0,n.R1)(l)?.documentUrl,modelValue:(0,n.R1)(l)?.watchMode??!1,"onUpdate:modelValue":C},null,8,["disabled","modelValue"])]),(0,a.Lk)("div",f,[(0,a.Lk)("div",k,[(0,n.R1)(l)?.documentUrl?((0,a.uX)(),(0,a.CE)(a.FK,{key:0},[t[3]||(t[3]=(0,a.Lk)("span",{class:"bg-b-2 sticky left-0 pr-2 pl-3"},"Source",-1)),(0,a.Lk)("a",{class:"text-c-2 group rounded pr-3 no-underline hover:underline",href:(0,n.R1)(l).documentUrl,target:"_blank"},[(0,a.eW)((0,o.v_)((0,n.R1)(l).documentUrl)+" ",1),(0,a.bF)((0,n.R1)(s.kv),{class:"ml-1 hidden w-2.5 group-hover:inline",icon:"ExternalLink"})],8,h)],64)):((0,a.uX)(),(0,a.CE)(a.FK,{key:1},[(0,a.bF)((0,n.R1)(s.kv),{class:"text-c-2 mr-2 ml-3 w-4",icon:"NotAllowed",size:"sm"}),t[4]||(t[4]=(0,a.Lk)("span",{class:"text-c-2 pr-3"}," No URL configured. Try importing an OpenAPI document from an URL. ",-1))],64))])])])]),(0,a.Lk)("div",g,[t[8]||(t[8]=(0,a.Lk)("h3",{class:"font-bold"},"Danger Zone",-1)),(0,a.Lk)("div",x,[t[7]||(t[7]=(0,a.Lk)("div",null,[(0,a.Lk)("h4",null,"Delete Collection"),(0,a.Lk)("p",{class:"text-c-2 mt-1"}," Be careful, my friend. Once deleted, there is no way to recover the collection. ")],-1)),(0,a.bF)((0,n.R1)(s.RO),{class:"custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",variant:"danger",onClick:t[0]||(t[0]=e=>(0,n.R1)(_).show())},{default:(0,a.k6)(()=>[...t[6]||(t[6]=[(0,a.eW)(" Delete Collection ",-1)])]),_:1})])])]),(0,a.bF)((0,n.R1)(s.uT),{size:"xxs",state:(0,n.R1)(_),title:`Delete ${(0,n.R1)(l)?.info?.title}`},{default:(0,a.k6)(()=>[(0,a.bF)(c.A,{variableName:(0,n.R1)(l)?.info?.title??"",warningMessage:"This action cannot be undone.",onClose:t[1]||(t[1]=e=>(0,n.R1)(_).hide()),onDelete:y},null,8,["variableName"])]),_:1},8,["state","title"])],64))}}),L=(0,t(99769).A)(w,[["__scopeId","data-v-f353959a"]])},16259:(e,l,t)=>{t.d(l,{A:()=>d});var a=t(16082),n=t(16697),o=t(30306),s=t(26659),i=t(24179);let c={class:"flex justify-between gap-10"},r=(0,a.pM)({__name:"SidebarListElementForm",props:{danger:{type:Boolean},label:{}},emits:["cancel","submit"],setup:(e,{emit:l})=>(e,t)=>((0,a.uX)(),(0,a.CE)("form",{class:"flex flex-col gap-4 text-base",onSubmit:t[1]||(t[1]=(0,n.D$)(e=>l("submit"),["prevent"]))},[(0,a.RG)(e.$slots,"default",{},void 0,!0),(0,a.Lk)("div",c,[(0,a.bF)((0,o.R1)(i.RO),{class:"flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",type:"button",variant:"outlined",onClick:t[0]||(t[0]=e=>
1l("cancel"))},{default:(0,a.k6)(()=>[...t[2]||(t[2]=[(0,a.eW)(" Cancel ",-1)])]),_:1}),(0,a.bF)((0,o.R1)(i.RO),{class:"custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none","data-testid":"sidebar-list-element-form-submit-button",type:"submit",variant:e.danger?"danger":"solid"},{default:(0,a.k6)(()=>[(0,a.eW)((0,s.v_)(e.label??"Save"),1)]),_:1},8,["variant"])])],32))}),d=(0,t(99769).A)(r,[["__scopeId","data-v-98703c3c"]])},79396:(e,l,t)=>{t.d(l,{A:()=>i});var a=t(16082),n=t(26659),o=t(16259);let s={key:0,class:"text-c-2 text-sm leading-normal text-pretty"},i=(0,a.pM)({__name:"DeleteSidebarListElement",props:{variableName:{},warningMessage:{}},emits:["close","delete"],setup(e,{emit:l}){let t=(0,a.EW)(()=>e.variableName.length>18?e.variableName.slice(0,18)+"…":e.variableName);return(e,i)=>((0,a.uX)(),(0,a.Wv)(o.A,{danger:"",label:`Delete ${t.value}`,onCancel:i[0]||(i[0]=e=>l("close")),onSubmit:i[1]||(i[1]=e=>l("delete"))},{default:(0,a.k6)(()=>[e.warningMessage?((0,a.uX)(),(0,a.CE)("p",s,(0,n.v_)(e.warningMessage),1)):(0,a.Q3)("",!0)]),_:1},8,["label"]))}})}}]);

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.