text: Object.defineProperty(exports,"__esModule",{value:!0}),exports.HaxToolbarMenu=void 0;var e=require("lit"),t=require("@lrnwebcomponents/simple-toolbar/lib/simple-toolbar-menu.js"),r=require("@lrnwebcomponents/hax-body/lib/hax-ui-styles.js");function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _templateObject2_ffa784d0941711ec8d52c707f928eca0(){var e=_taggedTemplateLiteral(['\n        ::slotted([slot="menuitem"]) {\n          --simple-toolbar-button-justify: flex-start;\n          --simple-toolbar-button-label-white-space: nowrap;\n        }\n      ']);return _templateObject2_ffa784d0941711ec8d52c707f928eca0=function _templateObject2_ffa784d0941711ec8d52c707f928eca0(){return e},e}function _templateObject_ffa784d0941711ec8d52c707f928eca0(){var e=_taggedTemplateLiteral(['<slot name="menuitem"></slot>']);return _templateObject_ffa784d0941711ec8d52c707f928eca0=function _templateObject_ffa784d0941711ec8d52c707f928eca0(){return e},e}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _get(e,t,r){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(e,t,r){var o=function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}(e,t);if(o){var n=Object.getOwnPropertyDescriptor(o,t);return n.get?n.get.call(r):n.value}},_get(e,t,r||e)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}var o=function(o){function HaxToolbarMenu(){var e;return function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,HaxToolbarMenu),(e=_possibleConstructorReturn(this,_getPrototypeOf(HaxToolbarMenu).call(this)))._blockEvent=!1,e}return function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(HaxToolbarMenu,(0,t.SimpleToolbarMenuBehaviors)(e.LitElement)),_createClass(HaxToolbarMenu,null,[{key:"styles",get:function get(){return _toConsumableArray(_get(_getPrototypeOf(HaxToolbarMenu),"styles",this))}}]),_createClass(HaxToolbarMenu,[{key:"listItemTemplate",get:function get(){return(0,e.html)(_templateObject_ffa784d0941711ec8d52c707f928eca0())}}],[{key:"simpleButtonThemeStyles",get:function get(){return r.HaxButton}},{key:"simpleButtonCoreStyles",get:function get(){return[].concat(_toConsumableArray(_get(_getPrototypeOf(HaxToolbarMenu),"simpleButtonCoreStyles",this)),[(0,e.css)(_templateObject2_ffa784d0941711ec8d52c707f928eca0())])}},{key:"tag",get:function get(){return"hax-toolbar-menu"}},{key:"properties",get:function get(){return function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(r,!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},_get(_getPrototypeOf(HaxToolbarMenu),"properties",this),{_blockEvent:{type:Boolean},eventName:{type:String,attribute:"event-name"}})}}]),HaxToolbarMenu}();exports.HaxToolbarMenu=o,window.customElements.define(o.tag,o);