text: Object.defineProperty(exports,"__esModule",{value:!0}),exports.HaxAppSearchInputs=void 0;var e=require("lit");require("@lrnwebcomponents/simple-fields/simple-fields.js");var t=require("@lrnwebcomponents/hax-body-behaviors/lib/HAXFields.js"),n=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 _templateObject2_ff6599d0941711ec8d52c707f928eca0(){var e=_taggedTemplateLiteral(['\n      <h5 class="search-label">\n        ','\n        <hax-tray-button\n          id="cancel"\n          class="','"\n          icon="close"\n          label="Cancel Search"\n          event-name="cancel-search"\n        >\n        </hax-tray-button>\n      </h5>\n      <simple-fields\n        id="form"\n        .schema="','"\n        .schematizer="','"\n        .elementizer="','"\n        @value-changed="','"\n      ></simple-fields>\n    ']);return _templateObject2_ff6599d0941711ec8d52c707f928eca0=function _templateObject2_ff6599d0941711ec8d52c707f928eca0(){return e},e}function _templateObject_ff6599d0941711ec8d52c707f928eca0(){var e=_taggedTemplateLiteral(["\n        :host {\n          display: block;\n        }\n        .search-label {\n          display: flex;\n          align-items: center;\n          justify-content: space-between;\n          width: 100%;\n        }\n        #cancel {\n          flex: 0 0 auto;\n        }\n      "]);return _templateObject_ff6599d0941711ec8d52c707f928eca0=function _templateObject_ff6599d0941711ec8d52c707f928eca0(){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,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(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 _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}var r=function(r){function HaxAppSearchInputs(){return function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,HaxAppSearchInputs),_possibleConstructorReturn(this,_getPrototypeOf(HaxAppSearchInputs).call(this))}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)}(HaxAppSearchInputs,e.LitElement),_createClass(HaxAppSearchInputs,null,[{key:"styles",get:function get(){return[].concat(_toConsumableArray(n.HaxTrayDetailHeadings),[(0,e.css)(_templateObject_ff6599d0941711ec8d52c707f928eca0())])}}]),_createClass(HaxAppSearchInputs,[{key:"render",value:function render(){return(0,e.html)(_templateObject2_ff6599d0941711ec8d52c707f928eca0(),this.label,this.searching?"":"visibility-hidden",this.schema,t.HaxSchematizer,t.HaxElementizer,this.searchValuesChanged)}},{key:"searchValuesChanged",value:function searchValuesChanged(e){"string"!=typeof e.detail.value&&this.dispatchEvent(new CustomEvent("search-values-changed",{detail:e.detail.value}))}}],[{key:"tag",get:function get(){return"hax-app-search-inputs"}},{key:"properties",get:function get(){return{schema:{type:Object}}}}]),HaxAppSearchInputs}();exports.HaxAppSearchInputs=r,window.customElements.define(r.tag,r);