"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4765],{94765:(e,t,s)=>{s.d(t,{fetchOpenApiResults:()=>i});var n=s(47361),a=s(51485),r=s(49355);let i=async(e,t,i)=>{let{generateFetchOptions:o}=await Promise.resolve().then(s.bind(s,12915)),u=o(e,i),p=u.queryParams?.toString(),l=e.url;p&&(l=`${l}?${p}`);let d=(0,r.Ak)(),g=await (0,n.Yl)({apiUrl:l,requestOptions:u.requestOptions,debugMeta:t});if(g.error)return(0,a.fe)([{language:"500",code:`${g.error[0]||"Something went wrong"}`,id:d}]);if("200"===g.apiStatus)return(0,a.fe)([{language:`${g.apiStatus}`,code:g.apiResponse,id:d}]);{let t=`${g.apiStatus}`,s=g.apiResponse?null:e.responses?.find(e=>e.statusCode===t);return(0,a.fe)([{language:t,code:`${g.apiResponse||s?.description||"Something went wrong"}`,id:d}])}}}}]);