Liferay.Loader.define("commerce-frontend-taglib@19.1.14/search_bar/SearchBar.soy",["module","exports","require","frontend-js-metal-web$metal-component","frontend-js-metal-web$metal-soy"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.templates=t.SearchBar=void 0;var a,n=_interopRequireDefault(r("frontend-js-metal-web$metal-component")),o=_interopRequireDefault(r("frontend-js-metal-web$metal-soy"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.templates=a,goog.loadModule((function(e){var t=goog.require("soy");goog.require("soydata"),goog.module("SearchBar.incrementaldom"),goog.require("goog.soy.data.SanitizedContent");var r=goog.require("incrementaldom");goog.require("soy.asserts"),goog.require("soy.idom");var n=o.default.getTemplate("ClayIcon.incrementaldom","render");function $render(e,a,o){a=o||a;var s=t.asserts.assertType(goog.isString(e.placeholder)||e.placeholder instanceof goog.soy.data.SanitizedContent,"placeholder",e.placeholder,"!goog.soy.data.SanitizedContent|string"),l=t.asserts.assertType(goog.isString(e.spritemap)||e.spritemap instanceof goog.soy.data.SanitizedContent,"spritemap",e.spritemap,"!goog.soy.data.SanitizedContent|string"),i=t.asserts.assertType(goog.isString(e.query)||e.query instanceof goog.soy.data.SanitizedContent,"query",e.query,"!goog.soy.data.SanitizedContent|string");r.elementOpenStart("form"),r.attr("class","commerce-search"),r.attr("data-onsubmit","_handleSubmit"),r.elementOpenEnd(),r.elementOpenStart("div"),r.attr("class","commerce-search__input"),r.elementOpenEnd(),r.elementOpenStart("input"),r.attr("autocomplete","off"),r.attr("data-onkeydown","_handleKeyDown"),r.attr("data-onkeyup","_handleKeyUp"),r.attr("name","queryString"),r.attr("placeholder",s),r.attr("ref","searchInput"),r.attr("type","text"),r.attr("value",i),r.elementOpenEnd(),r.elementClose("input"),r.elementClose("div"),r.elementOpenStart("button"),r.attr("class","commerce-search__button "+(""==i?"is-ninja":"")),r.attr("data-onclick","_handleResetQuery"),r.attr("type","button"),r.elementOpenEnd(),n({spritemap:l,symbol:"times"},null,a),r.elementClose("button"),r.elementClose("form")}return e.render=$render,$render.Params,goog.DEBUG&&($render.soyTemplateName="SearchBar.render"),e.render.params=["placeholder","spritemap","query"],e.render.types={placeholder:"string ",spritemap:"string",query:"string"},e.templates=a=e,e}));class SearchBar extends n.default{}t.SearchBar=SearchBar,o.default.register(SearchBar,a);var s=a;t.default=s}}));
//# sourceMappingURL=SearchBar.soy.js.map