text: Object.defineProperty(exports,"__esModule",{value:!0}),exports.RichTextEditorBreadcrumb=void 0;var e=require("lit"),t=require("../buttons/rich-text-editor-button.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})(e)}function _templateObject2_128f3780feba11eb8439e3eec9305af7(){var e=_taggedTemplateLiteral(["\n        #button {\n          font-family: monospace;\n          display: inline-block;\n          text-align: center;\n          min-width: 25px;\n          margin: 0;\n          padding: 2px 5px;\n        }\n      "]);return _templateObject2_128f3780feba11eb8439e3eec9305af7=function _templateObject2_128f3780feba11eb8439e3eec9305af7(){return e},e}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 _templateObject_128f3780feba11eb8439e3eec9305af7(){var e=_taggedTemplateLiteral(['\n      <button\n        id="button"\n        aria-controls="','"\n        @click="','"\n        tabindex="0"\n      >\n        ',"\n      </button>\n    "]);return _templateObject_128f3780feba11eb8439e3eec9305af7=function _templateObject_128f3780feba11eb8439e3eec9305af7(){return e},e}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}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 _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}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})(e,t)}var r=function(r){function RichTextEditorBreadcrumb(){var e;return function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,RichTextEditorBreadcrumb),(e=_possibleConstructorReturn(this,_getPrototypeOf(RichTextEditorBreadcrumb).call(this))).label="",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)}(RichTextEditorBreadcrumb,e.LitElement),_createClass(RichTextEditorBreadcrumb,[{key:"render",value:function render(){return(0,e.html)(_templateObject_128f3780feba11eb8439e3eec9305af7(),this.controls,this._handleClick,this.label)}}],[{key:"tag",get:function get(){return"rich-text-editor-breadcrumb"}},{key:"styles",get:function get(){return[].concat(_toConsumableArray(t.RichTextStyles),[(0,e.css)(_templateObject2_128f3780feba11eb8439e3eec9305af7())])}},{key:"properties",get:function get(){return{controls:{type:String},label:{type:String},target:{type:Object}}}}]),_createClass(RichTextEditorBreadcrumb,[{key:"_handleClick",value:function _handleClick(e){e.preventDefault(),this.dispatchEvent(new CustomEvent("breadcrumb-click",{bubbles:!0,cancelable:!0,composed:!0,detail:this}))}}]),RichTextEditorBreadcrumb}();exports.RichTextEditorBreadcrumb=r,window.customElements.define(r.tag,r);