Liferay.Loader.define("commerce-frontend-taglib@19.1.14/user_utils/UserInputItem.soy",["module","exports","require","frontend-js-metal-web$metal-component","frontend-js-metal-web$metal-soy"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.templates=t.UserInputItem=void 0;var a,o=_interopRequireDefault(n("frontend-js-metal-web$metal-component")),r=_interopRequireDefault(n("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("UserInputItem.incrementaldom"),goog.require("goog.soy.data.SanitizedContent");var n=goog.require("incrementaldom");goog.require("soy.asserts");var o=goog.require("soy.idom"),s=r.default.getTemplate("ClayIcon.incrementaldom","render");function $render(e,a,r){a=r||a;var i=t.asserts.assertType(null==e.name||goog.isString(e.name)||e.name instanceof goog.soy.data.SanitizedContent,"name",e.name,"!goog.soy.data.SanitizedContent|null|string|undefined"),l=t.asserts.assertType(goog.isString(e.email)||e.email instanceof goog.soy.data.SanitizedContent,"email",e.email,"!goog.soy.data.SanitizedContent|string"),m=t.asserts.assertType(goog.isString(e.spritemap)||e.spritemap instanceof goog.soy.data.SanitizedContent,"spritemap",e.spritemap,"!goog.soy.data.SanitizedContent|string"),d=t.asserts.assertType(null==e.thumbnail||goog.isString(e.thumbnail)||e.thumbnail instanceof goog.soy.data.SanitizedContent,"thumbnail",e.thumbnail,"!goog.soy.data.SanitizedContent|null|string|undefined"),u=e._handleRemoveItem;n.elementOpenStart("span"),n.attr("class","added-input-item"),n.elementOpenEnd(),null!=d&&(n.elementOpenStart("span"),n.attr("class","added-input-item__thumbnail"),n.elementOpenEnd(),n.elementOpenStart("img"),n.attr("src",d),n.elementOpenEnd(),n.elementClose("img"),n.elementClose("span")),n.elementOpenStart("span"),n.attr("class","added-input-item__text"),n.elementOpenEnd(),null!=i?o.print(i):o.print(l),n.elementClose("span"),n.elementOpenStart("button"),n.attr("class","added-input-item__delete"),n.attr("data-onclick",u),n.elementOpenEnd(),s({spritemap:m,symbol:"times"},null,a),n.elementClose("button"),n.elementClose("span")}return e.render=$render,$render.Params,goog.DEBUG&&($render.soyTemplateName="UserInputItem.render"),e.render.params=["name","email","spritemap","thumbnail","_handleRemoveItem"],e.render.types={name:"string ",email:"string ",spritemap:"string ",thumbnail:"string ",_handleRemoveItem:"?"},e.templates=a=e,e}));class UserInputItem extends o.default{}t.UserInputItem=UserInputItem,r.default.register(UserInputItem,a);var s=a;t.default=s}}));
//# sourceMappingURL=UserInputItem.soy.js.map