var __awaiter=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))(function(i,o){function u(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r["throw"](t))}catch(t){o(t)}}function l(t){t.done?i(t.value):new e(function(n){n(t.value)}).then(u,a)}l((r=r.apply(t,n||[])).next())})};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(n){return l([t,n])}}function l(u){if(r)throw new TypeError("Generator is already executing.");while(e)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;i=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){e.label=u[1];break}if(u[0]===6&&e.label<o[1]){e.label=o[1];o=u;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(u);break}if(o[2])e.ops.pop();e.trys.pop();continue}u=n.call(t,e)}catch(t){u=[6,t];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-e6381e49.system.js"],function(t){"use strict";var n,e;return{setters:[function(t){n=t.r;e=t.h}],execute:function(){var r=function(){function t(t){n(this,t)}t.prototype.componentDidLoad=function(){this.materialsMenuEl.setPosition(this.menuPosition);if(this.buttonType)this.buttonEl[this.buttonType]=true};t.prototype.componentWillUpdate=function(){if(this.buttonType)this.buttonEl[this.buttonType]=true};t.prototype.openMenu=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){this.materialsMenuEl.open();return[2]})})};t.prototype.closeMenu=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){this.materialsMenuEl.close();return[2]})})};t.prototype.isOpen=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.materialsMenuEl.isOpen()]})})};t.prototype.renderIconHelper=function(){return this.iconHelper?e("materials-icon",{style:{"margin-left":"8px","margin-right":"-8px"},name:this.iconHelper}):""};t.prototype.render=function(){var t=this;return e("div",null,this.iconOnly&&e("materials-icon-button",{onClick:function(){return t.openMenu()},icon:this.icon}),!this.iconOnly&&e("materials-button",{color:this.color,onClick:function(){return t.openMenu()},icon:this.icon,ref:function(n){return t.buttonEl=n}},this.menuTitle,this.renderIconHelper()),e("materials-menu",{ref:function(n){return t.materialsMenuEl=n}},e("slot",null)))};Object.defineProperty(t,"style",{get:function(){return"materials-list-item>a{color:inherit;text-decoration:none}materials-menu{white-space:nowrap}"},enumerable:true,configurable:true});return t}();t("materials_dropdown",r)}}});