export const __webpack_esm_id__=63991;export const __webpack_esm_ids__=[1880,63991,86993,91256];export const __webpack_esm_modules__={86993(e,t,s){s.d(t,{P:()=>i});const i={PLAYGROUND:"graphql/playground",CREATE_ENDPOINT:"graphql/endpoint/create",ENDPOINT_MANAGEMENT:"graphql/endpoints"}},63991(e,t,s){s.d(t,{FK:()=>n,Zv:()=>d});var i=s(1880),r=s(91256);const n=(e,t)=>{if(!e)return new i._;const s=e.map(e=>o(e,t));return new i._(s)},o=(e,t)=>new i.S({endpointId:e.id,endpointURI:(0,r.r)(t,e.id),active:e.active,default:e.default,label:e.label,description:e.description,lastModified:e.lastModified,objectsCount:e.objectsCount,propertiesCount:e.propertiesCount,warnings:e.warnings,errors:e.errors,messages:e.messages}),d=(e,t,s)=>{const n=e.messages?e.messages.errors?.length:0,o=e.messages?e.messages.warnings?.length:0;return new i.S({endpointId:e.id,endpointURI:(0,r.r)(s,e.id),warnings:o,errors:n,messages:e.messages})}},91256(e,t,s){s.d(t,{I:()=>o,r:()=>n});var i=s(86993),r=s(51504);const n=(e,t)=>`${r.h}/${e}/graphql/${t}`,o=e=>`${i.P.PLAYGROUND}?endpointId=${e}`},1880(e,t,s){s.d(t,{S:()=>r,_:()=>i});class i{_reports;constructor(e){this._reports=e||[]}getReport(e){return this._reports.find(t=>t.endpointId===e)}get reports(){return this._reports}set reports(e){this._reports=e}}class r{_endpointId;_endpointURI;_active;_default;_label;_description;_lastModified;_objectsCount;_propertiesCount;_warnings;_errors;_messages;_createdSuccessfully;constructor(e){this._endpointId=e.endpointId||"",this._endpointURI=e.endpointURI||"",this._active=e.active||!1,this._default=e.default||!1,this._label=e.label||"",this._description=e.description||"",this._lastModified=e.lastModified||"",this._objectsCount=e.objectsCount||0,this._propertiesCount=e.propertiesCount||0,this._warnings=e.warnings||0,this._errors=e.errors||0,this._messages=e.messages||[],this._createdSuccessfully=this._active&&0===this._errors}toJSON(){return{id:this._endpointId,active:this._active,default:this._default,label:this._label,description:this._description,lastModified:this._lastModified,objectsCount:this._objectsCount,propertiesCount:this._propertiesCount,warnings:this._warnings,errors:this._errors,messages:this._messages}}get endpointId(){return this._endpointId}set endpointId(e){this._endpointId=e}get endpointURI(){return this._endpointURI}set endpointURI(e){this._endpointURI=e}get active(){return this._active}set active(e){this._active=e}get default(){return this._default}set default(e){this._default=e}get label(){return this._label}set label(e){this._label=e}get description(){return this._description}set description(e){this._description=e}get lastModified(){return this._lastModified}set lastModified(e){this._lastModified=e}get objectsCount(){return this._objectsCount}set objectsCount(e){this._objectsCount=e}get propertiesCount(){return this._propertiesCount}set propertiesCount(e){this._propertiesCount=e}get warnings(){return this._warnings}set warnings(e){this._warnings=e}get errors(){return this._errors}set errors(e){this._errors=e}get messages(){return this._messages}set messages(e){this._messages=e}get createdSuccessfully(){return this._createdSuccessfully}set createdSuccessfully(e){this._createdSuccessfully=e}}}};
//# sourceMappingURL=63991.02a8eb19702949be4915.bundle.js.map