PageSourceSearch

https://www.thecompaniesapi.com/_nuxt/CDzyJVWK.js

js thecompaniesapi.com collected 2026-09-25 21:27:32 UTC 1,687 bytes, 2 lines download raw bytes

1import{d as h,cU as _,aP as g,f as n,b,i as r,e as f,h as O,I as P,U as T,o as s,al as $,m as x}from"./D9dh-eZL.js";import{v as A}from"./DTZnfhb1.js";import{u as E}from"./Bw3q0glt.js";const k={class:"flex h-full flex-col gap-2"},C={class:"min-h-0 flex-1"},N=h({__name:"ApiPlayground",props:{levelToOpen:{default:2,type:Number},method:{default:"GET",type:String},params:{default:()=>({}),type:Object},path:{default:"",type:String}},setup(t){const e=t,{version:c}=_(),l=$(),{data:p,execute:y,status:m}=E(`api:playground:${e.path||"no-path-provided"}`,async()=>{try{if(e.path){const a=e.path.split("?")[0],i=new URL(`${l.public.apis.public}/${c.value}${a}`),o={headers:{"Content-Type":"application/json"},method:e.method};return e.params&&(e.method==="GET"?Object.keys(e.params).forEach(d=>i.searchParams.append(d,e.params[d])):e.method==="POST"&&(o.body=JSON.stringify(e.params))),(await fetch(i,o)).json()}}catch(a){console.error(a)}return null},{immediate:!1});async function v(a){a&&!p.value&&await y()}return(a,i)=>{const o=P,u=T;return g((s(),b("div",k,[t.path?(s(),r(o,{key:0,class:"flex-initial","has-borders":"","has-copy":"",method:t.method,path:t.path},null,8,["method","path"])):f("",!0),O("div",C,[n(p)||n(m)==="pending"?(s(),r(u,{key:0,"has-header":!1,"level-to-open":t.levelToOpen,loading:n(m)==="pending",response:n(p)},null,8,["level-to-open","loading","response"])):f("",!0)])])),[[n(A),v]])}}}),B=h({__name:"StepApiPlayground",props:{levelToOpen:{default:2,type:Number}},setup(t){return(e,c)=>{const l=N;return s(),r(l,x(e.$props,{class:"size-full","level-to-open":t.levelToOpen}),null,16,["level-to-open"])}}});export{B as default};
2//# sourceMappingURL=CDzyJVWK.js.map

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.