(window.webpackJsonp=window.webpackJsonp||[]).push([[247],{340:function(t,o,e){"use strict";e.r(o),e.d(o,"ontotext_dropdown",(function(){return r}));var n=e(29),i=e(420);e(401);const r=class{constructor(t){Object(n.g)(this,t),this.valueChanged=Object(n.c)(this,"valueChanged",7),this.open=!1,this.showTooltip=!1,this.translationService=void 0,this.nameLabelKey=void 0,this.tooltipLabelKey=void 0,this.items=void 0,this.iconClass=""}keydownListener(t){"Escape"===t.key&&this.closeMenu()}mouseClickListener(t){t.target.closest(".ontotext-dropdown")||this.closeMenu()}render(){const t=this.tooltipLabelKey&&window.innerWidth<768,o=`ontotext-dropdown-button ${this.open?"icon-caret-up-after":" icon-caret-down-after"}\n    ${this.iconClass?"ontotext-dropdown-icon "+this.iconClass:""}`;return Object(n.e)("yasgui-tooltip",{"data-tooltip":t?this.translate(this.nameLabelKey):""},Object(n.e)("div",{class:"ontotext-dropdown"},Object(n.e)("button",{class:o,onClick:()=>this.toggleComponent()},Object(n.e)("span",{class:"button-name"},this.translate(this.nameLabelKey))),Object(n.e)("div",{class:"ontotext-dropdown-menu "+(this.open?"open":"closed")},this.items&&this.items.map(t=>Object(n.e)("a",{href:"#",class:"ontotext-dropdown-menu-item",onClick:()=>this.onSelect(t.value)},this.translate(t.labelKey))))))}onSelect(t){this.open=!1,this.valueChanged.emit(new i.a(t))}toggleComponent(){this.open=!this.open}translate(t){return this.translationService?this.translationService.translate(t):""}closeMenu(){this.open=!1}};r.style=".ontotext-dropdown .ontotext-dropdown-button{font-size:16px;font-weight:400;padding:5px 16px;line-height:1.25;border:none;outline:none;color:#FFFFFF;background-color:#e84e0f}.ontotext-dropdown .ontotext-dropdown-menu{position:absolute;margin:0;padding:0;z-index:1000}.ontotext-dropdown .ontotext-dropdown-menu-item{display:block;text-decoration:none;font-size:1rem;font-weight:400;padding:0.5em 1.2em;color:#FFFFFF;background-color:#e84e0f}.ontotext-dropdown .ontotext-dropdown-menu-item:hover{text-decoration:none;background-color:#d0460d;color:#ffffff}.ontotext-dropdown .ontotext-dropdown-icon:before{padding-right:5px}.ontotext-dropdown .ontotext-dropdown-button.icon-caret-down-after:after,.ontotext-dropdown .ontotext-dropdown-button.icon-caret-up-after:after{padding-left:10px;color:#00000059}.ontotext-dropdown .ontotext-dropdown-menu.closed{display:none}.ontotext-dropdown .ontotext-dropdown-button:hover{cursor:pointer}@media (max-width: 768px){.ontotext-dropdown .ontotext-dropdown-button:after{padding-left:0 !important}.ontotext-dropdown .button-name{display:none}}"},401:function(t,o,e){"use strict";var n;e.d(o,"a",(function(){return n})),function(t){t.INTERNAL_DOWNLOAD_AS_EVENT="internalDownloadAsEvent",t.INTERNAL_DROPDOWN_VALUE_SELECTED_EVENT="internalDropdownValueSelectedEvent",t.INTERNAL_NOTIFICATION_MESSAGE_EVENT="internalNotificationMessageEvent",t.INTERNAL_SHOW_RESOURCE_COPY_LINK_DIALOG_EVENT="internalShowResourceCopyLinkDialogEvent",t.INTERNAL_SHOW_SAVED_QUERIES_EVENT="internalShowSavedQueriesEvent",t.INTERNAL_SHARE_QUERY_EVENT="internalShareQueryEvent",t.INTERNAL_CREATE_SAVED_QUERY_EVENT="internalCreateSavedQueryEvent",t.INTERNAL_QUERY_EXECUTED="internalQueryExecuted",t.INTERNAL_QUERY_EVENT="internalQueryEvent",t.INTERNAL_COUNT_QUERY_EVENT="internalCountQueryEvent",t.INTERNAL_COUNT_QUERY_RESPONSE_EVENT="internalCountQueryResponseEvent",t.INTERNAL_REQUEST_ABORTED_EVENT="internalRequestAbortedEvent"}(n||(n={}))},420:function(t,o,e){"use strict";e.d(o,"a",(function(){return i}));var n=e(401);class i{constructor(t){this.TYPE=n.a.INTERNAL_DROPDOWN_VALUE_SELECTED_EVENT,this.payload={value:t}}}}}]);