Liferay.Loader.define("commerce-frontend-taglib@19.1.14/input_utils/CommerceInputText.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.CommerceInputText=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("CommerceInputText.incrementaldom"),goog.require("goog.soy.data.SanitizedContent");var n=goog.require("incrementaldom");goog.require("soy.asserts");var o=goog.require("soy.idom");function $render(e,a,r){a=r||a;var l=t.asserts.assertType(goog.isString(e.contextName)||e.contextName instanceof goog.soy.data.SanitizedContent,"contextName",e.contextName,"!goog.soy.data.SanitizedContent|string"),s=t.asserts.assertType(goog.isString(e.name)||e.name instanceof goog.soy.data.SanitizedContent,"name",e.name,"!goog.soy.data.SanitizedContent|string"),i=t.asserts.assertType(null==e.label||goog.isString(e.label)||e.label instanceof goog.soy.data.SanitizedContent,"label",e.label,"!goog.soy.data.SanitizedContent|null|string|undefined"),d=t.asserts.assertType(null==e.value||goog.isString(e.value)||e.value instanceof goog.soy.data.SanitizedContent,"value",e.value,"!goog.soy.data.SanitizedContent|null|string|undefined"),u=t.asserts.assertType(null==e.type||goog.isString(e.type)||e.type instanceof goog.soy.data.SanitizedContent,"type",e.type,"!goog.soy.data.SanitizedContent|null|string|undefined"),g=t.asserts.assertType(null==e.pattern||goog.isFunction(e.pattern)||goog.isString(e.pattern)||e.pattern instanceof goog.soy.data.SanitizedContent,"pattern",e.pattern,"!goog.soy.data.SanitizedContent|function()|null|string|undefined"),m=t.asserts.assertType(null==e.required||goog.isBoolean(e.required)||1===e.required||0===e.required,"required",e.required,"boolean|null|undefined"),p=e._handleInputKeyUp;n.elementOpenStart("div"),n.attr("class","commerce-input-text"),n.elementOpenEnd(),null!=i&&(n.elementOpenStart("label"),n.attr("for",l+"-"+s),n.attr("class","commerce-modal__label"),n.elementOpenEnd(),o.print(i),m&&(n.elementOpenStart("span"),n.attr("class","required-mark"),n.elementOpenEnd(),n.elementClose("span")),n.elementClose("label"));var c="";c+=null!=d?d:"";var y="";y+=null!=u?u:"text";n.elementOpenStart("input"),function inputAttributes__soy1508(){n.attr("type",y),n.attr("id",l+"-"+s),n.attr("name",s),n.attr("class","commerce-modal__input commerce-modal__input--with-margin"),n.attr("value",c),n.attr("data-onkeyup",p),null!=g&&""!=m&&n.attr("pattern",g),null!=m&&1==m&&n.attr("required","")}(),n.elementOpenEnd(),n.elementClose("input"),n.elementClose("div")}return e.render=$render,$render.Params,goog.DEBUG&&($render.soyTemplateName="CommerceInputText.render"),e.render.params=["contextName","name","label","value","type","pattern","required","_handleInputKeyUp"],e.render.types={contextName:"string ",name:"string ",label:"string ",value:"string ",type:"string",pattern:"html|string ",required:"bool ",_handleInputKeyUp:"any "},e.templates=a=e,e}));class CommerceInputText extends o.default{}t.CommerceInputText=CommerceInputText,r.default.register(CommerceInputText,a);var l=a;t.default=l}}));
//# sourceMappingURL=CommerceInputText.soy.js.map