text: Object.defineProperty(exports,"__esModule",{value:!0}),exports.HaxButtonMenuItem=void 0;var t=require("lit");require("@lrnwebcomponents/simple-tooltip/simple-tooltip.js");var e=require("@lrnwebcomponents/a11y-menu-button/lib/a11y-menu-button-item.js");function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _templateObject2_797b7720942811ecb1937969798b231a(){var t=_taggedTemplateLiteral(["\n        :host {\n          --simple-toolbar-button-min-width: 100% !important;\n          --simple-toolbar-button-border-color: var(\n            --hax-toolbar-button-bg,\n            #fff\n          ) !important;\n          --simple-toolbar-button-hover-bg: var(\n            --hax-toolbar-menu-button-hover-bg,\n            #c4ecff\n          );\n          --simple-toolbar-button-border-radius: var(\n            --hax-toolbar-menu-button-border-radius,\n            0\n          );\n        }\n        :host ::slotted([danger]) {\n          --simple-toolbar-button-hover-bg: var(\n            --hax-toolbar-button-danger-color,\n            #882222\n          );\n          --simple-toolbar-button-hover-border-color: var(\n            --hax-toolbar-button-danger-color,\n            #882222\n          );\n          --simple-toolbar-button-hover-color: var(\n            --hax-toolbar-button-bg,\n            #fff\n          );\n          z-index: 1001;\n        }\n      "]);return _templateObject2_797b7720942811ecb1937969798b231a=function _templateObject2_797b7720942811ecb1937969798b231a(){return t},t}function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,o=new Array(t.length);e<t.length;e++)o[e]=t[e];return o}}(t)||function _iterableToArray(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _templateObject_797b7720942811ecb1937969798b231a(){var t=_taggedTemplateLiteral(['\n      <li role="none">\n        <slot></slot>\n      </li>\n    ']);return _templateObject_797b7720942811ecb1937969798b231a=function _templateObject_797b7720942811ecb1937969798b231a(){return t},t}function _taggedTemplateLiteral(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _defineProperties(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _get(t,e,o){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(t,e,o){var n=function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(o):r.value}},_get(t,e,o||t)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}var o=function(o){function HaxButtonMenuItem(){return function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,HaxButtonMenuItem),_possibleConstructorReturn(this,_getPrototypeOf(HaxButtonMenuItem).call(this))}return function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}(HaxButtonMenuItem,(0,e.A11yMenuButtonItemBehaviors)(t.LitElement)),function _createClass(t,e,o){return e&&_defineProperties(t.prototype,e),o&&_defineProperties(t,o),t}(HaxButtonMenuItem,[{key:"render",value:function render(){return(0,t.html)(_templateObject_797b7720942811ecb1937969798b231a())}},{key:"focus",value:function focus(){this.querySelector("[role=menuitem]")&&this.querySelector("[role=menuitem]").focus()}}],[{key:"styles",get:function get(){return[].concat(_toConsumableArray(_get(_getPrototypeOf(HaxButtonMenuItem),"styles",this)),[(0,t.css)(_templateObject2_797b7720942811ecb1937969798b231a())])}},{key:"tag",get:function get(){return"hax-button-menu-item"}}]),HaxButtonMenuItem}();exports.HaxButtonMenuItem=o,window.customElements.define(o.tag,o);