(window.webpackJsonp=window.webpackJsonp||[]).push([[20,149,150,151,152,153,155,158,159,163,164],{100:function(e,t,s){"use strict";s.r(t),s.d(t,"CountQueryResponseEvent",(function(){return n}));var r=s(69);class n{constructor(e){this.TYPE=e.TYPE,this.response=e.payload.response}hasResponse(){return this.response&&this.response.body}getResponseBody(){if(this.hasResponse())return this.response.body}isResponseNumber(){return!!this.hasResponse()&&Object(r.isNumber)(this.response.body)}isResponseArray(){return!!this.hasResponse()&&Array.isArray(this.response.body)}getBindings(){if(this.hasResponse())return this.response.body.results.bindings}hasBindingResponse(){return!!this.hasResponse()&&this.response.body.results.bindings[0]}setTotalElements(e){this.response.body.totalElements=e}}},101:function(e,t,s){"use strict";s.r(t),s.d(t,"CountQueryRequestEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.query=e.payload.query,this.queryMode=e.payload.queryMode,this.queryType=e.payload.queryType,this.pageSize=e.payload.pageSize,this.request=e.payload.request}setPageSize(e){this.request._data.pageSize=e}setPageNumber(e){this.request._data.pageNumber=e}setCount(e){this.request._data.count=e}}},102:function(e,t,s){"use strict";s.r(t),s.d(t,"DownloadAsEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.contentType=e.payload.value,this.pluginName=e.payload.pluginName,this.query=e.payload.query,this.infer=e.payload.infer,this.sameAs=e.payload.sameAs}}},103:function(e,t,s){"use strict";s.r(t),s.d(t,"NotificationMessageEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.message=e.payload.message,this.code=e.payload.code,this.messageType=e.payload.messageType}}},104:function(e,t,s){"use strict";s.r(t),s.d(t,"QueryExecutedEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.duration=e.payload.duration,this.tabId=e.payload.tabId}}},105:function(e,t,s){"use strict";s.r(t),s.d(t,"SaveQueryOpened",(function(){return r}));class r{constructor(e){this.tab=e.payload.tab}getTab(){return this.tab}}},106:function(e,t,s){"use strict";s.r(t),s.d(t,"RequestAbortedEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.request=e.payload.request,this.queryMode=e.payload.queryMode}getQueryTrackAlias(){if(this.request)return this.request.header["X-GraphDB-Track-Alias"]}getRepository(){if(this.request){const e=this.request.url;return e.substring(e.lastIndexOf("/")+1)}}}},144:function(e,t,s){"use strict";s.r(t),s.d(t,"toEventData",(function(){return E})),s.d(t,"toYasguiOutputModel",(function(){return h})),s.d(t,"downloadAsFile",(function(){return l}));var r=s(98),n=s(78),a=s(99),u=s(100),o=s(101),i=s(102),d=s(103),c=s(104),p=s(105),y=s(106);const E=e=>new r.EventData(e.detail.TYPE,e.detail.payload),h=e=>{const t=E(e);switch(t.TYPE){case n.EventDataType.DOWNLOAD_AS:return new i.DownloadAsEvent(t);case n.EventDataType.NOTIFICATION_MESSAGE:return new d.NotificationMessageEvent(t);case n.EventDataType.COUNT_QUERY:return new o.CountQueryRequestEvent(t);case n.EventDataType.COUNT_QUERY_RESPONSE:return new u.CountQueryResponseEvent(t);case n.EventDataType.QUERY:return new a.QueryRequestEvent(t);case n.EventDataType.QUERY_EXECUTED:return new c.QueryExecutedEvent(t);case n.EventDataType.SAVE_QUERY_OPENED:return new p.SaveQueryOpened(t);case n.EventDataType.REQUEST_ABORTED:return new y.RequestAbortedEvent(t);default:return t}},l=(e,t,s)=>{const r=document.createElement("a");r.setAttribute("href",`data:${t};charset=utf-8, + ${encodeURIComponent(s)}`),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}},78:function(e,t,s){"use strict";s.r(t),s.d(t,"EventDataType",(function(){return r}));const r={DOWNLOAD_AS:"downloadAs",NOTIFICATION_MESSAGE:"notificationMessage",QUERY:"query",COUNT_QUERY:"countQuery",COUNT_QUERY_RESPONSE:"countQueryResponse",REQUEST_ABORTED:"requestAborted",QUERY_EXECUTED:"queryExecuted",SAVE_QUERY_OPENED:"saveQueryOpened"}},98:function(e,t,s){"use strict";s.r(t),s.d(t,"EventData",(function(){return r}));class r{constructor(e,t){this.TYPE=e,this.payload=t}}},99:function(e,t,s){"use strict";s.r(t),s.d(t,"QueryRequestEvent",(function(){return r}));class r{constructor(e){this.TYPE=e.TYPE,this.query=e.payload.query,this.queryMode=e.payload.queryMode,this.queryType=e.payload.queryType,this.pageSize=e.payload.pageSize,this.request=e.payload.request}setPageSize(e){this.request._data.pageSize=e}getPageSize(){return this.request._data.pageSize?parseInt(this.request._data.pageSize):void 0}setPageNumber(e){this.request._data.pageNumber=e}getPageNumber(){return this.request._data.pageNumber?parseInt(this.request._data.pageNumber):void 0}setOffset(e){this.request._data.offset=e}setLimit(e){this.request._data.limit=e}}}}]);